billingsubscription

package
v0.20240627.1143641 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2024-04-01/billingsubscription Documentation

The billingsubscription SDK allows for interaction with the Azure Resource Manager Service billing (API Version 2024-04-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/billing/2024-04-01/billingsubscription"

Client Initialization

client := billingsubscription.NewBillingSubscriptionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BillingSubscriptionClient.AliasesCreateOrUpdate

ctx := context.TODO()
id := billingsubscription.NewBillingSubscriptionAliasID("billingAccountValue", "billingSubscriptionAliasValue")

payload := billingsubscription.BillingSubscriptionAlias{
	// ...
}


if err := client.AliasesCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingSubscriptionClient.AliasesGet

ctx := context.TODO()
id := billingsubscription.NewBillingSubscriptionAliasID("billingAccountValue", "billingSubscriptionAliasValue")

read, err := client.AliasesGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingSubscriptionClient.AliasesListByBillingAccount

ctx := context.TODO()
id := billingsubscription.NewBillingAccountID("billingAccountValue")

// alternatively `client.AliasesListByBillingAccount(ctx, id, billingsubscription.DefaultAliasesListByBillingAccountOperationOptions())` can be used to do batched pagination
items, err := client.AliasesListByBillingAccountComplete(ctx, id, billingsubscription.DefaultAliasesListByBillingAccountOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingSubscriptionClient.Cancel

ctx := context.TODO()
id := billingsubscription.NewBillingAccountBillingSubscriptionID("billingAccountValue", "billingSubscriptionValue")

payload := billingsubscription.CancelSubscriptionRequest{
	// ...
}


if err := client.CancelThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingSubscriptionClient.Delete

ctx := context.TODO()
id := billingsubscription.NewBillingAccountBillingSubscriptionID("billingAccountValue", "billingSubscriptionValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: BillingSubscriptionClient.Get

ctx := context.TODO()
id := billingsubscription.NewBillingAccountBillingSubscriptionID("billingAccountValue", "billingSubscriptionValue")

read, err := client.Get(ctx, id, billingsubscription.DefaultGetOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingSubscriptionClient.GetByBillingProfile

ctx := context.TODO()
id := billingsubscription.NewBillingProfileBillingSubscriptionID("billingAccountValue", "billingProfileValue", "billingSubscriptionValue")

read, err := client.GetByBillingProfile(ctx, id, billingsubscription.DefaultGetByBillingProfileOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: BillingSubscriptionClient.ListByBillingAccount

ctx := context.TODO()
id := billingsubscription.NewBillingAccountID("billingAccountValue")

// alternatively `client.ListByBillingAccount(ctx, id, billingsubscription.DefaultListByBillingAccountOperationOptions())` can be used to do batched pagination
items, err := client.ListByBillingAccountComplete(ctx, id, billingsubscription.DefaultListByBillingAccountOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingSubscriptionClient.ListByBillingProfile

ctx := context.TODO()
id := billingsubscription.NewBillingProfileID("billingAccountValue", "billingProfileValue")

// alternatively `client.ListByBillingProfile(ctx, id, billingsubscription.DefaultListByBillingProfileOperationOptions())` can be used to do batched pagination
items, err := client.ListByBillingProfileComplete(ctx, id, billingsubscription.DefaultListByBillingProfileOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingSubscriptionClient.ListByCustomer

ctx := context.TODO()
id := billingsubscription.NewBillingProfileCustomerID("billingAccountValue", "billingProfileValue", "customerValue")

// alternatively `client.ListByCustomer(ctx, id, billingsubscription.DefaultListByCustomerOperationOptions())` can be used to do batched pagination
items, err := client.ListByCustomerComplete(ctx, id, billingsubscription.DefaultListByCustomerOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingSubscriptionClient.ListByCustomerAtBillingAccount

ctx := context.TODO()
id := billingsubscription.NewCustomerID("billingAccountValue", "customerValue")

// alternatively `client.ListByCustomerAtBillingAccount(ctx, id, billingsubscription.DefaultListByCustomerAtBillingAccountOperationOptions())` can be used to do batched pagination
items, err := client.ListByCustomerAtBillingAccountComplete(ctx, id, billingsubscription.DefaultListByCustomerAtBillingAccountOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingSubscriptionClient.ListByEnrollmentAccount

ctx := context.TODO()
id := billingsubscription.NewEnrollmentAccountID("billingAccountValue", "enrollmentAccountValue")

// alternatively `client.ListByEnrollmentAccount(ctx, id, billingsubscription.DefaultListByEnrollmentAccountOperationOptions())` can be used to do batched pagination
items, err := client.ListByEnrollmentAccountComplete(ctx, id, billingsubscription.DefaultListByEnrollmentAccountOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingSubscriptionClient.ListByInvoiceSection

ctx := context.TODO()
id := billingsubscription.NewInvoiceSectionID("billingAccountValue", "billingProfileValue", "invoiceSectionValue")

// alternatively `client.ListByInvoiceSection(ctx, id, billingsubscription.DefaultListByInvoiceSectionOperationOptions())` can be used to do batched pagination
items, err := client.ListByInvoiceSectionComplete(ctx, id, billingsubscription.DefaultListByInvoiceSectionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: BillingSubscriptionClient.Merge

ctx := context.TODO()
id := billingsubscription.NewBillingAccountBillingSubscriptionID("billingAccountValue", "billingSubscriptionValue")

payload := billingsubscription.BillingSubscriptionMergeRequest{
	// ...
}


if err := client.MergeThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingSubscriptionClient.Move

ctx := context.TODO()
id := billingsubscription.NewBillingAccountBillingSubscriptionID("billingAccountValue", "billingSubscriptionValue")

payload := billingsubscription.MoveBillingSubscriptionRequest{
	// ...
}


if err := client.MoveThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingSubscriptionClient.Split

ctx := context.TODO()
id := billingsubscription.NewBillingAccountBillingSubscriptionID("billingAccountValue", "billingSubscriptionValue")

payload := billingsubscription.BillingSubscriptionSplitRequest{
	// ...
}


if err := client.SplitThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingSubscriptionClient.Update

ctx := context.TODO()
id := billingsubscription.NewBillingAccountBillingSubscriptionID("billingAccountValue", "billingSubscriptionValue")

payload := billingsubscription.BillingSubscriptionPatch{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: BillingSubscriptionClient.ValidateMoveEligibility

ctx := context.TODO()
id := billingsubscription.NewBillingAccountBillingSubscriptionID("billingAccountValue", "billingSubscriptionValue")

payload := billingsubscription.MoveBillingSubscriptionRequest{
	// ...
}


read, err := client.ValidateMoveEligibility(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAutoRenew

func PossibleValuesForAutoRenew() []string

func PossibleValuesForBillingSubscriptionOperationStatus

func PossibleValuesForBillingSubscriptionOperationStatus() []string

func PossibleValuesForBillingSubscriptionStatus

func PossibleValuesForBillingSubscriptionStatus() []string

func PossibleValuesForCancellation

func PossibleValuesForCancellation() []string

func PossibleValuesForCancellationReason

func PossibleValuesForCancellationReason() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForSubscriptionEnrollmentAccountStatus

func PossibleValuesForSubscriptionEnrollmentAccountStatus() []string

func PossibleValuesForSubscriptionStatusReason

func PossibleValuesForSubscriptionStatusReason() []string

func PossibleValuesForSubscriptionTransferValidationErrorCode

func PossibleValuesForSubscriptionTransferValidationErrorCode() []string

func ValidateBillingAccountBillingSubscriptionID

func ValidateBillingAccountBillingSubscriptionID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingAccountBillingSubscriptionID checks that 'input' can be parsed as a Billing Account Billing Subscription ID

func ValidateBillingAccountID

func ValidateBillingAccountID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingAccountID checks that 'input' can be parsed as a Billing Account ID

func ValidateBillingProfileBillingSubscriptionID

func ValidateBillingProfileBillingSubscriptionID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingProfileBillingSubscriptionID checks that 'input' can be parsed as a Billing Profile Billing Subscription ID

func ValidateBillingProfileCustomerID

func ValidateBillingProfileCustomerID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingProfileCustomerID checks that 'input' can be parsed as a Billing Profile Customer ID

func ValidateBillingProfileID

func ValidateBillingProfileID(input interface{}, key string) (warnings []string, errors []error)

ValidateBillingProfileID checks that 'input' can be parsed as a Billing Profile 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

func ValidateCustomerID

func ValidateCustomerID(input interface{}, key string) (warnings []string, errors []error)

ValidateCustomerID checks that 'input' can be parsed as a Customer ID

func ValidateEnrollmentAccountID

func ValidateEnrollmentAccountID(input interface{}, key string) (warnings []string, errors []error)

ValidateEnrollmentAccountID checks that 'input' can be parsed as a Enrollment Account ID

func ValidateInvoiceSectionID

func ValidateInvoiceSectionID(input interface{}, key string) (warnings []string, errors []error)

ValidateInvoiceSectionID checks that 'input' can be parsed as a Invoice Section ID

Types

type AliasesCreateOrUpdateOperationResponse

type AliasesCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingSubscriptionAlias
}

type AliasesGetOperationResponse

type AliasesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingSubscriptionAlias
}

type AliasesListByBillingAccountCompleteResult

type AliasesListByBillingAccountCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingSubscriptionAlias
}

type AliasesListByBillingAccountOperationOptions

type AliasesListByBillingAccountOperationOptions struct {
	Count          *bool
	Filter         *string
	IncludeDeleted *bool
	OrderBy        *string
	Search         *string
	Skip           *int64
	Top            *int64
}

func DefaultAliasesListByBillingAccountOperationOptions

func DefaultAliasesListByBillingAccountOperationOptions() AliasesListByBillingAccountOperationOptions

func (AliasesListByBillingAccountOperationOptions) ToHeaders

func (AliasesListByBillingAccountOperationOptions) ToOData

func (AliasesListByBillingAccountOperationOptions) ToQuery

type AliasesListByBillingAccountOperationResponse

type AliasesListByBillingAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingSubscriptionAlias
}

type Amount

type Amount struct {
	Currency *string  `json:"currency,omitempty"`
	Value    *float64 `json:"value,omitempty"`
}

type AutoRenew

type AutoRenew string
const (
	AutoRenewOff AutoRenew = "Off"
	AutoRenewOn  AutoRenew = "On"
)

func (*AutoRenew) UnmarshalJSON

func (s *AutoRenew) UnmarshalJSON(bytes []byte) error

type Beneficiary

type Beneficiary struct {
	ObjectId *string `json:"objectId,omitempty"`
	TenantId *string `json:"tenantId,omitempty"`
}

type BillingAccountBillingSubscriptionId

type BillingAccountBillingSubscriptionId struct {
	BillingAccountName      string
	BillingSubscriptionName string
}

BillingAccountBillingSubscriptionId is a struct representing the Resource ID for a Billing Account Billing Subscription

func NewBillingAccountBillingSubscriptionID

func NewBillingAccountBillingSubscriptionID(billingAccountName string, billingSubscriptionName string) BillingAccountBillingSubscriptionId

NewBillingAccountBillingSubscriptionID returns a new BillingAccountBillingSubscriptionId struct

func ParseBillingAccountBillingSubscriptionID

func ParseBillingAccountBillingSubscriptionID(input string) (*BillingAccountBillingSubscriptionId, error)

ParseBillingAccountBillingSubscriptionID parses 'input' into a BillingAccountBillingSubscriptionId

func ParseBillingAccountBillingSubscriptionIDInsensitively

func ParseBillingAccountBillingSubscriptionIDInsensitively(input string) (*BillingAccountBillingSubscriptionId, error)

ParseBillingAccountBillingSubscriptionIDInsensitively parses 'input' case-insensitively into a BillingAccountBillingSubscriptionId note: this method should only be used for API response data and not user input

func (*BillingAccountBillingSubscriptionId) FromParseResult

func (BillingAccountBillingSubscriptionId) ID

ID returns the formatted Billing Account Billing Subscription ID

func (BillingAccountBillingSubscriptionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Billing Account Billing Subscription ID

func (BillingAccountBillingSubscriptionId) String

String returns a human-readable description of this Billing Account Billing Subscription ID

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 BillingProfileBillingSubscriptionId

type BillingProfileBillingSubscriptionId struct {
	BillingAccountName      string
	BillingProfileName      string
	BillingSubscriptionName string
}

BillingProfileBillingSubscriptionId is a struct representing the Resource ID for a Billing Profile Billing Subscription

func NewBillingProfileBillingSubscriptionID

func NewBillingProfileBillingSubscriptionID(billingAccountName string, billingProfileName string, billingSubscriptionName string) BillingProfileBillingSubscriptionId

NewBillingProfileBillingSubscriptionID returns a new BillingProfileBillingSubscriptionId struct

func ParseBillingProfileBillingSubscriptionID

func ParseBillingProfileBillingSubscriptionID(input string) (*BillingProfileBillingSubscriptionId, error)

ParseBillingProfileBillingSubscriptionID parses 'input' into a BillingProfileBillingSubscriptionId

func ParseBillingProfileBillingSubscriptionIDInsensitively

func ParseBillingProfileBillingSubscriptionIDInsensitively(input string) (*BillingProfileBillingSubscriptionId, error)

ParseBillingProfileBillingSubscriptionIDInsensitively parses 'input' case-insensitively into a BillingProfileBillingSubscriptionId note: this method should only be used for API response data and not user input

func (*BillingProfileBillingSubscriptionId) FromParseResult

func (BillingProfileBillingSubscriptionId) ID

ID returns the formatted Billing Profile Billing Subscription ID

func (BillingProfileBillingSubscriptionId) Segments

Segments returns a slice of Resource ID Segments which comprise this Billing Profile Billing Subscription ID

func (BillingProfileBillingSubscriptionId) String

String returns a human-readable description of this Billing Profile Billing Subscription ID

type BillingProfileCustomerId

type BillingProfileCustomerId struct {
	BillingAccountName string
	BillingProfileName string
	CustomerName       string
}

BillingProfileCustomerId is a struct representing the Resource ID for a Billing Profile Customer

func NewBillingProfileCustomerID

func NewBillingProfileCustomerID(billingAccountName string, billingProfileName string, customerName string) BillingProfileCustomerId

NewBillingProfileCustomerID returns a new BillingProfileCustomerId struct

func ParseBillingProfileCustomerID

func ParseBillingProfileCustomerID(input string) (*BillingProfileCustomerId, error)

ParseBillingProfileCustomerID parses 'input' into a BillingProfileCustomerId

func ParseBillingProfileCustomerIDInsensitively

func ParseBillingProfileCustomerIDInsensitively(input string) (*BillingProfileCustomerId, error)

ParseBillingProfileCustomerIDInsensitively parses 'input' case-insensitively into a BillingProfileCustomerId note: this method should only be used for API response data and not user input

func (*BillingProfileCustomerId) FromParseResult

func (id *BillingProfileCustomerId) FromParseResult(input resourceids.ParseResult) error

func (BillingProfileCustomerId) ID

ID returns the formatted Billing Profile Customer ID

func (BillingProfileCustomerId) Segments

Segments returns a slice of Resource ID Segments which comprise this Billing Profile Customer ID

func (BillingProfileCustomerId) String

func (id BillingProfileCustomerId) String() string

String returns a human-readable description of this Billing Profile Customer ID

type BillingProfileId

type BillingProfileId struct {
	BillingAccountName string
	BillingProfileName string
}

BillingProfileId is a struct representing the Resource ID for a Billing Profile

func NewBillingProfileID

func NewBillingProfileID(billingAccountName string, billingProfileName string) BillingProfileId

NewBillingProfileID returns a new BillingProfileId struct

func ParseBillingProfileID

func ParseBillingProfileID(input string) (*BillingProfileId, error)

ParseBillingProfileID parses 'input' into a BillingProfileId

func ParseBillingProfileIDInsensitively

func ParseBillingProfileIDInsensitively(input string) (*BillingProfileId, error)

ParseBillingProfileIDInsensitively parses 'input' case-insensitively into a BillingProfileId note: this method should only be used for API response data and not user input

func (*BillingProfileId) FromParseResult

func (id *BillingProfileId) FromParseResult(input resourceids.ParseResult) error

func (BillingProfileId) ID

func (id BillingProfileId) ID() string

ID returns the formatted Billing Profile ID

func (BillingProfileId) Segments

func (id BillingProfileId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Billing Profile ID

func (BillingProfileId) String

func (id BillingProfileId) String() string

String returns a human-readable description of this Billing Profile ID

type BillingSubscription

type BillingSubscription struct {
	Id         *string                        `json:"id,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *BillingSubscriptionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData         `json:"systemData,omitempty"`
	Tags       *map[string]string             `json:"tags,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type BillingSubscriptionAlias

type BillingSubscriptionAlias struct {
	Id         *string                             `json:"id,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties *BillingSubscriptionAliasProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData              `json:"systemData,omitempty"`
	Tags       *map[string]string                  `json:"tags,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

ID returns the formatted Billing Subscription Alias ID

func (BillingSubscriptionAliasId) Segments

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

type BillingSubscriptionAliasOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (BillingSubscriptionAliasOperationPredicate) Matches

type BillingSubscriptionAliasProperties

type BillingSubscriptionAliasProperties struct {
	AutoRenew                            *AutoRenew                            `json:"autoRenew,omitempty"`
	Beneficiary                          *Beneficiary                          `json:"beneficiary,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"`
	OperationStatus                      *BillingSubscriptionOperationStatus   `json:"operationStatus,omitempty"`
	ProductCategory                      *string                               `json:"productCategory,omitempty"`
	ProductType                          *string                               `json:"productType,omitempty"`
	ProductTypeId                        *string                               `json:"productTypeId,omitempty"`
	ProvisioningState                    *ProvisioningState                    `json:"provisioningState,omitempty"`
	ProvisioningTenantId                 *string                               `json:"provisioningTenantId,omitempty"`
	PurchaseDate                         *string                               `json:"purchaseDate,omitempty"`
	Quantity                             *int64                                `json:"quantity,omitempty"`
	RenewalTermDetails                   *RenewalTermDetails                   `json:"renewalTermDetails,omitempty"`
	Reseller                             *Reseller                             `json:"reseller,omitempty"`
	ResourceUri                          *string                               `json:"resourceUri,omitempty"`
	SkuDescription                       *string                               `json:"skuDescription,omitempty"`
	SkuId                                *string                               `json:"skuId,omitempty"`
	Status                               *BillingSubscriptionStatus            `json:"status,omitempty"`
	SubscriptionId                       *string                               `json:"subscriptionId,omitempty"`
	SuspensionReasonDetails              *[]BillingSubscriptionStatusDetails   `json:"suspensionReasonDetails,omitempty"`
	SuspensionReasons                    *[]string                             `json:"suspensionReasons,omitempty"`
	SystemOverrides                      *SystemOverrides                      `json:"systemOverrides,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 BillingSubscriptionClient

type BillingSubscriptionClient struct {
	Client *resourcemanager.Client
}

func NewBillingSubscriptionClientWithBaseURI

func NewBillingSubscriptionClientWithBaseURI(sdkApi sdkEnv.Api) (*BillingSubscriptionClient, error)

func (BillingSubscriptionClient) AliasesCreateOrUpdate

AliasesCreateOrUpdate ...

func (BillingSubscriptionClient) AliasesCreateOrUpdateThenPoll

AliasesCreateOrUpdateThenPoll performs AliasesCreateOrUpdate then polls until it's completed

func (BillingSubscriptionClient) AliasesGet

AliasesGet ...

func (BillingSubscriptionClient) AliasesListByBillingAccount

AliasesListByBillingAccount ...

func (BillingSubscriptionClient) AliasesListByBillingAccountComplete

AliasesListByBillingAccountComplete retrieves all the results into a single object

func (BillingSubscriptionClient) AliasesListByBillingAccountCompleteMatchingPredicate

AliasesListByBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingSubscriptionClient) Cancel

Cancel ...

func (BillingSubscriptionClient) CancelThenPoll

CancelThenPoll performs Cancel then polls until it's completed

func (BillingSubscriptionClient) Delete

Delete ...

func (BillingSubscriptionClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (BillingSubscriptionClient) Get

Get ...

func (BillingSubscriptionClient) GetByBillingProfile

GetByBillingProfile ...

func (BillingSubscriptionClient) ListByBillingAccount

ListByBillingAccount ...

func (BillingSubscriptionClient) ListByBillingAccountComplete

ListByBillingAccountComplete retrieves all the results into a single object

func (BillingSubscriptionClient) ListByBillingAccountCompleteMatchingPredicate

ListByBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingSubscriptionClient) ListByBillingProfile

ListByBillingProfile ...

func (BillingSubscriptionClient) ListByBillingProfileComplete

ListByBillingProfileComplete retrieves all the results into a single object

func (BillingSubscriptionClient) ListByBillingProfileCompleteMatchingPredicate

ListByBillingProfileCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingSubscriptionClient) ListByCustomer

ListByCustomer ...

func (BillingSubscriptionClient) ListByCustomerAtBillingAccount

ListByCustomerAtBillingAccount ...

func (BillingSubscriptionClient) ListByCustomerAtBillingAccountComplete

ListByCustomerAtBillingAccountComplete retrieves all the results into a single object

func (BillingSubscriptionClient) ListByCustomerAtBillingAccountCompleteMatchingPredicate

ListByCustomerAtBillingAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingSubscriptionClient) ListByCustomerComplete

ListByCustomerComplete retrieves all the results into a single object

func (BillingSubscriptionClient) ListByCustomerCompleteMatchingPredicate

ListByCustomerCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingSubscriptionClient) ListByEnrollmentAccount

ListByEnrollmentAccount ...

func (BillingSubscriptionClient) ListByEnrollmentAccountComplete

ListByEnrollmentAccountComplete retrieves all the results into a single object

func (BillingSubscriptionClient) ListByEnrollmentAccountCompleteMatchingPredicate

ListByEnrollmentAccountCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingSubscriptionClient) ListByInvoiceSection

ListByInvoiceSection ...

func (BillingSubscriptionClient) ListByInvoiceSectionComplete

ListByInvoiceSectionComplete retrieves all the results into a single object

func (BillingSubscriptionClient) ListByInvoiceSectionCompleteMatchingPredicate

ListByInvoiceSectionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BillingSubscriptionClient) Merge

Merge ...

func (BillingSubscriptionClient) MergeThenPoll

MergeThenPoll performs Merge then polls until it's completed

func (BillingSubscriptionClient) Move

Move ...

func (BillingSubscriptionClient) MoveThenPoll

MoveThenPoll performs Move then polls until it's completed

func (BillingSubscriptionClient) Split

Split ...

func (BillingSubscriptionClient) SplitThenPoll

SplitThenPoll performs Split then polls until it's completed

func (BillingSubscriptionClient) Update

Update ...

func (BillingSubscriptionClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

func (BillingSubscriptionClient) ValidateMoveEligibility

ValidateMoveEligibility ...

type BillingSubscriptionMergeRequest

type BillingSubscriptionMergeRequest struct {
	Quantity                      *int64  `json:"quantity,omitempty"`
	TargetBillingSubscriptionName *string `json:"targetBillingSubscriptionName,omitempty"`
}

type BillingSubscriptionOperationPredicate

type BillingSubscriptionOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (BillingSubscriptionOperationPredicate) Matches

type BillingSubscriptionOperationStatus

type BillingSubscriptionOperationStatus string
const (
	BillingSubscriptionOperationStatusLockedForUpdate BillingSubscriptionOperationStatus = "LockedForUpdate"
	BillingSubscriptionOperationStatusNone            BillingSubscriptionOperationStatus = "None"
	BillingSubscriptionOperationStatusOther           BillingSubscriptionOperationStatus = "Other"
)

func (*BillingSubscriptionOperationStatus) UnmarshalJSON

func (s *BillingSubscriptionOperationStatus) UnmarshalJSON(bytes []byte) error

type BillingSubscriptionPatch

type BillingSubscriptionPatch struct {
	Id         *string                        `json:"id,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *BillingSubscriptionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData         `json:"systemData,omitempty"`
	Tags       *map[string]string             `json:"tags,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type BillingSubscriptionProperties

type BillingSubscriptionProperties struct {
	AutoRenew                            *AutoRenew                            `json:"autoRenew,omitempty"`
	Beneficiary                          *Beneficiary                          `json:"beneficiary,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"`
	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"`
	OperationStatus                      *BillingSubscriptionOperationStatus   `json:"operationStatus,omitempty"`
	ProductCategory                      *string                               `json:"productCategory,omitempty"`
	ProductType                          *string                               `json:"productType,omitempty"`
	ProductTypeId                        *string                               `json:"productTypeId,omitempty"`
	ProvisioningState                    *ProvisioningState                    `json:"provisioningState,omitempty"`
	ProvisioningTenantId                 *string                               `json:"provisioningTenantId,omitempty"`
	PurchaseDate                         *string                               `json:"purchaseDate,omitempty"`
	Quantity                             *int64                                `json:"quantity,omitempty"`
	RenewalTermDetails                   *RenewalTermDetails                   `json:"renewalTermDetails,omitempty"`
	Reseller                             *Reseller                             `json:"reseller,omitempty"`
	ResourceUri                          *string                               `json:"resourceUri,omitempty"`
	SkuDescription                       *string                               `json:"skuDescription,omitempty"`
	SkuId                                *string                               `json:"skuId,omitempty"`
	Status                               *BillingSubscriptionStatus            `json:"status,omitempty"`
	SubscriptionId                       *string                               `json:"subscriptionId,omitempty"`
	SuspensionReasonDetails              *[]BillingSubscriptionStatusDetails   `json:"suspensionReasonDetails,omitempty"`
	SuspensionReasons                    *[]string                             `json:"suspensionReasons,omitempty"`
	SystemOverrides                      *SystemOverrides                      `json:"systemOverrides,omitempty"`
	TermDuration                         *string                               `json:"termDuration,omitempty"`
	TermEndDate                          *string                               `json:"termEndDate,omitempty"`
	TermStartDate                        *string                               `json:"termStartDate,omitempty"`
}

func (*BillingSubscriptionProperties) GetPurchaseDateAsTime

func (o *BillingSubscriptionProperties) GetPurchaseDateAsTime() (*time.Time, error)

func (*BillingSubscriptionProperties) GetTermEndDateAsTime

func (o *BillingSubscriptionProperties) GetTermEndDateAsTime() (*time.Time, error)

func (*BillingSubscriptionProperties) GetTermStartDateAsTime

func (o *BillingSubscriptionProperties) GetTermStartDateAsTime() (*time.Time, error)

func (*BillingSubscriptionProperties) SetPurchaseDateAsTime

func (o *BillingSubscriptionProperties) SetPurchaseDateAsTime(input time.Time)

func (*BillingSubscriptionProperties) SetTermEndDateAsTime

func (o *BillingSubscriptionProperties) SetTermEndDateAsTime(input time.Time)

func (*BillingSubscriptionProperties) SetTermStartDateAsTime

func (o *BillingSubscriptionProperties) SetTermStartDateAsTime(input time.Time)

type BillingSubscriptionSplitRequest

type BillingSubscriptionSplitRequest struct {
	BillingFrequency    *string `json:"billingFrequency,omitempty"`
	Quantity            *int64  `json:"quantity,omitempty"`
	TargetProductTypeId *string `json:"targetProductTypeId,omitempty"`
	TargetSkuId         *string `json:"targetSkuId,omitempty"`
	TermDuration        *string `json:"termDuration,omitempty"`
}

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"
	BillingSubscriptionStatusFailed    BillingSubscriptionStatus = "Failed"
	BillingSubscriptionStatusOther     BillingSubscriptionStatus = "Other"
	BillingSubscriptionStatusSuspended BillingSubscriptionStatus = "Suspended"
	BillingSubscriptionStatusUnknown   BillingSubscriptionStatus = "Unknown"
	BillingSubscriptionStatusWarned    BillingSubscriptionStatus = "Warned"
)

func (*BillingSubscriptionStatus) UnmarshalJSON

func (s *BillingSubscriptionStatus) UnmarshalJSON(bytes []byte) error

type BillingSubscriptionStatusDetails

type BillingSubscriptionStatusDetails struct {
	EffectiveDate *string                   `json:"effectiveDate,omitempty"`
	Reason        *SubscriptionStatusReason `json:"reason,omitempty"`
}

func (*BillingSubscriptionStatusDetails) GetEffectiveDateAsTime

func (o *BillingSubscriptionStatusDetails) GetEffectiveDateAsTime() (*time.Time, error)

func (*BillingSubscriptionStatusDetails) SetEffectiveDateAsTime

func (o *BillingSubscriptionStatusDetails) SetEffectiveDateAsTime(input time.Time)

type CancelOperationResponse

type CancelOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type CancelSubscriptionRequest

type CancelSubscriptionRequest struct {
	CancellationReason CancellationReason `json:"cancellationReason"`
	CustomerId         *string            `json:"customerId,omitempty"`
}

type Cancellation

type Cancellation string
const (
	CancellationAllowed    Cancellation = "Allowed"
	CancellationNotAllowed Cancellation = "NotAllowed"
)

func (*Cancellation) UnmarshalJSON

func (s *Cancellation) UnmarshalJSON(bytes []byte) error

type CancellationReason

type CancellationReason string
const (
	CancellationReasonCompromise CancellationReason = "Compromise"
	CancellationReasonDispute    CancellationReason = "Dispute"
	CancellationReasonOther      CancellationReason = "Other"
)

func (*CancellationReason) UnmarshalJSON

func (s *CancellationReason) UnmarshalJSON(bytes []byte) error

type CustomerId

type CustomerId struct {
	BillingAccountName string
	CustomerName       string
}

CustomerId is a struct representing the Resource ID for a Customer

func NewCustomerID

func NewCustomerID(billingAccountName string, customerName string) CustomerId

NewCustomerID returns a new CustomerId struct

func ParseCustomerID

func ParseCustomerID(input string) (*CustomerId, error)

ParseCustomerID parses 'input' into a CustomerId

func ParseCustomerIDInsensitively

func ParseCustomerIDInsensitively(input string) (*CustomerId, error)

ParseCustomerIDInsensitively parses 'input' case-insensitively into a CustomerId note: this method should only be used for API response data and not user input

func (*CustomerId) FromParseResult

func (id *CustomerId) FromParseResult(input resourceids.ParseResult) error

func (CustomerId) ID

func (id CustomerId) ID() string

ID returns the formatted Customer ID

func (CustomerId) Segments

func (id CustomerId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Customer ID

func (CustomerId) String

func (id CustomerId) String() string

String returns a human-readable description of this Customer ID

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type EnrollmentAccountId

type EnrollmentAccountId struct {
	BillingAccountName    string
	EnrollmentAccountName string
}

EnrollmentAccountId is a struct representing the Resource ID for a Enrollment Account

func NewEnrollmentAccountID

func NewEnrollmentAccountID(billingAccountName string, enrollmentAccountName string) EnrollmentAccountId

NewEnrollmentAccountID returns a new EnrollmentAccountId struct

func ParseEnrollmentAccountID

func ParseEnrollmentAccountID(input string) (*EnrollmentAccountId, error)

ParseEnrollmentAccountID parses 'input' into a EnrollmentAccountId

func ParseEnrollmentAccountIDInsensitively

func ParseEnrollmentAccountIDInsensitively(input string) (*EnrollmentAccountId, error)

ParseEnrollmentAccountIDInsensitively parses 'input' case-insensitively into a EnrollmentAccountId note: this method should only be used for API response data and not user input

func (*EnrollmentAccountId) FromParseResult

func (id *EnrollmentAccountId) FromParseResult(input resourceids.ParseResult) error

func (EnrollmentAccountId) ID

func (id EnrollmentAccountId) ID() string

ID returns the formatted Enrollment Account ID

func (EnrollmentAccountId) Segments

func (id EnrollmentAccountId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Enrollment Account ID

func (EnrollmentAccountId) String

func (id EnrollmentAccountId) String() string

String returns a human-readable description of this Enrollment Account ID

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 GetByBillingProfileOperationOptions

type GetByBillingProfileOperationOptions struct {
	Expand *string
}

func DefaultGetByBillingProfileOperationOptions

func DefaultGetByBillingProfileOperationOptions() GetByBillingProfileOperationOptions

func (GetByBillingProfileOperationOptions) ToHeaders

func (GetByBillingProfileOperationOptions) ToOData

func (GetByBillingProfileOperationOptions) ToQuery

type GetByBillingProfileOperationResponse

type GetByBillingProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingSubscription
}

type GetOperationOptions

type GetOperationOptions struct {
	Expand *string
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

func (GetOperationOptions) ToHeaders

func (o GetOperationOptions) ToHeaders() *client.Headers

func (GetOperationOptions) ToOData

func (o GetOperationOptions) ToOData() *odata.Query

func (GetOperationOptions) ToQuery

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingSubscription
}

type InvoiceSectionId

type InvoiceSectionId struct {
	BillingAccountName string
	BillingProfileName string
	InvoiceSectionName string
}

InvoiceSectionId is a struct representing the Resource ID for a Invoice Section

func NewInvoiceSectionID

func NewInvoiceSectionID(billingAccountName string, billingProfileName string, invoiceSectionName string) InvoiceSectionId

NewInvoiceSectionID returns a new InvoiceSectionId struct

func ParseInvoiceSectionID

func ParseInvoiceSectionID(input string) (*InvoiceSectionId, error)

ParseInvoiceSectionID parses 'input' into a InvoiceSectionId

func ParseInvoiceSectionIDInsensitively

func ParseInvoiceSectionIDInsensitively(input string) (*InvoiceSectionId, error)

ParseInvoiceSectionIDInsensitively parses 'input' case-insensitively into a InvoiceSectionId note: this method should only be used for API response data and not user input

func (*InvoiceSectionId) FromParseResult

func (id *InvoiceSectionId) FromParseResult(input resourceids.ParseResult) error

func (InvoiceSectionId) ID

func (id InvoiceSectionId) ID() string

ID returns the formatted Invoice Section ID

func (InvoiceSectionId) Segments

func (id InvoiceSectionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Invoice Section ID

func (InvoiceSectionId) String

func (id InvoiceSectionId) String() string

String returns a human-readable description of this Invoice Section ID

type ListByBillingAccountCompleteResult

type ListByBillingAccountCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingSubscription
}

type ListByBillingAccountOperationOptions

type ListByBillingAccountOperationOptions struct {
	Count                      *bool
	Expand                     *string
	Filter                     *string
	IncludeDeleted             *bool
	IncludeFailed              *bool
	IncludeTenantSubscriptions *bool
	OrderBy                    *string
	Search                     *string
	Skip                       *int64
	Top                        *int64
}

func DefaultListByBillingAccountOperationOptions

func DefaultListByBillingAccountOperationOptions() ListByBillingAccountOperationOptions

func (ListByBillingAccountOperationOptions) ToHeaders

func (ListByBillingAccountOperationOptions) ToOData

func (ListByBillingAccountOperationOptions) ToQuery

type ListByBillingAccountOperationResponse

type ListByBillingAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingSubscription
}

type ListByBillingProfileCompleteResult

type ListByBillingProfileCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingSubscription
}

type ListByBillingProfileOperationOptions

type ListByBillingProfileOperationOptions struct {
	Count          *bool
	Expand         *string
	Filter         *string
	IncludeDeleted *bool
	OrderBy        *string
	Search         *string
	Skip           *int64
	Top            *int64
}

func DefaultListByBillingProfileOperationOptions

func DefaultListByBillingProfileOperationOptions() ListByBillingProfileOperationOptions

func (ListByBillingProfileOperationOptions) ToHeaders

func (ListByBillingProfileOperationOptions) ToOData

func (ListByBillingProfileOperationOptions) ToQuery

type ListByBillingProfileOperationResponse

type ListByBillingProfileOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingSubscription
}

type ListByCustomerAtBillingAccountCompleteResult

type ListByCustomerAtBillingAccountCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingSubscription
}

type ListByCustomerAtBillingAccountOperationOptions

type ListByCustomerAtBillingAccountOperationOptions struct {
	Count          *bool
	Expand         *string
	Filter         *string
	IncludeDeleted *bool
	OrderBy        *string
	Search         *string
	Skip           *int64
	Top            *int64
}

func DefaultListByCustomerAtBillingAccountOperationOptions

func DefaultListByCustomerAtBillingAccountOperationOptions() ListByCustomerAtBillingAccountOperationOptions

func (ListByCustomerAtBillingAccountOperationOptions) ToHeaders

func (ListByCustomerAtBillingAccountOperationOptions) ToOData

func (ListByCustomerAtBillingAccountOperationOptions) ToQuery

type ListByCustomerAtBillingAccountOperationResponse

type ListByCustomerAtBillingAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingSubscription
}

type ListByCustomerCompleteResult

type ListByCustomerCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingSubscription
}

type ListByCustomerOperationOptions

type ListByCustomerOperationOptions struct {
	Count          *bool
	Expand         *string
	Filter         *string
	IncludeDeleted *bool
	OrderBy        *string
	Search         *string
	Skip           *int64
	Top            *int64
}

func DefaultListByCustomerOperationOptions

func DefaultListByCustomerOperationOptions() ListByCustomerOperationOptions

func (ListByCustomerOperationOptions) ToHeaders

func (ListByCustomerOperationOptions) ToOData

func (ListByCustomerOperationOptions) ToQuery

type ListByCustomerOperationResponse

type ListByCustomerOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingSubscription
}

type ListByEnrollmentAccountCompleteResult

type ListByEnrollmentAccountCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingSubscription
}

type ListByEnrollmentAccountOperationOptions

type ListByEnrollmentAccountOperationOptions struct {
	Count   *bool
	Filter  *string
	OrderBy *string
	Search  *string
	Skip    *int64
	Top     *int64
}

func DefaultListByEnrollmentAccountOperationOptions

func DefaultListByEnrollmentAccountOperationOptions() ListByEnrollmentAccountOperationOptions

func (ListByEnrollmentAccountOperationOptions) ToHeaders

func (ListByEnrollmentAccountOperationOptions) ToOData

func (ListByEnrollmentAccountOperationOptions) ToQuery

type ListByEnrollmentAccountOperationResponse

type ListByEnrollmentAccountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingSubscription
}

type ListByInvoiceSectionCompleteResult

type ListByInvoiceSectionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []BillingSubscription
}

type ListByInvoiceSectionOperationOptions

type ListByInvoiceSectionOperationOptions struct {
	Count          *bool
	Expand         *string
	Filter         *string
	IncludeDeleted *bool
	OrderBy        *string
	Search         *string
	Skip           *int64
	Top            *int64
}

func DefaultListByInvoiceSectionOperationOptions

func DefaultListByInvoiceSectionOperationOptions() ListByInvoiceSectionOperationOptions

func (ListByInvoiceSectionOperationOptions) ToHeaders

func (ListByInvoiceSectionOperationOptions) ToOData

func (ListByInvoiceSectionOperationOptions) ToQuery

type ListByInvoiceSectionOperationResponse

type ListByInvoiceSectionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]BillingSubscription
}

type MergeOperationResponse

type MergeOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingSubscription
}

