virtualmachines

package
v0.20240221.1182059 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MPL-2.0 Imports: 16 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines Documentation

The virtualmachines SDK allows for interaction with the Azure Resource Manager Service connectedvmware (API Version 2022-01-10-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/connectedvmware/2022-01-10-preview/virtualmachines"

Client Initialization

client := virtualmachines.NewVirtualMachinesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: VirtualMachinesClient.AssessPatches

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

if err := client.AssessPatchesThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: VirtualMachinesClient.Create

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

payload := virtualmachines.VirtualMachine{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: VirtualMachinesClient.Delete

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

if err := client.DeleteThenPoll(ctx, id, virtualmachines.DefaultDeleteOperationOptions()); err != nil {
	// handle the error
}

Example Usage: VirtualMachinesClient.Get

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: VirtualMachinesClient.InstallPatches

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

payload := virtualmachines.VirtualMachineInstallPatchesParameters{
	// ...
}


if err := client.InstallPatchesThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: VirtualMachinesClient.List

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: VirtualMachinesClient.ListByResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: VirtualMachinesClient.Restart

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

if err := client.RestartThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: VirtualMachinesClient.Start

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

if err := client.StartThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: VirtualMachinesClient.Stop

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

payload := virtualmachines.StopVirtualMachineOptions{
	// ...
}


if err := client.StopThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: VirtualMachinesClient.Update

ctx := context.TODO()
id := virtualmachines.NewVirtualMachineID("12345678-1234-9876-4563-123456789012", "example-resource-group", "virtualMachineValue")

payload := virtualmachines.VirtualMachineUpdate{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForDiskMode

func PossibleValuesForDiskMode() []string

func PossibleValuesForDiskType

func PossibleValuesForDiskType() []string

func PossibleValuesForFirmwareType

func PossibleValuesForFirmwareType() []string

func PossibleValuesForIPAddressAllocationMethod

func PossibleValuesForIPAddressAllocationMethod() []string

func PossibleValuesForNICType

func PossibleValuesForNICType() []string

func PossibleValuesForOsType

func PossibleValuesForOsType() []string

func PossibleValuesForOsTypeUM

func PossibleValuesForOsTypeUM() []string

func PossibleValuesForPatchOperationStartedBy

func PossibleValuesForPatchOperationStartedBy() []string

func PossibleValuesForPatchOperationStatus

func PossibleValuesForPatchOperationStatus() []string

func PossibleValuesForPatchServiceUsed

func PossibleValuesForPatchServiceUsed() []string

func PossibleValuesForPowerOnBootOption

func PossibleValuesForPowerOnBootOption() []string

func PossibleValuesForSCSIControllerType

func PossibleValuesForSCSIControllerType() []string

func PossibleValuesForStatusTypes

func PossibleValuesForStatusTypes() []string

func PossibleValuesForVMGuestPatchClassificationLinux

func PossibleValuesForVMGuestPatchClassificationLinux() []string

func PossibleValuesForVMGuestPatchClassificationWindows

func PossibleValuesForVMGuestPatchClassificationWindows() []string

func PossibleValuesForVMGuestPatchRebootSetting

func PossibleValuesForVMGuestPatchRebootSetting() []string

func PossibleValuesForVMGuestPatchRebootStatus

func PossibleValuesForVMGuestPatchRebootStatus() []string

func PossibleValuesForVirtualSCSISharing

func PossibleValuesForVirtualSCSISharing() []string

func ValidateVirtualMachineID

func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)

ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID

Types

type AssessPatchesOperationResponse

type AssessPatchesOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualMachineAssessPatchesResult
}

type AvailablePatchCountByClassification

type AvailablePatchCountByClassification struct {
	Critical     *int64 `json:"critical,omitempty"`
	Definition   *int64 `json:"definition,omitempty"`
	FeaturePack  *int64 `json:"featurePack,omitempty"`
	Other        *int64 `json:"other,omitempty"`
	Security     *int64 `json:"security,omitempty"`
	ServicePack  *int64 `json:"servicePack,omitempty"`
	Tools        *int64 `json:"tools,omitempty"`
	UpdateRollup *int64 `json:"updateRollup,omitempty"`
	Updates      *int64 `json:"updates,omitempty"`
}

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualMachine
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	Force  *bool
	Retain *bool
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

func (o DeleteOperationOptions) ToHeaders() *client.Headers

func (DeleteOperationOptions) ToOData

func (o DeleteOperationOptions) ToOData() *odata.Query

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DiskMode

type DiskMode string
const (
	DiskModeIndependentNonpersistent DiskMode = "independent_nonpersistent"
	DiskModeIndependentPersistent    DiskMode = "independent_persistent"
	DiskModePersistent               DiskMode = "persistent"
)

func (*DiskMode) UnmarshalJSON

func (s *DiskMode) UnmarshalJSON(bytes []byte) error

type DiskType

type DiskType string
const (
	DiskTypeFlat        DiskType = "flat"
	DiskTypePmem        DiskType = "pmem"
	DiskTypeRawphysical DiskType = "rawphysical"
	DiskTypeRawvirtual  DiskType = "rawvirtual"
	DiskTypeSesparse    DiskType = "sesparse"
	DiskTypeSparse      DiskType = "sparse"
	DiskTypeUnknown     DiskType = "unknown"
)

func (*DiskType) UnmarshalJSON

func (s *DiskType) UnmarshalJSON(bytes []byte) error

type ErrorDetail

type ErrorDetail struct {
	Code    string         `json:"code"`
	Details *[]ErrorDetail `json:"details,omitempty"`
	Message string         `json:"message"`
	Target  *string        `json:"target,omitempty"`
}

type ExtendedLocation

type ExtendedLocation struct {
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

type FirmwareType

type FirmwareType string
const (
	FirmwareTypeBios FirmwareType = "bios"
	FirmwareTypeEfi  FirmwareType = "efi"
)

func (*FirmwareType) UnmarshalJSON

func (s *FirmwareType) UnmarshalJSON(bytes []byte) error

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualMachine
}

type GuestAgentProfile

type GuestAgentProfile struct {
	AgentVersion     *string        `json:"agentVersion,omitempty"`
	ErrorDetails     *[]ErrorDetail `json:"errorDetails,omitempty"`
	LastStatusChange *string        `json:"lastStatusChange,omitempty"`
	Status           *StatusTypes   `json:"status,omitempty"`
	VMUuid           *string        `json:"vmUuid,omitempty"`
}

func (*GuestAgentProfile) GetLastStatusChangeAsTime

func (o *GuestAgentProfile) GetLastStatusChangeAsTime() (*time.Time, error)

func (*GuestAgentProfile) SetLastStatusChangeAsTime

func (o *GuestAgentProfile) SetLastStatusChangeAsTime(input time.Time)

type HardwareProfile

type HardwareProfile struct {
	CpuHotAddEnabled    *bool  `json:"cpuHotAddEnabled,omitempty"`
	CpuHotRemoveEnabled *bool  `json:"cpuHotRemoveEnabled,omitempty"`
	MemoryHotAddEnabled *bool  `json:"memoryHotAddEnabled,omitempty"`
	MemorySizeMB        *int64 `json:"memorySizeMB,omitempty"`
	NumCPUs             *int64 `json:"numCPUs,omitempty"`
	NumCoresPerSocket   *int64 `json:"numCoresPerSocket,omitempty"`
}

type IPAddressAllocationMethod

type IPAddressAllocationMethod string
const (
	IPAddressAllocationMethodDynamic   IPAddressAllocationMethod = "dynamic"
	IPAddressAllocationMethodLinklayer IPAddressAllocationMethod = "linklayer"
	IPAddressAllocationMethodOther     IPAddressAllocationMethod = "other"
	IPAddressAllocationMethodRandom    IPAddressAllocationMethod = "random"
	IPAddressAllocationMethodStatic    IPAddressAllocationMethod = "static"
	IPAddressAllocationMethodUnset     IPAddressAllocationMethod = "unset"
)

func (*IPAddressAllocationMethod) UnmarshalJSON

func (s *IPAddressAllocationMethod) UnmarshalJSON(bytes []byte) error

type InstallPatchesOperationResponse

type InstallPatchesOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualMachineInstallPatchesResult
}

