billing

package
v46.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package billing implements the Azure ARM Billing service API version 2018-11-01-preview.

Billing client provides access to billing resources for Azure subscriptions.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Billing
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type AcceptTransferProperties

type AcceptTransferProperties struct {
	// ProductDetails - Request parameters to accept transfer.
	ProductDetails *[]ProductDetails `json:"productDetails,omitempty"`
}

AcceptTransferProperties request parameters to accept transfer.

type AcceptTransferRequest

type AcceptTransferRequest struct {
	// AcceptTransferProperties - Request parameters to accept transfer.
	*AcceptTransferProperties `json:"properties,omitempty"`
}

AcceptTransferRequest request parameters to accept transfer.

func (AcceptTransferRequest) MarshalJSON

func (atr AcceptTransferRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AcceptTransferRequest.

func (*AcceptTransferRequest) UnmarshalJSON

func (atr *AcceptTransferRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AcceptTransferRequest struct.

type Account

type Account struct {
	autorest.Response `json:"-"`
	// AccountProperties - A billing account.
	*AccountProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Account a billing account resource.

func (Account) MarshalJSON

func (a Account) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Account.

func (*Account) UnmarshalJSON

func (a *Account) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Account struct.

type AccountListResult

type AccountListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of billing accounts.
	Value *[]Account `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

AccountListResult result of listing billing accounts.

func (AccountListResult) IsEmpty

func (alr AccountListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AccountListResultIterator

type AccountListResultIterator struct {
	// contains filtered or unexported fields
}

AccountListResultIterator provides access to a complete listing of Account values.

func NewAccountListResultIterator

func NewAccountListResultIterator(page AccountListResultPage) AccountListResultIterator

Creates a new instance of the AccountListResultIterator type.

func (*AccountListResultIterator) Next

func (iter *AccountListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AccountListResultIterator) NextWithContext

func (iter *AccountListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AccountListResultIterator) NotDone

func (iter AccountListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AccountListResultIterator) Response

Response returns the raw server response from the last page request.

func (AccountListResultIterator) Value

func (iter AccountListResultIterator) Value() Account

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AccountListResultPage

type AccountListResultPage struct {
	// contains filtered or unexported fields
}

AccountListResultPage contains a page of Account values.

func NewAccountListResultPage

func NewAccountListResultPage(getNextPage func(context.Context, AccountListResult) (AccountListResult, error)) AccountListResultPage

Creates a new instance of the AccountListResultPage type.

func (*AccountListResultPage) Next

func (page *AccountListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AccountListResultPage) NextWithContext

func (page *AccountListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AccountListResultPage) NotDone

func (page AccountListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AccountListResultPage) Response

func (page AccountListResultPage) Response() AccountListResult

Response returns the raw server response from the last page request.

func (AccountListResultPage) Values

func (page AccountListResultPage) Values() []Account

Values returns the slice of values for the current page or nil if there are no values.

type AccountProperties

type AccountProperties struct {
	// DisplayName - READ-ONLY; The billing account name.
	DisplayName *string `json:"displayName,omitempty"`
	// AccountType - READ-ONLY; The billing account Type. Possible values include: 'AccountTypeOrganization', 'AccountTypeEnrollment'
	AccountType AccountType `json:"accountType,omitempty"`
	// Address - The address associated with billing account.
	Address *Address `json:"address,omitempty"`
	// Company - READ-ONLY; Company Name.
	Company *string `json:"company,omitempty"`
	// Country - READ-ONLY; Country Name.
	Country *string `json:"country,omitempty"`
	// InvoiceSections - The invoice sections associated to the billing account. By default this is not populated, unless it's specified in $expand.
	InvoiceSections *[]InvoiceSection `json:"invoiceSections,omitempty"`
	// BillingProfiles - The billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand.
	BillingProfiles *[]Profile `json:"billingProfiles,omitempty"`
	// EnrollmentDetails - READ-ONLY; The details about the associated legacy enrollment. By default this is not populated, unless it's specified in $expand.
	EnrollmentDetails *Enrollment `json:"enrollmentDetails,omitempty"`
	// Departments - The departments associated to the enrollment.
	Departments *[]Department `json:"departments,omitempty"`
	// EnrollmentAccounts - The accounts associated to the enrollment.
	EnrollmentAccounts *[]EnrollmentAccount `json:"enrollmentAccounts,omitempty"`
	// HasReadAccess - READ-ONLY; Specifies whether the user has read access on billing account.
	HasReadAccess *bool `json:"hasReadAccess,omitempty"`
}

AccountProperties the properties of the billing account.

func (AccountProperties) MarshalJSON

func (ap AccountProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountProperties.

type AccountType

type AccountType string

AccountType enumerates the values for account type.

const (
	// AccountTypeEnrollment ...
	AccountTypeEnrollment AccountType = "Enrollment"
	// AccountTypeOrganization ...
	AccountTypeOrganization AccountType = "Organization"
)

func PossibleAccountTypeValues

func PossibleAccountTypeValues() []AccountType

PossibleAccountTypeValues returns an array of possible values for the AccountType const type.

type AccountUpdateProperties

type AccountUpdateProperties struct {
	// AccountProperties - A billing property.
	*AccountProperties `json:"properties,omitempty"`
}

AccountUpdateProperties the properties of the billing account that can be updated.

func (AccountUpdateProperties) MarshalJSON

func (aup AccountUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountUpdateProperties.

func (*AccountUpdateProperties) UnmarshalJSON

func (aup *AccountUpdateProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccountUpdateProperties struct.

type AccountsClient

type AccountsClient struct {
	BaseClient
}

AccountsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewAccountsClient

func NewAccountsClient(subscriptionID string) AccountsClient

NewAccountsClient creates an instance of the AccountsClient client.

func NewAccountsClientWithBaseURI

func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient

NewAccountsClientWithBaseURI creates an instance of the AccountsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AccountsClient) Get

func (client AccountsClient) Get(ctx context.Context, billingAccountName string, expand string) (result Account, err error)

Get get the billing account by id. Parameters: billingAccountName - billing Account Id. expand - may be used to expand the invoiceSections and billingProfiles.

func (AccountsClient) GetPreparer

func (client AccountsClient) GetPreparer(ctx context.Context, billingAccountName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AccountsClient) GetResponder

func (client AccountsClient) GetResponder(resp *http.Response) (result Account, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AccountsClient) GetSender

func (client AccountsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) List

func (client AccountsClient) List(ctx context.Context, expand string) (result AccountListResultPage, err error)

List lists all billing accounts for which a user has access. Parameters: expand - may be used to expand the invoiceSections and billingProfiles.

func (AccountsClient) ListComplete

func (client AccountsClient) ListComplete(ctx context.Context, expand string) (result AccountListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AccountsClient) ListPreparer

func (client AccountsClient) ListPreparer(ctx context.Context, expand string) (*http.Request, error)

ListPreparer prepares the List request.

func (AccountsClient) ListResponder

func (client AccountsClient) ListResponder(resp *http.Response) (result AccountListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AccountsClient) ListSender

func (client AccountsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (AccountsClient) Update

func (client AccountsClient) Update(ctx context.Context, billingAccountName string, parameters AccountUpdateProperties) (result AccountsUpdateFuture, err error)

Update the operation to update a billing account. Parameters: billingAccountName - billing Account Id. parameters - parameters supplied to the update billing account operation.

func (AccountsClient) UpdatePreparer

func (client AccountsClient) UpdatePreparer(ctx context.Context, billingAccountName string, parameters AccountUpdateProperties) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AccountsClient) UpdateResponder

func (client AccountsClient) UpdateResponder(resp *http.Response) (result Account, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AccountsClient) UpdateSender

func (client AccountsClient) UpdateSender(req *http.Request) (future AccountsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type AccountsUpdateFuture

type AccountsUpdateFuture struct {
	azure.Future
}

AccountsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*AccountsUpdateFuture) Result

func (future *AccountsUpdateFuture) Result(client AccountsClient) (a Account, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Address

type Address struct {
	// FirstName - First Name.
	FirstName *string `json:"firstName,omitempty"`
	// LastName - Last Name.
	LastName *string `json:"lastName,omitempty"`
	// CompanyName - Company Name.
	CompanyName *string `json:"companyName,omitempty"`
	// AddressLine1 - Address Line1.
	AddressLine1 *string `json:"addressLine1,omitempty"`
	// AddressLine2 - Address Line2.
	AddressLine2 *string `json:"addressLine2,omitempty"`
	// AddressLine3 - Address Line3.
	AddressLine3 *string `json:"addressLine3,omitempty"`
	// City - Address City.
	City *string `json:"city,omitempty"`
	// Region - Address Region.
	Region *string `json:"region,omitempty"`
	// Country - Country code uses ISO2, 2-digit format.
	Country *string `json:"country,omitempty"`
	// PostalCode - Address Postal Code.
	PostalCode *string `json:"postalCode,omitempty"`
}

Address address details.

type AddressValidationStatus

type AddressValidationStatus string

AddressValidationStatus enumerates the values for address validation status.

const (
	// Invalid ...
	Invalid AddressValidationStatus = "Invalid"
	// Valid ...
	Valid AddressValidationStatus = "Valid"
)

func PossibleAddressValidationStatusValues

func PossibleAddressValidationStatusValues() []AddressValidationStatus

PossibleAddressValidationStatusValues returns an array of possible values for the AddressValidationStatus const type.

type AddressesClient

type AddressesClient struct {
	BaseClient
}

AddressesClient is the billing client provides access to billing resources for Azure subscriptions.

func NewAddressesClient

func NewAddressesClient(subscriptionID string) AddressesClient

NewAddressesClient creates an instance of the AddressesClient client.

func NewAddressesClientWithBaseURI

func NewAddressesClientWithBaseURI(baseURI string, subscriptionID string) AddressesClient

NewAddressesClientWithBaseURI creates an instance of the AddressesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AddressesClient) Validate

func (client AddressesClient) Validate(ctx context.Context, address Address) (result ValidateAddressResponse, err error)

Validate validates the address.

func (AddressesClient) ValidatePreparer

func (client AddressesClient) ValidatePreparer(ctx context.Context, address Address) (*http.Request, error)

ValidatePreparer prepares the Validate request.

func (AddressesClient) ValidateResponder

func (client AddressesClient) ValidateResponder(resp *http.Response) (result ValidateAddressResponse, err error)

ValidateResponder handles the response to the Validate request. The method always closes the http.Response Body.

func (AddressesClient) ValidateSender

func (client AddressesClient) ValidateSender(req *http.Request) (*http.Response, error)

ValidateSender sends the Validate request. The method will close the http.Response Body if it receives an error.

type Agreement

type Agreement struct {
	autorest.Response `json:"-"`
	// AgreementProperties - An agreement.
	*AgreementProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Agreement an agreement resource.

func (Agreement) MarshalJSON

func (a Agreement) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Agreement.

func (*Agreement) UnmarshalJSON

func (a *Agreement) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Agreement struct.

type AgreementListResult

type AgreementListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of agreements.
	Value *[]Agreement `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

AgreementListResult result of listing agreements.

func (AgreementListResult) IsEmpty

func (alr AgreementListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AgreementListResultIterator

type AgreementListResultIterator struct {
	// contains filtered or unexported fields
}

AgreementListResultIterator provides access to a complete listing of Agreement values.

func NewAgreementListResultIterator

func NewAgreementListResultIterator(page AgreementListResultPage) AgreementListResultIterator

Creates a new instance of the AgreementListResultIterator type.

func (*AgreementListResultIterator) Next

func (iter *AgreementListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AgreementListResultIterator) NextWithContext

func (iter *AgreementListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AgreementListResultIterator) NotDone

func (iter AgreementListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AgreementListResultIterator) Response

Response returns the raw server response from the last page request.

func (AgreementListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AgreementListResultPage

type AgreementListResultPage struct {
	// contains filtered or unexported fields
}

AgreementListResultPage contains a page of Agreement values.

func NewAgreementListResultPage

func NewAgreementListResultPage(getNextPage func(context.Context, AgreementListResult) (AgreementListResult, error)) AgreementListResultPage

Creates a new instance of the AgreementListResultPage type.

func (*AgreementListResultPage) Next

func (page *AgreementListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AgreementListResultPage) NextWithContext

func (page *AgreementListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AgreementListResultPage) NotDone

func (page AgreementListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AgreementListResultPage) Response

Response returns the raw server response from the last page request.

func (AgreementListResultPage) Values

func (page AgreementListResultPage) Values() []Agreement

Values returns the slice of values for the current page or nil if there are no values.

type AgreementProperties

type AgreementProperties struct {
	// AgreementLink - READ-ONLY; The link to the agreement.
	AgreementLink *string `json:"agreementLink,omitempty"`
	// EffectiveDate - READ-ONLY; Effective date.
	EffectiveDate *date.Time `json:"effectiveDate,omitempty"`
	// ExpirationDate - READ-ONLY; Expiration date.
	ExpirationDate *date.Time `json:"expirationDate,omitempty"`
	// Participants - Participants or signer of the agreement.
	Participants *[]Participants `json:"participants,omitempty"`
	// Status - READ-ONLY; The agreement status
	Status *string `json:"status,omitempty"`
}

AgreementProperties the properties of the agreement.

func (AgreementProperties) MarshalJSON

func (ap AgreementProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AgreementProperties.

type AgreementsClient

type AgreementsClient struct {
	BaseClient
}

AgreementsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewAgreementsClient

func NewAgreementsClient(subscriptionID string) AgreementsClient

NewAgreementsClient creates an instance of the AgreementsClient client.

func NewAgreementsClientWithBaseURI

func NewAgreementsClientWithBaseURI(baseURI string, subscriptionID string) AgreementsClient

NewAgreementsClientWithBaseURI creates an instance of the AgreementsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AgreementsClient) Get

func (client AgreementsClient) Get(ctx context.Context, billingAccountName string, agreementName string, expand string) (result Agreement, err error)

Get get the agreement by name. Parameters: billingAccountName - billing Account Id. agreementName - agreement Id. expand - may be used to expand the participants.

func (AgreementsClient) GetPreparer

func (client AgreementsClient) GetPreparer(ctx context.Context, billingAccountName string, agreementName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AgreementsClient) GetResponder

func (client AgreementsClient) GetResponder(resp *http.Response) (result Agreement, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AgreementsClient) GetSender

func (client AgreementsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AgreementsClient) ListByBillingAccountName

func (client AgreementsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, expand string) (result AgreementListResultPage, err error)

ListByBillingAccountName lists all agreements for a billing account. Parameters: billingAccountName - billing Account Id. expand - may be used to expand the participants.

func (AgreementsClient) ListByBillingAccountNameComplete

func (client AgreementsClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string, expand string) (result AgreementListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (AgreementsClient) ListByBillingAccountNamePreparer

func (client AgreementsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, expand string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (AgreementsClient) ListByBillingAccountNameResponder

func (client AgreementsClient) ListByBillingAccountNameResponder(resp *http.Response) (result AgreementListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (AgreementsClient) ListByBillingAccountNameSender

func (client AgreementsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

type Amount

type Amount struct {
	// Currency - READ-ONLY; The currency for the amount value.
	Currency *string `json:"currency,omitempty"`
	// Value - Amount value.
	Value *float64 `json:"value,omitempty"`
}

Amount the Amount.

func (Amount) MarshalJSON

func (a Amount) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Amount.

type AvailableBalance

type AvailableBalance struct {
	autorest.Response           `json:"-"`
	*AvailableBalanceProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

AvailableBalance latest available balance on Monetary Credit PI.

func (AvailableBalance) MarshalJSON

func (ab AvailableBalance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AvailableBalance.

func (*AvailableBalance) UnmarshalJSON

func (ab *AvailableBalance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AvailableBalance struct.

type AvailableBalanceProperties

type AvailableBalanceProperties struct {
	// Amount - READ-ONLY; Balance Amount.
	Amount *Amount `json:"amount,omitempty"`
}

AvailableBalanceProperties the properties of available balance.

type AvailableBalancesClient

type AvailableBalancesClient struct {
	BaseClient
}

AvailableBalancesClient is the billing client provides access to billing resources for Azure subscriptions.

func NewAvailableBalancesClient

func NewAvailableBalancesClient(subscriptionID string) AvailableBalancesClient

NewAvailableBalancesClient creates an instance of the AvailableBalancesClient client.

func NewAvailableBalancesClientWithBaseURI

func NewAvailableBalancesClientWithBaseURI(baseURI string, subscriptionID string) AvailableBalancesClient

NewAvailableBalancesClientWithBaseURI creates an instance of the AvailableBalancesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AvailableBalancesClient) GetByBillingProfile

func (client AvailableBalancesClient) GetByBillingProfile(ctx context.Context, billingAccountName string, billingProfileName string) (result AvailableBalance, err error)

GetByBillingProfile the latest available credit balance for a given billingAccountName and billingProfileName. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (AvailableBalancesClient) GetByBillingProfilePreparer

func (client AvailableBalancesClient) GetByBillingProfilePreparer(ctx context.Context, billingAccountName string, billingProfileName string) (*http.Request, error)

GetByBillingProfilePreparer prepares the GetByBillingProfile request.

func (AvailableBalancesClient) GetByBillingProfileResponder

func (client AvailableBalancesClient) GetByBillingProfileResponder(resp *http.Response) (result AvailableBalance, err error)

GetByBillingProfileResponder handles the response to the GetByBillingProfile request. The method always closes the http.Response Body.

func (AvailableBalancesClient) GetByBillingProfileSender

func (client AvailableBalancesClient) GetByBillingProfileSender(req *http.Request) (*http.Response, error)

GetByBillingProfileSender sends the GetByBillingProfile request. The method will close the http.Response Body if it receives an error.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Billing.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Customer

type Customer struct {
	autorest.Response `json:"-"`
	// CustomerProperties - The customer.
	*CustomerProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Customer a partner's customer.

func (Customer) MarshalJSON

func (c Customer) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Customer.

func (*Customer) UnmarshalJSON

func (c *Customer) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Customer struct.

type CustomerListResult

type CustomerListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of customers.
	Value *[]Customer `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

CustomerListResult result of listing customers.

func (CustomerListResult) IsEmpty

func (clr CustomerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CustomerListResultIterator

type CustomerListResultIterator struct {
	// contains filtered or unexported fields
}

CustomerListResultIterator provides access to a complete listing of Customer values.

func NewCustomerListResultIterator

func NewCustomerListResultIterator(page CustomerListResultPage) CustomerListResultIterator

Creates a new instance of the CustomerListResultIterator type.

func (*CustomerListResultIterator) Next

func (iter *CustomerListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*CustomerListResultIterator) NextWithContext

func (iter *CustomerListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (CustomerListResultIterator) NotDone

func (iter CustomerListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (CustomerListResultIterator) Response

Response returns the raw server response from the last page request.

func (CustomerListResultIterator) Value

func (iter CustomerListResultIterator) Value() Customer

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type CustomerListResultPage

type CustomerListResultPage struct {
	// contains filtered or unexported fields
}

CustomerListResultPage contains a page of Customer values.

func NewCustomerListResultPage

func NewCustomerListResultPage(getNextPage func(context.Context, CustomerListResult) (CustomerListResult, error)) CustomerListResultPage

Creates a new instance of the CustomerListResultPage type.

func (*CustomerListResultPage) Next

func (page *CustomerListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*CustomerListResultPage) NextWithContext

func (page *CustomerListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (CustomerListResultPage) NotDone

func (page CustomerListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (CustomerListResultPage) Response

Response returns the raw server response from the last page request.

func (CustomerListResultPage) Values

func (page CustomerListResultPage) Values() []Customer

Values returns the slice of values for the current page or nil if there are no values.

type CustomerProperties

type CustomerProperties struct {
	// DisplayName - The name of the customer.
	DisplayName *string `json:"displayName,omitempty"`
	// EnabledAzureSKUs - Information about the product.
	EnabledAzureSKUs *[]EnabledAzureSKUs `json:"enabledAzureSKUs,omitempty"`
	// Resellers - The resellers which are allowed to provide service to this customer.
	Resellers *[]Reseller `json:"resellers,omitempty"`
}

CustomerProperties the properties of a customer.

type CustomersClient

type CustomersClient struct {
	BaseClient
}

CustomersClient is the billing client provides access to billing resources for Azure subscriptions.

func NewCustomersClient

func NewCustomersClient(subscriptionID string) CustomersClient

NewCustomersClient creates an instance of the CustomersClient client.

func NewCustomersClientWithBaseURI

func NewCustomersClientWithBaseURI(baseURI string, subscriptionID string) CustomersClient

NewCustomersClientWithBaseURI creates an instance of the CustomersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CustomersClient) Get

func (client CustomersClient) Get(ctx context.Context, billingAccountName string, customerName string, expand string) (result Customer, err error)

Get get the customer by id. Parameters: billingAccountName - billing Account Id. customerName - customer Id. expand - may be used to expand enabledAzureSkus, resellers.

func (CustomersClient) GetPreparer

func (client CustomersClient) GetPreparer(ctx context.Context, billingAccountName string, customerName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CustomersClient) GetResponder

func (client CustomersClient) GetResponder(resp *http.Response) (result Customer, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (CustomersClient) GetSender

func (client CustomersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (CustomersClient) ListByBillingAccountName

func (client CustomersClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, filter string, skiptoken string) (result CustomerListResultPage, err error)

ListByBillingAccountName lists all customers which the current user can work with on-behalf of a partner. Parameters: billingAccountName - billing Account Id. filter - may be used to filter using hasPermission('{permissionId}') to only return customers for which the caller has the specified permission. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls.

func (CustomersClient) ListByBillingAccountNameComplete

func (client CustomersClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string, filter string, skiptoken string) (result CustomerListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (CustomersClient) ListByBillingAccountNamePreparer

func (client CustomersClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, filter string, skiptoken string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (CustomersClient) ListByBillingAccountNameResponder

func (client CustomersClient) ListByBillingAccountNameResponder(resp *http.Response) (result CustomerListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (CustomersClient) ListByBillingAccountNameSender

func (client CustomersClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

type Department

type Department struct {
	autorest.Response `json:"-"`
	// DepartmentProperties - A department.
	*DepartmentProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Department a department resource.

func (Department) MarshalJSON

func (d Department) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Department.

func (*Department) UnmarshalJSON

func (d *Department) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Department struct.

type DepartmentListResult

type DepartmentListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of departments.
	Value *[]Department `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

DepartmentListResult result of listing departments.

func (DepartmentListResult) IsEmpty

func (dlr DepartmentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DepartmentListResultIterator

type DepartmentListResultIterator struct {
	// contains filtered or unexported fields
}

DepartmentListResultIterator provides access to a complete listing of Department values.

func NewDepartmentListResultIterator

func NewDepartmentListResultIterator(page DepartmentListResultPage) DepartmentListResultIterator

Creates a new instance of the DepartmentListResultIterator type.

func (*DepartmentListResultIterator) Next

func (iter *DepartmentListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DepartmentListResultIterator) NextWithContext

func (iter *DepartmentListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DepartmentListResultIterator) NotDone

func (iter DepartmentListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DepartmentListResultIterator) Response

Response returns the raw server response from the last page request.

func (DepartmentListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DepartmentListResultPage

type DepartmentListResultPage struct {
	// contains filtered or unexported fields
}

DepartmentListResultPage contains a page of Department values.

func NewDepartmentListResultPage

func NewDepartmentListResultPage(getNextPage func(context.Context, DepartmentListResult) (DepartmentListResult, error)) DepartmentListResultPage

Creates a new instance of the DepartmentListResultPage type.

func (*DepartmentListResultPage) Next

func (page *DepartmentListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DepartmentListResultPage) NextWithContext

func (page *DepartmentListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DepartmentListResultPage) NotDone

func (page DepartmentListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DepartmentListResultPage) Response

Response returns the raw server response from the last page request.

func (DepartmentListResultPage) Values

func (page DepartmentListResultPage) Values() []Department

Values returns the slice of values for the current page or nil if there are no values.

type DepartmentProperties

type DepartmentProperties struct {
	// DepartmentName - The name for department.
	DepartmentName *string `json:"departmentName,omitempty"`
	// CostCenter - The cost center name.
	CostCenter *string `json:"costCenter,omitempty"`
	// Status - The status for department.
	Status *string `json:"status,omitempty"`
	// EnrollmentAccounts - Associated enrollment accounts. By default this is not populated, unless it's specified in $expand.
	EnrollmentAccounts *[]EnrollmentAccount `json:"enrollmentAccounts,omitempty"`
}

DepartmentProperties the properties of the department.

type DepartmentsClient

type DepartmentsClient struct {
	BaseClient
}

DepartmentsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewDepartmentsClient

func NewDepartmentsClient(subscriptionID string) DepartmentsClient

NewDepartmentsClient creates an instance of the DepartmentsClient client.

func NewDepartmentsClientWithBaseURI

func NewDepartmentsClientWithBaseURI(baseURI string, subscriptionID string) DepartmentsClient

NewDepartmentsClientWithBaseURI creates an instance of the DepartmentsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DepartmentsClient) Get

func (client DepartmentsClient) Get(ctx context.Context, billingAccountName string, departmentName string, expand string, filter string) (result Department, err error)

Get get the department by id. Parameters: billingAccountName - billing Account Id. departmentName - department Id. expand - may be used to expand the enrollmentAccounts. filter - the filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (DepartmentsClient) GetPreparer

func (client DepartmentsClient) GetPreparer(ctx context.Context, billingAccountName string, departmentName string, expand string, filter string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DepartmentsClient) GetResponder

func (client DepartmentsClient) GetResponder(resp *http.Response) (result Department, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DepartmentsClient) GetSender

func (client DepartmentsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DepartmentsClient) ListByBillingAccountName

func (client DepartmentsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, expand string, filter string) (result DepartmentListResultPage, err error)

ListByBillingAccountName lists all departments for which a user has access. Parameters: billingAccountName - billing Account Id. expand - may be used to expand the enrollmentAccounts. filter - the filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (DepartmentsClient) ListByBillingAccountNameComplete

func (client DepartmentsClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string, expand string, filter string) (result DepartmentListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (DepartmentsClient) ListByBillingAccountNamePreparer

func (client DepartmentsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, expand string, filter string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (DepartmentsClient) ListByBillingAccountNameResponder

func (client DepartmentsClient) ListByBillingAccountNameResponder(resp *http.Response) (result DepartmentListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (DepartmentsClient) ListByBillingAccountNameSender

func (client DepartmentsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

type DetailedTransferStatus

type DetailedTransferStatus struct {
	// ProductType - READ-ONLY; Type of product being transferred. Possible values include: 'ProductTypeAzureSubscription', 'ProductTypeAzureReservation'
	ProductType ProductType `json:"productType,omitempty"`
	// ProductID - READ-ONLY; Id of product being transferred.
	ProductID *string `json:"productId,omitempty"`
	// TransferStatus - READ-ONLY; Transfer status. Possible values include: 'NotStarted', 'InProgress', 'Completed', 'Failed'
	TransferStatus ProductTransferStatus `json:"transferStatus,omitempty"`
	// ErrorDetails - Error details for transfer execution.
	ErrorDetails *Error `json:"errorDetails,omitempty"`
}

DetailedTransferStatus detailed transfer status.

func (DetailedTransferStatus) MarshalJSON

func (dts DetailedTransferStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DetailedTransferStatus.

type DownloadProperties

type DownloadProperties struct {
	// Kind - READ-ONLY; Document type. Possible values include: 'Invoice', 'VoidNote', 'Receipt', 'CreditNote'
	Kind Kind `json:"kind,omitempty"`
	// URL - READ-ONLY; Document URL.
	URL *string `json:"url,omitempty"`
}

DownloadProperties the properties of the invoice download.

type DownloadURL

type DownloadURL struct {
	autorest.Response `json:"-"`
	// ExpiryTime - READ-ONLY; The time in UTC at which this download URL will expire.
	ExpiryTime *date.Time `json:"expiryTime,omitempty"`
	// URL - READ-ONLY; The URL to the PDF file.
	URL *string `json:"url,omitempty"`
}

DownloadURL a secure URL that can be used to download a an entity until the URL expires.

type EligibleProductType

type EligibleProductType string

EligibleProductType enumerates the values for eligible product type.

const (
	// AzureReservation ...
	AzureReservation EligibleProductType = "AzureReservation"
	// DevTestAzureSubscription ...
	DevTestAzureSubscription EligibleProductType = "DevTestAzureSubscription"
	// StandardAzureSubscription ...
	StandardAzureSubscription EligibleProductType = "StandardAzureSubscription"
)

func PossibleEligibleProductTypeValues

func PossibleEligibleProductTypeValues() []EligibleProductType

PossibleEligibleProductTypeValues returns an array of possible values for the EligibleProductType const type.

type EnabledAzureSKUs

type EnabledAzureSKUs struct {
	// SkuID - The sku id.
	SkuID *string `json:"skuId,omitempty"`
	// SkuDescription - READ-ONLY; The sku description.
	SkuDescription *string `json:"skuDescription,omitempty"`
}

EnabledAzureSKUs details about the enabled azure sku.

func (EnabledAzureSKUs) MarshalJSON

func (easu EnabledAzureSKUs) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnabledAzureSKUs.

type Enrollment

type Enrollment struct {
	// StartDate - Enrollment Start Date
	StartDate *date.Time `json:"startDate,omitempty"`
	// EndDate - Enrollment End Date
	EndDate *date.Time `json:"endDate,omitempty"`
	// Currency - READ-ONLY; The currency associated with enrollment
	Currency *string `json:"currency,omitempty"`
	// Channel - READ-ONLY; The channel for Enrollment
	Channel *string `json:"channel,omitempty"`
	// Policies - READ-ONLY; The attributes associated with legacy enrollment.
	Policies *EnrollmentPolicies `json:"policies,omitempty"`
	// Language - READ-ONLY; The language for Enrollment
	Language *string `json:"language,omitempty"`
	// CountryCode - READ-ONLY; The countryCode for Enrollment
	CountryCode *string `json:"countryCode,omitempty"`
	// Status - READ-ONLY; Enrollment status
	Status *string `json:"status,omitempty"`
	// BillingCycle - READ-ONLY; Enrollment billing cycle
	BillingCycle *string `json:"billingCycle,omitempty"`
}

Enrollment current entity level details

func (Enrollment) MarshalJSON

func (e Enrollment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Enrollment.

type EnrollmentAccount

type EnrollmentAccount struct {
	autorest.Response `json:"-"`
	// EnrollmentAccountProperties - An account.
	*EnrollmentAccountProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

EnrollmentAccount an account resource.

func (EnrollmentAccount) MarshalJSON

func (ea EnrollmentAccount) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnrollmentAccount.

func (*EnrollmentAccount) UnmarshalJSON

func (ea *EnrollmentAccount) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EnrollmentAccount struct.

type EnrollmentAccountContext

type EnrollmentAccountContext struct {
	// CostCenter - The cost center name.
	CostCenter *string `json:"costCenter,omitempty"`
	// StartDate - Account Start Date
	StartDate *date.Time `json:"startDate,omitempty"`
	// EndDate - Account End Date
	EndDate *date.Time `json:"endDate,omitempty"`
	// EnrollmentAccountName - The enrollment account id.
	EnrollmentAccountName *string `json:"enrollmentAccountName,omitempty"`
}

EnrollmentAccountContext the rating context.

type EnrollmentAccountListResult

type EnrollmentAccountListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of enrollment accounts.
	Value *[]EnrollmentAccount `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

EnrollmentAccountListResult result of listing enrollment accounts.

func (EnrollmentAccountListResult) IsEmpty

func (ealr EnrollmentAccountListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EnrollmentAccountListResultIterator

type EnrollmentAccountListResultIterator struct {
	// contains filtered or unexported fields
}

EnrollmentAccountListResultIterator provides access to a complete listing of EnrollmentAccount values.

func NewEnrollmentAccountListResultIterator

func NewEnrollmentAccountListResultIterator(page EnrollmentAccountListResultPage) EnrollmentAccountListResultIterator

Creates a new instance of the EnrollmentAccountListResultIterator type.

func (*EnrollmentAccountListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*EnrollmentAccountListResultIterator) NextWithContext

func (iter *EnrollmentAccountListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (EnrollmentAccountListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (EnrollmentAccountListResultIterator) Response

Response returns the raw server response from the last page request.

func (EnrollmentAccountListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type EnrollmentAccountListResultPage

type EnrollmentAccountListResultPage struct {
	// contains filtered or unexported fields
}

EnrollmentAccountListResultPage contains a page of EnrollmentAccount values.

func NewEnrollmentAccountListResultPage

func NewEnrollmentAccountListResultPage(getNextPage func(context.Context, EnrollmentAccountListResult) (EnrollmentAccountListResult, error)) EnrollmentAccountListResultPage

Creates a new instance of the EnrollmentAccountListResultPage type.

func (*EnrollmentAccountListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*EnrollmentAccountListResultPage) NextWithContext

func (page *EnrollmentAccountListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (EnrollmentAccountListResultPage) NotDone

func (page EnrollmentAccountListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (EnrollmentAccountListResultPage) Response

Response returns the raw server response from the last page request.

func (EnrollmentAccountListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type EnrollmentAccountProperties

type EnrollmentAccountProperties struct {
	// AccountName - The account name.
	AccountName *string `json:"accountName,omitempty"`
	// CostCenter - The cost center name.
	CostCenter *string `json:"costCenter,omitempty"`
	// AccountOwner - The account owner
	AccountOwner *string `json:"accountOwner,omitempty"`
	// Status - The status for account.
	Status *string `json:"status,omitempty"`
	// StartDate - Account Start Date
	StartDate *date.Time `json:"startDate,omitempty"`
	// EndDate - Account End Date
	EndDate *date.Time `json:"endDate,omitempty"`
	// Department - Associated department. By default this is not populated, unless it's specified in $expand.
	Department *Department `json:"department,omitempty"`
}

EnrollmentAccountProperties the properties of the account.

type EnrollmentAccountsClient

type EnrollmentAccountsClient struct {
	BaseClient
}

EnrollmentAccountsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewEnrollmentAccountsClient

func NewEnrollmentAccountsClient(subscriptionID string) EnrollmentAccountsClient

NewEnrollmentAccountsClient creates an instance of the EnrollmentAccountsClient client.

func NewEnrollmentAccountsClientWithBaseURI

func NewEnrollmentAccountsClientWithBaseURI(baseURI string, subscriptionID string) EnrollmentAccountsClient

NewEnrollmentAccountsClientWithBaseURI creates an instance of the EnrollmentAccountsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (EnrollmentAccountsClient) GetByEnrollmentAccountID

func (client EnrollmentAccountsClient) GetByEnrollmentAccountID(ctx context.Context, billingAccountName string, enrollmentAccountName string, expand string, filter string) (result EnrollmentAccount, err error)

GetByEnrollmentAccountID get the enrollment account by id. Parameters: billingAccountName - billing Account Id. enrollmentAccountName - enrollment Account Id. expand - may be used to expand the Department. filter - the filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (EnrollmentAccountsClient) GetByEnrollmentAccountIDPreparer

func (client EnrollmentAccountsClient) GetByEnrollmentAccountIDPreparer(ctx context.Context, billingAccountName string, enrollmentAccountName string, expand string, filter string) (*http.Request, error)

GetByEnrollmentAccountIDPreparer prepares the GetByEnrollmentAccountID request.

func (EnrollmentAccountsClient) GetByEnrollmentAccountIDResponder

func (client EnrollmentAccountsClient) GetByEnrollmentAccountIDResponder(resp *http.Response) (result EnrollmentAccount, err error)

GetByEnrollmentAccountIDResponder handles the response to the GetByEnrollmentAccountID request. The method always closes the http.Response Body.

func (EnrollmentAccountsClient) GetByEnrollmentAccountIDSender

func (client EnrollmentAccountsClient) GetByEnrollmentAccountIDSender(req *http.Request) (*http.Response, error)

GetByEnrollmentAccountIDSender sends the GetByEnrollmentAccountID request. The method will close the http.Response Body if it receives an error.

func (EnrollmentAccountsClient) ListByBillingAccountName

func (client EnrollmentAccountsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, expand string, filter string) (result EnrollmentAccountListResultPage, err error)

ListByBillingAccountName lists all Enrollment Accounts for which a user has access. Parameters: billingAccountName - billing Account Id. expand - may be used to expand the department. filter - the filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (EnrollmentAccountsClient) ListByBillingAccountNameComplete

func (client EnrollmentAccountsClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string, expand string, filter string) (result EnrollmentAccountListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (EnrollmentAccountsClient) ListByBillingAccountNamePreparer

func (client EnrollmentAccountsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, expand string, filter string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (EnrollmentAccountsClient) ListByBillingAccountNameResponder

func (client EnrollmentAccountsClient) ListByBillingAccountNameResponder(resp *http.Response) (result EnrollmentAccountListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (EnrollmentAccountsClient) ListByBillingAccountNameSender

func (client EnrollmentAccountsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

type EnrollmentPolicies

type EnrollmentPolicies struct {
	// AccountOwnerViewCharges - READ-ONLY; The accountOwnerViewCharges flag for Enrollment
	AccountOwnerViewCharges *bool `json:"accountOwnerViewCharges,omitempty"`
	// DepartmentAdminViewCharges - READ-ONLY; The departmentAdminViewCharges flag for Enrollment
	DepartmentAdminViewCharges *bool `json:"departmentAdminViewCharges,omitempty"`
	// MarketplacesEnabled - READ-ONLY; The marketplaces flag for Enrollment
	MarketplacesEnabled *bool `json:"marketplacesEnabled,omitempty"`
	// ReservedInstancesEnabled - READ-ONLY; The reserved instances flag for Enrollment
	ReservedInstancesEnabled *bool `json:"reservedInstancesEnabled,omitempty"`
}

EnrollmentPolicies the attributes associated with legacy enrollment

type Error

type Error struct {
	// ErrorCode - READ-ONLY; Error code.
	ErrorCode *string `json:"errorCode,omitempty"`
	// ErrorMessage - READ-ONLY; Error message.
	ErrorMessage *string `json:"errorMessage,omitempty"`
}

Error error details for transfer execution.

type ErrorDetails

type ErrorDetails struct {
	// Code - READ-ONLY; Error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; Error message indicating why the operation failed.
	Message *string `json:"message,omitempty"`
	// Target - READ-ONLY; The target of the particular error.
	Target *string `json:"target,omitempty"`
}

ErrorDetails the details of the error.

type ErrorResponse

type ErrorResponse struct {
	// Error - The details of the error.
	Error *ErrorDetails `json:"error,omitempty"`
}

ErrorResponse error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.

type Frequency

type Frequency string

Frequency enumerates the values for frequency.

const (
	// Monthly ...
	Monthly Frequency = "Monthly"
	// OneTime ...
	OneTime Frequency = "OneTime"
	// UsageBased ...
	UsageBased Frequency = "UsageBased"
)

func PossibleFrequencyValues

func PossibleFrequencyValues() []Frequency

PossibleFrequencyValues returns an array of possible values for the Frequency const type.

type InitiateTransferProperties

type InitiateTransferProperties struct {
	// BillingProfileID - Target Usage context for devTest subscriptions.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
	// RecipientEmailID - Email Id of recipient for transfer.
	RecipientEmailID *string `json:"recipientEmailId,omitempty"`
}

InitiateTransferProperties request parameters to initiate transfer.

type InitiateTransferRequest

type InitiateTransferRequest struct {
	// InitiateTransferProperties - Request parameters to initiate transfer.
	*InitiateTransferProperties `json:"properties,omitempty"`
}

InitiateTransferRequest request parameters to initiate transfer.

func (InitiateTransferRequest) MarshalJSON

func (itr InitiateTransferRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InitiateTransferRequest.

func (*InitiateTransferRequest) UnmarshalJSON

func (itr *InitiateTransferRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InitiateTransferRequest struct.

type InvoiceListResult

type InvoiceListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of invoices.
	Value *[]InvoiceSummary `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

InvoiceListResult result of listing invoices.

func (InvoiceListResult) IsEmpty

func (ilr InvoiceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InvoiceListResultIterator

type InvoiceListResultIterator struct {
	// contains filtered or unexported fields
}

InvoiceListResultIterator provides access to a complete listing of InvoiceSummary values.

func NewInvoiceListResultIterator

func NewInvoiceListResultIterator(page InvoiceListResultPage) InvoiceListResultIterator

Creates a new instance of the InvoiceListResultIterator type.

func (*InvoiceListResultIterator) Next

func (iter *InvoiceListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*InvoiceListResultIterator) NextWithContext

func (iter *InvoiceListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (InvoiceListResultIterator) NotDone

func (iter InvoiceListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (InvoiceListResultIterator) Response

Response returns the raw server response from the last page request.

func (InvoiceListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type InvoiceListResultPage

type InvoiceListResultPage struct {
	// contains filtered or unexported fields
}

InvoiceListResultPage contains a page of InvoiceSummary values.

func NewInvoiceListResultPage

func NewInvoiceListResultPage(getNextPage func(context.Context, InvoiceListResult) (InvoiceListResult, error)) InvoiceListResultPage

Creates a new instance of the InvoiceListResultPage type.

func (*InvoiceListResultPage) Next

func (page *InvoiceListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*InvoiceListResultPage) NextWithContext

func (page *InvoiceListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (InvoiceListResultPage) NotDone

func (page InvoiceListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (InvoiceListResultPage) Response

func (page InvoiceListResultPage) Response() InvoiceListResult

Response returns the raw server response from the last page request.

func (InvoiceListResultPage) Values

func (page InvoiceListResultPage) Values() []InvoiceSummary

Values returns the slice of values for the current page or nil if there are no values.

type InvoiceSection

type InvoiceSection struct {
	autorest.Response `json:"-"`
	// InvoiceSectionProperties - The InvoiceSection.
	*InvoiceSectionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

InvoiceSection an InvoiceSection resource.

func (InvoiceSection) MarshalJSON

func (is InvoiceSection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InvoiceSection.

func (*InvoiceSection) UnmarshalJSON

func (is *InvoiceSection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InvoiceSection struct.

type InvoiceSectionCreationRequest

type InvoiceSectionCreationRequest struct {
	// DisplayName - The name of the InvoiceSection.
	DisplayName *string `json:"displayName,omitempty"`
	// BillingProfileID - The billing profile id.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
}

InvoiceSectionCreationRequest the properties of an InvoiceSection.

type InvoiceSectionListResult

type InvoiceSectionListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of invoice sections.
	Value *[]InvoiceSection `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

InvoiceSectionListResult result of listing invoice sections.

func (InvoiceSectionListResult) IsEmpty

func (islr InvoiceSectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InvoiceSectionListResultIterator

type InvoiceSectionListResultIterator struct {
	// contains filtered or unexported fields
}

InvoiceSectionListResultIterator provides access to a complete listing of InvoiceSection values.

func NewInvoiceSectionListResultIterator

func NewInvoiceSectionListResultIterator(page InvoiceSectionListResultPage) InvoiceSectionListResultIterator

Creates a new instance of the InvoiceSectionListResultIterator type.

func (*InvoiceSectionListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*InvoiceSectionListResultIterator) NextWithContext

func (iter *InvoiceSectionListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (InvoiceSectionListResultIterator) NotDone

func (iter InvoiceSectionListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (InvoiceSectionListResultIterator) Response

Response returns the raw server response from the last page request.

func (InvoiceSectionListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type InvoiceSectionListResultPage

type InvoiceSectionListResultPage struct {
	// contains filtered or unexported fields
}

InvoiceSectionListResultPage contains a page of InvoiceSection values.

func NewInvoiceSectionListResultPage

func NewInvoiceSectionListResultPage(getNextPage func(context.Context, InvoiceSectionListResult) (InvoiceSectionListResult, error)) InvoiceSectionListResultPage

Creates a new instance of the InvoiceSectionListResultPage type.

func (*InvoiceSectionListResultPage) Next

func (page *InvoiceSectionListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*InvoiceSectionListResultPage) NextWithContext

func (page *InvoiceSectionListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (InvoiceSectionListResultPage) NotDone

func (page InvoiceSectionListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (InvoiceSectionListResultPage) Response

Response returns the raw server response from the last page request.

func (InvoiceSectionListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type InvoiceSectionProperties

type InvoiceSectionProperties struct {
	// DisplayName - The name of the InvoiceSection.
	DisplayName *string `json:"displayName,omitempty"`
	// BillingProfiles - The billing profiles associated to the billing account.
	BillingProfiles *[]Profile `json:"billingProfiles,omitempty"`
}

InvoiceSectionProperties the properties of an InvoiceSection.

type InvoiceSectionsClient

type InvoiceSectionsClient struct {
	BaseClient
}

InvoiceSectionsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewInvoiceSectionsClient

func NewInvoiceSectionsClient(subscriptionID string) InvoiceSectionsClient

NewInvoiceSectionsClient creates an instance of the InvoiceSectionsClient client.

func NewInvoiceSectionsClientWithBaseURI

func NewInvoiceSectionsClientWithBaseURI(baseURI string, subscriptionID string) InvoiceSectionsClient

NewInvoiceSectionsClientWithBaseURI creates an instance of the InvoiceSectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (InvoiceSectionsClient) Create

func (client InvoiceSectionsClient) Create(ctx context.Context, billingAccountName string, parameters InvoiceSectionCreationRequest) (result InvoiceSectionsCreateFuture, err error)

Create the operation to create a InvoiceSection. Parameters: billingAccountName - billing Account Id. parameters - parameters supplied to the Create InvoiceSection operation.

func (InvoiceSectionsClient) CreatePreparer

func (client InvoiceSectionsClient) CreatePreparer(ctx context.Context, billingAccountName string, parameters InvoiceSectionCreationRequest) (*http.Request, error)

CreatePreparer prepares the Create request.

func (InvoiceSectionsClient) CreateResponder

func (client InvoiceSectionsClient) CreateResponder(resp *http.Response) (result InvoiceSection, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (InvoiceSectionsClient) CreateSender

func (client InvoiceSectionsClient) CreateSender(req *http.Request) (future InvoiceSectionsCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (InvoiceSectionsClient) ElevateToBillingProfile

func (client InvoiceSectionsClient) ElevateToBillingProfile(ctx context.Context, billingAccountName string, invoiceSectionName string) (result autorest.Response, err error)

ElevateToBillingProfile elevates the caller's access to match their billing profile access. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (InvoiceSectionsClient) ElevateToBillingProfilePreparer

func (client InvoiceSectionsClient) ElevateToBillingProfilePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string) (*http.Request, error)

ElevateToBillingProfilePreparer prepares the ElevateToBillingProfile request.

func (InvoiceSectionsClient) ElevateToBillingProfileResponder

func (client InvoiceSectionsClient) ElevateToBillingProfileResponder(resp *http.Response) (result autorest.Response, err error)

ElevateToBillingProfileResponder handles the response to the ElevateToBillingProfile request. The method always closes the http.Response Body.

func (InvoiceSectionsClient) ElevateToBillingProfileSender

func (client InvoiceSectionsClient) ElevateToBillingProfileSender(req *http.Request) (*http.Response, error)

ElevateToBillingProfileSender sends the ElevateToBillingProfile request. The method will close the http.Response Body if it receives an error.

func (InvoiceSectionsClient) Get

func (client InvoiceSectionsClient) Get(ctx context.Context, billingAccountName string, invoiceSectionName string, expand string) (result InvoiceSection, err error)

Get get the InvoiceSection by id. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. expand - may be used to expand the billingProfiles.

func (InvoiceSectionsClient) GetPreparer

func (client InvoiceSectionsClient) GetPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (InvoiceSectionsClient) GetResponder

func (client InvoiceSectionsClient) GetResponder(resp *http.Response) (result InvoiceSection, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (InvoiceSectionsClient) GetSender

func (client InvoiceSectionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (InvoiceSectionsClient) ListByBillingAccountName

func (client InvoiceSectionsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, expand string) (result InvoiceSectionListResult, err error)

ListByBillingAccountName lists all invoice sections for which a user has access. Parameters: billingAccountName - billing Account Id. expand - may be used to expand the billingProfiles.

func (InvoiceSectionsClient) ListByBillingAccountNamePreparer

func (client InvoiceSectionsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, expand string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (InvoiceSectionsClient) ListByBillingAccountNameResponder

func (client InvoiceSectionsClient) ListByBillingAccountNameResponder(resp *http.Response) (result InvoiceSectionListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (InvoiceSectionsClient) ListByBillingAccountNameSender

func (client InvoiceSectionsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (InvoiceSectionsClient) ListByBillingProfileName

func (client InvoiceSectionsClient) ListByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string) (result InvoiceSectionListResultPage, err error)

ListByBillingProfileName lists all invoice sections under a billing profile for which a user has access. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (InvoiceSectionsClient) ListByBillingProfileNameComplete

func (client InvoiceSectionsClient) ListByBillingProfileNameComplete(ctx context.Context, billingAccountName string, billingProfileName string) (result InvoiceSectionListResultIterator, err error)

ListByBillingProfileNameComplete enumerates all values, automatically crossing page boundaries as required.

func (InvoiceSectionsClient) ListByBillingProfileNamePreparer

func (client InvoiceSectionsClient) ListByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string) (*http.Request, error)

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (InvoiceSectionsClient) ListByBillingProfileNameResponder

func (client InvoiceSectionsClient) ListByBillingProfileNameResponder(resp *http.Response) (result InvoiceSectionListResult, err error)

ListByBillingProfileNameResponder handles the response to the ListByBillingProfileName request. The method always closes the http.Response Body.

func (InvoiceSectionsClient) ListByBillingProfileNameSender

func (client InvoiceSectionsClient) ListByBillingProfileNameSender(req *http.Request) (*http.Response, error)

ListByBillingProfileNameSender sends the ListByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (InvoiceSectionsClient) ListByCreateSubscriptionPermission

func (client InvoiceSectionsClient) ListByCreateSubscriptionPermission(ctx context.Context, billingAccountName string, expand string) (result InvoiceSectionListResultPage, err error)

ListByCreateSubscriptionPermission lists all invoiceSections with create subscription permission for a user. Parameters: billingAccountName - billing Account Id. expand - may be used to expand the billingProfiles.

func (InvoiceSectionsClient) ListByCreateSubscriptionPermissionComplete

func (client InvoiceSectionsClient) ListByCreateSubscriptionPermissionComplete(ctx context.Context, billingAccountName string, expand string) (result InvoiceSectionListResultIterator, err error)

ListByCreateSubscriptionPermissionComplete enumerates all values, automatically crossing page boundaries as required.

func (InvoiceSectionsClient) ListByCreateSubscriptionPermissionPreparer

func (client InvoiceSectionsClient) ListByCreateSubscriptionPermissionPreparer(ctx context.Context, billingAccountName string, expand string) (*http.Request, error)

ListByCreateSubscriptionPermissionPreparer prepares the ListByCreateSubscriptionPermission request.

func (InvoiceSectionsClient) ListByCreateSubscriptionPermissionResponder

func (client InvoiceSectionsClient) ListByCreateSubscriptionPermissionResponder(resp *http.Response) (result InvoiceSectionListResult, err error)

ListByCreateSubscriptionPermissionResponder handles the response to the ListByCreateSubscriptionPermission request. The method always closes the http.Response Body.

func (InvoiceSectionsClient) ListByCreateSubscriptionPermissionSender

func (client InvoiceSectionsClient) ListByCreateSubscriptionPermissionSender(req *http.Request) (*http.Response, error)

ListByCreateSubscriptionPermissionSender sends the ListByCreateSubscriptionPermission request. The method will close the http.Response Body if it receives an error.

func (InvoiceSectionsClient) Update

func (client InvoiceSectionsClient) Update(ctx context.Context, billingAccountName string, invoiceSectionName string, parameters InvoiceSection) (result InvoiceSectionsUpdateFuture, err error)

Update the operation to update a InvoiceSection. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. parameters - parameters supplied to the Create InvoiceSection operation.

func (InvoiceSectionsClient) UpdatePreparer

func (client InvoiceSectionsClient) UpdatePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, parameters InvoiceSection) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (InvoiceSectionsClient) UpdateResponder

func (client InvoiceSectionsClient) UpdateResponder(resp *http.Response) (result InvoiceSection, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (InvoiceSectionsClient) UpdateSender

func (client InvoiceSectionsClient) UpdateSender(req *http.Request) (future InvoiceSectionsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type InvoiceSectionsCreateFuture

type InvoiceSectionsCreateFuture struct {
	azure.Future
}

InvoiceSectionsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*InvoiceSectionsCreateFuture) Result

func (future *InvoiceSectionsCreateFuture) Result(client InvoiceSectionsClient) (is InvoiceSection, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type InvoiceSectionsUpdateFuture

type InvoiceSectionsUpdateFuture struct {
	azure.Future
}

InvoiceSectionsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*InvoiceSectionsUpdateFuture) Result

func (future *InvoiceSectionsUpdateFuture) Result(client InvoiceSectionsClient) (is InvoiceSection, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type InvoiceSummary

type InvoiceSummary struct {
	autorest.Response `json:"-"`
	// InvoiceSummaryProperties - An invoice.
	*InvoiceSummaryProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

InvoiceSummary an invoice resource.

func (InvoiceSummary) MarshalJSON

func (is InvoiceSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InvoiceSummary.

func (*InvoiceSummary) UnmarshalJSON

func (is *InvoiceSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for InvoiceSummary struct.

type InvoiceSummaryProperties

type InvoiceSummaryProperties struct {
	// DueDate - READ-ONLY; The due date for invoice.
	DueDate *date.Time `json:"dueDate,omitempty"`
	// InvoiceDate - READ-ONLY; The date when invoice was created.
	InvoiceDate *date.Time `json:"invoiceDate,omitempty"`
	// Status - READ-ONLY; Invoice status. Possible values include: 'Status1PastDue', 'Status1Due', 'Status1Paid', 'Status1Void'
	Status Status1 `json:"status,omitempty"`
	// AmountDue - READ-ONLY; Amount due.
	AmountDue *Amount `json:"amountDue,omitempty"`
	// BilledAmount - READ-ONLY; Amount billed.
	BilledAmount *Amount `json:"billedAmount,omitempty"`
	// InvoicePeriodStartDate - READ-ONLY; The start date of the billing period.
	InvoicePeriodStartDate *date.Time `json:"invoicePeriodStartDate,omitempty"`
	// InvoicePeriodEndDate - READ-ONLY; The end date of the billing period.
	InvoicePeriodEndDate *date.Time `json:"invoicePeriodEndDate,omitempty"`
	// BillingProfileID - READ-ONLY; The billing profile id this invoice belongs to.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
	// BillingProfileName - READ-ONLY; The profile name this invoice belongs to.
	BillingProfileName *string `json:"billingProfileName,omitempty"`
	// PurchaseOrderNumber - READ-ONLY; The purchase identifier for the invoice.
	PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"`
	// DocumentUrls - READ-ONLY; List of document urls available to download including invoice and tax documents.
	DocumentUrls *[]DownloadProperties `json:"documentUrls,omitempty"`
	// Payments - READ-ONLY; List of payments.
	Payments *[]PaymentProperties `json:"payments,omitempty"`
}

InvoiceSummaryProperties the properties of the invoice.

type InvoicesClient

type InvoicesClient struct {
	BaseClient
}

InvoicesClient is the billing client provides access to billing resources for Azure subscriptions.

func NewInvoicesClient

func NewInvoicesClient(subscriptionID string) InvoicesClient

NewInvoicesClient creates an instance of the InvoicesClient client.

func NewInvoicesClientWithBaseURI

func NewInvoicesClientWithBaseURI(baseURI string, subscriptionID string) InvoicesClient

NewInvoicesClientWithBaseURI creates an instance of the InvoicesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (InvoicesClient) Get

func (client InvoicesClient) Get(ctx context.Context, billingAccountName string, billingProfileName string, invoiceName string) (result InvoiceSummary, err error)

Get get the invoice by name. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. invoiceName - invoice Id.

func (InvoicesClient) GetPreparer

func (client InvoicesClient) GetPreparer(ctx context.Context, billingAccountName string, billingProfileName string, invoiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (InvoicesClient) GetResponder

func (client InvoicesClient) GetResponder(resp *http.Response) (result InvoiceSummary, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (InvoicesClient) GetSender

func (client InvoicesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (InvoicesClient) ListByBillingAccountName

func (client InvoicesClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, periodStartDate string, periodEndDate string) (result InvoiceListResultPage, err error)

ListByBillingAccountName list of invoices for a billing account. Parameters: billingAccountName - billing Account Id. periodStartDate - invoice period start date. periodEndDate - invoice period end date.

func (InvoicesClient) ListByBillingAccountNameComplete

func (client InvoicesClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string, periodStartDate string, periodEndDate string) (result InvoiceListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (InvoicesClient) ListByBillingAccountNamePreparer

func (client InvoicesClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, periodStartDate string, periodEndDate string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (InvoicesClient) ListByBillingAccountNameResponder

func (client InvoicesClient) ListByBillingAccountNameResponder(resp *http.Response) (result InvoiceListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (InvoicesClient) ListByBillingAccountNameSender

func (client InvoicesClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (InvoicesClient) ListByBillingProfile

func (client InvoicesClient) ListByBillingProfile(ctx context.Context, billingAccountName string, billingProfileName string, periodStartDate string, periodEndDate string) (result InvoiceListResultPage, err error)

ListByBillingProfile list of invoices for a billing profile. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. periodStartDate - invoice period start date. periodEndDate - invoice period end date.

func (InvoicesClient) ListByBillingProfileComplete

func (client InvoicesClient) ListByBillingProfileComplete(ctx context.Context, billingAccountName string, billingProfileName string, periodStartDate string, periodEndDate string) (result InvoiceListResultIterator, err error)

ListByBillingProfileComplete enumerates all values, automatically crossing page boundaries as required.

func (InvoicesClient) ListByBillingProfilePreparer

func (client InvoicesClient) ListByBillingProfilePreparer(ctx context.Context, billingAccountName string, billingProfileName string, periodStartDate string, periodEndDate string) (*http.Request, error)

ListByBillingProfilePreparer prepares the ListByBillingProfile request.

func (InvoicesClient) ListByBillingProfileResponder

func (client InvoicesClient) ListByBillingProfileResponder(resp *http.Response) (result InvoiceListResult, err error)

ListByBillingProfileResponder handles the response to the ListByBillingProfile request. The method always closes the http.Response Body.

func (InvoicesClient) ListByBillingProfileSender

func (client InvoicesClient) ListByBillingProfileSender(req *http.Request) (*http.Response, error)

ListByBillingProfileSender sends the ListByBillingProfile request. The method will close the http.Response Body if it receives an error.

type Kind

type Kind string

Kind enumerates the values for kind.

const (
	// CreditNote ...
	CreditNote Kind = "CreditNote"
	// Invoice ...
	Invoice Kind = "Invoice"
	// Receipt ...
	Receipt Kind = "Receipt"
	// VoidNote ...
	VoidNote Kind = "VoidNote"
)

func PossibleKindValues

func PossibleKindValues() []Kind

PossibleKindValues returns an array of possible values for the Kind const type.

type LineOfCredit

type LineOfCredit struct {
	autorest.Response `json:"-"`
	// LineOfCreditProperties - A line of credit.
	*LineOfCreditProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

LineOfCredit line of credit resource.

func (LineOfCredit) MarshalJSON

func (loc LineOfCredit) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LineOfCredit.

func (*LineOfCredit) UnmarshalJSON

func (loc *LineOfCredit) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LineOfCredit struct.

type LineOfCreditProperties

type LineOfCreditProperties struct {
	// CreditLimit - The current credit limit.
	CreditLimit *Amount `json:"creditLimit,omitempty"`
	// Reason - READ-ONLY; The reason for the line of credit status when not approved.
	Reason *string `json:"reason,omitempty"`
	// RemainingBalance - READ-ONLY; Remaining balance.
	RemainingBalance *Amount `json:"remainingBalance,omitempty"`
	// Status - The line of credit status. Possible values include: 'Approved', 'Rejected'
	Status Status `json:"status,omitempty"`
}

LineOfCreditProperties the properties of the line of credit.

func (LineOfCreditProperties) MarshalJSON

func (locp LineOfCreditProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LineOfCreditProperties.

type LineOfCreditsClient

type LineOfCreditsClient struct {
	BaseClient
}

LineOfCreditsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewLineOfCreditsClient

func NewLineOfCreditsClient(subscriptionID string) LineOfCreditsClient

NewLineOfCreditsClient creates an instance of the LineOfCreditsClient client.

func NewLineOfCreditsClientWithBaseURI

func NewLineOfCreditsClientWithBaseURI(baseURI string, subscriptionID string) LineOfCreditsClient

NewLineOfCreditsClientWithBaseURI creates an instance of the LineOfCreditsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LineOfCreditsClient) Get

func (client LineOfCreditsClient) Get(ctx context.Context) (result LineOfCredit, err error)

Get get the current line of credit.

func (LineOfCreditsClient) GetPreparer

func (client LineOfCreditsClient) GetPreparer(ctx context.Context) (*http.Request, error)

GetPreparer prepares the Get request.

func (LineOfCreditsClient) GetResponder

func (client LineOfCreditsClient) GetResponder(resp *http.Response) (result LineOfCredit, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LineOfCreditsClient) GetSender

func (client LineOfCreditsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (LineOfCreditsClient) Update

func (client LineOfCreditsClient) Update(ctx context.Context, parameters LineOfCredit) (result LineOfCreditsUpdateFuture, err error)

Update increase the current line of credit. Parameters: parameters - parameters supplied to the increase line of credit operation.

func (LineOfCreditsClient) UpdatePreparer

func (client LineOfCreditsClient) UpdatePreparer(ctx context.Context, parameters LineOfCredit) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (LineOfCreditsClient) UpdateResponder

func (client LineOfCreditsClient) UpdateResponder(resp *http.Response) (result LineOfCredit, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (LineOfCreditsClient) UpdateSender

func (client LineOfCreditsClient) UpdateSender(req *http.Request) (future LineOfCreditsUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type LineOfCreditsUpdateFuture

type LineOfCreditsUpdateFuture struct {
	azure.Future
}

LineOfCreditsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*LineOfCreditsUpdateFuture) Result

func (future *LineOfCreditsUpdateFuture) Result(client LineOfCreditsClient) (loc LineOfCredit, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Operation

type Operation struct {
	// Name - READ-ONLY; Operation name: {provider}/{resource}/{operation}.
	Name *string `json:"name,omitempty"`
	// Display - The object that represents the operation.
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation a Billing REST API operation.

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

type OperationDisplay

type OperationDisplay struct {
	// Provider - READ-ONLY; Service provider: Microsoft.Billing.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; Resource on which the operation is performed: Invoice, etc.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; Operation type: Read, write, delete, etc.
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay the object that represents the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; List of billing operations supported by the Microsoft.Billing resource provider.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult result listing billing operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationStatus

type OperationStatus struct {
	// ID - READ-ONLY; The operation Id.
	ID *string `json:"id,omitempty"`
	// Status - Status of the pending operation
	Status *string `json:"status,omitempty"`
	// StatusDetail - Status Detail of the pending operation
	StatusDetail *string `json:"statusDetail,omitempty"`
}

OperationStatus status of the Billing POST/PUT operation.

func (OperationStatus) MarshalJSON

func (osVar OperationStatus) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationStatus.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available billing REST API operations.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Participants

type Participants struct {
	// Status - READ-ONLY; The signing status
	Status *string `json:"status,omitempty"`
	// StatusDate - READ-ONLY; The date when status got changed.
	StatusDate *date.Time `json:"statusDate,omitempty"`
	// Email - READ-ONLY; The email address of the participant or signer.
	Email *string `json:"email,omitempty"`
}

Participants details about the participant or signer.

type PaymentMethod

type PaymentMethod struct {
	*PaymentMethodProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

PaymentMethod a payment method resource.

func (PaymentMethod) MarshalJSON

func (pm PaymentMethod) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PaymentMethod.

func (*PaymentMethod) UnmarshalJSON

func (pm *PaymentMethod) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PaymentMethod struct.

type PaymentMethodProperties

type PaymentMethodProperties struct {
	// PaymentMethodType - Payment method type. Possible values include: 'Credits', 'ChequeWire'
	PaymentMethodType PaymentMethodType `json:"paymentMethodType,omitempty"`
	// Details - READ-ONLY; Details about the payment method.
	Details *string `json:"details,omitempty"`
	// Expiration - READ-ONLY; Expiration date.
	Expiration *date.Time `json:"expiration,omitempty"`
	// Currency - READ-ONLY; The currency associated with the payment method.
	Currency *string `json:"currency,omitempty"`
}

PaymentMethodProperties the properties of the payment method.

func (PaymentMethodProperties) MarshalJSON

func (pmp PaymentMethodProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PaymentMethodProperties.

type PaymentMethodType

type PaymentMethodType string

PaymentMethodType enumerates the values for payment method type.

const (
	// ChequeWire ...
	ChequeWire PaymentMethodType = "ChequeWire"
	// Credits ...
	Credits PaymentMethodType = "Credits"
)

func PossiblePaymentMethodTypeValues

func PossiblePaymentMethodTypeValues() []PaymentMethodType

PossiblePaymentMethodTypeValues returns an array of possible values for the PaymentMethodType const type.

type PaymentMethodsClient

type PaymentMethodsClient struct {
	BaseClient
}

PaymentMethodsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewPaymentMethodsClient

func NewPaymentMethodsClient(subscriptionID string) PaymentMethodsClient

NewPaymentMethodsClient creates an instance of the PaymentMethodsClient client.

func NewPaymentMethodsClientWithBaseURI

func NewPaymentMethodsClientWithBaseURI(baseURI string, subscriptionID string) PaymentMethodsClient

NewPaymentMethodsClientWithBaseURI creates an instance of the PaymentMethodsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PaymentMethodsClient) ListByBillingAccountName

func (client PaymentMethodsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string) (result PaymentMethodsListResultPage, err error)

ListByBillingAccountName lists the Payment Methods by billing account Id. Parameters: billingAccountName - billing Account Id.

func (PaymentMethodsClient) ListByBillingAccountNameComplete

func (client PaymentMethodsClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string) (result PaymentMethodsListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (PaymentMethodsClient) ListByBillingAccountNamePreparer

func (client PaymentMethodsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (PaymentMethodsClient) ListByBillingAccountNameResponder

func (client PaymentMethodsClient) ListByBillingAccountNameResponder(resp *http.Response) (result PaymentMethodsListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (PaymentMethodsClient) ListByBillingAccountNameSender

func (client PaymentMethodsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (PaymentMethodsClient) ListByBillingProfileName

func (client PaymentMethodsClient) ListByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string) (result PaymentMethodsListResultPage, err error)

ListByBillingProfileName lists the Payment Methods by billing profile Id. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (PaymentMethodsClient) ListByBillingProfileNameComplete

func (client PaymentMethodsClient) ListByBillingProfileNameComplete(ctx context.Context, billingAccountName string, billingProfileName string) (result PaymentMethodsListResultIterator, err error)

ListByBillingProfileNameComplete enumerates all values, automatically crossing page boundaries as required.

func (PaymentMethodsClient) ListByBillingProfileNamePreparer

func (client PaymentMethodsClient) ListByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string) (*http.Request, error)

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (PaymentMethodsClient) ListByBillingProfileNameResponder

func (client PaymentMethodsClient) ListByBillingProfileNameResponder(resp *http.Response) (result PaymentMethodsListResult, err error)

ListByBillingProfileNameResponder handles the response to the ListByBillingProfileName request. The method always closes the http.Response Body.

func (PaymentMethodsClient) ListByBillingProfileNameSender

func (client PaymentMethodsClient) ListByBillingProfileNameSender(req *http.Request) (*http.Response, error)

ListByBillingProfileNameSender sends the ListByBillingProfileName request. The method will close the http.Response Body if it receives an error.

type PaymentMethodsListResult

type PaymentMethodsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of payment methods.
	Value *[]PaymentMethod `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

PaymentMethodsListResult result of listing payment methods.

func (PaymentMethodsListResult) IsEmpty

func (pmlr PaymentMethodsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PaymentMethodsListResultIterator

type PaymentMethodsListResultIterator struct {
	// contains filtered or unexported fields
}

PaymentMethodsListResultIterator provides access to a complete listing of PaymentMethod values.

func NewPaymentMethodsListResultIterator

func NewPaymentMethodsListResultIterator(page PaymentMethodsListResultPage) PaymentMethodsListResultIterator

Creates a new instance of the PaymentMethodsListResultIterator type.

func (*PaymentMethodsListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PaymentMethodsListResultIterator) NextWithContext

func (iter *PaymentMethodsListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (PaymentMethodsListResultIterator) NotDone

func (iter PaymentMethodsListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (PaymentMethodsListResultIterator) Response

Response returns the raw server response from the last page request.

func (PaymentMethodsListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PaymentMethodsListResultPage

type PaymentMethodsListResultPage struct {
	// contains filtered or unexported fields
}

PaymentMethodsListResultPage contains a page of PaymentMethod values.

func NewPaymentMethodsListResultPage

func NewPaymentMethodsListResultPage(getNextPage func(context.Context, PaymentMethodsListResult) (PaymentMethodsListResult, error)) PaymentMethodsListResultPage

Creates a new instance of the PaymentMethodsListResultPage type.

func (*PaymentMethodsListResultPage) Next

func (page *PaymentMethodsListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PaymentMethodsListResultPage) NextWithContext

func (page *PaymentMethodsListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (PaymentMethodsListResultPage) NotDone

func (page PaymentMethodsListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PaymentMethodsListResultPage) Response

Response returns the raw server response from the last page request.

func (PaymentMethodsListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type PaymentProperties

type PaymentProperties struct {
	// PaymentType - READ-ONLY; The type of payment.
	PaymentType *string `json:"paymentType,omitempty"`
	// Amount - READ-ONLY; The paid amount.
	Amount *Amount `json:"amount,omitempty"`
	// Date - READ-ONLY; The date of the payment.
	Date *date.Time `json:"date,omitempty"`
}

PaymentProperties the properties of the payment.

type PermissionsClient

type PermissionsClient struct {
	BaseClient
}

PermissionsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewPermissionsClient

func NewPermissionsClient(subscriptionID string) PermissionsClient

NewPermissionsClient creates an instance of the PermissionsClient client.

func NewPermissionsClientWithBaseURI

func NewPermissionsClientWithBaseURI(baseURI string, subscriptionID string) PermissionsClient

NewPermissionsClientWithBaseURI creates an instance of the PermissionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PermissionsClient) ListByBillingAccount

func (client PermissionsClient) ListByBillingAccount(ctx context.Context, billingAccountName string) (result PermissionsListResult, err error)

ListByBillingAccount lists all billing permissions for the caller under a billing account. Parameters: billingAccountName - billing Account Id.

func (PermissionsClient) ListByBillingAccountPreparer

func (client PermissionsClient) ListByBillingAccountPreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (PermissionsClient) ListByBillingAccountResponder

func (client PermissionsClient) ListByBillingAccountResponder(resp *http.Response) (result PermissionsListResult, err error)

ListByBillingAccountResponder handles the response to the ListByBillingAccount request. The method always closes the http.Response Body.

func (PermissionsClient) ListByBillingAccountSender

func (client PermissionsClient) ListByBillingAccountSender(req *http.Request) (*http.Response, error)

ListByBillingAccountSender sends the ListByBillingAccount request. The method will close the http.Response Body if it receives an error.

func (PermissionsClient) ListByBillingProfile

func (client PermissionsClient) ListByBillingProfile(ctx context.Context, billingAccountName string, billingProfileName string) (result PermissionsListResult, err error)

ListByBillingProfile lists all billingPermissions for the caller has for a billing account. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (PermissionsClient) ListByBillingProfilePreparer

func (client PermissionsClient) ListByBillingProfilePreparer(ctx context.Context, billingAccountName string, billingProfileName string) (*http.Request, error)

ListByBillingProfilePreparer prepares the ListByBillingProfile request.

func (PermissionsClient) ListByBillingProfileResponder

func (client PermissionsClient) ListByBillingProfileResponder(resp *http.Response) (result PermissionsListResult, err error)

ListByBillingProfileResponder handles the response to the ListByBillingProfile request. The method always closes the http.Response Body.

func (PermissionsClient) ListByBillingProfileSender

func (client PermissionsClient) ListByBillingProfileSender(req *http.Request) (*http.Response, error)

ListByBillingProfileSender sends the ListByBillingProfile request. The method will close the http.Response Body if it receives an error.

func (PermissionsClient) ListByCustomers

func (client PermissionsClient) ListByCustomers(ctx context.Context, billingAccountName string, customerName string) (result PermissionsListResult, err error)

ListByCustomers lists all billing permissions for the caller under customer. Parameters: billingAccountName - billing Account Id. customerName - customer Id.

func (PermissionsClient) ListByCustomersPreparer

func (client PermissionsClient) ListByCustomersPreparer(ctx context.Context, billingAccountName string, customerName string) (*http.Request, error)

ListByCustomersPreparer prepares the ListByCustomers request.

func (PermissionsClient) ListByCustomersResponder

func (client PermissionsClient) ListByCustomersResponder(resp *http.Response) (result PermissionsListResult, err error)

ListByCustomersResponder handles the response to the ListByCustomers request. The method always closes the http.Response Body.

func (PermissionsClient) ListByCustomersSender

func (client PermissionsClient) ListByCustomersSender(req *http.Request) (*http.Response, error)

ListByCustomersSender sends the ListByCustomers request. The method will close the http.Response Body if it receives an error.

func (PermissionsClient) ListByInvoiceSections

func (client PermissionsClient) ListByInvoiceSections(ctx context.Context, billingAccountName string, invoiceSectionName string) (result PermissionsListResult, err error)

ListByInvoiceSections lists all billing permissions for the caller under invoice section. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (PermissionsClient) ListByInvoiceSectionsPreparer

func (client PermissionsClient) ListByInvoiceSectionsPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string) (*http.Request, error)

ListByInvoiceSectionsPreparer prepares the ListByInvoiceSections request.

func (PermissionsClient) ListByInvoiceSectionsResponder

func (client PermissionsClient) ListByInvoiceSectionsResponder(resp *http.Response) (result PermissionsListResult, err error)

ListByInvoiceSectionsResponder handles the response to the ListByInvoiceSections request. The method always closes the http.Response Body.

func (PermissionsClient) ListByInvoiceSectionsSender

func (client PermissionsClient) ListByInvoiceSectionsSender(req *http.Request) (*http.Response, error)

ListByInvoiceSectionsSender sends the ListByInvoiceSections request. The method will close the http.Response Body if it receives an error.

type PermissionsListResult

type PermissionsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list OF billingPermissions a caller has on a billing account.
	Value *[]PermissionsProperties `json:"value,omitempty"`
}

PermissionsListResult result of list billingPermissions a caller has on a billing account.

type PermissionsProperties

type PermissionsProperties struct {
	// Actions - READ-ONLY; The set of actions that the caller is allowed to do
	Actions *[]string `json:"actions,omitempty"`
	// NotActions - READ-ONLY; The set of actions the caller is not allowed to do
	NotActions *[]string `json:"notActions,omitempty"`
}

PermissionsProperties the set of allowed action and not allowed actions a caller has on a billing account

type PoliciesClient

type PoliciesClient struct {
	BaseClient
}

PoliciesClient is the billing client provides access to billing resources for Azure subscriptions.

func NewPoliciesClient

func NewPoliciesClient(subscriptionID string) PoliciesClient

NewPoliciesClient creates an instance of the PoliciesClient client.

func NewPoliciesClientWithBaseURI

func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient

NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PoliciesClient) GetByBillingProfileName

func (client PoliciesClient) GetByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string) (result Policy, err error)

GetByBillingProfileName the policy for a given billing account name and billing profile name. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (PoliciesClient) GetByBillingProfileNamePreparer

func (client PoliciesClient) GetByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string) (*http.Request, error)

GetByBillingProfileNamePreparer prepares the GetByBillingProfileName request.

func (PoliciesClient) GetByBillingProfileNameResponder

func (client PoliciesClient) GetByBillingProfileNameResponder(resp *http.Response) (result Policy, err error)

GetByBillingProfileNameResponder handles the response to the GetByBillingProfileName request. The method always closes the http.Response Body.

func (PoliciesClient) GetByBillingProfileNameSender

func (client PoliciesClient) GetByBillingProfileNameSender(req *http.Request) (*http.Response, error)

GetByBillingProfileNameSender sends the GetByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (PoliciesClient) Update

func (client PoliciesClient) Update(ctx context.Context, billingAccountName string, billingProfileName string, parameters Policy) (result Policy, err error)

Update the operation to update a policy. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. parameters - parameters supplied to the update policy operation.

func (PoliciesClient) UpdatePreparer

func (client PoliciesClient) UpdatePreparer(ctx context.Context, billingAccountName string, billingProfileName string, parameters Policy) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (PoliciesClient) UpdateResponder

func (client PoliciesClient) UpdateResponder(resp *http.Response) (result Policy, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (PoliciesClient) UpdateSender

func (client PoliciesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type Policy

type Policy struct {
	autorest.Response `json:"-"`
	*PolicyProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Policy the Policy.

func (Policy) MarshalJSON

func (p Policy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Policy.

func (*Policy) UnmarshalJSON

func (p *Policy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Policy struct.

type PolicyProperties

type PolicyProperties struct {
	// MarketplacePurchasesAllowed - The marketplacePurchasesAllowed flag.
	MarketplacePurchasesAllowed *bool `json:"marketplacePurchasesAllowed,omitempty"`
	// ReservationPurchasesAllowed - The reservationPurchasesAllowed flag.
	ReservationPurchasesAllowed *bool `json:"reservationPurchasesAllowed,omitempty"`
	// SubscriptionOwnerCanViewCharges - The subscriptionOwnerCanViewCharges flag.
	SubscriptionOwnerCanViewCharges *bool `json:"subscriptionOwnerCanViewCharges,omitempty"`
}

PolicyProperties the properties of policy.

type PriceSheetClient

type PriceSheetClient struct {
	BaseClient
}

PriceSheetClient is the billing client provides access to billing resources for Azure subscriptions.

func NewPriceSheetClient

func NewPriceSheetClient(subscriptionID string) PriceSheetClient

NewPriceSheetClient creates an instance of the PriceSheetClient client.

func NewPriceSheetClientWithBaseURI

func NewPriceSheetClientWithBaseURI(baseURI string, subscriptionID string) PriceSheetClient

NewPriceSheetClientWithBaseURI creates an instance of the PriceSheetClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PriceSheetClient) Download

func (client PriceSheetClient) Download(ctx context.Context, billingAccountName string, invoiceName string) (result PriceSheetDownloadFuture, err error)

Download download price sheet for an invoice. Parameters: billingAccountName - azure Billing Account ID. invoiceName - the name of an invoice resource.

func (PriceSheetClient) DownloadPreparer

func (client PriceSheetClient) DownloadPreparer(ctx context.Context, billingAccountName string, invoiceName string) (*http.Request, error)

DownloadPreparer prepares the Download request.

func (PriceSheetClient) DownloadResponder

func (client PriceSheetClient) DownloadResponder(resp *http.Response) (result DownloadURL, err error)

DownloadResponder handles the response to the Download request. The method always closes the http.Response Body.

func (PriceSheetClient) DownloadSender

func (client PriceSheetClient) DownloadSender(req *http.Request) (future PriceSheetDownloadFuture, err error)

DownloadSender sends the Download request. The method will close the http.Response Body if it receives an error.

type PriceSheetDownloadFuture

type PriceSheetDownloadFuture struct {
	azure.Future
}

PriceSheetDownloadFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*PriceSheetDownloadFuture) Result

func (future *PriceSheetDownloadFuture) Result(client PriceSheetClient) (du DownloadURL, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ProductDetails

type ProductDetails struct {
	// ProductType - Type of the product to be transferred. Possible values include: 'ProductTypeAzureSubscription', 'ProductTypeAzureReservation'
	ProductType ProductType `json:"productType,omitempty"`
	// ProductID - Id of product to be transferred.
	ProductID *string `json:"productId,omitempty"`
}

ProductDetails details of the product to be transferred.

type ProductStatusType

type ProductStatusType string

ProductStatusType enumerates the values for product status type.

const (
	// Active ...
	Active ProductStatusType = "Active"
	// AutoRenew ...
	AutoRenew ProductStatusType = "AutoRenew"
	// Cancelled ...
	Cancelled ProductStatusType = "Cancelled"
	// Disabled ...
	Disabled ProductStatusType = "Disabled"
	// Expired ...
	Expired ProductStatusType = "Expired"
	// Expiring ...
	Expiring ProductStatusType = "Expiring"
	// Inactive ...
	Inactive ProductStatusType = "Inactive"
	// PastDue ...
	PastDue ProductStatusType = "PastDue"
)

func PossibleProductStatusTypeValues

func PossibleProductStatusTypeValues() []ProductStatusType

PossibleProductStatusTypeValues returns an array of possible values for the ProductStatusType const type.

type ProductSummary

type ProductSummary struct {
	autorest.Response         `json:"-"`
	*ProductSummaryProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

ProductSummary a product summary resource.

func (ProductSummary) MarshalJSON

func (ps ProductSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProductSummary.

func (*ProductSummary) UnmarshalJSON

func (ps *ProductSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ProductSummary struct.

type ProductSummaryProperties

type ProductSummaryProperties struct {
	// DisplayName - READ-ONLY; The display name of the product.
	DisplayName *string `json:"displayName,omitempty"`
	// PurchaseDate - READ-ONLY; The date of purchase.
	PurchaseDate *date.Time `json:"purchaseDate,omitempty"`
	// ProductTypeID - READ-ONLY; The product type id.
	ProductTypeID *string `json:"productTypeId,omitempty"`
	// ProductType - READ-ONLY; The type of product.
	ProductType *string `json:"productType,omitempty"`
	// Status - Product status. Possible values include: 'Active', 'Inactive', 'PastDue', 'Expiring', 'Expired', 'Disabled', 'Cancelled', 'AutoRenew'
	Status ProductStatusType `json:"status,omitempty"`
	// EndDate - READ-ONLY; end date.
	EndDate *date.Time `json:"endDate,omitempty"`
	// BillingFrequency - Billing frequency. Possible values include: 'OneTime', 'Monthly', 'UsageBased'
	BillingFrequency Frequency `json:"billingFrequency,omitempty"`
	// LastCharge - READ-ONLY; Last month charges.
	LastCharge *Amount `json:"lastCharge,omitempty"`
	// LastChargeDate - READ-ONLY; The date of the last charge.
	LastChargeDate *date.Time `json:"lastChargeDate,omitempty"`
	// Quantity - READ-ONLY; The purchased product quantity.
	Quantity *float64 `json:"quantity,omitempty"`
	// SkuID - READ-ONLY; Sku Id.
	SkuID *string `json:"skuId,omitempty"`
	// SkuDescription - READ-ONLY; Sku description.
	SkuDescription *string `json:"skuDescription,omitempty"`
	// AvailabilityID - READ-ONLY; Availability Id.
	AvailabilityID *string `json:"availabilityId,omitempty"`
	// ParentProductID - READ-ONLY; Parent Product Id.
	ParentProductID *string `json:"parentProductId,omitempty"`
	// InvoiceSectionID - READ-ONLY; Invoice section id to which this product belongs.
	InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
	// InvoiceSectionName - READ-ONLY; Invoice section name to which this product belongs.
	InvoiceSectionName *string `json:"invoiceSectionName,omitempty"`
	// BillingProfileID - READ-ONLY; Billing Profile id to which this product belongs.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
	// BillingProfileName - READ-ONLY; Billing Profile name to which this product belongs.
	BillingProfileName *string `json:"billingProfileName,omitempty"`
}

ProductSummaryProperties the properties of the product summary.

func (ProductSummaryProperties) MarshalJSON

func (psp ProductSummaryProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProductSummaryProperties.

type ProductTransferStatus

type ProductTransferStatus string

ProductTransferStatus enumerates the values for product transfer status.

const (
	// Completed ...
	Completed ProductTransferStatus = "Completed"
	// Failed ...
	Failed ProductTransferStatus = "Failed"
	// InProgress ...
	InProgress ProductTransferStatus = "InProgress"
	// NotStarted ...
	NotStarted ProductTransferStatus = "NotStarted"
)

func PossibleProductTransferStatusValues

func PossibleProductTransferStatusValues() []ProductTransferStatus

PossibleProductTransferStatusValues returns an array of possible values for the ProductTransferStatus const type.

type ProductTransferValidationErrorCode

type ProductTransferValidationErrorCode string

ProductTransferValidationErrorCode enumerates the values for product transfer validation error code.

const (
	// CrossBillingAccountNotAllowed ...
	CrossBillingAccountNotAllowed ProductTransferValidationErrorCode = "CrossBillingAccountNotAllowed"
	// DestinationBillingProfilePastDue ...
	DestinationBillingProfilePastDue ProductTransferValidationErrorCode = "DestinationBillingProfilePastDue"
	// InsufficientPermissionOnDestination ...
	InsufficientPermissionOnDestination ProductTransferValidationErrorCode = "InsufficientPermissionOnDestination"
	// InsufficientPermissionOnSource ...
	InsufficientPermissionOnSource ProductTransferValidationErrorCode = "InsufficientPermissionOnSource"
	// InvalidSource ...
	InvalidSource ProductTransferValidationErrorCode = "InvalidSource"
	// NotAvailableForDestinationMarket ...
	NotAvailableForDestinationMarket ProductTransferValidationErrorCode = "NotAvailableForDestinationMarket"
	// OneTimePurchaseProductTransferNotAllowed ...
	OneTimePurchaseProductTransferNotAllowed ProductTransferValidationErrorCode = "OneTimePurchaseProductTransferNotAllowed"
	// ProductNotActive ...
	ProductNotActive ProductTransferValidationErrorCode = "ProductNotActive"
	// ProductTypeNotSupported ...
	ProductTypeNotSupported ProductTransferValidationErrorCode = "ProductTypeNotSupported"
)

func PossibleProductTransferValidationErrorCodeValues

func PossibleProductTransferValidationErrorCodeValues() []ProductTransferValidationErrorCode

PossibleProductTransferValidationErrorCodeValues returns an array of possible values for the ProductTransferValidationErrorCode const type.

type ProductType

type ProductType string

ProductType enumerates the values for product type.

const (
	// ProductTypeAzureReservation ...
	ProductTypeAzureReservation ProductType = "AzureReservation"
	// ProductTypeAzureSubscription ...
	ProductTypeAzureSubscription ProductType = "AzureSubscription"
)

func PossibleProductTypeValues

func PossibleProductTypeValues() []ProductType

PossibleProductTypeValues returns an array of possible values for the ProductType const type.

type ProductsClient

type ProductsClient struct {
	BaseClient
}

ProductsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewProductsClient

func NewProductsClient(subscriptionID string) ProductsClient

NewProductsClient creates an instance of the ProductsClient client.

func NewProductsClientWithBaseURI

func NewProductsClientWithBaseURI(baseURI string, subscriptionID string) ProductsClient

NewProductsClientWithBaseURI creates an instance of the ProductsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProductsClient) Get

func (client ProductsClient) Get(ctx context.Context, billingAccountName string, invoiceSectionName string, productName string) (result ProductSummary, err error)

Get get a single product by name. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. productName - invoice Id.

func (ProductsClient) GetPreparer

func (client ProductsClient) GetPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, productName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProductsClient) GetResponder

func (client ProductsClient) GetResponder(resp *http.Response) (result ProductSummary, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProductsClient) GetSender

func (client ProductsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ProductsClient) ListByBillingAccountName

func (client ProductsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, filter string) (result ProductsListResultPage, err error)

ListByBillingAccountName lists products by billing account name. Parameters: billingAccountName - billing Account Id. filter - may be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (ProductsClient) ListByBillingAccountNameComplete

func (client ProductsClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string, filter string) (result ProductsListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (ProductsClient) ListByBillingAccountNamePreparer

func (client ProductsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, filter string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (ProductsClient) ListByBillingAccountNameResponder

func (client ProductsClient) ListByBillingAccountNameResponder(resp *http.Response) (result ProductsListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (ProductsClient) ListByBillingAccountNameSender

func (client ProductsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (ProductsClient) ListByInvoiceSectionName

func (client ProductsClient) ListByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, filter string) (result ProductsListResultPage, err error)

ListByInvoiceSectionName lists products by invoice section name. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. filter - may be used to filter by product type. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (ProductsClient) ListByInvoiceSectionNameComplete

func (client ProductsClient) ListByInvoiceSectionNameComplete(ctx context.Context, billingAccountName string, invoiceSectionName string, filter string) (result ProductsListResultIterator, err error)

ListByInvoiceSectionNameComplete enumerates all values, automatically crossing page boundaries as required.

func (ProductsClient) ListByInvoiceSectionNamePreparer

func (client ProductsClient) ListByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, filter string) (*http.Request, error)

ListByInvoiceSectionNamePreparer prepares the ListByInvoiceSectionName request.

func (ProductsClient) ListByInvoiceSectionNameResponder

func (client ProductsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result ProductsListResult, err error)

ListByInvoiceSectionNameResponder handles the response to the ListByInvoiceSectionName request. The method always closes the http.Response Body.

func (ProductsClient) ListByInvoiceSectionNameSender

func (client ProductsClient) ListByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

ListByInvoiceSectionNameSender sends the ListByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

func (ProductsClient) Transfer

func (client ProductsClient) Transfer(ctx context.Context, billingAccountName string, invoiceSectionName string, productName string, parameters TransferProductRequestProperties) (result ProductSummary, err error)

Transfer the operation to transfer a Product to another invoice section. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. productName - invoice Id. parameters - parameters supplied to the Transfer Product operation.

func (ProductsClient) TransferPreparer

func (client ProductsClient) TransferPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, productName string, parameters TransferProductRequestProperties) (*http.Request, error)

TransferPreparer prepares the Transfer request.

func (ProductsClient) TransferResponder

func (client ProductsClient) TransferResponder(resp *http.Response) (result ProductSummary, err error)

TransferResponder handles the response to the Transfer request. The method always closes the http.Response Body.

func (ProductsClient) TransferSender

func (client ProductsClient) TransferSender(req *http.Request) (*http.Response, error)

TransferSender sends the Transfer request. The method will close the http.Response Body if it receives an error.

func (ProductsClient) UpdateAutoRenewByBillingAccountName

func (client ProductsClient) UpdateAutoRenewByBillingAccountName(ctx context.Context, billingAccountName string, productName string, body UpdateAutoRenewRequest) (result UpdateAutoRenewOperationSummary, err error)

UpdateAutoRenewByBillingAccountName cancel auto renew for product by product id and billing account name Parameters: billingAccountName - billing Account Id. productName - invoice Id. body - update auto renew request parameters.

func (ProductsClient) UpdateAutoRenewByBillingAccountNamePreparer

func (client ProductsClient) UpdateAutoRenewByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, productName string, body UpdateAutoRenewRequest) (*http.Request, error)

UpdateAutoRenewByBillingAccountNamePreparer prepares the UpdateAutoRenewByBillingAccountName request.

func (ProductsClient) UpdateAutoRenewByBillingAccountNameResponder

func (client ProductsClient) UpdateAutoRenewByBillingAccountNameResponder(resp *http.Response) (result UpdateAutoRenewOperationSummary, err error)

UpdateAutoRenewByBillingAccountNameResponder handles the response to the UpdateAutoRenewByBillingAccountName request. The method always closes the http.Response Body.

func (ProductsClient) UpdateAutoRenewByBillingAccountNameSender

func (client ProductsClient) UpdateAutoRenewByBillingAccountNameSender(req *http.Request) (*http.Response, error)

UpdateAutoRenewByBillingAccountNameSender sends the UpdateAutoRenewByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (ProductsClient) UpdateAutoRenewByInvoiceSectionName

func (client ProductsClient) UpdateAutoRenewByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, productName string, body UpdateAutoRenewRequest) (result UpdateAutoRenewOperationSummary, err error)

UpdateAutoRenewByInvoiceSectionName cancel auto renew for product by product id and invoice section name Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. productName - invoice Id. body - update auto renew request parameters.

func (ProductsClient) UpdateAutoRenewByInvoiceSectionNamePreparer

func (client ProductsClient) UpdateAutoRenewByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, productName string, body UpdateAutoRenewRequest) (*http.Request, error)

UpdateAutoRenewByInvoiceSectionNamePreparer prepares the UpdateAutoRenewByInvoiceSectionName request.

func (ProductsClient) UpdateAutoRenewByInvoiceSectionNameResponder

func (client ProductsClient) UpdateAutoRenewByInvoiceSectionNameResponder(resp *http.Response) (result UpdateAutoRenewOperationSummary, err error)

UpdateAutoRenewByInvoiceSectionNameResponder handles the response to the UpdateAutoRenewByInvoiceSectionName request. The method always closes the http.Response Body.

func (ProductsClient) UpdateAutoRenewByInvoiceSectionNameSender

func (client ProductsClient) UpdateAutoRenewByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

UpdateAutoRenewByInvoiceSectionNameSender sends the UpdateAutoRenewByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

func (ProductsClient) ValidateTransfer

func (client ProductsClient) ValidateTransfer(ctx context.Context, billingAccountName string, invoiceSectionName string, productName string, parameters TransferProductRequestProperties) (result ValidateProductTransferEligibilityResult, err error)

ValidateTransfer validates the transfer of products across invoice sections. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. productName - invoice Id. parameters - parameters supplied to the Transfer Products operation.

func (ProductsClient) ValidateTransferPreparer

func (client ProductsClient) ValidateTransferPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, productName string, parameters TransferProductRequestProperties) (*http.Request, error)

ValidateTransferPreparer prepares the ValidateTransfer request.

func (ProductsClient) ValidateTransferResponder

func (client ProductsClient) ValidateTransferResponder(resp *http.Response) (result ValidateProductTransferEligibilityResult, err error)

ValidateTransferResponder handles the response to the ValidateTransfer request. The method always closes the http.Response Body.

func (ProductsClient) ValidateTransferSender

func (client ProductsClient) ValidateTransferSender(req *http.Request) (*http.Response, error)

ValidateTransferSender sends the ValidateTransfer request. The method will close the http.Response Body if it receives an error.

type ProductsListResult

type ProductsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of products summary.
	Value *[]ProductSummary `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ProductsListResult result of listing products summary. It contains a list of available products summaries in reverse chronological order by purchase date.

func (ProductsListResult) IsEmpty

func (plr ProductsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProductsListResultIterator

type ProductsListResultIterator struct {
	// contains filtered or unexported fields
}

ProductsListResultIterator provides access to a complete listing of ProductSummary values.

func NewProductsListResultIterator

func NewProductsListResultIterator(page ProductsListResultPage) ProductsListResultIterator

Creates a new instance of the ProductsListResultIterator type.

func (*ProductsListResultIterator) Next

func (iter *ProductsListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProductsListResultIterator) NextWithContext

func (iter *ProductsListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ProductsListResultIterator) NotDone

func (iter ProductsListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ProductsListResultIterator) Response

Response returns the raw server response from the last page request.

func (ProductsListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ProductsListResultPage

type ProductsListResultPage struct {
	// contains filtered or unexported fields
}

ProductsListResultPage contains a page of ProductSummary values.

func NewProductsListResultPage

func NewProductsListResultPage(getNextPage func(context.Context, ProductsListResult) (ProductsListResult, error)) ProductsListResultPage

Creates a new instance of the ProductsListResultPage type.

func (*ProductsListResultPage) Next

func (page *ProductsListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProductsListResultPage) NextWithContext

func (page *ProductsListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ProductsListResultPage) NotDone

func (page ProductsListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ProductsListResultPage) Response

Response returns the raw server response from the last page request.

func (ProductsListResultPage) Values

func (page ProductsListResultPage) Values() []ProductSummary

Values returns the slice of values for the current page or nil if there are no values.

type Profile

type Profile struct {
	autorest.Response `json:"-"`
	// ProfileProperties - A billing profile.
	*ProfileProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Profile a billing profile resource.

func (Profile) MarshalJSON

func (p Profile) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Profile.

func (*Profile) UnmarshalJSON

func (p *Profile) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Profile struct.

type ProfileCreationParameters

type ProfileCreationParameters struct {
	// DisplayName - The billing profile name.
	DisplayName *string `json:"displayName,omitempty"`
	// PoNumber - Purchase order number.
	PoNumber *string `json:"poNumber,omitempty"`
	// Address - Billing address.
	Address *Address `json:"address,omitempty"`
	// InvoiceEmailOptIn - If the billing profile is opted in to receive invoices via email.
	InvoiceEmailOptIn *bool `json:"invoiceEmailOptIn,omitempty"`
	// EnableAzureSKUs - Azure skus to enable for this billing profile..
	EnableAzureSKUs *[]EnabledAzureSKUs `json:"enableAzureSKUs,omitempty"`
}

ProfileCreationParameters the parameters for creating a new billing profile.

type ProfileListResult

type ProfileListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of billing profiles.
	Value *[]Profile `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ProfileListResult result of listing billing profiles.

func (ProfileListResult) IsEmpty

func (plr ProfileListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProfileListResultIterator

type ProfileListResultIterator struct {
	// contains filtered or unexported fields
}

ProfileListResultIterator provides access to a complete listing of Profile values.

func NewProfileListResultIterator

func NewProfileListResultIterator(page ProfileListResultPage) ProfileListResultIterator

Creates a new instance of the ProfileListResultIterator type.

func (*ProfileListResultIterator) Next

func (iter *ProfileListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProfileListResultIterator) NextWithContext

func (iter *ProfileListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ProfileListResultIterator) NotDone

func (iter ProfileListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ProfileListResultIterator) Response

Response returns the raw server response from the last page request.

func (ProfileListResultIterator) Value

func (iter ProfileListResultIterator) Value() Profile

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ProfileListResultPage

type ProfileListResultPage struct {
	// contains filtered or unexported fields
}

ProfileListResultPage contains a page of Profile values.

func NewProfileListResultPage

func NewProfileListResultPage(getNextPage func(context.Context, ProfileListResult) (ProfileListResult, error)) ProfileListResultPage

Creates a new instance of the ProfileListResultPage type.

func (*ProfileListResultPage) Next

func (page *ProfileListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ProfileListResultPage) NextWithContext

func (page *ProfileListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ProfileListResultPage) NotDone

func (page ProfileListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ProfileListResultPage) Response

func (page ProfileListResultPage) Response() ProfileListResult

Response returns the raw server response from the last page request.

func (ProfileListResultPage) Values

func (page ProfileListResultPage) Values() []Profile

Values returns the slice of values for the current page or nil if there are no values.

type ProfileProperties

type ProfileProperties struct {
	// DisplayName - The billing profile name.
	DisplayName *string `json:"displayName,omitempty"`
	// PoNumber - Purchase order number.
	PoNumber *string `json:"poNumber,omitempty"`
	// Address - Billing address.
	Address *Address `json:"address,omitempty"`
	// InvoiceEmailOptIn - READ-ONLY; If the billing profile is opted in to receive invoices via email.
	InvoiceEmailOptIn *bool `json:"invoiceEmailOptIn,omitempty"`
	// IsClassic - READ-ONLY; Is OMS bootstrapped billing profile.
	IsClassic *bool `json:"isClassic,omitempty"`
	// InvoiceDay - READ-ONLY; Invoice day.
	InvoiceDay *int32 `json:"invoiceDay,omitempty"`
	// Currency - READ-ONLY; The currency associated with the billing profile.
	Currency *string `json:"currency,omitempty"`
	// EnabledAzureSKUs - Information about the product.
	EnabledAzureSKUs *[]EnabledAzureSKUs `json:"enabledAzureSKUs,omitempty"`
	// InvoiceSections - The invoice sections associated to the billing profile.
	InvoiceSections *[]InvoiceSection `json:"invoiceSections,omitempty"`
}

ProfileProperties the properties of the billing profile.

func (ProfileProperties) MarshalJSON

func (pp ProfileProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProfileProperties.

type ProfilesClient

type ProfilesClient struct {
	BaseClient
}

ProfilesClient is the billing client provides access to billing resources for Azure subscriptions.

func NewProfilesClient

func NewProfilesClient(subscriptionID string) ProfilesClient

NewProfilesClient creates an instance of the ProfilesClient client.

func NewProfilesClientWithBaseURI

func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient

NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProfilesClient) Create

func (client ProfilesClient) Create(ctx context.Context, billingAccountName string, parameters ProfileCreationParameters) (result ProfilesCreateFuture, err error)

Create the operation to create a BillingProfile. Parameters: billingAccountName - billing Account Id. parameters - parameters supplied to the Create BillingProfile operation.

func (ProfilesClient) CreatePreparer

func (client ProfilesClient) CreatePreparer(ctx context.Context, billingAccountName string, parameters ProfileCreationParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ProfilesClient) CreateResponder

func (client ProfilesClient) CreateResponder(resp *http.Response) (result Profile, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ProfilesClient) CreateSender

func (client ProfilesClient) CreateSender(req *http.Request) (future ProfilesCreateFuture, err error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ProfilesClient) Get

func (client ProfilesClient) Get(ctx context.Context, billingAccountName string, billingProfileName string, expand string) (result Profile, err error)

Get get the billing profile by id. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. expand - may be used to expand the invoiceSections.

func (ProfilesClient) GetPreparer

func (client ProfilesClient) GetPreparer(ctx context.Context, billingAccountName string, billingProfileName string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ProfilesClient) GetResponder

func (client ProfilesClient) GetResponder(resp *http.Response) (result Profile, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ProfilesClient) GetSender

func (client ProfilesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ProfilesClient) ListByBillingAccountName

func (client ProfilesClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, expand string) (result ProfileListResultPage, err error)

ListByBillingAccountName lists all billing profiles for a user which that user has access to. Parameters: billingAccountName - billing Account Id. expand - may be used to expand the invoiceSections.

func (ProfilesClient) ListByBillingAccountNameComplete

func (client ProfilesClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string, expand string) (result ProfileListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (ProfilesClient) ListByBillingAccountNamePreparer

func (client ProfilesClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, expand string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (ProfilesClient) ListByBillingAccountNameResponder

func (client ProfilesClient) ListByBillingAccountNameResponder(resp *http.Response) (result ProfileListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (ProfilesClient) ListByBillingAccountNameSender

func (client ProfilesClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (ProfilesClient) Update

func (client ProfilesClient) Update(ctx context.Context, billingAccountName string, billingProfileName string, parameters Profile) (result ProfilesUpdateFuture, err error)

Update the operation to update a billing profile. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. parameters - parameters supplied to the update billing profile operation.

func (ProfilesClient) UpdatePreparer

func (client ProfilesClient) UpdatePreparer(ctx context.Context, billingAccountName string, billingProfileName string, parameters Profile) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ProfilesClient) UpdateResponder

func (client ProfilesClient) UpdateResponder(resp *http.Response) (result Profile, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ProfilesClient) UpdateSender

func (client ProfilesClient) UpdateSender(req *http.Request) (future ProfilesUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ProfilesCreateFuture

type ProfilesCreateFuture struct {
	azure.Future
}

ProfilesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ProfilesCreateFuture) Result

func (future *ProfilesCreateFuture) Result(client ProfilesClient) (p Profile, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ProfilesUpdateFuture

type ProfilesUpdateFuture struct {
	azure.Future
}

ProfilesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*ProfilesUpdateFuture) Result

func (future *ProfilesUpdateFuture) Result(client ProfilesClient) (p Profile, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Property

type Property struct {
	autorest.Response `json:"-"`
	// PropertySummary - A billing property.
	*PropertySummary `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Property a billing property resource.

func (Property) MarshalJSON

func (p Property) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Property.

func (*Property) UnmarshalJSON

func (p *Property) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Property struct.

type PropertyClient

type PropertyClient struct {
	BaseClient
}

PropertyClient is the billing client provides access to billing resources for Azure subscriptions.

func NewPropertyClient

func NewPropertyClient(subscriptionID string) PropertyClient

NewPropertyClient creates an instance of the PropertyClient client.

func NewPropertyClientWithBaseURI

func NewPropertyClientWithBaseURI(baseURI string, subscriptionID string) PropertyClient

NewPropertyClientWithBaseURI creates an instance of the PropertyClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PropertyClient) Get

func (client PropertyClient) Get(ctx context.Context) (result Property, err error)

Get get billing property by subscription Id.

func (PropertyClient) GetPreparer

func (client PropertyClient) GetPreparer(ctx context.Context) (*http.Request, error)

GetPreparer prepares the Get request.

func (PropertyClient) GetResponder

func (client PropertyClient) GetResponder(resp *http.Response) (result Property, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (PropertyClient) GetSender

func (client PropertyClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type PropertySummary

type PropertySummary struct {
	// BillingTenantID - READ-ONLY; Billing tenant Id.
	BillingTenantID *string `json:"billingTenantId,omitempty"`
	// BillingAccountID - READ-ONLY; Billing account Id.
	BillingAccountID *string `json:"billingAccountId,omitempty"`
	// BillingAccountName - READ-ONLY; Billing account name.
	BillingAccountName *string `json:"billingAccountName,omitempty"`
	// BillingProfileID - READ-ONLY; Billing profile Id.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
	// BillingProfileName - READ-ONLY; Billing profile name.
	BillingProfileName *string `json:"billingProfileName,omitempty"`
	// CostCenter - READ-ONLY; Cost center name.
	CostCenter *string `json:"costCenter,omitempty"`
	// InvoiceSectionID - READ-ONLY; Invoice Section Id.
	InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
	// InvoiceSectionName - READ-ONLY; Invoice Section name.
	InvoiceSectionName *string `json:"invoiceSectionName,omitempty"`
	// ProductID - READ-ONLY; Product Id.
	ProductID *string `json:"productId,omitempty"`
	// ProductName - READ-ONLY; Product name.
	ProductName *string `json:"productName,omitempty"`
	// SkuID - READ-ONLY; SKU Id.
	SkuID *string `json:"skuId,omitempty"`
	// SkuDescription - READ-ONLY; SKU description.
	SkuDescription *string `json:"skuDescription,omitempty"`
}

PropertySummary the billing property.

type RecipientTransferDetails

type RecipientTransferDetails struct {
	autorest.Response `json:"-"`
	// RecipientTransferProperties - Details of the transfer.
	*RecipientTransferProperties `json:"properties,omitempty"`
}

RecipientTransferDetails details of the transfer.

func (RecipientTransferDetails) MarshalJSON

func (rtd RecipientTransferDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RecipientTransferDetails.

func (*RecipientTransferDetails) UnmarshalJSON

func (rtd *RecipientTransferDetails) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RecipientTransferDetails struct.

type RecipientTransferDetailsListResult

type RecipientTransferDetailsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of transfers received by caller.
	Value *[]RecipientTransferDetails `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

RecipientTransferDetailsListResult result of listing details of the transfer received by caller.

func (RecipientTransferDetailsListResult) IsEmpty

func (rtdlr RecipientTransferDetailsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RecipientTransferDetailsListResultIterator

type RecipientTransferDetailsListResultIterator struct {
	// contains filtered or unexported fields
}

RecipientTransferDetailsListResultIterator provides access to a complete listing of RecipientTransferDetails values.

func NewRecipientTransferDetailsListResultIterator

func NewRecipientTransferDetailsListResultIterator(page RecipientTransferDetailsListResultPage) RecipientTransferDetailsListResultIterator

Creates a new instance of the RecipientTransferDetailsListResultIterator type.

func (*RecipientTransferDetailsListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RecipientTransferDetailsListResultIterator) NextWithContext

func (iter *RecipientTransferDetailsListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (RecipientTransferDetailsListResultIterator) NotDone

NotDone returns true if the enumeration should be started or is not yet complete.

func (RecipientTransferDetailsListResultIterator) Response

Response returns the raw server response from the last page request.

func (RecipientTransferDetailsListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type RecipientTransferDetailsListResultPage

type RecipientTransferDetailsListResultPage struct {
	// contains filtered or unexported fields
}

RecipientTransferDetailsListResultPage contains a page of RecipientTransferDetails values.

func NewRecipientTransferDetailsListResultPage

Creates a new instance of the RecipientTransferDetailsListResultPage type.

func (*RecipientTransferDetailsListResultPage) Next

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*RecipientTransferDetailsListResultPage) NextWithContext

func (page *RecipientTransferDetailsListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (RecipientTransferDetailsListResultPage) NotDone

NotDone returns true if the page enumeration should be started or is not yet complete.

func (RecipientTransferDetailsListResultPage) Response

Response returns the raw server response from the last page request.

func (RecipientTransferDetailsListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type RecipientTransferProperties

type RecipientTransferProperties struct {
	// CreationTime - READ-ONLY; Transfer creation time.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// ExpirationTime - READ-ONLY; Transfer expiration time.
	ExpirationTime *date.Time `json:"expirationTime,omitempty"`
	// AllowedProductType - READ-ONLY; Type of subscriptions that can be transferred.
	AllowedProductType *[]EligibleProductType `json:"allowedProductType,omitempty"`
	// TransferStatus - READ-ONLY; Overall transfer status. Possible values include: 'TransferStatusPending', 'TransferStatusInProgress', 'TransferStatusCompleted', 'TransferStatusCompletedWithErrors', 'TransferStatusFailed', 'TransferStatusCanceled', 'TransferStatusDeclined'
	TransferStatus TransferStatus `json:"transferStatus,omitempty"`
	// RecipientEmailID - READ-ONLY; Email Id of recipient of transfer.
	RecipientEmailID *string `json:"recipientEmailId,omitempty"`
	// InitiatorEmailID - READ-ONLY; Email Id of initiator of transfer.
	InitiatorEmailID *string `json:"initiatorEmailId,omitempty"`
	// CanceledBy - READ-ONLY; Email Id who user canceled the transfer.
	CanceledBy *string `json:"canceledBy,omitempty"`
	// LastModifiedTime - READ-ONLY; Transfer last modification time.
	LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
	// DetailedTransferStatus - READ-ONLY; Detailed transfer status.
	DetailedTransferStatus *[]DetailedTransferStatus `json:"detailedTransferStatus,omitempty"`
}

RecipientTransferProperties transfer Details.

type RecipientTransfersClient

type RecipientTransfersClient struct {
	BaseClient
}

RecipientTransfersClient is the billing client provides access to billing resources for Azure subscriptions.

func NewRecipientTransfersClient

func NewRecipientTransfersClient(subscriptionID string) RecipientTransfersClient

NewRecipientTransfersClient creates an instance of the RecipientTransfersClient client.

func NewRecipientTransfersClientWithBaseURI

func NewRecipientTransfersClientWithBaseURI(baseURI string, subscriptionID string) RecipientTransfersClient

NewRecipientTransfersClientWithBaseURI creates an instance of the RecipientTransfersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RecipientTransfersClient) Accept

func (client RecipientTransfersClient) Accept(ctx context.Context, transferName string, body AcceptTransferRequest) (result RecipientTransferDetails, err error)

Accept sends the accept request. Parameters: transferName - transfer Name. body - accept transfer parameters.

func (RecipientTransfersClient) AcceptPreparer

func (client RecipientTransfersClient) AcceptPreparer(ctx context.Context, transferName string, body AcceptTransferRequest) (*http.Request, error)

AcceptPreparer prepares the Accept request.

func (RecipientTransfersClient) AcceptResponder

func (client RecipientTransfersClient) AcceptResponder(resp *http.Response) (result RecipientTransferDetails, err error)

AcceptResponder handles the response to the Accept request. The method always closes the http.Response Body.

func (RecipientTransfersClient) AcceptSender

func (client RecipientTransfersClient) AcceptSender(req *http.Request) (*http.Response, error)

AcceptSender sends the Accept request. The method will close the http.Response Body if it receives an error.

func (RecipientTransfersClient) Decline

func (client RecipientTransfersClient) Decline(ctx context.Context, transferName string) (result RecipientTransferDetails, err error)

Decline sends the decline request. Parameters: transferName - transfer Name.

func (RecipientTransfersClient) DeclinePreparer

func (client RecipientTransfersClient) DeclinePreparer(ctx context.Context, transferName string) (*http.Request, error)

DeclinePreparer prepares the Decline request.

func (RecipientTransfersClient) DeclineResponder

func (client RecipientTransfersClient) DeclineResponder(resp *http.Response) (result RecipientTransferDetails, err error)

DeclineResponder handles the response to the Decline request. The method always closes the http.Response Body.

func (RecipientTransfersClient) DeclineSender

func (client RecipientTransfersClient) DeclineSender(req *http.Request) (*http.Response, error)

DeclineSender sends the Decline request. The method will close the http.Response Body if it receives an error.

func (RecipientTransfersClient) Get

func (client RecipientTransfersClient) Get(ctx context.Context, transferName string) (result RecipientTransferDetails, err error)

Get sends the get request. Parameters: transferName - transfer Name.

func (RecipientTransfersClient) GetPreparer

func (client RecipientTransfersClient) GetPreparer(ctx context.Context, transferName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (RecipientTransfersClient) GetResponder

func (client RecipientTransfersClient) GetResponder(resp *http.Response) (result RecipientTransferDetails, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (RecipientTransfersClient) GetSender

func (client RecipientTransfersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (RecipientTransfersClient) List

List sends the list request.

func (RecipientTransfersClient) ListComplete

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (RecipientTransfersClient) ListPreparer

func (client RecipientTransfersClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (RecipientTransfersClient) ListResponder

func (client RecipientTransfersClient) ListResponder(resp *http.Response) (result RecipientTransferDetailsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (RecipientTransfersClient) ListSender

func (client RecipientTransfersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Reseller

type Reseller struct {
	// ResellerID - READ-ONLY; The reseller id.
	ResellerID *string `json:"resellerId,omitempty"`
	// Description - READ-ONLY; A description of the reseller.
	Description *string `json:"description,omitempty"`
}

Reseller details about a reseller.

type ReservationType

type ReservationType string

ReservationType enumerates the values for reservation type.

const (
	// Purchase ...
	Purchase ReservationType = "Purchase"
	// UsageCharge ...
	UsageCharge ReservationType = "Usage Charge"
)

func PossibleReservationTypeValues

func PossibleReservationTypeValues() []ReservationType

PossibleReservationTypeValues returns an array of possible values for the ReservationType const type.

type Resource

type Resource struct {
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

Resource the Resource model definition.

type RoleAssignment

type RoleAssignment struct {
	autorest.Response `json:"-"`
	// RoleAssignmentProperties - The role assignment the caller has
	*RoleAssignmentProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

RoleAssignment a role assignment

func (RoleAssignment) MarshalJSON

func (ra RoleAssignment) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleAssignment.

func (*RoleAssignment) UnmarshalJSON

func (ra *RoleAssignment) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleAssignment struct.

type RoleAssignmentListResult

type RoleAssignmentListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list role assignments
	Value *[]RoleAssignment `json:"value,omitempty"`
}

RoleAssignmentListResult result of get list of role assignments

type RoleAssignmentPayload

type RoleAssignmentPayload struct {
	// PrincipalID - The user's principal id that the role gets assigned to
	PrincipalID *string `json:"principalId,omitempty"`
	// BillingRoleDefinitionID - The role definition id
	BillingRoleDefinitionID *string `json:"billingRoleDefinitionId,omitempty"`
}

RoleAssignmentPayload the payload use to update role assignment on a scope

type RoleAssignmentProperties

type RoleAssignmentProperties struct {
	// CreatedOn - READ-ONLY; the date the role assignment is created
	CreatedOn *string `json:"createdOn,omitempty"`
	// CreatedByPrincipalTenantID - READ-ONLY; the creator's tenant Id
	CreatedByPrincipalTenantID *string `json:"createdByPrincipalTenantId,omitempty"`
	// CreatedByPrincipalID - READ-ONLY; the creator's principal Id
	CreatedByPrincipalID *string `json:"createdByPrincipalId,omitempty"`
	// Name - READ-ONLY; the name of the role assignment
	Name *string `json:"name,omitempty"`
	// PrincipalID - READ-ONLY; The user's principal id that the role gets assigned to
	PrincipalID *string `json:"principalId,omitempty"`
	// RoleDefinitionName - READ-ONLY; The role definition id
	RoleDefinitionName *string `json:"roleDefinitionName,omitempty"`
	// Scope - READ-ONLY; The scope the role get assigned to
	Scope *string `json:"scope,omitempty"`
}

RoleAssignmentProperties the properties of the a role assignment.

type RoleAssignmentsClient

type RoleAssignmentsClient struct {
	BaseClient
}

RoleAssignmentsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewRoleAssignmentsClient

func NewRoleAssignmentsClient(subscriptionID string) RoleAssignmentsClient

NewRoleAssignmentsClient creates an instance of the RoleAssignmentsClient client.

func NewRoleAssignmentsClientWithBaseURI

func NewRoleAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) RoleAssignmentsClient

NewRoleAssignmentsClientWithBaseURI creates an instance of the RoleAssignmentsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RoleAssignmentsClient) AddByBillingAccountName

func (client RoleAssignmentsClient) AddByBillingAccountName(ctx context.Context, billingAccountName string, parameters RoleAssignmentPayload) (result RoleAssignmentListResult, err error)

AddByBillingAccountName the operation to add a role assignment to a billing account. Parameters: billingAccountName - billing Account Id. parameters - parameters supplied to add a role assignment.

func (RoleAssignmentsClient) AddByBillingAccountNamePreparer

func (client RoleAssignmentsClient) AddByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, parameters RoleAssignmentPayload) (*http.Request, error)

AddByBillingAccountNamePreparer prepares the AddByBillingAccountName request.

func (RoleAssignmentsClient) AddByBillingAccountNameResponder

func (client RoleAssignmentsClient) AddByBillingAccountNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

AddByBillingAccountNameResponder handles the response to the AddByBillingAccountName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) AddByBillingAccountNameSender

func (client RoleAssignmentsClient) AddByBillingAccountNameSender(req *http.Request) (*http.Response, error)

AddByBillingAccountNameSender sends the AddByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) AddByBillingProfileName

func (client RoleAssignmentsClient) AddByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string, parameters RoleAssignmentPayload) (result RoleAssignmentListResult, err error)

AddByBillingProfileName the operation to add a role assignment to a billing profile. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. parameters - parameters supplied to add a role assignment.

func (RoleAssignmentsClient) AddByBillingProfileNamePreparer

func (client RoleAssignmentsClient) AddByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string, parameters RoleAssignmentPayload) (*http.Request, error)

AddByBillingProfileNamePreparer prepares the AddByBillingProfileName request.

func (RoleAssignmentsClient) AddByBillingProfileNameResponder

func (client RoleAssignmentsClient) AddByBillingProfileNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

AddByBillingProfileNameResponder handles the response to the AddByBillingProfileName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) AddByBillingProfileNameSender

func (client RoleAssignmentsClient) AddByBillingProfileNameSender(req *http.Request) (*http.Response, error)

AddByBillingProfileNameSender sends the AddByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) AddByInvoiceSectionName

func (client RoleAssignmentsClient) AddByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, parameters RoleAssignmentPayload) (result RoleAssignmentListResult, err error)

AddByInvoiceSectionName the operation to add a role assignment to a invoice Section. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. parameters - parameters supplied to add a role assignment.

func (RoleAssignmentsClient) AddByInvoiceSectionNamePreparer

func (client RoleAssignmentsClient) AddByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, parameters RoleAssignmentPayload) (*http.Request, error)

AddByInvoiceSectionNamePreparer prepares the AddByInvoiceSectionName request.

func (RoleAssignmentsClient) AddByInvoiceSectionNameResponder

func (client RoleAssignmentsClient) AddByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

AddByInvoiceSectionNameResponder handles the response to the AddByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) AddByInvoiceSectionNameSender

func (client RoleAssignmentsClient) AddByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

AddByInvoiceSectionNameSender sends the AddByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) DeleteByBillingAccountName

func (client RoleAssignmentsClient) DeleteByBillingAccountName(ctx context.Context, billingAccountName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

DeleteByBillingAccountName delete the role assignment on this billing account Parameters: billingAccountName - billing Account Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) DeleteByBillingAccountNamePreparer

func (client RoleAssignmentsClient) DeleteByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, billingRoleAssignmentName string) (*http.Request, error)

DeleteByBillingAccountNamePreparer prepares the DeleteByBillingAccountName request.

func (RoleAssignmentsClient) DeleteByBillingAccountNameResponder

func (client RoleAssignmentsClient) DeleteByBillingAccountNameResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteByBillingAccountNameResponder handles the response to the DeleteByBillingAccountName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) DeleteByBillingAccountNameSender

func (client RoleAssignmentsClient) DeleteByBillingAccountNameSender(req *http.Request) (*http.Response, error)

DeleteByBillingAccountNameSender sends the DeleteByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) DeleteByBillingProfileName

func (client RoleAssignmentsClient) DeleteByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

DeleteByBillingProfileName delete the role assignment on this Billing Profile Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) DeleteByBillingProfileNamePreparer

func (client RoleAssignmentsClient) DeleteByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleAssignmentName string) (*http.Request, error)

DeleteByBillingProfileNamePreparer prepares the DeleteByBillingProfileName request.

func (RoleAssignmentsClient) DeleteByBillingProfileNameResponder

func (client RoleAssignmentsClient) DeleteByBillingProfileNameResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteByBillingProfileNameResponder handles the response to the DeleteByBillingProfileName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) DeleteByBillingProfileNameSender

func (client RoleAssignmentsClient) DeleteByBillingProfileNameSender(req *http.Request) (*http.Response, error)

DeleteByBillingProfileNameSender sends the DeleteByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) DeleteByInvoiceSectionName

func (client RoleAssignmentsClient) DeleteByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

DeleteByInvoiceSectionName delete the role assignment on the invoice Section Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) DeleteByInvoiceSectionNamePreparer

func (client RoleAssignmentsClient) DeleteByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleAssignmentName string) (*http.Request, error)

DeleteByInvoiceSectionNamePreparer prepares the DeleteByInvoiceSectionName request.

func (RoleAssignmentsClient) DeleteByInvoiceSectionNameResponder

func (client RoleAssignmentsClient) DeleteByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteByInvoiceSectionNameResponder handles the response to the DeleteByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) DeleteByInvoiceSectionNameSender

func (client RoleAssignmentsClient) DeleteByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

DeleteByInvoiceSectionNameSender sends the DeleteByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) GetByBillingAccount

func (client RoleAssignmentsClient) GetByBillingAccount(ctx context.Context, billingAccountName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

GetByBillingAccount get the role assignment for the caller Parameters: billingAccountName - billing Account Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) GetByBillingAccountPreparer

func (client RoleAssignmentsClient) GetByBillingAccountPreparer(ctx context.Context, billingAccountName string, billingRoleAssignmentName string) (*http.Request, error)

GetByBillingAccountPreparer prepares the GetByBillingAccount request.

func (RoleAssignmentsClient) GetByBillingAccountResponder

func (client RoleAssignmentsClient) GetByBillingAccountResponder(resp *http.Response) (result RoleAssignment, err error)

GetByBillingAccountResponder handles the response to the GetByBillingAccount request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) GetByBillingAccountSender

func (client RoleAssignmentsClient) GetByBillingAccountSender(req *http.Request) (*http.Response, error)

GetByBillingAccountSender sends the GetByBillingAccount request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) GetByBillingProfileName

func (client RoleAssignmentsClient) GetByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

GetByBillingProfileName get the role assignment for the caller on the Billing Profile Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) GetByBillingProfileNamePreparer

func (client RoleAssignmentsClient) GetByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleAssignmentName string) (*http.Request, error)

GetByBillingProfileNamePreparer prepares the GetByBillingProfileName request.

func (RoleAssignmentsClient) GetByBillingProfileNameResponder

func (client RoleAssignmentsClient) GetByBillingProfileNameResponder(resp *http.Response) (result RoleAssignment, err error)

GetByBillingProfileNameResponder handles the response to the GetByBillingProfileName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) GetByBillingProfileNameSender

func (client RoleAssignmentsClient) GetByBillingProfileNameSender(req *http.Request) (*http.Response, error)

GetByBillingProfileNameSender sends the GetByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) GetByInvoiceSectionName

func (client RoleAssignmentsClient) GetByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

GetByInvoiceSectionName get the role assignment for the caller on the invoice Section Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) GetByInvoiceSectionNamePreparer

func (client RoleAssignmentsClient) GetByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleAssignmentName string) (*http.Request, error)

GetByInvoiceSectionNamePreparer prepares the GetByInvoiceSectionName request.

func (RoleAssignmentsClient) GetByInvoiceSectionNameResponder

func (client RoleAssignmentsClient) GetByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignment, err error)

GetByInvoiceSectionNameResponder handles the response to the GetByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) GetByInvoiceSectionNameSender

func (client RoleAssignmentsClient) GetByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

GetByInvoiceSectionNameSender sends the GetByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) ListByBillingAccountName

func (client RoleAssignmentsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string) (result RoleAssignmentListResult, err error)

ListByBillingAccountName get the role assignments on the Billing Account Parameters: billingAccountName - billing Account Id.

func (RoleAssignmentsClient) ListByBillingAccountNamePreparer

func (client RoleAssignmentsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (RoleAssignmentsClient) ListByBillingAccountNameResponder

func (client RoleAssignmentsClient) ListByBillingAccountNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) ListByBillingAccountNameSender

func (client RoleAssignmentsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) ListByBillingProfileName

func (client RoleAssignmentsClient) ListByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string) (result RoleAssignmentListResult, err error)

ListByBillingProfileName get the role assignments on the Billing Profile Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (RoleAssignmentsClient) ListByBillingProfileNamePreparer

func (client RoleAssignmentsClient) ListByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string) (*http.Request, error)

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (RoleAssignmentsClient) ListByBillingProfileNameResponder

func (client RoleAssignmentsClient) ListByBillingProfileNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

ListByBillingProfileNameResponder handles the response to the ListByBillingProfileName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) ListByBillingProfileNameSender

func (client RoleAssignmentsClient) ListByBillingProfileNameSender(req *http.Request) (*http.Response, error)

ListByBillingProfileNameSender sends the ListByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (RoleAssignmentsClient) ListByInvoiceSectionName

func (client RoleAssignmentsClient) ListByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string) (result RoleAssignmentListResult, err error)

ListByInvoiceSectionName get the role assignments on the invoice Section Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (RoleAssignmentsClient) ListByInvoiceSectionNamePreparer

func (client RoleAssignmentsClient) ListByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string) (*http.Request, error)

ListByInvoiceSectionNamePreparer prepares the ListByInvoiceSectionName request.

func (RoleAssignmentsClient) ListByInvoiceSectionNameResponder

func (client RoleAssignmentsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

ListByInvoiceSectionNameResponder handles the response to the ListByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) ListByInvoiceSectionNameSender

func (client RoleAssignmentsClient) ListByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

ListByInvoiceSectionNameSender sends the ListByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

type RoleDefinition

type RoleDefinition struct {
	autorest.Response `json:"-"`
	// RoleDefinitionProperties - The role definition for a role.
	*RoleDefinitionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

RoleDefinition result of get role definition for a role.

func (RoleDefinition) MarshalJSON

func (rd RoleDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleDefinition.

func (*RoleDefinition) UnmarshalJSON

func (rd *RoleDefinition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleDefinition struct.

type RoleDefinitionListResult

type RoleDefinitionListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of role definitions.
	Value *[]RoleDefinition `json:"value,omitempty"`
}

RoleDefinitionListResult list the role definitions.

type RoleDefinitionProperties

type RoleDefinitionProperties struct {
	// Description - READ-ONLY; The role description
	Description *string `json:"description,omitempty"`
	// PermissionsListResult - The billingPermissions the role has
	*PermissionsListResult `json:"permissions,omitempty"`
	// RoleName - READ-ONLY; The name of the role
	RoleName *string `json:"roleName,omitempty"`
}

RoleDefinitionProperties the properties of the a role definition.

func (RoleDefinitionProperties) MarshalJSON

func (rdp RoleDefinitionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleDefinitionProperties.

func (*RoleDefinitionProperties) UnmarshalJSON

func (rdp *RoleDefinitionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleDefinitionProperties struct.

type RoleDefinitionsClient

type RoleDefinitionsClient struct {
	BaseClient
}

RoleDefinitionsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewRoleDefinitionsClient

func NewRoleDefinitionsClient(subscriptionID string) RoleDefinitionsClient

NewRoleDefinitionsClient creates an instance of the RoleDefinitionsClient client.

func NewRoleDefinitionsClientWithBaseURI

func NewRoleDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) RoleDefinitionsClient

NewRoleDefinitionsClientWithBaseURI creates an instance of the RoleDefinitionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (RoleDefinitionsClient) GetByBillingAccountName

func (client RoleDefinitionsClient) GetByBillingAccountName(ctx context.Context, billingAccountName string, billingRoleDefinitionName string) (result RoleDefinition, err error)

GetByBillingAccountName gets the role definition for a role Parameters: billingAccountName - billing Account Id. billingRoleDefinitionName - role definition id.

func (RoleDefinitionsClient) GetByBillingAccountNamePreparer

func (client RoleDefinitionsClient) GetByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, billingRoleDefinitionName string) (*http.Request, error)

GetByBillingAccountNamePreparer prepares the GetByBillingAccountName request.

func (RoleDefinitionsClient) GetByBillingAccountNameResponder

func (client RoleDefinitionsClient) GetByBillingAccountNameResponder(resp *http.Response) (result RoleDefinition, err error)

GetByBillingAccountNameResponder handles the response to the GetByBillingAccountName request. The method always closes the http.Response Body.

func (RoleDefinitionsClient) GetByBillingAccountNameSender

func (client RoleDefinitionsClient) GetByBillingAccountNameSender(req *http.Request) (*http.Response, error)

GetByBillingAccountNameSender sends the GetByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (RoleDefinitionsClient) GetByBillingProfileName

func (client RoleDefinitionsClient) GetByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleDefinitionName string) (result RoleDefinition, err error)

GetByBillingProfileName gets the role definition for a role Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. billingRoleDefinitionName - role definition id.

func (RoleDefinitionsClient) GetByBillingProfileNamePreparer

func (client RoleDefinitionsClient) GetByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleDefinitionName string) (*http.Request, error)

GetByBillingProfileNamePreparer prepares the GetByBillingProfileName request.

func (RoleDefinitionsClient) GetByBillingProfileNameResponder

func (client RoleDefinitionsClient) GetByBillingProfileNameResponder(resp *http.Response) (result RoleDefinition, err error)

GetByBillingProfileNameResponder handles the response to the GetByBillingProfileName request. The method always closes the http.Response Body.

func (RoleDefinitionsClient) GetByBillingProfileNameSender

func (client RoleDefinitionsClient) GetByBillingProfileNameSender(req *http.Request) (*http.Response, error)

GetByBillingProfileNameSender sends the GetByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (RoleDefinitionsClient) GetByInvoiceSectionName

func (client RoleDefinitionsClient) GetByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleDefinitionName string) (result RoleDefinition, err error)

GetByInvoiceSectionName gets the role definition for a role Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingRoleDefinitionName - role definition id.

func (RoleDefinitionsClient) GetByInvoiceSectionNamePreparer

func (client RoleDefinitionsClient) GetByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleDefinitionName string) (*http.Request, error)

GetByInvoiceSectionNamePreparer prepares the GetByInvoiceSectionName request.

func (RoleDefinitionsClient) GetByInvoiceSectionNameResponder

func (client RoleDefinitionsClient) GetByInvoiceSectionNameResponder(resp *http.Response) (result RoleDefinition, err error)

GetByInvoiceSectionNameResponder handles the response to the GetByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleDefinitionsClient) GetByInvoiceSectionNameSender

func (client RoleDefinitionsClient) GetByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

GetByInvoiceSectionNameSender sends the GetByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

func (RoleDefinitionsClient) ListByBillingAccountName

func (client RoleDefinitionsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string) (result RoleDefinitionListResult, err error)

ListByBillingAccountName lists the role definition for a billing account Parameters: billingAccountName - billing Account Id.

func (RoleDefinitionsClient) ListByBillingAccountNamePreparer

func (client RoleDefinitionsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (RoleDefinitionsClient) ListByBillingAccountNameResponder

func (client RoleDefinitionsClient) ListByBillingAccountNameResponder(resp *http.Response) (result RoleDefinitionListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (RoleDefinitionsClient) ListByBillingAccountNameSender

func (client RoleDefinitionsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (RoleDefinitionsClient) ListByBillingProfileName

func (client RoleDefinitionsClient) ListByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string) (result RoleDefinitionListResult, err error)

ListByBillingProfileName lists the role definition for a Billing Profile Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (RoleDefinitionsClient) ListByBillingProfileNamePreparer

func (client RoleDefinitionsClient) ListByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string) (*http.Request, error)

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (RoleDefinitionsClient) ListByBillingProfileNameResponder

func (client RoleDefinitionsClient) ListByBillingProfileNameResponder(resp *http.Response) (result RoleDefinitionListResult, err error)

ListByBillingProfileNameResponder handles the response to the ListByBillingProfileName request. The method always closes the http.Response Body.

func (RoleDefinitionsClient) ListByBillingProfileNameSender

func (client RoleDefinitionsClient) ListByBillingProfileNameSender(req *http.Request) (*http.Response, error)

ListByBillingProfileNameSender sends the ListByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (RoleDefinitionsClient) ListByInvoiceSectionName

func (client RoleDefinitionsClient) ListByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string) (result RoleDefinitionListResult, err error)

ListByInvoiceSectionName lists the role definition for an invoice Section Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (RoleDefinitionsClient) ListByInvoiceSectionNamePreparer

func (client RoleDefinitionsClient) ListByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string) (*http.Request, error)

ListByInvoiceSectionNamePreparer prepares the ListByInvoiceSectionName request.

func (RoleDefinitionsClient) ListByInvoiceSectionNameResponder

func (client RoleDefinitionsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result RoleDefinitionListResult, err error)

ListByInvoiceSectionNameResponder handles the response to the ListByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleDefinitionsClient) ListByInvoiceSectionNameSender

func (client RoleDefinitionsClient) ListByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

ListByInvoiceSectionNameSender sends the ListByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

type Status

type Status string

Status enumerates the values for status.

const (
	// Approved ...
	Approved Status = "Approved"
	// Rejected ...
	Rejected Status = "Rejected"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type Status1

type Status1 string

Status1 enumerates the values for status 1.

const (
	// Status1Due ...
	Status1Due Status1 = "Due"
	// Status1Paid ...
	Status1Paid Status1 = "Paid"
	// Status1PastDue ...
	Status1PastDue Status1 = "PastDue"
	// Status1Void ...
	Status1Void Status1 = "Void"
)

func PossibleStatus1Values

func PossibleStatus1Values() []Status1

PossibleStatus1Values returns an array of possible values for the Status1 const type.

type SubscriptionProperties

type SubscriptionProperties struct {
	// DisplayName - READ-ONLY; display name.
	DisplayName *string `json:"displayName,omitempty"`
	// SubscriptionID - READ-ONLY; Subscription Id.
	SubscriptionID *uuid.UUID `json:"subscriptionId,omitempty"`
	// SubscriptionBillingStatus - Subscription billing status. Possible values include: 'SubscriptionStatusTypeActive', 'SubscriptionStatusTypeInactive', 'SubscriptionStatusTypeAbandoned', 'SubscriptionStatusTypeDeleted', 'SubscriptionStatusTypeWarning'
	SubscriptionBillingStatus SubscriptionStatusType `json:"subscriptionBillingStatus,omitempty"`
	// LastMonthCharges - READ-ONLY; Last month charges.
	LastMonthCharges *Amount `json:"lastMonthCharges,omitempty"`
	// MonthToDateCharges - READ-ONLY; Month to date charges.
	MonthToDateCharges *Amount `json:"monthToDateCharges,omitempty"`
	// BillingProfileID - READ-ONLY; Billing Profile id to which this product belongs.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
	// BillingProfileName - READ-ONLY; Billing Profile name to which this product belongs.
	BillingProfileName *string `json:"billingProfileName,omitempty"`
	// CustomerID - READ-ONLY; Customer id to which this product belongs.
	CustomerID *string `json:"customerId,omitempty"`
	// CustomerDisplayName - READ-ONLY; Display name of customer to which this product belongs.
	CustomerDisplayName *string `json:"customerDisplayName,omitempty"`
	// InvoiceSectionID - READ-ONLY; Invoice section id to which this product belongs.
	InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
	// InvoiceSectionName - READ-ONLY; Invoice section name to which this product belongs.
	InvoiceSectionName *string `json:"invoiceSectionName,omitempty"`
	// SkuID - The sku id.
	SkuID *string `json:"skuId,omitempty"`
	// SkuDescription - READ-ONLY; The sku description.
	SkuDescription *string `json:"skuDescription,omitempty"`
	// Reseller - READ-ONLY; Reseller for this subscription.
	Reseller *Reseller `json:"reseller,omitempty"`
}

SubscriptionProperties the usage context properties.

func (SubscriptionProperties) MarshalJSON

func (sp SubscriptionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SubscriptionProperties.

type SubscriptionStatusType

type SubscriptionStatusType string

SubscriptionStatusType enumerates the values for subscription status type.

const (
	// SubscriptionStatusTypeAbandoned ...
	SubscriptionStatusTypeAbandoned SubscriptionStatusType = "Abandoned"
	// SubscriptionStatusTypeActive ...
	SubscriptionStatusTypeActive SubscriptionStatusType = "Active"
	// SubscriptionStatusTypeDeleted ...
	SubscriptionStatusTypeDeleted SubscriptionStatusType = "Deleted"
	// SubscriptionStatusTypeInactive ...
	SubscriptionStatusTypeInactive SubscriptionStatusType = "Inactive"
	// SubscriptionStatusTypeWarning ...
	SubscriptionStatusTypeWarning SubscriptionStatusType = "Warning"
)

func PossibleSubscriptionStatusTypeValues

func PossibleSubscriptionStatusTypeValues() []SubscriptionStatusType

PossibleSubscriptionStatusTypeValues returns an array of possible values for the SubscriptionStatusType const type.

type SubscriptionSummary

type SubscriptionSummary struct {
	autorest.Response       `json:"-"`
	*SubscriptionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

SubscriptionSummary a billing Subscription summary resource.

func (SubscriptionSummary) MarshalJSON

func (ss SubscriptionSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SubscriptionSummary.

func (*SubscriptionSummary) UnmarshalJSON

func (ss *SubscriptionSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SubscriptionSummary struct.

type SubscriptionTransferValidationErrorCode

type SubscriptionTransferValidationErrorCode string

SubscriptionTransferValidationErrorCode enumerates the values for subscription transfer validation error code.

const (
	// SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed ...
	SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed SubscriptionTransferValidationErrorCode = "CrossBillingAccountNotAllowed"
	// SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue ...
	SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue SubscriptionTransferValidationErrorCode = "DestinationBillingProfilePastDue"
	// SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination ...
	SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination SubscriptionTransferValidationErrorCode = "InsufficientPermissionOnDestination"
	// SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource ...
	SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource SubscriptionTransferValidationErrorCode = "InsufficientPermissionOnSource"
	// SubscriptionTransferValidationErrorCodeInvalidSource ...
	SubscriptionTransferValidationErrorCodeInvalidSource SubscriptionTransferValidationErrorCode = "InvalidSource"
	// SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket ...
	SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket SubscriptionTransferValidationErrorCode = "NotAvailableForDestinationMarket"
	// SubscriptionTransferValidationErrorCodeSubscriptionNotActive ...
	SubscriptionTransferValidationErrorCodeSubscriptionNotActive SubscriptionTransferValidationErrorCode = "SubscriptionNotActive"
	// SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported ...
	SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported SubscriptionTransferValidationErrorCode = "SubscriptionTypeNotSupported"
)

func PossibleSubscriptionTransferValidationErrorCodeValues

func PossibleSubscriptionTransferValidationErrorCodeValues() []SubscriptionTransferValidationErrorCode

PossibleSubscriptionTransferValidationErrorCodeValues returns an array of possible values for the SubscriptionTransferValidationErrorCode const type.

type SubscriptionsClient

type SubscriptionsClient struct {
	BaseClient
}

SubscriptionsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewSubscriptionsClient

func NewSubscriptionsClient(subscriptionID string) SubscriptionsClient

NewSubscriptionsClient creates an instance of the SubscriptionsClient client.

func NewSubscriptionsClientWithBaseURI

func NewSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionsClient

NewSubscriptionsClientWithBaseURI creates an instance of the SubscriptionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SubscriptionsClient) Get

func (client SubscriptionsClient) Get(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string) (result SubscriptionSummary, err error)

Get get a single billing subscription by name. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingSubscriptionName - billing Subscription Id.

func (SubscriptionsClient) GetByCustomerName

func (client SubscriptionsClient) GetByCustomerName(ctx context.Context, billingAccountName string, customerName string, billingSubscriptionName string) (result SubscriptionSummary, err error)

GetByCustomerName get a single billing subscription by name. Parameters: billingAccountName - billing Account Id. customerName - customer Id. billingSubscriptionName - billing Subscription Id.

func (SubscriptionsClient) GetByCustomerNamePreparer

func (client SubscriptionsClient) GetByCustomerNamePreparer(ctx context.Context, billingAccountName string, customerName string, billingSubscriptionName string) (*http.Request, error)

GetByCustomerNamePreparer prepares the GetByCustomerName request.

func (SubscriptionsClient) GetByCustomerNameResponder

func (client SubscriptionsClient) GetByCustomerNameResponder(resp *http.Response) (result SubscriptionSummary, err error)

GetByCustomerNameResponder handles the response to the GetByCustomerName request. The method always closes the http.Response Body.

func (SubscriptionsClient) GetByCustomerNameSender

func (client SubscriptionsClient) GetByCustomerNameSender(req *http.Request) (*http.Response, error)

GetByCustomerNameSender sends the GetByCustomerName request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) GetPreparer

func (client SubscriptionsClient) GetPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SubscriptionsClient) GetResponder

func (client SubscriptionsClient) GetResponder(resp *http.Response) (result SubscriptionSummary, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SubscriptionsClient) GetSender

func (client SubscriptionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) ListByBillingAccountName

func (client SubscriptionsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string) (result SubscriptionsListResultPage, err error)

ListByBillingAccountName lists billing subscriptions by billing account name. Parameters: billingAccountName - billing Account Id.

func (SubscriptionsClient) ListByBillingAccountNameComplete

func (client SubscriptionsClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string) (result SubscriptionsListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (SubscriptionsClient) ListByBillingAccountNamePreparer

func (client SubscriptionsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (SubscriptionsClient) ListByBillingAccountNameResponder

func (client SubscriptionsClient) ListByBillingAccountNameResponder(resp *http.Response) (result SubscriptionsListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (SubscriptionsClient) ListByBillingAccountNameSender

func (client SubscriptionsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) ListByBillingProfileName

func (client SubscriptionsClient) ListByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string) (result SubscriptionsListResultPage, err error)

ListByBillingProfileName lists billing subscriptions by billing profile name. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (SubscriptionsClient) ListByBillingProfileNameComplete

func (client SubscriptionsClient) ListByBillingProfileNameComplete(ctx context.Context, billingAccountName string, billingProfileName string) (result SubscriptionsListResultIterator, err error)

ListByBillingProfileNameComplete enumerates all values, automatically crossing page boundaries as required.

func (SubscriptionsClient) ListByBillingProfileNamePreparer

func (client SubscriptionsClient) ListByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string) (*http.Request, error)

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (SubscriptionsClient) ListByBillingProfileNameResponder

func (client SubscriptionsClient) ListByBillingProfileNameResponder(resp *http.Response) (result SubscriptionsListResult, err error)

ListByBillingProfileNameResponder handles the response to the ListByBillingProfileName request. The method always closes the http.Response Body.

func (SubscriptionsClient) ListByBillingProfileNameSender

func (client SubscriptionsClient) ListByBillingProfileNameSender(req *http.Request) (*http.Response, error)

ListByBillingProfileNameSender sends the ListByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) ListByCustomerName

func (client SubscriptionsClient) ListByCustomerName(ctx context.Context, billingAccountName string, customerName string) (result SubscriptionsListResultPage, err error)

ListByCustomerName lists billing subscription by customer name. Parameters: billingAccountName - billing Account Id. customerName - customer Id.

func (SubscriptionsClient) ListByCustomerNameComplete

func (client SubscriptionsClient) ListByCustomerNameComplete(ctx context.Context, billingAccountName string, customerName string) (result SubscriptionsListResultIterator, err error)

ListByCustomerNameComplete enumerates all values, automatically crossing page boundaries as required.

func (SubscriptionsClient) ListByCustomerNamePreparer

func (client SubscriptionsClient) ListByCustomerNamePreparer(ctx context.Context, billingAccountName string, customerName string) (*http.Request, error)

ListByCustomerNamePreparer prepares the ListByCustomerName request.

func (SubscriptionsClient) ListByCustomerNameResponder

func (client SubscriptionsClient) ListByCustomerNameResponder(resp *http.Response) (result SubscriptionsListResult, err error)

ListByCustomerNameResponder handles the response to the ListByCustomerName request. The method always closes the http.Response Body.

func (SubscriptionsClient) ListByCustomerNameSender

func (client SubscriptionsClient) ListByCustomerNameSender(req *http.Request) (*http.Response, error)

ListByCustomerNameSender sends the ListByCustomerName request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) ListByInvoiceSectionName

func (client SubscriptionsClient) ListByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string) (result SubscriptionsListResultPage, err error)

ListByInvoiceSectionName lists billing subscription by invoice section name. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (SubscriptionsClient) ListByInvoiceSectionNameComplete

func (client SubscriptionsClient) ListByInvoiceSectionNameComplete(ctx context.Context, billingAccountName string, invoiceSectionName string) (result SubscriptionsListResultIterator, err error)

ListByInvoiceSectionNameComplete enumerates all values, automatically crossing page boundaries as required.

func (SubscriptionsClient) ListByInvoiceSectionNamePreparer

func (client SubscriptionsClient) ListByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string) (*http.Request, error)

ListByInvoiceSectionNamePreparer prepares the ListByInvoiceSectionName request.

func (SubscriptionsClient) ListByInvoiceSectionNameResponder

func (client SubscriptionsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result SubscriptionsListResult, err error)

ListByInvoiceSectionNameResponder handles the response to the ListByInvoiceSectionName request. The method always closes the http.Response Body.

func (SubscriptionsClient) ListByInvoiceSectionNameSender

func (client SubscriptionsClient) ListByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

ListByInvoiceSectionNameSender sends the ListByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) Transfer

func (client SubscriptionsClient) Transfer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string, parameters TransferBillingSubscriptionRequestProperties) (result SubscriptionsTransferFuture, err error)

Transfer transfers the subscription from one invoice section to another within a billing account. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingSubscriptionName - billing Subscription Id. parameters - parameters supplied to the Transfer Billing Subscription operation.

func (SubscriptionsClient) TransferPreparer

func (client SubscriptionsClient) TransferPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string, parameters TransferBillingSubscriptionRequestProperties) (*http.Request, error)

TransferPreparer prepares the Transfer request.

func (SubscriptionsClient) TransferResponder

func (client SubscriptionsClient) TransferResponder(resp *http.Response) (result TransferBillingSubscriptionResult, err error)

TransferResponder handles the response to the Transfer request. The method always closes the http.Response Body.

func (SubscriptionsClient) TransferSender

func (client SubscriptionsClient) TransferSender(req *http.Request) (future SubscriptionsTransferFuture, err error)

TransferSender sends the Transfer request. The method will close the http.Response Body if it receives an error.

func (SubscriptionsClient) ValidateTransfer

func (client SubscriptionsClient) ValidateTransfer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string, parameters TransferBillingSubscriptionRequestProperties) (result ValidateSubscriptionTransferEligibilityResult, err error)

ValidateTransfer validates the transfer of billing subscriptions across invoice sections. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingSubscriptionName - billing Subscription Id. parameters - parameters supplied to the Transfer Billing Subscription operation.

func (SubscriptionsClient) ValidateTransferPreparer

func (client SubscriptionsClient) ValidateTransferPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string, parameters TransferBillingSubscriptionRequestProperties) (*http.Request, error)

ValidateTransferPreparer prepares the ValidateTransfer request.

func (SubscriptionsClient) ValidateTransferResponder

func (client SubscriptionsClient) ValidateTransferResponder(resp *http.Response) (result ValidateSubscriptionTransferEligibilityResult, err error)

ValidateTransferResponder handles the response to the ValidateTransfer request. The method always closes the http.Response Body.

func (SubscriptionsClient) ValidateTransferSender

func (client SubscriptionsClient) ValidateTransferSender(req *http.Request) (*http.Response, error)

ValidateTransferSender sends the ValidateTransfer request. The method will close the http.Response Body if it receives an error.

type SubscriptionsListResult

type SubscriptionsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of billing subscriptions summary.
	Value *[]SubscriptionSummary `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SubscriptionsListResult result of listing billing subscriptions summary.

func (SubscriptionsListResult) IsEmpty

func (slr SubscriptionsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SubscriptionsListResultIterator

type SubscriptionsListResultIterator struct {
	// contains filtered or unexported fields
}

SubscriptionsListResultIterator provides access to a complete listing of SubscriptionSummary values.

func NewSubscriptionsListResultIterator

func NewSubscriptionsListResultIterator(page SubscriptionsListResultPage) SubscriptionsListResultIterator

Creates a new instance of the SubscriptionsListResultIterator type.

func (*SubscriptionsListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SubscriptionsListResultIterator) NextWithContext

func (iter *SubscriptionsListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (SubscriptionsListResultIterator) NotDone

func (iter SubscriptionsListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SubscriptionsListResultIterator) Response

Response returns the raw server response from the last page request.

func (SubscriptionsListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SubscriptionsListResultPage

type SubscriptionsListResultPage struct {
	// contains filtered or unexported fields
}

SubscriptionsListResultPage contains a page of SubscriptionSummary values.

func NewSubscriptionsListResultPage

func NewSubscriptionsListResultPage(getNextPage func(context.Context, SubscriptionsListResult) (SubscriptionsListResult, error)) SubscriptionsListResultPage

Creates a new instance of the SubscriptionsListResultPage type.

func (*SubscriptionsListResultPage) Next

func (page *SubscriptionsListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SubscriptionsListResultPage) NextWithContext

func (page *SubscriptionsListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (SubscriptionsListResultPage) NotDone

func (page SubscriptionsListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SubscriptionsListResultPage) Response

Response returns the raw server response from the last page request.

func (SubscriptionsListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type SubscriptionsTransferFuture

type SubscriptionsTransferFuture struct {
	azure.Future
}

SubscriptionsTransferFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*SubscriptionsTransferFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type TransactionTypeKind

type TransactionTypeKind string

TransactionTypeKind enumerates the values for transaction type kind.

const (
	// All ...
	All TransactionTypeKind = "all"
	// Reservation ...
	Reservation TransactionTypeKind = "reservation"
)

func PossibleTransactionTypeKindValues

func PossibleTransactionTypeKindValues() []TransactionTypeKind

PossibleTransactionTypeKindValues returns an array of possible values for the TransactionTypeKind const type.

type TransactionsClient

type TransactionsClient struct {
	BaseClient
}

TransactionsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewTransactionsClient

func NewTransactionsClient(subscriptionID string) TransactionsClient

NewTransactionsClient creates an instance of the TransactionsClient client.

func NewTransactionsClientWithBaseURI

func NewTransactionsClientWithBaseURI(baseURI string, subscriptionID string) TransactionsClient

NewTransactionsClientWithBaseURI creates an instance of the TransactionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TransactionsClient) ListByBillingAccountName

func (client TransactionsClient) ListByBillingAccountName(ctx context.Context, billingAccountName string, startDate string, endDate string, filter string) (result TransactionsListResultPage, err error)

ListByBillingAccountName lists the transactions by billing account name for given start and end date. Parameters: billingAccountName - billing Account Id. startDate - start date endDate - end date filter - may be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (TransactionsClient) ListByBillingAccountNameComplete

func (client TransactionsClient) ListByBillingAccountNameComplete(ctx context.Context, billingAccountName string, startDate string, endDate string, filter string) (result TransactionsListResultIterator, err error)

ListByBillingAccountNameComplete enumerates all values, automatically crossing page boundaries as required.

func (TransactionsClient) ListByBillingAccountNamePreparer

func (client TransactionsClient) ListByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, startDate string, endDate string, filter string) (*http.Request, error)

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (TransactionsClient) ListByBillingAccountNameResponder

func (client TransactionsClient) ListByBillingAccountNameResponder(resp *http.Response) (result TransactionsListResult, err error)

ListByBillingAccountNameResponder handles the response to the ListByBillingAccountName request. The method always closes the http.Response Body.

func (TransactionsClient) ListByBillingAccountNameSender

func (client TransactionsClient) ListByBillingAccountNameSender(req *http.Request) (*http.Response, error)

ListByBillingAccountNameSender sends the ListByBillingAccountName request. The method will close the http.Response Body if it receives an error.

func (TransactionsClient) ListByBillingProfileName

func (client TransactionsClient) ListByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string, startDate string, endDate string, filter string) (result TransactionsListResultPage, err error)

ListByBillingProfileName lists the transactions by billing profile name for given start date and end date. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. startDate - start date endDate - end date filter - may be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (TransactionsClient) ListByBillingProfileNameComplete

func (client TransactionsClient) ListByBillingProfileNameComplete(ctx context.Context, billingAccountName string, billingProfileName string, startDate string, endDate string, filter string) (result TransactionsListResultIterator, err error)

ListByBillingProfileNameComplete enumerates all values, automatically crossing page boundaries as required.

func (TransactionsClient) ListByBillingProfileNamePreparer

func (client TransactionsClient) ListByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string, startDate string, endDate string, filter string) (*http.Request, error)

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (TransactionsClient) ListByBillingProfileNameResponder

func (client TransactionsClient) ListByBillingProfileNameResponder(resp *http.Response) (result TransactionsListResult, err error)

ListByBillingProfileNameResponder handles the response to the ListByBillingProfileName request. The method always closes the http.Response Body.

func (TransactionsClient) ListByBillingProfileNameSender

func (client TransactionsClient) ListByBillingProfileNameSender(req *http.Request) (*http.Response, error)

ListByBillingProfileNameSender sends the ListByBillingProfileName request. The method will close the http.Response Body if it receives an error.

func (TransactionsClient) ListByCustomerName

func (client TransactionsClient) ListByCustomerName(ctx context.Context, billingAccountName string, customerName string, startDate string, endDate string, filter string) (result TransactionsListResultPage, err error)

ListByCustomerName lists the transactions by invoice section name for given start date and end date. Parameters: billingAccountName - billing Account Id. customerName - customer Id. startDate - start date endDate - end date filter - may be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (TransactionsClient) ListByCustomerNameComplete

func (client TransactionsClient) ListByCustomerNameComplete(ctx context.Context, billingAccountName string, customerName string, startDate string, endDate string, filter string) (result TransactionsListResultIterator, err error)

ListByCustomerNameComplete enumerates all values, automatically crossing page boundaries as required.

func (TransactionsClient) ListByCustomerNamePreparer

func (client TransactionsClient) ListByCustomerNamePreparer(ctx context.Context, billingAccountName string, customerName string, startDate string, endDate string, filter string) (*http.Request, error)

ListByCustomerNamePreparer prepares the ListByCustomerName request.

func (TransactionsClient) ListByCustomerNameResponder

func (client TransactionsClient) ListByCustomerNameResponder(resp *http.Response) (result TransactionsListResult, err error)

ListByCustomerNameResponder handles the response to the ListByCustomerName request. The method always closes the http.Response Body.

func (TransactionsClient) ListByCustomerNameSender

func (client TransactionsClient) ListByCustomerNameSender(req *http.Request) (*http.Response, error)

ListByCustomerNameSender sends the ListByCustomerName request. The method will close the http.Response Body if it receives an error.

func (TransactionsClient) ListByInvoiceSectionName

func (client TransactionsClient) ListByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, startDate string, endDate string, filter string) (result TransactionsListResultPage, err error)

ListByInvoiceSectionName lists the transactions by invoice section name for given start date and end date. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. startDate - start date endDate - end date filter - may be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (TransactionsClient) ListByInvoiceSectionNameComplete

func (client TransactionsClient) ListByInvoiceSectionNameComplete(ctx context.Context, billingAccountName string, invoiceSectionName string, startDate string, endDate string, filter string) (result TransactionsListResultIterator, err error)

ListByInvoiceSectionNameComplete enumerates all values, automatically crossing page boundaries as required.

func (TransactionsClient) ListByInvoiceSectionNamePreparer

func (client TransactionsClient) ListByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, startDate string, endDate string, filter string) (*http.Request, error)

ListByInvoiceSectionNamePreparer prepares the ListByInvoiceSectionName request.

func (TransactionsClient) ListByInvoiceSectionNameResponder

func (client TransactionsClient) ListByInvoiceSectionNameResponder(resp *http.Response) (result TransactionsListResult, err error)

ListByInvoiceSectionNameResponder handles the response to the ListByInvoiceSectionName request. The method always closes the http.Response Body.

func (TransactionsClient) ListByInvoiceSectionNameSender

func (client TransactionsClient) ListByInvoiceSectionNameSender(req *http.Request) (*http.Response, error)

ListByInvoiceSectionNameSender sends the ListByInvoiceSectionName request. The method will close the http.Response Body if it receives an error.

type TransactionsListResult

type TransactionsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of reservation transactions summary.
	Value *[]TransactionsSummary `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

TransactionsListResult result of listing reservation transactions summary.

func (TransactionsListResult) IsEmpty

func (tlr TransactionsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TransactionsListResultIterator

type TransactionsListResultIterator struct {
	// contains filtered or unexported fields
}

TransactionsListResultIterator provides access to a complete listing of TransactionsSummary values.

func NewTransactionsListResultIterator

func NewTransactionsListResultIterator(page TransactionsListResultPage) TransactionsListResultIterator

Creates a new instance of the TransactionsListResultIterator type.

func (*TransactionsListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*TransactionsListResultIterator) NextWithContext

func (iter *TransactionsListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (TransactionsListResultIterator) NotDone

func (iter TransactionsListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (TransactionsListResultIterator) Response

Response returns the raw server response from the last page request.

func (TransactionsListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type TransactionsListResultPage

type TransactionsListResultPage struct {
	// contains filtered or unexported fields
}

TransactionsListResultPage contains a page of TransactionsSummary values.

func NewTransactionsListResultPage

func NewTransactionsListResultPage(getNextPage func(context.Context, TransactionsListResult) (TransactionsListResult, error)) TransactionsListResultPage

Creates a new instance of the TransactionsListResultPage type.

func (*TransactionsListResultPage) Next

func (page *TransactionsListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*TransactionsListResultPage) NextWithContext

func (page *TransactionsListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (TransactionsListResultPage) NotDone

func (page TransactionsListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (TransactionsListResultPage) Response

Response returns the raw server response from the last page request.

func (TransactionsListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type TransactionsSummary

type TransactionsSummary struct {
	*TransactionsSummaryProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Resource type.
	Type *string `json:"type,omitempty"`
}

TransactionsSummary a reservation transaction summary resource.

func (TransactionsSummary) MarshalJSON

func (ts TransactionsSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransactionsSummary.

func (*TransactionsSummary) UnmarshalJSON

func (ts *TransactionsSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransactionsSummary struct.

type TransactionsSummaryProperties

type TransactionsSummaryProperties struct {
	// Kind - The kind of transaction. Choices are all and reservation. Possible values include: 'All', 'Reservation'
	Kind TransactionTypeKind `json:"kind,omitempty"`
	// Date - READ-ONLY; The date of reservation transaction.
	Date *date.Time `json:"date,omitempty"`
	// Invoice - READ-ONLY; Invoice number or 'pending' if not invoiced.
	Invoice *string `json:"invoice,omitempty"`
	// OrderID - READ-ONLY; The reservation order id.
	OrderID *string `json:"orderId,omitempty"`
	// OrderName - READ-ONLY; The reservation order name.
	OrderName *string `json:"orderName,omitempty"`
	// ProductFamily - READ-ONLY; The product family.
	ProductFamily *string `json:"productFamily,omitempty"`
	// ProductTypeID - READ-ONLY; The product type id.
	ProductTypeID *string `json:"productTypeId,omitempty"`
	// ProductType - READ-ONLY; The type of product.
	ProductType *string `json:"productType,omitempty"`
	// ProductDescription - READ-ONLY; Product description.
	ProductDescription *string `json:"productDescription,omitempty"`
	// TransactionType - Transaction types. Possible values include: 'Purchase', 'UsageCharge'
	TransactionType ReservationType `json:"transactionType,omitempty"`
	// TransactionAmount - READ-ONLY; Last charge associated with the purchase.
	TransactionAmount *Amount `json:"transactionAmount,omitempty"`
	// Quantity - READ-ONLY; Purchase quantity.
	Quantity *int32 `json:"quantity,omitempty"`
	// CustomerID - READ-ONLY; Customer id to which this product belongs.
	CustomerID *string `json:"customerId,omitempty"`
	// CustomerDisplayName - READ-ONLY; Display name of customer to which this product belongs.
	CustomerDisplayName *string `json:"customerDisplayName,omitempty"`
	// InvoiceSectionID - READ-ONLY; Invoice section id to which this product belongs.
	InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
	// InvoiceSectionName - READ-ONLY; Invoice section name to which this product belongs.
	InvoiceSectionName *string `json:"invoiceSectionName,omitempty"`
	// BillingProfileID - READ-ONLY; Billing Profile id to which this product belongs.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
	// BillingProfileName - READ-ONLY; Billing Profile name to which this product belongs.
	BillingProfileName *string `json:"billingProfileName,omitempty"`
	// SubscriptionID - READ-ONLY; The subscription id.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// SubscriptionName - READ-ONLY; The subscription name.
	SubscriptionName *string `json:"subscriptionName,omitempty"`
}

TransactionsSummaryProperties the properties of the reservation transaction summary.

func (TransactionsSummaryProperties) MarshalJSON

func (tsp TransactionsSummaryProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransactionsSummaryProperties.

type TransferBillingSubscriptionRequest

type TransferBillingSubscriptionRequest struct {
	// TransferBillingSubscriptionRequestProperties - Request parameters to transfer billing subscription.
	*TransferBillingSubscriptionRequestProperties `json:"properties,omitempty"`
}

TransferBillingSubscriptionRequest request parameters to transfer billing subscription.

func (TransferBillingSubscriptionRequest) MarshalJSON

func (tbsr TransferBillingSubscriptionRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransferBillingSubscriptionRequest.

func (*TransferBillingSubscriptionRequest) UnmarshalJSON

func (tbsr *TransferBillingSubscriptionRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransferBillingSubscriptionRequest struct.

type TransferBillingSubscriptionRequestProperties

type TransferBillingSubscriptionRequestProperties struct {
	// DestinationInvoiceSectionID - The destination invoice section id.
	DestinationInvoiceSectionID *string `json:"destinationInvoiceSectionId,omitempty"`
	// DestinationBillingProfileID - The destination billing profile id.
	DestinationBillingProfileID *string `json:"destinationBillingProfileId,omitempty"`
}

TransferBillingSubscriptionRequestProperties request parameters to transfer billing subscription.

type TransferBillingSubscriptionResult

type TransferBillingSubscriptionResult struct {
	autorest.Response `json:"-"`
	// TransferBillingSubscriptionResultProperties - Request parameters to transfer billing subscription.
	*TransferBillingSubscriptionResultProperties `json:"properties,omitempty"`
}

TransferBillingSubscriptionResult request parameters to transfer billing subscription.

func (TransferBillingSubscriptionResult) MarshalJSON

func (tbsr TransferBillingSubscriptionResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransferBillingSubscriptionResult.

func (*TransferBillingSubscriptionResult) UnmarshalJSON

func (tbsr *TransferBillingSubscriptionResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransferBillingSubscriptionResult struct.

type TransferBillingSubscriptionResultProperties

type TransferBillingSubscriptionResultProperties struct {
	// BillingSubscriptionName - The destination billing subscription id.
	BillingSubscriptionName *string `json:"billingSubscriptionName,omitempty"`
}

TransferBillingSubscriptionResultProperties transfer billing subscription result properties.

type TransferDetails

type TransferDetails struct {
	autorest.Response `json:"-"`
	// TransferProperties - Details of the transfer.
	*TransferProperties `json:"properties,omitempty"`
}

TransferDetails details of the transfer.

func (TransferDetails) MarshalJSON

func (td TransferDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransferDetails.

func (*TransferDetails) UnmarshalJSON

func (td *TransferDetails) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransferDetails struct.

type TransferDetailsListResult

type TransferDetailsListResult struct {
	autorest.Response `json:"-"`
	// Value - READ-ONLY; The list of transfers initiated by caller.
	Value *[]TransferDetails `json:"value,omitempty"`
	// NextLink - READ-ONLY; The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

TransferDetailsListResult result of listing details of the transfer initiated by caller.

func (TransferDetailsListResult) IsEmpty

func (tdlr TransferDetailsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TransferDetailsListResultIterator

type TransferDetailsListResultIterator struct {
	// contains filtered or unexported fields
}

TransferDetailsListResultIterator provides access to a complete listing of TransferDetails values.

func NewTransferDetailsListResultIterator

func NewTransferDetailsListResultIterator(page TransferDetailsListResultPage) TransferDetailsListResultIterator

Creates a new instance of the TransferDetailsListResultIterator type.

func (*TransferDetailsListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*TransferDetailsListResultIterator) NextWithContext

func (iter *TransferDetailsListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (TransferDetailsListResultIterator) NotDone

func (iter TransferDetailsListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (TransferDetailsListResultIterator) Response

Response returns the raw server response from the last page request.

func (TransferDetailsListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type TransferDetailsListResultPage

type TransferDetailsListResultPage struct {
	// contains filtered or unexported fields
}

TransferDetailsListResultPage contains a page of TransferDetails values.

func NewTransferDetailsListResultPage

func NewTransferDetailsListResultPage(getNextPage func(context.Context, TransferDetailsListResult) (TransferDetailsListResult, error)) TransferDetailsListResultPage

Creates a new instance of the TransferDetailsListResultPage type.

func (*TransferDetailsListResultPage) Next

func (page *TransferDetailsListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*TransferDetailsListResultPage) NextWithContext

func (page *TransferDetailsListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (TransferDetailsListResultPage) NotDone

func (page TransferDetailsListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (TransferDetailsListResultPage) Response

Response returns the raw server response from the last page request.

func (TransferDetailsListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type TransferProductRequestProperties

type TransferProductRequestProperties struct {
	// DestinationInvoiceSectionID - The destination invoice section id.
	DestinationInvoiceSectionID *string `json:"destinationInvoiceSectionId,omitempty"`
	// DestinationBillingProfileID - The destination billing profile id.
	DestinationBillingProfileID *string `json:"destinationBillingProfileId,omitempty"`
}

TransferProductRequestProperties the properties of the product to initiate a transfer.

type TransferProperties

type TransferProperties struct {
	// CreationTime - READ-ONLY; Transfer creation time.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// ExpirationTime - READ-ONLY; Transfer expiration time.
	ExpirationTime *date.Time `json:"expirationTime,omitempty"`
	// InvoiceSectionID - READ-ONLY; Target invoice section Id.
	InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
	// BillingAccountID - READ-ONLY; Target billing account Id.
	BillingAccountID *string `json:"billingAccountId,omitempty"`
	// TransferStatus - READ-ONLY; Overall transfer status. Possible values include: 'TransferStatusPending', 'TransferStatusInProgress', 'TransferStatusCompleted', 'TransferStatusCompletedWithErrors', 'TransferStatusFailed', 'TransferStatusCanceled', 'TransferStatusDeclined'
	TransferStatus TransferStatus `json:"transferStatus,omitempty"`
	// RecipientEmailID - READ-ONLY; Email Id of recipient of transfer.
	RecipientEmailID *string `json:"recipientEmailId,omitempty"`
	// InitiatorEmailID - READ-ONLY; Email Id of initiator of transfer.
	InitiatorEmailID *string `json:"initiatorEmailId,omitempty"`
	// CanceledBy - READ-ONLY; Email Id who user canceled the transfer.
	CanceledBy *string `json:"canceledBy,omitempty"`
	// LastModifiedTime - READ-ONLY; Transfer last modification time.
	LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
	// DetailedTransferStatus - READ-ONLY; Detailed transfer status.
	DetailedTransferStatus *[]DetailedTransferStatus `json:"detailedTransferStatus,omitempty"`
}

TransferProperties transfer details

type TransferStatus

type TransferStatus string

TransferStatus enumerates the values for transfer status.

const (
	// TransferStatusCanceled ...
	TransferStatusCanceled TransferStatus = "Canceled"
	// TransferStatusCompleted ...
	TransferStatusCompleted TransferStatus = "Completed"
	// TransferStatusCompletedWithErrors ...
	TransferStatusCompletedWithErrors TransferStatus = "CompletedWithErrors"
	// TransferStatusDeclined ...
	TransferStatusDeclined TransferStatus = "Declined"
	// TransferStatusFailed ...
	TransferStatusFailed TransferStatus = "Failed"
	// TransferStatusInProgress ...
	TransferStatusInProgress TransferStatus = "InProgress"
	// TransferStatusPending ...
	TransferStatusPending TransferStatus = "Pending"
)

func PossibleTransferStatusValues

func PossibleTransferStatusValues() []TransferStatus

PossibleTransferStatusValues returns an array of possible values for the TransferStatus const type.

type TransfersClient

type TransfersClient struct {
	BaseClient
}

TransfersClient is the billing client provides access to billing resources for Azure subscriptions.

func NewTransfersClient

func NewTransfersClient(subscriptionID string) TransfersClient

NewTransfersClient creates an instance of the TransfersClient client.

func NewTransfersClientWithBaseURI

func NewTransfersClientWithBaseURI(baseURI string, subscriptionID string) TransfersClient

NewTransfersClientWithBaseURI creates an instance of the TransfersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (TransfersClient) Cancel

func (client TransfersClient) Cancel(ctx context.Context, billingAccountName string, invoiceSectionName string, transferName string) (result TransferDetails, err error)

Cancel cancels the transfer for given transfer Id. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. transferName - transfer Name.

func (TransfersClient) CancelPreparer

func (client TransfersClient) CancelPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, transferName string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (TransfersClient) CancelResponder

func (client TransfersClient) CancelResponder(resp *http.Response) (result TransferDetails, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (TransfersClient) CancelSender

func (client TransfersClient) CancelSender(req *http.Request) (*http.Response, error)

CancelSender sends the Cancel request. The method will close the http.Response Body if it receives an error.

func (TransfersClient) Get

func (client TransfersClient) Get(ctx context.Context, billingAccountName string, invoiceSectionName string, transferName string) (result TransferDetails, err error)

Get gets the transfer details for given transfer Id. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. transferName - transfer Name.

func (TransfersClient) GetPreparer

func (client TransfersClient) GetPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, transferName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (TransfersClient) GetResponder

func (client TransfersClient) GetResponder(resp *http.Response) (result TransferDetails, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (TransfersClient) GetSender

func (client TransfersClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (TransfersClient) Initiate

func (client TransfersClient) Initiate(ctx context.Context, billingAccountName string, invoiceSectionName string, body InitiateTransferRequest) (result TransferDetails, err error)

Initiate initiates the request to transfer the legacy subscriptions or RIs. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. body - initiate transfer parameters.

func (TransfersClient) InitiatePreparer

func (client TransfersClient) InitiatePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, body InitiateTransferRequest) (*http.Request, error)

InitiatePreparer prepares the Initiate request.

func (TransfersClient) InitiateResponder

func (client TransfersClient) InitiateResponder(resp *http.Response) (result TransferDetails, err error)

InitiateResponder handles the response to the Initiate request. The method always closes the http.Response Body.

func (TransfersClient) InitiateSender

func (client TransfersClient) InitiateSender(req *http.Request) (*http.Response, error)

InitiateSender sends the Initiate request. The method will close the http.Response Body if it receives an error.

func (TransfersClient) List

func (client TransfersClient) List(ctx context.Context, billingAccountName string, invoiceSectionName string) (result TransferDetailsListResultPage, err error)

List lists all transfer's details initiated from given invoice section. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (TransfersClient) ListComplete

func (client TransfersClient) ListComplete(ctx context.Context, billingAccountName string, invoiceSectionName string) (result TransferDetailsListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (TransfersClient) ListPreparer

func (client TransfersClient) ListPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string) (*http.Request, error)

ListPreparer prepares the List request.

func (TransfersClient) ListResponder

func (client TransfersClient) ListResponder(resp *http.Response) (result TransferDetailsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (TransfersClient) ListSender

func (client TransfersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type UpdateAutoRenew

type UpdateAutoRenew string

UpdateAutoRenew enumerates the values for update auto renew.

const (
	// False ...
	False UpdateAutoRenew = "false"
	// True ...
	True UpdateAutoRenew = "true"
)

func PossibleUpdateAutoRenewValues

func PossibleUpdateAutoRenewValues() []UpdateAutoRenew

PossibleUpdateAutoRenewValues returns an array of possible values for the UpdateAutoRenew const type.

type UpdateAutoRenewOperationSummary

type UpdateAutoRenewOperationSummary struct {
	autorest.Response `json:"-"`
	// UpdateAutoRenewOperationSummaryProperties - Summary of update auto renew operation summary properties
	*UpdateAutoRenewOperationSummaryProperties `json:"properties,omitempty"`
}

UpdateAutoRenewOperationSummary summary of cancel product operation

func (UpdateAutoRenewOperationSummary) MarshalJSON

func (uaros UpdateAutoRenewOperationSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpdateAutoRenewOperationSummary.

func (*UpdateAutoRenewOperationSummary) UnmarshalJSON

func (uaros *UpdateAutoRenewOperationSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UpdateAutoRenewOperationSummary struct.

type UpdateAutoRenewOperationSummaryProperties

type UpdateAutoRenewOperationSummaryProperties struct {
	// EndDate - The end date of this asset
	EndDate *date.Time `json:"endDate,omitempty"`
}

UpdateAutoRenewOperationSummaryProperties update auto renew operation summary properties

type UpdateAutoRenewRequest

type UpdateAutoRenewRequest struct {
	// AutoRenew - Request parameters to update auto renew policy a product. Possible values include: 'True', 'False'
	AutoRenew UpdateAutoRenew `json:"autoRenew,omitempty"`
}

UpdateAutoRenewRequest request parameters to update auto renew for support product.

type ValidateAddressResponse

type ValidateAddressResponse struct {
	autorest.Response `json:"-"`
	// Status - status of the address validation. Possible values include: 'Valid', 'Invalid'
	Status AddressValidationStatus `json:"status,omitempty"`
	// SuggestedAddresses - list of suggested addresses.
	SuggestedAddresses *[]Address `json:"suggestedAddresses,omitempty"`
	// ValidationMessage - Validation error message.
	ValidationMessage *string `json:"validationMessage,omitempty"`
}

ValidateAddressResponse result of the address validation

type ValidateProductTransferEligibilityError

type ValidateProductTransferEligibilityError struct {
	// Code - Error code for the product transfer validation. Possible values include: 'InvalidSource', 'ProductNotActive', 'InsufficientPermissionOnSource', 'InsufficientPermissionOnDestination', 'DestinationBillingProfilePastDue', 'ProductTypeNotSupported', 'CrossBillingAccountNotAllowed', 'NotAvailableForDestinationMarket', 'OneTimePurchaseProductTransferNotAllowed'
	Code ProductTransferValidationErrorCode `json:"code,omitempty"`
	// Message - The error message.
	Message *string `json:"message,omitempty"`
	// Details - Detailed error message explaining the error.
	Details *string `json:"details,omitempty"`
}

ValidateProductTransferEligibilityError error details of the product transfer eligibility validation.

type ValidateProductTransferEligibilityResult

type ValidateProductTransferEligibilityResult struct {
	autorest.Response `json:"-"`
	// IsTransferEligible - READ-ONLY; Specifies whether the transfer is eligible or not.
	IsTransferEligible *bool `json:"isTransferEligible,omitempty"`
	// ErrorDetails - Validation error details.
	ErrorDetails *ValidateProductTransferEligibilityError `json:"errorDetails,omitempty"`
}

ValidateProductTransferEligibilityResult result of the product transfer eligibility validation.

func (ValidateProductTransferEligibilityResult) MarshalJSON

func (vpter ValidateProductTransferEligibilityResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ValidateProductTransferEligibilityResult.

type ValidateSubscriptionTransferEligibilityError

type ValidateSubscriptionTransferEligibilityError struct {
	// Code - Error code for the product transfer validation. Possible values include: 'SubscriptionTransferValidationErrorCodeInvalidSource', 'SubscriptionTransferValidationErrorCodeSubscriptionNotActive', 'SubscriptionTransferValidationErrorCodeInsufficientPermissionOnSource', 'SubscriptionTransferValidationErrorCodeInsufficientPermissionOnDestination', 'SubscriptionTransferValidationErrorCodeDestinationBillingProfilePastDue', 'SubscriptionTransferValidationErrorCodeSubscriptionTypeNotSupported', 'SubscriptionTransferValidationErrorCodeCrossBillingAccountNotAllowed', 'SubscriptionTransferValidationErrorCodeNotAvailableForDestinationMarket'
	Code SubscriptionTransferValidationErrorCode `json:"code,omitempty"`
	// Message - The error message.
	Message *string `json:"message,omitempty"`
	// Details - Detailed error message explaining the error.
	Details *string `json:"details,omitempty"`
}

ValidateSubscriptionTransferEligibilityError error details of the transfer eligibility validation

type ValidateSubscriptionTransferEligibilityResult

type ValidateSubscriptionTransferEligibilityResult struct {
	autorest.Response `json:"-"`
	// IsTransferEligible - READ-ONLY; Specifies whether the transfer is eligible or not.
	IsTransferEligible *bool `json:"isTransferEligible,omitempty"`
	// ErrorDetails - Validation error details.
	ErrorDetails *ValidateSubscriptionTransferEligibilityError `json:"errorDetails,omitempty"`
}

ValidateSubscriptionTransferEligibilityResult result of the transfer eligibility validation.

func (ValidateSubscriptionTransferEligibilityResult) MarshalJSON

func (vster ValidateSubscriptionTransferEligibilityResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ValidateSubscriptionTransferEligibilityResult.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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