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) (resp 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) (resp 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"` 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"` 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"` HostingModel *HostingModel `json:"hostingModel,omitempty"` Last *CommitmentPeriod `json:"last"` Next *CommitmentPeriod `json:"next"` PlanType *string `json:"planType,omitempty"` }
type CommitmentPlansClient ¶
type CommitmentPlansClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewCommitmentPlansClientWithBaseURI ¶
func NewCommitmentPlansClientWithBaseURI(endpoint string) CommitmentPlansClient
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) (resp ListOperationResponse, err error)
List ...
func (CommitmentPlansClient) ListComplete ¶
func (c CommitmentPlansClient) ListComplete(ctx context.Context, id AccountId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (CommitmentPlansClient) ListCompleteMatchingPredicate ¶
func (c CommitmentPlansClient) ListCompleteMatchingPredicate(ctx context.Context, id AccountId, predicate CommitmentPlanOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type CommitmentQuota ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *CommitmentPlan }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *CommitmentPlan }
type HostingModel ¶
type HostingModel string
const ( HostingModelConnectedContainer HostingModel = "ConnectedContainer" HostingModelDisconnectedContainer HostingModel = "DisconnectedContainer" HostingModelWeb HostingModel = "Web" )
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []CommitmentPlan
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]CommitmentPlan // 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)