Documentation ¶
Index ¶
- func PossibleValuesForAutoRenew() []string
- func PossibleValuesForBillingSubscriptionStatus() []string
- func PossibleValuesForSubscriptionEnrollmentAccountStatus() []string
- func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateBillingSubscriptionAliasID(input interface{}, key string) (warnings []string, errors []error)
- type Amount
- type AutoRenew
- type BillingAccountId
- type BillingSubscriptionAlias
- type BillingSubscriptionAliasId
- func NewBillingSubscriptionAliasID(billingAccountName string, billingSubscriptionAliasName string) BillingSubscriptionAliasId
- func ParseBillingSubscriptionAliasID(input string) (*BillingSubscriptionAliasId, error)
- func ParseBillingSubscriptionAliasIDInsensitively(input string) (*BillingSubscriptionAliasId, error)
- type BillingSubscriptionAliasOperationPredicate
- type BillingSubscriptionAliasProperties
- func (o *BillingSubscriptionAliasProperties) GetPurchaseDateAsTime() (*time.Time, error)
- func (o *BillingSubscriptionAliasProperties) GetTermEndDateAsTime() (*time.Time, error)
- func (o *BillingSubscriptionAliasProperties) GetTermStartDateAsTime() (*time.Time, error)
- func (o *BillingSubscriptionAliasProperties) SetPurchaseDateAsTime(input time.Time)
- func (o *BillingSubscriptionAliasProperties) SetTermEndDateAsTime(input time.Time)
- func (o *BillingSubscriptionAliasProperties) SetTermStartDateAsTime(input time.Time)
- type BillingSubscriptionStatus
- type BillingSubscriptionsAliasesClient
- func (c BillingSubscriptionsAliasesClient) CreateOrUpdate(ctx context.Context, id BillingSubscriptionAliasId, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c BillingSubscriptionsAliasesClient) CreateOrUpdateThenPoll(ctx context.Context, id BillingSubscriptionAliasId, ...) error
- func (c BillingSubscriptionsAliasesClient) Get(ctx context.Context, id BillingSubscriptionAliasId) (result GetOperationResponse, err error)
- func (c BillingSubscriptionsAliasesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error)
- func (c BillingSubscriptionsAliasesClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId) (ListByBillingAccountCompleteResult, error)
- func (c BillingSubscriptionsAliasesClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, ...) (result ListByBillingAccountCompleteResult, err error)
- type CreateOrUpdateOperationResponse
- type EnrollmentAccountSubscriptionDetails
- type GetOperationResponse
- type ListByBillingAccountCompleteResult
- type ListByBillingAccountCustomPager
- type ListByBillingAccountOperationResponse
- type NextBillingCycleDetails
- type RenewalTermDetails
- type Reseller
- type SubscriptionEnrollmentAccountStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAutoRenew ¶
func PossibleValuesForAutoRenew() []string
func PossibleValuesForBillingSubscriptionStatus ¶
func PossibleValuesForBillingSubscriptionStatus() []string
func PossibleValuesForSubscriptionEnrollmentAccountStatus ¶
func PossibleValuesForSubscriptionEnrollmentAccountStatus() []string
func ValidateBillingAccountID ¶
ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID
func ValidateBillingSubscriptionAliasID ¶
func ValidateBillingSubscriptionAliasID(input interface{}, key string) (warnings []string, errors []error)
ValidateBillingSubscriptionAliasID checks that 'input' can be parsed as a Billing Subscription Alias ID
Types ¶
type BillingAccountId ¶
type BillingAccountId struct {
BillingAccountName string
}
BillingAccountId is a struct representing the Resource ID for a Billing Account
func NewBillingAccountID ¶
func NewBillingAccountID(billingAccountName string) BillingAccountId
NewBillingAccountID returns a new BillingAccountId struct
func ParseBillingAccountID ¶
func ParseBillingAccountID(input string) (*BillingAccountId, error)
ParseBillingAccountID parses 'input' into a BillingAccountId
func ParseBillingAccountIDInsensitively ¶
func ParseBillingAccountIDInsensitively(input string) (*BillingAccountId, error)
ParseBillingAccountIDInsensitively parses 'input' case-insensitively into a BillingAccountId note: this method should only be used for API response data and not user input
func (*BillingAccountId) FromParseResult ¶
func (id *BillingAccountId) FromParseResult(input resourceids.ParseResult) error
func (BillingAccountId) ID ¶
func (id BillingAccountId) ID() string
ID returns the formatted Billing Account ID
func (BillingAccountId) Segments ¶
func (id BillingAccountId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Account ID
func (BillingAccountId) String ¶
func (id BillingAccountId) String() string
String returns a human-readable description of this Billing Account ID
type BillingSubscriptionAlias ¶
type BillingSubscriptionAlias struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *BillingSubscriptionAliasProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type BillingSubscriptionAliasId ¶
type BillingSubscriptionAliasId struct { BillingAccountName string BillingSubscriptionAliasName string }
BillingSubscriptionAliasId is a struct representing the Resource ID for a Billing Subscription Alias
func NewBillingSubscriptionAliasID ¶
func NewBillingSubscriptionAliasID(billingAccountName string, billingSubscriptionAliasName string) BillingSubscriptionAliasId
NewBillingSubscriptionAliasID returns a new BillingSubscriptionAliasId struct
func ParseBillingSubscriptionAliasID ¶
func ParseBillingSubscriptionAliasID(input string) (*BillingSubscriptionAliasId, error)
ParseBillingSubscriptionAliasID parses 'input' into a BillingSubscriptionAliasId
func ParseBillingSubscriptionAliasIDInsensitively ¶
func ParseBillingSubscriptionAliasIDInsensitively(input string) (*BillingSubscriptionAliasId, error)
ParseBillingSubscriptionAliasIDInsensitively parses 'input' case-insensitively into a BillingSubscriptionAliasId note: this method should only be used for API response data and not user input
func (*BillingSubscriptionAliasId) FromParseResult ¶
func (id *BillingSubscriptionAliasId) FromParseResult(input resourceids.ParseResult) error
func (BillingSubscriptionAliasId) ID ¶
func (id BillingSubscriptionAliasId) ID() string
ID returns the formatted Billing Subscription Alias ID
func (BillingSubscriptionAliasId) Segments ¶
func (id BillingSubscriptionAliasId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Subscription Alias ID
func (BillingSubscriptionAliasId) String ¶
func (id BillingSubscriptionAliasId) String() string
String returns a human-readable description of this Billing Subscription Alias ID
type BillingSubscriptionAliasOperationPredicate ¶
func (BillingSubscriptionAliasOperationPredicate) Matches ¶
func (p BillingSubscriptionAliasOperationPredicate) Matches(input BillingSubscriptionAlias) bool
type BillingSubscriptionAliasProperties ¶
type BillingSubscriptionAliasProperties struct { AutoRenew *AutoRenew `json:"autoRenew,omitempty"` BeneficiaryTenantId *string `json:"beneficiaryTenantId,omitempty"` BillingFrequency *string `json:"billingFrequency,omitempty"` BillingPolicies *map[string]string `json:"billingPolicies,omitempty"` BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"` BillingProfileId *string `json:"billingProfileId,omitempty"` BillingProfileName *string `json:"billingProfileName,omitempty"` BillingSubscriptionId *string `json:"billingSubscriptionId,omitempty"` ConsumptionCostCenter *string `json:"consumptionCostCenter,omitempty"` CustomerDisplayName *string `json:"customerDisplayName,omitempty"` CustomerId *string `json:"customerId,omitempty"` CustomerName *string `json:"customerName,omitempty"` DisplayName *string `json:"displayName,omitempty"` EnrollmentAccountDisplayName *string `json:"enrollmentAccountDisplayName,omitempty"` EnrollmentAccountId *string `json:"enrollmentAccountId,omitempty"` EnrollmentAccountSubscriptionDetails *EnrollmentAccountSubscriptionDetails `json:"enrollmentAccountSubscriptionDetails,omitempty"` InvoiceSectionDisplayName *string `json:"invoiceSectionDisplayName,omitempty"` InvoiceSectionId *string `json:"invoiceSectionId,omitempty"` InvoiceSectionName *string `json:"invoiceSectionName,omitempty"` LastMonthCharges *Amount `json:"lastMonthCharges,omitempty"` MonthToDateCharges *Amount `json:"monthToDateCharges,omitempty"` NextBillingCycleDetails *NextBillingCycleDetails `json:"nextBillingCycleDetails,omitempty"` OfferId *string `json:"offerId,omitempty"` ProductCategory *string `json:"productCategory,omitempty"` ProductType *string `json:"productType,omitempty"` ProductTypeId *string `json:"productTypeId,omitempty"` PurchaseDate *string `json:"purchaseDate,omitempty"` Quantity *int64 `json:"quantity,omitempty"` RenewalTermDetails *RenewalTermDetails `json:"renewalTermDetails,omitempty"` Reseller *Reseller `json:"reseller,omitempty"` SkuDescription *string `json:"skuDescription,omitempty"` SkuId *string `json:"skuId,omitempty"` Status *BillingSubscriptionStatus `json:"status,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` SuspensionReasons *[]string `json:"suspensionReasons,omitempty"` TermDuration *string `json:"termDuration,omitempty"` TermEndDate *string `json:"termEndDate,omitempty"` TermStartDate *string `json:"termStartDate,omitempty"` }
func (*BillingSubscriptionAliasProperties) GetPurchaseDateAsTime ¶
func (o *BillingSubscriptionAliasProperties) GetPurchaseDateAsTime() (*time.Time, error)
func (*BillingSubscriptionAliasProperties) GetTermEndDateAsTime ¶
func (o *BillingSubscriptionAliasProperties) GetTermEndDateAsTime() (*time.Time, error)
func (*BillingSubscriptionAliasProperties) GetTermStartDateAsTime ¶
func (o *BillingSubscriptionAliasProperties) GetTermStartDateAsTime() (*time.Time, error)
func (*BillingSubscriptionAliasProperties) SetPurchaseDateAsTime ¶
func (o *BillingSubscriptionAliasProperties) SetPurchaseDateAsTime(input time.Time)
func (*BillingSubscriptionAliasProperties) SetTermEndDateAsTime ¶
func (o *BillingSubscriptionAliasProperties) SetTermEndDateAsTime(input time.Time)
func (*BillingSubscriptionAliasProperties) SetTermStartDateAsTime ¶
func (o *BillingSubscriptionAliasProperties) SetTermStartDateAsTime(input time.Time)
type BillingSubscriptionStatus ¶
type BillingSubscriptionStatus string
const ( BillingSubscriptionStatusActive BillingSubscriptionStatus = "Active" BillingSubscriptionStatusAutoRenew BillingSubscriptionStatus = "AutoRenew" BillingSubscriptionStatusCancelled BillingSubscriptionStatus = "Cancelled" BillingSubscriptionStatusDeleted BillingSubscriptionStatus = "Deleted" BillingSubscriptionStatusDisabled BillingSubscriptionStatus = "Disabled" BillingSubscriptionStatusExpired BillingSubscriptionStatus = "Expired" BillingSubscriptionStatusExpiring BillingSubscriptionStatus = "Expiring" BillingSubscriptionStatusSuspended BillingSubscriptionStatus = "Suspended" BillingSubscriptionStatusUnknown BillingSubscriptionStatus = "Unknown" BillingSubscriptionStatusWarned BillingSubscriptionStatus = "Warned" )
func (*BillingSubscriptionStatus) UnmarshalJSON ¶
func (s *BillingSubscriptionStatus) UnmarshalJSON(bytes []byte) error
type BillingSubscriptionsAliasesClient ¶
type BillingSubscriptionsAliasesClient struct {
Client *resourcemanager.Client
}
func NewBillingSubscriptionsAliasesClientWithBaseURI ¶
func NewBillingSubscriptionsAliasesClientWithBaseURI(sdkApi sdkEnv.Api) (*BillingSubscriptionsAliasesClient, error)
func (BillingSubscriptionsAliasesClient) CreateOrUpdate ¶
func (c BillingSubscriptionsAliasesClient) CreateOrUpdate(ctx context.Context, id BillingSubscriptionAliasId, input BillingSubscriptionAlias) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (BillingSubscriptionsAliasesClient) CreateOrUpdateThenPoll ¶
func (c BillingSubscriptionsAliasesClient) CreateOrUpdateThenPoll(ctx context.Context, id BillingSubscriptionAliasId, input BillingSubscriptionAlias) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (BillingSubscriptionsAliasesClient) Get ¶
func (c BillingSubscriptionsAliasesClient) Get(ctx context.Context, id BillingSubscriptionAliasId) (result GetOperationResponse, err error)
Get ...
func (BillingSubscriptionsAliasesClient) ListByBillingAccount ¶
func (c BillingSubscriptionsAliasesClient) ListByBillingAccount(ctx context.Context, id BillingAccountId) (result ListByBillingAccountOperationResponse, err error)
ListByBillingAccount ...
func (BillingSubscriptionsAliasesClient) ListByBillingAccountComplete ¶
func (c BillingSubscriptionsAliasesClient) ListByBillingAccountComplete(ctx context.Context, id BillingAccountId) (ListByBillingAccountCompleteResult, error)
ListByBillingAccountComplete retrieves all the results into a single object
func (BillingSubscriptionsAliasesClient) ListByBillingAccountCompleteMatchingPredicate ¶
func (c BillingSubscriptionsAliasesClient) ListByBillingAccountCompleteMatchingPredicate(ctx context.Context, id BillingAccountId, predicate BillingSubscriptionAliasOperationPredicate) (result ListByBillingAccountCompleteResult, err error)
ListByBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate
type EnrollmentAccountSubscriptionDetails ¶
type EnrollmentAccountSubscriptionDetails struct { EnrollmentAccountStartDate *string `json:"enrollmentAccountStartDate,omitempty"` SubscriptionEnrollmentAccountStatus *SubscriptionEnrollmentAccountStatus `json:"subscriptionEnrollmentAccountStatus,omitempty"` }
func (*EnrollmentAccountSubscriptionDetails) GetEnrollmentAccountStartDateAsTime ¶
func (o *EnrollmentAccountSubscriptionDetails) GetEnrollmentAccountStartDateAsTime() (*time.Time, error)
func (*EnrollmentAccountSubscriptionDetails) SetEnrollmentAccountStartDateAsTime ¶
func (o *EnrollmentAccountSubscriptionDetails) SetEnrollmentAccountStartDateAsTime(input time.Time)
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *BillingSubscriptionAlias }
type ListByBillingAccountCompleteResult ¶
type ListByBillingAccountCompleteResult struct { LatestHttpResponse *http.Response Items []BillingSubscriptionAlias }
type ListByBillingAccountCustomPager ¶ added in v0.20240628.1153531
func (*ListByBillingAccountCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByBillingAccountCustomPager) NextPageLink() *odata.Link
type ListByBillingAccountOperationResponse ¶
type ListByBillingAccountOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]BillingSubscriptionAlias }
type NextBillingCycleDetails ¶
type NextBillingCycleDetails struct {
BillingFrequency *string `json:"billingFrequency,omitempty"`
}
type RenewalTermDetails ¶
type SubscriptionEnrollmentAccountStatus ¶
type SubscriptionEnrollmentAccountStatus string
const ( SubscriptionEnrollmentAccountStatusActive SubscriptionEnrollmentAccountStatus = "Active" SubscriptionEnrollmentAccountStatusCancelled SubscriptionEnrollmentAccountStatus = "Cancelled" SubscriptionEnrollmentAccountStatusDeleted SubscriptionEnrollmentAccountStatus = "Deleted" SubscriptionEnrollmentAccountStatusExpired SubscriptionEnrollmentAccountStatus = "Expired" SubscriptionEnrollmentAccountStatusTransferredOut SubscriptionEnrollmentAccountStatus = "TransferredOut" SubscriptionEnrollmentAccountStatusTransferring SubscriptionEnrollmentAccountStatus = "Transferring" )
func (*SubscriptionEnrollmentAccountStatus) UnmarshalJSON ¶
func (s *SubscriptionEnrollmentAccountStatus) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_billingaccount.go
- id_billingsubscriptionalias.go
- method_createorupdate.go
- method_get.go
- method_listbybillingaccount.go
- model_amount.go
- model_billingsubscriptionalias.go
- model_billingsubscriptionaliasproperties.go
- model_enrollmentaccountsubscriptiondetails.go
- model_nextbillingcycledetails.go
- model_renewaltermdetails.go
- model_reseller.go
- predicates.go
- version.go