type LinuxParameters

type LinuxParameters struct {
	ClassificationsToInclude  *[]VMGuestPatchClassificationLinux `json:"classificationsToInclude,omitempty"`
	PackageNameMasksToExclude *[]string                          `json:"packageNameMasksToExclude,omitempty"`
	PackageNameMasksToInclude *[]string                          `json:"packageNameMasksToInclude,omitempty"`
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VirtualMachine
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachine
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []VirtualMachine
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]VirtualMachine
}

type NICType

type NICType string
const (
	NICTypeEOneThousand  NICType = "e1000"
	NICTypeEOneThousande NICType = "e1000e"
	NICTypePcnetThreeTwo NICType = "pcnet32"
	NICTypeVMxnet        NICType = "vmxnet"
	NICTypeVMxnetThree   NICType = "vmxnet3"
	NICTypeVMxnetTwo     NICType = "vmxnet2"
)

func (*NICType) UnmarshalJSON

func (s *NICType) UnmarshalJSON(bytes []byte) error

type NetworkInterface

type NetworkInterface struct {
	DeviceKey      *int64             `json:"deviceKey,omitempty"`
	IPAddresses    *[]string          `json:"ipAddresses,omitempty"`
	IPSettings     *NicIPSettings     `json:"ipSettings,omitempty"`
	Label          *string            `json:"label,omitempty"`
	MacAddress     *string            `json:"macAddress,omitempty"`
	Name           *string            `json:"name,omitempty"`
	NetworkId      *string            `json:"networkId,omitempty"`
	NetworkMoName  *string            `json:"networkMoName,omitempty"`
	NetworkMoRefId *string            `json:"networkMoRefId,omitempty"`
	NicType        *NICType           `json:"nicType,omitempty"`
	PowerOnBoot    *PowerOnBootOption `json:"powerOnBoot,omitempty"`
}

