-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathmodel_patched_writable_device_with_config_context_request.go
1388 lines (1193 loc) · 46.9 KB
/
model_patched_writable_device_with_config_context_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
/*
NetBox REST API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 4.2.2 (4.2)
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package netbox
import (
"encoding/json"
)
// checks if the PatchedWritableDeviceWithConfigContextRequest type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{}
// PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags.
type PatchedWritableDeviceWithConfigContextRequest struct {
Name NullableString `json:"name,omitempty"`
DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"`
Role *BriefDeviceRoleRequest `json:"role,omitempty"`
Tenant NullableBriefTenantRequest `json:"tenant,omitempty"`
Platform NullableBriefPlatformRequest `json:"platform,omitempty"`
// Chassis serial number, assigned by the manufacturer
Serial *string `json:"serial,omitempty"`
// A unique tag used to identify this device
AssetTag NullableString `json:"asset_tag,omitempty"`
Site *BriefSiteRequest `json:"site,omitempty"`
Location NullableBriefLocationRequest `json:"location,omitempty"`
Rack NullableBriefRackRequest `json:"rack,omitempty"`
Position NullableFloat64 `json:"position,omitempty"`
Face NullableRackFace1 `json:"face,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Latitude NullableFloat64 `json:"latitude,omitempty"`
// GPS coordinate in decimal format (xx.yyyyyy)
Longitude NullableFloat64 `json:"longitude,omitempty"`
Status *DeviceStatusValue `json:"status,omitempty"`
Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"`
PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"`
PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"`
OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"`
Cluster NullableBriefClusterRequest `json:"cluster,omitempty"`
VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"`
VcPosition NullableInt32 `json:"vc_position,omitempty"`
// Virtual chassis master election priority
VcPriority NullableInt32 `json:"vc_priority,omitempty"`
Description *string `json:"description,omitempty"`
Comments *string `json:"comments,omitempty"`
ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"`
// Local config context data takes precedence over source contexts in the final rendered config context
LocalContextData interface{} `json:"local_context_data,omitempty"`
Tags []NestedTagRequest `json:"tags,omitempty"`
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PatchedWritableDeviceWithConfigContextRequest PatchedWritableDeviceWithConfigContextRequest
// NewPatchedWritableDeviceWithConfigContextRequest instantiates a new PatchedWritableDeviceWithConfigContextRequest 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 NewPatchedWritableDeviceWithConfigContextRequest() *PatchedWritableDeviceWithConfigContextRequest {
this := PatchedWritableDeviceWithConfigContextRequest{}
return &this
}
// NewPatchedWritableDeviceWithConfigContextRequestWithDefaults instantiates a new PatchedWritableDeviceWithConfigContextRequest 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 NewPatchedWritableDeviceWithConfigContextRequestWithDefaults() *PatchedWritableDeviceWithConfigContextRequest {
this := PatchedWritableDeviceWithConfigContextRequest{}
return &this
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetName() {
o.Name.Unset()
}
// GetDeviceType returns the DeviceType field value if set, zero value otherwise.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest {
if o == nil || IsNil(o.DeviceType) {
var ret BriefDeviceTypeRequest
return ret
}
return *o.DeviceType
}
// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) {
if o == nil || IsNil(o.DeviceType) {
return nil, false
}
return o.DeviceType, true
}
// HasDeviceType returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceType() bool {
if o != nil && !IsNil(o.DeviceType) {
return true
}
return false
}
// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) {
o.DeviceType = &v
}
// GetRole returns the Role field value if set, zero value otherwise.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest {
if o == nil || IsNil(o.Role) {
var ret BriefDeviceRoleRequest
return ret
}
return *o.Role
}
// GetRoleOk returns a tuple with the Role field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) {
if o == nil || IsNil(o.Role) {
return nil, false
}
return o.Role, true
}
// HasRole returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool {
if o != nil && !IsNil(o.Role) {
return true
}
return false
}
// SetRole gets a reference to the given BriefDeviceRoleRequest and assigns it to the Role field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) {
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 *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest {
if o == nil || IsNil(o.Tenant.Get()) {
var ret BriefTenantRequest
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 *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool {
if o != nil && o.Tenant.IsSet() {
return true
}
return false
}
// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) {
o.Tenant.Set(&v)
}
// SetTenantNil sets the value for Tenant to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenantNil() {
o.Tenant.Set(nil)
}
// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest {
if o == nil || IsNil(o.Platform.Get()) {
var ret BriefPlatformRequest
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 *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool {
if o != nil && o.Platform.IsSet() {
return true
}
return false
}
// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) {
o.Platform.Set(&v)
}
// SetPlatformNil sets the value for Platform to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatformNil() {
o.Platform.Set(nil)
}
// UnsetPlatform ensures that no value is present for Platform, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPlatform() {
o.Platform.Unset()
}
// GetSerial returns the Serial field value if set, zero value otherwise.
func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetAssetTag(v string) {
o.AssetTag.Set(&v)
}
// SetAssetTagNil sets the value for AssetTag to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetAssetTagNil() {
o.AssetTag.Set(nil)
}
// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAssetTag() {
o.AssetTag.Unset()
}
// GetSite returns the Site field value if set, zero value otherwise.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest {
if o == nil || IsNil(o.Site) {
var ret BriefSiteRequest
return ret
}
return *o.Site
}
// GetSiteOk returns a tuple with the Site field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) {
if o == nil || IsNil(o.Site) {
return nil, false
}
return o.Site, true
}
// HasSite returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasSite() bool {
if o != nil && !IsNil(o.Site) {
return true
}
return false
}
// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) {
o.Site = &v
}
// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest {
if o == nil || IsNil(o.Location.Get()) {
var ret BriefLocationRequest
return ret
}
return *o.Location.Get()
}
// GetLocationOk returns a tuple with the Location 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 *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) {
if o == nil {
return nil, false
}
return o.Location.Get(), o.Location.IsSet()
}
// HasLocation returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool {
if o != nil && o.Location.IsSet() {
return true
}
return false
}
// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) {
o.Location.Set(&v)
}
// SetLocationNil sets the value for Location to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocationNil() {
o.Location.Set(nil)
}
// UnsetLocation ensures that no value is present for Location, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLocation() {
o.Location.Unset()
}
// GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest {
if o == nil || IsNil(o.Rack.Get()) {
var ret BriefRackRequest
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 *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool {
if o != nil && o.Rack.IsSet() {
return true
}
return false
}
// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) {
o.Rack.Set(&v)
}
// SetRackNil sets the value for Rack to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetRackNil() {
o.Rack.Set(nil)
}
// UnsetRack ensures that no value is present for Rack, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetRack() {
o.Rack.Unset()
}
// GetPosition returns the Position field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetPosition() float64 {
if o == nil || IsNil(o.Position.Get()) {
var ret float64
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 *PatchedWritableDeviceWithConfigContextRequest) GetPositionOk() (*float64, 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 *PatchedWritableDeviceWithConfigContextRequest) HasPosition() bool {
if o != nil && o.Position.IsSet() {
return true
}
return false
}
// SetPosition gets a reference to the given NullableFloat64 and assigns it to the Position field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPosition(v float64) {
o.Position.Set(&v)
}
// SetPositionNil sets the value for Position to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPositionNil() {
o.Position.Set(nil)
}
// UnsetPosition ensures that no value is present for Position, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPosition() {
o.Position.Unset()
}
// GetFace returns the Face field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetFace() RackFace1 {
if o == nil || IsNil(o.Face.Get()) {
var ret RackFace1
return ret
}
return *o.Face.Get()
}
// GetFaceOk returns a tuple with the Face 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 *PatchedWritableDeviceWithConfigContextRequest) GetFaceOk() (*RackFace1, bool) {
if o == nil {
return nil, false
}
return o.Face.Get(), o.Face.IsSet()
}
// HasFace returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasFace() bool {
if o != nil && o.Face.IsSet() {
return true
}
return false
}
// SetFace gets a reference to the given NullableRackFace1 and assigns it to the Face field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v RackFace1) {
o.Face.Set(&v)
}
// SetFaceNil sets the value for Face to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetFaceNil() {
o.Face.Set(nil)
}
// UnsetFace ensures that no value is present for Face, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetFace() {
o.Face.Unset()
}
// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetLatitude() float64 {
if o == nil || IsNil(o.Latitude.Get()) {
var ret float64
return ret
}
return *o.Latitude.Get()
}
// GetLatitudeOk returns a tuple with the Latitude 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 *PatchedWritableDeviceWithConfigContextRequest) GetLatitudeOk() (*float64, bool) {
if o == nil {
return nil, false
}
return o.Latitude.Get(), o.Latitude.IsSet()
}
// HasLatitude returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasLatitude() bool {
if o != nil && o.Latitude.IsSet() {
return true
}
return false
}
// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLatitude(v float64) {
o.Latitude.Set(&v)
}
// SetLatitudeNil sets the value for Latitude to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLatitudeNil() {
o.Latitude.Set(nil)
}
// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLatitude() {
o.Latitude.Unset()
}
// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetLongitude() float64 {
if o == nil || IsNil(o.Longitude.Get()) {
var ret float64
return ret
}
return *o.Longitude.Get()
}
// GetLongitudeOk returns a tuple with the Longitude 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 *PatchedWritableDeviceWithConfigContextRequest) GetLongitudeOk() (*float64, bool) {
if o == nil {
return nil, false
}
return o.Longitude.Get(), o.Longitude.IsSet()
}
// HasLongitude returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasLongitude() bool {
if o != nil && o.Longitude.IsSet() {
return true
}
return false
}
// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLongitude(v float64) {
o.Longitude.Set(&v)
}
// SetLongitudeNil sets the value for Longitude to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetLongitudeNil() {
o.Longitude.Set(nil)
}
// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLongitude() {
o.Longitude.Unset()
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatus() DeviceStatusValue {
if o == nil || IsNil(o.Status) {
var ret DeviceStatusValue
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatusOk() (*DeviceStatusValue, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given DeviceStatusValue and assigns it to the Status field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetStatus(v DeviceStatusValue) {
o.Status = &v
}
// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetAirflow() DeviceTypeRequestAirflow {
if o == nil || IsNil(o.Airflow.Get()) {
var ret DeviceTypeRequestAirflow
return ret
}
return *o.Airflow.Get()
}
// GetAirflowOk returns a tuple with the Airflow 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 *PatchedWritableDeviceWithConfigContextRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) {
if o == nil {
return nil, false
}
return o.Airflow.Get(), o.Airflow.IsSet()
}
// HasAirflow returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasAirflow() bool {
if o != nil && o.Airflow.IsSet() {
return true
}
return false
}
// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceTypeRequestAirflow) {
o.Airflow.Set(&v)
}
// SetAirflowNil sets the value for Airflow to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflowNil() {
o.Airflow.Set(nil)
}
// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAirflow() {
o.Airflow.Unset()
}
// GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest {
if o == nil || IsNil(o.PrimaryIp4.Get()) {
var ret BriefIPAddressRequest
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 *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool {
if o != nil && o.PrimaryIp4.IsSet() {
return true
}
return false
}
// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) {
o.PrimaryIp4.Set(&v)
}
// SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4Nil() {
o.PrimaryIp4.Set(nil)
}
// UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest {
if o == nil || IsNil(o.PrimaryIp6.Get()) {
var ret BriefIPAddressRequest
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 *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool {
if o != nil && o.PrimaryIp6.IsSet() {
return true
}
return false
}
// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) {
o.PrimaryIp6.Set(&v)
}
// SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6Nil() {
o.PrimaryIp6.Set(nil)
}
// UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() {
o.PrimaryIp6.Unset()
}
// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest {
if o == nil || IsNil(o.OobIp.Get()) {
var ret BriefIPAddressRequest
return ret
}
return *o.OobIp.Get()
}
// GetOobIpOk returns a tuple with the OobIp 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 *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) {
if o == nil {
return nil, false
}
return o.OobIp.Get(), o.OobIp.IsSet()
}
// HasOobIp returns a boolean if a field has been set.
func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool {
if o != nil && o.OobIp.IsSet() {
return true
}
return false
}
// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) {
o.OobIp.Set(&v)
}
// SetOobIpNil sets the value for OobIp to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIpNil() {
o.OobIp.Set(nil)
}
// UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp() {
o.OobIp.Unset()
}
// GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest {
if o == nil || IsNil(o.Cluster.Get()) {
var ret BriefClusterRequest
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 *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool {
if o != nil && o.Cluster.IsSet() {
return true
}
return false
}
// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) {
o.Cluster.Set(&v)
}
// SetClusterNil sets the value for Cluster to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetClusterNil() {
o.Cluster.Set(nil)
}
// UnsetCluster ensures that no value is present for Cluster, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest {
if o == nil || IsNil(o.VirtualChassis.Get()) {
var ret BriefVirtualChassisRequest
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 *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, 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 *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool {
if o != nil && o.VirtualChassis.IsSet() {
return true
}
return false
}
// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field.
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) {
o.VirtualChassis.Set(&v)
}
// SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassisNil() {
o.VirtualChassis.Set(nil)
}
// UnsetVirtualChassis ensures that no value is present for VirtualChassis, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetVirtualChassis() {
o.VirtualChassis.Unset()
}
// GetVcPosition returns the VcPosition field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetVcPosition(v int32) {
o.VcPosition.Set(&v)
}
// SetVcPositionNil sets the value for VcPosition to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPositionNil() {
o.VcPosition.Set(nil)
}
// UnsetVcPosition ensures that no value is present for VcPosition, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) 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 *PatchedWritableDeviceWithConfigContextRequest) SetVcPriority(v int32) {
o.VcPriority.Set(&v)
}
// SetVcPriorityNil sets the value for VcPriority to be an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPriorityNil() {
o.VcPriority.Set(nil)
}
// UnsetVcPriority ensures that no value is present for VcPriority, not even an explicit nil
func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetVcPriority() {
o.VcPriority.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PatchedWritableDeviceWithConfigContextRequest) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}