-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_provisioning_scheme_vm_metadata_response_model.go
842 lines (725 loc) · 30.7 KB
/
model_provisioning_scheme_vm_metadata_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
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
/*
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 ProvisioningSchemeVmMetadataResponseModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ProvisioningSchemeVmMetadataResponseModel{}
// ProvisioningSchemeVmMetadataResponseModel Provisioning Scheme VMMetadata response model
type ProvisioningSchemeVmMetadataResponseModel struct {
// VmMetadata machine size
MachineSize NullableString `json:"MachineSize,omitempty"`
// VmMetadata OS disk cache
OsDiskCaching NullableString `json:"OsDiskCaching,omitempty"`
// VmMetadata tags
Tags NullableString `json:"Tags,omitempty"`
// VmMetadata boot diagnostics configuration
BootDiagnostics NullableBool `json:"BootDiagnostics,omitempty"`
// VmMetadata accelerated network configuration
AcceleratedNetwork NullableBool `json:"AcceleratedNetwork,omitempty"`
// VmMetadata hibernation configuration.
SupportsHibernation NullableBool `json:"SupportsHibernation,omitempty"`
// VmMetadata security type configuration
SecurityType NullableString `json:"SecurityType,omitempty"`
// VmMetadata disk security type configuration
DiskSecurityType NullableString `json:"DiskSecurityType,omitempty"`
// VmMetadata confidential VM disk encryption set id configuration
ConfidentialVmDiskEncryptionSetId NullableString `json:"ConfidentialVmDiskEncryptionSetId,omitempty"`
// VmMetadata VirtualMachine.Resources.Properties.SecurityProfile.UefiSettings.secureBootEnabled
EnableSecureBoot NullableBool `json:"EnableSecureBoot,omitempty"`
// VmMetadata VirtualMachine.Resources.Properties.SecurityProfile.UefiSettings.vTpmEnabled
EnableVTPM NullableBool `json:"EnableVTPM,omitempty"`
// VmMetadata VirtualMachine.Resources.Properties.SecurityProfile.EncryptionAtHost
EncryptionAtHost NullableBool `json:"EncryptionAtHost,omitempty"`
// VmMetadata Labels
Labels NullableString `json:"Labels,omitempty"`
// VmMetadata zone name
ZoneName NullableString `json:"ZoneName,omitempty"`
// VmMetadata storage type
StorageType NullableString `json:"StorageType,omitempty"`
// VmMetadata encryption key
EncryptionKeyId NullableString `json:"EncryptionKeyId,omitempty"`
}
// NewProvisioningSchemeVmMetadataResponseModel instantiates a new ProvisioningSchemeVmMetadataResponseModel 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 NewProvisioningSchemeVmMetadataResponseModel() *ProvisioningSchemeVmMetadataResponseModel {
this := ProvisioningSchemeVmMetadataResponseModel{}
return &this
}
// NewProvisioningSchemeVmMetadataResponseModelWithDefaults instantiates a new ProvisioningSchemeVmMetadataResponseModel 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 NewProvisioningSchemeVmMetadataResponseModelWithDefaults() *ProvisioningSchemeVmMetadataResponseModel {
this := ProvisioningSchemeVmMetadataResponseModel{}
return &this
}
// GetMachineSize returns the MachineSize field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetMachineSize() string {
if o == nil || IsNil(o.MachineSize.Get()) {
var ret string
return ret
}
return *o.MachineSize.Get()
}
// GetMachineSizeOk returns a tuple with the MachineSize 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 *ProvisioningSchemeVmMetadataResponseModel) GetMachineSizeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MachineSize.Get(), o.MachineSize.IsSet()
}
// HasMachineSize returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasMachineSize() bool {
if o != nil && o.MachineSize.IsSet() {
return true
}
return false
}
// SetMachineSize gets a reference to the given NullableString and assigns it to the MachineSize field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetMachineSize(v string) {
o.MachineSize.Set(&v)
}
// SetMachineSizeNil sets the value for MachineSize to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetMachineSizeNil() {
o.MachineSize.Set(nil)
}
// UnsetMachineSize ensures that no value is present for MachineSize, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetMachineSize() {
o.MachineSize.Unset()
}
// GetOsDiskCaching returns the OsDiskCaching field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetOsDiskCaching() string {
if o == nil || IsNil(o.OsDiskCaching.Get()) {
var ret string
return ret
}
return *o.OsDiskCaching.Get()
}
// GetOsDiskCachingOk returns a tuple with the OsDiskCaching 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 *ProvisioningSchemeVmMetadataResponseModel) GetOsDiskCachingOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.OsDiskCaching.Get(), o.OsDiskCaching.IsSet()
}
// HasOsDiskCaching returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasOsDiskCaching() bool {
if o != nil && o.OsDiskCaching.IsSet() {
return true
}
return false
}
// SetOsDiskCaching gets a reference to the given NullableString and assigns it to the OsDiskCaching field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetOsDiskCaching(v string) {
o.OsDiskCaching.Set(&v)
}
// SetOsDiskCachingNil sets the value for OsDiskCaching to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetOsDiskCachingNil() {
o.OsDiskCaching.Set(nil)
}
// UnsetOsDiskCaching ensures that no value is present for OsDiskCaching, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetOsDiskCaching() {
o.OsDiskCaching.Unset()
}
// GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetTags() string {
if o == nil || IsNil(o.Tags.Get()) {
var ret string
return ret
}
return *o.Tags.Get()
}
// GetTagsOk returns a tuple with the Tags 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 *ProvisioningSchemeVmMetadataResponseModel) GetTagsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Tags.Get(), o.Tags.IsSet()
}
// HasTags returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasTags() bool {
if o != nil && o.Tags.IsSet() {
return true
}
return false
}
// SetTags gets a reference to the given NullableString and assigns it to the Tags field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetTags(v string) {
o.Tags.Set(&v)
}
// SetTagsNil sets the value for Tags to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetTagsNil() {
o.Tags.Set(nil)
}
// UnsetTags ensures that no value is present for Tags, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetTags() {
o.Tags.Unset()
}
// GetBootDiagnostics returns the BootDiagnostics field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetBootDiagnostics() bool {
if o == nil || IsNil(o.BootDiagnostics.Get()) {
var ret bool
return ret
}
return *o.BootDiagnostics.Get()
}
// GetBootDiagnosticsOk returns a tuple with the BootDiagnostics 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 *ProvisioningSchemeVmMetadataResponseModel) GetBootDiagnosticsOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.BootDiagnostics.Get(), o.BootDiagnostics.IsSet()
}
// HasBootDiagnostics returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasBootDiagnostics() bool {
if o != nil && o.BootDiagnostics.IsSet() {
return true
}
return false
}
// SetBootDiagnostics gets a reference to the given NullableBool and assigns it to the BootDiagnostics field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetBootDiagnostics(v bool) {
o.BootDiagnostics.Set(&v)
}
// SetBootDiagnosticsNil sets the value for BootDiagnostics to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetBootDiagnosticsNil() {
o.BootDiagnostics.Set(nil)
}
// UnsetBootDiagnostics ensures that no value is present for BootDiagnostics, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetBootDiagnostics() {
o.BootDiagnostics.Unset()
}
// GetAcceleratedNetwork returns the AcceleratedNetwork field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetAcceleratedNetwork() bool {
if o == nil || IsNil(o.AcceleratedNetwork.Get()) {
var ret bool
return ret
}
return *o.AcceleratedNetwork.Get()
}
// GetAcceleratedNetworkOk returns a tuple with the AcceleratedNetwork 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 *ProvisioningSchemeVmMetadataResponseModel) GetAcceleratedNetworkOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.AcceleratedNetwork.Get(), o.AcceleratedNetwork.IsSet()
}
// HasAcceleratedNetwork returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasAcceleratedNetwork() bool {
if o != nil && o.AcceleratedNetwork.IsSet() {
return true
}
return false
}
// SetAcceleratedNetwork gets a reference to the given NullableBool and assigns it to the AcceleratedNetwork field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetAcceleratedNetwork(v bool) {
o.AcceleratedNetwork.Set(&v)
}
// SetAcceleratedNetworkNil sets the value for AcceleratedNetwork to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetAcceleratedNetworkNil() {
o.AcceleratedNetwork.Set(nil)
}
// UnsetAcceleratedNetwork ensures that no value is present for AcceleratedNetwork, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetAcceleratedNetwork() {
o.AcceleratedNetwork.Unset()
}
// GetSupportsHibernation returns the SupportsHibernation field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetSupportsHibernation() bool {
if o == nil || IsNil(o.SupportsHibernation.Get()) {
var ret bool
return ret
}
return *o.SupportsHibernation.Get()
}
// GetSupportsHibernationOk returns a tuple with the SupportsHibernation 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 *ProvisioningSchemeVmMetadataResponseModel) GetSupportsHibernationOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.SupportsHibernation.Get(), o.SupportsHibernation.IsSet()
}
// HasSupportsHibernation returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasSupportsHibernation() bool {
if o != nil && o.SupportsHibernation.IsSet() {
return true
}
return false
}
// SetSupportsHibernation gets a reference to the given NullableBool and assigns it to the SupportsHibernation field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetSupportsHibernation(v bool) {
o.SupportsHibernation.Set(&v)
}
// SetSupportsHibernationNil sets the value for SupportsHibernation to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetSupportsHibernationNil() {
o.SupportsHibernation.Set(nil)
}
// UnsetSupportsHibernation ensures that no value is present for SupportsHibernation, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetSupportsHibernation() {
o.SupportsHibernation.Unset()
}
// GetSecurityType returns the SecurityType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetSecurityType() string {
if o == nil || IsNil(o.SecurityType.Get()) {
var ret string
return ret
}
return *o.SecurityType.Get()
}
// GetSecurityTypeOk returns a tuple with the SecurityType 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 *ProvisioningSchemeVmMetadataResponseModel) GetSecurityTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SecurityType.Get(), o.SecurityType.IsSet()
}
// HasSecurityType returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasSecurityType() bool {
if o != nil && o.SecurityType.IsSet() {
return true
}
return false
}
// SetSecurityType gets a reference to the given NullableString and assigns it to the SecurityType field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetSecurityType(v string) {
o.SecurityType.Set(&v)
}
// SetSecurityTypeNil sets the value for SecurityType to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetSecurityTypeNil() {
o.SecurityType.Set(nil)
}
// UnsetSecurityType ensures that no value is present for SecurityType, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetSecurityType() {
o.SecurityType.Unset()
}
// GetDiskSecurityType returns the DiskSecurityType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetDiskSecurityType() string {
if o == nil || IsNil(o.DiskSecurityType.Get()) {
var ret string
return ret
}
return *o.DiskSecurityType.Get()
}
// GetDiskSecurityTypeOk returns a tuple with the DiskSecurityType 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 *ProvisioningSchemeVmMetadataResponseModel) GetDiskSecurityTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.DiskSecurityType.Get(), o.DiskSecurityType.IsSet()
}
// HasDiskSecurityType returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasDiskSecurityType() bool {
if o != nil && o.DiskSecurityType.IsSet() {
return true
}
return false
}
// SetDiskSecurityType gets a reference to the given NullableString and assigns it to the DiskSecurityType field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetDiskSecurityType(v string) {
o.DiskSecurityType.Set(&v)
}
// SetDiskSecurityTypeNil sets the value for DiskSecurityType to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetDiskSecurityTypeNil() {
o.DiskSecurityType.Set(nil)
}
// UnsetDiskSecurityType ensures that no value is present for DiskSecurityType, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetDiskSecurityType() {
o.DiskSecurityType.Unset()
}
// GetConfidentialVmDiskEncryptionSetId returns the ConfidentialVmDiskEncryptionSetId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetConfidentialVmDiskEncryptionSetId() string {
if o == nil || IsNil(o.ConfidentialVmDiskEncryptionSetId.Get()) {
var ret string
return ret
}
return *o.ConfidentialVmDiskEncryptionSetId.Get()
}
// GetConfidentialVmDiskEncryptionSetIdOk returns a tuple with the ConfidentialVmDiskEncryptionSetId 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 *ProvisioningSchemeVmMetadataResponseModel) GetConfidentialVmDiskEncryptionSetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ConfidentialVmDiskEncryptionSetId.Get(), o.ConfidentialVmDiskEncryptionSetId.IsSet()
}
// HasConfidentialVmDiskEncryptionSetId returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasConfidentialVmDiskEncryptionSetId() bool {
if o != nil && o.ConfidentialVmDiskEncryptionSetId.IsSet() {
return true
}
return false
}
// SetConfidentialVmDiskEncryptionSetId gets a reference to the given NullableString and assigns it to the ConfidentialVmDiskEncryptionSetId field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetConfidentialVmDiskEncryptionSetId(v string) {
o.ConfidentialVmDiskEncryptionSetId.Set(&v)
}
// SetConfidentialVmDiskEncryptionSetIdNil sets the value for ConfidentialVmDiskEncryptionSetId to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetConfidentialVmDiskEncryptionSetIdNil() {
o.ConfidentialVmDiskEncryptionSetId.Set(nil)
}
// UnsetConfidentialVmDiskEncryptionSetId ensures that no value is present for ConfidentialVmDiskEncryptionSetId, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetConfidentialVmDiskEncryptionSetId() {
o.ConfidentialVmDiskEncryptionSetId.Unset()
}
// GetEnableSecureBoot returns the EnableSecureBoot field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetEnableSecureBoot() bool {
if o == nil || IsNil(o.EnableSecureBoot.Get()) {
var ret bool
return ret
}
return *o.EnableSecureBoot.Get()
}
// GetEnableSecureBootOk returns a tuple with the EnableSecureBoot 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 *ProvisioningSchemeVmMetadataResponseModel) GetEnableSecureBootOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.EnableSecureBoot.Get(), o.EnableSecureBoot.IsSet()
}
// HasEnableSecureBoot returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasEnableSecureBoot() bool {
if o != nil && o.EnableSecureBoot.IsSet() {
return true
}
return false
}
// SetEnableSecureBoot gets a reference to the given NullableBool and assigns it to the EnableSecureBoot field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetEnableSecureBoot(v bool) {
o.EnableSecureBoot.Set(&v)
}
// SetEnableSecureBootNil sets the value for EnableSecureBoot to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetEnableSecureBootNil() {
o.EnableSecureBoot.Set(nil)
}
// UnsetEnableSecureBoot ensures that no value is present for EnableSecureBoot, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetEnableSecureBoot() {
o.EnableSecureBoot.Unset()
}
// GetEnableVTPM returns the EnableVTPM field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetEnableVTPM() bool {
if o == nil || IsNil(o.EnableVTPM.Get()) {
var ret bool
return ret
}
return *o.EnableVTPM.Get()
}
// GetEnableVTPMOk returns a tuple with the EnableVTPM 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 *ProvisioningSchemeVmMetadataResponseModel) GetEnableVTPMOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.EnableVTPM.Get(), o.EnableVTPM.IsSet()
}
// HasEnableVTPM returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasEnableVTPM() bool {
if o != nil && o.EnableVTPM.IsSet() {
return true
}
return false
}
// SetEnableVTPM gets a reference to the given NullableBool and assigns it to the EnableVTPM field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetEnableVTPM(v bool) {
o.EnableVTPM.Set(&v)
}
// SetEnableVTPMNil sets the value for EnableVTPM to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetEnableVTPMNil() {
o.EnableVTPM.Set(nil)
}
// UnsetEnableVTPM ensures that no value is present for EnableVTPM, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetEnableVTPM() {
o.EnableVTPM.Unset()
}
// GetEncryptionAtHost returns the EncryptionAtHost field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetEncryptionAtHost() bool {
if o == nil || IsNil(o.EncryptionAtHost.Get()) {
var ret bool
return ret
}
return *o.EncryptionAtHost.Get()
}
// GetEncryptionAtHostOk returns a tuple with the EncryptionAtHost 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 *ProvisioningSchemeVmMetadataResponseModel) GetEncryptionAtHostOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.EncryptionAtHost.Get(), o.EncryptionAtHost.IsSet()
}
// HasEncryptionAtHost returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasEncryptionAtHost() bool {
if o != nil && o.EncryptionAtHost.IsSet() {
return true
}
return false
}
// SetEncryptionAtHost gets a reference to the given NullableBool and assigns it to the EncryptionAtHost field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetEncryptionAtHost(v bool) {
o.EncryptionAtHost.Set(&v)
}
// SetEncryptionAtHostNil sets the value for EncryptionAtHost to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetEncryptionAtHostNil() {
o.EncryptionAtHost.Set(nil)
}
// UnsetEncryptionAtHost ensures that no value is present for EncryptionAtHost, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetEncryptionAtHost() {
o.EncryptionAtHost.Unset()
}
// GetLabels returns the Labels field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetLabels() string {
if o == nil || IsNil(o.Labels.Get()) {
var ret string
return ret
}
return *o.Labels.Get()
}
// GetLabelsOk returns a tuple with the Labels 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 *ProvisioningSchemeVmMetadataResponseModel) GetLabelsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Labels.Get(), o.Labels.IsSet()
}
// HasLabels returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasLabels() bool {
if o != nil && o.Labels.IsSet() {
return true
}
return false
}
// SetLabels gets a reference to the given NullableString and assigns it to the Labels field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetLabels(v string) {
o.Labels.Set(&v)
}
// SetLabelsNil sets the value for Labels to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetLabelsNil() {
o.Labels.Set(nil)
}
// UnsetLabels ensures that no value is present for Labels, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetLabels() {
o.Labels.Unset()
}
// GetZoneName returns the ZoneName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetZoneName() string {
if o == nil || IsNil(o.ZoneName.Get()) {
var ret string
return ret
}
return *o.ZoneName.Get()
}
// GetZoneNameOk returns a tuple with the ZoneName 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 *ProvisioningSchemeVmMetadataResponseModel) GetZoneNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ZoneName.Get(), o.ZoneName.IsSet()
}
// HasZoneName returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasZoneName() bool {
if o != nil && o.ZoneName.IsSet() {
return true
}
return false
}
// SetZoneName gets a reference to the given NullableString and assigns it to the ZoneName field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetZoneName(v string) {
o.ZoneName.Set(&v)
}
// SetZoneNameNil sets the value for ZoneName to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetZoneNameNil() {
o.ZoneName.Set(nil)
}
// UnsetZoneName ensures that no value is present for ZoneName, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetZoneName() {
o.ZoneName.Unset()
}
// GetStorageType returns the StorageType field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetStorageType() string {
if o == nil || IsNil(o.StorageType.Get()) {
var ret string
return ret
}
return *o.StorageType.Get()
}
// GetStorageTypeOk returns a tuple with the StorageType 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 *ProvisioningSchemeVmMetadataResponseModel) GetStorageTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.StorageType.Get(), o.StorageType.IsSet()
}
// HasStorageType returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasStorageType() bool {
if o != nil && o.StorageType.IsSet() {
return true
}
return false
}
// SetStorageType gets a reference to the given NullableString and assigns it to the StorageType field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetStorageType(v string) {
o.StorageType.Set(&v)
}
// SetStorageTypeNil sets the value for StorageType to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetStorageTypeNil() {
o.StorageType.Set(nil)
}
// UnsetStorageType ensures that no value is present for StorageType, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetStorageType() {
o.StorageType.Unset()
}
// GetEncryptionKeyId returns the EncryptionKeyId field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProvisioningSchemeVmMetadataResponseModel) GetEncryptionKeyId() string {
if o == nil || IsNil(o.EncryptionKeyId.Get()) {
var ret string
return ret
}
return *o.EncryptionKeyId.Get()
}
// GetEncryptionKeyIdOk returns a tuple with the EncryptionKeyId 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 *ProvisioningSchemeVmMetadataResponseModel) GetEncryptionKeyIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.EncryptionKeyId.Get(), o.EncryptionKeyId.IsSet()
}
// HasEncryptionKeyId returns a boolean if a field has been set.
func (o *ProvisioningSchemeVmMetadataResponseModel) HasEncryptionKeyId() bool {
if o != nil && o.EncryptionKeyId.IsSet() {
return true
}
return false
}
// SetEncryptionKeyId gets a reference to the given NullableString and assigns it to the EncryptionKeyId field.
func (o *ProvisioningSchemeVmMetadataResponseModel) SetEncryptionKeyId(v string) {
o.EncryptionKeyId.Set(&v)
}
// SetEncryptionKeyIdNil sets the value for EncryptionKeyId to be an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) SetEncryptionKeyIdNil() {
o.EncryptionKeyId.Set(nil)
}
// UnsetEncryptionKeyId ensures that no value is present for EncryptionKeyId, not even an explicit nil
func (o *ProvisioningSchemeVmMetadataResponseModel) UnsetEncryptionKeyId() {
o.EncryptionKeyId.Unset()
}
func (o ProvisioningSchemeVmMetadataResponseModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ProvisioningSchemeVmMetadataResponseModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.MachineSize.IsSet() {
toSerialize["MachineSize"] = o.MachineSize.Get()
}
if o.OsDiskCaching.IsSet() {
toSerialize["OsDiskCaching"] = o.OsDiskCaching.Get()
}
if o.Tags.IsSet() {
toSerialize["Tags"] = o.Tags.Get()
}
if o.BootDiagnostics.IsSet() {
toSerialize["BootDiagnostics"] = o.BootDiagnostics.Get()
}
if o.AcceleratedNetwork.IsSet() {
toSerialize["AcceleratedNetwork"] = o.AcceleratedNetwork.Get()
}
if o.SupportsHibernation.IsSet() {
toSerialize["SupportsHibernation"] = o.SupportsHibernation.Get()
}
if o.SecurityType.IsSet() {
toSerialize["SecurityType"] = o.SecurityType.Get()
}
if o.DiskSecurityType.IsSet() {
toSerialize["DiskSecurityType"] = o.DiskSecurityType.Get()
}
if o.ConfidentialVmDiskEncryptionSetId.IsSet() {
toSerialize["ConfidentialVmDiskEncryptionSetId"] = o.ConfidentialVmDiskEncryptionSetId.Get()
}
if o.EnableSecureBoot.IsSet() {
toSerialize["EnableSecureBoot"] = o.EnableSecureBoot.Get()
}
if o.EnableVTPM.IsSet() {
toSerialize["EnableVTPM"] = o.EnableVTPM.Get()
}
if o.EncryptionAtHost.IsSet() {
toSerialize["EncryptionAtHost"] = o.EncryptionAtHost.Get()
}
if o.Labels.IsSet() {
toSerialize["Labels"] = o.Labels.Get()
}
if o.ZoneName.IsSet() {
toSerialize["ZoneName"] = o.ZoneName.Get()
}
if o.StorageType.IsSet() {
toSerialize["StorageType"] = o.StorageType.Get()
}
if o.EncryptionKeyId.IsSet() {
toSerialize["EncryptionKeyId"] = o.EncryptionKeyId.Get()
}
return toSerialize, nil
}
type NullableProvisioningSchemeVmMetadataResponseModel struct {
value *ProvisioningSchemeVmMetadataResponseModel
isSet bool
}
func (v NullableProvisioningSchemeVmMetadataResponseModel) Get() *ProvisioningSchemeVmMetadataResponseModel {
return v.value
}
func (v *NullableProvisioningSchemeVmMetadataResponseModel) Set(val *ProvisioningSchemeVmMetadataResponseModel) {
v.value = val
v.isSet = true
}
func (v NullableProvisioningSchemeVmMetadataResponseModel) IsSet() bool {
return v.isSet
}
func (v *NullableProvisioningSchemeVmMetadataResponseModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProvisioningSchemeVmMetadataResponseModel(val *ProvisioningSchemeVmMetadataResponseModel) *NullableProvisioningSchemeVmMetadataResponseModel {
return &NullableProvisioningSchemeVmMetadataResponseModel{value: val, isSet: true}
}
func (v NullableProvisioningSchemeVmMetadataResponseModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProvisioningSchemeVmMetadataResponseModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}