type NetworkInterfaceUpdate

type NetworkInterfaceUpdate struct {
	DeviceKey   *int64             `json:"deviceKey,omitempty"`
	Name        *string            `json:"name,omitempty"`
	NetworkId   *string            `json:"networkId,omitempty"`
	NicType     *NICType           `json:"nicType,omitempty"`
	PowerOnBoot *PowerOnBootOption `json:"powerOnBoot,omitempty"`
}

type NetworkProfile

type NetworkProfile struct {
	NetworkInterfaces *[]NetworkInterface `json:"networkInterfaces,omitempty"`
}

type NetworkProfileUpdate

type NetworkProfileUpdate struct {
	NetworkInterfaces *[]NetworkInterfaceUpdate `json:"networkInterfaces,omitempty"`
}

type NicIPAddressSettings

type NicIPAddressSettings struct {
	AllocationMethod *string `json:"allocationMethod,omitempty"`
	IPAddress        *string `json:"ipAddress,omitempty"`
	SubnetMask       *string `json:"subnetMask,omitempty"`
}

type NicIPSettings

type NicIPSettings struct {
	AllocationMethod    *IPAddressAllocationMethod `json:"allocationMethod,omitempty"`
	DnsServers          *[]string                  `json:"dnsServers,omitempty"`
	Gateway             *[]string                  `json:"gateway,omitempty"`
	IPAddress           *string                    `json:"ipAddress,omitempty"`
	IPAddressInfo       *[]NicIPAddressSettings    `json:"ipAddressInfo,omitempty"`
	PrimaryWinsServer   *string                    `json:"primaryWinsServer,omitempty"`
	SecondaryWinsServer *string                    `json:"secondaryWinsServer,omitempty"`
	SubnetMask          *string                    `json:"subnetMask,omitempty"`
}

type OsProfile

type OsProfile struct {
	AdminPassword            *string                        `json:"adminPassword,omitempty"`
	AdminUsername            *string                        `json:"adminUsername,omitempty"`
	AllowExtensionOperations *bool                          `json:"allowExtensionOperations,omitempty"`
	ComputerName             *string                        `json:"computerName,omitempty"`
	GuestId                  *string                        `json:"guestId,omitempty"`
	LinuxConfiguration       *OsProfileLinuxConfiguration   `json:"linuxConfiguration,omitempty"`
	OsName                   *string                        `json:"osName,omitempty"`
	OsType                   *OsType                        `json:"osType,omitempty"`
	ToolsRunningStatus       *string                        `json:"toolsRunningStatus,omitempty"`
	ToolsVersion             *string                        `json:"toolsVersion,omitempty"`
	ToolsVersionStatus       *string                        `json:"toolsVersionStatus,omitempty"`
	WindowsConfiguration     *OsProfileWindowsConfiguration `json:"windowsConfiguration,omitempty"`
}

type OsProfileLinuxConfiguration

type OsProfileLinuxConfiguration struct {
	PatchSettings *PatchSettings `json:"patchSettings,omitempty"`
}

type OsProfileUpdate

type OsProfileUpdate struct {
	LinuxConfiguration   *OsProfileUpdateLinuxConfiguration   `json:"linuxConfiguration,omitempty"`
	WindowsConfiguration *OsProfileUpdateWindowsConfiguration `json:"windowsConfiguration,omitempty"`
}

type OsProfileUpdateLinuxConfiguration

type OsProfileUpdateLinuxConfiguration struct {
	PatchSettings *PatchSettings `json:"patchSettings,omitempty"`
}

type OsProfileUpdateWindowsConfiguration

type OsProfileUpdateWindowsConfiguration struct {
	PatchSettings *PatchSettings `json:"patchSettings,omitempty"`
}

type OsProfileWindowsConfiguration

type OsProfileWindowsConfiguration struct {
	PatchSettings *PatchSettings `json:"patchSettings,omitempty"`
}

type OsType

type OsType string
const (
	OsTypeLinux   OsType = "Linux"
	OsTypeOther   OsType = "Other"
	OsTypeWindows OsType = "Windows"
)

func (*OsType) UnmarshalJSON

