Documentation ¶
Index ¶
- Variables
- func DefaultVmFirmwares() (interface{}, error)
- func DefaultVmIntegrationServices() (interface{}, error)
- func DefaultVmProcessors() (interface{}, error)
- func DiffSuppressVmHardDiskPath(key, old, new string, d *schema.ResourceData) bool
- func DiffSuppressVmIntegrationServices(key, old, new string, d *schema.ResourceData) bool
- func DiffSuppressVmProcessorMaximumCountPerNumaNode(key, old, new string, d *schema.ResourceData) bool
- func DiffSuppressVmProcessorMaximumCountPerNumaSocket(key, old, new string, d *schema.ResourceData) bool
- func DiffSuppressVmStaticMacAddress(key, old, new string, d *schema.ResourceData) bool
- func ExpandVmStateWaitForState(d *schema.ResourceData) (uint32, uint32, error)
- func FlattenDvdDrives(dvdDrives *[]VmDvdDrive) []interface{}
- func FlattenGen2BootOrders(bootOrders []Gen2BootOrder) []interface{}
- func FlattenHardDiskDrives(hardDiskDrives *[]VmHardDiskDrive) []interface{}
- func FlattenIntegrationServices(integrationServices *[]VmIntegrationService) map[string]interface{}
- func FlattenMandatoryFeatureIds(mandatoryFeatureIdStrings []string) *schema.Set
- func FlattenNetworkAdapters(networkAdapters *[]VmNetworkAdapter) []interface{}
- func FlattenVmFirmwares(vmFirmwares *[]VmFirmware) []interface{}
- func FlattenVmProcessors(vmProcessors *[]VmProcessor) []interface{}
- type CacheAttributes
- type CheckpointType
- type Client
- type ConsoleModeType
- type ControllerType
- type CriticalErrorAction
- type Gen2BootOrder
- type Gen2BootType
- type HypervVhdClient
- type HypervVmClient
- type HypervVmDvdDriveClient
- type HypervVmFirmwareClient
- type HypervVmHardDiskDriveClient
- type HypervVmIntegrationServiceClient
- type HypervVmNetworkAdapterClient
- type HypervVmProcessorClient
- type HypervVmStatusClient
- type HypervVmSwitchClient
- type IPProtocolPreference
- type IovInterruptModerationValue
- type OnOffState
- type PortMirroring
- type Provider
- type StartAction
- type StopAction
- type VMSwitchBandwidthMode
- type VMSwitchType
- type Vhd
- type VhdExists
- type VhdFormat
- type VhdType
- type Vm
- type VmDvdDrive
- type VmExists
- type VmFirmware
- type VmHardDiskDrive
- type VmIntegrationService
- type VmNetworkAdapter
- type VmNetworkAdapterWaitForIp
- type VmProcessor
- type VmState
- type VmStatus
- type VmSwitch
- type VmSwitchExists
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheAttributes_name = map[CacheAttributes]string{ CacheAttributes_Default: "Default", CacheAttributes_WriteCacheEnabled: "WriteCacheEnabled", CacheAttributes_WriteCacheAndFUAEnabled: "WriteCacheAndFUAEnabled", CacheAttributes_WriteCacheDisabled: "WriteCacheDisabled", }
View Source
var CacheAttributes_value = map[string]CacheAttributes{ "default": CacheAttributes_Default, "writecacheenabled": CacheAttributes_WriteCacheEnabled, "writecacheandfuaenabled": CacheAttributes_WriteCacheAndFUAEnabled, "writecachedisabled": CacheAttributes_WriteCacheDisabled, }
View Source
var CheckpointType_name = map[CheckpointType]string{ CheckpointType_Disabled: "Disabled", CheckpointType_Production: "Production", CheckpointType_ProductionOnly: "ProductionOnly", CheckpointType_Standard: "Standard", }
View Source
var CheckpointType_value = map[string]CheckpointType{ "disabled": CheckpointType_Disabled, "production": CheckpointType_Production, "productiononly": CheckpointType_ProductionOnly, "standard": CheckpointType_Standard, }
View Source
var ConsoleModeType_name = map[ConsoleModeType]string{ ConsoleModeType_Default: "Default", ConsoleModeType_Com1: "COM1", ConsoleModeType_Com2: "COM2", ConsoleModeType_None: "None", }
View Source
var ConsoleModeType_value = map[string]ConsoleModeType{ "default": ConsoleModeType_Default, "com1": ConsoleModeType_Com1, "com2": ConsoleModeType_Com2, "none": ConsoleModeType_None, }
View Source
var ControllerType_name = map[ControllerType]string{ ControllerType_Ide: "Ide", ControllerType_Scsi: "Scsi", }
View Source
var ControllerType_value = map[string]ControllerType{ "ide": ControllerType_Ide, "scsi": ControllerType_Scsi, }
View Source
var CriticalErrorAction_name = map[CriticalErrorAction]string{ CriticalErrorAction_None: "None", CriticalErrorAction_Pause: "Pause", }
View Source
var CriticalErrorAction_value = map[string]CriticalErrorAction{ "none": CriticalErrorAction_None, "pause": CriticalErrorAction_Pause, }
View Source
var Gen2BootType_name = map[Gen2BootType]string{ Gen2BootType_HardDiskDrive: "HardDiskDrive", Gen2BootType_DvdDrive: "DvdDrive", Gen2BootType_NetworkAdapter: "NetworkAdapter", }
View Source
var Gen2BootType_value = map[string]Gen2BootType{ "harddiskdrive": Gen2BootType_HardDiskDrive, "dvddrive": Gen2BootType_DvdDrive, "networkadapter": Gen2BootType_NetworkAdapter, }
View Source
var IPProtocolPreference_name = map[IPProtocolPreference]string{ IPProtocolPreference_IPv4: "IPv4", IPProtocolPreference_IPv6: "IPv6", }
View Source
var IPProtocolPreference_value = map[string]IPProtocolPreference{ "ipv4": IPProtocolPreference_IPv4, "ipv6": IPProtocolPreference_IPv6, }
View Source
var IovInterruptModerationValue_name = map[IovInterruptModerationValue]string{ IovInterruptModerationValue_Default: "Default", IovInterruptModerationValue_Adaptive: "Adaptive", IovInterruptModerationValue_Off: "Off", IovInterruptModerationValue_Low: "Low", IovInterruptModerationValue_Medium: "Medium", IovInterruptModerationValue_High: "High", }
View Source
var IovInterruptModerationValue_value = map[string]IovInterruptModerationValue{ "default": IovInterruptModerationValue_Default, "adaptive": IovInterruptModerationValue_Adaptive, "off": IovInterruptModerationValue_Off, "low": IovInterruptModerationValue_Low, "medium": IovInterruptModerationValue_Medium, "high": IovInterruptModerationValue_High, }
View Source
var OnOffState_name = map[OnOffState]string{ OnOffState_On: "On", OnOffState_Off: "Off", }
View Source
var OnOffState_value = map[string]OnOffState{ "on": OnOffState_On, "off": OnOffState_Off, }
View Source
var PortMirroring_name = map[PortMirroring]string{ PortMirroring_None: "None", PortMirroring_Destination: "Destination", PortMirroring_Source: "Source", }
View Source
var PortMirroring_value = map[string]PortMirroring{ "none": PortMirroring_None, "destination": PortMirroring_Destination, "source": PortMirroring_Source, }
View Source
var StartAction_name = map[StartAction]string{ StartAction_Nothing: "Nothing", StartAction_StartIfRunning: "StartIfRunning", StartAction_Start: "Start", }
View Source
var StartAction_value = map[string]StartAction{ "nothing": StartAction_Nothing, "startifrunning": StartAction_StartIfRunning, "start": StartAction_Start, }
View Source
var StopAction_name = map[StopAction]string{ StopAction_TurnOff: "TurnOff", StopAction_Save: "Save", StopAction_ShutDown: "ShutDown", }
View Source
var StopAction_value = map[string]StopAction{ "turnoff": StopAction_TurnOff, "save": StopAction_Save, "shutdown": StopAction_ShutDown, }
View Source
var VMSwitchBandwidthMode_name = map[VMSwitchBandwidthMode]string{ VMSwitchBandwidthMode_Default: "Default", VMSwitchBandwidthMode_Weight: "Weight", VMSwitchBandwidthMode_Absolute: "Absolute", VMSwitchBandwidthMode_None: "None", }
View Source
var VMSwitchBandwidthMode_value = map[string]VMSwitchBandwidthMode{ "default": VMSwitchBandwidthMode_Default, "weight": VMSwitchBandwidthMode_Weight, "absolute": VMSwitchBandwidthMode_Absolute, "none": VMSwitchBandwidthMode_None, }
View Source
var VMSwitchType_name = map[VMSwitchType]string{ VMSwitchType_Private: "Private", VMSwitchType_Internal: "Internal", VMSwitchType_External: "External", }
View Source
var VMSwitchType_value = map[string]VMSwitchType{ "private": VMSwitchType_Private, "internal": VMSwitchType_Internal, "external": VMSwitchType_External, }
View Source
var VhdFormat_name = map[VhdFormat]string{ VhdFormat_Unknown: "Unknown", VhdFormat_VHD: "VHD", VhdFormat_VHDX: "VHDX", VhdFormat_VHDSet: "VHDSet", }
View Source
var VhdFormat_value = map[string]VhdFormat{ "unknown": VhdFormat_Unknown, "Vhd": VhdFormat_VHD, "vhdx": VhdFormat_VHDX, "vhdset": VhdFormat_VHDSet, }
View Source
var VhdType_name = map[VhdType]string{ VhdType_Unknown: "Unknown", VhdType_Fixed: "Fixed", VhdType_Dynamic: "Dynamic", VhdType_Differencing: "Differencing", }
View Source
var VhdType_value = map[string]VhdType{ "unknown": VhdType_Unknown, "fixed": VhdType_Fixed, "dynamic": VhdType_Dynamic, "differencing": VhdType_Differencing, }
View Source
var VmState_SettableValue = map[string]VmState{ "running": VmState_Running, "off": VmState_Off, }
View Source
var VmState_name = map[VmState]string{ VmState_Other: "Other", VmState_Running: "Running", VmState_Off: "Off", VmState_Stopping: "Stopping", VmState_Saved: "Saved", VmState_Paused: "Paused", VmState_Starting: "Starting", VmState_Reset: "Reset", VmState_Saving: "Saving", VmState_Pausing: "Pausing", VmState_Resuming: "Resuming", VmState_FastSaved: "FastSaved", VmState_FastSaving: "FastSaving", VmState_ForceShutdown: "ForceShutdown", VmState_ForceReboot: "ForceReboot", VmState_RunningCritical: "RunningCritical", VmState_OffCritical: "OffCritical", VmState_StoppingCritical: "StoppingCritical", VmState_SavedCritical: "SavedCritical", VmState_PausedCritical: "PausedCritical", VmState_StartingCritical: "StartingCritical", VmState_ResetCritical: "ResetCritical", VmState_SavingCritical: "SavingCritical", VmState_PausingCritical: "PausingCritical", VmState_ResumingCritical: "ResumingCritical", VmState_FastSavedCritical: "FastSavedCritical", VmState_FastSavingCritical: "FastSavingCritical", }
View Source
var VmState_value = map[string]VmState{ "other": VmState_Other, "running": VmState_Running, "off": VmState_Off, "stopping": VmState_Stopping, "saved": VmState_Saved, "paused": VmState_Paused, "starting": VmState_Starting, "reset": VmState_Reset, "saving": VmState_Saving, "pausing": VmState_Pausing, "resuming": VmState_Resuming, "fastsaved": VmState_FastSaved, "fastsaving": VmState_FastSaving, "forceshutdown": VmState_ForceShutdown, "forcereboot": VmState_ForceReboot, "runningcritical": VmState_RunningCritical, "offcritical": VmState_OffCritical, "stoppingcritical": VmState_StoppingCritical, "savedcritical": VmState_SavedCritical, "pausedcritical": VmState_PausedCritical, "startingcritical": VmState_StartingCritical, "resetcritical": VmState_ResetCritical, "savingcritical": VmState_SavingCritical, "pausingcritical": VmState_PausingCritical, "resumingcritical": VmState_ResumingCritical, "fastsavedcritical": VmState_FastSavedCritical, "fastsavingcritical": VmState_FastSavingCritical, }
Functions ¶
func DefaultVmFirmwares ¶
func DefaultVmFirmwares() (interface{}, error)
func DefaultVmIntegrationServices ¶
func DefaultVmIntegrationServices() (interface{}, error)
func DefaultVmProcessors ¶
func DefaultVmProcessors() (interface{}, error)
func DiffSuppressVmHardDiskPath ¶
func DiffSuppressVmHardDiskPath(key, old, new string, d *schema.ResourceData) bool
func DiffSuppressVmIntegrationServices ¶
func DiffSuppressVmIntegrationServices(key, old, new string, d *schema.ResourceData) bool
func DiffSuppressVmProcessorMaximumCountPerNumaNode ¶
func DiffSuppressVmProcessorMaximumCountPerNumaNode(key, old, new string, d *schema.ResourceData) bool
func DiffSuppressVmProcessorMaximumCountPerNumaSocket ¶
func DiffSuppressVmProcessorMaximumCountPerNumaSocket(key, old, new string, d *schema.ResourceData) bool
func DiffSuppressVmStaticMacAddress ¶
func DiffSuppressVmStaticMacAddress(key, old, new string, d *schema.ResourceData) bool
func ExpandVmStateWaitForState ¶
func ExpandVmStateWaitForState(d *schema.ResourceData) (uint32, uint32, error)
func FlattenDvdDrives ¶
func FlattenDvdDrives(dvdDrives *[]VmDvdDrive) []interface{}
func FlattenGen2BootOrders ¶
func FlattenGen2BootOrders(bootOrders []Gen2BootOrder) []interface{}
func FlattenHardDiskDrives ¶
func FlattenHardDiskDrives(hardDiskDrives *[]VmHardDiskDrive) []interface{}
func FlattenIntegrationServices ¶
func FlattenIntegrationServices(integrationServices *[]VmIntegrationService) map[string]interface{}
func FlattenNetworkAdapters ¶
func FlattenNetworkAdapters(networkAdapters *[]VmNetworkAdapter) []interface{}
func FlattenVmFirmwares ¶
func FlattenVmFirmwares(vmFirmwares *[]VmFirmware) []interface{}
func FlattenVmProcessors ¶
func FlattenVmProcessors(vmProcessors *[]VmProcessor) []interface{}
Types ¶
type CacheAttributes ¶
type CacheAttributes int
const ( CacheAttributes_Default CacheAttributes = 0 CacheAttributes_WriteCacheEnabled CacheAttributes = 1 CacheAttributes_WriteCacheAndFUAEnabled CacheAttributes = 2 CacheAttributes_WriteCacheDisabled CacheAttributes = 3 )
func ToCacheAttributes ¶
func ToCacheAttributes(x string) CacheAttributes
func (*CacheAttributes) MarshalJSON ¶
func (d *CacheAttributes) MarshalJSON() ([]byte, error)
func (CacheAttributes) String ¶
func (x CacheAttributes) String() string
func (*CacheAttributes) UnmarshalJSON ¶
func (d *CacheAttributes) UnmarshalJSON(b []byte) error
type CheckpointType ¶
type CheckpointType int
const ( CheckpointType_Disabled CheckpointType = 2 CheckpointType_Production CheckpointType = 3 CheckpointType_ProductionOnly CheckpointType = 4 CheckpointType_Standard CheckpointType = 5 )
func ToCheckpointType ¶
func ToCheckpointType(x string) CheckpointType
func (*CheckpointType) MarshalJSON ¶
func (d *CheckpointType) MarshalJSON() ([]byte, error)
func (CheckpointType) String ¶
func (x CheckpointType) String() string
func (*CheckpointType) UnmarshalJSON ¶
func (d *CheckpointType) UnmarshalJSON(b []byte) error
type ConsoleModeType ¶
type ConsoleModeType int
const ( ConsoleModeType_Default ConsoleModeType = 0 ConsoleModeType_Com1 ConsoleModeType = 1 ConsoleModeType_Com2 ConsoleModeType = 2 ConsoleModeType_None ConsoleModeType = 3 )
func ToConsoleModeType ¶
func ToConsoleModeType(x string) ConsoleModeType
func (*ConsoleModeType) MarshalJSON ¶
func (d *ConsoleModeType) MarshalJSON() ([]byte, error)
func (ConsoleModeType) String ¶
func (x ConsoleModeType) String() string
func (*ConsoleModeType) UnmarshalJSON ¶
func (d *ConsoleModeType) UnmarshalJSON(b []byte) error
type ControllerType ¶
type ControllerType int
const ( ControllerType_Ide ControllerType = 0 ControllerType_Scsi ControllerType = 1 )
func ToControllerType ¶
func ToControllerType(x string) ControllerType
func (*ControllerType) MarshalJSON ¶
func (d *ControllerType) MarshalJSON() ([]byte, error)
func (ControllerType) String ¶
func (x ControllerType) String() string
func (*ControllerType) UnmarshalJSON ¶
func (d *ControllerType) UnmarshalJSON(b []byte) error
type CriticalErrorAction ¶
type CriticalErrorAction int
const ( CriticalErrorAction_None CriticalErrorAction = 0 CriticalErrorAction_Pause CriticalErrorAction = 1 )
func ToCriticalErrorAction ¶
func ToCriticalErrorAction(x string) CriticalErrorAction
func (*CriticalErrorAction) MarshalJSON ¶
func (d *CriticalErrorAction) MarshalJSON() ([]byte, error)
func (CriticalErrorAction) String ¶
func (x CriticalErrorAction) String() string
func (*CriticalErrorAction) UnmarshalJSON ¶
func (d *CriticalErrorAction) UnmarshalJSON(b []byte) error
type Gen2BootOrder ¶
type Gen2BootOrder struct { Type Gen2BootType NetworkAdapterName string SwitchName string MacAddress string Path string ControllerNumber int ControllerLocation int }
func ExpandGen2BootOrder ¶
func ExpandGen2BootOrder(bootOrders []interface{}) ([]Gen2BootOrder, error)
type Gen2BootType ¶
type Gen2BootType int
const ( Gen2BootType_HardDiskDrive Gen2BootType = 1 Gen2BootType_DvdDrive Gen2BootType = 2 Gen2BootType_NetworkAdapter Gen2BootType = 3 )
func ToGen2BootType ¶
func ToGen2BootType(x string) Gen2BootType
func (*Gen2BootType) MarshalJSON ¶
func (d *Gen2BootType) MarshalJSON() ([]byte, error)
func (Gen2BootType) String ¶
func (x Gen2BootType) String() string
func (*Gen2BootType) UnmarshalJSON ¶
func (d *Gen2BootType) UnmarshalJSON(b []byte) error
type HypervVhdClient ¶
type HypervVhdClient interface { VhdExists(ctx context.Context, path string) (result VhdExists, err error) CreateOrUpdateVhd(ctx context.Context, path string, source string, sourceVm string, sourceDisk int, vhdType VhdType, parentPath string, size uint64, blockSize uint32, logicalSectorSize uint32, physicalSectorSize uint32) (err error) ResizeVhd(ctx context.Context, path string, size uint64) (err error) GetVhd(ctx context.Context, path string) (result Vhd, err error) DeleteVhd(ctx context.Context, path string) (err error) }
type HypervVmClient ¶
type HypervVmClient interface { VmExists(ctx context.Context, name string) (result VmExists, err error) CreateVm( ctx context.Context, name string, path string, generation int, automaticCriticalErrorAction CriticalErrorAction, automaticCriticalErrorActionTimeout int32, automaticStartAction StartAction, automaticStartDelay int32, automaticStopAction StopAction, checkpointType CheckpointType, dynamicMemory bool, guestControlledCacheTypes bool, highMemoryMappedIoSpace int64, lockOnDisconnect OnOffState, lowMemoryMappedIoSpace int32, memoryMaximumBytes int64, memoryMinimumBytes int64, memoryStartupBytes int64, notes string, processorCount int64, smartPagingFilePath string, snapshotFileLocation string, staticMemory bool, ) (err error) GetVm(ctx context.Context, name string) (result Vm, err error) UpdateVm( ctx context.Context, name string, automaticCriticalErrorAction CriticalErrorAction, automaticCriticalErrorActionTimeout int32, automaticStartAction StartAction, automaticStartDelay int32, automaticStopAction StopAction, checkpointType CheckpointType, dynamicMemory bool, guestControlledCacheTypes bool, highMemoryMappedIoSpace int64, lockOnDisconnect OnOffState, lowMemoryMappedIoSpace int32, memoryMaximumBytes int64, memoryMinimumBytes int64, memoryStartupBytes int64, notes string, processorCount int64, smartPagingFilePath string, snapshotFileLocation string, staticMemory bool, ) (err error) DeleteVm(ctx context.Context, name string) (err error) }
type HypervVmDvdDriveClient ¶
type HypervVmDvdDriveClient interface { CreateVmDvdDrive( ctx context.Context, vmName string, controllerNumber int, controllerLocation int, path string, resourcePoolName string, ) (err error) GetVmDvdDrives(ctx context.Context, vmName string) (result []VmDvdDrive, err error) UpdateVmDvdDrive( ctx context.Context, vmName string, controllerNumber int, controllerLocation int, toControllerNumber int, toControllerLocation int, path string, resourcePoolName string, ) (err error) DeleteVmDvdDrive(ctx context.Context, vmName string, controllerNumber int, controllerLocation int) (err error) CreateOrUpdateVmDvdDrives(ctx context.Context, vmName string, dvdDrives []VmDvdDrive) (err error) }
type HypervVmFirmwareClient ¶
type HypervVmFirmwareClient interface { CreateOrUpdateVmFirmware( ctx context.Context, vmName string, bootOrders []Gen2BootOrder, enableSecureBoot OnOffState, secureBootTemplate string, preferredNetworkBootProtocol IPProtocolPreference, consoleMode ConsoleModeType, pauseAfterBootFailure OnOffState, ) (err error) GetVmFirmware(ctx context.Context, vmName string) (result VmFirmware, err error) GetNoVmFirmwares(ctx context.Context) (result []VmFirmware) GetVmFirmwares(ctx context.Context, vmName string) (result []VmFirmware, err error) CreateOrUpdateVmFirmwares(ctx context.Context, vmName string, vmFirmwares []VmFirmware) (err error) }
type HypervVmHardDiskDriveClient ¶
type HypervVmHardDiskDriveClient interface { CreateVmHardDiskDrive( ctx context.Context, vmName string, controllerType ControllerType, controllerNumber int32, controllerLocation int32, path string, diskNumber uint32, resourcePoolName string, supportPersistentReservations bool, maximumIops uint64, minimumIops uint64, qosPolicyId string, overrideCacheAttributes CacheAttributes, ) (err error) GetVmHardDiskDrives(ctx context.Context, vmName string) (result []VmHardDiskDrive, err error) UpdateVmHardDiskDrive( ctx context.Context, vmName string, controllerNumber int32, controllerLocation int32, controllerType ControllerType, toControllerNumber int32, toControllerLocation int32, path string, diskNumber uint32, resourcePoolName string, supportPersistentReservations bool, maximumIops uint64, minimumIops uint64, qosPolicyId string, overrideCacheAttributes CacheAttributes, ) (err error) DeleteVmHardDiskDrive(ctx context.Context, vmname string, controllerNumber int32, controllerLocation int32) (err error) CreateOrUpdateVmHardDiskDrives(ctx context.Context, vmName string, hardDiskDrives []VmHardDiskDrive) (err error) }
type HypervVmIntegrationServiceClient ¶
type HypervVmIntegrationServiceClient interface { GetVmIntegrationServices(ctx context.Context, vmName string) (result []VmIntegrationService, err error) EnableVmIntegrationService(ctx context.Context, vmName string, name string) (err error) DisableVmIntegrationService(ctx context.Context, vmName string, name string) (err error) CreateOrUpdateVmIntegrationServices(ctx context.Context, vmName string, integrationServices []VmIntegrationService) (err error) }
type HypervVmNetworkAdapterClient ¶
type HypervVmNetworkAdapterClient interface { CreateVmNetworkAdapter( ctx context.Context, vmName string, name string, switchName string, managementOs bool, isLegacy bool, dynamicMacAddress bool, staticMacAddress string, macAddressSpoofing OnOffState, dhcpGuard OnOffState, routerGuard OnOffState, portMirroring PortMirroring, ieeePriorityTag OnOffState, vmqWeight int, iovQueuePairsRequested int, iovInterruptModeration IovInterruptModerationValue, iovWeight int, ipsecOffloadMaximumSecurityAssociation int, maximumBandwidth int, minimumBandwidthAbsolute int, minimumBandwidthWeight int, mandatoryFeatureId []string, resourcePoolName string, testReplicaPoolName string, testReplicaSwitchName string, virtualSubnetId int, allowTeaming OnOffState, notMonitoredInCluster bool, stormLimit int, dynamicIpAddressLimit int, deviceNaming OnOffState, fixSpeed10G OnOffState, packetDirectNumProcs int, packetDirectModerationCount int, packetDirectModerationInterval int, vrssEnabled bool, vmmqEnabled bool, vmmqQueuePairs int, vlanAccess bool, vlanId int, ) (err error) WaitForVmNetworkAdaptersIps( ctx context.Context, vmName string, timeout uint32, pollPeriod uint32, vmNetworkAdaptersWaitForIps []VmNetworkAdapterWaitForIp, ) (err error) GetVmNetworkAdapters(ctx context.Context, vmName string, networkAdaptersWaitForIps []VmNetworkAdapterWaitForIp) (result []VmNetworkAdapter, err error) UpdateVmNetworkAdapter( ctx context.Context, vmName string, index int, name string, switchName string, managementOs bool, isLegacy bool, dynamicMacAddress bool, staticMacAddress string, macAddressSpoofing OnOffState, dhcpGuard OnOffState, routerGuard OnOffState, portMirroring PortMirroring, ieeePriorityTag OnOffState, vmqWeight int, iovQueuePairsRequested int, iovInterruptModeration IovInterruptModerationValue, iovWeight int, ipsecOffloadMaximumSecurityAssociation int, maximumBandwidth int, minimumBandwidthAbsolute int, minimumBandwidthWeight int, mandatoryFeatureId []string, resourcePoolName string, testReplicaPoolName string, testReplicaSwitchName string, virtualSubnetId int, allowTeaming OnOffState, notMonitoredInCluster bool, stormLimit int, dynamicIpAddressLimit int, deviceNaming OnOffState, fixSpeed10G OnOffState, packetDirectNumProcs int, packetDirectModerationCount int, packetDirectModerationInterval int, vrssEnabled bool, vmmqEnabled bool, vmmqQueuePairs int, vlanAccess bool, vlanId int, ) (err error) DeleteVmNetworkAdapter(ctx context.Context, vmName string, index int) (err error) CreateOrUpdateVmNetworkAdapters(ctx context.Context, vmName string, networkAdapters []VmNetworkAdapter) (err error) }
type HypervVmProcessorClient ¶
type HypervVmProcessorClient interface { CreateOrUpdateVmProcessor( ctx context.Context, vmName string, compatibilityForMigrationEnabled bool, compatibilityForOlderOperatingSystemsEnabled bool, hwThreadCountPerCore int64, maximum int64, reserve int64, relativeWeight int32, maximumCountPerNumaNode int32, maximumCountPerNumaSocket int32, enableHostResourceProtection bool, exposeVirtualizationExtensions bool, ) (err error) GetVmProcessors(ctx context.Context, vmName string) (result []VmProcessor, err error) CreateOrUpdateVmProcessors(ctx context.Context, vmName string, vmProcessors []VmProcessor) (err error) }
type HypervVmStatusClient ¶
type HypervVmSwitchClient ¶
type HypervVmSwitchClient interface { VMSwitchExists(ctx context.Context, name string) (result VmSwitchExists, err error) CreateVMSwitch( ctx context.Context, name string, notes string, allowManagementOS bool, embeddedTeamingEnabled bool, iovEnabled bool, packetDirectEnabled bool, bandwidthReservationMode VMSwitchBandwidthMode, switchType VMSwitchType, netAdapterNames []string, defaultFlowMinimumBandwidthAbsolute int64, defaultFlowMinimumBandwidthWeight int64, defaultQueueVmmqEnabled bool, defaultQueueVmmqQueuePairs int32, defaultQueueVrssEnabled bool, ) (err error) GetVMSwitch(ctx context.Context, name string) (result VmSwitch, err error) UpdateVMSwitch( ctx context.Context, switchId string, switchName string, notes string, allowManagementOS bool, switchType VMSwitchType, netAdapterNames []string, defaultFlowMinimumBandwidthAbsolute int64, defaultFlowMinimumBandwidthWeight int64, defaultQueueVmmqEnabled bool, defaultQueueVmmqQueuePairs int32, defaultQueueVrssEnabled bool, ) (err error) DeleteVMSwitch(ctx context.Context, name string) (err error) }
type IPProtocolPreference ¶
type IPProtocolPreference int
const ( IPProtocolPreference_IPv4 IPProtocolPreference = 0 IPProtocolPreference_IPv6 IPProtocolPreference = 1 )
func ToIPProtocolPreference ¶
func ToIPProtocolPreference(x string) IPProtocolPreference
func (*IPProtocolPreference) MarshalJSON ¶
func (d *IPProtocolPreference) MarshalJSON() ([]byte, error)
func (IPProtocolPreference) String ¶
func (x IPProtocolPreference) String() string
func (*IPProtocolPreference) UnmarshalJSON ¶
func (d *IPProtocolPreference) UnmarshalJSON(b []byte) error
type IovInterruptModerationValue ¶
type IovInterruptModerationValue int
const ( IovInterruptModerationValue_Default IovInterruptModerationValue = 0 IovInterruptModerationValue_Adaptive IovInterruptModerationValue = 1 IovInterruptModerationValue_Off IovInterruptModerationValue = 2 IovInterruptModerationValue_Low IovInterruptModerationValue = 100 IovInterruptModerationValue_Medium IovInterruptModerationValue = 200 IovInterruptModerationValue_High IovInterruptModerationValue = 300 )
func ToIovInterruptModerationValue ¶
func ToIovInterruptModerationValue(x string) IovInterruptModerationValue
func (*IovInterruptModerationValue) MarshalJSON ¶
func (d *IovInterruptModerationValue) MarshalJSON() ([]byte, error)
func (IovInterruptModerationValue) String ¶
func (x IovInterruptModerationValue) String() string
func (*IovInterruptModerationValue) UnmarshalJSON ¶
func (d *IovInterruptModerationValue) UnmarshalJSON(b []byte) error
type OnOffState ¶
type OnOffState int
const ( OnOffState_On OnOffState = 0 OnOffState_Off OnOffState = 1 )
func ToOnOffState ¶
func ToOnOffState(x string) OnOffState
func (*OnOffState) MarshalJSON ¶
func (d *OnOffState) MarshalJSON() ([]byte, error)
func (OnOffState) String ¶
func (x OnOffState) String() string
func (*OnOffState) UnmarshalJSON ¶
func (d *OnOffState) UnmarshalJSON(b []byte) error
type PortMirroring ¶
type PortMirroring int
const ( PortMirroring_None PortMirroring = 0 PortMirroring_Destination PortMirroring = 1 PortMirroring_Source PortMirroring = 2 )
func ToPortMirroring ¶
func ToPortMirroring(x string) PortMirroring
func (*PortMirroring) MarshalJSON ¶
func (d *PortMirroring) MarshalJSON() ([]byte, error)
func (PortMirroring) String ¶
func (x PortMirroring) String() string
func (*PortMirroring) UnmarshalJSON ¶
func (d *PortMirroring) UnmarshalJSON(b []byte) error
type StartAction ¶
type StartAction int
const ( StartAction_Nothing StartAction = 2 StartAction_StartIfRunning StartAction = 3 StartAction_Start StartAction = 4 )
func ToStartAction ¶
func ToStartAction(x string) StartAction
func (*StartAction) MarshalJSON ¶
func (d *StartAction) MarshalJSON() ([]byte, error)
func (StartAction) String ¶
func (x StartAction) String() string
func (*StartAction) UnmarshalJSON ¶
func (d *StartAction) UnmarshalJSON(b []byte) error
type StopAction ¶
type StopAction int
const ( StopAction_TurnOff StopAction = 2 StopAction_Save StopAction = 3 StopAction_ShutDown StopAction = 4 )
func ToStopAction ¶
func ToStopAction(x string) StopAction
func (*StopAction) MarshalJSON ¶
func (d *StopAction) MarshalJSON() ([]byte, error)
func (StopAction) String ¶
func (x StopAction) String() string
func (*StopAction) UnmarshalJSON ¶
func (d *StopAction) UnmarshalJSON(b []byte) error
type VMSwitchBandwidthMode ¶
type VMSwitchBandwidthMode int
const ( VMSwitchBandwidthMode_Default VMSwitchBandwidthMode = 0 VMSwitchBandwidthMode_Weight VMSwitchBandwidthMode = 1 VMSwitchBandwidthMode_Absolute VMSwitchBandwidthMode = 2 VMSwitchBandwidthMode_None VMSwitchBandwidthMode = 3 )
func ToVMSwitchBandwidthMode ¶
func ToVMSwitchBandwidthMode(x string) VMSwitchBandwidthMode
func (*VMSwitchBandwidthMode) MarshalJSON ¶
func (d *VMSwitchBandwidthMode) MarshalJSON() ([]byte, error)
func (VMSwitchBandwidthMode) String ¶
func (x VMSwitchBandwidthMode) String() string
func (*VMSwitchBandwidthMode) UnmarshalJSON ¶
func (d *VMSwitchBandwidthMode) UnmarshalJSON(b []byte) error
type VMSwitchType ¶
type VMSwitchType int
const ( VMSwitchType_Private VMSwitchType = 0 VMSwitchType_Internal VMSwitchType = 1 VMSwitchType_External VMSwitchType = 2 )
func ToVMSwitchType ¶
func ToVMSwitchType(x string) VMSwitchType
func (*VMSwitchType) MarshalJSON ¶
func (d *VMSwitchType) MarshalJSON() ([]byte, error)
func (VMSwitchType) String ¶
func (x VMSwitchType) String() string
func (*VMSwitchType) UnmarshalJSON ¶
func (d *VMSwitchType) UnmarshalJSON(b []byte) error
type Vhd ¶
type Vhd struct { Path string BlockSize uint32 LogicalSectorSize uint32 PhysicalSectorSize uint32 ParentPath string FileSize uint64 Size uint64 MinimumSize uint64 Attached bool DiskNumber int Number int FragmentationPercentage int Alignment int DiskIdentifier string VhdType VhdType VhdFormat VhdFormat }
type VhdFormat ¶
type VhdFormat int
func ToVhdFormat ¶
func (*VhdFormat) MarshalJSON ¶
func (*VhdFormat) UnmarshalJSON ¶
type Vm ¶
type Vm struct { Name string Path string Generation int AutomaticCriticalErrorAction CriticalErrorAction AutomaticCriticalErrorActionTimeout int32 AutomaticStartAction StartAction AutomaticStartDelay int32 AutomaticStopAction StopAction CheckpointType CheckpointType DynamicMemory bool GuestControlledCacheTypes bool HighMemoryMappedIoSpace int64 LockOnDisconnect OnOffState LowMemoryMappedIoSpace int32 MemoryMaximumBytes int64 MemoryMinimumBytes int64 MemoryStartupBytes int64 Notes string ProcessorCount int64 SmartPagingFilePath string SnapshotFileLocation string StaticMemory bool }
type VmDvdDrive ¶
type VmDvdDrive struct { VmName string ControllerNumber int ControllerLocation int Path string // AllowUnverifiedPaths bool no way of checking if its turned on so always turn on ResourcePoolName string }
func ExpandDvdDrives ¶
func ExpandDvdDrives(d *schema.ResourceData) ([]VmDvdDrive, error)
type VmFirmware ¶
type VmFirmware struct { VmName string BootOrders []Gen2BootOrder EnableSecureBoot OnOffState SecureBootTemplate string PreferredNetworkBootProtocol IPProtocolPreference ConsoleMode ConsoleModeType PauseAfterBootFailure OnOffState }
func ExpandVmFirmwares ¶
func ExpandVmFirmwares(d *schema.ResourceData) ([]VmFirmware, error)
type VmHardDiskDrive ¶
type VmHardDiskDrive struct { VmName string ControllerType ControllerType ControllerNumber int32 ControllerLocation int32 Path string DiskNumber uint32 ResourcePoolName string SupportPersistentReservations bool MaximumIops uint64 MinimumIops uint64 QosPolicyId string OverrideCacheAttributes CacheAttributes }
func ExpandHardDiskDrives ¶
func ExpandHardDiskDrives(d *schema.ResourceData) ([]VmHardDiskDrive, error)
type VmIntegrationService ¶
func ExpandIntegrationServices ¶
func ExpandIntegrationServices(d *schema.ResourceData) ([]VmIntegrationService, error)
func GetChangedIntegrationServices ¶
func GetChangedIntegrationServices(vmIntegrationServices []VmIntegrationService, d *schema.ResourceData) []VmIntegrationService
type VmNetworkAdapter ¶
type VmNetworkAdapter struct { VmName string Index int Name string SwitchName string ManagementOs bool IsLegacy bool DynamicMacAddress bool StaticMacAddress string MacAddressSpoofing OnOffState DhcpGuard OnOffState RouterGuard OnOffState PortMirroring PortMirroring IeeePriorityTag OnOffState VmqWeight int IovQueuePairsRequested int IovInterruptModeration IovInterruptModerationValue IovWeight int IpsecOffloadMaximumSecurityAssociation int MaximumBandwidth int MinimumBandwidthAbsolute int MinimumBandwidthWeight int MandatoryFeatureId []string ResourcePoolName string TestReplicaPoolName string TestReplicaSwitchName string VirtualSubnetId int AllowTeaming OnOffState NotMonitoredInCluster bool StormLimit int DynamicIpAddressLimit int DeviceNaming OnOffState FixSpeed10G OnOffState PacketDirectNumProcs int PacketDirectModerationCount int PacketDirectModerationInterval int VrssEnabled bool VmmqEnabled bool VmmqQueuePairs int VlanAccess bool VlanId int WaitForIps bool IpAddresses []string }
func ExpandNetworkAdapters ¶
func ExpandNetworkAdapters(d *schema.ResourceData) ([]VmNetworkAdapter, error)
type VmNetworkAdapterWaitForIp ¶
func ExpandVmNetworkAdapterWaitForIps ¶
func ExpandVmNetworkAdapterWaitForIps(d *schema.ResourceData) ([]VmNetworkAdapterWaitForIp, uint32, uint32, error)
type VmProcessor ¶
type VmProcessor struct { VmName string CompatibilityForMigrationEnabled bool CompatibilityForOlderOperatingSystemsEnabled bool HwThreadCountPerCore int64 Maximum int64 Reserve int64 RelativeWeight int32 MaximumCountPerNumaNode int32 MaximumCountPerNumaSocket int32 EnableHostResourceProtection bool ExposeVirtualizationExtensions bool }
func ExpandVmProcessors ¶
func ExpandVmProcessors(d *schema.ResourceData) ([]VmProcessor, error)
type VmState ¶
type VmState int
const ( VmState_Other VmState = 1 VmState_Running VmState = 2 VmState_Off VmState = 3 VmState_Stopping VmState = 4 VmState_Saved VmState = 6 VmState_Paused VmState = 9 VmState_Starting VmState = 10 VmState_Reset VmState = 11 VmState_Saving VmState = 32773 VmState_Pausing VmState = 32776 VmState_Resuming VmState = 32777 VmState_FastSaved VmState = 32779 VmState_FastSaving VmState = 32780 VmState_ForceShutdown VmState = 32781 VmState_ForceReboot VmState = 32782 VmState_RunningCritical VmState = 32783 VmState_OffCritical VmState = 32784 VmState_StoppingCritical VmState = 32785 VmState_SavedCritical VmState = 32786 VmState_PausedCritical VmState = 32787 VmState_StartingCritical VmState = 32788 VmState_ResetCritical VmState = 32789 VmState_SavingCritical VmState = 32790 VmState_PausingCritical VmState = 32791 VmState_ResumingCritical VmState = 32792 VmState_FastSavedCritical VmState = 32793 VmState_FastSavingCritical VmState = 32794 )
func (*VmState) MarshalJSON ¶
func (*VmState) UnmarshalJSON ¶
type VmSwitch ¶
type VmSwitch struct { Name string Notes string AllowManagementOS bool EmbeddedTeamingEnabled bool IovEnabled bool PacketDirectEnabled bool BandwidthReservationMode VMSwitchBandwidthMode SwitchType VMSwitchType NetAdapterNames []string DefaultFlowMinimumBandwidthAbsolute int64 DefaultFlowMinimumBandwidthWeight int64 DefaultQueueVmmqEnabled bool DefaultQueueVmmqQueuePairs int32 DefaultQueueVrssEnabled bool }
type VmSwitchExists ¶
type VmSwitchExists struct {
Exists bool
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.