-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_bulk_writable_device_request.go
1572 lines (1350 loc) · 54.5 KB
/
model_bulk_writable_device_request.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
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
API Documentation
Source of truth and network automation platform
API version: 2.3.4 (2.3)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package nautobot
import (
"encoding/json"
"fmt"
)
// checks if the BulkWritableDeviceRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BulkWritableDeviceRequest{}
// BulkWritableDeviceRequest Base class to use for serializers based on OrganizationalModel or PrimaryModel. Can also be used for models derived from BaseModel, so long as they support custom fields, notes, and relationships.
type BulkWritableDeviceRequest struct {
Id string `json:"id"`
Face *FaceEnum `json:"face,omitempty"`
LocalConfigContextData interface{} `json:"local_config_context_data,omitempty"`
LocalConfigContextDataOwnerObjectId NullableString `json:"local_config_context_data_owner_object_id,omitempty"`
Name NullableString `json:"name,omitempty"`
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
AssetTag NullableString `json:"asset_tag,omitempty"`
// The lowest-numbered unit occupied by the device
Position NullableInt32 `json:"position,omitempty"`
// The priority the device has in the device redundancy group.
DeviceRedundancyGroupPriority NullableInt32 `json:"device_redundancy_group_priority,omitempty"`
VcPosition NullableInt32 `json:"vc_position,omitempty"`
VcPriority NullableInt32 `json:"vc_priority,omitempty"`
Comments *string `json:"comments,omitempty"`
LocalConfigContextSchema NullableBulkWritableConfigContextRequestConfigContextSchema `json:"local_config_context_schema,omitempty"`
LocalConfigContextDataOwnerContentType NullableBulkWritableCircuitRequestTenant `json:"local_config_context_data_owner_content_type,omitempty"`
DeviceType BulkWritableCableRequestStatus `json:"device_type"`
Status BulkWritableCableRequestStatus `json:"status"`
Role BulkWritableCableRequestStatus `json:"role"`
Tenant NullableBulkWritableCircuitRequestTenant `json:"tenant,omitempty"`
Platform NullableBulkWritableCircuitRequestTenant `json:"platform,omitempty"`
Location BulkWritableCableRequestStatus `json:"location"`
Rack NullableBulkWritableCircuitRequestTenant `json:"rack,omitempty"`
PrimaryIp4 NullablePrimaryIPv4 `json:"primary_ip4,omitempty"`
PrimaryIp6 NullablePrimaryIPv6 `json:"primary_ip6,omitempty"`
Cluster NullableBulkWritableCircuitRequestTenant `json:"cluster,omitempty"`
VirtualChassis NullableBulkWritableCircuitRequestTenant `json:"virtual_chassis,omitempty"`
DeviceRedundancyGroup NullableBulkWritableCircuitRequestTenant `json:"device_redundancy_group,omitempty"`
SoftwareVersion NullableBulkWritableDeviceRequestSoftwareVersion `json:"software_version,omitempty"`
SecretsGroup NullableBulkWritableCircuitRequestTenant `json:"secrets_group,omitempty"`
ControllerManagedDeviceGroup NullableBulkWritableCircuitRequestTenant `json:"controller_managed_device_group,omitempty"`
// Override the software image files associated with the software version for this device
SoftwareImageFiles []SoftwareImageFiles `json:"software_image_files,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
Relationships *map[string]BulkWritableCableRequestRelationshipsValue `json:"relationships,omitempty"`
Tags []BulkWritableCableRequestStatus `json:"tags,omitempty"`
ParentBay NullableBulkWritableCircuitRequestTenant `json:"parent_bay,omitempty"`
AdditionalProperties map[string]interface{}
}
type _BulkWritableDeviceRequest BulkWritableDeviceRequest
// NewBulkWritableDeviceRequest instantiates a new BulkWritableDeviceRequest 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 NewBulkWritableDeviceRequest(id string, deviceType BulkWritableCableRequestStatus, status BulkWritableCableRequestStatus, role BulkWritableCableRequestStatus, location BulkWritableCableRequestStatus) *BulkWritableDeviceRequest {
this := BulkWritableDeviceRequest{}
this.Id = id
this.DeviceType = deviceType
this.Status = status
this.Role = role
this.Location = location
return &this
}
// NewBulkWritableDeviceRequestWithDefaults instantiates a new BulkWritableDeviceRequest 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 NewBulkWritableDeviceRequestWithDefaults() *BulkWritableDeviceRequest {
this := BulkWritableDeviceRequest{}
return &this
}
// GetId returns the Id field value
func (o *BulkWritableDeviceRequest) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *BulkWritableDeviceRequest) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *BulkWritableDeviceRequest) SetId(v string) {
o.Id = v
}
// GetFace returns the Face field value if set, zero value otherwise.
func (o *BulkWritableDeviceRequest) GetFace() FaceEnum {
if o == nil || IsNil(o.Face) {
var ret FaceEnum
return ret
}
return *o.Face
}
// GetFaceOk returns a tuple with the Face field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BulkWritableDeviceRequest) GetFaceOk() (*FaceEnum, bool) {
if o == nil || IsNil(o.Face) {
return nil, false
}
return o.Face, true
}
// HasFace returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasFace() bool {
if o != nil && !IsNil(o.Face) {
return true
}
return false
}
// SetFace gets a reference to the given FaceEnum and assigns it to the Face field.
func (o *BulkWritableDeviceRequest) SetFace(v FaceEnum) {
o.Face = &v
}
// GetLocalConfigContextData returns the LocalConfigContextData field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetLocalConfigContextData() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.LocalConfigContextData
}
// GetLocalConfigContextDataOk returns a tuple with the LocalConfigContextData field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetLocalConfigContextDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.LocalConfigContextData) {
return nil, false
}
return &o.LocalConfigContextData, true
}
// HasLocalConfigContextData returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasLocalConfigContextData() bool {
if o != nil && !IsNil(o.LocalConfigContextData) {
return true
}
return false
}
// SetLocalConfigContextData gets a reference to the given interface{} and assigns it to the LocalConfigContextData field.
func (o *BulkWritableDeviceRequest) SetLocalConfigContextData(v interface{}) {
o.LocalConfigContextData = v
}
// GetLocalConfigContextDataOwnerObjectId returns the LocalConfigContextDataOwnerObjectId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetLocalConfigContextDataOwnerObjectId() string {
if o == nil || IsNil(o.LocalConfigContextDataOwnerObjectId.Get()) {
var ret string
return ret
}
return *o.LocalConfigContextDataOwnerObjectId.Get()
}
// GetLocalConfigContextDataOwnerObjectIdOk returns a tuple with the LocalConfigContextDataOwnerObjectId field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetLocalConfigContextDataOwnerObjectIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.LocalConfigContextDataOwnerObjectId.Get(), o.LocalConfigContextDataOwnerObjectId.IsSet()
}
// HasLocalConfigContextDataOwnerObjectId returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasLocalConfigContextDataOwnerObjectId() bool {
if o != nil && o.LocalConfigContextDataOwnerObjectId.IsSet() {
return true
}
return false
}
// SetLocalConfigContextDataOwnerObjectId gets a reference to the given NullableString and assigns it to the LocalConfigContextDataOwnerObjectId field.
func (o *BulkWritableDeviceRequest) SetLocalConfigContextDataOwnerObjectId(v string) {
o.LocalConfigContextDataOwnerObjectId.Set(&v)
}
// SetLocalConfigContextDataOwnerObjectIdNil sets the value for LocalConfigContextDataOwnerObjectId to be an explicit nil
func (o *BulkWritableDeviceRequest) SetLocalConfigContextDataOwnerObjectIdNil() {
o.LocalConfigContextDataOwnerObjectId.Set(nil)
}
// UnsetLocalConfigContextDataOwnerObjectId ensures that no value is present for LocalConfigContextDataOwnerObjectId, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetLocalConfigContextDataOwnerObjectId() {
o.LocalConfigContextDataOwnerObjectId.Unset()
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
var ret string
return ret
}
return *o.Name.Get()
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Name.Get(), o.Name.IsSet()
}
// HasName returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasName() bool {
if o != nil && o.Name.IsSet() {
return true
}
return false
}
// SetName gets a reference to the given NullableString and assigns it to the Name field.
func (o *BulkWritableDeviceRequest) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *BulkWritableDeviceRequest) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetName() {
o.Name.Unset()
}
// GetSerial returns the Serial field value if set, zero value otherwise.
func (o *BulkWritableDeviceRequest) GetSerial() string {
if o == nil || IsNil(o.Serial) {
var ret string
return ret
}
return *o.Serial
}
// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BulkWritableDeviceRequest) GetSerialOk() (*string, bool) {
if o == nil || IsNil(o.Serial) {
return nil, false
}
return o.Serial, true
}
// HasSerial returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasSerial() bool {
if o != nil && !IsNil(o.Serial) {
return true
}
return false
}
// SetSerial gets a reference to the given string and assigns it to the Serial field.
func (o *BulkWritableDeviceRequest) SetSerial(v string) {
o.Serial = &v
}
// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetAssetTag() string {
if o == nil || IsNil(o.AssetTag.Get()) {
var ret string
return ret
}
return *o.AssetTag.Get()
}
// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetAssetTagOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AssetTag.Get(), o.AssetTag.IsSet()
}
// HasAssetTag returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasAssetTag() bool {
if o != nil && o.AssetTag.IsSet() {
return true
}
return false
}
// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field.
func (o *BulkWritableDeviceRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *BulkWritableDeviceRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
}
// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetAssetTag() {
o.AssetTag.Unset()
}
// GetPosition returns the Position field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetPosition() int32 {
if o == nil || IsNil(o.Position.Get()) {
var ret int32
return ret
}
return *o.Position.Get()
}
// GetPositionOk returns a tuple with the Position field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetPositionOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.Position.Get(), o.Position.IsSet()
}
// HasPosition returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasPosition() bool {
if o != nil && o.Position.IsSet() {
return true
}
return false
}
// SetPosition gets a reference to the given NullableInt32 and assigns it to the Position field.
func (o *BulkWritableDeviceRequest) SetPosition(v int32) {
o.Position.Set(&v)
}
// SetPositionNil sets the value for Position to be an explicit nil
func (o *BulkWritableDeviceRequest) SetPositionNil() {
o.Position.Set(nil)
}
// UnsetPosition ensures that no value is present for Position, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetPosition() {
o.Position.Unset()
}
// GetDeviceRedundancyGroupPriority returns the DeviceRedundancyGroupPriority field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetDeviceRedundancyGroupPriority() int32 {
if o == nil || IsNil(o.DeviceRedundancyGroupPriority.Get()) {
var ret int32
return ret
}
return *o.DeviceRedundancyGroupPriority.Get()
}
// GetDeviceRedundancyGroupPriorityOk returns a tuple with the DeviceRedundancyGroupPriority field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetDeviceRedundancyGroupPriorityOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.DeviceRedundancyGroupPriority.Get(), o.DeviceRedundancyGroupPriority.IsSet()
}
// HasDeviceRedundancyGroupPriority returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasDeviceRedundancyGroupPriority() bool {
if o != nil && o.DeviceRedundancyGroupPriority.IsSet() {
return true
}
return false
}
// SetDeviceRedundancyGroupPriority gets a reference to the given NullableInt32 and assigns it to the DeviceRedundancyGroupPriority field.
func (o *BulkWritableDeviceRequest) SetDeviceRedundancyGroupPriority(v int32) {
o.DeviceRedundancyGroupPriority.Set(&v)
}
// SetDeviceRedundancyGroupPriorityNil sets the value for DeviceRedundancyGroupPriority to be an explicit nil
func (o *BulkWritableDeviceRequest) SetDeviceRedundancyGroupPriorityNil() {
o.DeviceRedundancyGroupPriority.Set(nil)
}
// UnsetDeviceRedundancyGroupPriority ensures that no value is present for DeviceRedundancyGroupPriority, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetDeviceRedundancyGroupPriority() {
o.DeviceRedundancyGroupPriority.Unset()
}
// GetVcPosition returns the VcPosition field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetVcPosition() int32 {
if o == nil || IsNil(o.VcPosition.Get()) {
var ret int32
return ret
}
return *o.VcPosition.Get()
}
// GetVcPositionOk returns a tuple with the VcPosition field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetVcPositionOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.VcPosition.Get(), o.VcPosition.IsSet()
}
// HasVcPosition returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasVcPosition() bool {
if o != nil && o.VcPosition.IsSet() {
return true
}
return false
}
// SetVcPosition gets a reference to the given NullableInt32 and assigns it to the VcPosition field.
func (o *BulkWritableDeviceRequest) SetVcPosition(v int32) {
o.VcPosition.Set(&v)
}
// SetVcPositionNil sets the value for VcPosition to be an explicit nil
func (o *BulkWritableDeviceRequest) SetVcPositionNil() {
o.VcPosition.Set(nil)
}
// UnsetVcPosition ensures that no value is present for VcPosition, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetVcPosition() {
o.VcPosition.Unset()
}
// GetVcPriority returns the VcPriority field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetVcPriority() int32 {
if o == nil || IsNil(o.VcPriority.Get()) {
var ret int32
return ret
}
return *o.VcPriority.Get()
}
// GetVcPriorityOk returns a tuple with the VcPriority field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetVcPriorityOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.VcPriority.Get(), o.VcPriority.IsSet()
}
// HasVcPriority returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasVcPriority() bool {
if o != nil && o.VcPriority.IsSet() {
return true
}
return false
}
// SetVcPriority gets a reference to the given NullableInt32 and assigns it to the VcPriority field.
func (o *BulkWritableDeviceRequest) SetVcPriority(v int32) {
o.VcPriority.Set(&v)
}
// SetVcPriorityNil sets the value for VcPriority to be an explicit nil
func (o *BulkWritableDeviceRequest) SetVcPriorityNil() {
o.VcPriority.Set(nil)
}
// UnsetVcPriority ensures that no value is present for VcPriority, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetVcPriority() {
o.VcPriority.Unset()
}
// GetComments returns the Comments field value if set, zero value otherwise.
func (o *BulkWritableDeviceRequest) GetComments() string {
if o == nil || IsNil(o.Comments) {
var ret string
return ret
}
return *o.Comments
}
// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BulkWritableDeviceRequest) GetCommentsOk() (*string, bool) {
if o == nil || IsNil(o.Comments) {
return nil, false
}
return o.Comments, true
}
// HasComments returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasComments() bool {
if o != nil && !IsNil(o.Comments) {
return true
}
return false
}
// SetComments gets a reference to the given string and assigns it to the Comments field.
func (o *BulkWritableDeviceRequest) SetComments(v string) {
o.Comments = &v
}
// GetLocalConfigContextSchema returns the LocalConfigContextSchema field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetLocalConfigContextSchema() BulkWritableConfigContextRequestConfigContextSchema {
if o == nil || IsNil(o.LocalConfigContextSchema.Get()) {
var ret BulkWritableConfigContextRequestConfigContextSchema
return ret
}
return *o.LocalConfigContextSchema.Get()
}
// GetLocalConfigContextSchemaOk returns a tuple with the LocalConfigContextSchema field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetLocalConfigContextSchemaOk() (*BulkWritableConfigContextRequestConfigContextSchema, bool) {
if o == nil {
return nil, false
}
return o.LocalConfigContextSchema.Get(), o.LocalConfigContextSchema.IsSet()
}
// HasLocalConfigContextSchema returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasLocalConfigContextSchema() bool {
if o != nil && o.LocalConfigContextSchema.IsSet() {
return true
}
return false
}
// SetLocalConfigContextSchema gets a reference to the given NullableBulkWritableConfigContextRequestConfigContextSchema and assigns it to the LocalConfigContextSchema field.
func (o *BulkWritableDeviceRequest) SetLocalConfigContextSchema(v BulkWritableConfigContextRequestConfigContextSchema) {
o.LocalConfigContextSchema.Set(&v)
}
// SetLocalConfigContextSchemaNil sets the value for LocalConfigContextSchema to be an explicit nil
func (o *BulkWritableDeviceRequest) SetLocalConfigContextSchemaNil() {
o.LocalConfigContextSchema.Set(nil)
}
// UnsetLocalConfigContextSchema ensures that no value is present for LocalConfigContextSchema, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetLocalConfigContextSchema() {
o.LocalConfigContextSchema.Unset()
}
// GetLocalConfigContextDataOwnerContentType returns the LocalConfigContextDataOwnerContentType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetLocalConfigContextDataOwnerContentType() BulkWritableCircuitRequestTenant {
if o == nil || IsNil(o.LocalConfigContextDataOwnerContentType.Get()) {
var ret BulkWritableCircuitRequestTenant
return ret
}
return *o.LocalConfigContextDataOwnerContentType.Get()
}
// GetLocalConfigContextDataOwnerContentTypeOk returns a tuple with the LocalConfigContextDataOwnerContentType field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetLocalConfigContextDataOwnerContentTypeOk() (*BulkWritableCircuitRequestTenant, bool) {
if o == nil {
return nil, false
}
return o.LocalConfigContextDataOwnerContentType.Get(), o.LocalConfigContextDataOwnerContentType.IsSet()
}
// HasLocalConfigContextDataOwnerContentType returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasLocalConfigContextDataOwnerContentType() bool {
if o != nil && o.LocalConfigContextDataOwnerContentType.IsSet() {
return true
}
return false
}
// SetLocalConfigContextDataOwnerContentType gets a reference to the given NullableBulkWritableCircuitRequestTenant and assigns it to the LocalConfigContextDataOwnerContentType field.
func (o *BulkWritableDeviceRequest) SetLocalConfigContextDataOwnerContentType(v BulkWritableCircuitRequestTenant) {
o.LocalConfigContextDataOwnerContentType.Set(&v)
}
// SetLocalConfigContextDataOwnerContentTypeNil sets the value for LocalConfigContextDataOwnerContentType to be an explicit nil
func (o *BulkWritableDeviceRequest) SetLocalConfigContextDataOwnerContentTypeNil() {
o.LocalConfigContextDataOwnerContentType.Set(nil)
}
// UnsetLocalConfigContextDataOwnerContentType ensures that no value is present for LocalConfigContextDataOwnerContentType, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetLocalConfigContextDataOwnerContentType() {
o.LocalConfigContextDataOwnerContentType.Unset()
}
// GetDeviceType returns the DeviceType field value
func (o *BulkWritableDeviceRequest) GetDeviceType() BulkWritableCableRequestStatus {
if o == nil {
var ret BulkWritableCableRequestStatus
return ret
}
return o.DeviceType
}
// GetDeviceTypeOk returns a tuple with the DeviceType field value
// and a boolean to check if the value has been set.
func (o *BulkWritableDeviceRequest) GetDeviceTypeOk() (*BulkWritableCableRequestStatus, bool) {
if o == nil {
return nil, false
}
return &o.DeviceType, true
}
// SetDeviceType sets field value
func (o *BulkWritableDeviceRequest) SetDeviceType(v BulkWritableCableRequestStatus) {
o.DeviceType = v
}
// GetStatus returns the Status field value
func (o *BulkWritableDeviceRequest) GetStatus() BulkWritableCableRequestStatus {
if o == nil {
var ret BulkWritableCableRequestStatus
return ret
}
return o.Status
}
// GetStatusOk returns a tuple with the Status field value
// and a boolean to check if the value has been set.
func (o *BulkWritableDeviceRequest) GetStatusOk() (*BulkWritableCableRequestStatus, bool) {
if o == nil {
return nil, false
}
return &o.Status, true
}
// SetStatus sets field value
func (o *BulkWritableDeviceRequest) SetStatus(v BulkWritableCableRequestStatus) {
o.Status = v
}
// GetRole returns the Role field value
func (o *BulkWritableDeviceRequest) GetRole() BulkWritableCableRequestStatus {
if o == nil {
var ret BulkWritableCableRequestStatus
return ret
}
return o.Role
}
// GetRoleOk returns a tuple with the Role field value
// and a boolean to check if the value has been set.
func (o *BulkWritableDeviceRequest) GetRoleOk() (*BulkWritableCableRequestStatus, bool) {
if o == nil {
return nil, false
}
return &o.Role, true
}
// SetRole sets field value
func (o *BulkWritableDeviceRequest) SetRole(v BulkWritableCableRequestStatus) {
o.Role = v
}
// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetTenant() BulkWritableCircuitRequestTenant {
if o == nil || IsNil(o.Tenant.Get()) {
var ret BulkWritableCircuitRequestTenant
return ret
}
return *o.Tenant.Get()
}
// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetTenantOk() (*BulkWritableCircuitRequestTenant, bool) {
if o == nil {
return nil, false
}
return o.Tenant.Get(), o.Tenant.IsSet()
}
// HasTenant returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasTenant() bool {
if o != nil && o.Tenant.IsSet() {
return true
}
return false
}
// SetTenant gets a reference to the given NullableBulkWritableCircuitRequestTenant and assigns it to the Tenant field.
func (o *BulkWritableDeviceRequest) SetTenant(v BulkWritableCircuitRequestTenant) {
o.Tenant.Set(&v)
}
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *BulkWritableDeviceRequest) SetTenantNil() {
o.Tenant.Set(nil)
}
// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetTenant() {
o.Tenant.Unset()
}
// GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetPlatform() BulkWritableCircuitRequestTenant {
if o == nil || IsNil(o.Platform.Get()) {
var ret BulkWritableCircuitRequestTenant
return ret
}
return *o.Platform.Get()
}
// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetPlatformOk() (*BulkWritableCircuitRequestTenant, bool) {
if o == nil {
return nil, false
}
return o.Platform.Get(), o.Platform.IsSet()
}
// HasPlatform returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasPlatform() bool {
if o != nil && o.Platform.IsSet() {
return true
}
return false
}
// SetPlatform gets a reference to the given NullableBulkWritableCircuitRequestTenant and assigns it to the Platform field.
func (o *BulkWritableDeviceRequest) SetPlatform(v BulkWritableCircuitRequestTenant) {
o.Platform.Set(&v)
}
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *BulkWritableDeviceRequest) SetPlatformNil() {
o.Platform.Set(nil)
}
// UnsetPlatform ensures that no value is present for Platform, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetPlatform() {
o.Platform.Unset()
}
// GetLocation returns the Location field value
func (o *BulkWritableDeviceRequest) GetLocation() BulkWritableCableRequestStatus {
if o == nil {
var ret BulkWritableCableRequestStatus
return ret
}
return o.Location
}
// GetLocationOk returns a tuple with the Location field value
// and a boolean to check if the value has been set.
func (o *BulkWritableDeviceRequest) GetLocationOk() (*BulkWritableCableRequestStatus, bool) {
if o == nil {
return nil, false
}
return &o.Location, true
}
// SetLocation sets field value
func (o *BulkWritableDeviceRequest) SetLocation(v BulkWritableCableRequestStatus) {
o.Location = v
}
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetRack() BulkWritableCircuitRequestTenant {
if o == nil || IsNil(o.Rack.Get()) {
var ret BulkWritableCircuitRequestTenant
return ret
}
return *o.Rack.Get()
}
// GetRackOk returns a tuple with the Rack field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetRackOk() (*BulkWritableCircuitRequestTenant, bool) {
if o == nil {
return nil, false
}
return o.Rack.Get(), o.Rack.IsSet()
}
// HasRack returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasRack() bool {
if o != nil && o.Rack.IsSet() {
return true
}
return false
}
// SetRack gets a reference to the given NullableBulkWritableCircuitRequestTenant and assigns it to the Rack field.
func (o *BulkWritableDeviceRequest) SetRack(v BulkWritableCircuitRequestTenant) {
o.Rack.Set(&v)
}
// SetRackNil sets the value for Rack to be an explicit nil
func (o *BulkWritableDeviceRequest) SetRackNil() {
o.Rack.Set(nil)
}
// UnsetRack ensures that no value is present for Rack, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetRack() {
o.Rack.Unset()
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetPrimaryIp4() PrimaryIPv4 {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
var ret PrimaryIPv4
return ret
}
return *o.PrimaryIp4.Get()
}
// GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetPrimaryIp4Ok() (*PrimaryIPv4, bool) {
if o == nil {
return nil, false
}
return o.PrimaryIp4.Get(), o.PrimaryIp4.IsSet()
}
// HasPrimaryIp4 returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasPrimaryIp4() bool {
if o != nil && o.PrimaryIp4.IsSet() {
return true
}
return false
}
// SetPrimaryIp4 gets a reference to the given NullablePrimaryIPv4 and assigns it to the PrimaryIp4 field.
func (o *BulkWritableDeviceRequest) SetPrimaryIp4(v PrimaryIPv4) {
o.PrimaryIp4.Set(&v)
}
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *BulkWritableDeviceRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
}
// UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetPrimaryIp4() {
o.PrimaryIp4.Unset()
}
// GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetPrimaryIp6() PrimaryIPv6 {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
var ret PrimaryIPv6
return ret
}
return *o.PrimaryIp6.Get()
}
// GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetPrimaryIp6Ok() (*PrimaryIPv6, bool) {
if o == nil {
return nil, false
}
return o.PrimaryIp6.Get(), o.PrimaryIp6.IsSet()
}
// HasPrimaryIp6 returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasPrimaryIp6() bool {
if o != nil && o.PrimaryIp6.IsSet() {
return true
}
return false
}
// SetPrimaryIp6 gets a reference to the given NullablePrimaryIPv6 and assigns it to the PrimaryIp6 field.
func (o *BulkWritableDeviceRequest) SetPrimaryIp6(v PrimaryIPv6) {
o.PrimaryIp6.Set(&v)
}
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *BulkWritableDeviceRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
}
// UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetPrimaryIp6() {
o.PrimaryIp6.Unset()
}
// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetCluster() BulkWritableCircuitRequestTenant {
if o == nil || IsNil(o.Cluster.Get()) {
var ret BulkWritableCircuitRequestTenant
return ret
}
return *o.Cluster.Get()
}
// GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetClusterOk() (*BulkWritableCircuitRequestTenant, bool) {
if o == nil {
return nil, false
}
return o.Cluster.Get(), o.Cluster.IsSet()
}
// HasCluster returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasCluster() bool {
if o != nil && o.Cluster.IsSet() {
return true
}
return false
}
// SetCluster gets a reference to the given NullableBulkWritableCircuitRequestTenant and assigns it to the Cluster field.
func (o *BulkWritableDeviceRequest) SetCluster(v BulkWritableCircuitRequestTenant) {
o.Cluster.Set(&v)
}
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *BulkWritableDeviceRequest) SetClusterNil() {
o.Cluster.Set(nil)
}
// UnsetCluster ensures that no value is present for Cluster, not even an explicit nil
func (o *BulkWritableDeviceRequest) UnsetCluster() {
o.Cluster.Unset()
}
// GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *BulkWritableDeviceRequest) GetVirtualChassis() BulkWritableCircuitRequestTenant {
if o == nil || IsNil(o.VirtualChassis.Get()) {
var ret BulkWritableCircuitRequestTenant
return ret
}
return *o.VirtualChassis.Get()
}
// GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *BulkWritableDeviceRequest) GetVirtualChassisOk() (*BulkWritableCircuitRequestTenant, bool) {
if o == nil {
return nil, false
}
return o.VirtualChassis.Get(), o.VirtualChassis.IsSet()
}
// HasVirtualChassis returns a boolean if a field has been set.
func (o *BulkWritableDeviceRequest) HasVirtualChassis() bool {
if o != nil && o.VirtualChassis.IsSet() {
return true
}
return false
}
// SetVirtualChassis gets a reference to the given NullableBulkWritableCircuitRequestTenant and assigns it to the VirtualChassis field.
func (o *BulkWritableDeviceRequest) SetVirtualChassis(v BulkWritableCircuitRequestTenant) {
o.VirtualChassis.Set(&v)
}
// SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil
func (o *BulkWritableDeviceRequest) SetVirtualChassisNil() {