func (s *OsType) UnmarshalJSON(bytes []byte) error

type OsTypeUM

type OsTypeUM string
const (
	OsTypeUMLinux   OsTypeUM = "Linux"
	OsTypeUMWindows OsTypeUM = "Windows"
)

func (*OsTypeUM) UnmarshalJSON

func (s *OsTypeUM) UnmarshalJSON(bytes []byte) error

type PatchOperationStartedBy

type PatchOperationStartedBy string
const (
	PatchOperationStartedByPlatform PatchOperationStartedBy = "Platform"
	PatchOperationStartedByUser     PatchOperationStartedBy = "User"
)

func (*PatchOperationStartedBy) UnmarshalJSON

func (s *PatchOperationStartedBy) UnmarshalJSON(bytes []byte) error

type PatchOperationStatus

type PatchOperationStatus string
const (
	PatchOperationStatusCompletedWithWarnings PatchOperationStatus = "CompletedWithWarnings"
	PatchOperationStatusFailed                PatchOperationStatus = "Failed"
	PatchOperationStatusInProgress            PatchOperationStatus = "InProgress"
	PatchOperationStatusSucceeded             PatchOperationStatus = "Succeeded"
	PatchOperationStatusUnknown               PatchOperationStatus = "Unknown"
)

func (*PatchOperationStatus) UnmarshalJSON

func (s *PatchOperationStatus) UnmarshalJSON(bytes []byte) error

type PatchServiceUsed

type PatchServiceUsed string
const (
	PatchServiceUsedAPT     PatchServiceUsed = "APT"
	PatchServiceUsedUnknown PatchServiceUsed = "Unknown"
	PatchServiceUsedWU      PatchServiceUsed = "WU"
	PatchServiceUsedWUWSUS  PatchServiceUsed = "WU_WSUS"
	PatchServiceUsedYUM     PatchServiceUsed = "YUM"
	PatchServiceUsedZypper  PatchServiceUsed = "Zypper"
)

func (*PatchServiceUsed) UnmarshalJSON

func (s *PatchServiceUsed) UnmarshalJSON(bytes []byte) error

type PatchSettings

type PatchSettings struct {
	AssessmentMode *string `json:"assessmentMode,omitempty"`
	PatchMode      *string `json:"patchMode,omitempty"`
}

type PlacementProfile

type PlacementProfile struct {
	ClusterId      *string `json:"clusterId,omitempty"`
	DatastoreId    *string `json:"datastoreId,omitempty"`
	HostId         *string `json:"hostId,omitempty"`
	ResourcePoolId *string `json:"resourcePoolId,omitempty"`
}

type PowerOnBootOption

type PowerOnBootOption string
const (
	PowerOnBootOptionDisabled PowerOnBootOption = "disabled"
	PowerOnBootOptionEnabled  PowerOnBootOption = "enabled"
)

func (*PowerOnBootOption) UnmarshalJSON

func (s *PowerOnBootOption) UnmarshalJSON(bytes []byte) error

type ResourceStatus

type ResourceStatus struct {
	LastUpdatedAt *string `json:"lastUpdatedAt,omitempty"`
	Message       *string `json:"message,omitempty"`
	Reason        *string `json:"reason,omitempty"`
	Severity      *string `json:"severity,omitempty"`
	Status        *string `json:"status,omitempty"`
	Type          *string `json:"type,omitempty"`
}

func (*ResourceStatus) GetLastUpdatedAtAsTime

func (o *ResourceStatus) GetLastUpdatedAtAsTime() (*time.Time, error)

func (*ResourceStatus) SetLastUpdatedAtAsTime

func (o *ResourceStatus) SetLastUpdatedAtAsTime(input time.Time)

type RestartOperationResponse

type RestartOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type SCSIControllerType

type SCSIControllerType string
const (
	SCSIControllerTypeBuslogic    SCSIControllerType = "buslogic"
	SCSIControllerTypeLsilogic    SCSIControllerType = "lsilogic"
	SCSIControllerTypeLsilogicsas SCSIControllerType = "lsilogicsas"
	SCSIControllerTypePvscsi      SCSIControllerType = "pvscsi"
)

func (*SCSIControllerType) UnmarshalJSON

func (s *SCSIControllerType) UnmarshalJSON(bytes []byte) error

type SecurityProfile

type SecurityProfile struct {
	UefiSettings *UefiSettings `json:"uefiSettings,omitempty"`
}

type StartOperationResponse

type StartOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type StatusTypes

type StatusTypes string
const (
	StatusTypesConnected    StatusTypes = "Connected"
	StatusTypesDisconnected StatusTypes = "Disconnected"
	StatusTypesError        StatusTypes = "Error"
)

func (*StatusTypes) UnmarshalJSON

