-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_postgresql_postgresql14_configuration.go
331 lines (277 loc) · 9.96 KB
/
model_postgresql_postgresql14_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"
)
// PostgresqlPostgresql14Configuration struct for PostgresqlPostgresql14Configuration
type PostgresqlPostgresql14Configuration 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"`
}
// NewPostgresqlPostgresql14Configuration instantiates a new PostgresqlPostgresql14Configuration 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 NewPostgresqlPostgresql14Configuration() *PostgresqlPostgresql14Configuration {
this := PostgresqlPostgresql14Configuration{}
return &this
}
// NewPostgresqlPostgresql14ConfigurationWithDefaults instantiates a new PostgresqlPostgresql14Configuration 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 NewPostgresqlPostgresql14ConfigurationWithDefaults() *PostgresqlPostgresql14Configuration {
this := PostgresqlPostgresql14Configuration{}
return &this
}
// GetCpuCount returns the CpuCount field value if set, zero value otherwise.
func (o *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) SetCpuCount(v int32) {
o.CpuCount = &v
}
// GetDiskSize returns the DiskSize field value if set, zero value otherwise.
func (o *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) SetDiskSize(v int32) {
o.DiskSize = &v
}
// GetMemory returns the Memory field value if set, zero value otherwise.
func (o *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) SetMemory(v int32) {
o.Memory = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) SetVersion(v string) {
o.Version = &v
}
// GetDisplayVersion returns the DisplayVersion field value if set, zero value otherwise.
func (o *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) SetDisplayVersion(v string) {
o.DisplayVersion = &v
}
// GetParamConfig returns the ParamConfig field value if set, zero value otherwise.
func (o *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) SetParamConfig(v []StructuresParamConfig) {
o.ParamConfig = v
}
// GetParamDefault returns the ParamDefault field value if set, zero value otherwise.
func (o *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) 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 *PostgresqlPostgresql14Configuration) SetParamDefault(v map[string]string) {
o.ParamDefault = &v
}
func (o PostgresqlPostgresql14Configuration) 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 NullablePostgresqlPostgresql14Configuration struct {
value *PostgresqlPostgresql14Configuration
isSet bool
}
func (v NullablePostgresqlPostgresql14Configuration) Get() *PostgresqlPostgresql14Configuration {
return v.value
}
func (v *NullablePostgresqlPostgresql14Configuration) Set(val *PostgresqlPostgresql14Configuration) {
v.value = val
v.isSet = true
}
func (v NullablePostgresqlPostgresql14Configuration) IsSet() bool {
return v.isSet
}
func (v *NullablePostgresqlPostgresql14Configuration) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePostgresqlPostgresql14Configuration(val *PostgresqlPostgresql14Configuration) *NullablePostgresqlPostgresql14Configuration {
return &NullablePostgresqlPostgresql14Configuration{value: val, isSet: true}
}
func (v NullablePostgresqlPostgresql14Configuration) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePostgresqlPostgresql14Configuration) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}