Documentation ¶
Index ¶
- func PossibleValuesForAffinityStrength() []string
- func PossibleValuesForAffinityType() []string
- func PossibleValuesForAzureHybridBenefitType() []string
- func PossibleValuesForPlacementPolicyProvisioningState() []string
- func PossibleValuesForPlacementPolicyState() []string
- func PossibleValuesForPlacementPolicyType() []string
- func ValidateClusterID(input interface{}, key string) (warnings []string, errors []error)
- func ValidatePlacementPolicyID(input interface{}, key string) (warnings []string, errors []error)
- type AffinityStrength
- type AffinityType
- type AzureHybridBenefitType
- type BasePlacementPolicyPropertiesImpl
- type ClusterId
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- 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
- 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
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 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
Types ¶
type AffinityStrength ¶
type AffinityStrength string
const ( AffinityStrengthMust AffinityStrength = "Must" AffinityStrengthShould AffinityStrength = "Should" )
func (*AffinityStrength) UnmarshalJSON ¶
func (s *AffinityStrength) UnmarshalJSON(bytes []byte) error
type AffinityType ¶
type AffinityType string
const ( AffinityTypeAffinity AffinityType = "Affinity" AffinityTypeAntiAffinity AffinityType = "AntiAffinity" )
func (*AffinityType) UnmarshalJSON ¶
func (s *AffinityType) UnmarshalJSON(bytes []byte) error
type AzureHybridBenefitType ¶
type AzureHybridBenefitType string
const ( AzureHybridBenefitTypeNone AzureHybridBenefitType = "None" AzureHybridBenefitTypeSqlHost AzureHybridBenefitType = "SqlHost" )
func (*AzureHybridBenefitType) UnmarshalJSON ¶
func (s *AzureHybridBenefitType) UnmarshalJSON(bytes []byte) error
type BasePlacementPolicyPropertiesImpl ¶ added in v0.20240920.1135249
type BasePlacementPolicyPropertiesImpl struct { DisplayName *string `json:"displayName,omitempty"` ProvisioningState *PlacementPolicyProvisioningState `json:"provisioningState,omitempty"` State *PlacementPolicyState `json:"state,omitempty"` Type PlacementPolicyType `json:"type"` }
func (BasePlacementPolicyPropertiesImpl) PlacementPolicyProperties ¶ added in v0.20240920.1135249
func (s BasePlacementPolicyPropertiesImpl) PlacementPolicyProperties() BasePlacementPolicyPropertiesImpl
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 DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PlacementPolicy }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []PlacementPolicy }
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 *[]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
type PlacementPolicy ¶
type PlacementPolicy struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties PlacementPolicyProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` 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) FromParseResult ¶
func (id *PlacementPolicyId) FromParseResult(input resourceids.ParseResult) error
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 {
PlacementPolicyProperties() BasePlacementPolicyPropertiesImpl
}
func UnmarshalPlacementPolicyPropertiesImplementation ¶ added in v0.20240920.1135249
func UnmarshalPlacementPolicyPropertiesImplementation(input []byte) (PlacementPolicyProperties, error)
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 ¶
func (s *PlacementPolicyProvisioningState) UnmarshalJSON(bytes []byte) error
type PlacementPolicyState ¶
type PlacementPolicyState string
const ( PlacementPolicyStateDisabled PlacementPolicyState = "Disabled" PlacementPolicyStateEnabled PlacementPolicyState = "Enabled" )
func (*PlacementPolicyState) UnmarshalJSON ¶
func (s *PlacementPolicyState) UnmarshalJSON(bytes []byte) error
type PlacementPolicyType ¶
type PlacementPolicyType string
const ( PlacementPolicyTypeVMHost PlacementPolicyType = "VmHost" PlacementPolicyTypeVMVM PlacementPolicyType = "VmVm" )
func (*PlacementPolicyType) UnmarshalJSON ¶
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 ¶
type RawPlacementPolicyPropertiesImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
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).
func (RawPlacementPolicyPropertiesImpl) PlacementPolicyProperties ¶ added in v0.20240920.1135249
func (s RawPlacementPolicyPropertiesImpl) PlacementPolicyProperties() BasePlacementPolicyPropertiesImpl
type UpdateOperationResponse ¶
type VMHostPlacementPolicyProperties ¶
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"` DisplayName *string `json:"displayName,omitempty"` ProvisioningState *PlacementPolicyProvisioningState `json:"provisioningState,omitempty"` State *PlacementPolicyState `json:"state,omitempty"` Type PlacementPolicyType `json:"type"` }
func (VMHostPlacementPolicyProperties) MarshalJSON ¶
func (s VMHostPlacementPolicyProperties) MarshalJSON() ([]byte, error)
func (VMHostPlacementPolicyProperties) PlacementPolicyProperties ¶ added in v0.20240920.1135249
func (s VMHostPlacementPolicyProperties) PlacementPolicyProperties() BasePlacementPolicyPropertiesImpl
type VMVMPlacementPolicyProperties ¶
type VMVMPlacementPolicyProperties struct { AffinityType AffinityType `json:"affinityType"` VMMembers []string `json:"vmMembers"` DisplayName *string `json:"displayName,omitempty"` ProvisioningState *PlacementPolicyProvisioningState `json:"provisioningState,omitempty"` State *PlacementPolicyState `json:"state,omitempty"` Type PlacementPolicyType `json:"type"` }
func (VMVMPlacementPolicyProperties) MarshalJSON ¶
func (s VMVMPlacementPolicyProperties) MarshalJSON() ([]byte, error)
func (VMVMPlacementPolicyProperties) PlacementPolicyProperties ¶ added in v0.20240920.1135249
func (s VMVMPlacementPolicyProperties) PlacementPolicyProperties() BasePlacementPolicyPropertiesImpl
Source Files ¶
- client.go
- constants.go
- id_cluster.go
- id_placementpolicy.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_update.go
- model_placementpolicy.go
- model_placementpolicyproperties.go
- model_placementpolicyupdate.go
- model_placementpolicyupdateproperties.go
- model_vmhostplacementpolicyproperties.go
- model_vmvmplacementpolicyproperties.go
- predicates.go
- version.go