Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2022 Changes in this version + const DefaultBaseURI + func UserAgent() string + func Version() string + type BaseClient struct + BaseURI string + SubscriptionID string + func New(subscriptionID string) BaseClient + func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient + type CatalogSku struct + Capabilities *[]SkuCapability + Capacity *SkuCapacity + Costs *[]SkuCost + Locations *[]string + Name *string + ResourceType *string + Restrictions *[]SkuRestrictions + Tier *string + func (cs CatalogSku) MarshalJSON() ([]byte, error) + type Client struct + func NewClient(subscriptionID string) Client + func NewClientWithBaseURI(baseURI string, subscriptionID string) Client + func (client Client) CreateOrUpdate(ctx context.Context, createOrUpdatePayload CommitmentPlan, ...) (result CommitmentPlan, err error) + func (client Client) CreateOrUpdatePreparer(ctx context.Context, createOrUpdatePayload CommitmentPlan, ...) (*http.Request, error) + func (client Client) CreateOrUpdateResponder(resp *http.Response) (result CommitmentPlan, err error) + func (client Client) CreateOrUpdateSender(req *http.Request) (*http.Response, error) + func (client Client) Get(ctx context.Context, resourceGroupName string, commitmentPlanName string) (result CommitmentPlan, err error) + func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, commitmentPlanName string) (*http.Request, error) + func (client Client) GetResponder(resp *http.Response) (result CommitmentPlan, err error) + func (client Client) GetSender(req *http.Request) (*http.Response, error) + func (client Client) List(ctx context.Context, skipToken string) (result ListResultPage, err error) + func (client Client) ListComplete(ctx context.Context, skipToken string) (result ListResultIterator, err error) + func (client Client) ListInResourceGroup(ctx context.Context, resourceGroupName string, skipToken string) (result ListResultPage, err error) + func (client Client) ListInResourceGroupComplete(ctx context.Context, resourceGroupName string, skipToken string) (result ListResultIterator, err error) + func (client Client) ListInResourceGroupPreparer(ctx context.Context, resourceGroupName string, skipToken string) (*http.Request, error) + func (client Client) ListInResourceGroupResponder(resp *http.Response) (result ListResult, err error) + func (client Client) ListInResourceGroupSender(req *http.Request) (*http.Response, error) + func (client Client) ListPreparer(ctx context.Context, skipToken string) (*http.Request, error) + func (client Client) ListResponder(resp *http.Response) (result ListResult, err error) + func (client Client) ListSender(req *http.Request) (*http.Response, error) + func (client Client) Patch(ctx context.Context, patchPayload PatchPayload, resourceGroupName string, ...) (result CommitmentPlan, err error) + func (client Client) PatchPreparer(ctx context.Context, patchPayload PatchPayload, resourceGroupName string, ...) (*http.Request, error) + func (client Client) PatchResponder(resp *http.Response) (result CommitmentPlan, err error) + func (client Client) PatchSender(req *http.Request) (*http.Response, error) + func (client Client) Remove(ctx context.Context, resourceGroupName string, commitmentPlanName string) (result autorest.Response, err error) + func (client Client) RemovePreparer(ctx context.Context, resourceGroupName string, commitmentPlanName string) (*http.Request, error) + func (client Client) RemoveResponder(resp *http.Response) (result autorest.Response, err error) + func (client Client) RemoveSender(req *http.Request) (*http.Response, error) + type CommitmentAssociation struct + Etag *string + ID *string + Location *string + Name *string + Properties *CommitmentAssociationProperties + Tags map[string]*string + Type *string + func (ca CommitmentAssociation) MarshalJSON() ([]byte, error) + type CommitmentAssociationListResult struct + NextLink *string + Value *[]CommitmentAssociation + func (calr CommitmentAssociationListResult) IsEmpty() bool + type CommitmentAssociationListResultIterator struct + func NewCommitmentAssociationListResultIterator(page CommitmentAssociationListResultPage) CommitmentAssociationListResultIterator + func (iter *CommitmentAssociationListResultIterator) Next() error + func (iter *CommitmentAssociationListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter CommitmentAssociationListResultIterator) NotDone() bool + func (iter CommitmentAssociationListResultIterator) Response() CommitmentAssociationListResult + func (iter CommitmentAssociationListResultIterator) Value() CommitmentAssociation + type CommitmentAssociationListResultPage struct + func NewCommitmentAssociationListResultPage(cur CommitmentAssociationListResult, ...) CommitmentAssociationListResultPage + func (page *CommitmentAssociationListResultPage) Next() error + func (page *CommitmentAssociationListResultPage) NextWithContext(ctx context.Context) (err error) + func (page CommitmentAssociationListResultPage) NotDone() bool + func (page CommitmentAssociationListResultPage) Response() CommitmentAssociationListResult + func (page CommitmentAssociationListResultPage) Values() []CommitmentAssociation + type CommitmentAssociationProperties struct + AssociatedResourceID *string + CommitmentPlanID *string + CreationDate *date.Time + func (capVar CommitmentAssociationProperties) MarshalJSON() ([]byte, error) + type CommitmentAssociationsClient struct + func NewCommitmentAssociationsClient(subscriptionID string) CommitmentAssociationsClient + func NewCommitmentAssociationsClientWithBaseURI(baseURI string, subscriptionID string) CommitmentAssociationsClient + func (client CommitmentAssociationsClient) Get(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (result CommitmentAssociation, err error) + func (client CommitmentAssociationsClient) GetPreparer(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (*http.Request, error) + func (client CommitmentAssociationsClient) GetResponder(resp *http.Response) (result CommitmentAssociation, err error) + func (client CommitmentAssociationsClient) GetSender(req *http.Request) (*http.Response, error) + func (client CommitmentAssociationsClient) List(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (result CommitmentAssociationListResultPage, err error) + func (client CommitmentAssociationsClient) ListComplete(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (result CommitmentAssociationListResultIterator, err error) + func (client CommitmentAssociationsClient) ListPreparer(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (*http.Request, error) + func (client CommitmentAssociationsClient) ListResponder(resp *http.Response) (result CommitmentAssociationListResult, err error) + func (client CommitmentAssociationsClient) ListSender(req *http.Request) (*http.Response, error) + func (client CommitmentAssociationsClient) Move(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (result CommitmentAssociation, err error) + func (client CommitmentAssociationsClient) MovePreparer(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (*http.Request, error) + func (client CommitmentAssociationsClient) MoveResponder(resp *http.Response) (result CommitmentAssociation, err error) + func (client CommitmentAssociationsClient) MoveSender(req *http.Request) (*http.Response, error) + type CommitmentPlan struct + Etag *string + ID *string + Location *string + Name *string + Properties *Properties + Sku *ResourceSku + Tags map[string]*string + Type *string + func (cp CommitmentPlan) MarshalJSON() ([]byte, error) + type ListResult struct + NextLink *string + Value *[]CommitmentPlan + func (lr ListResult) IsEmpty() bool + type ListResultIterator struct + func NewListResultIterator(page ListResultPage) ListResultIterator + func (iter *ListResultIterator) Next() error + func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter ListResultIterator) NotDone() bool + func (iter ListResultIterator) Response() ListResult + func (iter ListResultIterator) Value() CommitmentPlan + type ListResultPage struct + func NewListResultPage(cur ListResult, ...) ListResultPage + func (page *ListResultPage) Next() error + func (page *ListResultPage) NextWithContext(ctx context.Context) (err error) + func (page ListResultPage) NotDone() bool + func (page ListResultPage) Response() ListResult + func (page ListResultPage) Values() []CommitmentPlan + type MoveCommitmentAssociationRequest struct + DestinationPlanID *string + type OperationDisplayInfo struct + Description *string + Operation *string + Provider *string + Resource *string + func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error) + type OperationEntity struct + Display *OperationDisplayInfo + Name *string + func (oe OperationEntity) MarshalJSON() ([]byte, error) + type OperationEntityListResult struct + Value *[]OperationEntity + func (oelr OperationEntityListResult) MarshalJSON() ([]byte, error) + type OperationsClient struct + func NewOperationsClient(subscriptionID string) OperationsClient + func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient + func (client OperationsClient) List(ctx context.Context) (result OperationEntityListResult, err error) + func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client OperationsClient) ListResponder(resp *http.Response) (result OperationEntityListResult, err error) + func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) + type PatchPayload struct + Sku *ResourceSku + Tags map[string]*string + func (pp PatchPayload) MarshalJSON() ([]byte, error) + type PlanQuantity struct + Allowance *float64 + Amount *float64 + IncludedQuantityMeter *string + OverageMeter *string + func (pq PlanQuantity) MarshalJSON() ([]byte, error) + type PlanUsageHistory struct + PlanDeletionOverage map[string]*float64 + PlanMigrationOverage map[string]*float64 + PlanQuantitiesAfterUsage map[string]*float64 + PlanQuantitiesBeforeUsage map[string]*float64 + PlanUsageOverage map[string]*float64 + Usage map[string]*float64 + UsageDate *date.Time + func (puh PlanUsageHistory) MarshalJSON() ([]byte, error) + type PlanUsageHistoryListResult struct + NextLink *string + Value *[]PlanUsageHistory + func (puhlr PlanUsageHistoryListResult) IsEmpty() bool + type PlanUsageHistoryListResultIterator struct + func NewPlanUsageHistoryListResultIterator(page PlanUsageHistoryListResultPage) PlanUsageHistoryListResultIterator + func (iter *PlanUsageHistoryListResultIterator) Next() error + func (iter *PlanUsageHistoryListResultIterator) NextWithContext(ctx context.Context) (err error) + func (iter PlanUsageHistoryListResultIterator) NotDone() bool + func (iter PlanUsageHistoryListResultIterator) Response() PlanUsageHistoryListResult + func (iter PlanUsageHistoryListResultIterator) Value() PlanUsageHistory + type PlanUsageHistoryListResultPage struct + func NewPlanUsageHistoryListResultPage(cur PlanUsageHistoryListResult, ...) PlanUsageHistoryListResultPage + func (page *PlanUsageHistoryListResultPage) Next() error + func (page *PlanUsageHistoryListResultPage) NextWithContext(ctx context.Context) (err error) + func (page PlanUsageHistoryListResultPage) NotDone() bool + func (page PlanUsageHistoryListResultPage) Response() PlanUsageHistoryListResult + func (page PlanUsageHistoryListResultPage) Values() []PlanUsageHistory + type Properties struct + ChargeForOverage *bool + ChargeForPlan *bool + CreationDate *date.Time + IncludedQuantities map[string]*PlanQuantity + MaxAssociationLimit *int32 + MaxCapacityLimit *int32 + MinCapacityLimit *int32 + PlanMeter *string + RefillFrequencyInDays *int32 + SuspendPlanOnOverage *bool + func (p Properties) MarshalJSON() ([]byte, error) + type Resource struct + ID *string + Location *string + Name *string + Tags map[string]*string + Type *string + func (r Resource) MarshalJSON() ([]byte, error) + type ResourceSku struct + Capacity *int32 + Name *string + Tier *string + type ResourceSkuRestrictionsReasonCode string + const NotAvailableForSubscription + const QuotaID + func PossibleResourceSkuRestrictionsReasonCodeValues() []ResourceSkuRestrictionsReasonCode + type ResourceSkuRestrictionsType string + const Location + const Zone + func PossibleResourceSkuRestrictionsTypeValues() []ResourceSkuRestrictionsType + type SkuCapability struct + Name *string + Value *string + func (sc SkuCapability) MarshalJSON() ([]byte, error) + type SkuCapacity struct + Default *int64 + Maximum *int64 + Minimum *int64 + ScaleType SkuCapacityScaleType + func (sc SkuCapacity) MarshalJSON() ([]byte, error) + type SkuCapacityScaleType string + const Automatic + const Manual + const None + func PossibleSkuCapacityScaleTypeValues() []SkuCapacityScaleType + type SkuCost struct + ExtendedUnit *string + MeterID *string + Quantity *int64 + func (sc SkuCost) MarshalJSON() ([]byte, error) + type SkuListResult struct + Value *[]CatalogSku + func (slr SkuListResult) MarshalJSON() ([]byte, error) + type SkuRestrictions struct + ReasonCode ResourceSkuRestrictionsReasonCode + Type ResourceSkuRestrictionsType + Values *[]string + func (sr SkuRestrictions) MarshalJSON() ([]byte, error) + type SkusClient struct + func NewSkusClient(subscriptionID string) SkusClient + func NewSkusClientWithBaseURI(baseURI string, subscriptionID string) SkusClient + func (client SkusClient) List(ctx context.Context) (result SkuListResult, err error) + func (client SkusClient) ListPreparer(ctx context.Context) (*http.Request, error) + func (client SkusClient) ListResponder(resp *http.Response) (result SkuListResult, err error) + func (client SkusClient) ListSender(req *http.Request) (*http.Response, error) + type UsageHistoryClient struct + func NewUsageHistoryClient(subscriptionID string) UsageHistoryClient + func NewUsageHistoryClientWithBaseURI(baseURI string, subscriptionID string) UsageHistoryClient + func (client UsageHistoryClient) List(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (result PlanUsageHistoryListResultPage, err error) + func (client UsageHistoryClient) ListComplete(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (result PlanUsageHistoryListResultIterator, err error) + func (client UsageHistoryClient) ListPreparer(ctx context.Context, resourceGroupName string, commitmentPlanName string, ...) (*http.Request, error) + func (client UsageHistoryClient) ListResponder(resp *http.Response) (result PlanUsageHistoryListResult, err error) + func (client UsageHistoryClient) ListSender(req *http.Request) (*http.Response, error)