Documentation ¶
Index ¶
- func PossibleValuesForBillingSubscriptionStatusType() []string
- func PossibleValuesForProductTransferValidationErrorCode() []string
- func PossibleValuesForSubscriptionTransferValidationErrorCode() []string
- func ValidateBillingAccountBillingSubscriptionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProductID(input interface{}, key string) (warnings []string, errors []error)
- type Amount
- type BillingAccountBillingSubscriptionId
- func NewBillingAccountBillingSubscriptionID(billingAccountName string, subscriptionId string) BillingAccountBillingSubscriptionId
- func ParseBillingAccountBillingSubscriptionID(input string) (*BillingAccountBillingSubscriptionId, error)
- func ParseBillingAccountBillingSubscriptionIDInsensitively(input string) (*BillingAccountBillingSubscriptionId, error)
- type BillingSubscription
- type BillingSubscriptionProperties
- type BillingSubscriptionStatusType
- type BillingSubscriptionsMoveOperationResponse
- type BillingSubscriptionsValidateMoveOperationResponse
- type BillingsClient
- func (c BillingsClient) BillingSubscriptionsMove(ctx context.Context, id BillingAccountBillingSubscriptionId, ...) (result BillingSubscriptionsMoveOperationResponse, err error)
- func (c BillingsClient) BillingSubscriptionsMoveThenPoll(ctx context.Context, id BillingAccountBillingSubscriptionId, ...) error
- func (c BillingsClient) BillingSubscriptionsValidateMove(ctx context.Context, id BillingAccountBillingSubscriptionId, ...) (result BillingSubscriptionsValidateMoveOperationResponse, err error)
- func (c BillingsClient) ProductsValidateMove(ctx context.Context, id ProductId, input TransferProductRequestProperties) (result ProductsValidateMoveOperationResponse, err error)
- type ProductId
- type ProductTransferValidationErrorCode
- type ProductsValidateMoveOperationResponse
- type Reseller
- type SubscriptionTransferValidationErrorCode
- type TransferBillingSubscriptionRequestProperties
- type TransferProductRequestProperties
- type ValidateProductTransferEligibilityError
- type ValidateProductTransferEligibilityResult
- type ValidateSubscriptionTransferEligibilityError
- type ValidateSubscriptionTransferEligibilityResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBillingSubscriptionStatusType ¶
func PossibleValuesForBillingSubscriptionStatusType() []string
func PossibleValuesForProductTransferValidationErrorCode ¶
func PossibleValuesForProductTransferValidationErrorCode() []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 ValidateProductID ¶
ValidateProductID checks that 'input' can be parsed as a Product ID
Types ¶
type BillingAccountBillingSubscriptionId ¶
BillingAccountBillingSubscriptionId is a struct representing the Resource ID for a Billing Account Billing Subscription
func NewBillingAccountBillingSubscriptionID ¶
func NewBillingAccountBillingSubscriptionID(billingAccountName string, subscriptionId 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 (id *BillingAccountBillingSubscriptionId) FromParseResult(input resourceids.ParseResult) error
func (BillingAccountBillingSubscriptionId) ID ¶
func (id BillingAccountBillingSubscriptionId) ID() string
ID returns the formatted Billing Account Billing Subscription ID
func (BillingAccountBillingSubscriptionId) Segments ¶
func (id BillingAccountBillingSubscriptionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Billing Account Billing Subscription ID
func (BillingAccountBillingSubscriptionId) String ¶
func (id BillingAccountBillingSubscriptionId) String() string
String returns a human-readable description of this Billing Account Billing Subscription ID
type BillingSubscription ¶
type BillingSubscription struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *BillingSubscriptionProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type BillingSubscriptionProperties ¶
type BillingSubscriptionProperties struct { BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"` BillingProfileId *string `json:"billingProfileId,omitempty"` CostCenter *string `json:"costCenter,omitempty"` CustomerDisplayName *string `json:"customerDisplayName,omitempty"` CustomerId *string `json:"customerId,omitempty"` DisplayName *string `json:"displayName,omitempty"` InvoiceSectionDisplayName *string `json:"invoiceSectionDisplayName,omitempty"` InvoiceSectionId *string `json:"invoiceSectionId,omitempty"` LastMonthCharges *Amount `json:"lastMonthCharges,omitempty"` MonthToDateCharges *Amount `json:"monthToDateCharges,omitempty"` Reseller *Reseller `json:"reseller,omitempty"` SkuDescription *string `json:"skuDescription,omitempty"` SkuId *string `json:"skuId,omitempty"` SubscriptionBillingStatus *BillingSubscriptionStatusType `json:"subscriptionBillingStatus,omitempty"` SubscriptionId *string `json:"subscriptionId,omitempty"` SuspensionReasons *[]string `json:"suspensionReasons,omitempty"` }
type BillingSubscriptionStatusType ¶
type BillingSubscriptionStatusType string
const ( BillingSubscriptionStatusTypeAbandoned BillingSubscriptionStatusType = "Abandoned" BillingSubscriptionStatusTypeActive BillingSubscriptionStatusType = "Active" BillingSubscriptionStatusTypeDeleted BillingSubscriptionStatusType = "Deleted" BillingSubscriptionStatusTypeInactive BillingSubscriptionStatusType = "Inactive" BillingSubscriptionStatusTypeWarning BillingSubscriptionStatusType = "Warning" )
func (*BillingSubscriptionStatusType) UnmarshalJSON ¶
func (s *BillingSubscriptionStatusType) UnmarshalJSON(bytes []byte) error
type BillingSubscriptionsValidateMoveOperationResponse ¶
type BillingSubscriptionsValidateMoveOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ValidateSubscriptionTransferEligibilityResult }
type BillingsClient ¶
type BillingsClient struct {
Client *resourcemanager.Client
}
func NewBillingsClientWithBaseURI ¶
func NewBillingsClientWithBaseURI(sdkApi sdkEnv.Api) (*BillingsClient, error)
func (BillingsClient) BillingSubscriptionsMove ¶
func (c BillingsClient) BillingSubscriptionsMove(ctx context.Context, id BillingAccountBillingSubscriptionId, input TransferBillingSubscriptionRequestProperties) (result BillingSubscriptionsMoveOperationResponse, err error)
BillingSubscriptionsMove ...
func (BillingsClient) BillingSubscriptionsMoveThenPoll ¶
func (c BillingsClient) BillingSubscriptionsMoveThenPoll(ctx context.Context, id BillingAccountBillingSubscriptionId, input TransferBillingSubscriptionRequestProperties) error
BillingSubscriptionsMoveThenPoll performs BillingSubscriptionsMove then polls until it's completed
func (BillingsClient) BillingSubscriptionsValidateMove ¶
func (c BillingsClient) BillingSubscriptionsValidateMove(ctx context.Context, id BillingAccountBillingSubscriptionId, input TransferBillingSubscriptionRequestProperties) (result BillingSubscriptionsValidateMoveOperationResponse, err error)
BillingSubscriptionsValidateMove ...
func (BillingsClient) ProductsValidateMove ¶
func (c BillingsClient) ProductsValidateMove(ctx context.Context, id ProductId, input TransferProductRequestProperties) (result ProductsValidateMoveOperationResponse, err error)
ProductsValidateMove ...
type ProductId ¶
ProductId is a struct representing the Resource ID for a Product
func NewProductID ¶
NewProductID returns a new ProductId struct
func ParseProductID ¶
ParseProductID parses 'input' into a ProductId
func ParseProductIDInsensitively ¶
ParseProductIDInsensitively parses 'input' case-insensitively into a ProductId note: this method should only be used for API response data and not user input
func (*ProductId) FromParseResult ¶
func (id *ProductId) FromParseResult(input resourceids.ParseResult) error
func (ProductId) Segments ¶
func (id ProductId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Product ID
type ProductTransferValidationErrorCode ¶
type ProductTransferValidationErrorCode string
const ( ProductTransferValidationErrorCodeCrossBillingAccountNotAllowed ProductTransferValidationErrorCode = "CrossBillingAccountNotAllowed" ProductTransferValidationErrorCodeDestinationBillingProfilePastDue ProductTransferValidationErrorCode = "DestinationBillingProfilePastDue" ProductTransferValidationErrorCodeInsufficientPermissionOnDestination ProductTransferValidationErrorCode = "InsufficientPermissionOnDestination" ProductTransferValidationErrorCodeInsufficientPermissionOnSource ProductTransferValidationErrorCode = "InsufficientPermissionOnSource" ProductTransferValidationErrorCodeInvalidSource ProductTransferValidationErrorCode = "InvalidSource" ProductTransferValidationErrorCodeNotAvailableForDestinationMarket ProductTransferValidationErrorCode = "NotAvailableForDestinationMarket" ProductTransferValidationErrorCodeOneTimePurchaseProductTransferNotAllowed ProductTransferValidationErrorCode = "OneTimePurchaseProductTransferNotAllowed" ProductTransferValidationErrorCodeProductNotActive ProductTransferValidationErrorCode = "ProductNotActive" ProductTransferValidationErrorCodeProductTypeNotSupported ProductTransferValidationErrorCode = "ProductTypeNotSupported" )
func (*ProductTransferValidationErrorCode) UnmarshalJSON ¶
func (s *ProductTransferValidationErrorCode) UnmarshalJSON(bytes []byte) error
type ProductsValidateMoveOperationResponse ¶
type ProductsValidateMoveOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ValidateProductTransferEligibilityResult }
type SubscriptionTransferValidationErrorCode ¶
type SubscriptionTransferValidationErrorCode string
const ( SubscriptionTransferValidationErrorCodeBillingAccountInactive SubscriptionTransferValidationErrorCode = "BillingAccountInactive" 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" SubscriptionTransferValidationErrorCodeMarketplaceNotEnabledOnDestination SubscriptionTransferValidationErrorCode = "MarketplaceNotEnabledOnDestination" SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket SubscriptionTransferValidationErrorCode = "NotAvailableForDestinationMarket" SubscriptionTransferValidationErrorCodeProductInactive SubscriptionTransferValidationErrorCode = "ProductInactive" SubscriptionTransferValidationErrorCodeProductNotFound SubscriptionTransferValidationErrorCode = "ProductNotFound" SubscriptionTransferValidationErrorCodeProductTypeNotSupported SubscriptionTransferValidationErrorCode = "ProductTypeNotSupported" SubscriptionTransferValidationErrorCodeSourceBillingProfilePastDue SubscriptionTransferValidationErrorCode = "SourceBillingProfilePastDue" SubscriptionTransferValidationErrorCodeSourceInvoiceSectionInactive SubscriptionTransferValidationErrorCode = "SourceInvoiceSectionInactive" SubscriptionTransferValidationErrorCodeSubscriptionNotActive SubscriptionTransferValidationErrorCode = "SubscriptionNotActive" SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported SubscriptionTransferValidationErrorCode = "SubscriptionTypeNotSupported" )
func (*SubscriptionTransferValidationErrorCode) UnmarshalJSON ¶
func (s *SubscriptionTransferValidationErrorCode) UnmarshalJSON(bytes []byte) error
type TransferBillingSubscriptionRequestProperties ¶
type TransferBillingSubscriptionRequestProperties struct {
DestinationInvoiceSectionId string `json:"destinationInvoiceSectionId"`
}
type TransferProductRequestProperties ¶
type TransferProductRequestProperties struct {
DestinationInvoiceSectionId *string `json:"destinationInvoiceSectionId,omitempty"`
}
type ValidateProductTransferEligibilityError ¶
type ValidateProductTransferEligibilityError struct { Code *ProductTransferValidationErrorCode `json:"code,omitempty"` Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
type ValidateProductTransferEligibilityResult ¶
type ValidateProductTransferEligibilityResult struct { ErrorDetails *ValidateProductTransferEligibilityError `json:"errorDetails,omitempty"` IsMoveEligible *bool `json:"isMoveEligible,omitempty"` }
type ValidateSubscriptionTransferEligibilityError ¶
type ValidateSubscriptionTransferEligibilityError struct { Code *SubscriptionTransferValidationErrorCode `json:"code,omitempty"` Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
type ValidateSubscriptionTransferEligibilityResult ¶
type ValidateSubscriptionTransferEligibilityResult struct { ErrorDetails *ValidateSubscriptionTransferEligibilityError `json:"errorDetails,omitempty"` IsMoveEligible *bool `json:"isMoveEligible,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_billingaccountbillingsubscription.go
- id_product.go
- method_billingsubscriptionsmove.go
- method_billingsubscriptionsvalidatemove.go
- method_productsvalidatemove.go
- model_amount.go
- model_billingsubscription.go
- model_billingsubscriptionproperties.go
- model_reseller.go
- model_transferbillingsubscriptionrequestproperties.go
- model_transferproductrequestproperties.go
- model_validateproducttransfereligibilityerror.go
- model_validateproducttransfereligibilityresult.go
- model_validatesubscriptiontransfereligibilityerror.go
- model_validatesubscriptiontransfereligibilityresult.go
- version.go