/
model_dhcp_static_edit_input.go
executable file
·598 lines (511 loc) · 18.9 KB
/
model_dhcp_static_edit_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
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
/*
* 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"
)
// DhcpStaticEditInput struct for DhcpStaticEditInput
type DhcpStaticEditInput struct {
// The database identifier (ID) of the DHCPv4 server, a unique numeric key value automatically incremented when you add a DHCPv4 server. Use the ID to specify the DHCPv4 server of your choice.
ServerId *int32 `json:"server_id,omitempty"`
// The name of the DHCPv4 server.
ServerName *string `json:"server_name,omitempty"`
// The database identifier (ID) of the DHCPv4 static, a unique numeric key value automatically incremented when you add a DHCPv4 static. Use the ID to specify which DHCPv4 static to edit.
StaticId *int32 `json:"static_id,omitempty"`
// TODO:dhcp_static_add.input.static_identifier
StaticIdentifier *string `json:"static_identifier,omitempty"`
// The MAC address you want to associate with the IPv4 static, it must include the MAC address type. The address has 7 sections, <b>00:11:22:33:44:55:66</b> , where <b>00</b> indicates the type. For Ethernet, specify <b>01</b>.
StaticMacAddr *string `json:"static_mac_addr,omitempty"`
// The IP address of the DHCP server.
ServerHostaddr *string `json:"server_hostaddr,omitempty"`
// The database identifier (ID) of the DHCPv4 group, a unique numeric key value automatically incremented when you add a DHCPv4 group. Use the ID to specify the DHCPv4 group of your choice.
GroupId *int32 `json:"group_id,omitempty"`
// The name of the DHCPv4 group.
GroupName *string `json:"group_name,omitempty"`
// The IP address associated with the DHCPv4 static.
StaticAddr *string `json:"static_addr,omitempty"`
// The name of the DHCPv4 static, each DHCPv4 static must have a unique name.
StaticName *string `json:"static_name,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 editing. 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.
StaticClassName *string `json:"static_class_name,omitempty"`
// class parameters in json format
StaticClassParameters *[]ApiClassParameterInputEntry `json:"static_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"`
}
// NewDhcpStaticEditInput instantiates a new DhcpStaticEditInput 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 NewDhcpStaticEditInput() *DhcpStaticEditInput {
this := DhcpStaticEditInput{}
return &this
}
// NewDhcpStaticEditInputWithDefaults instantiates a new DhcpStaticEditInput 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 NewDhcpStaticEditInputWithDefaults() *DhcpStaticEditInput {
this := DhcpStaticEditInput{}
return &this
}
// GetServerId returns the ServerId field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetServerId() int32 {
if o == nil || o.ServerId == nil {
var ret int32
return ret
}
return *o.ServerId
}
// GetServerIdOk returns a tuple with the ServerId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetServerIdOk() (*int32, bool) {
if o == nil || o.ServerId == nil {
return nil, false
}
return o.ServerId, true
}
// HasServerId returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasServerId() bool {
if o != nil && o.ServerId != nil {
return true
}
return false
}
// SetServerId gets a reference to the given int32 and assigns it to the ServerId field.
func (o *DhcpStaticEditInput) SetServerId(v int32) {
o.ServerId = &v
}
// GetServerName returns the ServerName field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetServerName() string {
if o == nil || o.ServerName == nil {
var ret string
return ret
}
return *o.ServerName
}
// GetServerNameOk returns a tuple with the ServerName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetServerNameOk() (*string, bool) {
if o == nil || o.ServerName == nil {
return nil, false
}
return o.ServerName, true
}
// HasServerName returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasServerName() bool {
if o != nil && o.ServerName != nil {
return true
}
return false
}
// SetServerName gets a reference to the given string and assigns it to the ServerName field.
func (o *DhcpStaticEditInput) SetServerName(v string) {
o.ServerName = &v
}
// GetStaticId returns the StaticId field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetStaticId() int32 {
if o == nil || o.StaticId == nil {
var ret int32
return ret
}
return *o.StaticId
}
// GetStaticIdOk returns a tuple with the StaticId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetStaticIdOk() (*int32, bool) {
if o == nil || o.StaticId == nil {
return nil, false
}
return o.StaticId, true
}
// HasStaticId returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasStaticId() bool {
if o != nil && o.StaticId != nil {
return true
}
return false
}
// SetStaticId gets a reference to the given int32 and assigns it to the StaticId field.
func (o *DhcpStaticEditInput) SetStaticId(v int32) {
o.StaticId = &v
}
// GetStaticIdentifier returns the StaticIdentifier field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetStaticIdentifier() string {
if o == nil || o.StaticIdentifier == nil {
var ret string
return ret
}
return *o.StaticIdentifier
}
// GetStaticIdentifierOk returns a tuple with the StaticIdentifier field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetStaticIdentifierOk() (*string, bool) {
if o == nil || o.StaticIdentifier == nil {
return nil, false
}
return o.StaticIdentifier, true
}
// HasStaticIdentifier returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasStaticIdentifier() bool {
if o != nil && o.StaticIdentifier != nil {
return true
}
return false
}
// SetStaticIdentifier gets a reference to the given string and assigns it to the StaticIdentifier field.
func (o *DhcpStaticEditInput) SetStaticIdentifier(v string) {
o.StaticIdentifier = &v
}
// GetStaticMacAddr returns the StaticMacAddr field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetStaticMacAddr() string {
if o == nil || o.StaticMacAddr == nil {
var ret string
return ret
}
return *o.StaticMacAddr
}
// GetStaticMacAddrOk returns a tuple with the StaticMacAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetStaticMacAddrOk() (*string, bool) {
if o == nil || o.StaticMacAddr == nil {
return nil, false
}
return o.StaticMacAddr, true
}
// HasStaticMacAddr returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasStaticMacAddr() bool {
if o != nil && o.StaticMacAddr != nil {
return true
}
return false
}
// SetStaticMacAddr gets a reference to the given string and assigns it to the StaticMacAddr field.
func (o *DhcpStaticEditInput) SetStaticMacAddr(v string) {
o.StaticMacAddr = &v
}
// GetServerHostaddr returns the ServerHostaddr field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetServerHostaddr() string {
if o == nil || o.ServerHostaddr == nil {
var ret string
return ret
}
return *o.ServerHostaddr
}
// GetServerHostaddrOk returns a tuple with the ServerHostaddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetServerHostaddrOk() (*string, bool) {
if o == nil || o.ServerHostaddr == nil {
return nil, false
}
return o.ServerHostaddr, true
}
// HasServerHostaddr returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasServerHostaddr() bool {
if o != nil && o.ServerHostaddr != nil {
return true
}
return false
}
// SetServerHostaddr gets a reference to the given string and assigns it to the ServerHostaddr field.
func (o *DhcpStaticEditInput) SetServerHostaddr(v string) {
o.ServerHostaddr = &v
}
// GetGroupId returns the GroupId field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetGroupId() int32 {
if o == nil || o.GroupId == nil {
var ret int32
return ret
}
return *o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetGroupIdOk() (*int32, bool) {
if o == nil || o.GroupId == nil {
return nil, false
}
return o.GroupId, true
}
// HasGroupId returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasGroupId() bool {
if o != nil && o.GroupId != nil {
return true
}
return false
}
// SetGroupId gets a reference to the given int32 and assigns it to the GroupId field.
func (o *DhcpStaticEditInput) SetGroupId(v int32) {
o.GroupId = &v
}
// GetGroupName returns the GroupName field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetGroupName() string {
if o == nil || o.GroupName == nil {
var ret string
return ret
}
return *o.GroupName
}
// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetGroupNameOk() (*string, bool) {
if o == nil || o.GroupName == nil {
return nil, false
}
return o.GroupName, true
}
// HasGroupName returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasGroupName() bool {
if o != nil && o.GroupName != nil {
return true
}
return false
}
// SetGroupName gets a reference to the given string and assigns it to the GroupName field.
func (o *DhcpStaticEditInput) SetGroupName(v string) {
o.GroupName = &v
}
// GetStaticAddr returns the StaticAddr field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetStaticAddr() string {
if o == nil || o.StaticAddr == nil {
var ret string
return ret
}
return *o.StaticAddr
}
// GetStaticAddrOk returns a tuple with the StaticAddr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetStaticAddrOk() (*string, bool) {
if o == nil || o.StaticAddr == nil {
return nil, false
}
return o.StaticAddr, true
}
// HasStaticAddr returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasStaticAddr() bool {
if o != nil && o.StaticAddr != nil {
return true
}
return false
}
// SetStaticAddr gets a reference to the given string and assigns it to the StaticAddr field.
func (o *DhcpStaticEditInput) SetStaticAddr(v string) {
o.StaticAddr = &v
}
// GetStaticName returns the StaticName field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetStaticName() string {
if o == nil || o.StaticName == nil {
var ret string
return ret
}
return *o.StaticName
}
// GetStaticNameOk returns a tuple with the StaticName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetStaticNameOk() (*string, bool) {
if o == nil || o.StaticName == nil {
return nil, false
}
return o.StaticName, true
}
// HasStaticName returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasStaticName() bool {
if o != nil && o.StaticName != nil {
return true
}
return false
}
// SetStaticName gets a reference to the given string and assigns it to the StaticName field.
func (o *DhcpStaticEditInput) SetStaticName(v string) {
o.StaticName = &v
}
// GetClassParametersToDelete returns the ClassParametersToDelete field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) 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 *DhcpStaticEditInput) 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 *DhcpStaticEditInput) 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 *DhcpStaticEditInput) SetClassParametersToDelete(v []string) {
o.ClassParametersToDelete = &v
}
// GetStaticClassName returns the StaticClassName field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetStaticClassName() string {
if o == nil || o.StaticClassName == nil {
var ret string
return ret
}
return *o.StaticClassName
}
// GetStaticClassNameOk returns a tuple with the StaticClassName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetStaticClassNameOk() (*string, bool) {
if o == nil || o.StaticClassName == nil {
return nil, false
}
return o.StaticClassName, true
}
// HasStaticClassName returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasStaticClassName() bool {
if o != nil && o.StaticClassName != nil {
return true
}
return false
}
// SetStaticClassName gets a reference to the given string and assigns it to the StaticClassName field.
func (o *DhcpStaticEditInput) SetStaticClassName(v string) {
o.StaticClassName = &v
}
// GetStaticClassParameters returns the StaticClassParameters field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) GetStaticClassParameters() []ApiClassParameterInputEntry {
if o == nil || o.StaticClassParameters == nil {
var ret []ApiClassParameterInputEntry
return ret
}
return *o.StaticClassParameters
}
// GetStaticClassParametersOk returns a tuple with the StaticClassParameters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DhcpStaticEditInput) GetStaticClassParametersOk() (*[]ApiClassParameterInputEntry, bool) {
if o == nil || o.StaticClassParameters == nil {
return nil, false
}
return o.StaticClassParameters, true
}
// HasStaticClassParameters returns a boolean if a field has been set.
func (o *DhcpStaticEditInput) HasStaticClassParameters() bool {
if o != nil && o.StaticClassParameters != nil {
return true
}
return false
}
// SetStaticClassParameters gets a reference to the given []ApiClassParameterInputEntry and assigns it to the StaticClassParameters field.
func (o *DhcpStaticEditInput) SetStaticClassParameters(v []ApiClassParameterInputEntry) {
o.StaticClassParameters = &v
}
// GetWarnings returns the Warnings field value if set, zero value otherwise.
func (o *DhcpStaticEditInput) 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 *DhcpStaticEditInput) 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 *DhcpStaticEditInput) 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 *DhcpStaticEditInput) SetWarnings(v string) {
o.Warnings = &v
}
func (o DhcpStaticEditInput) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.ServerId != nil {
toSerialize["server_id"] = o.ServerId
}
if o.ServerName != nil {
toSerialize["server_name"] = o.ServerName
}
if o.StaticId != nil {
toSerialize["static_id"] = o.StaticId
}
if o.StaticIdentifier != nil {
toSerialize["static_identifier"] = o.StaticIdentifier
}
if o.StaticMacAddr != nil {
toSerialize["static_mac_addr"] = o.StaticMacAddr
}
if o.ServerHostaddr != nil {
toSerialize["server_hostaddr"] = o.ServerHostaddr
}
if o.GroupId != nil {
toSerialize["group_id"] = o.GroupId
}
if o.GroupName != nil {
toSerialize["group_name"] = o.GroupName
}
if o.StaticAddr != nil {
toSerialize["static_addr"] = o.StaticAddr
}
if o.StaticName != nil {
toSerialize["static_name"] = o.StaticName
}
if o.ClassParametersToDelete != nil {
toSerialize["class_parameters_to_delete"] = o.ClassParametersToDelete
}
if o.StaticClassName != nil {
toSerialize["static_class_name"] = o.StaticClassName
}
if o.StaticClassParameters != nil {
toSerialize["static_class_parameters"] = o.StaticClassParameters
}
if o.Warnings != nil {
toSerialize["warnings"] = o.Warnings
}
return json.Marshal(toSerialize)
}
type NullableDhcpStaticEditInput struct {
value *DhcpStaticEditInput
isSet bool
}
func (v NullableDhcpStaticEditInput) Get() *DhcpStaticEditInput {
return v.value
}
func (v *NullableDhcpStaticEditInput) Set(val *DhcpStaticEditInput) {
v.value = val
v.isSet = true
}
func (v NullableDhcpStaticEditInput) IsSet() bool {
return v.isSet
}
func (v *NullableDhcpStaticEditInput) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDhcpStaticEditInput(val *DhcpStaticEditInput) *NullableDhcpStaticEditInput {
return &NullableDhcpStaticEditInput{value: val, isSet: true}
}
func (v NullableDhcpStaticEditInput) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDhcpStaticEditInput) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}