Versions in this module Expand all Collapse all v0 v0.20241126.2320 Nov 26, 2024 v0.20241126.1723 Nov 26, 2024 Changes in this version + func PossibleValuesForAppliedScopeType() []string + func PossibleValuesForBillingPlan() []string + func PossibleValuesForCommitmentGrain() []string + func PossibleValuesForProvisioningState() []string + func PossibleValuesForSavingsPlanTerm() []string + func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error) + func ValidateSavingsPlanID(input interface{}, key string) (warnings []string, errors []error) + func ValidateSavingsPlanOrderID(input interface{}, key string) (warnings []string, errors []error) + type AppliedScopeProperties struct + DisplayName *string + ManagementGroupId *string + ResourceGroupId *string + SubscriptionId *string + TenantId *string + type AppliedScopeType string + const AppliedScopeTypeManagementGroup + const AppliedScopeTypeShared + const AppliedScopeTypeSingle + func (s *AppliedScopeType) UnmarshalJSON(bytes []byte) error + type BillingAccountId struct + BillingAccountName string + func NewBillingAccountID(billingAccountName string) BillingAccountId + func ParseBillingAccountID(input string) (*BillingAccountId, error) + func ParseBillingAccountIDInsensitively(input string) (*BillingAccountId, error) + func (id *BillingAccountId) FromParseResult(input resourceids.ParseResult) error + func (id BillingAccountId) ID() string + func (id BillingAccountId) Segments() []resourceids.Segment + func (id BillingAccountId) String() string + type BillingPlan string + const BillingPlanPOneM + func (s *BillingPlan) UnmarshalJSON(bytes []byte) error + type Commitment struct + Amount *float64 + CurrencyCode *string + Grain *CommitmentGrain + type CommitmentGrain string + const CommitmentGrainHourly + func (s *CommitmentGrain) UnmarshalJSON(bytes []byte) error + type ExtendedStatusInfo struct + Message *string + Properties *ExtendedStatusInfoProperties + StatusCode *string + type ExtendedStatusInfoProperties struct + SubscriptionId *string + type GetByBillingAccountOperationOptions struct + Expand *string + func DefaultGetByBillingAccountOperationOptions() GetByBillingAccountOperationOptions + func (o GetByBillingAccountOperationOptions) ToHeaders() *client.Headers + func (o GetByBillingAccountOperationOptions) ToOData() *odata.Query + func (o GetByBillingAccountOperationOptions) ToQuery() *client.QueryParams + type GetByBillingAccountOperationResponse struct + HttpResponse *http.Response + Model *SavingsPlanModel + OData *odata.OData + type ListByBillingAccountCompleteResult struct + Items []SavingsPlanModel + LatestHttpResponse *http.Response + type ListByBillingAccountCustomPager struct + NextLink *odata.Link + func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link + type ListByBillingAccountOperationOptions struct + Filter *string + OrderBy *string + RefreshSummary *string + SelectedState *string + Skiptoken *int64 + Take *int64 + func DefaultListByBillingAccountOperationOptions() ListByBillingAccountOperationOptions + func (o ListByBillingAccountOperationOptions) ToHeaders() *client.Headers + func (o ListByBillingAccountOperationOptions) ToOData() *odata.Query + func (o ListByBillingAccountOperationOptions) ToQuery() *client.QueryParams + type ListByBillingAccountOperationResponse struct + HttpResponse *http.Response + Model *[]SavingsPlanModel + OData *odata.OData + type ListBySavingsPlanOrderCompleteResult struct + Items []SavingsPlanModel + LatestHttpResponse *http.Response + type ListBySavingsPlanOrderCustomPager struct + NextLink *odata.Link + func (p *ListBySavingsPlanOrderCustomPager) NextPageLink() *odata.Link + type ListBySavingsPlanOrderOperationResponse struct + HttpResponse *http.Response + Model *[]SavingsPlanModel + OData *odata.OData + type ProvisioningState string + const ProvisioningStateCanceled + const ProvisioningStateConfirmedBilling + const ProvisioningStateCreated + const ProvisioningStateCreating + const ProvisioningStateExpired + const ProvisioningStateFailed + const ProvisioningStatePendingBilling + const ProvisioningStateSucceeded + func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error + type PurchaseRequest struct + Properties *PurchaseRequestProperties + Sku *Sku + type PurchaseRequestProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + BillingPlan *BillingPlan + BillingScopeId *string + Commitment *Commitment + DisplayName *string + Renew *bool + Term *SavingsPlanTerm + type RenewProperties struct + PurchaseProperties *PurchaseRequest + type SavingsPlanClient struct + Client *resourcemanager.Client + func NewSavingsPlanClientWithBaseURI(sdkApi sdkEnv.Api) (*SavingsPlanClient, error) + func (c SavingsPlanClient) GetByBillingAccount(ctx context.Context, id SavingsPlanId, ...) (result GetByBillingAccountOperationResponse, err error) + func (c SavingsPlanClient) ListByBillingAccount(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountOperationResponse, err error) + func (c SavingsPlanClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId, ...) (ListByBillingAccountCompleteResult, error) + func (c SavingsPlanClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountCompleteResult, err error) + func (c SavingsPlanClient) ListBySavingsPlanOrder(ctx context.Context, id SavingsPlanOrderId) (result ListBySavingsPlanOrderOperationResponse, err error) + func (c SavingsPlanClient) ListBySavingsPlanOrderComplete(ctx context.Context, id SavingsPlanOrderId) (ListBySavingsPlanOrderCompleteResult, error) + func (c SavingsPlanClient) ListBySavingsPlanOrderCompleteMatchingPredicate(ctx context.Context, id SavingsPlanOrderId, ...) (result ListBySavingsPlanOrderCompleteResult, err error) + func (c SavingsPlanClient) UpdateByBillingAccount(ctx context.Context, id SavingsPlanId, input SavingsPlanUpdateRequest) (result UpdateByBillingAccountOperationResponse, err error) + func (c SavingsPlanClient) UpdateByBillingAccountThenPoll(ctx context.Context, id SavingsPlanId, input SavingsPlanUpdateRequest) error + func (c SavingsPlanClient) ValidateUpdateByBillingAccount(ctx context.Context, id SavingsPlanId, input SavingsPlanUpdateValidateRequest) (result ValidateUpdateByBillingAccountOperationResponse, err error) + type SavingsPlanId struct + BillingAccountName string + SavingsPlanId string + SavingsPlanOrderId string + func NewSavingsPlanID(billingAccountName string, savingsPlanOrderId string, savingsPlanId string) SavingsPlanId + func ParseSavingsPlanID(input string) (*SavingsPlanId, error) + func ParseSavingsPlanIDInsensitively(input string) (*SavingsPlanId, error) + func (id *SavingsPlanId) FromParseResult(input resourceids.ParseResult) error + func (id SavingsPlanId) ID() string + func (id SavingsPlanId) Segments() []resourceids.Segment + func (id SavingsPlanId) String() string + type SavingsPlanModel struct + Id *string + Name *string + Properties *SavingsPlanModelProperties + Sku Sku + SystemData *systemdata.SystemData + Tags *map[string]string + Type *string + type SavingsPlanModelOperationPredicate struct + Id *string + Name *string + Type *string + func (p SavingsPlanModelOperationPredicate) Matches(input SavingsPlanModel) bool + type SavingsPlanModelProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + BenefitStartTime *string + BillingAccountId *string + BillingPlan *BillingPlan + BillingProfileId *string + BillingScopeId *string + Commitment *Commitment + CustomerId *string + DisplayName *string + DisplayProvisioningState *string + EffectiveDateTime *string + ExpiryDateTime *string + ExtendedStatusInfo *ExtendedStatusInfo + ProductCode *string + ProvisioningState *ProvisioningState + PurchaseDateTime *string + Renew *bool + RenewDestination *string + RenewProperties *RenewProperties + RenewSource *string + Term *SavingsPlanTerm + UserFriendlyAppliedScopeType *string + Utilization *Utilization + func (o *SavingsPlanModelProperties) GetBenefitStartTimeAsTime() (*time.Time, error) + func (o *SavingsPlanModelProperties) GetEffectiveDateTimeAsTime() (*time.Time, error) + func (o *SavingsPlanModelProperties) GetExpiryDateTimeAsTime() (*time.Time, error) + func (o *SavingsPlanModelProperties) GetPurchaseDateTimeAsTime() (*time.Time, error) + func (o *SavingsPlanModelProperties) SetBenefitStartTimeAsTime(input time.Time) + func (o *SavingsPlanModelProperties) SetEffectiveDateTimeAsTime(input time.Time) + func (o *SavingsPlanModelProperties) SetExpiryDateTimeAsTime(input time.Time) + func (o *SavingsPlanModelProperties) SetPurchaseDateTimeAsTime(input time.Time) + type SavingsPlanOrderId struct + BillingAccountName string + SavingsPlanOrderId string + func NewSavingsPlanOrderID(billingAccountName string, savingsPlanOrderId string) SavingsPlanOrderId + func ParseSavingsPlanOrderID(input string) (*SavingsPlanOrderId, error) + func ParseSavingsPlanOrderIDInsensitively(input string) (*SavingsPlanOrderId, error) + func (id *SavingsPlanOrderId) FromParseResult(input resourceids.ParseResult) error + func (id SavingsPlanOrderId) ID() string + func (id SavingsPlanOrderId) Segments() []resourceids.Segment + func (id SavingsPlanOrderId) String() string + type SavingsPlanTerm string + const SavingsPlanTermPFiveY + const SavingsPlanTermPOneY + const SavingsPlanTermPThreeY + func (s *SavingsPlanTerm) UnmarshalJSON(bytes []byte) error + type SavingsPlanUpdateRequest struct + Properties *SavingsPlanUpdateRequestProperties + Sku *Sku + Tags *map[string]string + type SavingsPlanUpdateRequestProperties struct + AppliedScopeProperties *AppliedScopeProperties + AppliedScopeType *AppliedScopeType + DisplayName *string + Renew *bool + RenewProperties *RenewProperties + type SavingsPlanUpdateValidateRequest struct + Benefits *[]SavingsPlanUpdateRequestProperties + type SavingsPlanValidResponseProperty struct + Reason *string + ReasonCode *string + Valid *bool + type SavingsPlanValidateResponse struct + Benefits *[]SavingsPlanValidResponseProperty + NextLink *string + type Sku struct + Name *string + type UpdateByBillingAccountOperationResponse struct + HttpResponse *http.Response + Model *SavingsPlanModel + OData *odata.OData + Poller pollers.Poller + type Utilization struct + Aggregates *[]UtilizationAggregates + Trend *string + type UtilizationAggregates struct + Grain *float64 + GrainUnit *string + Value *float64 + ValueUnit *string + type ValidateUpdateByBillingAccountOperationResponse struct + HttpResponse *http.Response + Model *SavingsPlanValidateResponse + OData *odata.OData