func (s *StatusTypes) UnmarshalJSON(bytes []byte) error

type StopOperationResponse

type StopOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type StopVirtualMachineOptions

type StopVirtualMachineOptions struct {
	SkipShutdown *bool `json:"skipShutdown,omitempty"`
}

type StorageProfile

type StorageProfile struct {
	Disks           *[]VirtualDisk           `json:"disks,omitempty"`
	ScsiControllers *[]VirtualSCSIController `json:"scsiControllers,omitempty"`
}

type StorageProfileUpdate

type StorageProfileUpdate struct {
	Disks *[]VirtualDiskUpdate `json:"disks,omitempty"`
}

type UefiSettings

type UefiSettings struct {
	SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *VirtualMachine
}

type VMGuestPatchClassificationLinux

type VMGuestPatchClassificationLinux string
const (
	VMGuestPatchClassificationLinuxCritical VMGuestPatchClassificationLinux = "Critical"
	VMGuestPatchClassificationLinuxOther    VMGuestPatchClassificationLinux = "Other"
	VMGuestPatchClassificationLinuxSecurity VMGuestPatchClassificationLinux = "Security"
)

func (*VMGuestPatchClassificationLinux) UnmarshalJSON

func (s *VMGuestPatchClassificationLinux) UnmarshalJSON(bytes []byte) error

type VMGuestPatchClassificationWindows

type VMGuestPatchClassificationWindows string
const (
	VMGuestPatchClassificationWindowsCritical     VMGuestPatchClassificationWindows = "Critical"
	VMGuestPatchClassificationWindowsDefinition   VMGuestPatchClassificationWindows = "Definition"
	VMGuestPatchClassificationWindowsFeaturePack  VMGuestPatchClassificationWindows = "FeaturePack"
	VMGuestPatchClassificationWindowsSecurity     VMGuestPatchClassificationWindows = "Security"
	VMGuestPatchClassificationWindowsServicePack  VMGuestPatchClassificationWindows = "ServicePack"
	VMGuestPatchClassificationWindowsTools        VMGuestPatchClassificationWindows = "Tools"
	VMGuestPatchClassificationWindowsUpdateRollUp VMGuestPatchClassificationWindows = "UpdateRollUp"
	VMGuestPatchClassificationWindowsUpdates      VMGuestPatchClassificationWindows = "Updates"
)

func (*VMGuestPatchClassificationWindows) UnmarshalJSON

func (s *VMGuestPatchClassificationWindows) UnmarshalJSON(bytes []byte) error

type VMGuestPatchRebootSetting

type VMGuestPatchRebootSetting string
const (
	VMGuestPatchRebootSettingAlways     VMGuestPatchRebootSetting = "Always"
	VMGuestPatchRebootSettingIfRequired VMGuestPatchRebootSetting = "IfRequired"
	VMGuestPatchRebootSettingNever      VMGuestPatchRebootSetting = "Never"
)

func (*VMGuestPatchRebootSetting) UnmarshalJSON

func (s *VMGuestPatchRebootSetting) UnmarshalJSON(bytes []byte) error

type VMGuestPatchRebootStatus

type VMGuestPatchRebootStatus string
const (
	VMGuestPatchRebootStatusCompleted VMGuestPatchRebootStatus = "Completed"
	VMGuestPatchRebootStatusFailed    VMGuestPatchRebootStatus = "Failed"
	VMGuestPatchRebootStatusNotNeeded VMGuestPatchRebootStatus = "NotNeeded"
	VMGuestPatchRebootStatusRequired  VMGuestPatchRebootStatus = "Required"
	VMGuestPatchRebootStatusStarted   VMGuestPatchRebootStatus = "Started"
	VMGuestPatchRebootStatusUnknown   VMGuestPatchRebootStatus = "Unknown"
)

func (*VMGuestPatchRebootStatus) UnmarshalJSON

func (s *VMGuestPatchRebootStatus) UnmarshalJSON(bytes []byte) error

type VirtualDisk

type VirtualDisk struct {
	ControllerKey *int64    `json:"controllerKey,omitempty"`
	DeviceKey     *int64    `json:"deviceKey,omitempty"`
	DeviceName    *string   `json:"deviceName,omitempty"`
	DiskMode      *DiskMode `json:"diskMode,omitempty"`
	DiskObjectId  *string   `json:"diskObjectId,omitempty"`
	DiskSizeGB    *int64    `json:"diskSizeGB,omitempty"`
	DiskType      *DiskType `json:"diskType,omitempty"`
	Label         *string   `json:"label,omitempty"`
	Name          *string   `json:"name,omitempty"`
	UnitNumber    *int64    `json:"unitNumber,omitempty"`
}

type VirtualDiskUpdate

