billing

package
Version: v34.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 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 deprecated

This method has been deprecated.
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 deprecated

This method has been deprecated.
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.

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.

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.

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 deprecated

This method has been deprecated.
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 deprecated

This method has been deprecated.
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.

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.

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.

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.

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.

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 deprecated

This method has been deprecated.
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 deprecated

This method has been deprecated.
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.

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 deprecated

This method has been deprecated.
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 deprecated

This method has been deprecated.
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.

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.

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.

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

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 deprecated

This method has been deprecated.

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 deprecated

This method has been deprecated.

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.

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 deprecated

This method has been deprecated.
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 deprecated

This method has been deprecated.
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 deprecated

This method has been deprecated.

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 deprecated

This method has been deprecated.
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.

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.

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.

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.

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.

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 deprecated

This method has been deprecated.
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 deprecated

This method has been deprecated.
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.

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.

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.

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.

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 deprecated

This method has been deprecated.

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 deprecated

This method has been deprecated.
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.

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.

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.

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.

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.

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)