type MoveBillingSubscriptionEligibilityResult

type MoveBillingSubscriptionEligibilityResult struct {
	ErrorDetails   *MoveBillingSubscriptionErrorDetails `json:"errorDetails,omitempty"`
	IsMoveEligible *bool                                `json:"isMoveEligible,omitempty"`
}

type MoveBillingSubscriptionErrorDetails

type MoveBillingSubscriptionErrorDetails struct {
	Code    *SubscriptionTransferValidationErrorCode `json:"code,omitempty"`
	Details *string                                  `json:"details,omitempty"`
	Message *string                                  `json:"message,omitempty"`
}

type MoveBillingSubscriptionRequest

type MoveBillingSubscriptionRequest struct {
	DestinationEnrollmentAccountId *string `json:"destinationEnrollmentAccountId,omitempty"`
	DestinationInvoiceSectionId    *string `json:"destinationInvoiceSectionId,omitempty"`
}

type MoveOperationResponse

type MoveOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingSubscription
}

type NextBillingCycleDetails

type NextBillingCycleDetails struct {
	BillingFrequency *string `json:"billingFrequency,omitempty"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateNew          ProvisioningState = "New"
	ProvisioningStatePending      ProvisioningState = "Pending"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

type RenewalTermDetails

type RenewalTermDetails struct {
	BillingFrequency *string `json:"billingFrequency,omitempty"`
	ProductId        *string `json:"productId,omitempty"`
	ProductTypeId    *string `json:"productTypeId,omitempty"`
	Quantity         *int64  `json:"quantity,omitempty"`
	SkuId            *string `json:"skuId,omitempty"`
	TermDuration     *string `json:"termDuration,omitempty"`
	TermEndDate      *string `json:"termEndDate,omitempty"`
}

func (*RenewalTermDetails) GetTermEndDateAsTime

func (o *RenewalTermDetails) GetTermEndDateAsTime() (*time.Time, error)

func (*RenewalTermDetails) SetTermEndDateAsTime

func (o *RenewalTermDetails) SetTermEndDateAsTime(input time.Time)

type Reseller

type Reseller struct {
	Description *string `json:"description,omitempty"`
	ResellerId  *string `json:"resellerId,omitempty"`
}

type SplitOperationResponse

type SplitOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingSubscription
}

type SubscriptionEnrollmentAccountStatus

type SubscriptionEnrollmentAccountStatus string
const (
	SubscriptionEnrollmentAccountStatusActive         SubscriptionEnrollmentAccountStatus = "Active"
	SubscriptionEnrollmentAccountStatusCancelled      SubscriptionEnrollmentAccountStatus = "Cancelled"
	SubscriptionEnrollmentAccountStatusDeleted        SubscriptionEnrollmentAccountStatus = "Deleted"
	SubscriptionEnrollmentAccountStatusExpired        SubscriptionEnrollmentAccountStatus = "Expired"
	SubscriptionEnrollmentAccountStatusInactive       SubscriptionEnrollmentAccountStatus = "Inactive"
	SubscriptionEnrollmentAccountStatusTransferredOut SubscriptionEnrollmentAccountStatus = "TransferredOut"
	SubscriptionEnrollmentAccountStatusTransferring   SubscriptionEnrollmentAccountStatus = "Transferring"
)

func (*SubscriptionEnrollmentAccountStatus) UnmarshalJSON

func (s *SubscriptionEnrollmentAccountStatus) UnmarshalJSON(bytes []byte) error

type SubscriptionStatusReason

type SubscriptionStatusReason string
const (
	SubscriptionStatusReasonCancelled            SubscriptionStatusReason = "Cancelled"
	SubscriptionStatusReasonExpired              SubscriptionStatusReason = "Expired"
	SubscriptionStatusReasonNone                 SubscriptionStatusReason = "None"
	SubscriptionStatusReasonOther                SubscriptionStatusReason = "Other"
	SubscriptionStatusReasonPastDue              SubscriptionStatusReason = "PastDue"
	SubscriptionStatusReasonPolicyViolation      SubscriptionStatusReason = "PolicyViolation"
	SubscriptionStatusReasonSpendingLimitReached SubscriptionStatusReason = "SpendingLimitReached"
	SubscriptionStatusReasonSuspiciousActivity   SubscriptionStatusReason = "SuspiciousActivity"
	SubscriptionStatusReasonTransferred          SubscriptionStatusReason = "Transferred"
)

func (*SubscriptionStatusReason) UnmarshalJSON

func (s *SubscriptionStatusReason) UnmarshalJSON(bytes []byte) error

type SubscriptionTransferValidationErrorCode

type SubscriptionTransferValidationErrorCode string
const (
	SubscriptionTransferValidationErrorCodeAccountIsLocked                     SubscriptionTransferValidationErrorCode = "AccountIsLocked"
	SubscriptionTransferValidationErrorCodeAssetHasCap                         SubscriptionTransferValidationErrorCode = "AssetHasCap"
	SubscriptionTransferValidationErrorCodeAssetNotActive                      SubscriptionTransferValidationErrorCode = "AssetNotActive"
	SubscriptionTransferValidationErrorCodeBillingAccountInactive              SubscriptionTransferValidationErrorCode = "BillingAccountInactive"
	SubscriptionTransferValidationErrorCodeBillingProfilePastDue               SubscriptionTransferValidationErrorCode = "BillingProfilePastDue"
	SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed       SubscriptionTransferValidationErrorCode = "CrossBillingAccountNotAllowed"
	SubscriptionTransferValidationErrorCodeDestinationBillingProfileInactive   SubscriptionTransferValidationErrorCode = "DestinationBillingProfileInactive"
	SubscriptionTransferValidationErrorCodeDestinationBillingProfileNotFound   SubscriptionTransferValidationErrorCode = "DestinationBillingProfileNotFound"
	SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue    SubscriptionTransferValidationErrorCode = "DestinationBillingProfilePastDue"
	SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionInactive   SubscriptionTransferValidationErrorCode = "DestinationInvoiceSectionInactive"
	SubscriptionTransferValidationErrorCodeDestinationInvoiceSectionNotFound   SubscriptionTransferValidationErrorCode = "DestinationInvoiceSectionNotFound"
	SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination SubscriptionTransferValidationErrorCode = "InsufficientPermissionOnDestination"
	SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource      SubscriptionTransferValidationErrorCode = "InsufficientPermissionOnSource"
	SubscriptionTransferValidationErrorCodeInvalidDestination                  SubscriptionTransferValidationErrorCode = "InvalidDestination"
	SubscriptionTransferValidationErrorCodeInvalidSource                       SubscriptionTransferValidationErrorCode = "InvalidSource"
	SubscriptionTransferValidationErrorCodeInvoiceSectionIsRestricted          SubscriptionTransferValidationErrorCode = "InvoiceSectionIsRestricted"
	SubscriptionTransferValidationErrorCodeMarketplaceNotEnabledOnDestination  SubscriptionTransferValidationErrorCode = "MarketplaceNotEnabledOnDestination"
	SubscriptionTransferValidationErrorCodeNoActiveAzurePlan                   SubscriptionTransferValidationErrorCode = "NoActiveAzurePlan"
	SubscriptionTransferValidationErrorCodeNone                                SubscriptionTransferValidationErrorCode = "None"
	SubscriptionTransferValidationErrorCodeOther                               SubscriptionTransferValidationErrorCode = "Other"
	SubscriptionTransferValidationErrorCodeProductInactive                     SubscriptionTransferValidationErrorCode = "ProductInactive"
	SubscriptionTransferValidationErrorCodeProductNotFound                     SubscriptionTransferValidationErrorCode = "ProductNotFound"
	SubscriptionTransferValidationErrorCodeProductTypeNotSupported             SubscriptionTransferValidationErrorCode = "ProductTypeNotSupported"
	SubscriptionTransferValidationErrorCodeSourceBillingProfilePastDue         SubscriptionTransferValidationErrorCode = "SourceBillingProfilePastDue"
	SubscriptionTransferValidationErrorCodeSourceInvoiceSectionInactive        SubscriptionTransferValidationErrorCode = "SourceInvoiceSectionInactive"
	SubscriptionTransferValidationErrorCodeSubscriptionHasReservations         SubscriptionTransferValidationErrorCode = "SubscriptionHasReservations"
	SubscriptionTransferValidationErrorCodeSubscriptionNotActive               SubscriptionTransferValidationErrorCode = "SubscriptionNotActive"
	SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported        SubscriptionTransferValidationErrorCode = "SubscriptionTypeNotSupported"
)

func (*SubscriptionTransferValidationErrorCode) UnmarshalJSON

func (s *SubscriptionTransferValidationErrorCode) UnmarshalJSON(bytes []byte) error

type SystemOverrides

type SystemOverrides struct {
	Cancellation               *Cancellation `json:"cancellation,omitempty"`
	CancellationAllowedEndDate *string       `json:"cancellationAllowedEndDate,omitempty"`
}

func (*SystemOverrides) GetCancellationAllowedEndDateAsTime

func (o *SystemOverrides) GetCancellationAllowedEndDateAsTime() (*time.Time, error)

func (*SystemOverrides) SetCancellationAllowedEndDateAsTime

func (o *SystemOverrides) SetCancellationAllowedEndDateAsTime(input time.Time)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BillingSubscription
}

type ValidateMoveEligibilityOperationResponse

type ValidateMoveEligibilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *MoveBillingSubscriptionEligibilityResult
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL