/
model_ipam_space_data_data.go
executable file
·487 lines (415 loc) · 17.6 KB
/
model_ipam_space_data_data.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
/*
* 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"
)
// IpamSpaceDataData struct for IpamSpaceDataData
type IpamSpaceDataData struct {
// The Multi-status information is displayed as follows: <i><number-of-instances>@<message-number>@<multi-status-severity>@<module></i>. The different severity levels are:<br><b>Multi-status severity levels</b> <table border=1> <thead> <tr > <td><b>Message number</b></td> <td><b>Severity</b></td> <td><b>Description</b></td> </tr> </thead> <tbody> <tr valign=middle> <td>0 - 16</td> <td>Emergency</td> <td>The object configuration prevents the system from running properly. Action is required.</td> </tr> <tr valign=middle> <td>17 - 33</td> <td>Critical</td> <td>The object configuration is in critical conditions. Immediate action is recommended.</td> </tr> <tr valign=middle> <td>34 - 50</td> <td>Error</td> <td>The object configuration failed at some level. Action is recommended.</td> </tr> <tr valign=middle> <td>51 - 66</td> <td>Warning</td> <td>The object configuration triggers error messages if no action is taken. Action to be taken at your discretion.</td> </tr> <tr valign=middle> <td>67 - 83</td> <td>Notice</td> <td>The object configuration is normal but undergoing events that might trigger errors. No immediate action required.</td> </tr> <tr valign=middle> <td>84 - 100</td> <td>Informational</td> <td>The object configuration is normal, operational messages (might inform you about potential incompatibilities with other modules, etc). No action required.</td> </tr> </tbody></table>
SpaceMultistatus *string `json:"space_multistatus,omitempty"`
// The name of the class applied to the VLSM parent space, it can be preceded by the class directory.
ParentSpaceClassName *string `json:"parent_space_class_name,omitempty"`
// The class parameters applied to the VLSM parent space and their value: <b><class-parameter1>=<value1>&<class-parameter2>=<value2>&...</b> .
ParentSpaceClassParameters *[]ApiClassParameterOutputEntry `json:"parent_space_class_parameters,omitempty"`
// The database identifier (ID) of the VLSM parent space. <b>0</b> indicates that space has no parent space.
ParentSpaceId *string `json:"parent_space_id,omitempty"`
// The name of the VLSM parent space. <b>#</b> indicates that space has no parent space.
ParentSpaceName *string `json:"parent_space_name,omitempty"`
// The name of the class applied to the space, it can be preceded by the class directory.
SpaceClassName *string `json:"space_class_name,omitempty"`
// #general.output.class_parameters#
SpaceClassParameters *[]ApiClassParameterOutputEntry `json:"space_class_parameters,omitempty"`
// The description of the space.
SpaceDescription *string `json:"space_description,omitempty"`
// The database identifier (ID) of the space.
SpaceId *string `json:"space_id,omitempty"`
// The template status of the space. If the space is used as template (<b>1</b>), all the IPv4 networks, pools and IP addresses it contains are also used as template.
SpaceIsTemplate *string `json:"space_is_template,omitempty"`
// The name of the space.
SpaceName *string `json:"space_name,omitempty"`
}
// NewIpamSpaceDataData instantiates a new IpamSpaceDataData 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 NewIpamSpaceDataData() *IpamSpaceDataData {
this := IpamSpaceDataData{}
return &this
}
// NewIpamSpaceDataDataWithDefaults instantiates a new IpamSpaceDataData 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 NewIpamSpaceDataDataWithDefaults() *IpamSpaceDataData {
this := IpamSpaceDataData{}
return &this
}
// GetSpaceMultistatus returns the SpaceMultistatus field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetSpaceMultistatus() string {
if o == nil || o.SpaceMultistatus == nil {
var ret string
return ret
}
return *o.SpaceMultistatus
}
// GetSpaceMultistatusOk returns a tuple with the SpaceMultistatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetSpaceMultistatusOk() (*string, bool) {
if o == nil || o.SpaceMultistatus == nil {
return nil, false
}
return o.SpaceMultistatus, true
}
// HasSpaceMultistatus returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasSpaceMultistatus() bool {
if o != nil && o.SpaceMultistatus != nil {
return true
}
return false
}
// SetSpaceMultistatus gets a reference to the given string and assigns it to the SpaceMultistatus field.
func (o *IpamSpaceDataData) SetSpaceMultistatus(v string) {
o.SpaceMultistatus = &v
}
// GetParentSpaceClassName returns the ParentSpaceClassName field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetParentSpaceClassName() string {
if o == nil || o.ParentSpaceClassName == nil {
var ret string
return ret
}
return *o.ParentSpaceClassName
}
// GetParentSpaceClassNameOk returns a tuple with the ParentSpaceClassName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetParentSpaceClassNameOk() (*string, bool) {
if o == nil || o.ParentSpaceClassName == nil {
return nil, false
}
return o.ParentSpaceClassName, true
}
// HasParentSpaceClassName returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasParentSpaceClassName() bool {
if o != nil && o.ParentSpaceClassName != nil {
return true
}
return false
}
// SetParentSpaceClassName gets a reference to the given string and assigns it to the ParentSpaceClassName field.
func (o *IpamSpaceDataData) SetParentSpaceClassName(v string) {
o.ParentSpaceClassName = &v
}
// GetParentSpaceClassParameters returns the ParentSpaceClassParameters field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetParentSpaceClassParameters() []ApiClassParameterOutputEntry {
if o == nil || o.ParentSpaceClassParameters == nil {
var ret []ApiClassParameterOutputEntry
return ret
}
return *o.ParentSpaceClassParameters
}
// GetParentSpaceClassParametersOk returns a tuple with the ParentSpaceClassParameters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetParentSpaceClassParametersOk() (*[]ApiClassParameterOutputEntry, bool) {
if o == nil || o.ParentSpaceClassParameters == nil {
return nil, false
}
return o.ParentSpaceClassParameters, true
}
// HasParentSpaceClassParameters returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasParentSpaceClassParameters() bool {
if o != nil && o.ParentSpaceClassParameters != nil {
return true
}
return false
}
// SetParentSpaceClassParameters gets a reference to the given []ApiClassParameterOutputEntry and assigns it to the ParentSpaceClassParameters field.
func (o *IpamSpaceDataData) SetParentSpaceClassParameters(v []ApiClassParameterOutputEntry) {
o.ParentSpaceClassParameters = &v
}
// GetParentSpaceId returns the ParentSpaceId field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetParentSpaceId() string {
if o == nil || o.ParentSpaceId == nil {
var ret string
return ret
}
return *o.ParentSpaceId
}
// GetParentSpaceIdOk returns a tuple with the ParentSpaceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetParentSpaceIdOk() (*string, bool) {
if o == nil || o.ParentSpaceId == nil {
return nil, false
}
return o.ParentSpaceId, true
}
// HasParentSpaceId returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasParentSpaceId() bool {
if o != nil && o.ParentSpaceId != nil {
return true
}
return false
}
// SetParentSpaceId gets a reference to the given string and assigns it to the ParentSpaceId field.
func (o *IpamSpaceDataData) SetParentSpaceId(v string) {
o.ParentSpaceId = &v
}
// GetParentSpaceName returns the ParentSpaceName field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetParentSpaceName() string {
if o == nil || o.ParentSpaceName == nil {
var ret string
return ret
}
return *o.ParentSpaceName
}
// GetParentSpaceNameOk returns a tuple with the ParentSpaceName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetParentSpaceNameOk() (*string, bool) {
if o == nil || o.ParentSpaceName == nil {
return nil, false
}
return o.ParentSpaceName, true
}
// HasParentSpaceName returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasParentSpaceName() bool {
if o != nil && o.ParentSpaceName != nil {
return true
}
return false
}
// SetParentSpaceName gets a reference to the given string and assigns it to the ParentSpaceName field.
func (o *IpamSpaceDataData) SetParentSpaceName(v string) {
o.ParentSpaceName = &v
}
// GetSpaceClassName returns the SpaceClassName field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetSpaceClassName() string {
if o == nil || o.SpaceClassName == nil {
var ret string
return ret
}
return *o.SpaceClassName
}
// GetSpaceClassNameOk returns a tuple with the SpaceClassName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetSpaceClassNameOk() (*string, bool) {
if o == nil || o.SpaceClassName == nil {
return nil, false
}
return o.SpaceClassName, true
}
// HasSpaceClassName returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasSpaceClassName() bool {
if o != nil && o.SpaceClassName != nil {
return true
}
return false
}
// SetSpaceClassName gets a reference to the given string and assigns it to the SpaceClassName field.
func (o *IpamSpaceDataData) SetSpaceClassName(v string) {
o.SpaceClassName = &v
}
// GetSpaceClassParameters returns the SpaceClassParameters field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetSpaceClassParameters() []ApiClassParameterOutputEntry {
if o == nil || o.SpaceClassParameters == nil {
var ret []ApiClassParameterOutputEntry
return ret
}
return *o.SpaceClassParameters
}
// GetSpaceClassParametersOk returns a tuple with the SpaceClassParameters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetSpaceClassParametersOk() (*[]ApiClassParameterOutputEntry, bool) {
if o == nil || o.SpaceClassParameters == nil {
return nil, false
}
return o.SpaceClassParameters, true
}
// HasSpaceClassParameters returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasSpaceClassParameters() bool {
if o != nil && o.SpaceClassParameters != nil {
return true
}
return false
}
// SetSpaceClassParameters gets a reference to the given []ApiClassParameterOutputEntry and assigns it to the SpaceClassParameters field.
func (o *IpamSpaceDataData) SetSpaceClassParameters(v []ApiClassParameterOutputEntry) {
o.SpaceClassParameters = &v
}
// GetSpaceDescription returns the SpaceDescription field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetSpaceDescription() string {
if o == nil || o.SpaceDescription == nil {
var ret string
return ret
}
return *o.SpaceDescription
}
// GetSpaceDescriptionOk returns a tuple with the SpaceDescription field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetSpaceDescriptionOk() (*string, bool) {
if o == nil || o.SpaceDescription == nil {
return nil, false
}
return o.SpaceDescription, true
}
// HasSpaceDescription returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasSpaceDescription() bool {
if o != nil && o.SpaceDescription != nil {
return true
}
return false
}
// SetSpaceDescription gets a reference to the given string and assigns it to the SpaceDescription field.
func (o *IpamSpaceDataData) SetSpaceDescription(v string) {
o.SpaceDescription = &v
}
// GetSpaceId returns the SpaceId field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetSpaceId() string {
if o == nil || o.SpaceId == nil {
var ret string
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 *IpamSpaceDataData) GetSpaceIdOk() (*string, 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 *IpamSpaceDataData) HasSpaceId() bool {
if o != nil && o.SpaceId != nil {
return true
}
return false
}
// SetSpaceId gets a reference to the given string and assigns it to the SpaceId field.
func (o *IpamSpaceDataData) SetSpaceId(v string) {
o.SpaceId = &v
}
// GetSpaceIsTemplate returns the SpaceIsTemplate field value if set, zero value otherwise.
func (o *IpamSpaceDataData) GetSpaceIsTemplate() string {
if o == nil || o.SpaceIsTemplate == nil {
var ret string
return ret
}
return *o.SpaceIsTemplate
}
// GetSpaceIsTemplateOk returns a tuple with the SpaceIsTemplate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *IpamSpaceDataData) GetSpaceIsTemplateOk() (*string, bool) {
if o == nil || o.SpaceIsTemplate == nil {
return nil, false
}
return o.SpaceIsTemplate, true
}
// HasSpaceIsTemplate returns a boolean if a field has been set.
func (o *IpamSpaceDataData) HasSpaceIsTemplate() bool {
if o != nil && o.SpaceIsTemplate != nil {
return true
}
return false
}
// SetSpaceIsTemplate gets a reference to the given string and assigns it to the SpaceIsTemplate field.
func (o *IpamSpaceDataData) SetSpaceIsTemplate(v string) {
o.SpaceIsTemplate = &v
}
// GetSpaceName returns the SpaceName field value if set, zero value otherwise.
func (o *IpamSpaceDataData) 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 *IpamSpaceDataData) 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 *IpamSpaceDataData) 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 *IpamSpaceDataData) SetSpaceName(v string) {
o.SpaceName = &v
}
func (o IpamSpaceDataData) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.SpaceMultistatus != nil {
toSerialize["space_multistatus"] = o.SpaceMultistatus
}
if o.ParentSpaceClassName != nil {
toSerialize["parent_space_class_name"] = o.ParentSpaceClassName
}
if o.ParentSpaceClassParameters != nil {
toSerialize["parent_space_class_parameters"] = o.ParentSpaceClassParameters
}
if o.ParentSpaceId != nil {
toSerialize["parent_space_id"] = o.ParentSpaceId
}
if o.ParentSpaceName != nil {
toSerialize["parent_space_name"] = o.ParentSpaceName
}
if o.SpaceClassName != nil {
toSerialize["space_class_name"] = o.SpaceClassName
}
if o.SpaceClassParameters != nil {
toSerialize["space_class_parameters"] = o.SpaceClassParameters
}
if o.SpaceDescription != nil {
toSerialize["space_description"] = o.SpaceDescription
}
if o.SpaceId != nil {
toSerialize["space_id"] = o.SpaceId
}
if o.SpaceIsTemplate != nil {
toSerialize["space_is_template"] = o.SpaceIsTemplate
}
if o.SpaceName != nil {
toSerialize["space_name"] = o.SpaceName
}
return json.Marshal(toSerialize)
}
type NullableIpamSpaceDataData struct {
value *IpamSpaceDataData
isSet bool
}
func (v NullableIpamSpaceDataData) Get() *IpamSpaceDataData {
return v.value
}
func (v *NullableIpamSpaceDataData) Set(val *IpamSpaceDataData) {
v.value = val
v.isSet = true
}
func (v NullableIpamSpaceDataData) IsSet() bool {
return v.isSet
}
func (v *NullableIpamSpaceDataData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableIpamSpaceDataData(val *IpamSpaceDataData) *NullableIpamSpaceDataData {
return &NullableIpamSpaceDataData{value: val, isSet: true}
}
func (v NullableIpamSpaceDataData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableIpamSpaceDataData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}