-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_cloud_create_request.go
367 lines (308 loc) · 10.3 KB
/
model_cloud_create_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
/*
API Управляемых сервисов
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: v1.4.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package begetOpenapiCloud
import (
"encoding/json"
)
// CloudCreateRequest struct for CloudCreateRequest
type CloudCreateRequest struct {
ConfigurationId *string `json:"configuration_id,omitempty"`
DisplayName *string `json:"display_name,omitempty"`
Description *string `json:"description,omitempty"`
MysqlParams *MysqlCreateParams `json:"mysql_params,omitempty"`
PostgresqlParams *PostgresqlPgCreateParams `json:"postgresql_params,omitempty"`
S3Params *S3S3CreateParams `json:"s3_params,omitempty"`
Extra *string `json:"extra,omitempty"`
Region *string `json:"region,omitempty"`
}
// NewCloudCreateRequest instantiates a new CloudCreateRequest object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewCloudCreateRequest() *CloudCreateRequest {
this := CloudCreateRequest{}
return &this
}
// NewCloudCreateRequestWithDefaults instantiates a new CloudCreateRequest object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewCloudCreateRequestWithDefaults() *CloudCreateRequest {
this := CloudCreateRequest{}
return &this
}
// GetConfigurationId returns the ConfigurationId field value if set, zero value otherwise.
func (o *CloudCreateRequest) GetConfigurationId() string {
if o == nil || isNil(o.ConfigurationId) {
var ret string
return ret
}
return *o.ConfigurationId
}
// GetConfigurationIdOk returns a tuple with the ConfigurationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudCreateRequest) GetConfigurationIdOk() (*string, bool) {
if o == nil || isNil(o.ConfigurationId) {
return nil, false
}
return o.ConfigurationId, true
}
// HasConfigurationId returns a boolean if a field has been set.
func (o *CloudCreateRequest) HasConfigurationId() bool {
if o != nil && !isNil(o.ConfigurationId) {
return true
}
return false
}
// SetConfigurationId gets a reference to the given string and assigns it to the ConfigurationId field.
func (o *CloudCreateRequest) SetConfigurationId(v string) {
o.ConfigurationId = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *CloudCreateRequest) GetDisplayName() string {
if o == nil || isNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudCreateRequest) GetDisplayNameOk() (*string, bool) {
if o == nil || isNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *CloudCreateRequest) HasDisplayName() bool {
if o != nil && !isNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *CloudCreateRequest) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *CloudCreateRequest) GetDescription() string {
if o == nil || isNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudCreateRequest) GetDescriptionOk() (*string, bool) {
if o == nil || isNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *CloudCreateRequest) HasDescription() bool {
if o != nil && !isNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *CloudCreateRequest) SetDescription(v string) {
o.Description = &v
}
// GetMysqlParams returns the MysqlParams field value if set, zero value otherwise.
func (o *CloudCreateRequest) GetMysqlParams() MysqlCreateParams {
if o == nil || isNil(o.MysqlParams) {
var ret MysqlCreateParams
return ret
}
return *o.MysqlParams
}
// GetMysqlParamsOk returns a tuple with the MysqlParams field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudCreateRequest) GetMysqlParamsOk() (*MysqlCreateParams, bool) {
if o == nil || isNil(o.MysqlParams) {
return nil, false
}
return o.MysqlParams, true
}
// HasMysqlParams returns a boolean if a field has been set.
func (o *CloudCreateRequest) HasMysqlParams() bool {
if o != nil && !isNil(o.MysqlParams) {
return true
}
return false
}
// SetMysqlParams gets a reference to the given MysqlCreateParams and assigns it to the MysqlParams field.
func (o *CloudCreateRequest) SetMysqlParams(v MysqlCreateParams) {
o.MysqlParams = &v
}
// GetPostgresqlParams returns the PostgresqlParams field value if set, zero value otherwise.
func (o *CloudCreateRequest) GetPostgresqlParams() PostgresqlPgCreateParams {
if o == nil || isNil(o.PostgresqlParams) {
var ret PostgresqlPgCreateParams
return ret
}
return *o.PostgresqlParams
}
// GetPostgresqlParamsOk returns a tuple with the PostgresqlParams field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudCreateRequest) GetPostgresqlParamsOk() (*PostgresqlPgCreateParams, bool) {
if o == nil || isNil(o.PostgresqlParams) {
return nil, false
}
return o.PostgresqlParams, true
}
// HasPostgresqlParams returns a boolean if a field has been set.
func (o *CloudCreateRequest) HasPostgresqlParams() bool {
if o != nil && !isNil(o.PostgresqlParams) {
return true
}
return false
}
// SetPostgresqlParams gets a reference to the given PostgresqlPgCreateParams and assigns it to the PostgresqlParams field.
func (o *CloudCreateRequest) SetPostgresqlParams(v PostgresqlPgCreateParams) {
o.PostgresqlParams = &v
}
// GetS3Params returns the S3Params field value if set, zero value otherwise.
func (o *CloudCreateRequest) GetS3Params() S3S3CreateParams {
if o == nil || isNil(o.S3Params) {
var ret S3S3CreateParams
return ret
}
return *o.S3Params
}
// GetS3ParamsOk returns a tuple with the S3Params field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudCreateRequest) GetS3ParamsOk() (*S3S3CreateParams, bool) {
if o == nil || isNil(o.S3Params) {
return nil, false
}
return o.S3Params, true
}
// HasS3Params returns a boolean if a field has been set.
func (o *CloudCreateRequest) HasS3Params() bool {
if o != nil && !isNil(o.S3Params) {
return true
}
return false
}
// SetS3Params gets a reference to the given S3S3CreateParams and assigns it to the S3Params field.
func (o *CloudCreateRequest) SetS3Params(v S3S3CreateParams) {
o.S3Params = &v
}
// GetExtra returns the Extra field value if set, zero value otherwise.
func (o *CloudCreateRequest) GetExtra() string {
if o == nil || isNil(o.Extra) {
var ret string
return ret
}
return *o.Extra
}
// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudCreateRequest) GetExtraOk() (*string, bool) {
if o == nil || isNil(o.Extra) {
return nil, false
}
return o.Extra, true
}
// HasExtra returns a boolean if a field has been set.
func (o *CloudCreateRequest) HasExtra() bool {
if o != nil && !isNil(o.Extra) {
return true
}
return false
}
// SetExtra gets a reference to the given string and assigns it to the Extra field.
func (o *CloudCreateRequest) SetExtra(v string) {
o.Extra = &v
}
// GetRegion returns the Region field value if set, zero value otherwise.
func (o *CloudCreateRequest) GetRegion() string {
if o == nil || isNil(o.Region) {
var ret string
return ret
}
return *o.Region
}
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CloudCreateRequest) GetRegionOk() (*string, bool) {
if o == nil || isNil(o.Region) {
return nil, false
}
return o.Region, true
}
// HasRegion returns a boolean if a field has been set.
func (o *CloudCreateRequest) HasRegion() bool {
if o != nil && !isNil(o.Region) {
return true
}
return false
}
// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *CloudCreateRequest) SetRegion(v string) {
o.Region = &v
}
func (o CloudCreateRequest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.ConfigurationId) {
toSerialize["configuration_id"] = o.ConfigurationId
}
if !isNil(o.DisplayName) {
toSerialize["display_name"] = o.DisplayName
}
if !isNil(o.Description) {
toSerialize["description"] = o.Description
}
if !isNil(o.MysqlParams) {
toSerialize["mysql_params"] = o.MysqlParams
}
if !isNil(o.PostgresqlParams) {
toSerialize["postgresql_params"] = o.PostgresqlParams
}
if !isNil(o.S3Params) {
toSerialize["s3_params"] = o.S3Params
}
if !isNil(o.Extra) {
toSerialize["extra"] = o.Extra
}
if !isNil(o.Region) {
toSerialize["region"] = o.Region
}
return json.Marshal(toSerialize)
}
type NullableCloudCreateRequest struct {
value *CloudCreateRequest
isSet bool
}
func (v NullableCloudCreateRequest) Get() *CloudCreateRequest {
return v.value
}
func (v *NullableCloudCreateRequest) Set(val *CloudCreateRequest) {
v.value = val
v.isSet = true
}
func (v NullableCloudCreateRequest) IsSet() bool {
return v.isSet
}
func (v *NullableCloudCreateRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCloudCreateRequest(val *CloudCreateRequest) *NullableCloudCreateRequest {
return &NullableCloudCreateRequest{value: val, isSet: true}
}
func (v NullableCloudCreateRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCloudCreateRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}