Documentation
¶
Overview ¶
Configure Tasks
Index ¶
- type BootDeviceOrder
- type BootType
- type CloudInit
- type CloudInitDataSource
- type Credentials
- type DataSourceReference
- type DiskAdapterType
- type DiskDeviceProperties
- type DiskDeviceType
- type GpuMode
- type GpuVendor
- type IPAssignmentType
- type IPDiscoveredType
- type IsoMountState
- type MachineType
- type NetworkFunctionNicType
- type NgtAvailableState
- type NgtEnabledCapability
- type NgtState
- type NicMacAddress
- type NicModel
- type NicType
- type OneOfCloudInitConfig
- type OneOfSysprepConfig
- type OneOfVMTemplateBootDeviceConfig
- type OneOfVMTemplateGuestCustomizationConfig
- func (p *OneOfVMTemplateGuestCustomizationConfig) GetValue() interface{}
- func (p *OneOfVMTemplateGuestCustomizationConfig) MarshalJSON() ([]byte, error)
- func (p *OneOfVMTemplateGuestCustomizationConfig) SetValue(v interface{}) error
- func (p *OneOfVMTemplateGuestCustomizationConfig) UnmarshalJSON(b []byte) error
- type PowerState
- type PowerStateMechanism
- type Reference
- type ReferenceType
- type Sysprep
- type SysprepInstallType
- type SysprepUnattendXml
- type Task
- type VMTemplate
- type VMTemplateBootConfig
- type VMTemplateBootDevice
- type VMTemplateDisk
- type VMTemplateDiskAddress
- type VMTemplateDiskStorage
- type VMTemplateFlashMode
- type VMTemplateGpu
- type VMTemplateGuestCustomization
- type VMTemplateGuestPowerStateTransition
- type VMTemplateGuestTools
- type VMTemplateIPAddress
- type VMTemplateNic
- type VMTemplateNutanixGuestTools
- type VMTemplatePowerStateMechanism
- type VMTemplateSerialPort
- type VMTemplateStorage
- type VMTemplateStorageQosPolicy
- type VMTemplateVNuma
- type VlanMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BootDeviceOrder ¶
type BootDeviceOrder int
* Indicates the order of device types in which VM should try to boot from. If boot device order is not provided the system will decide appropriate boot device order.
const ( BOOTDEVICEORDER_UNKNOWN BootDeviceOrder = 0 BOOTDEVICEORDER_REDACTED BootDeviceOrder = 1 BOOTDEVICEORDER_CDROM BootDeviceOrder = 2 BOOTDEVICEORDER_DISK BootDeviceOrder = 3 BOOTDEVICEORDER_NETWORK BootDeviceOrder = 4 )
func (*BootDeviceOrder) MarshalJSON ¶
func (e *BootDeviceOrder) MarshalJSON() ([]byte, error)
func (BootDeviceOrder) Ref ¶
func (e BootDeviceOrder) Ref() *BootDeviceOrder
func (*BootDeviceOrder) UnmarshalJSON ¶
func (e *BootDeviceOrder) UnmarshalJSON(b []byte) error
type BootType ¶
type BootType int
* Indicates whether the VM should use UEFI boot or Legacy boot. If UEFI boot is enabled then other legacy boot options (like bootDevice and bootDeviceOrderList) are ignored.
func (*BootType) MarshalJSON ¶
func (*BootType) UnmarshalJSON ¶
type CloudInit ¶
type CloudInit struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ ConfigItemDiscriminator_ *string `json:"$configItemDiscriminator,omitempty"` Config *OneOfCloudInitConfig `json:"config,omitempty"` }
* If this field is set, the guest will be customized using CloudInit. Either userData or KVPair should be provided. If KVPair are provided then the user data will be generated using these key-value pairs.
func NewCloudInit ¶
func NewCloudInit() *CloudInit
type CloudInitDataSource ¶
type CloudInitDataSource struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** The contents of the metaData configuration for CloudInit. This can be formatted as YAML or JSON. The value must be base64 encoded. */ MetaData *string `json:"metaData,omitempty"` /** The contents of the userData configuration for CloudInit. This can be formatted as YAML, JSON, or could be a shell script. The value must be base64 encoded. */ UserData *string `json:"userData,omitempty"` }
func NewCloudInitDataSource ¶
func NewCloudInitDataSource() *CloudInitDataSource
type Credentials ¶
type Credentials struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` Password *string `json:"password,omitempty"` Username *string `json:"username"` }
func NewCredentials ¶
func NewCredentials() *Credentials
func (*Credentials) MarshalJSON ¶
func (p *Credentials) MarshalJSON() ([]byte, error)
type DataSourceReference ¶
type DataSourceReference struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` DataSourceExtId *string `json:"dataSourceExtId,omitempty"` /** This is to indicate if attaching the referenced disk directly. Important - this should only be used by internal services. Direct attaching a disk that is used by another VM will result in data loss. */ IsDirectAttach *bool `json:"isDirectAttach,omitempty"` Kind *string `json:"kind,omitempty"` Name *string `json:"name,omitempty"` ParentReference *Reference `json:"parentReference,omitempty"` }
func NewDataSourceReference ¶
func NewDataSourceReference() *DataSourceReference
type DiskAdapterType ¶
type DiskAdapterType int
const ( DISKADAPTERTYPE_UNKNOWN DiskAdapterType = 0 DISKADAPTERTYPE_REDACTED DiskAdapterType = 1 DISKADAPTERTYPE_SCSI DiskAdapterType = 2 DISKADAPTERTYPE_IDE DiskAdapterType = 3 DISKADAPTERTYPE_PCI DiskAdapterType = 4 DISKADAPTERTYPE_SATA DiskAdapterType = 5 DISKADAPTERTYPE_SPAPR DiskAdapterType = 6 )
func (*DiskAdapterType) MarshalJSON ¶
func (e *DiskAdapterType) MarshalJSON() ([]byte, error)
func (DiskAdapterType) Ref ¶
func (e DiskAdapterType) Ref() *DiskAdapterType
func (*DiskAdapterType) UnmarshalJSON ¶
func (e *DiskAdapterType) UnmarshalJSON(b []byte) error
type DiskDeviceProperties ¶
type DiskDeviceProperties struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` DeviceType *DiskDeviceType `json:"deviceType,omitempty"` DiskAddress *VMTemplateDiskAddress `json:"diskAddress,omitempty"` }
func NewDiskDeviceProperties ¶
func NewDiskDeviceProperties() *DiskDeviceProperties
type DiskDeviceType ¶
type DiskDeviceType int
const ( DISKDEVICETYPE_UNKNOWN DiskDeviceType = 0 DISKDEVICETYPE_REDACTED DiskDeviceType = 1 DISKDEVICETYPE_DISK DiskDeviceType = 2 DISKDEVICETYPE_CDROM DiskDeviceType = 3 DISKDEVICETYPE_VOLUME_GROUP DiskDeviceType = 4 )
func (*DiskDeviceType) MarshalJSON ¶
func (e *DiskDeviceType) MarshalJSON() ([]byte, error)
func (DiskDeviceType) Ref ¶
func (e DiskDeviceType) Ref() *DiskDeviceType
func (*DiskDeviceType) UnmarshalJSON ¶
func (e *DiskDeviceType) UnmarshalJSON(b []byte) error
type GpuMode ¶
type GpuMode int
* The mode of this GPU.
func (*GpuMode) MarshalJSON ¶
func (*GpuMode) UnmarshalJSON ¶
type GpuVendor ¶
type GpuVendor int
* The vendor of the GPU.
func (*GpuVendor) MarshalJSON ¶
func (*GpuVendor) UnmarshalJSON ¶
type IPAssignmentType ¶
type IPAssignmentType int
* Indicates whether IP address is DHCP or Static.
const ( IPASSIGNMENTTYPE_UNKNOWN IPAssignmentType = 0 IPASSIGNMENTTYPE_REDACTED IPAssignmentType = 1 IPASSIGNMENTTYPE_DHCP IPAssignmentType = 2 IPASSIGNMENTTYPE_STATIC IPAssignmentType = 3 )
func (*IPAssignmentType) MarshalJSON ¶
func (e *IPAssignmentType) MarshalJSON() ([]byte, error)
func (IPAssignmentType) Ref ¶
func (e IPAssignmentType) Ref() *IPAssignmentType
func (*IPAssignmentType) UnmarshalJSON ¶
func (e *IPAssignmentType) UnmarshalJSON(b []byte) error
type IPDiscoveredType ¶
type IPDiscoveredType int
* Address type. It can only be 'ASSIGNED' in the spec. If no type is specified in the spec, the default type is set to 'ASSIGNED'.
const ( IPDISCOVEREDTYPE_UNKNOWN IPDiscoveredType = 0 IPDISCOVEREDTYPE_REDACTED IPDiscoveredType = 1 IPDISCOVEREDTYPE_ASSIGNED IPDiscoveredType = 2 IPDISCOVEREDTYPE_LEARNED IPDiscoveredType = 3 )
func (*IPDiscoveredType) MarshalJSON ¶
func (e *IPDiscoveredType) MarshalJSON() ([]byte, error)
func (IPDiscoveredType) Ref ¶
func (e IPDiscoveredType) Ref() *IPDiscoveredType
func (*IPDiscoveredType) UnmarshalJSON ¶
func (e *IPDiscoveredType) UnmarshalJSON(b []byte) error
type IsoMountState ¶
type IsoMountState int
* Desired mount state of Nutanix Guest Tools ISO.
const ( ISOMOUNTSTATE_UNKNOWN IsoMountState = 0 ISOMOUNTSTATE_REDACTED IsoMountState = 1 ISOMOUNTSTATE_MOUNTED IsoMountState = 2 ISOMOUNTSTATE_UNMOUNTED IsoMountState = 3 )
func (*IsoMountState) MarshalJSON ¶
func (e *IsoMountState) MarshalJSON() ([]byte, error)
func (IsoMountState) Ref ¶
func (e IsoMountState) Ref() *IsoMountState
func (*IsoMountState) UnmarshalJSON ¶
func (e *IsoMountState) UnmarshalJSON(b []byte) error
type MachineType ¶
type MachineType int
* Machine Type.
const ( MACHINETYPE_UNKNOWN MachineType = 0 MACHINETYPE_REDACTED MachineType = 1 MACHINETYPE_PC MachineType = 2 MACHINETYPE_PSERIES MachineType = 3 MACHINETYPE_Q35 MachineType = 4 )
func (*MachineType) MarshalJSON ¶
func (e *MachineType) MarshalJSON() ([]byte, error)
func (MachineType) Ref ¶
func (e MachineType) Ref() *MachineType
func (*MachineType) UnmarshalJSON ¶
func (e *MachineType) UnmarshalJSON(b []byte) error
type NetworkFunctionNicType ¶
type NetworkFunctionNicType int
* The type of this Network function NIC. Defaults to INGRESS.
const ( NETWORKFUNCTIONNICTYPE_UNKNOWN NetworkFunctionNicType = 0 NETWORKFUNCTIONNICTYPE_REDACTED NetworkFunctionNicType = 1 NETWORKFUNCTIONNICTYPE_INGRESS NetworkFunctionNicType = 2 NETWORKFUNCTIONNICTYPE_EGRESS NetworkFunctionNicType = 3 NETWORKFUNCTIONNICTYPE_TAP NetworkFunctionNicType = 4 )
func (*NetworkFunctionNicType) MarshalJSON ¶
func (e *NetworkFunctionNicType) MarshalJSON() ([]byte, error)
func (NetworkFunctionNicType) Ref ¶
func (e NetworkFunctionNicType) Ref() *NetworkFunctionNicType
func (*NetworkFunctionNicType) UnmarshalJSON ¶
func (e *NetworkFunctionNicType) UnmarshalJSON(b []byte) error
type NgtAvailableState ¶
type NgtAvailableState int
* Nutanix guest tools is installed or not.
const ( NGTAVAILABLESTATE_UNKNOWN NgtAvailableState = 0 NGTAVAILABLESTATE_REDACTED NgtAvailableState = 1 NGTAVAILABLESTATE_INSTALLED NgtAvailableState = 2 NGTAVAILABLESTATE_UNINSTALLED NgtAvailableState = 3 )
func (*NgtAvailableState) MarshalJSON ¶
func (e *NgtAvailableState) MarshalJSON() ([]byte, error)
func (NgtAvailableState) Ref ¶
func (e NgtAvailableState) Ref() *NgtAvailableState
func (*NgtAvailableState) UnmarshalJSON ¶
func (e *NgtAvailableState) UnmarshalJSON(b []byte) error
type NgtEnabledCapability ¶
type NgtEnabledCapability int
* Application names that are enabled.
const ( NGTENABLEDCAPABILITY_UNKNOWN NgtEnabledCapability = 0 NGTENABLEDCAPABILITY_REDACTED NgtEnabledCapability = 1 NGTENABLEDCAPABILITY_SELF_SERVICE_RESTORE NgtEnabledCapability = 2 NGTENABLEDCAPABILITY_VSS_SNAPSHOT NgtEnabledCapability = 3 )
func (*NgtEnabledCapability) MarshalJSON ¶
func (e *NgtEnabledCapability) MarshalJSON() ([]byte, error)
func (NgtEnabledCapability) Ref ¶
func (e NgtEnabledCapability) Ref() *NgtEnabledCapability
func (*NgtEnabledCapability) UnmarshalJSON ¶
func (e *NgtEnabledCapability) UnmarshalJSON(b []byte) error
type NgtState ¶
type NgtState int
* Nutanix Guest Tools is enabled or not.
func (*NgtState) MarshalJSON ¶
func (*NgtState) UnmarshalJSON ¶
type NicMacAddress ¶
type NicMacAddress struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` NicMacAddress *string `json:"nicMacAddress,omitempty"` }
* MAC address of nic to boot from.
func NewNicMacAddress ¶
func NewNicMacAddress() *NicMacAddress
type NicModel ¶
type NicModel int
* The model of this NIC.
func (*NicModel) MarshalJSON ¶
func (*NicModel) UnmarshalJSON ¶
type NicType ¶
type NicType int
* The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside the context of the particular VM it is attached to.
func (*NicType) MarshalJSON ¶
func (*NicType) UnmarshalJSON ¶
type OneOfCloudInitConfig ¶
type OneOfCloudInitConfig struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfCloudInitConfig ¶
func NewOneOfCloudInitConfig() *OneOfCloudInitConfig
func (*OneOfCloudInitConfig) GetValue ¶
func (p *OneOfCloudInitConfig) GetValue() interface{}
func (*OneOfCloudInitConfig) MarshalJSON ¶
func (p *OneOfCloudInitConfig) MarshalJSON() ([]byte, error)
func (*OneOfCloudInitConfig) SetValue ¶
func (p *OneOfCloudInitConfig) SetValue(v interface{}) error
func (*OneOfCloudInitConfig) UnmarshalJSON ¶
func (p *OneOfCloudInitConfig) UnmarshalJSON(b []byte) error
type OneOfSysprepConfig ¶
type OneOfSysprepConfig struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfSysprepConfig ¶
func NewOneOfSysprepConfig() *OneOfSysprepConfig
func (*OneOfSysprepConfig) GetValue ¶
func (p *OneOfSysprepConfig) GetValue() interface{}
func (*OneOfSysprepConfig) MarshalJSON ¶
func (p *OneOfSysprepConfig) MarshalJSON() ([]byte, error)
func (*OneOfSysprepConfig) SetValue ¶
func (p *OneOfSysprepConfig) SetValue(v interface{}) error
func (*OneOfSysprepConfig) UnmarshalJSON ¶
func (p *OneOfSysprepConfig) UnmarshalJSON(b []byte) error
type OneOfVMTemplateBootDeviceConfig ¶
type OneOfVMTemplateBootDeviceConfig struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfVMTemplateBootDeviceConfig ¶
func NewOneOfVMTemplateBootDeviceConfig() *OneOfVMTemplateBootDeviceConfig
func (*OneOfVMTemplateBootDeviceConfig) GetValue ¶
func (p *OneOfVMTemplateBootDeviceConfig) GetValue() interface{}
func (*OneOfVMTemplateBootDeviceConfig) MarshalJSON ¶
func (p *OneOfVMTemplateBootDeviceConfig) MarshalJSON() ([]byte, error)
func (*OneOfVMTemplateBootDeviceConfig) SetValue ¶
func (p *OneOfVMTemplateBootDeviceConfig) SetValue(v interface{}) error
func (*OneOfVMTemplateBootDeviceConfig) UnmarshalJSON ¶
func (p *OneOfVMTemplateBootDeviceConfig) UnmarshalJSON(b []byte) error
type OneOfVMTemplateGuestCustomizationConfig ¶
type OneOfVMTemplateGuestCustomizationConfig struct { Discriminator *string `json:"-"` ObjectType_ *string `json:"-"` // contains filtered or unexported fields }
func NewOneOfVMTemplateGuestCustomizationConfig ¶
func NewOneOfVMTemplateGuestCustomizationConfig() *OneOfVMTemplateGuestCustomizationConfig
func (*OneOfVMTemplateGuestCustomizationConfig) GetValue ¶
func (p *OneOfVMTemplateGuestCustomizationConfig) GetValue() interface{}
func (*OneOfVMTemplateGuestCustomizationConfig) MarshalJSON ¶
func (p *OneOfVMTemplateGuestCustomizationConfig) MarshalJSON() ([]byte, error)
func (*OneOfVMTemplateGuestCustomizationConfig) SetValue ¶
func (p *OneOfVMTemplateGuestCustomizationConfig) SetValue(v interface{}) error
func (*OneOfVMTemplateGuestCustomizationConfig) UnmarshalJSON ¶
func (p *OneOfVMTemplateGuestCustomizationConfig) UnmarshalJSON(b []byte) error
type PowerState ¶
type PowerState int
* The current or desired power state of the VM.
const ( POWERSTATE_UNKNOWN PowerState = 0 POWERSTATE_REDACTED PowerState = 1 POWERSTATE_TRUE PowerState = 2 POWERSTATE_FALSE PowerState = 3 )
func (*PowerState) MarshalJSON ¶
func (e *PowerState) MarshalJSON() ([]byte, error)
func (PowerState) Ref ¶
func (e PowerState) Ref() *PowerState
func (*PowerState) UnmarshalJSON ¶
func (e *PowerState) UnmarshalJSON(b []byte) error
type PowerStateMechanism ¶
type PowerStateMechanism int
* Power state mechanism (ACPI, GUEST, HARD).
const ( POWERSTATEMECHANISM_UNKNOWN PowerStateMechanism = 0 POWERSTATEMECHANISM_REDACTED PowerStateMechanism = 1 POWERSTATEMECHANISM_ACPI PowerStateMechanism = 2 POWERSTATEMECHANISM_GUEST PowerStateMechanism = 3 POWERSTATEMECHANISM_HARD PowerStateMechanism = 4 )
func (*PowerStateMechanism) MarshalJSON ¶
func (e *PowerStateMechanism) MarshalJSON() ([]byte, error)
func (PowerStateMechanism) Ref ¶
func (e PowerStateMechanism) Ref() *PowerStateMechanism
func (*PowerStateMechanism) UnmarshalJSON ¶
func (e *PowerStateMechanism) UnmarshalJSON(b []byte) error
type Reference ¶
type Reference struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` ExtId *string `json:"extId,omitempty"` Kind *ReferenceType `json:"kind,omitempty"` Name *string `json:"name,omitempty"` ObjectType *string `json:"objectType,omitempty"` }
* Reference to an object.
func NewReference ¶
func NewReference() *Reference
type ReferenceType ¶
type ReferenceType int
* The kind of the Reference.
const ( REFERENCETYPE_UNKNOWN ReferenceType = 0 REFERENCETYPE_REDACTED ReferenceType = 1 REFERENCETYPE_VM ReferenceType = 2 REFERENCETYPE_VOLUME_GROUP ReferenceType = 3 REFERENCETYPE_STORAGE_CONTAINER ReferenceType = 4 REFERENCETYPE_SUBNET ReferenceType = 5 REFERENCETYPE_NETWORK_FUNCTION_CHAIN ReferenceType = 6 )
func (*ReferenceType) MarshalJSON ¶
func (e *ReferenceType) MarshalJSON() ([]byte, error)
func (ReferenceType) Ref ¶
func (e ReferenceType) Ref() *ReferenceType
func (*ReferenceType) UnmarshalJSON ¶
func (e *ReferenceType) UnmarshalJSON(b []byte) error
type Sysprep ¶
type Sysprep struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ ConfigItemDiscriminator_ *string `json:"$configItemDiscriminator,omitempty"` Config *OneOfSysprepConfig `json:"config,omitempty"` ConfigItemDiscriminator *string `json:"configItemDiscriminator,omitempty"` InstallType *SysprepInstallType `json:"installType,omitempty"` }
* If this field is set, the guest will be customized using Sysprep. Either SysprepUnattendXml or KVPair should be provided. If KVPair are provided then the unattended answer file will be generated using these key-value pairs.
func NewSysprep ¶
func NewSysprep() *Sysprep
type SysprepInstallType ¶
type SysprepInstallType int
* Whether the guest will be freshly installed using this unattend configuration, or whether this unattend configuration will be applied to a pre-prepared image. Default is 'PREPARED'.
const ( SYSPREPINSTALLTYPE_UNKNOWN SysprepInstallType = 0 SYSPREPINSTALLTYPE_REDACTED SysprepInstallType = 1 SYSPREPINSTALLTYPE_FRESH SysprepInstallType = 2 SYSPREPINSTALLTYPE_PREPARED SysprepInstallType = 3 )
func (*SysprepInstallType) MarshalJSON ¶
func (e *SysprepInstallType) MarshalJSON() ([]byte, error)
func (SysprepInstallType) Ref ¶
func (e SysprepInstallType) Ref() *SysprepInstallType
func (*SysprepInstallType) UnmarshalJSON ¶
func (e *SysprepInstallType) UnmarshalJSON(b []byte) error
type SysprepUnattendXml ¶
type SysprepUnattendXml struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** This field contains a Sysprep unattend xml definition, as a string. The value must be base64 encoded. */ SysprepunattendXml *string `json:"SysprepunattendXml,omitempty"` }
func NewSysprepUnattendXml ¶
func NewSysprepUnattendXml() *SysprepUnattendXml
type Task ¶
type Task struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** The external identifier that can be used to retrieve the task using its URL. */ ExtId *string `json:"extId,omitempty"` }
* Object encapsulating Task ID Return Value
type VMTemplate ¶
type VMTemplate struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` BootConfig *VMTemplateBootConfig `json:"bootConfig,omitempty"` /** The description of the VM. */ Description *string `json:"description,omitempty"` /** The list of Disks attached to the VM. */ Disks []VMTemplateDisk `json:"disks,omitempty"` /** A globally unique identifier of an instance that is suitable for external consumption. */ ExtId *string `json:"extId,omitempty"` /** The list of GPUs attached to the VM. */ Gpus []VMTemplateGpu `json:"gpus,omitempty"` GuestCustomization *VMTemplateGuestCustomization `json:"guestCustomization,omitempty"` /** String that identifies the OS running inside of the guest. */ GuestOsId *string `json:"guestOsId,omitempty"` GuestTools *VMTemplateGuestTools `json:"guestTools,omitempty"` /** VM's hardware clock timezone in IANA TZDB format (America/Los_Angeles). */ HardwareClockTimezone *string `json:"hardwareClockTimezone,omitempty"` /** Indicates whether the VM is an agent VM. When their host enters maintenance mode, after normal VMs are evacuated, agent VMs are powered off. When the host is restored, agent VMs are powered on before VMs are restored to normalcy. In other words, agent VMs cannot be HA-protected or live migrated. */ IsAgentVm *bool `json:"isAgentVm,omitempty"` /** Indicates whether to remove AHV branding from VM firmware tables. */ IsDisableBranding *bool `json:"isDisableBranding,omitempty"` /** Indicates whether to passthrough the host's CPU features to the guest. Enabling this will disable live migration of the VM. */ IsEnableCpuPassthrough *bool `json:"isEnableCpuPassthrough,omitempty"` /** Indicates whether the vCPUs should be hard pinned to specific pCPUs. */ IsVcpuHardPinned *bool `json:"isVcpuHardPinned,omitempty"` /** Indicates whether VGA console should be enabled or not. */ IsVgaConsoleEnabled *bool `json:"isVgaConsoleEnabled,omitempty"` /** A HATEOAS style link for the response. Each link contains a user friendly name identifying the link and an address for retrieving the particular resource. */ Links []import2.ApiLink `json:"links,omitempty"` MachineType *MachineType `json:"machineType,omitempty"` /** Memory size in MiB. */ MemorySizeMib *int `json:"memorySizeMib,omitempty"` /** The name of the VM. */ Name *string `json:"name,omitempty"` /** The list of NICs attached to the VM. */ Nics []VMTemplateNic `json:"nics,omitempty"` /** Number of vCPU sockets. */ NumSockets *int `json:"numSockets,omitempty"` /** Number of logical threads per core. */ NumThreadsPerCore *int `json:"numThreadsPerCore,omitempty"` /** Number of vCPUs per socket. */ NumVcpusPerSocket *int `json:"numVcpusPerSocket,omitempty"` ParentReference *Reference `json:"parentReference,omitempty"` PowerState *PowerState `json:"powerState,omitempty"` PowerStateMechanism *VMTemplatePowerStateMechanism `json:"powerStateMechanism,omitempty"` /** Serial ports configured on the VM. */ SerialPorts []VMTemplateSerialPort `json:"serialPorts,omitempty"` StorageConfig *VMTemplateStorage `json:"storageConfig,omitempty"` /** A globally unique identifier that represents the tenant that owns this entity. It is automatically assigned by the system and is immutable from an API consumer perspective (some use cases may cause this Id to change - for instance a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server). */ TenantId *string `json:"tenantId,omitempty"` VnumaConfig *VMTemplateVNuma `json:"vnumaConfig,omitempty"` }
* VM Resources Definition.
func NewVMTemplate ¶
func NewVMTemplate() *VMTemplate
type VMTemplateBootConfig ¶
type VMTemplateBootConfig struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` BootDevice *VMTemplateBootDevice `json:"bootDevice,omitempty"` BootDeviceOrder []BootDeviceOrder `json:"bootDeviceOrder,omitempty"` BootType *BootType `json:"bootType,omitempty"` }
* Indicates which device a VM should boot from.
func NewVMTemplateBootConfig ¶
func NewVMTemplateBootConfig() *VMTemplateBootConfig
type VMTemplateBootDevice ¶
type VMTemplateBootDevice struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ ConfigItemDiscriminator_ *string `json:"$configItemDiscriminator,omitempty"` Config *OneOfVMTemplateBootDeviceConfig `json:"config,omitempty"` }
* Indicates which device a VM should boot from. bootDevice takes precedence over bootDeviceOrder. If both are given then specified bootDevice will be primary boot device and remaining devices will be assigned boot order according to bootDeviceOrder field.
func NewVMTemplateBootDevice ¶
func NewVMTemplateBootDevice() *VMTemplateBootDevice
func (*VMTemplateBootDevice) GetConfig ¶
func (p *VMTemplateBootDevice) GetConfig() interface{}
func (*VMTemplateBootDevice) SetConfig ¶
func (p *VMTemplateBootDevice) SetConfig(v interface{}) error
type VMTemplateDisk ¶
type VMTemplateDisk struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` DataSourceReference *DataSourceReference `json:"dataSourceReference,omitempty"` DeviceProperties *DiskDeviceProperties `json:"deviceProperties,omitempty"` /** The device ID which is used to uniquely identify this particular disk. */ DiskId *string `json:"diskId,omitempty"` /** Size of the disk in Bytes. */ DiskSizeBytes *int64 `json:"diskSizeBytes,omitempty"` /** Size of the disk in MiB. Must match the size specified in diskSizeBytes rounded up to the nearest MiB - when that field is present. */ DiskSizeMib *int `json:"diskSizeMib,omitempty"` StorageConfig *VMTemplateDiskStorage `json:"storageConfig,omitempty"` VolumeGroupReference *Reference `json:"volumeGroupReference,omitempty"` }
* Disk attached to the VM.
func NewVMTemplateDisk ¶
func NewVMTemplateDisk() *VMTemplateDisk
type VMTemplateDiskAddress ¶
type VMTemplateDiskAddress struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` AdapterType *DiskAdapterType `json:"adapterType,omitempty"` DeviceIndex *int `json:"deviceIndex,omitempty"` }
* Disk Address
func NewVMTemplateDiskAddress ¶
func NewVMTemplateDiskAddress() *VMTemplateDiskAddress
type VMTemplateDiskStorage ¶
type VMTemplateDiskStorage struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` FlashMode *VMTemplateFlashMode `json:"flashMode,omitempty"` StorageContainerReference *Reference `json:"storageContainerReference,omitempty"` }
* This preference specifies the storage configuration parameters for VM disks.
func NewVMTemplateDiskStorage ¶
func NewVMTemplateDiskStorage() *VMTemplateDiskStorage
type VMTemplateFlashMode ¶
type VMTemplateFlashMode int
* State of the storage policy to pin this virtual disk to the hot tier. It overrides the VM preference when Flash Mode is enabled on the VM of this virtual disk.
const ( VMTEMPLATEFLASHMODE_UNKNOWN VMTemplateFlashMode = 0 VMTEMPLATEFLASHMODE_REDACTED VMTemplateFlashMode = 1 VMTEMPLATEFLASHMODE_ENABLED VMTemplateFlashMode = 2 VMTEMPLATEFLASHMODE_DISABLED VMTemplateFlashMode = 3 )
func (*VMTemplateFlashMode) MarshalJSON ¶
func (e *VMTemplateFlashMode) MarshalJSON() ([]byte, error)
func (VMTemplateFlashMode) Ref ¶
func (e VMTemplateFlashMode) Ref() *VMTemplateFlashMode
func (*VMTemplateFlashMode) UnmarshalJSON ¶
func (e *VMTemplateFlashMode) UnmarshalJSON(b []byte) error
type VMTemplateGpu ¶
type VMTemplateGpu struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** The device ID of the GPU. */ DeviceId *int `json:"deviceId,omitempty"` Mode *GpuMode `json:"mode,omitempty"` Vendor *GpuVendor `json:"vendor,omitempty"` }
* Graphics resource information for the Virtual Machine.
func NewVMTemplateGpu ¶
func NewVMTemplateGpu() *VMTemplateGpu
type VMTemplateGuestCustomization ¶
type VMTemplateGuestCustomization struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** */ ConfigItemDiscriminator_ *string `json:"$configItemDiscriminator,omitempty"` Config *OneOfVMTemplateGuestCustomizationConfig `json:"config,omitempty"` ConfigItemDiscriminator *string `json:"configItemDiscriminator,omitempty"` /** Flag to allow override of customization by deployer. */ IsOverridable *bool `json:"isOverridable,omitempty"` }
* VM guests may be customized at boot time using one of several different methods. Currently, cloud-init w/ ConfigDriveV2 (for Linux VMs) and Sysprep (for Windows VMs) are supported. Only ONE OF Sysprep or CloudInit should be provided. Note that guest customization can currently only be set during VM creation. Attempting to change it after creation will result in an error. Additional properties can be specified. For example - in the context of VM template creation if 'isOverridable' is set to 'True' then the deployer can upload their own custom script.
func NewVMTemplateGuestCustomization ¶
func NewVMTemplateGuestCustomization() *VMTemplateGuestCustomization
func (*VMTemplateGuestCustomization) GetConfig ¶
func (p *VMTemplateGuestCustomization) GetConfig() interface{}
func (*VMTemplateGuestCustomization) SetConfig ¶
func (p *VMTemplateGuestCustomization) SetConfig(v interface{}) error
type VMTemplateGuestPowerStateTransition ¶
type VMTemplateGuestPowerStateTransition struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Indicates whether to execute set script before ngt shutdown/reboot. */ IsEnableScriptExec *bool `json:"isEnableScriptExec,omitempty"` /** Indicates whether to abort ngt shutdown/reboot if script fails. */ IsShouldFailOnScriptFailure *bool `json:"isShouldFailOnScriptFailure,omitempty"` }
* Extra configs related to power state transition.
func NewVMTemplateGuestPowerStateTransition ¶
func NewVMTemplateGuestPowerStateTransition() *VMTemplateGuestPowerStateTransition
type VMTemplateGuestTools ¶
type VMTemplateGuestTools struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` NutanixGuestTools *VMTemplateNutanixGuestTools `json:"nutanixGuestTools,omitempty"` }
* Information regarding guest tools.
func NewVMTemplateGuestTools ¶
func NewVMTemplateGuestTools() *VMTemplateGuestTools
type VMTemplateIPAddress ¶
type VMTemplateIPAddress struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Gateway IP addresses matching the subnet. */ GatewayAddresses []import1.IPAddress `json:"gatewayAddresses,omitempty"` Ip *import1.IPAddress `json:"ip,omitempty"` IpType *IPAssignmentType `json:"ipType,omitempty"` /** Prefix length for the IP address. */ PrefixLength *int `json:"prefixLength,omitempty"` Type *IPDiscoveredType `json:"type,omitempty"` }
* An IP address.
func NewVMTemplateIPAddress ¶
func NewVMTemplateIPAddress() *VMTemplateIPAddress
type VMTemplateNic ¶
type VMTemplateNic struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** IP endpoints for the adapter. Currently, IPv4 addresses are supported. */ IpEndpoints []VMTemplateIPAddress `json:"ipEndpoints,omitempty"` /** Whether or not the NIC is connected. True by default. */ IsConnected *bool `json:"isConnected,omitempty"` MacAddress *NicMacAddress `json:"macAddress,omitempty"` Model *NicModel `json:"model,omitempty"` NetworkFunctionChainReference *Reference `json:"networkFunctionChainReference,omitempty"` NetworkFunctionNicType *NetworkFunctionNicType `json:"networkFunctionNicType,omitempty"` /** The NIC's UUID, which is used to uniquely identify this particular NIC. This UUID may be used to refer to the NIC outside the context of the particular VM it is attached to. */ NicId *string `json:"nicId,omitempty"` NicType *NicType `json:"nicType,omitempty"` SubnetReference *Reference `json:"subnetReference,omitempty"` /** List of networks to trunk if vlanMode is TRUNKED. If empty and VLAN mode is TRUNKED, all VLANs are trunked. */ TrunkedVlans []int `json:"trunkedVlans,omitempty"` VlanMode *VlanMode `json:"vlanMode,omitempty"` }
* Virtual Machine NIC.
func NewVMTemplateNic ¶
func NewVMTemplateNic() *VMTemplateNic
type VMTemplateNutanixGuestTools ¶
type VMTemplateNutanixGuestTools struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` Credentials *Credentials `json:"credentials,omitempty"` /** Application names that are enabled. */ EnabledCapabilities []NgtEnabledCapability `json:"enabledCapabilities,omitempty"` IsoMountState *IsoMountState `json:"isoMountState,omitempty"` NgtState *NgtAvailableState `json:"ngtState,omitempty"` State *NgtState `json:"state,omitempty"` /** Desired Version of Nutanix Guest Tools installed on the VM. */ Version *string `json:"version,omitempty"` }
* Information regarding Nutanix Guest Tools.
func NewVMTemplateNutanixGuestTools ¶
func NewVMTemplateNutanixGuestTools() *VMTemplateNutanixGuestTools
type VMTemplatePowerStateMechanism ¶
type VMTemplatePowerStateMechanism struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` GuestTransitionConfig *VMTemplateGuestPowerStateTransition `json:"guestTransitionConfig,omitempty"` Mechanism *PowerStateMechanism `json:"mechanism,omitempty"` }
* Indicates the mechanism guiding the VM power state transition. Currently used for the transition to OFF state.
func NewVMTemplatePowerStateMechanism ¶
func NewVMTemplatePowerStateMechanism() *VMTemplatePowerStateMechanism
type VMTemplateSerialPort ¶
type VMTemplateSerialPort struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Index of the serial port. */ Index *int `json:"index,omitempty"` /** Indicates whether the serial port connection is connected or not. */ IsConnected *bool `json:"isConnected,omitempty"` }
* Indicates the configuration of serial ports of the VM.
func NewVMTemplateSerialPort ¶
func NewVMTemplateSerialPort() *VMTemplateSerialPort
type VMTemplateStorage ¶
type VMTemplateStorage struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` FlashMode *VMTemplateFlashMode `json:"flashMode,omitempty"` QosPolicy *VMTemplateStorageQosPolicy `json:"qosPolicy,omitempty"` }
* User inputs of storage configuration parameters for VMs.
func NewVMTemplateStorage ¶
func NewVMTemplateStorage() *VMTemplateStorage
type VMTemplateStorageQosPolicy ¶
type VMTemplateStorageQosPolicy struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Throttled iops for the entities being governed by the policy. The block size for the IO is 32kB. */ ThrottledIops *int64 `json:"throttledIops"` }
* The policy rule to be enforced depending on the type of policy. For ex - provisioned/throttled iops would be set for a storage qos policy.
func NewVMTemplateStorageQosPolicy ¶
func NewVMTemplateStorageQosPolicy() *VMTemplateStorageQosPolicy
func (*VMTemplateStorageQosPolicy) MarshalJSON ¶
func (p *VMTemplateStorageQosPolicy) MarshalJSON() ([]byte, error)
type VMTemplateVNuma ¶
type VMTemplateVNuma struct { ObjectType_ *string `json:"$objectType,omitempty"` Reserved_ map[string]interface{} `json:"$reserved,omitempty"` UnknownFields_ map[string]interface{} `json:"$unknownFields,omitempty"` /** Number of vNUMA nodes. 0 means vNUMA is disabled. */ NumVNumaNodes *int64 `json:"numVNumaNodes,omitempty"` }
* Indicates how VM vNUMA should be configured
func NewVMTemplateVNuma ¶
func NewVMTemplateVNuma() *VMTemplateVNuma
type VlanMode ¶
type VlanMode int
* VLAN mode.