Documentation ¶
Index ¶
- func PossibleValuesForDiskMode() []string
- func PossibleValuesForDiskType() []string
- func PossibleValuesForFirmwareType() []string
- func PossibleValuesForIPAddressAllocationMethod() []string
- func PossibleValuesForNICType() []string
- func PossibleValuesForOsType() []string
- func PossibleValuesForPowerOnBootOption() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForSCSIControllerType() []string
- func PossibleValuesForVirtualSCSISharing() []string
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type DiskMode
- type DiskType
- type ExtendedLocation
- type FirmwareType
- type GetOperationResponse
- type HardwareProfile
- type IPAddressAllocationMethod
- type InfrastructureProfile
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type NICType
- type NetworkInterface
- type NetworkInterfaceUpdate
- type NetworkProfile
- type NetworkProfileUpdate
- type NicIPAddressSettings
- type NicIPSettings
- type OsProfileForVMInstance
- type OsType
- type PlacementProfile
- type PowerOnBootOption
- type ProvisioningState
- type ResourceStatus
- type RestartOperationResponse
- type SCSIControllerType
- type SecurityProfile
- type StartOperationResponse
- type StopOperationResponse
- type StopVirtualMachineOptions
- type StorageProfile
- type StorageProfileUpdate
- type UefiSettings
- type UpdateOperationResponse
- type VirtualDisk
- type VirtualDiskUpdate
- type VirtualMachineInstance
- type VirtualMachineInstanceOperationPredicate
- type VirtualMachineInstanceProperties
- type VirtualMachineInstanceUpdate
- type VirtualMachineInstanceUpdateProperties
- type VirtualMachineInstancesClient
- func (c VirtualMachineInstancesClient) CreateOrUpdate(ctx context.Context, id commonids.ScopeId, input VirtualMachineInstance) (result CreateOrUpdateOperationResponse, err error)
- func (c VirtualMachineInstancesClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.ScopeId, input VirtualMachineInstance) error
- func (c VirtualMachineInstancesClient) Delete(ctx context.Context, id commonids.ScopeId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c VirtualMachineInstancesClient) DeleteThenPoll(ctx context.Context, id commonids.ScopeId, options DeleteOperationOptions) error
- func (c VirtualMachineInstancesClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error)
- func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
- func (c VirtualMachineInstancesClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
- func (c VirtualMachineInstancesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListCompleteResult, err error)
- func (c VirtualMachineInstancesClient) Restart(ctx context.Context, id commonids.ScopeId) (result RestartOperationResponse, err error)
- func (c VirtualMachineInstancesClient) RestartThenPoll(ctx context.Context, id commonids.ScopeId) error
- func (c VirtualMachineInstancesClient) Start(ctx context.Context, id commonids.ScopeId) (result StartOperationResponse, err error)
- func (c VirtualMachineInstancesClient) StartThenPoll(ctx context.Context, id commonids.ScopeId) error
- func (c VirtualMachineInstancesClient) Stop(ctx context.Context, id commonids.ScopeId, input StopVirtualMachineOptions) (result StopOperationResponse, err error)
- func (c VirtualMachineInstancesClient) StopThenPoll(ctx context.Context, id commonids.ScopeId, input StopVirtualMachineOptions) error
- func (c VirtualMachineInstancesClient) Update(ctx context.Context, id commonids.ScopeId, input VirtualMachineInstanceUpdate) (result UpdateOperationResponse, err error)
- func (c VirtualMachineInstancesClient) UpdateThenPoll(ctx context.Context, id commonids.ScopeId, input VirtualMachineInstanceUpdate) error
- type VirtualSCSIController
- type VirtualSCSISharing
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 PossibleValuesForPowerOnBootOption ¶
func PossibleValuesForPowerOnBootOption() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForSCSIControllerType ¶
func PossibleValuesForSCSIControllerType() []string
func PossibleValuesForVirtualSCSISharing ¶
func PossibleValuesForVirtualSCSISharing() []string
Types ¶
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 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 *VirtualMachineInstance }
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 InfrastructureProfile ¶
type InfrastructureProfile struct { CustomResourceName *string `json:"customResourceName,omitempty"` FirmwareType *FirmwareType `json:"firmwareType,omitempty"` FolderPath *string `json:"folderPath,omitempty"` InstanceUuid *string `json:"instanceUuid,omitempty"` InventoryItemId *string `json:"inventoryItemId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` SmbiosUuid *string `json:"smbiosUuid,omitempty"` TemplateId *string `json:"templateId,omitempty"` VCenterId *string `json:"vCenterId,omitempty"` }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []VirtualMachineInstance }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualMachineInstance }
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 OsProfileForVMInstance ¶
type OsProfileForVMInstance struct { AdminPassword *string `json:"adminPassword,omitempty"` AdminUsername *string `json:"adminUsername,omitempty"` ComputerName *string `json:"computerName,omitempty"` GuestId *string `json:"guestId,omitempty"` OsSku *string `json:"osSku,omitempty"` OsType *OsType `json:"osType,omitempty"` ToolsRunningStatus *string `json:"toolsRunningStatus,omitempty"` ToolsVersion *string `json:"toolsVersion,omitempty"` ToolsVersionStatus *string `json:"toolsVersionStatus,omitempty"` }
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 ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreated ProvisioningState = "Created" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) 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 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 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 VirtualMachineInstance ¶
type VirtualMachineInstance struct { ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties VirtualMachineInstanceProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type VirtualMachineInstanceOperationPredicate ¶
func (VirtualMachineInstanceOperationPredicate) Matches ¶
func (p VirtualMachineInstanceOperationPredicate) Matches(input VirtualMachineInstance) bool
type VirtualMachineInstanceProperties ¶
type VirtualMachineInstanceProperties struct { HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` InfrastructureProfile *InfrastructureProfile `json:"infrastructureProfile,omitempty"` NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` OsProfile *OsProfileForVMInstance `json:"osProfile,omitempty"` PlacementProfile *PlacementProfile `json:"placementProfile,omitempty"` PowerState *string `json:"powerState,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceUid *string `json:"resourceUid,omitempty"` SecurityProfile *SecurityProfile `json:"securityProfile,omitempty"` Statuses *[]ResourceStatus `json:"statuses,omitempty"` StorageProfile *StorageProfile `json:"storageProfile,omitempty"` }
type VirtualMachineInstanceUpdate ¶
type VirtualMachineInstanceUpdate struct {
Properties *VirtualMachineInstanceUpdateProperties `json:"properties,omitempty"`
}
type VirtualMachineInstanceUpdateProperties ¶
type VirtualMachineInstanceUpdateProperties struct { HardwareProfile *HardwareProfile `json:"hardwareProfile,omitempty"` NetworkProfile *NetworkProfileUpdate `json:"networkProfile,omitempty"` StorageProfile *StorageProfileUpdate `json:"storageProfile,omitempty"` }
type VirtualMachineInstancesClient ¶
type VirtualMachineInstancesClient struct {
Client *resourcemanager.Client
}
func NewVirtualMachineInstancesClientWithBaseURI ¶
func NewVirtualMachineInstancesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachineInstancesClient, error)
func (VirtualMachineInstancesClient) CreateOrUpdate ¶
func (c VirtualMachineInstancesClient) CreateOrUpdate(ctx context.Context, id commonids.ScopeId, input VirtualMachineInstance) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (VirtualMachineInstancesClient) CreateOrUpdateThenPoll ¶
func (c VirtualMachineInstancesClient) CreateOrUpdateThenPoll(ctx context.Context, id commonids.ScopeId, input VirtualMachineInstance) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (VirtualMachineInstancesClient) Delete ¶
func (c VirtualMachineInstancesClient) Delete(ctx context.Context, id commonids.ScopeId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (VirtualMachineInstancesClient) DeleteThenPoll ¶
func (c VirtualMachineInstancesClient) DeleteThenPoll(ctx context.Context, id commonids.ScopeId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (VirtualMachineInstancesClient) Get ¶
func (c VirtualMachineInstancesClient) Get(ctx context.Context, id commonids.ScopeId) (result GetOperationResponse, err error)
Get ...
func (VirtualMachineInstancesClient) List ¶
func (c VirtualMachineInstancesClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error)
List ...
func (VirtualMachineInstancesClient) ListComplete ¶
func (c VirtualMachineInstancesClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (VirtualMachineInstancesClient) ListCompleteMatchingPredicate ¶
func (c VirtualMachineInstancesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate VirtualMachineInstanceOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualMachineInstancesClient) Restart ¶
func (c VirtualMachineInstancesClient) Restart(ctx context.Context, id commonids.ScopeId) (result RestartOperationResponse, err error)
Restart ...
func (VirtualMachineInstancesClient) RestartThenPoll ¶
func (c VirtualMachineInstancesClient) RestartThenPoll(ctx context.Context, id commonids.ScopeId) error
RestartThenPoll performs Restart then polls until it's completed
func (VirtualMachineInstancesClient) Start ¶
func (c VirtualMachineInstancesClient) Start(ctx context.Context, id commonids.ScopeId) (result StartOperationResponse, err error)
Start ...
func (VirtualMachineInstancesClient) StartThenPoll ¶
func (c VirtualMachineInstancesClient) StartThenPoll(ctx context.Context, id commonids.ScopeId) error
StartThenPoll performs Start then polls until it's completed
func (VirtualMachineInstancesClient) Stop ¶
func (c VirtualMachineInstancesClient) Stop(ctx context.Context, id commonids.ScopeId, input StopVirtualMachineOptions) (result StopOperationResponse, err error)
Stop ...
func (VirtualMachineInstancesClient) StopThenPoll ¶
func (c VirtualMachineInstancesClient) StopThenPoll(ctx context.Context, id commonids.ScopeId, input StopVirtualMachineOptions) error
StopThenPoll performs Stop then polls until it's completed
func (VirtualMachineInstancesClient) Update ¶
func (c VirtualMachineInstancesClient) Update(ctx context.Context, id commonids.ScopeId, input VirtualMachineInstanceUpdate) (result UpdateOperationResponse, err error)
Update ...
func (VirtualMachineInstancesClient) UpdateThenPoll ¶
func (c VirtualMachineInstancesClient) UpdateThenPoll(ctx context.Context, id commonids.ScopeId, input VirtualMachineInstanceUpdate) 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
Source Files ¶
- client.go
- constants.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_restart.go
- method_start.go
- method_stop.go
- method_update.go
- model_extendedlocation.go
- model_hardwareprofile.go
- model_infrastructureprofile.go
- model_networkinterface.go
- model_networkinterfaceupdate.go
- model_networkprofile.go
- model_networkprofileupdate.go
- model_nicipaddresssettings.go
- model_nicipsettings.go
- model_osprofileforvminstance.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_virtualmachineinstance.go
- model_virtualmachineinstanceproperties.go
- model_virtualmachineinstanceupdate.go
- model_virtualmachineinstanceupdateproperties.go
- model_virtualscsicontroller.go
- predicates.go
- version.go
Click to show internal directories.
Click to hide internal directories.