/
model_ipam_pool_add_input.go
executable file
·524 lines (447 loc) · 16.4 KB
/
model_ipam_pool_add_input.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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
/*
* SOLIDserver API
*
* OpenAPI 3.0.2 API definition for SOLIDserver service from EfficientIP.<p>Copyright © 2000-2021 EfficientIP</p><p><em>All specifications and information regarding the products in this document are subject to change without notice and should not be construed as a commitment by EfficientIP. EfficientIP assumes no responsibility or liability for any mistakes or inaccuracies that may appear in this document. All statements and recommendations in this document are believed to be accurate but are presented without warranty. Users must take full responsibility for their application of any product.</em></p><p>Generated (Monday 14th of June 2021 12:30:34 PM)</p>
*
* API version: 2.0
* Contact: support-api@efficientip.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sdsclient
import (
"encoding/json"
)
// IpamPoolAddInput struct for IpamPoolAddInput
type IpamPoolAddInput struct {
// todo(here) :ipam.pool.add.input.pool_end_address_addr. : IPv4 address
PoolEndAddressAddr *string `json:"pool_end_address_addr,omitempty"`
// The size of the pool, the number of IP addresses it contains.
PoolSize *int32 `json:"pool_size,omitempty"`
// The database identifier (ID) of the space, a unique numeric key value automatically incremented when you add a space. Use the ID to specify the space of your choice.
SpaceId *int32 `json:"space_id,omitempty"`
// The name of the space.
SpaceName *string `json:"space_name,omitempty"`
// todo(here) :ipam.pool.add.input.pool_start_address_addr. : IPv4 address
PoolStartAddressAddr *string `json:"pool_start_address_addr,omitempty"`
// The database identifier (ID) of the IPv4 network, a unique numeric key value automatically incremented when you add an IPv4 network. Use the ID to specify the IPv4 network of your choice.
NetworkId *int32 `json:"network_id,omitempty"`
// The name of the IPv4 pool, each IPv4 pool must have a unique name.
PoolName *string `json:"pool_name,omitempty"`
// The reservation status of the IPv4 pool. If set 1, the IP addresses it contains cannot be assigned.
PoolReadOnly *int32 `json:"pool_read_only,omitempty"`
// class parameters you want to delete from the object
ClassParametersToDelete *[]string `json:"class_parameters_to_delete,omitempty"`
// The name of the class to apply to the object you are adding. You must specify the class file directory, e.g. <b>my_directory/my_class.class</b> . You cannot use the classes <b>global</b> and <b>default</b>, they are reserved by the system.
PoolClassName *string `json:"pool_class_name,omitempty"`
// class parameters in json format
PoolClassParameters *[]ApiClassParameterInputEntry `json:"pool_class_parameters,omitempty"`
// A way to bypass <b>(accept) </b>any enabled rule that would return warning messages. If the service returns an error message, you cannot bypass the enabled rules.
Warnings *string `json:"warnings,omitempty"`
}
// NewIpamPoolAddInput instantiates a new IpamPoolAddInput 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 NewIpamPoolAddInput() *IpamPoolAddInput {
this := IpamPoolAddInput{}
return &this
}
// NewIpamPoolAddInputWithDefaults instantiates a new IpamPoolAddInput 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 NewIpamPoolAddInputWithDefaults() *IpamPoolAddInput {
this := IpamPoolAddInput{}
return &this
}
// GetPoolEndAddressAddr returns the PoolEndAddressAddr field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetPoolEndAddressAddr() string {
if o == nil || o.PoolEndAddressAddr == nil {
var ret string
return ret
}
return *o.PoolEndAddressAddr
}
// GetPoolEndAddressAddrOk returns a tuple with the PoolEndAddressAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetPoolEndAddressAddrOk() (*string, bool) {
if o == nil || o.PoolEndAddressAddr == nil {
return nil, false
}
return o.PoolEndAddressAddr, true
}
// HasPoolEndAddressAddr returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasPoolEndAddressAddr() bool {
if o != nil && o.PoolEndAddressAddr != nil {
return true
}
return false
}
// SetPoolEndAddressAddr gets a reference to the given string and assigns it to the PoolEndAddressAddr field.
func (o *IpamPoolAddInput) SetPoolEndAddressAddr(v string) {
o.PoolEndAddressAddr = &v
}
// GetPoolSize returns the PoolSize field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetPoolSize() int32 {
if o == nil || o.PoolSize == nil {
var ret int32
return ret
}
return *o.PoolSize
}
// GetPoolSizeOk returns a tuple with the PoolSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetPoolSizeOk() (*int32, bool) {
if o == nil || o.PoolSize == nil {
return nil, false
}
return o.PoolSize, true
}
// HasPoolSize returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasPoolSize() bool {
if o != nil && o.PoolSize != nil {
return true
}
return false
}
// SetPoolSize gets a reference to the given int32 and assigns it to the PoolSize field.
func (o *IpamPoolAddInput) SetPoolSize(v int32) {
o.PoolSize = &v
}
// GetSpaceId returns the SpaceId field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetSpaceId() int32 {
if o == nil || o.SpaceId == nil {
var ret int32
return ret
}
return *o.SpaceId
}
// GetSpaceIdOk returns a tuple with the SpaceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetSpaceIdOk() (*int32, bool) {
if o == nil || o.SpaceId == nil {
return nil, false
}
return o.SpaceId, true
}
// HasSpaceId returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasSpaceId() bool {
if o != nil && o.SpaceId != nil {
return true
}
return false
}
// SetSpaceId gets a reference to the given int32 and assigns it to the SpaceId field.
func (o *IpamPoolAddInput) SetSpaceId(v int32) {
o.SpaceId = &v
}
// GetSpaceName returns the SpaceName field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetSpaceName() string {
if o == nil || o.SpaceName == nil {
var ret string
return ret
}
return *o.SpaceName
}
// GetSpaceNameOk returns a tuple with the SpaceName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetSpaceNameOk() (*string, bool) {
if o == nil || o.SpaceName == nil {
return nil, false
}
return o.SpaceName, true
}
// HasSpaceName returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasSpaceName() bool {
if o != nil && o.SpaceName != nil {
return true
}
return false
}
// SetSpaceName gets a reference to the given string and assigns it to the SpaceName field.
func (o *IpamPoolAddInput) SetSpaceName(v string) {
o.SpaceName = &v
}
// GetPoolStartAddressAddr returns the PoolStartAddressAddr field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetPoolStartAddressAddr() string {
if o == nil || o.PoolStartAddressAddr == nil {
var ret string
return ret
}
return *o.PoolStartAddressAddr
}
// GetPoolStartAddressAddrOk returns a tuple with the PoolStartAddressAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetPoolStartAddressAddrOk() (*string, bool) {
if o == nil || o.PoolStartAddressAddr == nil {
return nil, false
}
return o.PoolStartAddressAddr, true
}
// HasPoolStartAddressAddr returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasPoolStartAddressAddr() bool {
if o != nil && o.PoolStartAddressAddr != nil {
return true
}
return false
}
// SetPoolStartAddressAddr gets a reference to the given string and assigns it to the PoolStartAddressAddr field.
func (o *IpamPoolAddInput) SetPoolStartAddressAddr(v string) {
o.PoolStartAddressAddr = &v
}
// GetNetworkId returns the NetworkId field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetNetworkId() int32 {
if o == nil || o.NetworkId == nil {
var ret int32
return ret
}
return *o.NetworkId
}
// GetNetworkIdOk returns a tuple with the NetworkId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetNetworkIdOk() (*int32, bool) {
if o == nil || o.NetworkId == nil {
return nil, false
}
return o.NetworkId, true
}
// HasNetworkId returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasNetworkId() bool {
if o != nil && o.NetworkId != nil {
return true
}
return false
}
// SetNetworkId gets a reference to the given int32 and assigns it to the NetworkId field.
func (o *IpamPoolAddInput) SetNetworkId(v int32) {
o.NetworkId = &v
}
// GetPoolName returns the PoolName field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetPoolName() string {
if o == nil || o.PoolName == nil {
var ret string
return ret
}
return *o.PoolName
}
// GetPoolNameOk returns a tuple with the PoolName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetPoolNameOk() (*string, bool) {
if o == nil || o.PoolName == nil {
return nil, false
}
return o.PoolName, true
}
// HasPoolName returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasPoolName() bool {
if o != nil && o.PoolName != nil {
return true
}
return false
}
// SetPoolName gets a reference to the given string and assigns it to the PoolName field.
func (o *IpamPoolAddInput) SetPoolName(v string) {
o.PoolName = &v
}
// GetPoolReadOnly returns the PoolReadOnly field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetPoolReadOnly() int32 {
if o == nil || o.PoolReadOnly == nil {
var ret int32
return ret
}
return *o.PoolReadOnly
}
// GetPoolReadOnlyOk returns a tuple with the PoolReadOnly field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetPoolReadOnlyOk() (*int32, bool) {
if o == nil || o.PoolReadOnly == nil {
return nil, false
}
return o.PoolReadOnly, true
}
// HasPoolReadOnly returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasPoolReadOnly() bool {
if o != nil && o.PoolReadOnly != nil {
return true
}
return false
}
// SetPoolReadOnly gets a reference to the given int32 and assigns it to the PoolReadOnly field.
func (o *IpamPoolAddInput) SetPoolReadOnly(v int32) {
o.PoolReadOnly = &v
}
// GetClassParametersToDelete returns the ClassParametersToDelete field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetClassParametersToDelete() []string {
if o == nil || o.ClassParametersToDelete == nil {
var ret []string
return ret
}
return *o.ClassParametersToDelete
}
// GetClassParametersToDeleteOk returns a tuple with the ClassParametersToDelete field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetClassParametersToDeleteOk() (*[]string, bool) {
if o == nil || o.ClassParametersToDelete == nil {
return nil, false
}
return o.ClassParametersToDelete, true
}
// HasClassParametersToDelete returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasClassParametersToDelete() bool {
if o != nil && o.ClassParametersToDelete != nil {
return true
}
return false
}
// SetClassParametersToDelete gets a reference to the given []string and assigns it to the ClassParametersToDelete field.
func (o *IpamPoolAddInput) SetClassParametersToDelete(v []string) {
o.ClassParametersToDelete = &v
}
// GetPoolClassName returns the PoolClassName field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetPoolClassName() string {
if o == nil || o.PoolClassName == nil {
var ret string
return ret
}
return *o.PoolClassName
}
// GetPoolClassNameOk returns a tuple with the PoolClassName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetPoolClassNameOk() (*string, bool) {
if o == nil || o.PoolClassName == nil {
return nil, false
}
return o.PoolClassName, true
}
// HasPoolClassName returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasPoolClassName() bool {
if o != nil && o.PoolClassName != nil {
return true
}
return false
}
// SetPoolClassName gets a reference to the given string and assigns it to the PoolClassName field.
func (o *IpamPoolAddInput) SetPoolClassName(v string) {
o.PoolClassName = &v
}
// GetPoolClassParameters returns the PoolClassParameters field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetPoolClassParameters() []ApiClassParameterInputEntry {
if o == nil || o.PoolClassParameters == nil {
var ret []ApiClassParameterInputEntry
return ret
}
return *o.PoolClassParameters
}
// GetPoolClassParametersOk returns a tuple with the PoolClassParameters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetPoolClassParametersOk() (*[]ApiClassParameterInputEntry, bool) {
if o == nil || o.PoolClassParameters == nil {
return nil, false
}
return o.PoolClassParameters, true
}
// HasPoolClassParameters returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasPoolClassParameters() bool {
if o != nil && o.PoolClassParameters != nil {
return true
}
return false
}
// SetPoolClassParameters gets a reference to the given []ApiClassParameterInputEntry and assigns it to the PoolClassParameters field.
func (o *IpamPoolAddInput) SetPoolClassParameters(v []ApiClassParameterInputEntry) {
o.PoolClassParameters = &v
}
// GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *IpamPoolAddInput) GetWarnings() string {
if o == nil || o.Warnings == nil {
var ret string
return ret
}
return *o.Warnings
}
// GetWarningsOk returns a tuple with the Warnings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamPoolAddInput) GetWarningsOk() (*string, bool) {
if o == nil || o.Warnings == nil {
return nil, false
}
return o.Warnings, true
}
// HasWarnings returns a boolean if a field has been set.
func (o *IpamPoolAddInput) HasWarnings() bool {
if o != nil && o.Warnings != nil {
return true
}
return false
}
// SetWarnings gets a reference to the given string and assigns it to the Warnings field.
func (o *IpamPoolAddInput) SetWarnings(v string) {
o.Warnings = &v
}
func (o IpamPoolAddInput) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.PoolEndAddressAddr != nil {
toSerialize["pool_end_address_addr"] = o.PoolEndAddressAddr
}
if o.PoolSize != nil {
toSerialize["pool_size"] = o.PoolSize
}
if o.SpaceId != nil {
toSerialize["space_id"] = o.SpaceId
}
if o.SpaceName != nil {
toSerialize["space_name"] = o.SpaceName
}
if o.PoolStartAddressAddr != nil {
toSerialize["pool_start_address_addr"] = o.PoolStartAddressAddr
}
if o.NetworkId != nil {
toSerialize["network_id"] = o.NetworkId
}
if o.PoolName != nil {
toSerialize["pool_name"] = o.PoolName
}
if o.PoolReadOnly != nil {
toSerialize["pool_read_only"] = o.PoolReadOnly
}
if o.ClassParametersToDelete != nil {
toSerialize["class_parameters_to_delete"] = o.ClassParametersToDelete
}
if o.PoolClassName != nil {
toSerialize["pool_class_name"] = o.PoolClassName
}
if o.PoolClassParameters != nil {
toSerialize["pool_class_parameters"] = o.PoolClassParameters
}
if o.Warnings != nil {
toSerialize["warnings"] = o.Warnings
}
return json.Marshal(toSerialize)
}
type NullableIpamPoolAddInput struct {
value *IpamPoolAddInput
isSet bool
}
func (v NullableIpamPoolAddInput) Get() *IpamPoolAddInput {
return v.value
}
func (v *NullableIpamPoolAddInput) Set(val *IpamPoolAddInput) {
v.value = val
v.isSet = true
}
func (v NullableIpamPoolAddInput) IsSet() bool {
return v.isSet
}
func (v *NullableIpamPoolAddInput) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIpamPoolAddInput(val *IpamPoolAddInput) *NullableIpamPoolAddInput {
return &NullableIpamPoolAddInput{value: val, isSet: true}
}
func (v NullableIpamPoolAddInput) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIpamPoolAddInput) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}