api

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 IsoMediaType_name = map[IsoMediaType]string{
	IsoMediaType_UNKNOWN:             "unknown",
	IsoMediaType_CDROM:               "cdrom",
	IsoMediaType_CDR:                 "cdr",
	IsoMediaType_CDRW:                "cdrw",
	IsoMediaType_DVDROM:              "dvdrom",
	IsoMediaType_DVDRAM:              "dvdram",
	IsoMediaType_DVDPLUSR:            "dvdplusr",
	IsoMediaType_DVDPLUSRW:           "dvdplusrw",
	IsoMediaType_DVDPLUSR_DUALLAYER:  "dvdplusr_duallayer",
	IsoMediaType_DVDDASHR:            "dvddashr",
	IsoMediaType_DVDDASHRW:           "dvddashrw",
	IsoMediaType_DVDDASHR_DUALLAYER:  "dvddashr_duallayer",
	IsoMediaType_DISK:                "disk",
	IsoMediaType_DVDPLUSRW_DUALLAYER: "dvdplusrw_duallayer",
	IsoMediaType_HDDVDROM:            "hddvdrom",
	IsoMediaType_HDDVDR:              "hddvdr",
	IsoMediaType_HDDVDRAM:            "hddvdram",
	IsoMediaType_BDROM:               "bdrom",
	IsoMediaType_BDR:                 "bdr",
	IsoMediaType_BDRE:                "bdre",
}
View Source
var IsoMediaType_value = map[string]IsoMediaType{
	"unknown":             IsoMediaType_UNKNOWN,
	"cdrom":               IsoMediaType_CDROM,
	"cdr":                 IsoMediaType_CDR,
	"cdrw":                IsoMediaType_CDRW,
	"dvdrom":              IsoMediaType_DVDROM,
	"dvdram":              IsoMediaType_DVDRAM,
	"dvdplusr":            IsoMediaType_DVDPLUSR,
	"dvdplusrw":           IsoMediaType_DVDPLUSRW,
	"dvdplusr_duallayer":  IsoMediaType_DVDPLUSR_DUALLAYER,
	"dvddashr":            IsoMediaType_DVDDASHR,
	"dvddashrw":           IsoMediaType_DVDDASHRW,
	"dvddashr_duallayer":  IsoMediaType_DVDDASHR_DUALLAYER,
	"disk":                IsoMediaType_DISK,
	"dvdplusrw_duallayer": IsoMediaType_DVDPLUSRW_DUALLAYER,
	"hddvdrom":            IsoMediaType_HDDVDROM,
	"hddvdr":              IsoMediaType_HDDVDR,
	"hddvdram":            IsoMediaType_HDDVDRAM,
	"bdrom":               IsoMediaType_BDROM,
	"bdr":                 IsoMediaType_BDR,
	"bdre":                IsoMediaType_BDRE,
}
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 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 added in v1.0.4

func FlattenGen2BootOrders(bootOrders []Gen2BootOrder) []interface{}

func FlattenHardDiskDrives

func FlattenHardDiskDrives(hardDiskDrives *[]VmHardDiskDrive) []interface{}

func FlattenIntegrationServices

func FlattenIntegrationServices(integrationServices *[]VmIntegrationService) map[string]interface{}

func FlattenMandatoryFeatureIds

func FlattenMandatoryFeatureIds(mandatoryFeatureIdStrings []string) *schema.Set

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 added in v1.0.4

type Gen2BootOrder struct {
	Type Gen2BootType

	NetworkAdapterName string
	SwitchName         string
	MacAddress         string

	Path               string
	ControllerNumber   int
	ControllerLocation int
}

func ExpandGen2BootOrder added in v1.0.4

func ExpandGen2BootOrder(bootOrders []interface{}) ([]Gen2BootOrder, error)

type Gen2BootType added in v1.0.4

type Gen2BootType int
const (
	Gen2BootType_HardDiskDrive  Gen2BootType = 1
	Gen2BootType_DvdDrive       Gen2BootType = 2
	Gen2BootType_NetworkAdapter Gen2BootType = 3
)

func ToGen2BootType added in v1.0.4

func ToGen2BootType(x string) Gen2BootType

func (*Gen2BootType) MarshalJSON added in v1.0.4

func (d *Gen2BootType) MarshalJSON() ([]byte, error)

func (Gen2BootType) String added in v1.0.4

func (x Gen2BootType) String() string

func (*Gen2BootType) UnmarshalJSON added in v1.0.4

func (d *Gen2BootType) UnmarshalJSON(b []byte) error

type HypervIsoImageClient added in v1.2.0