type VirtualDiskUpdate struct {
	ControllerKey *int64    `json:"controllerKey,omitempty"`
	DeviceKey     *int64    `json:"deviceKey,omitempty"`
	DeviceName    *string   `json:"deviceName,omitempty"`
	DiskMode      *DiskMode `json:"diskMode,omitempty"`
	DiskSizeGB    *int64    `json:"diskSizeGB,omitempty"`
	DiskType      *DiskType `json:"diskType,omitempty"`
	Name          *string   `json:"name,omitempty"`
	UnitNumber    *int64    `json:"unitNumber,omitempty"`
}

type VirtualMachine

type VirtualMachine struct {
	ExtendedLocation *ExtendedLocation        `json:"extendedLocation,omitempty"`
	Id               *string                  `json:"id,omitempty"`
	Identity         *identity.SystemAssigned `json:"identity,omitempty"`
	Kind             *string                  `json:"kind,omitempty"`
	Location         string                   `json:"location"`
	Name             *string                  `json:"name,omitempty"`
	Properties       VirtualMachineProperties `json:"properties"`
	SystemData       *systemdata.SystemData   `json:"systemData,omitempty"`
	Tags             *map[string]string       `json:"tags,omitempty"`
	Type             *string                  `json:"type,omitempty"`
}

type VirtualMachineAssessPatchesResult

type VirtualMachineAssessPatchesResult struct {
	AssessmentActivityId                *string                              `json:"assessmentActivityId,omitempty"`
	AvailablePatchCountByClassification *AvailablePatchCountByClassification `json:"availablePatchCountByClassification,omitempty"`
	ErrorDetails                        *ErrorDetail                         `json:"errorDetails,omitempty"`
	LastModifiedDateTime                *string                              `json:"lastModifiedDateTime,omitempty"`
	OsType                              *OsTypeUM                            `json:"osType,omitempty"`
	PatchServiceUsed                    *PatchServiceUsed                    `json:"patchServiceUsed,omitempty"`
	RebootPending                       *bool                                `json:"rebootPending,omitempty"`
	StartDateTime                       *string                              `json:"startDateTime,omitempty"`
	StartedBy                           *PatchOperationStartedBy             `json:"startedBy,omitempty"`
	Status                              *PatchOperationStatus                `json:"status,omitempty"`
}

func (*VirtualMachineAssessPatchesResult) GetLastModifiedDateTimeAsTime

func (o *VirtualMachineAssessPatchesResult) GetLastModifiedDateTimeAsTime() (*time.Time, error)

func (*VirtualMachineAssessPatchesResult) GetStartDateTimeAsTime

func (o *VirtualMachineAssessPatchesResult) GetStartDateTimeAsTime() (*time.Time, error)

func (*VirtualMachineAssessPatchesResult) SetLastModifiedDateTimeAsTime

func (o *VirtualMachineAssessPatchesResult) SetLastModifiedDateTimeAsTime(input time.Time)

func (*VirtualMachineAssessPatchesResult) SetStartDateTimeAsTime

func (o *VirtualMachineAssessPatchesResult) SetStartDateTimeAsTime(input time.Time)

type VirtualMachineId

type VirtualMachineId struct {
	SubscriptionId     string
	ResourceGroupName  string
	VirtualMachineName string
}

VirtualMachineId is a struct representing the Resource ID for a Virtual Machine

func NewVirtualMachineID

func NewVirtualMachineID(subscriptionId string, resourceGroupName string, virtualMachineName string) VirtualMachineId

NewVirtualMachineID returns a new VirtualMachineId struct

func ParseVirtualMachineID

func ParseVirtualMachineID(input string) (*VirtualMachineId, error)

ParseVirtualMachineID parses 'input' into a VirtualMachineId

func ParseVirtualMachineIDInsensitively

func ParseVirtualMachineIDInsensitively(input string) (*VirtualMachineId, error)

ParseVirtualMachineIDInsensitively parses 'input' case-insensitively into a VirtualMachineId note: this method should only be used for API response data and not user input

func (*VirtualMachineId) FromParseResult

func (id *VirtualMachineId) FromParseResult(input resourceids.ParseResult) error

func (VirtualMachineId) ID

func (id VirtualMachineId) ID() string

ID returns the formatted Virtual Machine ID

func (VirtualMachineId) Segments

