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: compute/common_contracts.go
+68-6Lines changed: 68 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -80,12 +80,49 @@ type VirtualMachineCPU struct {
80
80
81
81
// VirtualMachineSCSIController represents the configuration for a SCSI controller in a virtual machine.
82
82
typeVirtualMachineSCSIControllerstruct {
83
-
IDstring`json:"id,omitempty"`
84
-
BusNumberint`json:"busNumber"`
85
-
Keyint`json:"key"`
86
-
AdapterTypestring`json:"adapterType"`
87
-
Disks []VirtualMachineDisk`json:"disk"`
88
-
Statestring`json:"state,omitempty"`
83
+
IDstring`json:"id,omitempty"`
84
+
BusNumberint`json:"busNumber"`
85
+
Keyint`json:"key"`
86
+
AdapterTypestring`json:"adapterType"`
87
+
DisksVirtualMachineDisks`json:"disk"`
88
+
Statestring`json:"state,omitempty"`
89
+
}
90
+
91
+
// GetDiskByUnitID retrieves the VirtualMachineDisk (if any) attached to the VirtualMachineSCSIController that matches the specified SCSI logical unit ID.
// GetDiskBySCSIPath retrieves the VirtualMachineDisk (if any) attached to a VirtualMachineSCSIController that matches the specified SCSI device path (bus number and unit ID).
0 commit comments