Documentation ¶
Index ¶
- func PossibleValuesForAffinityType() []string
- func PossibleValuesForPlacementPolicyProvisioningState() []string
- func PossibleValuesForPlacementPolicyState() []string
- func PossibleValuesForPlacementPolicyType() []string
- func PossibleValuesForVirtualMachineRestrictMovementState() []string
- func ValidateClusterID(input interface{}, key string) (warnings []string, errors []error)
- func ValidatePlacementPolicyID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVirtualMachineID(input interface{}, key string) (warnings []string, errors []error)
- type AffinityType
- type ClusterId
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type PlacementPoliciesClient
- func (c PlacementPoliciesClient) CreateOrUpdate(ctx context.Context, id PlacementPolicyId, input PlacementPolicy) (result CreateOrUpdateOperationResponse, err error)
- func (c PlacementPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id PlacementPolicyId, input PlacementPolicy) error
- func (c PlacementPoliciesClient) Delete(ctx context.Context, id PlacementPolicyId) (result DeleteOperationResponse, err error)
- func (c PlacementPoliciesClient) DeleteThenPoll(ctx context.Context, id PlacementPolicyId) error
- func (c PlacementPoliciesClient) Get(ctx context.Context, id PlacementPolicyId) (result GetOperationResponse, err error)
- func (c PlacementPoliciesClient) List(ctx context.Context, id ClusterId) (resp ListOperationResponse, err error)
- func (c PlacementPoliciesClient) ListComplete(ctx context.Context, id ClusterId) (ListCompleteResult, error)
- func (c PlacementPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate PlacementPolicyOperationPredicate) (resp ListCompleteResult, err error)
- func (c PlacementPoliciesClient) Update(ctx context.Context, id PlacementPolicyId, input PlacementPolicyUpdate) (result UpdateOperationResponse, err error)
- func (c PlacementPoliciesClient) UpdateThenPoll(ctx context.Context, id PlacementPolicyId, input PlacementPolicyUpdate) error
- func (c PlacementPoliciesClient) VirtualMachinesRestrictMovement(ctx context.Context, id VirtualMachineId, input VirtualMachineRestrictMovement) (result VirtualMachinesRestrictMovementOperationResponse, err error)
- func (c PlacementPoliciesClient) VirtualMachinesRestrictMovementThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineRestrictMovement) error
- type PlacementPolicy
- type PlacementPolicyId
- type PlacementPolicyOperationPredicate
- type PlacementPolicyProperties
- type PlacementPolicyProvisioningState
- type PlacementPolicyState
- type PlacementPolicyType
- type PlacementPolicyUpdate
- type PlacementPolicyUpdateProperties
- type UpdateOperationResponse
- type VirtualMachineId
- type VirtualMachineRestrictMovement
- type VirtualMachineRestrictMovementState
- type VirtualMachinesRestrictMovementOperationResponse
- type VmHostPlacementPolicyProperties
- type VmVmPlacementPolicyProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAffinityType ¶
func PossibleValuesForAffinityType() []string
func PossibleValuesForPlacementPolicyProvisioningState ¶
func PossibleValuesForPlacementPolicyProvisioningState() []string
func PossibleValuesForPlacementPolicyState ¶
func PossibleValuesForPlacementPolicyState() []string
func PossibleValuesForPlacementPolicyType ¶
func PossibleValuesForPlacementPolicyType() []string
func PossibleValuesForVirtualMachineRestrictMovementState ¶
func PossibleValuesForVirtualMachineRestrictMovementState() []string
func ValidateClusterID ¶
ValidateClusterID checks that 'input' can be parsed as a Cluster ID
func ValidatePlacementPolicyID ¶
ValidatePlacementPolicyID checks that 'input' can be parsed as a Placement Policy ID
func ValidateVirtualMachineID ¶
ValidateVirtualMachineID checks that 'input' can be parsed as a Virtual Machine ID
Types ¶
type AffinityType ¶
type AffinityType string
const ( AffinityTypeAffinity AffinityType = "Affinity" AffinityTypeAntiAffinity AffinityType = "AntiAffinity" )
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 CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *PlacementPolicy }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []PlacementPolicy
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]PlacementPolicy // 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 PlacementPoliciesClient ¶
type PlacementPoliciesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewPlacementPoliciesClientWithBaseURI ¶
func NewPlacementPoliciesClientWithBaseURI(endpoint string) PlacementPoliciesClient
func (PlacementPoliciesClient) CreateOrUpdate ¶
func (c PlacementPoliciesClient) CreateOrUpdate(ctx context.Context, id PlacementPolicyId, input PlacementPolicy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PlacementPoliciesClient) CreateOrUpdateThenPoll ¶
func (c PlacementPoliciesClient) CreateOrUpdateThenPoll(ctx context.Context, id PlacementPolicyId, input PlacementPolicy) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (PlacementPoliciesClient) Delete ¶
func (c PlacementPoliciesClient) Delete(ctx context.Context, id PlacementPolicyId) (result DeleteOperationResponse, err error)
Delete ...
func (PlacementPoliciesClient) DeleteThenPoll ¶
func (c PlacementPoliciesClient) DeleteThenPoll(ctx context.Context, id PlacementPolicyId) error
DeleteThenPoll performs Delete then polls until it's completed
func (PlacementPoliciesClient) Get ¶
func (c PlacementPoliciesClient) Get(ctx context.Context, id PlacementPolicyId) (result GetOperationResponse, err error)
Get ...
func (PlacementPoliciesClient) List ¶
func (c PlacementPoliciesClient) List(ctx context.Context, id ClusterId) (resp ListOperationResponse, err error)
List ...
func (PlacementPoliciesClient) ListComplete ¶
func (c PlacementPoliciesClient) ListComplete(ctx context.Context, id ClusterId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (PlacementPoliciesClient) ListCompleteMatchingPredicate ¶
func (c PlacementPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate PlacementPolicyOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (PlacementPoliciesClient) Update ¶
func (c PlacementPoliciesClient) Update(ctx context.Context, id PlacementPolicyId, input PlacementPolicyUpdate) (result UpdateOperationResponse, err error)
Update ...
func (PlacementPoliciesClient) UpdateThenPoll ¶
func (c PlacementPoliciesClient) UpdateThenPoll(ctx context.Context, id PlacementPolicyId, input PlacementPolicyUpdate) error
UpdateThenPoll performs Update then polls until it's completed
func (PlacementPoliciesClient) VirtualMachinesRestrictMovement ¶
func (c PlacementPoliciesClient) VirtualMachinesRestrictMovement(ctx context.Context, id VirtualMachineId, input VirtualMachineRestrictMovement) (result VirtualMachinesRestrictMovementOperationResponse, err error)
VirtualMachinesRestrictMovement ...
func (PlacementPoliciesClient) VirtualMachinesRestrictMovementThenPoll ¶
func (c PlacementPoliciesClient) VirtualMachinesRestrictMovementThenPoll(ctx context.Context, id VirtualMachineId, input VirtualMachineRestrictMovement) error
VirtualMachinesRestrictMovementThenPoll performs VirtualMachinesRestrictMovement then polls until it's completed
type PlacementPolicy ¶
type PlacementPolicy struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties PlacementPolicyProperties `json:"properties"` Type *string `json:"type,omitempty"` }
func (*PlacementPolicy) UnmarshalJSON ¶
func (s *PlacementPolicy) UnmarshalJSON(bytes []byte) error
type PlacementPolicyId ¶
type PlacementPolicyId struct { SubscriptionId string ResourceGroupName string PrivateCloudName string ClusterName string PlacementPolicyName string }
PlacementPolicyId is a struct representing the Resource ID for a Placement Policy
func NewPlacementPolicyID ¶
func NewPlacementPolicyID(subscriptionId string, resourceGroupName string, privateCloudName string, clusterName string, placementPolicyName string) PlacementPolicyId
NewPlacementPolicyID returns a new PlacementPolicyId struct
func ParsePlacementPolicyID ¶
func ParsePlacementPolicyID(input string) (*PlacementPolicyId, error)
ParsePlacementPolicyID parses 'input' into a PlacementPolicyId
func ParsePlacementPolicyIDInsensitively ¶
func ParsePlacementPolicyIDInsensitively(input string) (*PlacementPolicyId, error)
ParsePlacementPolicyIDInsensitively parses 'input' case-insensitively into a PlacementPolicyId note: this method should only be used for API response data and not user input
func (PlacementPolicyId) ID ¶
func (id PlacementPolicyId) ID() string
ID returns the formatted Placement Policy ID
func (PlacementPolicyId) Segments ¶
func (id PlacementPolicyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Placement Policy ID
func (PlacementPolicyId) String ¶
func (id PlacementPolicyId) String() string
String returns a human-readable description of this Placement Policy ID
type PlacementPolicyOperationPredicate ¶
func (PlacementPolicyOperationPredicate) Matches ¶
func (p PlacementPolicyOperationPredicate) Matches(input PlacementPolicy) bool
type PlacementPolicyProperties ¶
type PlacementPolicyProperties interface { }
type PlacementPolicyProvisioningState ¶
type PlacementPolicyProvisioningState string
const ( PlacementPolicyProvisioningStateBuilding PlacementPolicyProvisioningState = "Building" PlacementPolicyProvisioningStateDeleting PlacementPolicyProvisioningState = "Deleting" PlacementPolicyProvisioningStateFailed PlacementPolicyProvisioningState = "Failed" PlacementPolicyProvisioningStateSucceeded PlacementPolicyProvisioningState = "Succeeded" PlacementPolicyProvisioningStateUpdating PlacementPolicyProvisioningState = "Updating" )
type PlacementPolicyState ¶
type PlacementPolicyState string
const ( PlacementPolicyStateDisabled PlacementPolicyState = "Disabled" PlacementPolicyStateEnabled PlacementPolicyState = "Enabled" )
type PlacementPolicyType ¶
type PlacementPolicyType string
const ( PlacementPolicyTypeVmHost PlacementPolicyType = "VmHost" PlacementPolicyTypeVmVm PlacementPolicyType = "VmVm" )
type PlacementPolicyUpdate ¶
type PlacementPolicyUpdate struct {
Properties *PlacementPolicyUpdateProperties `json:"properties,omitempty"`
}
type PlacementPolicyUpdateProperties ¶
type PlacementPolicyUpdateProperties struct { HostMembers *[]string `json:"hostMembers,omitempty"` State *PlacementPolicyState `json:"state,omitempty"` VmMembers *[]string `json:"vmMembers,omitempty"` }
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
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 VirtualMachineRestrictMovement ¶
type VirtualMachineRestrictMovement struct {
RestrictMovement *VirtualMachineRestrictMovementState `json:"restrictMovement,omitempty"`
}
type VirtualMachineRestrictMovementState ¶
type VirtualMachineRestrictMovementState string
const ( VirtualMachineRestrictMovementStateDisabled VirtualMachineRestrictMovementState = "Disabled" VirtualMachineRestrictMovementStateEnabled VirtualMachineRestrictMovementState = "Enabled" )
type VirtualMachinesRestrictMovementOperationResponse ¶
type VirtualMachinesRestrictMovementOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type VmHostPlacementPolicyProperties ¶
type VmHostPlacementPolicyProperties struct { AffinityType AffinityType `json:"affinityType"` HostMembers []string `json:"hostMembers"` VmMembers []string `json:"vmMembers"` // Fields inherited from PlacementPolicyProperties DisplayName *string `json:"displayName,omitempty"` ProvisioningState *PlacementPolicyProvisioningState `json:"provisioningState,omitempty"` State *PlacementPolicyState `json:"state,omitempty"` }
func (VmHostPlacementPolicyProperties) MarshalJSON ¶
func (s VmHostPlacementPolicyProperties) MarshalJSON() ([]byte, error)
type VmVmPlacementPolicyProperties ¶
type VmVmPlacementPolicyProperties struct { AffinityType AffinityType `json:"affinityType"` VmMembers []string `json:"vmMembers"` // Fields inherited from PlacementPolicyProperties DisplayName *string `json:"displayName,omitempty"` ProvisioningState *PlacementPolicyProvisioningState `json:"provisioningState,omitempty"` State *PlacementPolicyState `json:"state,omitempty"` }
func (VmVmPlacementPolicyProperties) MarshalJSON ¶
func (s VmVmPlacementPolicyProperties) MarshalJSON() ([]byte, error)
Source Files ¶
- client.go
- constants.go
- id_cluster.go
- id_placementpolicy.go
- id_virtualmachine.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_update_autorest.go
- method_virtualmachinesrestrictmovement_autorest.go
- model_placementpolicy.go
- model_placementpolicyproperties.go
- model_placementpolicyupdate.go
- model_placementpolicyupdateproperties.go
- model_virtualmachinerestrictmovement.go
- model_vmhostplacementpolicyproperties.go
- model_vmvmplacementpolicyproperties.go
- predicates.go
- version.go