Documentation ¶
Index ¶
- func PossibleValuesForVirtualMachineProvisioningState() []string
- func PossibleValuesForVirtualMachineRestrictMovementState() []string
- func ValidateClusterID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)
- type ClusterId
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type RestrictMovementOperationResponse
- type VirtualMachine
- type VirtualMachineId
- type VirtualMachineOperationPredicate
- type VirtualMachineProperties
- type VirtualMachineProvisioningState
- type VirtualMachineRestrictMovement
- type VirtualMachineRestrictMovementState
- type VirtualMachinesClient
- func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId) (result GetOperationResponse, err error)
- func (c VirtualMachinesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error)
- func (c VirtualMachinesClient) ListComplete(ctx context.Context, id ClusterId) (ListCompleteResult, error)
- func (c VirtualMachinesClient) ListCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate VirtualMachineOperationPredicate) (result ListCompleteResult, err error)
- func (c VirtualMachinesClient) RestrictMovement(ctx context.Context, id VirtualMachineId, input VirtualMachineRestrictMovement) (result RestrictMovementOperationResponse, err error)
- func (c VirtualMachinesClient) RestrictMovementThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineRestrictMovement) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForVirtualMachineProvisioningState ¶
func PossibleValuesForVirtualMachineProvisioningState() []string
func PossibleValuesForVirtualMachineRestrictMovementState ¶
func PossibleValuesForVirtualMachineRestrictMovementState() []string
func ValidateClusterID ¶
ValidateClusterID checks that 'input' can be parsed as a Cluster ID
func ValidateVirtualMachineID ¶
ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID
Types ¶
type ClusterId ¶
type ClusterId struct { SubscriptionId string ResourceGroupName string PrivateCloudName string ClusterName string }
ClusterId is a struct representing the Resource ID for a Cluster
func NewClusterID ¶
func NewClusterID(subscriptionId string, resourceGroupName string, privateCloudName string, clusterName string) ClusterId
NewClusterID returns a new ClusterId struct
func ParseClusterID ¶
ParseClusterID parses 'input' into a ClusterId
func ParseClusterIDInsensitively ¶
ParseClusterIDInsensitively parses 'input' case-insensitively into a ClusterId note: this method should only be used for API response data and not user input
func (*ClusterId) FromParseResult ¶
func (id *ClusterId) FromParseResult(input resourceids.ParseResult) error
func (ClusterId) Segments ¶
func (id ClusterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Cluster ID
type GetOperationResponse ¶
type GetOperationResponse 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 VirtualMachine ¶
type VirtualMachine struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *VirtualMachineProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type VirtualMachineId ¶
type VirtualMachineId struct { SubscriptionId string ResourceGroupName string PrivateCloudName string ClusterName string VirtualMachineId string }
VirtualMachineId is a struct representing the Resource ID for a Virtual Machine
func NewVirtualMachineID ¶
func NewVirtualMachineID(subscriptionId string, resourceGroupName string, privateCloudName string, clusterName string, virtualMachineId 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 VirtualMachineOperationPredicate ¶
func (VirtualMachineOperationPredicate) Matches ¶
func (p VirtualMachineOperationPredicate) Matches(input VirtualMachine) bool
type VirtualMachineProperties ¶
type VirtualMachineProperties struct { DisplayName *string `json:"displayName,omitempty"` FolderPath *string `json:"folderPath,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *VirtualMachineProvisioningState `json:"provisioningState,omitempty"` RestrictMovement *VirtualMachineRestrictMovementState `json:"restrictMovement,omitempty"` }
type VirtualMachineProvisioningState ¶
type VirtualMachineProvisioningState string
const ( VirtualMachineProvisioningStateCanceled VirtualMachineProvisioningState = "Canceled" VirtualMachineProvisioningStateFailed VirtualMachineProvisioningState = "Failed" VirtualMachineProvisioningStateSucceeded VirtualMachineProvisioningState = "Succeeded" )
func (*VirtualMachineProvisioningState) UnmarshalJSON ¶
func (s *VirtualMachineProvisioningState) UnmarshalJSON(bytes []byte) error
type VirtualMachineRestrictMovement ¶
type VirtualMachineRestrictMovement struct {
RestrictMovement *VirtualMachineRestrictMovementState `json:"restrictMovement,omitempty"`
}
type VirtualMachineRestrictMovementState ¶
type VirtualMachineRestrictMovementState string
const ( VirtualMachineRestrictMovementStateDisabled VirtualMachineRestrictMovementState = "Disabled" VirtualMachineRestrictMovementStateEnabled VirtualMachineRestrictMovementState = "Enabled" )
func (*VirtualMachineRestrictMovementState) UnmarshalJSON ¶
func (s *VirtualMachineRestrictMovementState) UnmarshalJSON(bytes []byte) error
type VirtualMachinesClient ¶
type VirtualMachinesClient struct {
Client *resourcemanager.Client
}
func NewVirtualMachinesClientWithBaseURI ¶
func NewVirtualMachinesClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualMachinesClient, error)
func (VirtualMachinesClient) Get ¶
func (c VirtualMachinesClient) Get(ctx context.Context, id VirtualMachineId) (result GetOperationResponse, err error)
Get ...
func (VirtualMachinesClient) List ¶
func (c VirtualMachinesClient) List(ctx context.Context, id ClusterId) (result ListOperationResponse, err error)
List ...
func (VirtualMachinesClient) ListComplete ¶
func (c VirtualMachinesClient) ListComplete(ctx context.Context, id ClusterId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (VirtualMachinesClient) ListCompleteMatchingPredicate ¶
func (c VirtualMachinesClient) ListCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate VirtualMachineOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualMachinesClient) RestrictMovement ¶
func (c VirtualMachinesClient) RestrictMovement(ctx context.Context, id VirtualMachineId, input VirtualMachineRestrictMovement) (result RestrictMovementOperationResponse, err error)
RestrictMovement ...
func (VirtualMachinesClient) RestrictMovementThenPoll ¶
func (c VirtualMachinesClient) RestrictMovementThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineRestrictMovement) error
RestrictMovementThenPoll performs RestrictMovement then polls until it's completed