type HypervIsoImageClient interface {
	RemoteFileExists(ctx context.Context, path string) (exists bool, err error)
	RemoteFileDelete(ctx context.Context, path string) (err error)
	RemoteFileUpload(ctx context.Context, filePath string, remoteFilePath string) (err error)

	CreateOrUpdateIsoImage(ctx context.Context, sourceIsoFilePath string, sourceIsoFilePathHash string, sourceZipFilePath string, sourceZipFilePathHash string, sourceBootFilePath string, sourceBootFilePathHash string, destinationIsoFilePath string, destinationZipFilePath string, destinationBootFilePath string, media IsoMediaType, fileSystem IsoFileSystemType, volumeName string, resolveDestinationIsoFilePath string, resolveDestinationZipFilePath string, resolveDestinationBootFilePath string) (err error)
	GetIsoImage(ctx context.Context, resolveDestinationIsoFilePath string) (result IsoImage, err error)
}

type HypervVhdClient added in v1.0.4

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 added in v1.0.4

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 uint64,
		lockOnDisconnect OnOffState,
		lowMemoryMappedIoSpace uint32,
		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 uint64,
		lockOnDisconnect OnOffState,
		lowMemoryMappedIoSpace uint32,
		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 added in v1.0.4

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 added in v1.0.4

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 added in v1.0.4

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 added in v1.0.4

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 added in v1.0.4

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 added in v1.0.4

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 added in v1.0.4

type HypervVmStatusClient interface {
	GetVmStatus(ctx context.Context, vmName string) (result VmStatus, err error)
	UpdateVmStatus(
		ctx context.Context,
		vmName string,
		timeout uint32,
		pollPeriod uint32,
		state VmState,
	) (err error)
}

type HypervVmSwitchClient added in v1.0.4

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,
		oldName string,
		name 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 (*IovInterruptModerationValue) UnmarshalJSON

func (d *IovInterruptModerationValue) UnmarshalJSON(b []byte) error

type IsoFileSystemType added in v1.2.0

type IsoFileSystemType int
const (
	IsoFileSystemType_None              IsoFileSystemType = 0
	IsoFileSystemType_ISO9660           IsoFileSystemType = 0x1
	IsoFileSystemType_Joliet            IsoFileSystemType = 0x2
	IsoFileSystemType_ISO9660_or_Joliet IsoFileSystemType = 0x3
	IsoFileSystemType_UDF               IsoFileSystemType = 4
	IsoFileSystemType_Joliet_or_UDF     IsoFileSystemType = 0x6
	IsoFileSystemType_ALL               IsoFileSystemType = 0x7
	IsoFileSystemType_Unknown           IsoFileSystemType = 0x40000000
)

func ToIsoFileSystemType added in v1.2.0

func ToIsoFileSystemType(x string) IsoFileSystemType

func (*IsoFileSystemType) MarshalJSON added in v1.2.0

func (d *IsoFileSystemType) MarshalJSON() ([]byte, error)

func (IsoFileSystemType) String added in v1.2.0

func (x IsoFileSystemType) String() string

func (*IsoFileSystemType) UnmarshalJSON added in v1.2.0

func (d *IsoFileSystemType) UnmarshalJSON(b []byte) error

type IsoImage added in v1.2.0

type IsoImage struct {
	SourceIsoFilePath              string
	SourceIsoFilePathHash          string
	SourceZipFilePath              string
	SourceZipFilePathHash          string
	SourceBootFilePath             string
	SourceBootFilePathHash         string
	DestinationIsoFilePath         string
	DestinationZipFilePath         string
	DestinationBootFilePath        string
	Media                          IsoMediaType
	FileSystem                     IsoFileSystemType
	VolumeName                     string
	ResolveDestinationIsoFilePath  string
	ResolveDestinationZipFilePath  string
	ResolveDestinationBootFilePath string
}

type IsoMediaType added in v1.2.0

type IsoMediaType int
const (
	IsoMediaType_UNKNOWN             IsoMediaType = 0
	IsoMediaType_CDROM               IsoMediaType = 0x1
	IsoMediaType_CDR                 IsoMediaType = 0x2
	IsoMediaType_CDRW                IsoMediaType = 0x3
	IsoMediaType_DVDROM              IsoMediaType = 0x4
	IsoMediaType_DVDRAM              IsoMediaType = 0x5
	IsoMediaType_DVDPLUSR            IsoMediaType = 0x6
	IsoMediaType_DVDPLUSRW           IsoMediaType = 0x7
	IsoMediaType_DVDPLUSR_DUALLAYER  IsoMediaType = 0x8
	IsoMediaType_DVDDASHR            IsoMediaType = 0x9
	IsoMediaType_DVDDASHRW           IsoMediaType = 0xa
	IsoMediaType_DVDDASHR_DUALLAYER  IsoMediaType = 0xb
	IsoMediaType_DISK                IsoMediaType = 0xc
	IsoMediaType_DVDPLUSRW_DUALLAYER IsoMediaType = 0xd
	IsoMediaType_HDDVDROM            IsoMediaType = 0xe
	IsoMediaType_HDDVDR              IsoMediaType = 0xf
	IsoMediaType_HDDVDRAM            IsoMediaType = 0x10
	IsoMediaType_BDROM               IsoMediaType = 0x11
	IsoMediaType_BDR                 IsoMediaType = 0x12
	IsoMediaType_BDRE                IsoMediaType = 0x13
)