func (id VirtualMachineId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Virtual Machine ID

func (VirtualMachineId) String

func (id VirtualMachineId) String() string

String returns a human-readable description of this Virtual Machine ID

type VirtualMachineInstallPatchesParameters

type VirtualMachineInstallPatchesParameters struct {
	LinuxParameters   *LinuxParameters          `json:"linuxParameters,omitempty"`
	MaximumDuration   string                    `json:"maximumDuration"`
	RebootSetting     VMGuestPatchRebootSetting `json:"rebootSetting"`
	WindowsParameters *WindowsParameters        `json:"windowsParameters,omitempty"`
}

type VirtualMachineInstallPatchesResult

type VirtualMachineInstallPatchesResult struct {
	ErrorDetails              *ErrorDetail              `json:"errorDetails,omitempty"`
	ExcludedPatchCount        *int64                    `json:"excludedPatchCount,omitempty"`
	FailedPatchCount          *int64                    `json:"failedPatchCount,omitempty"`
	InstallationActivityId    *string                   `json:"installationActivityId,omitempty"`
	InstalledPatchCount       *int64                    `json:"installedPatchCount,omitempty"`
	LastModifiedDateTime      *string                   `json:"lastModifiedDateTime,omitempty"`
	MaintenanceWindowExceeded *bool                     `json:"maintenanceWindowExceeded,omitempty"`
	NotSelectedPatchCount     *int64                    `json:"notSelectedPatchCount,omitempty"`
	OsType                    *OsTypeUM                 `json:"osType,omitempty"`
	PatchServiceUsed          *PatchServiceUsed         `json:"patchServiceUsed,omitempty"`
	PendingPatchCount         *int64                    `json:"pendingPatchCount,omitempty"`
	RebootStatus              *VMGuestPatchRebootStatus `json:"rebootStatus,omitempty"`
	StartDateTime             *string                   `json:"startDateTime,omitempty"`
	StartedBy                 *PatchOperationStartedBy  `json:"startedBy,omitempty"`
	Status                    *PatchOperationStatus     `json:"status,omitempty"`
}

func (*VirtualMachineInstallPatchesResult) GetLastModifiedDateTimeAsTime

func (o *VirtualMachineInstallPatchesResult) GetLastModifiedDateTimeAsTime() (*time.Time, error)

func (*VirtualMachineInstallPatchesResult) GetStartDateTimeAsTime

func (o *VirtualMachineInstallPatchesResult) GetStartDateTimeAsTime() (*time.Time, error)

func (*VirtualMachineInstallPatchesResult) SetLastModifiedDateTimeAsTime

func (o *VirtualMachineInstallPatchesResult) SetLastModifiedDateTimeAsTime(input time.Time)

func (*VirtualMachineInstallPatchesResult) SetStartDateTimeAsTime

func (o *VirtualMachineInstallPatchesResult) SetStartDateTimeAsTime(input time.Time)

type VirtualMachineOperationPredicate

type VirtualMachineOperationPredicate struct {
	Id       *string
	Kind     *string
	Location *string
	Name     *string
	Type     *string
}

func (VirtualMachineOperationPredicate) Matches

type VirtualMachineProperties

type VirtualMachineProperties struct {
	CustomResourceName *string            `json:"customResourceName,omitempty"`
	FirmwareType       *FirmwareType      `json:"firmwareType,omitempty"`
	FolderPath         *string            `json:"folderPath,omitempty"`
	GuestAgentProfile  *GuestAgentProfile `json:"guestAgentProfile,omitempty"`
	HardwareProfile    *HardwareProfile   `json:"hardwareProfile,omitempty"`
	InstanceUuid       *string            `json:"instanceUuid,omitempty"`
	InventoryItemId    *string            `json:"inventoryItemId,omitempty"`
	MoName             *string            `json:"moName,omitempty"`
	MoRefId            *string            `json:"moRefId,omitempty"`
	NetworkProfile     *NetworkProfile    `json:"networkProfile,omitempty"`
	OsProfile          *OsProfile         `json:"osProfile,omitempty"`
	PlacementProfile   *PlacementProfile  `json:"placementProfile,omitempty"`
	PowerState         *string            `json:"powerState,omitempty"`
	ProvisioningState  *string            `json:"provisioningState,omitempty"`
	ResourcePoolId     *string            `json:"resourcePoolId,omitempty"`
	SecurityProfile    *SecurityProfile   `json:"securityProfile,omitempty"`
	SmbiosUuid         *string            `json:"smbiosUuid,omitempty"`
	Statuses           *[]ResourceStatus  `json:"statuses,omitempty"`
	StorageProfile     *StorageProfile    `json:"storageProfile,omitempty"`
	TemplateId         *string            `json:"templateId,omitempty"`
	Uuid               *string            `json:"uuid,omitempty"`
	VCenterId          *string            `json:"vCenterId,omitempty"`
	VMId               *string            `json:"vmId,omitempty"`
}

type VirtualMachineUpdate

type VirtualMachineUpdate struct {
	Identity   *identity.SystemAssigned        `json:"identity,omitempty"`
	Properties *VirtualMachineUpdateProperties `json:"properties,omitempty"`
	Tags       *map[string]string              `json:"tags,omitempty"`
}

type VirtualMachineUpdateProperties

type VirtualMachineUpdateProperties struct {
	HardwareProfile *HardwareProfile      `json:"hardwareProfile,omitempty"`
	NetworkProfile  *NetworkProfileUpdate `json:"networkProfile,omitempty"`
	OsProfile       *OsProfileUpdate      `json:"osProfile,omitempty"`
	StorageProfile  *StorageProfileUpdate `json:"storageProfile,omitempty"`
}

type VirtualMachinesClient

type VirtualMachinesClient struct {
	Client *resourcemanager.Client
}

func NewVirtualMachinesClientWithBaseURI

func NewVirtualMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachinesClient, error)

