Documentation ¶
Index ¶
- func PossibleValuesForCommitmentPlanProvisioningState() []string
- func PossibleValuesForHostingModel() []string
- func PossibleValuesForSkuTier() []string
- func ValidateCommitmentPlanID(input interface{}, key string) (warnings []string, errors []error)
- type CognitiveServicesCommitmentPlansClient
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansCreateOrUpdatePlan(ctx context.Context, id CommitmentPlanId, input CommitmentPlan) (result CommitmentPlansCreateOrUpdatePlanOperationResponse, err error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansCreateOrUpdatePlanThenPoll(ctx context.Context, id CommitmentPlanId, input CommitmentPlan) error
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansDeletePlan(ctx context.Context, id CommitmentPlanId) (result CommitmentPlansDeletePlanOperationResponse, err error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansDeletePlanThenPoll(ctx context.Context, id CommitmentPlanId) error
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansGetPlan(ctx context.Context, id CommitmentPlanId) (result CommitmentPlansGetPlanOperationResponse, err error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result CommitmentPlansListPlansByResourceGroupOperationResponse, err error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (CommitmentPlansListPlansByResourceGroupCompleteResult, error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result CommitmentPlansListPlansByResourceGroupCompleteResult, err error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscription(ctx context.Context, id commonids.SubscriptionId) (result CommitmentPlansListPlansBySubscriptionOperationResponse, err error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (CommitmentPlansListPlansBySubscriptionCompleteResult, error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result CommitmentPlansListPlansBySubscriptionCompleteResult, err error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansUpdatePlan(ctx context.Context, id CommitmentPlanId, input PatchResourceTagsAndSku) (result CommitmentPlansUpdatePlanOperationResponse, err error)
- func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansUpdatePlanThenPoll(ctx context.Context, id CommitmentPlanId, input PatchResourceTagsAndSku) error
- type CommitmentPeriod
- type CommitmentPlan
- type CommitmentPlanId
- type CommitmentPlanOperationPredicate
- type CommitmentPlanProperties
- type CommitmentPlanProvisioningState
- type CommitmentPlansCreateOrUpdatePlanOperationResponse
- type CommitmentPlansDeletePlanOperationResponse
- type CommitmentPlansGetPlanOperationResponse
- type CommitmentPlansListPlansByResourceGroupCompleteResult
- type CommitmentPlansListPlansByResourceGroupOperationResponse
- type CommitmentPlansListPlansBySubscriptionCompleteResult
- type CommitmentPlansListPlansBySubscriptionOperationResponse
- type CommitmentPlansUpdatePlanOperationResponse
- type CommitmentQuota
- type HostingModel
- type PatchResourceTagsAndSku
- type Sku
- type SkuTier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCommitmentPlanProvisioningState ¶
func PossibleValuesForCommitmentPlanProvisioningState() []string
func PossibleValuesForHostingModel ¶
func PossibleValuesForHostingModel() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func ValidateCommitmentPlanID ¶
ValidateCommitmentPlanID checks that 'input' can be parsed as a Commitment Plan ID
Types ¶
type CognitiveServicesCommitmentPlansClient ¶
type CognitiveServicesCommitmentPlansClient struct {
Client *resourcemanager.Client
}
func NewCognitiveServicesCommitmentPlansClientWithBaseURI ¶
func NewCognitiveServicesCommitmentPlansClientWithBaseURI(sdkApi sdkEnv.Api) (*CognitiveServicesCommitmentPlansClient, error)
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansCreateOrUpdatePlan ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansCreateOrUpdatePlan(ctx context.Context, id CommitmentPlanId, input CommitmentPlan) (result CommitmentPlansCreateOrUpdatePlanOperationResponse, err error)
CommitmentPlansCreateOrUpdatePlan ...
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansCreateOrUpdatePlanThenPoll ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansCreateOrUpdatePlanThenPoll(ctx context.Context, id CommitmentPlanId, input CommitmentPlan) error
CommitmentPlansCreateOrUpdatePlanThenPoll performs CommitmentPlansCreateOrUpdatePlan then polls until it's completed
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansDeletePlan ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansDeletePlan(ctx context.Context, id CommitmentPlanId) (result CommitmentPlansDeletePlanOperationResponse, err error)
CommitmentPlansDeletePlan ...
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansDeletePlanThenPoll ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansDeletePlanThenPoll(ctx context.Context, id CommitmentPlanId) error
CommitmentPlansDeletePlanThenPoll performs CommitmentPlansDeletePlan then polls until it's completed
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansGetPlan ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansGetPlan(ctx context.Context, id CommitmentPlanId) (result CommitmentPlansGetPlanOperationResponse, err error)
CommitmentPlansGetPlan ...
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroup ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result CommitmentPlansListPlansByResourceGroupOperationResponse, err error)
CommitmentPlansListPlansByResourceGroup ...
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroupComplete ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (CommitmentPlansListPlansByResourceGroupCompleteResult, error)
CommitmentPlansListPlansByResourceGroupComplete retrieves all the results into a single object
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroupCompleteMatchingPredicate ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate CommitmentPlanOperationPredicate) (result CommitmentPlansListPlansByResourceGroupCompleteResult, err error)
CommitmentPlansListPlansByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscription ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscription(ctx context.Context, id commonids.SubscriptionId) (result CommitmentPlansListPlansBySubscriptionOperationResponse, err error)
CommitmentPlansListPlansBySubscription ...
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscriptionComplete ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (CommitmentPlansListPlansBySubscriptionCompleteResult, error)
CommitmentPlansListPlansBySubscriptionComplete retrieves all the results into a single object
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscriptionCompleteMatchingPredicate ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansListPlansBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate CommitmentPlanOperationPredicate) (result CommitmentPlansListPlansBySubscriptionCompleteResult, err error)
CommitmentPlansListPlansBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansUpdatePlan ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansUpdatePlan(ctx context.Context, id CommitmentPlanId, input PatchResourceTagsAndSku) (result CommitmentPlansUpdatePlanOperationResponse, err error)
CommitmentPlansUpdatePlan ...
func (CognitiveServicesCommitmentPlansClient) CommitmentPlansUpdatePlanThenPoll ¶
func (c CognitiveServicesCommitmentPlansClient) CommitmentPlansUpdatePlanThenPoll(ctx context.Context, id CommitmentPlanId, input PatchResourceTagsAndSku) error
CommitmentPlansUpdatePlanThenPoll performs CommitmentPlansUpdatePlan then polls until it's completed
type CommitmentPeriod ¶
type CommitmentPeriod struct { Count *int64 `json:"count,omitempty"` EndDate *string `json:"endDate,omitempty"` Quota *CommitmentQuota `json:"quota,omitempty"` StartDate *string `json:"startDate,omitempty"` Tier *string `json:"tier,omitempty"` }
type CommitmentPlan ¶
type CommitmentPlan struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *CommitmentPlanProperties `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type CommitmentPlanId ¶
type CommitmentPlanId struct { SubscriptionId string ResourceGroupName string CommitmentPlanName string }
CommitmentPlanId is a struct representing the Resource ID for a Commitment Plan
func NewCommitmentPlanID ¶
func NewCommitmentPlanID(subscriptionId string, resourceGroupName string, commitmentPlanName string) CommitmentPlanId
NewCommitmentPlanID returns a new CommitmentPlanId struct
func ParseCommitmentPlanID ¶
func ParseCommitmentPlanID(input string) (*CommitmentPlanId, error)
ParseCommitmentPlanID parses 'input' into a CommitmentPlanId
func ParseCommitmentPlanIDInsensitively ¶
func ParseCommitmentPlanIDInsensitively(input string) (*CommitmentPlanId, error)
ParseCommitmentPlanIDInsensitively parses 'input' case-insensitively into a CommitmentPlanId note: this method should only be used for API response data and not user input
func (*CommitmentPlanId) FromParseResult ¶ added in v0.20231127.1171502
func (id *CommitmentPlanId) FromParseResult(input resourceids.ParseResult) error
func (CommitmentPlanId) ID ¶
func (id CommitmentPlanId) ID() string
ID returns the formatted Commitment Plan ID
func (CommitmentPlanId) Segments ¶
func (id CommitmentPlanId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Commitment Plan ID
func (CommitmentPlanId) String ¶
func (id CommitmentPlanId) String() string
String returns a human-readable description of this Commitment Plan ID
type CommitmentPlanOperationPredicate ¶
type CommitmentPlanOperationPredicate struct { Etag *string Id *string Kind *string Location *string Name *string Type *string }
func (CommitmentPlanOperationPredicate) Matches ¶
func (p CommitmentPlanOperationPredicate) Matches(input CommitmentPlan) bool
type CommitmentPlanProperties ¶
type CommitmentPlanProperties struct { AutoRenew *bool `json:"autoRenew,omitempty"` CommitmentPlanGuid *string `json:"commitmentPlanGuid,omitempty"` Current *CommitmentPeriod `json:"current,omitempty"` HostingModel *HostingModel `json:"hostingModel,omitempty"` Last *CommitmentPeriod `json:"last,omitempty"` Next *CommitmentPeriod `json:"next,omitempty"` PlanType *string `json:"planType,omitempty"` ProvisioningIssues *[]string `json:"provisioningIssues,omitempty"` ProvisioningState *CommitmentPlanProvisioningState `json:"provisioningState,omitempty"` }
type CommitmentPlanProvisioningState ¶
type CommitmentPlanProvisioningState string
const ( CommitmentPlanProvisioningStateAccepted CommitmentPlanProvisioningState = "Accepted" CommitmentPlanProvisioningStateCanceled CommitmentPlanProvisioningState = "Canceled" CommitmentPlanProvisioningStateCreating CommitmentPlanProvisioningState = "Creating" CommitmentPlanProvisioningStateDeleting CommitmentPlanProvisioningState = "Deleting" CommitmentPlanProvisioningStateFailed CommitmentPlanProvisioningState = "Failed" CommitmentPlanProvisioningStateMoving CommitmentPlanProvisioningState = "Moving" CommitmentPlanProvisioningStateSucceeded CommitmentPlanProvisioningState = "Succeeded" )
func (*CommitmentPlanProvisioningState) UnmarshalJSON ¶
func (s *CommitmentPlanProvisioningState) UnmarshalJSON(bytes []byte) error
type CommitmentPlansGetPlanOperationResponse ¶
type CommitmentPlansGetPlanOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CommitmentPlan }
type CommitmentPlansListPlansByResourceGroupCompleteResult ¶
type CommitmentPlansListPlansByResourceGroupCompleteResult struct {
Items []CommitmentPlan
}
type CommitmentPlansListPlansByResourceGroupOperationResponse ¶
type CommitmentPlansListPlansByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CommitmentPlan }
type CommitmentPlansListPlansBySubscriptionCompleteResult ¶
type CommitmentPlansListPlansBySubscriptionCompleteResult struct {
Items []CommitmentPlan
}
type CommitmentPlansListPlansBySubscriptionOperationResponse ¶
type CommitmentPlansListPlansBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CommitmentPlan }
type CommitmentQuota ¶
type HostingModel ¶
type HostingModel string
const ( HostingModelConnectedContainer HostingModel = "ConnectedContainer" HostingModelDisconnectedContainer HostingModel = "DisconnectedContainer" HostingModelProvisionedWeb HostingModel = "ProvisionedWeb" HostingModelWeb HostingModel = "Web" )
func (*HostingModel) UnmarshalJSON ¶
func (s *HostingModel) UnmarshalJSON(bytes []byte) error
type PatchResourceTagsAndSku ¶
Source Files ¶
- client.go
- constants.go
- id_commitmentplan.go
- method_commitmentplanscreateorupdateplan.go
- method_commitmentplansdeleteplan.go
- method_commitmentplansgetplan.go
- method_commitmentplanslistplansbyresourcegroup.go
- method_commitmentplanslistplansbysubscription.go
- method_commitmentplansupdateplan.go
- model_commitmentperiod.go
- model_commitmentplan.go
- model_commitmentplanproperties.go
- model_commitmentquota.go
- model_patchresourcetagsandsku.go
- model_sku.go
- predicates.go
- version.go