Documentation ¶
Index ¶
- func PossibleValuesForHostingModel() []string
- func ValidateAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateCommitmentPlanID(input interface{}, key string) (warnings []string, errors []error)
- type AccountId
- type CommitmentPeriod
- type CommitmentPlan
- type CommitmentPlanId
- type CommitmentPlanOperationPredicate
- type CommitmentPlanProperties
- type CommitmentPlansClient
- func (c CommitmentPlansClient) CreateOrUpdate(ctx context.Context, id CommitmentPlanId, input CommitmentPlan) (result CreateOrUpdateOperationResponse, err error)
- func (c CommitmentPlansClient) Delete(ctx context.Context, id CommitmentPlanId) (result DeleteOperationResponse, err error)
- func (c CommitmentPlansClient) DeleteThenPoll(ctx context.Context, id CommitmentPlanId) error
- func (c CommitmentPlansClient) Get(ctx context.Context, id CommitmentPlanId) (result GetOperationResponse, err error)
- func (c CommitmentPlansClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error)
- func (c CommitmentPlansClient) ListComplete(ctx context.Context, id AccountId) (ListCompleteResult, error)
- func (c CommitmentPlansClient) ListCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate CommitmentPlanOperationPredicate) (result ListCompleteResult, err error)
- type CommitmentQuota
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type HostingModel
- type ListCompleteResult
- type ListOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForHostingModel ¶
func PossibleValuesForHostingModel() []string
func ValidateAccountID ¶
ValidateAccountID checks that 'input' can be parsed as a Account ID
func ValidateCommitmentPlanID ¶
ValidateCommitmentPlanID checks that 'input' can be parsed as a Commitment Plan ID
Types ¶
type AccountId ¶
AccountId is a struct representing the Resource ID for a Account
func NewAccountID ¶
NewAccountID returns a new AccountId struct
func ParseAccountID ¶
ParseAccountID parses 'input' into a AccountId
func ParseAccountIDInsensitively ¶
ParseAccountIDInsensitively parses 'input' case-insensitively into a AccountId note: this method should only be used for API response data and not user input
func (AccountId) Segments ¶
func (id AccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Account ID
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"` Name *string `json:"name,omitempty"` Properties *CommitmentPlanProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type CommitmentPlanId ¶
type CommitmentPlanId struct { SubscriptionId string ResourceGroupName string AccountName string CommitmentPlanName string }
CommitmentPlanId is a struct representing the Resource ID for a Commitment Plan
func NewCommitmentPlanID ¶
func NewCommitmentPlanID(subscriptionId string, resourceGroupName string, accountName 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) 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 ¶
func (CommitmentPlanOperationPredicate) Matches ¶
func (p CommitmentPlanOperationPredicate) Matches(input CommitmentPlan) bool
type CommitmentPlanProperties ¶
type CommitmentPlanProperties struct { AutoRenew *bool `json:"autoRenew,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"` }
type CommitmentPlansClient ¶
type CommitmentPlansClient struct {
Client *resourcemanager.Client
}
func NewCommitmentPlansClientWithBaseURI ¶
func NewCommitmentPlansClientWithBaseURI(api environments.Api) (*CommitmentPlansClient, error)
func (CommitmentPlansClient) CreateOrUpdate ¶
func (c CommitmentPlansClient) CreateOrUpdate(ctx context.Context, id CommitmentPlanId, input CommitmentPlan) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (CommitmentPlansClient) Delete ¶
func (c CommitmentPlansClient) Delete(ctx context.Context, id CommitmentPlanId) (result DeleteOperationResponse, err error)
Delete ...
func (CommitmentPlansClient) DeleteThenPoll ¶
func (c CommitmentPlansClient) DeleteThenPoll(ctx context.Context, id CommitmentPlanId) error
DeleteThenPoll performs Delete then polls until it's completed
func (CommitmentPlansClient) Get ¶
func (c CommitmentPlansClient) Get(ctx context.Context, id CommitmentPlanId) (result GetOperationResponse, err error)
Get ...
func (CommitmentPlansClient) List ¶
func (c CommitmentPlansClient) List(ctx context.Context, id AccountId) (result ListOperationResponse, err error)
List ...
func (CommitmentPlansClient) ListComplete ¶
func (c CommitmentPlansClient) ListComplete(ctx context.Context, id AccountId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (CommitmentPlansClient) ListCompleteMatchingPredicate ¶
func (c CommitmentPlansClient) ListCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate CommitmentPlanOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type CommitmentQuota ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CommitmentPlan }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CommitmentPlan }
type HostingModel ¶
type HostingModel string
const ( HostingModelConnectedContainer HostingModel = "ConnectedContainer" HostingModelDisconnectedContainer HostingModel = "DisconnectedContainer" HostingModelWeb HostingModel = "Web" )
func (*HostingModel) UnmarshalJSON ¶ added in v0.20230503.1093249
func (s *HostingModel) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []CommitmentPlan
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CommitmentPlan }