Documentation ¶
Index ¶
- 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 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) (resp 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) (resp 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 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) 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 Model *VirtualMachine }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []VirtualMachine
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]VirtualMachine // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type RestrictMovementOperationResponse ¶
type RestrictMovementOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type VirtualMachine ¶
type VirtualMachine struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *VirtualMachineProperties `json:"properties"` 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) 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"` RestrictMovement *VirtualMachineRestrictMovementState `json:"restrictMovement,omitempty"` }
type VirtualMachineRestrictMovement ¶
type VirtualMachineRestrictMovement struct {
RestrictMovement *VirtualMachineRestrictMovementState `json:"restrictMovement,omitempty"`
}
type VirtualMachineRestrictMovementState ¶
type VirtualMachineRestrictMovementState string
const ( VirtualMachineRestrictMovementStateDisabled VirtualMachineRestrictMovementState = "Disabled" VirtualMachineRestrictMovementStateEnabled VirtualMachineRestrictMovementState = "Enabled" )
type VirtualMachinesClient ¶
type VirtualMachinesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewVirtualMachinesClientWithBaseURI ¶
func NewVirtualMachinesClientWithBaseURI(endpoint string) VirtualMachinesClient
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) (resp ListOperationResponse, err error)
List ...
func (VirtualMachinesClient) ListComplete ¶
func (c VirtualMachinesClient) ListComplete(ctx context.Context, id ClusterId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (VirtualMachinesClient) ListCompleteMatchingPredicate ¶
func (c VirtualMachinesClient) ListCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate VirtualMachineOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied 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