func ToIsoMediaType added in v1.2.0

func ToIsoMediaType(x string) IsoMediaType

func (*IsoMediaType) MarshalJSON added in v1.2.0

func (d *IsoMediaType) MarshalJSON() ([]byte, error)

func (IsoMediaType) String added in v1.2.0

func (x IsoMediaType) String() string

func (*IsoMediaType) UnmarshalJSON added in v1.2.0

func (d *IsoMediaType) 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 Provider added in v1.0.4

type Provider struct {
	Client Client
}

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 added in v1.0.4

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 VhdExists added in v1.0.4

type VhdExists struct {
	Exists bool
}

type VhdFormat

type VhdFormat int
const (
	VhdFormat_Unknown VhdFormat = 0
	VhdFormat_VHD     VhdFormat = 2 // extension ".Vhd"
	VhdFormat_VHDX    VhdFormat = 3 // extension ".vhdx"
	VhdFormat_VHDSet  VhdFormat = 4 // extension ".vhds"
)

func ToVhdFormat

func ToVhdFormat(x string) VhdFormat

func (*VhdFormat) MarshalJSON

func (d *VhdFormat) MarshalJSON() ([]byte, error)

func (VhdFormat) String

func (x VhdFormat) String() string

func (*VhdFormat) UnmarshalJSON

func (d *VhdFormat) UnmarshalJSON(b []byte) error

type VhdType

type VhdType int
const (
	VhdType_Unknown      VhdType = 0
	VhdType_Fixed        VhdType = 2
	VhdType_Dynamic      VhdType = 3
	VhdType_Differencing VhdType = 4
)

func ToVhdType

func ToVhdType(x string) VhdType

func (*VhdType) MarshalJSON

func (d *VhdType) MarshalJSON() ([]byte, error)

func (VhdType) String

func (x VhdType) String() string

func (*VhdType) UnmarshalJSON

func (d *VhdType) UnmarshalJSON(b []byte) error

type Vm added in v1.0.4

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             uint64
	LockOnDisconnect                    OnOffState
	LowMemoryMappedIoSpace              uint32
	MemoryMaximumBytes                  int64
	MemoryMinimumBytes                  int64
	MemoryStartupBytes                  int64
	Notes                               string
	ProcessorCount                      int64
	SmartPagingFilePath                 string
	SnapshotFileLocation                string
	StaticMemory                        bool
}

type VmDvdDrive added in v1.0.4

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 VmExists added in v1.0.4

type VmExists struct {
	Exists bool
}

type VmFirmware added in v1.0.4

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 added in v1.0.4

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 added in v1.0.4

type VmIntegrationService struct {
	Name    string
	Enabled bool
}

func ExpandIntegrationServices

func ExpandIntegrationServices(d *schema.ResourceData) ([]VmIntegrationService, error)

func GetChangedIntegrationServices

func GetChangedIntegrationServices(vmIntegrationServices []VmIntegrationService, d *schema.ResourceData) []VmIntegrationService

type VmNetworkAdapter added in v1.0.4

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 added in v1.0.4

type VmNetworkAdapterWaitForIp struct {
	Name       string
	WaitForIps bool
}

func ExpandVmNetworkAdapterWaitForIps

func ExpandVmNetworkAdapterWaitForIps(d *schema.ResourceData) ([]VmNetworkAdapterWaitForIp, uint32, uint32, error)

type VmProcessor added in v1.0.4

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 ToVmState

func ToVmState(x string) VmState

func (*VmState) MarshalJSON

func (d *VmState) MarshalJSON() ([]byte, error)

func (VmState) String

func (x VmState) String() string

func (*VmState) UnmarshalJSON

func (d *VmState) UnmarshalJSON(b []byte) error

type VmStatus added in v1.0.4

type VmStatus struct {
	State VmState
}

type VmSwitch added in v1.0.4

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 added in v1.0.4

type VmSwitchExists struct {
	Exists bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL