billings

package
v0.20240903.1111904 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/billing/2019-10-01-preview/billings Documentation

The billings SDK allows for interaction with the Azure Resource Manager Service billing (API Version 2019-10-01-preview).

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/2019-10-01-preview/billings"

Client Initialization

client := billings.NewBillingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BillingsClient.BillingSubscriptionsTransfer

ctx := context.TODO()
id := billings.NewInvoiceSectionBillingSubscriptionID("billingAccountValue", "billingProfileValue", "invoiceSectionValue", "billingSubscriptionValue")

payload := billings.TransferBillingSubscriptionRequestProperties{
	// ...
}


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

Example Usage: BillingsClient.BillingSubscriptionsValidateTransfer

ctx := context.TODO()
id := billings.NewInvoiceSectionBillingSubscriptionID("billingAccountValue", "billingProfileValue", "invoiceSectionValue", "billingSubscriptionValue")

payload := billings.TransferBillingSubscriptionRequestProperties{
	// ...
}


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

Example Usage: BillingsClient.ProductsValidateTransfer

ctx := context.TODO()
id := billings.NewInvoiceSectionProductID("billingAccountValue", "billingProfileValue", "invoiceSectionValue", "productValue")

payload := billings.TransferProductRequestProperties{
	// ...
}


read, err := client.ProductsValidateTransfer(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 PossibleValuesForProductTransferValidationErrorCode

func PossibleValuesForProductTransferValidationErrorCode() []string

func PossibleValuesForSubscriptionTransferValidationErrorCode

func PossibleValuesForSubscriptionTransferValidationErrorCode() []string

func ValidateInvoiceSectionBillingSubscriptionID

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

ValidateInvoiceSectionBillingSubscriptionID checks that 'input' can be parsed as a Invoice Section Billing Subscription ID

func ValidateInvoiceSectionProductID

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

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

Types

type BillingSubscriptionsTransferOperationResponse

type BillingSubscriptionsTransferOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *TransferBillingSubscriptionResult
}

type BillingSubscriptionsValidateTransferOperationResponse

type BillingSubscriptionsValidateTransferOperationResponse 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) BillingSubscriptionsTransfer

BillingSubscriptionsTransfer ...

func (BillingsClient) BillingSubscriptionsTransferThenPoll

BillingSubscriptionsTransferThenPoll performs BillingSubscriptionsTransfer then polls until it's completed

func (BillingsClient) BillingSubscriptionsValidateTransfer

BillingSubscriptionsValidateTransfer ...

func (BillingsClient) ProductsValidateTransfer

ProductsValidateTransfer ...

type InvoiceSectionBillingSubscriptionId

type InvoiceSectionBillingSubscriptionId struct {
	BillingAccountName      string
	BillingProfileName      string
	InvoiceSectionName      string
	BillingSubscriptionName string
}

InvoiceSectionBillingSubscriptionId is a struct representing the Resource ID for a Invoice Section Billing Subscription

func NewInvoiceSectionBillingSubscriptionID

func NewInvoiceSectionBillingSubscriptionID(billingAccountName string, billingProfileName string, invoiceSectionName string, billingSubscriptionName string) InvoiceSectionBillingSubscriptionId

NewInvoiceSectionBillingSubscriptionID returns a new InvoiceSectionBillingSubscriptionId struct

func ParseInvoiceSectionBillingSubscriptionID

func ParseInvoiceSectionBillingSubscriptionID(input string) (*InvoiceSectionBillingSubscriptionId, error)

ParseInvoiceSectionBillingSubscriptionID parses 'input' into a InvoiceSectionBillingSubscriptionId

func ParseInvoiceSectionBillingSubscriptionIDInsensitively

func ParseInvoiceSectionBillingSubscriptionIDInsensitively(input string) (*InvoiceSectionBillingSubscriptionId, error)

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

func (*InvoiceSectionBillingSubscriptionId) FromParseResult

func (InvoiceSectionBillingSubscriptionId) ID

ID returns the formatted Invoice Section Billing Subscription ID

func (InvoiceSectionBillingSubscriptionId) Segments

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

func (InvoiceSectionBillingSubscriptionId) String

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

type InvoiceSectionProductId

type InvoiceSectionProductId struct {
	BillingAccountName string
	BillingProfileName string
	InvoiceSectionName string
	ProductName        string
}

InvoiceSectionProductId is a struct representing the Resource ID for a Invoice Section Product

func NewInvoiceSectionProductID

func NewInvoiceSectionProductID(billingAccountName string, billingProfileName string, invoiceSectionName string, productName string) InvoiceSectionProductId

NewInvoiceSectionProductID returns a new InvoiceSectionProductId struct

func ParseInvoiceSectionProductID

func ParseInvoiceSectionProductID(input string) (*InvoiceSectionProductId, error)

ParseInvoiceSectionProductID parses 'input' into a InvoiceSectionProductId

func ParseInvoiceSectionProductIDInsensitively

func ParseInvoiceSectionProductIDInsensitively(input string) (*InvoiceSectionProductId, error)

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

func (*InvoiceSectionProductId) FromParseResult

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

func (InvoiceSectionProductId) ID

ID returns the formatted Invoice Section Product ID

func (InvoiceSectionProductId) Segments

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

func (InvoiceSectionProductId) String

func (id InvoiceSectionProductId) String() string

String returns a human-readable description of this Invoice Section 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 ProductsValidateTransferOperationResponse

type ProductsValidateTransferOperationResponse 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 {
	DestinationBillingProfileId *string `json:"destinationBillingProfileId,omitempty"`
	DestinationInvoiceSectionId *string `json:"destinationInvoiceSectionId,omitempty"`
}

type TransferBillingSubscriptionResult

type TransferBillingSubscriptionResult struct {
	Properties *TransferBillingSubscriptionResultProperties `json:"properties,omitempty"`
}

type TransferBillingSubscriptionResultProperties

type TransferBillingSubscriptionResultProperties struct {
	BillingSubscriptionName *string `json:"billingSubscriptionName,omitempty"`
}

type TransferProductRequestProperties

type TransferProductRequestProperties struct {
	DestinationBillingProfileId *string `json:"destinationBillingProfileId,omitempty"`
	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"`
	IsTransferEligible *bool                                    `json:"isTransferEligible,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"`
	IsTransferEligible *bool                                         `json:"isTransferEligible,omitempty"`
}

Jump to

Keyboard shortcuts

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