You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/qemu_type.go
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -367,7 +367,9 @@ type VirtualMachineCreateOptions struct {
367
367
NameServerstring`json:"nameserver,omitempty"`
368
368
// network device
369
369
Net
370
-
Numaint8`json:"numa,omitempty"`
370
+
// node name
371
+
Nodestring`json:"-"`
372
+
Numaint8`json:"numa,omitempty"`
371
373
NumaS
372
374
// specifies whether a VM will be started during system bootup
373
375
OnBootint8`json:"onboot,omitempty"`
@@ -469,14 +471,14 @@ type VirtualMachineConfig struct {
469
471
EfiDisk0int8`json:"efidisk0,omitempty"`
470
472
Freezeint8`json:"freeze,omitempty"`
471
473
HookScriptstring`json:"hookscript,omitempty"`
472
-
HostPci`json:"-"`
474
+
HostPci`json:",inline"`
473
475
HotPlugstring`json:"hotplug,omitempty"`
474
476
HugePagesstring`json:"hugepages,omitempty"`
475
477
// Use volume as IDE hard disk or CD-ROM (n is 0 to 3).
476
478
// Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.
477
479
// Use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
478
-
Ide`json:"-"`
479
-
IPConfig`json:"-"`
480
+
Ide`json:",inline"`
481
+
IPConfig`json:",inline"`
480
482
IvshMemstring`json:"ivshmem,omitempty"`
481
483
KeepHugePagesint8`json:"keephugepages,omitempty"`
482
484
Keyboardstring`json:"keyboard,omitempty"`
@@ -495,28 +497,28 @@ type VirtualMachineConfig struct {
495
497
// cloud-init: Sets DNS server IP address for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
496
498
NameServerstring`json:"nameserver,omitempty"`
497
499
// network device
498
-
Net`json:"-"`
500
+
Net`json:",inline"`
499
501
Numaint8`json:"numa,omitempty"`
500
-
NumaS`json:"-"`
502
+
NumaS`json:",inline"`
501
503
// specifies whether a VM will be started during system bootup
502
504
OnBootint8`json:"onboot,omitempty"`
503
505
// quest OS
504
506
OSTypeOSType`json:"ostype,omitempty"`
505
-
Parallel`json:"-"`
507
+
Parallel`json:",inline"`
506
508
Protectionint8`json:"protection,omitempty"`
507
509
// Allow reboot. if set to '0' the VM exit on reboot
508
510
Rebootint`json:"reboot,omitempty"`
509
511
RNG0string`json:"rng0,omitempty"`
510
-
Sata`json:"-"`
512
+
Sata`json:",inline"`
511
513
// use volume as scsi hard disk or cd-rom
512
514
// use special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume
513
515
// use STORAGE_ID:0 and the 'import-from' parameter to import from an existing volume.
514
-
Scsi`json:"-"`
516
+
Scsi`json:",inline"`
515
517
// SCSI controller model
516
518
ScsiHwScsiHw`json:"scsihw,omitempty"`
517
519
// cloud-init: Sets DNS search domains for a container. Create will automatically use the setting from the host if neither searchdomain nor nameserver are set.
518
520
SearchDomainstring`json:"searchdomain,omitempty"`
519
-
Serial`json:"-"`
521
+
Serial`json:",inline"`
520
522
Sharesint`json:"shares,omitempty"`
521
523
SMBios1string`json:"smbios1,omitempty"`
522
524
SMPint`json:"smp,omitempty"`
@@ -534,10 +536,10 @@ type VirtualMachineConfig struct {
0 commit comments