-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_hypervisor_availability_zone_resource_response_model.go
782 lines (668 loc) · 27.5 KB
/
model_hypervisor_availability_zone_resource_response_model.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
/*
Citrix Virtual Apps and Desktops Rest API for Developer Portal
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: devportal-onprem-ga
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package citrixorchestration
import (
"encoding/json"
)
// checks if the HypervisorAvailabilityZoneResourceResponseModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &HypervisorAvailabilityZoneResourceResponseModel{}
// HypervisorAvailabilityZoneResourceResponseModel struct for HypervisorAvailabilityZoneResourceResponseModel
type HypervisorAvailabilityZoneResourceResponseModel struct {
// Id of the resource.
Id NullableString `json:"Id,omitempty"`
// Name of the resource.
Name NullableString `json:"Name,omitempty"`
// XenApp & XenDesktop path to the resource on the hypervisor. An example value is: `XDHyp:\\Connections\\{{hypervisor name}}\\{{vm name}}.vm\\{{snapshot name}}.snapshot` or `XDHyp:\\HostingUnits\\{{resource pool name}}\\{{resource name}}.{{resource type}}`
XDPath NullableString `json:"XDPath,omitempty"`
// Path to the object, relative to the resource pool from which it was queried. `{{vm name}}.vm/{{snapshot name}}.snapshot`
RelativePath NullableString `json:"RelativePath,omitempty"`
// Full path to the resource, including the hypervisor, relative to the root of the API. Example: `Hypervisors/{{hypervisor id}}/ResourcePools/{{resource pool id}}/Resources/{{RelativePath}}`
FullRelativePath NullableString `json:"FullRelativePath,omitempty"`
// Type of resource.
ResourceType string `json:"ResourceType"`
// The type name of the hypervisor resource object.
ObjectTypeName NullableString `json:"ObjectTypeName,omitempty"`
ResourceContainer *HypervisorResourceRefResponseModel `json:"ResourceContainer,omitempty"`
// Citrix Apps and Desktops path to the resource on the ResourcePool. An example value is: `XDHyp:\\HostingUnits\\{{resource pool name}}\\{{resource name}}.{{resource type}}` This value
ResourcePoolXDPath NullableString `json:"ResourcePoolXDPath,omitempty"`
// Name of the resource, with the type concatenated. i.e. \"name.type\".
FullName string `json:"FullName"`
// Indicates whether the resource is a container.
IsContainer bool `json:"IsContainer"`
// Child resources, when the resource is a container.
Children []HypervisorResourceResponseModel `json:"Children,omitempty"`
// Indicates whether the resource is a machine.
IsMachine bool `json:"IsMachine"`
// Indicates whether the resource can have a snapshot taken.
IsSnapshotable bool `json:"IsSnapshotable"`
// Path to the resource, relative to the special \"AllResources\" resource pool associated with the hypervisor.
AllResourcesRelativePath string `json:"AllResourcesRelativePath"`
ResourcePool HypervisorResourcePoolRefResponseModel `json:"ResourcePool"`
// Indicates whether the object is a valid symbolic link.
IsSymLink bool `json:"IsSymLink"`
// Additional data about the object in the form of key-value pairs.
AdditionalData []NameValueStringPairModel `json:"AdditionalData,omitempty"`
// Indicates whether this zone supports the use of security groups for isolation.
SupportsSecurityGroups bool `json:"SupportsSecurityGroups"`
}
// NewHypervisorAvailabilityZoneResourceResponseModel instantiates a new HypervisorAvailabilityZoneResourceResponseModel 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 NewHypervisorAvailabilityZoneResourceResponseModel(resourceType string, fullName string, isContainer bool, isMachine bool, isSnapshotable bool, allResourcesRelativePath string, resourcePool HypervisorResourcePoolRefResponseModel, isSymLink bool, supportsSecurityGroups bool) *HypervisorAvailabilityZoneResourceResponseModel {
this := HypervisorAvailabilityZoneResourceResponseModel{}
this.ResourceType = resourceType
this.FullName = fullName
this.IsContainer = isContainer
this.IsMachine = isMachine
this.IsSnapshotable = isSnapshotable
this.AllResourcesRelativePath = allResourcesRelativePath
this.ResourcePool = resourcePool
this.IsSymLink = isSymLink
this.SupportsSecurityGroups = supportsSecurityGroups
return &this
}
// NewHypervisorAvailabilityZoneResourceResponseModelWithDefaults instantiates a new HypervisorAvailabilityZoneResourceResponseModel 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 NewHypervisorAvailabilityZoneResourceResponseModelWithDefaults() *HypervisorAvailabilityZoneResourceResponseModel {
this := HypervisorAvailabilityZoneResourceResponseModel{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetId() string {
if o == nil || IsNil(o.Id.Get()) {
var ret string
return ret
}
return *o.Id.Get()
}
// GetIdOk returns a tuple with the Id 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 *HypervisorAvailabilityZoneResourceResponseModel) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Id.Get(), o.Id.IsSet()
}
// HasId returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasId() bool {
if o != nil && o.Id.IsSet() {
return true
}
return false
}
// SetId gets a reference to the given NullableString and assigns it to the Id field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetId(v string) {
o.Id.Set(&v)
}
// SetIdNil sets the value for Id to be an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetIdNil() {
o.Id.Set(nil)
}
// UnsetId ensures that no value is present for Id, not even an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) UnsetId() {
o.Id.Unset()
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) 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 *HypervisorAvailabilityZoneResourceResponseModel) 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 *HypervisorAvailabilityZoneResourceResponseModel) 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 *HypervisorAvailabilityZoneResourceResponseModel) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) UnsetName() {
o.Name.Unset()
}
// GetXDPath returns the XDPath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetXDPath() string {
if o == nil || IsNil(o.XDPath.Get()) {
var ret string
return ret
}
return *o.XDPath.Get()
}
// GetXDPathOk returns a tuple with the XDPath 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 *HypervisorAvailabilityZoneResourceResponseModel) GetXDPathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.XDPath.Get(), o.XDPath.IsSet()
}
// HasXDPath returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasXDPath() bool {
if o != nil && o.XDPath.IsSet() {
return true
}
return false
}
// SetXDPath gets a reference to the given NullableString and assigns it to the XDPath field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetXDPath(v string) {
o.XDPath.Set(&v)
}
// SetXDPathNil sets the value for XDPath to be an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetXDPathNil() {
o.XDPath.Set(nil)
}
// UnsetXDPath ensures that no value is present for XDPath, not even an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) UnsetXDPath() {
o.XDPath.Unset()
}
// GetRelativePath returns the RelativePath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetRelativePath() string {
if o == nil || IsNil(o.RelativePath.Get()) {
var ret string
return ret
}
return *o.RelativePath.Get()
}
// GetRelativePathOk returns a tuple with the RelativePath 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 *HypervisorAvailabilityZoneResourceResponseModel) GetRelativePathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.RelativePath.Get(), o.RelativePath.IsSet()
}
// HasRelativePath returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasRelativePath() bool {
if o != nil && o.RelativePath.IsSet() {
return true
}
return false
}
// SetRelativePath gets a reference to the given NullableString and assigns it to the RelativePath field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetRelativePath(v string) {
o.RelativePath.Set(&v)
}
// SetRelativePathNil sets the value for RelativePath to be an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetRelativePathNil() {
o.RelativePath.Set(nil)
}
// UnsetRelativePath ensures that no value is present for RelativePath, not even an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) UnsetRelativePath() {
o.RelativePath.Unset()
}
// GetFullRelativePath returns the FullRelativePath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetFullRelativePath() string {
if o == nil || IsNil(o.FullRelativePath.Get()) {
var ret string
return ret
}
return *o.FullRelativePath.Get()
}
// GetFullRelativePathOk returns a tuple with the FullRelativePath 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 *HypervisorAvailabilityZoneResourceResponseModel) GetFullRelativePathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.FullRelativePath.Get(), o.FullRelativePath.IsSet()
}
// HasFullRelativePath returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasFullRelativePath() bool {
if o != nil && o.FullRelativePath.IsSet() {
return true
}
return false
}
// SetFullRelativePath gets a reference to the given NullableString and assigns it to the FullRelativePath field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetFullRelativePath(v string) {
o.FullRelativePath.Set(&v)
}
// SetFullRelativePathNil sets the value for FullRelativePath to be an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetFullRelativePathNil() {
o.FullRelativePath.Set(nil)
}
// UnsetFullRelativePath ensures that no value is present for FullRelativePath, not even an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) UnsetFullRelativePath() {
o.FullRelativePath.Unset()
}
// GetResourceType returns the ResourceType field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetResourceType() string {
if o == nil {
var ret string
return ret
}
return o.ResourceType
}
// GetResourceTypeOk returns a tuple with the ResourceType field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetResourceTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ResourceType, true
}
// SetResourceType sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetResourceType(v string) {
o.ResourceType = v
}
// GetObjectTypeName returns the ObjectTypeName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetObjectTypeName() string {
if o == nil || IsNil(o.ObjectTypeName.Get()) {
var ret string
return ret
}
return *o.ObjectTypeName.Get()
}
// GetObjectTypeNameOk returns a tuple with the ObjectTypeName 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 *HypervisorAvailabilityZoneResourceResponseModel) GetObjectTypeNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ObjectTypeName.Get(), o.ObjectTypeName.IsSet()
}
// HasObjectTypeName returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasObjectTypeName() bool {
if o != nil && o.ObjectTypeName.IsSet() {
return true
}
return false
}
// SetObjectTypeName gets a reference to the given NullableString and assigns it to the ObjectTypeName field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetObjectTypeName(v string) {
o.ObjectTypeName.Set(&v)
}
// SetObjectTypeNameNil sets the value for ObjectTypeName to be an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetObjectTypeNameNil() {
o.ObjectTypeName.Set(nil)
}
// UnsetObjectTypeName ensures that no value is present for ObjectTypeName, not even an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) UnsetObjectTypeName() {
o.ObjectTypeName.Unset()
}
// GetResourceContainer returns the ResourceContainer field value if set, zero value otherwise.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetResourceContainer() HypervisorResourceRefResponseModel {
if o == nil || IsNil(o.ResourceContainer) {
var ret HypervisorResourceRefResponseModel
return ret
}
return *o.ResourceContainer
}
// GetResourceContainerOk returns a tuple with the ResourceContainer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetResourceContainerOk() (*HypervisorResourceRefResponseModel, bool) {
if o == nil || IsNil(o.ResourceContainer) {
return nil, false
}
return o.ResourceContainer, true
}
// HasResourceContainer returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasResourceContainer() bool {
if o != nil && !IsNil(o.ResourceContainer) {
return true
}
return false
}
// SetResourceContainer gets a reference to the given HypervisorResourceRefResponseModel and assigns it to the ResourceContainer field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetResourceContainer(v HypervisorResourceRefResponseModel) {
o.ResourceContainer = &v
}
// GetResourcePoolXDPath returns the ResourcePoolXDPath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetResourcePoolXDPath() string {
if o == nil || IsNil(o.ResourcePoolXDPath.Get()) {
var ret string
return ret
}
return *o.ResourcePoolXDPath.Get()
}
// GetResourcePoolXDPathOk returns a tuple with the ResourcePoolXDPath 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 *HypervisorAvailabilityZoneResourceResponseModel) GetResourcePoolXDPathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ResourcePoolXDPath.Get(), o.ResourcePoolXDPath.IsSet()
}
// HasResourcePoolXDPath returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasResourcePoolXDPath() bool {
if o != nil && o.ResourcePoolXDPath.IsSet() {
return true
}
return false
}
// SetResourcePoolXDPath gets a reference to the given NullableString and assigns it to the ResourcePoolXDPath field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetResourcePoolXDPath(v string) {
o.ResourcePoolXDPath.Set(&v)
}
// SetResourcePoolXDPathNil sets the value for ResourcePoolXDPath to be an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetResourcePoolXDPathNil() {
o.ResourcePoolXDPath.Set(nil)
}
// UnsetResourcePoolXDPath ensures that no value is present for ResourcePoolXDPath, not even an explicit nil
func (o *HypervisorAvailabilityZoneResourceResponseModel) UnsetResourcePoolXDPath() {
o.ResourcePoolXDPath.Unset()
}
// GetFullName returns the FullName field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetFullName() string {
if o == nil {
var ret string
return ret
}
return o.FullName
}
// GetFullNameOk returns a tuple with the FullName field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetFullNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.FullName, true
}
// SetFullName sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetFullName(v string) {
o.FullName = v
}
// GetIsContainer returns the IsContainer field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetIsContainer() bool {
if o == nil {
var ret bool
return ret
}
return o.IsContainer
}
// GetIsContainerOk returns a tuple with the IsContainer field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetIsContainerOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.IsContainer, true
}
// SetIsContainer sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetIsContainer(v bool) {
o.IsContainer = v
}
// GetChildren returns the Children field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetChildren() []HypervisorResourceResponseModel {
if o == nil {
var ret []HypervisorResourceResponseModel
return ret
}
return o.Children
}
// GetChildrenOk returns a tuple with the Children 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 *HypervisorAvailabilityZoneResourceResponseModel) GetChildrenOk() ([]HypervisorResourceResponseModel, bool) {
if o == nil || IsNil(o.Children) {
return nil, false
}
return o.Children, true
}
// HasChildren returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasChildren() bool {
if o != nil && IsNil(o.Children) {
return true
}
return false
}
// SetChildren gets a reference to the given []HypervisorResourceResponseModel and assigns it to the Children field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetChildren(v []HypervisorResourceResponseModel) {
o.Children = v
}
// GetIsMachine returns the IsMachine field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetIsMachine() bool {
if o == nil {
var ret bool
return ret
}
return o.IsMachine
}
// GetIsMachineOk returns a tuple with the IsMachine field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetIsMachineOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.IsMachine, true
}
// SetIsMachine sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetIsMachine(v bool) {
o.IsMachine = v
}
// GetIsSnapshotable returns the IsSnapshotable field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetIsSnapshotable() bool {
if o == nil {
var ret bool
return ret
}
return o.IsSnapshotable
}
// GetIsSnapshotableOk returns a tuple with the IsSnapshotable field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetIsSnapshotableOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.IsSnapshotable, true
}
// SetIsSnapshotable sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetIsSnapshotable(v bool) {
o.IsSnapshotable = v
}
// GetAllResourcesRelativePath returns the AllResourcesRelativePath field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetAllResourcesRelativePath() string {
if o == nil {
var ret string
return ret
}
return o.AllResourcesRelativePath
}
// GetAllResourcesRelativePathOk returns a tuple with the AllResourcesRelativePath field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetAllResourcesRelativePathOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AllResourcesRelativePath, true
}
// SetAllResourcesRelativePath sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetAllResourcesRelativePath(v string) {
o.AllResourcesRelativePath = v
}
// GetResourcePool returns the ResourcePool field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetResourcePool() HypervisorResourcePoolRefResponseModel {
if o == nil {
var ret HypervisorResourcePoolRefResponseModel
return ret
}
return o.ResourcePool
}
// GetResourcePoolOk returns a tuple with the ResourcePool field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetResourcePoolOk() (*HypervisorResourcePoolRefResponseModel, bool) {
if o == nil {
return nil, false
}
return &o.ResourcePool, true
}
// SetResourcePool sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetResourcePool(v HypervisorResourcePoolRefResponseModel) {
o.ResourcePool = v
}
// GetIsSymLink returns the IsSymLink field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetIsSymLink() bool {
if o == nil {
var ret bool
return ret
}
return o.IsSymLink
}
// GetIsSymLinkOk returns a tuple with the IsSymLink field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetIsSymLinkOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.IsSymLink, true
}
// SetIsSymLink sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetIsSymLink(v bool) {
o.IsSymLink = v
}
// GetAdditionalData returns the AdditionalData field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetAdditionalData() []NameValueStringPairModel {
if o == nil {
var ret []NameValueStringPairModel
return ret
}
return o.AdditionalData
}
// GetAdditionalDataOk returns a tuple with the AdditionalData 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 *HypervisorAvailabilityZoneResourceResponseModel) GetAdditionalDataOk() ([]NameValueStringPairModel, bool) {
if o == nil || IsNil(o.AdditionalData) {
return nil, false
}
return o.AdditionalData, true
}
// HasAdditionalData returns a boolean if a field has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) HasAdditionalData() bool {
if o != nil && IsNil(o.AdditionalData) {
return true
}
return false
}
// SetAdditionalData gets a reference to the given []NameValueStringPairModel and assigns it to the AdditionalData field.
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetAdditionalData(v []NameValueStringPairModel) {
o.AdditionalData = v
}
// GetSupportsSecurityGroups returns the SupportsSecurityGroups field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetSupportsSecurityGroups() bool {
if o == nil {
var ret bool
return ret
}
return o.SupportsSecurityGroups
}
// GetSupportsSecurityGroupsOk returns a tuple with the SupportsSecurityGroups field value
// and a boolean to check if the value has been set.
func (o *HypervisorAvailabilityZoneResourceResponseModel) GetSupportsSecurityGroupsOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.SupportsSecurityGroups, true
}
// SetSupportsSecurityGroups sets field value
func (o *HypervisorAvailabilityZoneResourceResponseModel) SetSupportsSecurityGroups(v bool) {
o.SupportsSecurityGroups = v
}
func (o HypervisorAvailabilityZoneResourceResponseModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o HypervisorAvailabilityZoneResourceResponseModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.Id.IsSet() {
toSerialize["Id"] = o.Id.Get()
}
if o.Name.IsSet() {
toSerialize["Name"] = o.Name.Get()
}
if o.XDPath.IsSet() {
toSerialize["XDPath"] = o.XDPath.Get()
}
if o.RelativePath.IsSet() {
toSerialize["RelativePath"] = o.RelativePath.Get()
}
if o.FullRelativePath.IsSet() {
toSerialize["FullRelativePath"] = o.FullRelativePath.Get()
}
toSerialize["ResourceType"] = o.ResourceType
if o.ObjectTypeName.IsSet() {
toSerialize["ObjectTypeName"] = o.ObjectTypeName.Get()
}
if !IsNil(o.ResourceContainer) {
toSerialize["ResourceContainer"] = o.ResourceContainer
}
if o.ResourcePoolXDPath.IsSet() {
toSerialize["ResourcePoolXDPath"] = o.ResourcePoolXDPath.Get()
}
toSerialize["FullName"] = o.FullName
toSerialize["IsContainer"] = o.IsContainer
if o.Children != nil {
toSerialize["Children"] = o.Children
}
toSerialize["IsMachine"] = o.IsMachine
toSerialize["IsSnapshotable"] = o.IsSnapshotable
toSerialize["AllResourcesRelativePath"] = o.AllResourcesRelativePath
toSerialize["ResourcePool"] = o.ResourcePool
toSerialize["IsSymLink"] = o.IsSymLink
if o.AdditionalData != nil {
toSerialize["AdditionalData"] = o.AdditionalData
}
toSerialize["SupportsSecurityGroups"] = o.SupportsSecurityGroups
return toSerialize, nil
}
type NullableHypervisorAvailabilityZoneResourceResponseModel struct {
value *HypervisorAvailabilityZoneResourceResponseModel
isSet bool
}
func (v NullableHypervisorAvailabilityZoneResourceResponseModel) Get() *HypervisorAvailabilityZoneResourceResponseModel {
return v.value
}
func (v *NullableHypervisorAvailabilityZoneResourceResponseModel) Set(val *HypervisorAvailabilityZoneResourceResponseModel) {
v.value = val
v.isSet = true
}
func (v NullableHypervisorAvailabilityZoneResourceResponseModel) IsSet() bool {
return v.isSet
}
func (v *NullableHypervisorAvailabilityZoneResourceResponseModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableHypervisorAvailabilityZoneResourceResponseModel(val *HypervisorAvailabilityZoneResourceResponseModel) *NullableHypervisorAvailabilityZoneResourceResponseModel {
return &NullableHypervisorAvailabilityZoneResourceResponseModel{value: val, isSet: true}
}
func (v NullableHypervisorAvailabilityZoneResourceResponseModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableHypervisorAvailabilityZoneResourceResponseModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}