Documentation ¶
Index ¶
- func PossibleValuesForAffinityStrength() []string
- func PossibleValuesForAffinityType() []string
- func PossibleValuesForAzureHybridBenefitType() []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 AffinityStrength
- type AffinityType
- type AzureHybridBenefitType
- 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) (result 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) (result 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 RawPlacementPolicyPropertiesImpl
- type UpdateOperationResponse
- type VMHostPlacementPolicyProperties
- type VMVMPlacementPolicyProperties
- type VirtualMachineId
- type VirtualMachineRestrictMovement
- type VirtualMachineRestrictMovementState
- type VirtualMachinesRestrictMovementOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAffinityStrength ¶
func PossibleValuesForAffinityStrength() []string
func PossibleValuesForAffinityType ¶
func PossibleValuesForAffinityType() []string
func PossibleValuesForAzureHybridBenefitType ¶
func PossibleValuesForAzureHybridBenefitType() []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 AffinityStrength ¶
type AffinityStrength string
const ( AffinityStrengthMust AffinityStrength = "Must" AffinityStrengthShould AffinityStrength = "Should" )
func (*AffinityStrength) UnmarshalJSON ¶ added in v0.20230720.1124505
func (s *AffinityStrength) UnmarshalJSON(bytes []byte) error
type AffinityType ¶
type AffinityType string
const ( AffinityTypeAffinity AffinityType = "Affinity" AffinityTypeAntiAffinity AffinityType = "AntiAffinity" )
func (*AffinityType) UnmarshalJSON ¶ added in v0.20230720.1124505
func (s *AffinityType) UnmarshalJSON(bytes []byte) error
type AzureHybridBenefitType ¶
type AzureHybridBenefitType string
const ( AzureHybridBenefitTypeNone AzureHybridBenefitType = "None" AzureHybridBenefitTypeSqlHost AzureHybridBenefitType = "SqlHost" )
func (*AzureHybridBenefitType) UnmarshalJSON ¶ added in v0.20230720.1124505
func (s *AzureHybridBenefitType) UnmarshalJSON(bytes []byte) error
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 DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PlacementPolicy }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []PlacementPolicy
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PlacementPolicy }
type PlacementPoliciesClient ¶
type PlacementPoliciesClient struct {
Client *resourcemanager.Client
}
func NewPlacementPoliciesClientWithBaseURI ¶
func NewPlacementPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*PlacementPoliciesClient, error)
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) (result ListOperationResponse, err error)
List ...
func (PlacementPoliciesClient) ListComplete ¶
func (c PlacementPoliciesClient) ListComplete(ctx context.Context, id ClusterId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (PlacementPoliciesClient) ListCompleteMatchingPredicate ¶
func (c PlacementPoliciesClient) ListCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate PlacementPolicyOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies 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" PlacementPolicyProvisioningStateCanceled PlacementPolicyProvisioningState = "Canceled" PlacementPolicyProvisioningStateDeleting PlacementPolicyProvisioningState = "Deleting" PlacementPolicyProvisioningStateFailed PlacementPolicyProvisioningState = "Failed" PlacementPolicyProvisioningStateSucceeded PlacementPolicyProvisioningState = "Succeeded" PlacementPolicyProvisioningStateUpdating PlacementPolicyProvisioningState = "Updating" )
func (*PlacementPolicyProvisioningState) UnmarshalJSON ¶ added in v0.20230720.1124505
func (s *PlacementPolicyProvisioningState) UnmarshalJSON(bytes []byte) error
type PlacementPolicyState ¶
type PlacementPolicyState string
const ( PlacementPolicyStateDisabled PlacementPolicyState = "Disabled" PlacementPolicyStateEnabled PlacementPolicyState = "Enabled" )
func (*PlacementPolicyState) UnmarshalJSON ¶ added in v0.20230720.1124505
func (s *PlacementPolicyState) UnmarshalJSON(bytes []byte) error
type PlacementPolicyType ¶
type PlacementPolicyType string
const ( PlacementPolicyTypeVMHost PlacementPolicyType = "VmHost" PlacementPolicyTypeVMVM PlacementPolicyType = "VmVm" )
func (*PlacementPolicyType) UnmarshalJSON ¶ added in v0.20230720.1124505
func (s *PlacementPolicyType) UnmarshalJSON(bytes []byte) error
type PlacementPolicyUpdate ¶
type PlacementPolicyUpdate struct {
Properties *PlacementPolicyUpdateProperties `json:"properties,omitempty"`
}
type PlacementPolicyUpdateProperties ¶
type PlacementPolicyUpdateProperties struct { AffinityStrength *AffinityStrength `json:"affinityStrength,omitempty"` AzureHybridBenefitType *AzureHybridBenefitType `json:"azureHybridBenefitType,omitempty"` HostMembers *[]string `json:"hostMembers,omitempty"` State *PlacementPolicyState `json:"state,omitempty"` VMMembers *[]string `json:"vmMembers,omitempty"` }
type RawPlacementPolicyPropertiesImpl ¶ added in v0.20230807.1063129
RawPlacementPolicyPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type UpdateOperationResponse ¶
type VMHostPlacementPolicyProperties ¶ added in v0.20221130.1084848
type VMHostPlacementPolicyProperties struct { AffinityStrength *AffinityStrength `json:"affinityStrength,omitempty"` AffinityType AffinityType `json:"affinityType"` AzureHybridBenefitType *AzureHybridBenefitType `json:"azureHybridBenefitType,omitempty"` 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 ¶ added in v0.20221130.1084848
func (s VMHostPlacementPolicyProperties) MarshalJSON() ([]byte, error)
type VMVMPlacementPolicyProperties ¶ added in v0.20221130.1084848
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 ¶ added in v0.20221130.1084848
func (s VMVMPlacementPolicyProperties) MarshalJSON() ([]byte, error)
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" )
func (*VirtualMachineRestrictMovementState) UnmarshalJSON ¶ added in v0.20230720.1124505
func (s *VirtualMachineRestrictMovementState) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_cluster.go
- id_placementpolicy.go
- id_virtualmachine.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_update.go
- method_virtualmachinesrestrictmovement.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