-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_create_virtual_machine_request_content.go
6733 lines (5813 loc) · 186 KB
/
model_create_virtual_machine_request_content.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Proxmox
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 2023-01-01
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package proxmox
import (
"encoding/json"
)
// checks if the CreateVirtualMachineRequestContent type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateVirtualMachineRequestContent{}
// CreateVirtualMachineRequestContent struct for CreateVirtualMachineRequestContent
type CreateVirtualMachineRequestContent struct {
// The id of the virtual machine as a string
Vmid string `json:"vmid"`
// Enable ACPI support. Default to enabled.
Acpi *float32 `json:"acpi,omitempty"`
// List of cores to execute processes. Example value: 1,5,8-11.
Affinity *string `json:"affinity,omitempty"`
// The QEMU agent and its configuration.
Agent *string `json:"agent,omitempty"`
// The archive of the virtual machine.
Archive *string `json:"archive,omitempty"`
Arch *VirtualMachineArchitecture `json:"arch,omitempty"`
// Additional command line arguments passed to the kvm.
Args *string `json:"args,omitempty"`
// The audio device and its configuration.
Audio0 *string `json:"audio0,omitempty"`
// Start the virtual machine on crash.
Autostart *float32 `json:"autostart,omitempty"`
// Amount of RAM for the VM in MB.
Ballon *float32 `json:"ballon,omitempty"`
Bios *VirtualMachineBios `json:"bios,omitempty"`
// The boot order of the virtual machine.
Boot *string `json:"boot,omitempty"`
// The boot disk of the virtual machine.
Bootdisk *string `json:"bootdisk,omitempty"`
// The CD-ROM device and its configuration. An alias for option ide2
Cdrom *string `json:"cdrom,omitempty"`
// Specify custom cloud-init files to be used at start.
Cicustom *string `json:"cicustom,omitempty"`
// The password for the cloud-init user.
Cipassword *string `json:"cipassword,omitempty"`
Citype *VirtualMachineCloudInitType `json:"citype,omitempty"`
// The cloud-init user.
Ciuser *string `json:"ciuser,omitempty"`
// Number of cores per socket.
Cores *float32 `json:"cores,omitempty"`
// The CPU type.
Cpu *string `json:"cpu,omitempty"`
// CPU usage limit.
Cpulimit *float32 `json:"cpulimit,omitempty"`
// CPU weight for a VM. The higher the value, the more CPU time the VM gets.
Cpuunits *float32 `json:"cpuunits,omitempty"`
// The description of the virtual machine.
Description *string `json:"description,omitempty"`
// The SHA1 digest of the virtual machine configuration. This can prevent concurrent modifications of the virtual machine configuration.
Digest *string `json:"digest,omitempty"`
// The EFI disk device and its configuration.
Efidisk0 *string `json:"efidisk0,omitempty"`
// Freeze the CPU at virtual machine start.
Freeze *bool `json:"freeze,omitempty"`
// The hook script that is used at various point in the virtual machines lifecycle.
Hookscript *string `json:"hookscript,omitempty"`
// The host PCI device and its configuration.
Hostpci0 *string `json:"hostpci0,omitempty"`
// The host PCI device and its configuration.
Hostpci1 *string `json:"hostpci1,omitempty"`
// The host PCI device and its configuration.
Hostpci2 *string `json:"hostpci2,omitempty"`
// The host PCI device and its configuration.
Hostpci3 *string `json:"hostpci3,omitempty"`
// The host PCI device and its configuration.
Hostpci4 *string `json:"hostpci4,omitempty"`
// The host PCI device and its configuration.
Hostpci5 *string `json:"hostpci5,omitempty"`
// The host PCI device and its configuration.
Hostpci6 *string `json:"hostpci6,omitempty"`
// The host PCI device and its configuration.
Hostpci7 *string `json:"hostpci7,omitempty"`
// The host PCI device and its configuration.
Hostpci8 *string `json:"hostpci8,omitempty"`
// The host PCI device and its configuration.
Hostpci9 *string `json:"hostpci9,omitempty"`
Hugepages *VirtualMachineHugePages `json:"hugepages,omitempty"`
// Volume used as IDE or harddisk.
Ide0 *string `json:"ide0,omitempty"`
// Volume used as IDE or harddisk.
Ide1 *string `json:"ide1,omitempty"`
// Volume used as IDE or harddisk.
Ide2 *string `json:"ide2,omitempty"`
// Volume used as IDE or harddisk.
Ide3 *string `json:"ide3,omitempty"`
// The ip address and gateways for the interface. Ip addresses are in CIDR format. Example value: ip=10.0.100.101/24,gw=10.0.100.1
Ipconfig0 *string `json:"ipconfig0,omitempty"`
// The ip address and gateways for the interface. Ip addresses are in CIDR format. Example value: ip=10.0.100.101/24,gw=10.0.100.1
Ipconfig1 *string `json:"ipconfig1,omitempty"`
// The ip address and gateways for the interface. Ip addresses are in CIDR format. Example value: ip=10.0.100.101/24,gw=10.0.100.1
Ipconfig2 *string `json:"ipconfig2,omitempty"`
// The ip address and gateways for the interface. Ip addresses are in CIDR format. Example value: ip=10.0.100.101/24,gw=10.0.100.1
Ipconfig3 *string `json:"ipconfig3,omitempty"`
// The ip address and gateways for the interface. Ip addresses are in CIDR format. Example value: ip=10.0.100.101/24,gw=10.0.100.1
Ipconfig4 *string `json:"ipconfig4,omitempty"`
// The ip address and gateways for the interface. Ip addresses are in CIDR format. Example value: ip=10.0.100.101/24,gw=10.0.100.1
Ipconfig5 *string `json:"ipconfig5,omitempty"`
// The ip address and gateways for the interface. Ip addresses are in CIDR format. Example value: ip=10.0.100.101/24,gw=10.0.100.1
Ipconfig6 *string `json:"ipconfig6,omitempty"`
// The ip address and gateways for the interface. Ip addresses are in CIDR format. Example value: ip=10.0.100.101/24,gw=10.0.100.1
Ipconfig7 *string `json:"ipconfig7,omitempty"`
// Inter VM-shared memory.
Ivshmem *string `json:"ivshmem,omitempty"`
// Keep hugepages after shutdown.
Keephugepages *float32 `json:"keephugepages,omitempty"`
Keyboard *VirtualMachineKeyboard `json:"keyboard,omitempty"`
// Enable KVM support. Default to enabled.
Kvm *float32 `json:"kvm,omitempty"`
// Set the real time clock to local time.
Localtime *float32 `json:"localtime,omitempty"`
// Start VM immediatly from backup and start in the background.
LiveRestore *float32 `json:"live-restore,omitempty"`
Lock *VirtualMachineConfigLock `json:"lock,omitempty"`
// The machine type.
Machine *string `json:"machine,omitempty"`
// The amount of memory in MB.
Memory *float32 `json:"memory,omitempty"`
// The maximum tolerated downtime in seconds during migration.
MigrateDowntime *float32 `json:"migrate_downtime,omitempty"`
// The maximum speed in MB/s during migration. 0 is no limit
MigrateSpeed *float32 `json:"migrate_speed,omitempty"`
// The name of the virtual machine.
Name *string `json:"name,omitempty"`
// The nameserver for the virtual machine.
Nameserver *string `json:"nameserver,omitempty"`
// The network interface and its configuration.
Net0 *string `json:"net0,omitempty"`
// The network interface and its configuration.
Net1 *string `json:"net1,omitempty"`
// The network interface and its configuration.
Net2 *string `json:"net2,omitempty"`
// The network interface and its configuration.
Net3 *string `json:"net3,omitempty"`
// The network interface and its configuration.
Net4 *string `json:"net4,omitempty"`
// The network interface and its configuration.
Net5 *string `json:"net5,omitempty"`
// The network interface and its configuration.
Net6 *string `json:"net6,omitempty"`
// The network interface and its configuration.
Net7 *string `json:"net7,omitempty"`
// Enable NUMA support. Default to disabled.
Numa *float32 `json:"numa,omitempty"`
// NUMA topology.
Numa0 *string `json:"numa0,omitempty"`
// NUMA topology.
Numa1 *string `json:"numa1,omitempty"`
// NUMA topology.
Numa2 *string `json:"numa2,omitempty"`
// NUMA topology.
Numa3 *string `json:"numa3,omitempty"`
// NUMA topology.
Numa4 *string `json:"numa4,omitempty"`
// NUMA topology.
Numa5 *string `json:"numa5,omitempty"`
// NUMA topology.
Numa6 *string `json:"numa6,omitempty"`
// NUMA topology.
Numa7 *string `json:"numa7,omitempty"`
// Start the virtual machine on boot.
Onboot *float32 `json:"onboot,omitempty"`
Ostype *VirtualMachineOperatingSystem `json:"ostype,omitempty"`
// Host parallel device.
Parallel0 *string `json:"parallel0,omitempty"`
// Host parallel device.
Parallel1 *string `json:"parallel1,omitempty"`
// Host parallel device.
Parallel2 *string `json:"parallel2,omitempty"`
// The protection flag on the virtual machine. Disables remove VM and disk operations.
Protection *float32 `json:"protection,omitempty"`
// Allows reboot. False will have the virtual machine exit on reboot.
Reboot *float32 `json:"reboot,omitempty"`
// Virtio based random number generator.
Rng0 *string `json:"rng0,omitempty"`
// Uses the volume as a sata disk.
Sata0 *string `json:"sata0,omitempty"`
// Uses the volume as a sata disk.
Sata1 *string `json:"sata1,omitempty"`
// Uses the volume as a sata disk.
Sata2 *string `json:"sata2,omitempty"`
// Uses the volume as a sata disk.
Sata3 *string `json:"sata3,omitempty"`
// Uses the volume as a sata disk.
Sata4 *string `json:"sata4,omitempty"`
// Uses the volume as a sata disk.
Sata5 *string `json:"sata5,omitempty"`
// Uses the volume as a scsi disk.
Scsi0 *string `json:"scsi0,omitempty"`
// Uses the volume as a scsi disk.
Scsi1 *string `json:"scsi1,omitempty"`
// Uses the volume as a scsi disk.
Scsi2 *string `json:"scsi2,omitempty"`
// Uses the volume as a scsi disk.
Scsi3 *string `json:"scsi3,omitempty"`
// Uses the volume as a scsi disk.
Scsi4 *string `json:"scsi4,omitempty"`
// Uses the volume as a scsi disk.
Scsi5 *string `json:"scsi5,omitempty"`
// Uses the volume as a scsi disk.
Scsi6 *string `json:"scsi6,omitempty"`
// Uses the volume as a scsi disk.
Scsi7 *string `json:"scsi7,omitempty"`
// Uses the volume as a scsi disk.
Scsi8 *string `json:"scsi8,omitempty"`
// Uses the volume as a scsi disk.
Scsi9 *string `json:"scsi9,omitempty"`
// Uses the volume as a scsi disk.
Scsi10 *string `json:"scsi10,omitempty"`
// Uses the volume as a scsi disk.
Scsi11 *string `json:"scsi11,omitempty"`
// Uses the volume as a scsi disk.
Scsi12 *string `json:"scsi12,omitempty"`
// Uses the volume as a scsi disk.
Scsi13 *string `json:"scsi13,omitempty"`
// Uses the volume as a scsi disk.
Scsi14 *string `json:"scsi14,omitempty"`
// Uses the volume as a scsi disk.
Scsi15 *string `json:"scsi15,omitempty"`
// Uses the volume as a scsi disk.
Scsi16 *string `json:"scsi16,omitempty"`
// Uses the volume as a scsi disk.
Scsi17 *string `json:"scsi17,omitempty"`
// Uses the volume as a scsi disk.
Scsi18 *string `json:"scsi18,omitempty"`
// Uses the volume as a scsi disk.
Scsi19 *string `json:"scsi19,omitempty"`
// Uses the volume as a scsi disk.
Scsi20 *string `json:"scsi20,omitempty"`
// Uses the volume as a scsi disk.
Scsi21 *string `json:"scsi21,omitempty"`
// Uses the volume as a scsi disk.
Scsi22 *string `json:"scsi22,omitempty"`
// Uses the volume as a scsi disk.
Scsi23 *string `json:"scsi23,omitempty"`
// Uses the volume as a scsi disk.
Scsi24 *string `json:"scsi24,omitempty"`
// Uses the volume as a scsi disk.
Scsi25 *string `json:"scsi25,omitempty"`
// Uses the volume as a scsi disk.
Scsi26 *string `json:"scsi26,omitempty"`
// Uses the volume as a scsi disk.
Scsi27 *string `json:"scsi27,omitempty"`
// Uses the volume as a scsi disk.
Scsi28 *string `json:"scsi28,omitempty"`
// Uses the volume as a scsi disk.
Scsi29 *string `json:"scsi29,omitempty"`
// Uses the volume as a scsi disk.
Scsi30 *string `json:"scsi30,omitempty"`
Scsihw *VirtualMachineScsiControllerType `json:"scsihw,omitempty"`
// Cloudinit search domain.
Searchdomain *string `json:"searchdomain,omitempty"`
// A serial device on the virtual machine.
Serial0 *string `json:"serial0,omitempty"`
// A serial device on the virtual machine.
Serial1 *string `json:"serial1,omitempty"`
// A serial device on the virtual machine.
Serial2 *string `json:"serial2,omitempty"`
// A serial device on the virtual machine.
Serial3 *string `json:"serial3,omitempty"`
// The amount of memory shares for autoballooning.
Shares *float32 `json:"shares,omitempty"`
// SMBIOS type 1 field.
Smbios1 *string `json:"smbios1,omitempty"`
// The number of cpu sockets.
Sockets *float32 `json:"sockets,omitempty"`
// Enable spice enhancements.
SpiceEnhancements *string `json:"spice_enhancements,omitempty"`
// Cloud init SSH public keys. One per line.
Sshkeys *string `json:"sshkeys,omitempty"`
// The start date for the virtual machine real time clock.
Startdate *string `json:"startdate,omitempty"`
// The startup policy for the virtual machine.
Startup *string `json:"startup,omitempty"`
// Enable tablet device.
Tablet *float32 `json:"tablet,omitempty"`
// The tags for the virtual machine.
Tags *string `json:"tags,omitempty"`
// If the virtual machine is a template or not.
Template *float32 `json:"template,omitempty"`
// Configure a disk for storing TPM state.
Tpmstate0 *string `json:"tpmstate0,omitempty"`
// Assign a unique random ehternet address.
Unqiue *float32 `json:"unqiue,omitempty"`
// A usb device on the virtual machine.
Usb0 *string `json:"usb0,omitempty"`
// A usb device on the virtual machine.
Usb1 *string `json:"usb1,omitempty"`
// A usb device on the virtual machine.
Usb2 *string `json:"usb2,omitempty"`
// A usb device on the virtual machine.
Usb3 *string `json:"usb3,omitempty"`
// A usb device on the virtual machine.
Usb4 *string `json:"usb4,omitempty"`
// A usb device on the virtual machine.
Usb5 *string `json:"usb5,omitempty"`
// A usb device on the virtual machine.
Usb6 *string `json:"usb6,omitempty"`
// A usb device on the virtual machine.
Usb7 *string `json:"usb7,omitempty"`
// A usb device on the virtual machine.
Usb8 *string `json:"usb8,omitempty"`
// A usb device on the virtual machine.
Usb9 *string `json:"usb9,omitempty"`
// A usb device on the virtual machine.
Usb10 *string `json:"usb10,omitempty"`
// A usb device on the virtual machine.
Usb11 *string `json:"usb11,omitempty"`
// A usb device on the virtual machine.
Usb12 *string `json:"usb12,omitempty"`
// A usb device on the virtual machine.
Usb13 *string `json:"usb13,omitempty"`
// A usb device on the virtual machine.
Usb14 *string `json:"usb14,omitempty"`
// Hotplug devices.
Hotplug *string `json:"hotplug,omitempty"`
// The number of hotplugged virtual cpus.
Vcpus *float32 `json:"vcpus,omitempty"`
// Configuration for the VGA hardware.
Vga *string `json:"vga,omitempty"`
// Uses the volume as a virtio disk.
Virtio0 *string `json:"virtio0,omitempty"`
// Uses the volume as a virtio disk.
Virtio1 *string `json:"virtio1,omitempty"`
// Uses the volume as a virtio disk.
Virtio2 *string `json:"virtio2,omitempty"`
// Uses the volume as a virtio disk.
Virtio3 *string `json:"virtio3,omitempty"`
// Uses the volume as a virtio disk.
Virtio4 *string `json:"virtio4,omitempty"`
// Uses the volume as a virtio disk.
Virtio5 *string `json:"virtio5,omitempty"`
// Uses the volume as a virtio disk.
Virtio6 *string `json:"virtio6,omitempty"`
// Uses the volume as a virtio disk.
Virtio7 *string `json:"virtio7,omitempty"`
// Uses the volume as a virtio disk.
Virtio8 *string `json:"virtio8,omitempty"`
// Uses the volume as a virtio disk.
Virtio9 *string `json:"virtio9,omitempty"`
// Uses the volume as a virtio disk.
Virtio10 *string `json:"virtio10,omitempty"`
// Uses the volume as a virtio disk.
Virtio11 *string `json:"virtio11,omitempty"`
// Uses the volume as a virtio disk.
Virtio12 *string `json:"virtio12,omitempty"`
// Uses the volume as a virtio disk.
Virtio13 *string `json:"virtio13,omitempty"`
// Uses the volume as a virtio disk.
Virtio14 *string `json:"virtio14,omitempty"`
// Uses the volume as a virtio disk.
Virtio15 *string `json:"virtio15,omitempty"`
// Enable VM generation id seed.
Vmgenid *string `json:"vmgenid,omitempty"`
// Default location for storing VM state.
Vmstatestorage *string `json:"vmstatestorage,omitempty"`
// The watchdog device for the virtual machine.
Watchdog *string `json:"watchdog,omitempty"`
}
// NewCreateVirtualMachineRequestContent instantiates a new CreateVirtualMachineRequestContent 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 NewCreateVirtualMachineRequestContent(vmid string) *CreateVirtualMachineRequestContent {
this := CreateVirtualMachineRequestContent{}
this.Vmid = vmid
return &this
}
// NewCreateVirtualMachineRequestContentWithDefaults instantiates a new CreateVirtualMachineRequestContent 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 NewCreateVirtualMachineRequestContentWithDefaults() *CreateVirtualMachineRequestContent {
this := CreateVirtualMachineRequestContent{}
return &this
}
// GetVmid returns the Vmid field value
func (o *CreateVirtualMachineRequestContent) GetVmid() string {
if o == nil {
var ret string
return ret
}
return o.Vmid
}
// GetVmidOk returns a tuple with the Vmid field value
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetVmidOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Vmid, true
}
// SetVmid sets field value
func (o *CreateVirtualMachineRequestContent) SetVmid(v string) {
o.Vmid = v
}
// GetAcpi returns the Acpi field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetAcpi() float32 {
if o == nil || isNil(o.Acpi) {
var ret float32
return ret
}
return *o.Acpi
}
// GetAcpiOk returns a tuple with the Acpi field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetAcpiOk() (*float32, bool) {
if o == nil || isNil(o.Acpi) {
return nil, false
}
return o.Acpi, true
}
// HasAcpi returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasAcpi() bool {
if o != nil && !isNil(o.Acpi) {
return true
}
return false
}
// SetAcpi gets a reference to the given float32 and assigns it to the Acpi field.
func (o *CreateVirtualMachineRequestContent) SetAcpi(v float32) {
o.Acpi = &v
}
// GetAffinity returns the Affinity field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetAffinity() string {
if o == nil || isNil(o.Affinity) {
var ret string
return ret
}
return *o.Affinity
}
// GetAffinityOk returns a tuple with the Affinity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetAffinityOk() (*string, bool) {
if o == nil || isNil(o.Affinity) {
return nil, false
}
return o.Affinity, true
}
// HasAffinity returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasAffinity() bool {
if o != nil && !isNil(o.Affinity) {
return true
}
return false
}
// SetAffinity gets a reference to the given string and assigns it to the Affinity field.
func (o *CreateVirtualMachineRequestContent) SetAffinity(v string) {
o.Affinity = &v
}
// GetAgent returns the Agent field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetAgent() string {
if o == nil || isNil(o.Agent) {
var ret string
return ret
}
return *o.Agent
}
// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetAgentOk() (*string, bool) {
if o == nil || isNil(o.Agent) {
return nil, false
}
return o.Agent, true
}
// HasAgent returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasAgent() bool {
if o != nil && !isNil(o.Agent) {
return true
}
return false
}
// SetAgent gets a reference to the given string and assigns it to the Agent field.
func (o *CreateVirtualMachineRequestContent) SetAgent(v string) {
o.Agent = &v
}
// GetArchive returns the Archive field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetArchive() string {
if o == nil || isNil(o.Archive) {
var ret string
return ret
}
return *o.Archive
}
// GetArchiveOk returns a tuple with the Archive field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetArchiveOk() (*string, bool) {
if o == nil || isNil(o.Archive) {
return nil, false
}
return o.Archive, true
}
// HasArchive returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasArchive() bool {
if o != nil && !isNil(o.Archive) {
return true
}
return false
}
// SetArchive gets a reference to the given string and assigns it to the Archive field.
func (o *CreateVirtualMachineRequestContent) SetArchive(v string) {
o.Archive = &v
}
// GetArch returns the Arch field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetArch() VirtualMachineArchitecture {
if o == nil || isNil(o.Arch) {
var ret VirtualMachineArchitecture
return ret
}
return *o.Arch
}
// GetArchOk returns a tuple with the Arch field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetArchOk() (*VirtualMachineArchitecture, bool) {
if o == nil || isNil(o.Arch) {
return nil, false
}
return o.Arch, true
}
// HasArch returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasArch() bool {
if o != nil && !isNil(o.Arch) {
return true
}
return false
}
// SetArch gets a reference to the given VirtualMachineArchitecture and assigns it to the Arch field.
func (o *CreateVirtualMachineRequestContent) SetArch(v VirtualMachineArchitecture) {
o.Arch = &v
}
// GetArgs returns the Args field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetArgs() string {
if o == nil || isNil(o.Args) {
var ret string
return ret
}
return *o.Args
}
// GetArgsOk returns a tuple with the Args field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetArgsOk() (*string, bool) {
if o == nil || isNil(o.Args) {
return nil, false
}
return o.Args, true
}
// HasArgs returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasArgs() bool {
if o != nil && !isNil(o.Args) {
return true
}
return false
}
// SetArgs gets a reference to the given string and assigns it to the Args field.
func (o *CreateVirtualMachineRequestContent) SetArgs(v string) {
o.Args = &v
}
// GetAudio0 returns the Audio0 field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetAudio0() string {
if o == nil || isNil(o.Audio0) {
var ret string
return ret
}
return *o.Audio0
}
// GetAudio0Ok returns a tuple with the Audio0 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetAudio0Ok() (*string, bool) {
if o == nil || isNil(o.Audio0) {
return nil, false
}
return o.Audio0, true
}
// HasAudio0 returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasAudio0() bool {
if o != nil && !isNil(o.Audio0) {
return true
}
return false
}
// SetAudio0 gets a reference to the given string and assigns it to the Audio0 field.
func (o *CreateVirtualMachineRequestContent) SetAudio0(v string) {
o.Audio0 = &v
}
// GetAutostart returns the Autostart field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetAutostart() float32 {
if o == nil || isNil(o.Autostart) {
var ret float32
return ret
}
return *o.Autostart
}
// GetAutostartOk returns a tuple with the Autostart field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetAutostartOk() (*float32, bool) {
if o == nil || isNil(o.Autostart) {
return nil, false
}
return o.Autostart, true
}
// HasAutostart returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasAutostart() bool {
if o != nil && !isNil(o.Autostart) {
return true
}
return false
}
// SetAutostart gets a reference to the given float32 and assigns it to the Autostart field.
func (o *CreateVirtualMachineRequestContent) SetAutostart(v float32) {
o.Autostart = &v
}
// GetBallon returns the Ballon field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetBallon() float32 {
if o == nil || isNil(o.Ballon) {
var ret float32
return ret
}
return *o.Ballon
}
// GetBallonOk returns a tuple with the Ballon field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetBallonOk() (*float32, bool) {
if o == nil || isNil(o.Ballon) {
return nil, false
}
return o.Ballon, true
}
// HasBallon returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasBallon() bool {
if o != nil && !isNil(o.Ballon) {
return true
}
return false
}
// SetBallon gets a reference to the given float32 and assigns it to the Ballon field.
func (o *CreateVirtualMachineRequestContent) SetBallon(v float32) {
o.Ballon = &v
}
// GetBios returns the Bios field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetBios() VirtualMachineBios {
if o == nil || isNil(o.Bios) {
var ret VirtualMachineBios
return ret
}
return *o.Bios
}
// GetBiosOk returns a tuple with the Bios field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetBiosOk() (*VirtualMachineBios, bool) {
if o == nil || isNil(o.Bios) {
return nil, false
}
return o.Bios, true
}
// HasBios returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasBios() bool {
if o != nil && !isNil(o.Bios) {
return true
}
return false
}
// SetBios gets a reference to the given VirtualMachineBios and assigns it to the Bios field.
func (o *CreateVirtualMachineRequestContent) SetBios(v VirtualMachineBios) {
o.Bios = &v
}
// GetBoot returns the Boot field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetBoot() string {
if o == nil || isNil(o.Boot) {
var ret string
return ret
}
return *o.Boot
}
// GetBootOk returns a tuple with the Boot field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetBootOk() (*string, bool) {
if o == nil || isNil(o.Boot) {
return nil, false
}
return o.Boot, true
}
// HasBoot returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasBoot() bool {
if o != nil && !isNil(o.Boot) {
return true
}
return false
}
// SetBoot gets a reference to the given string and assigns it to the Boot field.
func (o *CreateVirtualMachineRequestContent) SetBoot(v string) {
o.Boot = &v
}
// GetBootdisk returns the Bootdisk field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetBootdisk() string {
if o == nil || isNil(o.Bootdisk) {
var ret string
return ret
}
return *o.Bootdisk
}
// GetBootdiskOk returns a tuple with the Bootdisk field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetBootdiskOk() (*string, bool) {
if o == nil || isNil(o.Bootdisk) {
return nil, false
}
return o.Bootdisk, true
}
// HasBootdisk returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasBootdisk() bool {
if o != nil && !isNil(o.Bootdisk) {
return true
}
return false
}
// SetBootdisk gets a reference to the given string and assigns it to the Bootdisk field.
func (o *CreateVirtualMachineRequestContent) SetBootdisk(v string) {
o.Bootdisk = &v
}
// GetCdrom returns the Cdrom field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetCdrom() string {
if o == nil || isNil(o.Cdrom) {
var ret string
return ret
}
return *o.Cdrom
}
// GetCdromOk returns a tuple with the Cdrom field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetCdromOk() (*string, bool) {
if o == nil || isNil(o.Cdrom) {
return nil, false
}
return o.Cdrom, true
}
// HasCdrom returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasCdrom() bool {
if o != nil && !isNil(o.Cdrom) {
return true
}
return false
}
// SetCdrom gets a reference to the given string and assigns it to the Cdrom field.
func (o *CreateVirtualMachineRequestContent) SetCdrom(v string) {
o.Cdrom = &v
}
// GetCicustom returns the Cicustom field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetCicustom() string {
if o == nil || isNil(o.Cicustom) {
var ret string
return ret
}
return *o.Cicustom
}
// GetCicustomOk returns a tuple with the Cicustom field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetCicustomOk() (*string, bool) {
if o == nil || isNil(o.Cicustom) {
return nil, false
}
return o.Cicustom, true
}
// HasCicustom returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasCicustom() bool {
if o != nil && !isNil(o.Cicustom) {
return true
}
return false
}
// SetCicustom gets a reference to the given string and assigns it to the Cicustom field.
func (o *CreateVirtualMachineRequestContent) SetCicustom(v string) {
o.Cicustom = &v
}
// GetCipassword returns the Cipassword field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetCipassword() string {
if o == nil || isNil(o.Cipassword) {
var ret string
return ret
}
return *o.Cipassword
}
// GetCipasswordOk returns a tuple with the Cipassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetCipasswordOk() (*string, bool) {
if o == nil || isNil(o.Cipassword) {
return nil, false
}
return o.Cipassword, true
}
// HasCipassword returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasCipassword() bool {
if o != nil && !isNil(o.Cipassword) {
return true
}
return false
}
// SetCipassword gets a reference to the given string and assigns it to the Cipassword field.
func (o *CreateVirtualMachineRequestContent) SetCipassword(v string) {
o.Cipassword = &v
}
// GetCitype returns the Citype field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetCitype() VirtualMachineCloudInitType {
if o == nil || isNil(o.Citype) {
var ret VirtualMachineCloudInitType
return ret
}
return *o.Citype
}
// GetCitypeOk returns a tuple with the Citype field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetCitypeOk() (*VirtualMachineCloudInitType, bool) {
if o == nil || isNil(o.Citype) {
return nil, false
}
return o.Citype, true
}
// HasCitype returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasCitype() bool {
if o != nil && !isNil(o.Citype) {
return true
}
return false
}
// SetCitype gets a reference to the given VirtualMachineCloudInitType and assigns it to the Citype field.
func (o *CreateVirtualMachineRequestContent) SetCitype(v VirtualMachineCloudInitType) {
o.Citype = &v
}
// GetCiuser returns the Ciuser field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetCiuser() string {
if o == nil || isNil(o.Ciuser) {
var ret string
return ret
}
return *o.Ciuser
}
// GetCiuserOk returns a tuple with the Ciuser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetCiuserOk() (*string, bool) {
if o == nil || isNil(o.Ciuser) {
return nil, false
}
return o.Ciuser, true
}
// HasCiuser returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasCiuser() bool {
if o != nil && !isNil(o.Ciuser) {
return true
}
return false
}
// SetCiuser gets a reference to the given string and assigns it to the Ciuser field.
func (o *CreateVirtualMachineRequestContent) SetCiuser(v string) {
o.Ciuser = &v
}
// GetCores returns the Cores field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetCores() float32 {
if o == nil || isNil(o.Cores) {
var ret float32
return ret
}
return *o.Cores
}
// GetCoresOk returns a tuple with the Cores field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateVirtualMachineRequestContent) GetCoresOk() (*float32, bool) {
if o == nil || isNil(o.Cores) {
return nil, false
}
return o.Cores, true
}
// HasCores returns a boolean if a field has been set.
func (o *CreateVirtualMachineRequestContent) HasCores() bool {
if o != nil && !isNil(o.Cores) {
return true
}
return false
}
// SetCores gets a reference to the given float32 and assigns it to the Cores field.
func (o *CreateVirtualMachineRequestContent) SetCores(v float32) {
o.Cores = &v
}
// GetCpu returns the Cpu field value if set, zero value otherwise.
func (o *CreateVirtualMachineRequestContent) GetCpu() string {
if o == nil || isNil(o.Cpu) {
var ret string
return ret
}
return *o.Cpu