Documentation ¶
Index ¶
- func PossibleValuesForDiskMode() []string
- func PossibleValuesForDiskType() []string
- func PossibleValuesForFirmwareType() []string
- func PossibleValuesForIPAddressAllocationMethod() []string
- func PossibleValuesForNICType() []string
- func PossibleValuesForOsType() []string
- func PossibleValuesForOsTypeUM() []string
- func PossibleValuesForPatchOperationStartedBy() []string
- func PossibleValuesForPatchOperationStatus() []string
- func PossibleValuesForPatchServiceUsed() []string
- func PossibleValuesForPowerOnBootOption() []string
- func PossibleValuesForSCSIControllerType() []string
- func PossibleValuesForStatusTypes() []string
- func PossibleValuesForVMGuestPatchClassificationLinux() []string
- func PossibleValuesForVMGuestPatchClassificationWindows() []string
- func PossibleValuesForVMGuestPatchRebootSetting() []string
- func PossibleValuesForVMGuestPatchRebootStatus() []string
- func PossibleValuesForVirtualSCSISharing() []string
- func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)
- type AssessPatchesOperationResponse
- type AvailablePatchCountByClassification
- type CreateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type DiskMode
- type DiskType
- type ErrorDetail
- type ExtendedLocation
- type FirmwareType
- type GetOperationResponse
- type GuestAgentProfile
- type HardwareProfile
- type IPAddressAllocationMethod
- type InstallPatchesOperationResponse
- type LinuxParameters
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type NICType
- type NetworkInterface
- type NetworkInterfaceUpdate
- type NetworkProfile
- type NetworkProfileUpdate
- type NicIPAddressSettings
- type NicIPSettings
- type OsProfile
- type OsProfileLinuxConfiguration
- type OsProfileUpdate
- type OsProfileUpdateLinuxConfiguration
- type OsProfileUpdateWindowsConfiguration
- type OsProfileWindowsConfiguration
- type OsType
- type OsTypeUM
- type PatchOperationStartedBy
- type PatchOperationStatus
- type PatchServiceUsed
- type PatchSettings
- type PlacementProfile
- type PowerOnBootOption
- type ResourceStatus
- type RestartOperationResponse
- type SCSIControllerType
- type SecurityProfile
- type StartOperationResponse
- type StatusTypes
- type StopOperationResponse
- type StopVirtualMachineOptions
- type StorageProfile
- type StorageProfileUpdate
- type UefiSettings
- type UpdateOperationResponse
- type VMGuestPatchClassificationLinux
- type VMGuestPatchClassificationWindows
- type VMGuestPatchRebootSetting
- type VMGuestPatchRebootStatus
- type VirtualDisk
- type VirtualDiskUpdate
- type VirtualMachine
- type VirtualMachineAssessPatchesResult
- func (o *VirtualMachineAssessPatchesResult) GetLastModifiedDateTimeAsTime() (*time.Time, error)
- func (o *VirtualMachineAssessPatchesResult) GetStartDateTimeAsTime() (*time.Time, error)
- func (o *VirtualMachineAssessPatchesResult) SetLastModifiedDateTimeAsTime(input time.Time)
- func (o *VirtualMachineAssessPatchesResult) SetStartDateTimeAsTime(input time.Time)
- type VirtualMachineId
- type VirtualMachineInstallPatchesParameters
- type VirtualMachineInstallPatchesResult
- func (o *VirtualMachineInstallPatchesResult) GetLastModifiedDateTimeAsTime() (*time.Time, error)
- func (o *VirtualMachineInstallPatchesResult) GetStartDateTimeAsTime() (*time.Time, error)
- func (o *VirtualMachineInstallPatchesResult) SetLastModifiedDateTimeAsTime(input time.Time)
- func (o *VirtualMachineInstallPatchesResult) SetStartDateTimeAsTime(input time.Time)
- type VirtualMachineOperationPredicate
- type VirtualMachineProperties
- type VirtualMachineUpdate
- type VirtualMachineUpdateProperties
- type VirtualMachinesClient
- func (c VirtualMachinesClient) AssessPatches(ctx context.Context, id VirtualMachineId) (result AssessPatchesOperationResponse, err error)
- func (c VirtualMachinesClient) AssessPatchesThenPoll(ctx context.Context, id VirtualMachineId) error
- func (c VirtualMachinesClient) Create(ctx context.Context, id VirtualMachineId, input VirtualMachine) (result CreateOperationResponse, err error)
- func (c VirtualMachinesClient) CreateThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachine) error
- func (c VirtualMachinesClient) Delete(ctx context.Context, id VirtualMachineId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c VirtualMachinesClient) DeleteThenPoll(ctx context.Context, id VirtualMachineId, options DeleteOperationOptions) error
- func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId) (result GetOperationResponse, err error)
- func (c VirtualMachinesClient) InstallPatches(ctx context.Context, id VirtualMachineId, ...) (result InstallPatchesOperationResponse, err error)
- func (c VirtualMachinesClient) InstallPatchesThenPoll(ctx context.Context, id VirtualMachineId, ...) error
- func (c VirtualMachinesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c VirtualMachinesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c VirtualMachinesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c VirtualMachinesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c VirtualMachinesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c VirtualMachinesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c VirtualMachinesClient) Restart(ctx context.Context, id VirtualMachineId) (result RestartOperationResponse, err error)
- func (c VirtualMachinesClient) RestartThenPoll(ctx context.Context, id VirtualMachineId) error
- func (c VirtualMachinesClient) Start(ctx context.Context, id VirtualMachineId) (result StartOperationResponse, err error)
- func (c VirtualMachinesClient) StartThenPoll(ctx context.Context, id VirtualMachineId) error
- func (c VirtualMachinesClient) Stop(ctx context.Context, id VirtualMachineId, input StopVirtualMachineOptions) (result StopOperationResponse, err error)
- func (c VirtualMachinesClient) StopThenPoll(ctx context.Context, id VirtualMachineId, input StopVirtualMachineOptions) error
- func (c VirtualMachinesClient) Update(ctx context.Context, id VirtualMachineId, input VirtualMachineUpdate) (result UpdateOperationResponse, err error)
- func (c VirtualMachinesClient) UpdateThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineUpdate) error
- type VirtualSCSIController
- type VirtualSCSISharing
- type WindowsParameters
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 ¶
ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID
Types ¶
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 DeleteOperationOptions ¶
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 ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
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 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 LinuxParameters ¶
type LinuxParameters struct { ClassificationsToInclude *[]VMGuestPatchClassificationLinux `json:"classificationsToInclude,omitempty"` PackageNameMasksToExclude *[]string `json:"packageNameMasksToExclude,omitempty"` PackageNameMasksToInclude *[]string `json:"packageNameMasksToInclude,omitempty"` }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []VirtualMachine
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualMachine }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []VirtualMachine
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualMachine }
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 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 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 PlacementProfile ¶
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 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 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 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 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) 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 ¶
func (p VirtualMachineOperationPredicate) Matches(input VirtualMachine) bool
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(api environments.Api) (*VirtualMachinesClient, error)
func (VirtualMachinesClient) AssessPatches ¶
func (c VirtualMachinesClient) AssessPatches(ctx context.Context, id VirtualMachineId) (result AssessPatchesOperationResponse, err error)
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 ¶
func (c VirtualMachinesClient) Create(ctx context.Context, id VirtualMachineId, input VirtualMachine) (result CreateOperationResponse, err error)
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 ¶
func (c VirtualMachinesClient) Delete(ctx context.Context, id VirtualMachineId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (VirtualMachinesClient) DeleteThenPoll ¶
func (c VirtualMachinesClient) DeleteThenPoll(ctx context.Context, id VirtualMachineId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (VirtualMachinesClient) Get ¶
func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId) (result GetOperationResponse, err error)
Get ...
func (VirtualMachinesClient) InstallPatches ¶
func (c VirtualMachinesClient) InstallPatches(ctx context.Context, id VirtualMachineId, input VirtualMachineInstallPatchesParameters) (result InstallPatchesOperationResponse, err error)
InstallPatches ...
func (VirtualMachinesClient) InstallPatchesThenPoll ¶
func (c VirtualMachinesClient) InstallPatchesThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineInstallPatchesParameters) error
InstallPatchesThenPoll performs InstallPatches then polls until it's completed
func (VirtualMachinesClient) List ¶
func (c VirtualMachinesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (VirtualMachinesClient) ListByResourceGroup ¶
func (c VirtualMachinesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (VirtualMachinesClient) ListByResourceGroupComplete ¶
func (c VirtualMachinesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
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 ¶
func (c VirtualMachinesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
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 ¶
func (c VirtualMachinesClient) Restart(ctx context.Context, id VirtualMachineId) (result RestartOperationResponse, err error)
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 ¶
func (c VirtualMachinesClient) Start(ctx context.Context, id VirtualMachineId) (result StartOperationResponse, err error)
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 ¶
func (c VirtualMachinesClient) Stop(ctx context.Context, id VirtualMachineId, input StopVirtualMachineOptions) (result StopOperationResponse, err error)
Stop ...
func (VirtualMachinesClient) StopThenPoll ¶
func (c VirtualMachinesClient) StopThenPoll(ctx context.Context, id VirtualMachineId, input StopVirtualMachineOptions) error
StopThenPoll performs Stop then polls until it's completed
func (VirtualMachinesClient) Update ¶
func (c VirtualMachinesClient) Update(ctx context.Context, id VirtualMachineId, input VirtualMachineUpdate) (result UpdateOperationResponse, err error)
Update ...
func (VirtualMachinesClient) UpdateThenPoll ¶
func (c VirtualMachinesClient) UpdateThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineUpdate) error
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)
Source Files ¶
- client.go
- constants.go
- id_virtualmachine.go
- method_assesspatches.go
- method_create.go
- method_delete.go
- method_get.go
- method_installpatches.go
- method_list.go
- method_listbyresourcegroup.go
- method_restart.go
- method_start.go
- method_stop.go
- method_update.go
- model_availablepatchcountbyclassification.go
- model_errordetail.go
- model_extendedlocation.go
- model_guestagentprofile.go
- model_hardwareprofile.go
- model_linuxparameters.go
- model_networkinterface.go
- model_networkinterfaceupdate.go
- model_networkprofile.go
- model_networkprofileupdate.go
- model_nicipaddresssettings.go
- model_nicipsettings.go
- model_osprofile.go
- model_osprofilelinuxconfiguration.go
- model_osprofileupdate.go
- model_osprofileupdatelinuxconfiguration.go
- model_osprofileupdatewindowsconfiguration.go
- model_osprofilewindowsconfiguration.go
- model_patchsettings.go
- model_placementprofile.go
- model_resourcestatus.go
- model_securityprofile.go
- model_stopvirtualmachineoptions.go
- model_storageprofile.go
- model_storageprofileupdate.go
- model_uefisettings.go
- model_virtualdisk.go
- model_virtualdiskupdate.go
- model_virtualmachine.go
- model_virtualmachineassesspatchesresult.go
- model_virtualmachineinstallpatchesparameters.go
- model_virtualmachineinstallpatchesresult.go
- model_virtualmachineproperties.go
- model_virtualmachineupdate.go
- model_virtualmachineupdateproperties.go
- model_virtualscsicontroller.go
- model_windowsparameters.go
- predicates.go
- version.go