func (VirtualMachinesClient) AssessPatches

AssessPatches ...

func (VirtualMachinesClient) AssessPatchesThenPoll

func (c VirtualMachinesClient) AssessPatchesThenPoll(ctx context.Context, id VirtualMachineId) error

AssessPatchesThenPoll performs AssessPatches then polls until it's completed

func (VirtualMachinesClient) Create

Create ...

func (VirtualMachinesClient) CreateThenPoll

func (c VirtualMachinesClient) CreateThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachine) error

CreateThenPoll performs Create then polls until it's completed

func (VirtualMachinesClient) Delete

Delete ...

func (VirtualMachinesClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (VirtualMachinesClient) Get

Get ...

func (VirtualMachinesClient) InstallPatches

InstallPatches ...

func (VirtualMachinesClient) InstallPatchesThenPoll

InstallPatchesThenPoll performs InstallPatches then polls until it's completed

func (VirtualMachinesClient) List

List ...

func (VirtualMachinesClient) ListByResourceGroup

ListByResourceGroup ...

func (VirtualMachinesClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (VirtualMachinesClient) ListByResourceGroupCompleteMatchingPredicate

func (c VirtualMachinesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualMachineOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (VirtualMachinesClient) ListComplete

ListComplete retrieves all the results into a single object

func (VirtualMachinesClient) ListCompleteMatchingPredicate

func (c VirtualMachinesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualMachineOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (VirtualMachinesClient) Restart

Restart ...

func (VirtualMachinesClient) RestartThenPoll

func (c VirtualMachinesClient) RestartThenPoll(ctx context.Context, id VirtualMachineId) error

RestartThenPoll performs Restart then polls until it's completed

func (VirtualMachinesClient) Start

Start ...

func (VirtualMachinesClient) StartThenPoll

func (c VirtualMachinesClient) StartThenPoll(ctx context.Context, id VirtualMachineId) error

StartThenPoll performs Start then polls until it's completed

func (VirtualMachinesClient) Stop

Stop ...

func (VirtualMachinesClient) StopThenPoll

StopThenPoll performs Stop then polls until it's completed

func (VirtualMachinesClient) Update

Update ...

func (VirtualMachinesClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type VirtualSCSIController

type VirtualSCSIController struct {
	BusNumber          *int64              `json:"busNumber,omitempty"`
	ControllerKey      *int64              `json:"controllerKey,omitempty"`
	ScsiCtlrUnitNumber *int64              `json:"scsiCtlrUnitNumber,omitempty"`
	Sharing            *VirtualSCSISharing `json:"sharing,omitempty"`
	Type               *SCSIControllerType `json:"type,omitempty"`
}

type VirtualSCSISharing

type VirtualSCSISharing string
const (
	VirtualSCSISharingNoSharing       VirtualSCSISharing = "noSharing"
	VirtualSCSISharingPhysicalSharing VirtualSCSISharing = "physicalSharing"
	VirtualSCSISharingVirtualSharing  VirtualSCSISharing = "virtualSharing"
)

func (*VirtualSCSISharing) UnmarshalJSON

func (s *VirtualSCSISharing) UnmarshalJSON(bytes []byte) error

type WindowsParameters

type WindowsParameters struct {
	ClassificationsToInclude  *[]VMGuestPatchClassificationWindows `json:"classificationsToInclude,omitempty"`
	ExcludeKbsRequiringReboot *bool                                `json:"excludeKbsRequiringReboot,omitempty"`
	KbNumbersToExclude        *[]string                            `json:"kbNumbersToExclude,omitempty"`
	KbNumbersToInclude        *[]string                            `json:"kbNumbersToInclude,omitempty"`
	MaxPatchPublishDate       *string                              `json:"maxPatchPublishDate,omitempty"`
}

func (*WindowsParameters) GetMaxPatchPublishDateAsTime

func (o *WindowsParameters) GetMaxPatchPublishDateAsTime() (*time.Time, error)

func (*WindowsParameters) SetMaxPatchPublishDateAsTime

func (o *WindowsParameters) SetMaxPatchPublishDateAsTime(input time.Time)

Jump to

Keyboard shortcuts

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