-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_update_machine_catalog_provisioning_scheme_request_model.go
831 lines (716 loc) · 33.6 KB
/
model_update_machine_catalog_provisioning_scheme_request_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
/*
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 UpdateMachineCatalogProvisioningSchemeRequestModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UpdateMachineCatalogProvisioningSchemeRequestModel{}
// UpdateMachineCatalogProvisioningSchemeRequestModel Request object for updating the master image used for provisioned machines in a machine catalog.
type UpdateMachineCatalogProvisioningSchemeRequestModel struct {
// The path in the resource pool to the virtual machine snapshot or VM template that will be used. This identifies the hard disk to be used and the default values for the memory and processors. This must be a path to a Snapshot or Template item in the resource pool to which the Machine Catalog is associated.
MasterImagePath NullableString `json:"MasterImagePath,omitempty"`
// The path in the resource pool to the virtual machine template that will be used. This identifies the VM template to be used and the default values for the tags, virtual machine size, boot diagnostics, host cache property of OS disk, accelerated networking and availability zone. This must be a path to a Virtual machine or Template item in the resource pool to which the Machine Catalog is associated.
MachineProfilePath NullableString `json:"MachineProfilePath,omitempty"`
// Whether the old image is stored in the catalog history.
StoreOldImage NullableBool `json:"StoreOldImage,omitempty"`
MinimumFunctionalLevel *FunctionalLevel `json:"MinimumFunctionalLevel,omitempty"`
// The note of the new image.
MasterImageNote NullableString `json:"MasterImageNote,omitempty"`
// `DEPRECATED.` The number of processors that virtual machines created from the provisioning scheme should use.
// Deprecated
CpuCount NullableInt32 `json:"CpuCount,omitempty"`
// `DEPRECATED.` The maximum amount of memory that virtual machines created from the provisioning scheme should use.
// Deprecated
MemoryMB NullableInt32 `json:"MemoryMB,omitempty"`
// `DEPRECATED.` The hypervisor resource path of the Cloud service offering to use when creating machines.
// Deprecated
ServiceOfferingPath NullableString `json:"ServiceOfferingPath,omitempty"`
// The properties of the provisioning scheme that are specific to the target hosting infrastructure.
CustomProperties []NameValueStringPairModel `json:"CustomProperties,omitempty"`
// The properties of the provisioning scheme in a single string, that are specific to the target hosting infrastructure. This is an optional method to set the custom properties which are not in the form of an array.
CustomPropertiesInString NullableString `json:"CustomPropertiesInString,omitempty"`
RebootOptions *RebootMachinesRequestModel `json:"RebootOptions,omitempty"`
// `DEPRECATED.` Total number of machines desired within the catalog. Optional; default is to leave the number of machines in the catalog unchanged.
// Deprecated
NumTotalMachines NullableInt32 `json:"NumTotalMachines,omitempty"`
MachineAccountCreationRules *UpdateMachineAccountCreationRulesRequestModel `json:"MachineAccountCreationRules,omitempty"`
// `DEPRECATED.` List of Active Directory machine accounts to add to the pool of available accounts that are to be used when machines are provisioned.
// Deprecated
AddAvailableMachineAccounts []MachineAccountRequestModel `json:"AddAvailableMachineAccounts,omitempty"`
// `DEPRECATED.` List of Active Directory machine accounts to remove from the pool of available accounts that are used when machines are provisioned.
// Deprecated
RemoveAvailableMachineAccounts []string `json:"RemoveAvailableMachineAccounts,omitempty"`
MachineAccountDeleteOption *MachineAccountDeleteOption `json:"MachineAccountDeleteOption,omitempty"`
ImageVersion *AssignImageVersionToMachineCatalogRequestModel `json:"ImageVersion,omitempty"`
}
// NewUpdateMachineCatalogProvisioningSchemeRequestModel instantiates a new UpdateMachineCatalogProvisioningSchemeRequestModel 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 NewUpdateMachineCatalogProvisioningSchemeRequestModel() *UpdateMachineCatalogProvisioningSchemeRequestModel {
this := UpdateMachineCatalogProvisioningSchemeRequestModel{}
return &this
}
// NewUpdateMachineCatalogProvisioningSchemeRequestModelWithDefaults instantiates a new UpdateMachineCatalogProvisioningSchemeRequestModel 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 NewUpdateMachineCatalogProvisioningSchemeRequestModelWithDefaults() *UpdateMachineCatalogProvisioningSchemeRequestModel {
this := UpdateMachineCatalogProvisioningSchemeRequestModel{}
return &this
}
// GetMasterImagePath returns the MasterImagePath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMasterImagePath() string {
if o == nil || IsNil(o.MasterImagePath.Get()) {
var ret string
return ret
}
return *o.MasterImagePath.Get()
}
// GetMasterImagePathOk returns a tuple with the MasterImagePath 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 *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMasterImagePathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MasterImagePath.Get(), o.MasterImagePath.IsSet()
}
// HasMasterImagePath returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasMasterImagePath() bool {
if o != nil && o.MasterImagePath.IsSet() {
return true
}
return false
}
// SetMasterImagePath gets a reference to the given NullableString and assigns it to the MasterImagePath field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMasterImagePath(v string) {
o.MasterImagePath.Set(&v)
}
// SetMasterImagePathNil sets the value for MasterImagePath to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMasterImagePathNil() {
o.MasterImagePath.Set(nil)
}
// UnsetMasterImagePath ensures that no value is present for MasterImagePath, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetMasterImagePath() {
o.MasterImagePath.Unset()
}
// GetMachineProfilePath returns the MachineProfilePath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMachineProfilePath() string {
if o == nil || IsNil(o.MachineProfilePath.Get()) {
var ret string
return ret
}
return *o.MachineProfilePath.Get()
}
// GetMachineProfilePathOk returns a tuple with the MachineProfilePath 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 *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMachineProfilePathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MachineProfilePath.Get(), o.MachineProfilePath.IsSet()
}
// HasMachineProfilePath returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasMachineProfilePath() bool {
if o != nil && o.MachineProfilePath.IsSet() {
return true
}
return false
}
// SetMachineProfilePath gets a reference to the given NullableString and assigns it to the MachineProfilePath field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMachineProfilePath(v string) {
o.MachineProfilePath.Set(&v)
}
// SetMachineProfilePathNil sets the value for MachineProfilePath to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMachineProfilePathNil() {
o.MachineProfilePath.Set(nil)
}
// UnsetMachineProfilePath ensures that no value is present for MachineProfilePath, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetMachineProfilePath() {
o.MachineProfilePath.Unset()
}
// GetStoreOldImage returns the StoreOldImage field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetStoreOldImage() bool {
if o == nil || IsNil(o.StoreOldImage.Get()) {
var ret bool
return ret
}
return *o.StoreOldImage.Get()
}
// GetStoreOldImageOk returns a tuple with the StoreOldImage 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 *UpdateMachineCatalogProvisioningSchemeRequestModel) GetStoreOldImageOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.StoreOldImage.Get(), o.StoreOldImage.IsSet()
}
// HasStoreOldImage returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasStoreOldImage() bool {
if o != nil && o.StoreOldImage.IsSet() {
return true
}
return false
}
// SetStoreOldImage gets a reference to the given NullableBool and assigns it to the StoreOldImage field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetStoreOldImage(v bool) {
o.StoreOldImage.Set(&v)
}
// SetStoreOldImageNil sets the value for StoreOldImage to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetStoreOldImageNil() {
o.StoreOldImage.Set(nil)
}
// UnsetStoreOldImage ensures that no value is present for StoreOldImage, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetStoreOldImage() {
o.StoreOldImage.Unset()
}
// GetMinimumFunctionalLevel returns the MinimumFunctionalLevel field value if set, zero value otherwise.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMinimumFunctionalLevel() FunctionalLevel {
if o == nil || IsNil(o.MinimumFunctionalLevel) {
var ret FunctionalLevel
return ret
}
return *o.MinimumFunctionalLevel
}
// GetMinimumFunctionalLevelOk returns a tuple with the MinimumFunctionalLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMinimumFunctionalLevelOk() (*FunctionalLevel, bool) {
if o == nil || IsNil(o.MinimumFunctionalLevel) {
return nil, false
}
return o.MinimumFunctionalLevel, true
}
// HasMinimumFunctionalLevel returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasMinimumFunctionalLevel() bool {
if o != nil && !IsNil(o.MinimumFunctionalLevel) {
return true
}
return false
}
// SetMinimumFunctionalLevel gets a reference to the given FunctionalLevel and assigns it to the MinimumFunctionalLevel field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMinimumFunctionalLevel(v FunctionalLevel) {
o.MinimumFunctionalLevel = &v
}
// GetMasterImageNote returns the MasterImageNote field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMasterImageNote() string {
if o == nil || IsNil(o.MasterImageNote.Get()) {
var ret string
return ret
}
return *o.MasterImageNote.Get()
}
// GetMasterImageNoteOk returns a tuple with the MasterImageNote 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 *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMasterImageNoteOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MasterImageNote.Get(), o.MasterImageNote.IsSet()
}
// HasMasterImageNote returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasMasterImageNote() bool {
if o != nil && o.MasterImageNote.IsSet() {
return true
}
return false
}
// SetMasterImageNote gets a reference to the given NullableString and assigns it to the MasterImageNote field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMasterImageNote(v string) {
o.MasterImageNote.Set(&v)
}
// SetMasterImageNoteNil sets the value for MasterImageNote to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMasterImageNoteNil() {
o.MasterImageNote.Set(nil)
}
// UnsetMasterImageNote ensures that no value is present for MasterImageNote, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetMasterImageNote() {
o.MasterImageNote.Unset()
}
// GetCpuCount returns the CpuCount field value if set, zero value otherwise (both if not set or set to explicit null).
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetCpuCount() int32 {
if o == nil || IsNil(o.CpuCount.Get()) {
var ret int32
return ret
}
return *o.CpuCount.Get()
}
// GetCpuCountOk returns a tuple with the CpuCount 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
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetCpuCountOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.CpuCount.Get(), o.CpuCount.IsSet()
}
// HasCpuCount returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasCpuCount() bool {
if o != nil && o.CpuCount.IsSet() {
return true
}
return false
}
// SetCpuCount gets a reference to the given NullableInt32 and assigns it to the CpuCount field.
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetCpuCount(v int32) {
o.CpuCount.Set(&v)
}
// SetCpuCountNil sets the value for CpuCount to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetCpuCountNil() {
o.CpuCount.Set(nil)
}
// UnsetCpuCount ensures that no value is present for CpuCount, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetCpuCount() {
o.CpuCount.Unset()
}
// GetMemoryMB returns the MemoryMB field value if set, zero value otherwise (both if not set or set to explicit null).
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMemoryMB() int32 {
if o == nil || IsNil(o.MemoryMB.Get()) {
var ret int32
return ret
}
return *o.MemoryMB.Get()
}
// GetMemoryMBOk returns a tuple with the MemoryMB 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
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMemoryMBOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.MemoryMB.Get(), o.MemoryMB.IsSet()
}
// HasMemoryMB returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasMemoryMB() bool {
if o != nil && o.MemoryMB.IsSet() {
return true
}
return false
}
// SetMemoryMB gets a reference to the given NullableInt32 and assigns it to the MemoryMB field.
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMemoryMB(v int32) {
o.MemoryMB.Set(&v)
}
// SetMemoryMBNil sets the value for MemoryMB to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMemoryMBNil() {
o.MemoryMB.Set(nil)
}
// UnsetMemoryMB ensures that no value is present for MemoryMB, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetMemoryMB() {
o.MemoryMB.Unset()
}
// GetServiceOfferingPath returns the ServiceOfferingPath field value if set, zero value otherwise (both if not set or set to explicit null).
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetServiceOfferingPath() string {
if o == nil || IsNil(o.ServiceOfferingPath.Get()) {
var ret string
return ret
}
return *o.ServiceOfferingPath.Get()
}
// GetServiceOfferingPathOk returns a tuple with the ServiceOfferingPath 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
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetServiceOfferingPathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ServiceOfferingPath.Get(), o.ServiceOfferingPath.IsSet()
}
// HasServiceOfferingPath returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasServiceOfferingPath() bool {
if o != nil && o.ServiceOfferingPath.IsSet() {
return true
}
return false
}
// SetServiceOfferingPath gets a reference to the given NullableString and assigns it to the ServiceOfferingPath field.
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetServiceOfferingPath(v string) {
o.ServiceOfferingPath.Set(&v)
}
// SetServiceOfferingPathNil sets the value for ServiceOfferingPath to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetServiceOfferingPathNil() {
o.ServiceOfferingPath.Set(nil)
}
// UnsetServiceOfferingPath ensures that no value is present for ServiceOfferingPath, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetServiceOfferingPath() {
o.ServiceOfferingPath.Unset()
}
// GetCustomProperties returns the CustomProperties field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetCustomProperties() []NameValueStringPairModel {
if o == nil {
var ret []NameValueStringPairModel
return ret
}
return o.CustomProperties
}
// GetCustomPropertiesOk returns a tuple with the CustomProperties 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 *UpdateMachineCatalogProvisioningSchemeRequestModel) GetCustomPropertiesOk() ([]NameValueStringPairModel, bool) {
if o == nil || IsNil(o.CustomProperties) {
return nil, false
}
return o.CustomProperties, true
}
// HasCustomProperties returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasCustomProperties() bool {
if o != nil && IsNil(o.CustomProperties) {
return true
}
return false
}
// SetCustomProperties gets a reference to the given []NameValueStringPairModel and assigns it to the CustomProperties field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetCustomProperties(v []NameValueStringPairModel) {
o.CustomProperties = v
}
// GetCustomPropertiesInString returns the CustomPropertiesInString field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetCustomPropertiesInString() string {
if o == nil || IsNil(o.CustomPropertiesInString.Get()) {
var ret string
return ret
}
return *o.CustomPropertiesInString.Get()
}
// GetCustomPropertiesInStringOk returns a tuple with the CustomPropertiesInString 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 *UpdateMachineCatalogProvisioningSchemeRequestModel) GetCustomPropertiesInStringOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CustomPropertiesInString.Get(), o.CustomPropertiesInString.IsSet()
}
// HasCustomPropertiesInString returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasCustomPropertiesInString() bool {
if o != nil && o.CustomPropertiesInString.IsSet() {
return true
}
return false
}
// SetCustomPropertiesInString gets a reference to the given NullableString and assigns it to the CustomPropertiesInString field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetCustomPropertiesInString(v string) {
o.CustomPropertiesInString.Set(&v)
}
// SetCustomPropertiesInStringNil sets the value for CustomPropertiesInString to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetCustomPropertiesInStringNil() {
o.CustomPropertiesInString.Set(nil)
}
// UnsetCustomPropertiesInString ensures that no value is present for CustomPropertiesInString, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetCustomPropertiesInString() {
o.CustomPropertiesInString.Unset()
}
// GetRebootOptions returns the RebootOptions field value if set, zero value otherwise.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetRebootOptions() RebootMachinesRequestModel {
if o == nil || IsNil(o.RebootOptions) {
var ret RebootMachinesRequestModel
return ret
}
return *o.RebootOptions
}
// GetRebootOptionsOk returns a tuple with the RebootOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetRebootOptionsOk() (*RebootMachinesRequestModel, bool) {
if o == nil || IsNil(o.RebootOptions) {
return nil, false
}
return o.RebootOptions, true
}
// HasRebootOptions returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasRebootOptions() bool {
if o != nil && !IsNil(o.RebootOptions) {
return true
}
return false
}
// SetRebootOptions gets a reference to the given RebootMachinesRequestModel and assigns it to the RebootOptions field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetRebootOptions(v RebootMachinesRequestModel) {
o.RebootOptions = &v
}
// GetNumTotalMachines returns the NumTotalMachines field value if set, zero value otherwise (both if not set or set to explicit null).
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetNumTotalMachines() int32 {
if o == nil || IsNil(o.NumTotalMachines.Get()) {
var ret int32
return ret
}
return *o.NumTotalMachines.Get()
}
// GetNumTotalMachinesOk returns a tuple with the NumTotalMachines 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
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetNumTotalMachinesOk() (*int32, bool) {
if o == nil {
return nil, false
}
return o.NumTotalMachines.Get(), o.NumTotalMachines.IsSet()
}
// HasNumTotalMachines returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasNumTotalMachines() bool {
if o != nil && o.NumTotalMachines.IsSet() {
return true
}
return false
}
// SetNumTotalMachines gets a reference to the given NullableInt32 and assigns it to the NumTotalMachines field.
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetNumTotalMachines(v int32) {
o.NumTotalMachines.Set(&v)
}
// SetNumTotalMachinesNil sets the value for NumTotalMachines to be an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetNumTotalMachinesNil() {
o.NumTotalMachines.Set(nil)
}
// UnsetNumTotalMachines ensures that no value is present for NumTotalMachines, not even an explicit nil
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) UnsetNumTotalMachines() {
o.NumTotalMachines.Unset()
}
// GetMachineAccountCreationRules returns the MachineAccountCreationRules field value if set, zero value otherwise.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMachineAccountCreationRules() UpdateMachineAccountCreationRulesRequestModel {
if o == nil || IsNil(o.MachineAccountCreationRules) {
var ret UpdateMachineAccountCreationRulesRequestModel
return ret
}
return *o.MachineAccountCreationRules
}
// GetMachineAccountCreationRulesOk returns a tuple with the MachineAccountCreationRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMachineAccountCreationRulesOk() (*UpdateMachineAccountCreationRulesRequestModel, bool) {
if o == nil || IsNil(o.MachineAccountCreationRules) {
return nil, false
}
return o.MachineAccountCreationRules, true
}
// HasMachineAccountCreationRules returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasMachineAccountCreationRules() bool {
if o != nil && !IsNil(o.MachineAccountCreationRules) {
return true
}
return false
}
// SetMachineAccountCreationRules gets a reference to the given UpdateMachineAccountCreationRulesRequestModel and assigns it to the MachineAccountCreationRules field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMachineAccountCreationRules(v UpdateMachineAccountCreationRulesRequestModel) {
o.MachineAccountCreationRules = &v
}
// GetAddAvailableMachineAccounts returns the AddAvailableMachineAccounts field value if set, zero value otherwise (both if not set or set to explicit null).
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetAddAvailableMachineAccounts() []MachineAccountRequestModel {
if o == nil {
var ret []MachineAccountRequestModel
return ret
}
return o.AddAvailableMachineAccounts
}
// GetAddAvailableMachineAccountsOk returns a tuple with the AddAvailableMachineAccounts 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
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetAddAvailableMachineAccountsOk() ([]MachineAccountRequestModel, bool) {
if o == nil || IsNil(o.AddAvailableMachineAccounts) {
return nil, false
}
return o.AddAvailableMachineAccounts, true
}
// HasAddAvailableMachineAccounts returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasAddAvailableMachineAccounts() bool {
if o != nil && IsNil(o.AddAvailableMachineAccounts) {
return true
}
return false
}
// SetAddAvailableMachineAccounts gets a reference to the given []MachineAccountRequestModel and assigns it to the AddAvailableMachineAccounts field.
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetAddAvailableMachineAccounts(v []MachineAccountRequestModel) {
o.AddAvailableMachineAccounts = v
}
// GetRemoveAvailableMachineAccounts returns the RemoveAvailableMachineAccounts field value if set, zero value otherwise (both if not set or set to explicit null).
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetRemoveAvailableMachineAccounts() []string {
if o == nil {
var ret []string
return ret
}
return o.RemoveAvailableMachineAccounts
}
// GetRemoveAvailableMachineAccountsOk returns a tuple with the RemoveAvailableMachineAccounts 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
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetRemoveAvailableMachineAccountsOk() ([]string, bool) {
if o == nil || IsNil(o.RemoveAvailableMachineAccounts) {
return nil, false
}
return o.RemoveAvailableMachineAccounts, true
}
// HasRemoveAvailableMachineAccounts returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasRemoveAvailableMachineAccounts() bool {
if o != nil && IsNil(o.RemoveAvailableMachineAccounts) {
return true
}
return false
}
// SetRemoveAvailableMachineAccounts gets a reference to the given []string and assigns it to the RemoveAvailableMachineAccounts field.
// Deprecated
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetRemoveAvailableMachineAccounts(v []string) {
o.RemoveAvailableMachineAccounts = v
}
// GetMachineAccountDeleteOption returns the MachineAccountDeleteOption field value if set, zero value otherwise.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMachineAccountDeleteOption() MachineAccountDeleteOption {
if o == nil || IsNil(o.MachineAccountDeleteOption) {
var ret MachineAccountDeleteOption
return ret
}
return *o.MachineAccountDeleteOption
}
// GetMachineAccountDeleteOptionOk returns a tuple with the MachineAccountDeleteOption field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetMachineAccountDeleteOptionOk() (*MachineAccountDeleteOption, bool) {
if o == nil || IsNil(o.MachineAccountDeleteOption) {
return nil, false
}
return o.MachineAccountDeleteOption, true
}
// HasMachineAccountDeleteOption returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasMachineAccountDeleteOption() bool {
if o != nil && !IsNil(o.MachineAccountDeleteOption) {
return true
}
return false
}
// SetMachineAccountDeleteOption gets a reference to the given MachineAccountDeleteOption and assigns it to the MachineAccountDeleteOption field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetMachineAccountDeleteOption(v MachineAccountDeleteOption) {
o.MachineAccountDeleteOption = &v
}
// GetImageVersion returns the ImageVersion field value if set, zero value otherwise.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetImageVersion() AssignImageVersionToMachineCatalogRequestModel {
if o == nil || IsNil(o.ImageVersion) {
var ret AssignImageVersionToMachineCatalogRequestModel
return ret
}
return *o.ImageVersion
}
// GetImageVersionOk returns a tuple with the ImageVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) GetImageVersionOk() (*AssignImageVersionToMachineCatalogRequestModel, bool) {
if o == nil || IsNil(o.ImageVersion) {
return nil, false
}
return o.ImageVersion, true
}
// HasImageVersion returns a boolean if a field has been set.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) HasImageVersion() bool {
if o != nil && !IsNil(o.ImageVersion) {
return true
}
return false
}
// SetImageVersion gets a reference to the given AssignImageVersionToMachineCatalogRequestModel and assigns it to the ImageVersion field.
func (o *UpdateMachineCatalogProvisioningSchemeRequestModel) SetImageVersion(v AssignImageVersionToMachineCatalogRequestModel) {
o.ImageVersion = &v
}
func (o UpdateMachineCatalogProvisioningSchemeRequestModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UpdateMachineCatalogProvisioningSchemeRequestModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.MasterImagePath.IsSet() {
toSerialize["MasterImagePath"] = o.MasterImagePath.Get()
}
if o.MachineProfilePath.IsSet() {
toSerialize["MachineProfilePath"] = o.MachineProfilePath.Get()
}
if o.StoreOldImage.IsSet() {
toSerialize["StoreOldImage"] = o.StoreOldImage.Get()
}
if !IsNil(o.MinimumFunctionalLevel) {
toSerialize["MinimumFunctionalLevel"] = o.MinimumFunctionalLevel
}
if o.MasterImageNote.IsSet() {
toSerialize["MasterImageNote"] = o.MasterImageNote.Get()
}
if o.CpuCount.IsSet() {
toSerialize["CpuCount"] = o.CpuCount.Get()
}
if o.MemoryMB.IsSet() {
toSerialize["MemoryMB"] = o.MemoryMB.Get()
}
if o.ServiceOfferingPath.IsSet() {
toSerialize["ServiceOfferingPath"] = o.ServiceOfferingPath.Get()
}
if o.CustomProperties != nil {
toSerialize["CustomProperties"] = o.CustomProperties
}
if o.CustomPropertiesInString.IsSet() {
toSerialize["CustomPropertiesInString"] = o.CustomPropertiesInString.Get()
}
if !IsNil(o.RebootOptions) {
toSerialize["RebootOptions"] = o.RebootOptions
}
if o.NumTotalMachines.IsSet() {
toSerialize["NumTotalMachines"] = o.NumTotalMachines.Get()
}
if !IsNil(o.MachineAccountCreationRules) {
toSerialize["MachineAccountCreationRules"] = o.MachineAccountCreationRules
}
if o.AddAvailableMachineAccounts != nil {
toSerialize["AddAvailableMachineAccounts"] = o.AddAvailableMachineAccounts
}
if o.RemoveAvailableMachineAccounts != nil {
toSerialize["RemoveAvailableMachineAccounts"] = o.RemoveAvailableMachineAccounts
}
if !IsNil(o.MachineAccountDeleteOption) {
toSerialize["MachineAccountDeleteOption"] = o.MachineAccountDeleteOption
}
if !IsNil(o.ImageVersion) {
toSerialize["ImageVersion"] = o.ImageVersion
}
return toSerialize, nil
}
type NullableUpdateMachineCatalogProvisioningSchemeRequestModel struct {
value *UpdateMachineCatalogProvisioningSchemeRequestModel
isSet bool
}
func (v NullableUpdateMachineCatalogProvisioningSchemeRequestModel) Get() *UpdateMachineCatalogProvisioningSchemeRequestModel {
return v.value
}
func (v *NullableUpdateMachineCatalogProvisioningSchemeRequestModel) Set(val *UpdateMachineCatalogProvisioningSchemeRequestModel) {
v.value = val
v.isSet = true
}
func (v NullableUpdateMachineCatalogProvisioningSchemeRequestModel) IsSet() bool {
return v.isSet
}
func (v *NullableUpdateMachineCatalogProvisioningSchemeRequestModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUpdateMachineCatalogProvisioningSchemeRequestModel(val *UpdateMachineCatalogProvisioningSchemeRequestModel) *NullableUpdateMachineCatalogProvisioningSchemeRequestModel {
return &NullableUpdateMachineCatalogProvisioningSchemeRequestModel{value: val, isSet: true}
}
func (v NullableUpdateMachineCatalogProvisioningSchemeRequestModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUpdateMachineCatalogProvisioningSchemeRequestModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}