-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_mysql_mysql8_configuration.go
331 lines (277 loc) · 9.36 KB
/
model_mysql_mysql8_configuration.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
/*
API Управляемых сервисов
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: v1.3.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package begetOpenapiCloud
import (
"encoding/json"
)
// MysqlMysql8Configuration struct for MysqlMysql8Configuration
type MysqlMysql8Configuration struct {
CpuCount *int32 `json:"cpu_count,omitempty"`
DiskSize *int32 `json:"disk_size,omitempty"`
Memory *int32 `json:"memory,omitempty"`
Version *string `json:"version,omitempty"`
DisplayVersion *string `json:"display_version,omitempty"`
ParamConfig []StructuresParamConfig `json:"param_config,omitempty"`
ParamDefault *map[string]string `json:"param_default,omitempty"`
}
// NewMysqlMysql8Configuration instantiates a new MysqlMysql8Configuration 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 NewMysqlMysql8Configuration() *MysqlMysql8Configuration {
this := MysqlMysql8Configuration{}
return &this
}
// NewMysqlMysql8ConfigurationWithDefaults instantiates a new MysqlMysql8Configuration 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 NewMysqlMysql8ConfigurationWithDefaults() *MysqlMysql8Configuration {
this := MysqlMysql8Configuration{}
return &this
}
// GetCpuCount returns the CpuCount field value if set, zero value otherwise.
func (o *MysqlMysql8Configuration) GetCpuCount() int32 {
if o == nil || isNil(o.CpuCount) {
var ret int32
return ret
}
return *o.CpuCount
}
// GetCpuCountOk returns a tuple with the CpuCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlMysql8Configuration) GetCpuCountOk() (*int32, bool) {
if o == nil || isNil(o.CpuCount) {
return nil, false
}
return o.CpuCount, true
}
// HasCpuCount returns a boolean if a field has been set.
func (o *MysqlMysql8Configuration) HasCpuCount() bool {
if o != nil && !isNil(o.CpuCount) {
return true
}
return false
}
// SetCpuCount gets a reference to the given int32 and assigns it to the CpuCount field.
func (o *MysqlMysql8Configuration) SetCpuCount(v int32) {
o.CpuCount = &v
}
// GetDiskSize returns the DiskSize field value if set, zero value otherwise.
func (o *MysqlMysql8Configuration) GetDiskSize() int32 {
if o == nil || isNil(o.DiskSize) {
var ret int32
return ret
}
return *o.DiskSize
}
// GetDiskSizeOk returns a tuple with the DiskSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlMysql8Configuration) GetDiskSizeOk() (*int32, bool) {
if o == nil || isNil(o.DiskSize) {
return nil, false
}
return o.DiskSize, true
}
// HasDiskSize returns a boolean if a field has been set.
func (o *MysqlMysql8Configuration) HasDiskSize() bool {
if o != nil && !isNil(o.DiskSize) {
return true
}
return false
}
// SetDiskSize gets a reference to the given int32 and assigns it to the DiskSize field.
func (o *MysqlMysql8Configuration) SetDiskSize(v int32) {
o.DiskSize = &v
}
// GetMemory returns the Memory field value if set, zero value otherwise.
func (o *MysqlMysql8Configuration) GetMemory() int32 {
if o == nil || isNil(o.Memory) {
var ret int32
return ret
}
return *o.Memory
}
// GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlMysql8Configuration) GetMemoryOk() (*int32, bool) {
if o == nil || isNil(o.Memory) {
return nil, false
}
return o.Memory, true
}
// HasMemory returns a boolean if a field has been set.
func (o *MysqlMysql8Configuration) HasMemory() bool {
if o != nil && !isNil(o.Memory) {
return true
}
return false
}
// SetMemory gets a reference to the given int32 and assigns it to the Memory field.
func (o *MysqlMysql8Configuration) SetMemory(v int32) {
o.Memory = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *MysqlMysql8Configuration) GetVersion() string {
if o == nil || isNil(o.Version) {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlMysql8Configuration) GetVersionOk() (*string, bool) {
if o == nil || isNil(o.Version) {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *MysqlMysql8Configuration) HasVersion() bool {
if o != nil && !isNil(o.Version) {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *MysqlMysql8Configuration) SetVersion(v string) {
o.Version = &v
}
// GetDisplayVersion returns the DisplayVersion field value if set, zero value otherwise.
func (o *MysqlMysql8Configuration) GetDisplayVersion() string {
if o == nil || isNil(o.DisplayVersion) {
var ret string
return ret
}
return *o.DisplayVersion
}
// GetDisplayVersionOk returns a tuple with the DisplayVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlMysql8Configuration) GetDisplayVersionOk() (*string, bool) {
if o == nil || isNil(o.DisplayVersion) {
return nil, false
}
return o.DisplayVersion, true
}
// HasDisplayVersion returns a boolean if a field has been set.
func (o *MysqlMysql8Configuration) HasDisplayVersion() bool {
if o != nil && !isNil(o.DisplayVersion) {
return true
}
return false
}
// SetDisplayVersion gets a reference to the given string and assigns it to the DisplayVersion field.
func (o *MysqlMysql8Configuration) SetDisplayVersion(v string) {
o.DisplayVersion = &v
}
// GetParamConfig returns the ParamConfig field value if set, zero value otherwise.
func (o *MysqlMysql8Configuration) GetParamConfig() []StructuresParamConfig {
if o == nil || isNil(o.ParamConfig) {
var ret []StructuresParamConfig
return ret
}
return o.ParamConfig
}
// GetParamConfigOk returns a tuple with the ParamConfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlMysql8Configuration) GetParamConfigOk() ([]StructuresParamConfig, bool) {
if o == nil || isNil(o.ParamConfig) {
return nil, false
}
return o.ParamConfig, true
}
// HasParamConfig returns a boolean if a field has been set.
func (o *MysqlMysql8Configuration) HasParamConfig() bool {
if o != nil && !isNil(o.ParamConfig) {
return true
}
return false
}
// SetParamConfig gets a reference to the given []StructuresParamConfig and assigns it to the ParamConfig field.
func (o *MysqlMysql8Configuration) SetParamConfig(v []StructuresParamConfig) {
o.ParamConfig = v
}
// GetParamDefault returns the ParamDefault field value if set, zero value otherwise.
func (o *MysqlMysql8Configuration) GetParamDefault() map[string]string {
if o == nil || isNil(o.ParamDefault) {
var ret map[string]string
return ret
}
return *o.ParamDefault
}
// GetParamDefaultOk returns a tuple with the ParamDefault field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MysqlMysql8Configuration) GetParamDefaultOk() (*map[string]string, bool) {
if o == nil || isNil(o.ParamDefault) {
return nil, false
}
return o.ParamDefault, true
}
// HasParamDefault returns a boolean if a field has been set.
func (o *MysqlMysql8Configuration) HasParamDefault() bool {
if o != nil && !isNil(o.ParamDefault) {
return true
}
return false
}
// SetParamDefault gets a reference to the given map[string]string and assigns it to the ParamDefault field.
func (o *MysqlMysql8Configuration) SetParamDefault(v map[string]string) {
o.ParamDefault = &v
}
func (o MysqlMysql8Configuration) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.CpuCount) {
toSerialize["cpu_count"] = o.CpuCount
}
if !isNil(o.DiskSize) {
toSerialize["disk_size"] = o.DiskSize
}
if !isNil(o.Memory) {
toSerialize["memory"] = o.Memory
}
if !isNil(o.Version) {
toSerialize["version"] = o.Version
}
if !isNil(o.DisplayVersion) {
toSerialize["display_version"] = o.DisplayVersion
}
if !isNil(o.ParamConfig) {
toSerialize["param_config"] = o.ParamConfig
}
if !isNil(o.ParamDefault) {
toSerialize["param_default"] = o.ParamDefault
}
return json.Marshal(toSerialize)
}
type NullableMysqlMysql8Configuration struct {
value *MysqlMysql8Configuration
isSet bool
}
func (v NullableMysqlMysql8Configuration) Get() *MysqlMysql8Configuration {
return v.value
}
func (v *NullableMysqlMysql8Configuration) Set(val *MysqlMysql8Configuration) {
v.value = val
v.isSet = true
}
func (v NullableMysqlMysql8Configuration) IsSet() bool {
return v.isSet
}
func (v *NullableMysqlMysql8Configuration) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMysqlMysql8Configuration(val *MysqlMysql8Configuration) *NullableMysqlMysql8Configuration {
return &NullableMysqlMysql8Configuration{value: val, isSet: true}
}
func (v NullableMysqlMysql8Configuration) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMysqlMysql8Configuration) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}