azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-11-01-preview/billing Index | Files | Directories

package billing

import "github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-11-01-preview/billing"

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

Package Files

accounts.go addresses.go agreements.go availablebalances.go client.go customers.go departments.go enrollmentaccounts.go invoices.go invoicesections.go lineofcredits.go models.go operations.go paymentmethods.go permissions.go policies.go pricesheet.go products.go profiles.go property.go recipienttransfers.go roleassignments.go roledefinitions.go subscriptions.go transactions.go transfers.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type AcceptTransferProperties Uses

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

AcceptTransferProperties request parameters to accept transfer.

type AcceptTransferRequest Uses

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

AcceptTransferRequest request parameters to accept transfer.

func (AcceptTransferRequest) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AcceptTransferRequest.

func (*AcceptTransferRequest) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AcceptTransferRequest struct.

type Account Uses

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 Uses

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

MarshalJSON is the custom marshaler for Account.

func (*Account) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Account struct.

type AccountListResult Uses

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 Uses

func (alr AccountListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AccountListResultIterator Uses

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

AccountListResultIterator provides access to a complete listing of Account values.

func NewAccountListResultIterator Uses

func NewAccountListResultIterator(page AccountListResultPage) AccountListResultIterator

Creates a new instance of the AccountListResultIterator type.

func (*AccountListResultIterator) Next Uses

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 Uses

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 Uses

func (iter AccountListResultIterator) NotDone() bool

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

func (AccountListResultIterator) Response Uses

func (iter AccountListResultIterator) Response() AccountListResult

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

func (AccountListResultIterator) Value Uses

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 Uses

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

AccountListResultPage contains a page of Account values.

func NewAccountListResultPage Uses

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

Creates a new instance of the AccountListResultPage type.

func (*AccountListResultPage) Next Uses

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 Uses

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 Uses

func (page AccountListResultPage) NotDone() bool

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

func (AccountListResultPage) Response Uses

func (page AccountListResultPage) Response() AccountListResult

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

func (AccountListResultPage) Values Uses

func (page AccountListResultPage) Values() []Account

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

type AccountProperties Uses

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 Uses

type AccountType string

AccountType enumerates the values for account type.

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

func PossibleAccountTypeValues Uses

func PossibleAccountTypeValues() []AccountType

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

type AccountUpdateProperties Uses

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 Uses

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

MarshalJSON is the custom marshaler for AccountUpdateProperties.

func (*AccountUpdateProperties) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AccountUpdateProperties struct.

type AccountsClient Uses

type AccountsClient struct {
    BaseClient
}

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

func NewAccountsClient Uses

func NewAccountsClient(subscriptionID string) AccountsClient

NewAccountsClient creates an instance of the AccountsClient client.

func NewAccountsClientWithBaseURI Uses

func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient

NewAccountsClientWithBaseURI creates an instance of the AccountsClient client.

func (AccountsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AccountsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (AccountsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (AccountsClient) UpdateResponder Uses

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 Uses

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 Uses

type AccountsUpdateFuture struct {
    azure.Future
}

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

func (*AccountsUpdateFuture) Result Uses

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 Uses

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 Uses

type AddressValidationStatus string

AddressValidationStatus enumerates the values for address validation status.

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

func PossibleAddressValidationStatusValues Uses

func PossibleAddressValidationStatusValues() []AddressValidationStatus

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

type AddressesClient Uses

type AddressesClient struct {
    BaseClient
}

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

func NewAddressesClient Uses

func NewAddressesClient(subscriptionID string) AddressesClient

NewAddressesClient creates an instance of the AddressesClient client.

func NewAddressesClientWithBaseURI Uses

func NewAddressesClientWithBaseURI(baseURI string, subscriptionID string) AddressesClient

NewAddressesClientWithBaseURI creates an instance of the AddressesClient client.

func (AddressesClient) Validate Uses

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

Validate validates the address.

func (AddressesClient) ValidatePreparer Uses

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

ValidatePreparer prepares the Validate request.

func (AddressesClient) ValidateResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Agreement.

func (*Agreement) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Agreement struct.

type AgreementListResult Uses

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 Uses

func (alr AgreementListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AgreementListResultIterator Uses

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

AgreementListResultIterator provides access to a complete listing of Agreement values.

func NewAgreementListResultIterator Uses

func NewAgreementListResultIterator(page AgreementListResultPage) AgreementListResultIterator

Creates a new instance of the AgreementListResultIterator type.

func (*AgreementListResultIterator) Next Uses

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 Uses

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 Uses

func (iter AgreementListResultIterator) NotDone() bool

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

func (AgreementListResultIterator) Response Uses

func (iter AgreementListResultIterator) Response() AgreementListResult

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

func (AgreementListResultIterator) Value Uses

func (iter AgreementListResultIterator) Value() Agreement

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

type AgreementListResultPage Uses

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

AgreementListResultPage contains a page of Agreement values.

func NewAgreementListResultPage Uses

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

Creates a new instance of the AgreementListResultPage type.

func (*AgreementListResultPage) Next Uses

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 Uses

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 Uses

func (page AgreementListResultPage) NotDone() bool

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

func (AgreementListResultPage) Response Uses

func (page AgreementListResultPage) Response() AgreementListResult

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

func (AgreementListResultPage) Values Uses

func (page AgreementListResultPage) Values() []Agreement

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

type AgreementProperties Uses

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 Uses

type AgreementsClient struct {
    BaseClient
}

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

func NewAgreementsClient Uses

func NewAgreementsClient(subscriptionID string) AgreementsClient

NewAgreementsClient creates an instance of the AgreementsClient client.

func NewAgreementsClientWithBaseURI Uses

func NewAgreementsClientWithBaseURI(baseURI string, subscriptionID string) AgreementsClient

NewAgreementsClientWithBaseURI creates an instance of the AgreementsClient client.

func (AgreementsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (AgreementsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (AgreementsClient) ListByBillingAccountNameResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for AvailableBalance.

func (*AvailableBalance) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AvailableBalance struct.

type AvailableBalanceProperties Uses

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

AvailableBalanceProperties the properties of available balance.

type AvailableBalancesClient Uses

type AvailableBalancesClient struct {
    BaseClient
}

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

func NewAvailableBalancesClient Uses

func NewAvailableBalancesClient(subscriptionID string) AvailableBalancesClient

NewAvailableBalancesClient creates an instance of the AvailableBalancesClient client.

func NewAvailableBalancesClientWithBaseURI Uses

func NewAvailableBalancesClientWithBaseURI(baseURI string, subscriptionID string) AvailableBalancesClient

NewAvailableBalancesClientWithBaseURI creates an instance of the AvailableBalancesClient client.

func (AvailableBalancesClient) GetByBillingProfile Uses

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 Uses

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

GetByBillingProfilePreparer prepares the GetByBillingProfile request.

func (AvailableBalancesClient) GetByBillingProfileResponder Uses

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 Uses

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 Uses

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

BaseClient is the base client for Billing.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Customer Uses

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 Uses

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

MarshalJSON is the custom marshaler for Customer.

func (*Customer) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Customer struct.

type CustomerListResult Uses

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 Uses

func (clr CustomerListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CustomerListResultIterator Uses

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

CustomerListResultIterator provides access to a complete listing of Customer values.

func NewCustomerListResultIterator Uses

func NewCustomerListResultIterator(page CustomerListResultPage) CustomerListResultIterator

Creates a new instance of the CustomerListResultIterator type.

func (*CustomerListResultIterator) Next Uses

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 Uses

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 Uses

func (iter CustomerListResultIterator) NotDone() bool

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

func (CustomerListResultIterator) Response Uses

func (iter CustomerListResultIterator) Response() CustomerListResult

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

func (CustomerListResultIterator) Value Uses

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 Uses

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

CustomerListResultPage contains a page of Customer values.

func NewCustomerListResultPage Uses

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

Creates a new instance of the CustomerListResultPage type.

func (*CustomerListResultPage) Next Uses

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 Uses

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 Uses

func (page CustomerListResultPage) NotDone() bool

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

func (CustomerListResultPage) Response Uses

func (page CustomerListResultPage) Response() CustomerListResult

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

func (CustomerListResultPage) Values Uses

func (page CustomerListResultPage) Values() []Customer

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

type CustomerProperties Uses

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 Uses

type CustomersClient struct {
    BaseClient
}

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

func NewCustomersClient Uses

func NewCustomersClient(subscriptionID string) CustomersClient

NewCustomersClient creates an instance of the CustomersClient client.

func NewCustomersClientWithBaseURI Uses

func NewCustomersClientWithBaseURI(baseURI string, subscriptionID string) CustomersClient

NewCustomersClientWithBaseURI creates an instance of the CustomersClient client.

func (CustomersClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (CustomersClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (CustomersClient) ListByBillingAccountNameResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Department.

func (*Department) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Department struct.

type DepartmentListResult Uses

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 Uses

func (dlr DepartmentListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DepartmentListResultIterator Uses

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

DepartmentListResultIterator provides access to a complete listing of Department values.

func NewDepartmentListResultIterator Uses

func NewDepartmentListResultIterator(page DepartmentListResultPage) DepartmentListResultIterator

Creates a new instance of the DepartmentListResultIterator type.

func (*DepartmentListResultIterator) Next Uses

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 Uses

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 Uses

func (iter DepartmentListResultIterator) NotDone() bool

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

func (DepartmentListResultIterator) Response Uses

func (iter DepartmentListResultIterator) Response() DepartmentListResult

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

func (DepartmentListResultIterator) Value Uses

func (iter DepartmentListResultIterator) Value() Department

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

type DepartmentListResultPage Uses

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

DepartmentListResultPage contains a page of Department values.

func NewDepartmentListResultPage Uses

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

Creates a new instance of the DepartmentListResultPage type.

func (*DepartmentListResultPage) Next Uses

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 Uses

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 Uses

func (page DepartmentListResultPage) NotDone() bool

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

func (DepartmentListResultPage) Response Uses

func (page DepartmentListResultPage) Response() DepartmentListResult

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

func (DepartmentListResultPage) Values Uses

func (page DepartmentListResultPage) Values() []Department

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

type DepartmentProperties Uses

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 Uses

type DepartmentsClient struct {
    BaseClient
}

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

func NewDepartmentsClient Uses

func NewDepartmentsClient(subscriptionID string) DepartmentsClient

NewDepartmentsClient creates an instance of the DepartmentsClient client.

func NewDepartmentsClientWithBaseURI Uses

func NewDepartmentsClientWithBaseURI(baseURI string, subscriptionID string) DepartmentsClient

NewDepartmentsClientWithBaseURI creates an instance of the DepartmentsClient client.

func (DepartmentsClient) Get Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (DepartmentsClient) ListByBillingAccountNameResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleEligibleProductTypeValues() []EligibleProductType

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

type EnabledAzureSKUs Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for EnrollmentAccount.

func (*EnrollmentAccount) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for EnrollmentAccount struct.

type EnrollmentAccountContext Uses

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 Uses

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 Uses

func (ealr EnrollmentAccountListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EnrollmentAccountListResultIterator Uses

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

EnrollmentAccountListResultIterator provides access to a complete listing of EnrollmentAccount values.

func NewEnrollmentAccountListResultIterator Uses

func NewEnrollmentAccountListResultIterator(page EnrollmentAccountListResultPage) EnrollmentAccountListResultIterator

Creates a new instance of the EnrollmentAccountListResultIterator type.

func (*EnrollmentAccountListResultIterator) Next Uses

func (iter *EnrollmentAccountListResultIterator) 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 (*EnrollmentAccountListResultIterator) NextWithContext Uses

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 Uses

func (iter EnrollmentAccountListResultIterator) NotDone() bool

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

func (EnrollmentAccountListResultIterator) Response Uses

func (iter EnrollmentAccountListResultIterator) Response() EnrollmentAccountListResult

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

func (EnrollmentAccountListResultIterator) Value Uses

func (iter EnrollmentAccountListResultIterator) Value() EnrollmentAccount

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

type EnrollmentAccountListResultPage Uses

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

EnrollmentAccountListResultPage contains a page of EnrollmentAccount values.

func NewEnrollmentAccountListResultPage Uses

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

Creates a new instance of the EnrollmentAccountListResultPage type.

func (*EnrollmentAccountListResultPage) Next Uses

func (page *EnrollmentAccountListResultPage) 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 (*EnrollmentAccountListResultPage) NextWithContext Uses

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 Uses

func (page EnrollmentAccountListResultPage) NotDone() bool

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

func (EnrollmentAccountListResultPage) Response Uses

func (page EnrollmentAccountListResultPage) Response() EnrollmentAccountListResult

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

func (EnrollmentAccountListResultPage) Values Uses

func (page EnrollmentAccountListResultPage) Values() []EnrollmentAccount

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

type EnrollmentAccountProperties Uses

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 Uses

type EnrollmentAccountsClient struct {
    BaseClient
}

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

func NewEnrollmentAccountsClient Uses

func NewEnrollmentAccountsClient(subscriptionID string) EnrollmentAccountsClient

NewEnrollmentAccountsClient creates an instance of the EnrollmentAccountsClient client.

func NewEnrollmentAccountsClientWithBaseURI Uses

func NewEnrollmentAccountsClientWithBaseURI(baseURI string, subscriptionID string) EnrollmentAccountsClient

NewEnrollmentAccountsClientWithBaseURI creates an instance of the EnrollmentAccountsClient client.

func (EnrollmentAccountsClient) GetByEnrollmentAccountID Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (EnrollmentAccountsClient) ListByBillingAccountNameResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type Frequency string

Frequency enumerates the values for frequency.

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

func PossibleFrequencyValues Uses

func PossibleFrequencyValues() []Frequency

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

type InitiateTransferProperties Uses

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 Uses

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

InitiateTransferRequest request parameters to initiate transfer.

func (InitiateTransferRequest) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for InitiateTransferRequest.

func (*InitiateTransferRequest) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for InitiateTransferRequest struct.

type InvoiceListResult Uses

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 Uses

func (ilr InvoiceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InvoiceListResultIterator Uses

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

InvoiceListResultIterator provides access to a complete listing of InvoiceSummary values.

func NewInvoiceListResultIterator Uses

func NewInvoiceListResultIterator(page InvoiceListResultPage) InvoiceListResultIterator

Creates a new instance of the InvoiceListResultIterator type.

func (*InvoiceListResultIterator) Next Uses

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 Uses

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 Uses

func (iter InvoiceListResultIterator) NotDone() bool

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

func (InvoiceListResultIterator) Response Uses

func (iter InvoiceListResultIterator) Response() InvoiceListResult

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

func (InvoiceListResultIterator) Value Uses

func (iter InvoiceListResultIterator) Value() InvoiceSummary

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

type InvoiceListResultPage Uses

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

InvoiceListResultPage contains a page of InvoiceSummary values.

func NewInvoiceListResultPage Uses

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

Creates a new instance of the InvoiceListResultPage type.

func (*InvoiceListResultPage) Next Uses

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 Uses

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 Uses

func (page InvoiceListResultPage) NotDone() bool

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

func (InvoiceListResultPage) Response Uses

func (page InvoiceListResultPage) Response() InvoiceListResult

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

func (InvoiceListResultPage) Values Uses

func (page InvoiceListResultPage) Values() []InvoiceSummary

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

type InvoiceSection Uses

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 Uses

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

MarshalJSON is the custom marshaler for InvoiceSection.

func (*InvoiceSection) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for InvoiceSection struct.

type InvoiceSectionCreationRequest Uses

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 Uses

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 Uses

func (islr InvoiceSectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InvoiceSectionListResultIterator Uses

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

InvoiceSectionListResultIterator provides access to a complete listing of InvoiceSection values.

func NewInvoiceSectionListResultIterator Uses

func NewInvoiceSectionListResultIterator(page InvoiceSectionListResultPage) InvoiceSectionListResultIterator

Creates a new instance of the InvoiceSectionListResultIterator type.

func (*InvoiceSectionListResultIterator) Next Uses

func (iter *InvoiceSectionListResultIterator) 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 (*InvoiceSectionListResultIterator) NextWithContext Uses

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 Uses

func (iter InvoiceSectionListResultIterator) NotDone() bool

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

func (InvoiceSectionListResultIterator) Response Uses

func (iter InvoiceSectionListResultIterator) Response() InvoiceSectionListResult

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

func (InvoiceSectionListResultIterator) Value Uses

func (iter InvoiceSectionListResultIterator) Value() InvoiceSection

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

type InvoiceSectionListResultPage Uses

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

InvoiceSectionListResultPage contains a page of InvoiceSection values.

func NewInvoiceSectionListResultPage Uses

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

Creates a new instance of the InvoiceSectionListResultPage type.

func (*InvoiceSectionListResultPage) Next Uses

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 Uses

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 Uses

func (page InvoiceSectionListResultPage) NotDone() bool

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

func (InvoiceSectionListResultPage) Response Uses

func (page InvoiceSectionListResultPage) Response() InvoiceSectionListResult

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

func (InvoiceSectionListResultPage) Values Uses

func (page InvoiceSectionListResultPage) Values() []InvoiceSection

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

type InvoiceSectionProperties Uses

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 Uses

type InvoiceSectionsClient struct {
    BaseClient
}

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

func NewInvoiceSectionsClient Uses

func NewInvoiceSectionsClient(subscriptionID string) InvoiceSectionsClient

NewInvoiceSectionsClient creates an instance of the InvoiceSectionsClient client.

func NewInvoiceSectionsClientWithBaseURI Uses

func NewInvoiceSectionsClientWithBaseURI(baseURI string, subscriptionID string) InvoiceSectionsClient

NewInvoiceSectionsClientWithBaseURI creates an instance of the InvoiceSectionsClient client.

func (InvoiceSectionsClient) Create Uses

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 Uses

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

CreatePreparer prepares the Create request.

func (InvoiceSectionsClient) CreateResponder Uses

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 Uses

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 Uses

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 Uses

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

ElevateToBillingProfilePreparer prepares the ElevateToBillingProfile request.

func (InvoiceSectionsClient) ElevateToBillingProfileResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (InvoiceSectionsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (InvoiceSectionsClient) ListByBillingAccountNameResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (InvoiceSectionsClient) ListByBillingProfileNameResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByCreateSubscriptionPermissionPreparer prepares the ListByCreateSubscriptionPermission request.

func (InvoiceSectionsClient) ListByCreateSubscriptionPermissionResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (InvoiceSectionsClient) UpdateResponder Uses

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 Uses

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 Uses

type InvoiceSectionsCreateFuture struct {
    azure.Future
}

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

func (*InvoiceSectionsCreateFuture) Result Uses

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 Uses

type InvoiceSectionsUpdateFuture struct {
    azure.Future
}

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

func (*InvoiceSectionsUpdateFuture) Result Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for InvoiceSummary.

func (*InvoiceSummary) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for InvoiceSummary struct.

type InvoiceSummaryProperties Uses

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 Uses

type InvoicesClient struct {
    BaseClient
}

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

func NewInvoicesClient Uses

func NewInvoicesClient(subscriptionID string) InvoicesClient

NewInvoicesClient creates an instance of the InvoicesClient client.

func NewInvoicesClientWithBaseURI Uses

func NewInvoicesClientWithBaseURI(baseURI string, subscriptionID string) InvoicesClient

NewInvoicesClientWithBaseURI creates an instance of the InvoicesClient client.

func (InvoicesClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (InvoicesClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (InvoicesClient) ListByBillingAccountNameResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleKindValues() []Kind

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

type LineOfCredit Uses

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 Uses

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

MarshalJSON is the custom marshaler for LineOfCredit.

func (*LineOfCredit) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for LineOfCredit struct.

type LineOfCreditProperties Uses

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 Uses

type LineOfCreditsClient struct {
    BaseClient
}

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

func NewLineOfCreditsClient Uses

func NewLineOfCreditsClient(subscriptionID string) LineOfCreditsClient

NewLineOfCreditsClient creates an instance of the LineOfCreditsClient client.

func NewLineOfCreditsClientWithBaseURI Uses

func NewLineOfCreditsClientWithBaseURI(baseURI string, subscriptionID string) LineOfCreditsClient

NewLineOfCreditsClientWithBaseURI creates an instance of the LineOfCreditsClient client.

func (LineOfCreditsClient) Get Uses

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

Get get the current line of credit.

func (LineOfCreditsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (LineOfCreditsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (LineOfCreditsClient) UpdateResponder Uses

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 Uses

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 Uses

type LineOfCreditsUpdateFuture struct {
    azure.Future
}

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

func (*LineOfCreditsUpdateFuture) Result Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

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

type OperationListResultPage Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

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 Uses

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 Uses

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationStatus Uses

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 Uses

type OperationsClient struct {
    BaseClient
}

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

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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

List lists all of the available billing REST API operations.

func (OperationsClient) ListComplete Uses

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

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for PaymentMethod.

func (*PaymentMethod) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for PaymentMethod struct.

type PaymentMethodProperties Uses

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 Uses

type PaymentMethodType string

PaymentMethodType enumerates the values for payment method type.

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

func PossiblePaymentMethodTypeValues Uses

func PossiblePaymentMethodTypeValues() []PaymentMethodType

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

type PaymentMethodsClient Uses

type PaymentMethodsClient struct {
    BaseClient
}

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

func NewPaymentMethodsClient Uses

func NewPaymentMethodsClient(subscriptionID string) PaymentMethodsClient

NewPaymentMethodsClient creates an instance of the PaymentMethodsClient client.

func NewPaymentMethodsClientWithBaseURI Uses

func NewPaymentMethodsClientWithBaseURI(baseURI string, subscriptionID string) PaymentMethodsClient

NewPaymentMethodsClientWithBaseURI creates an instance of the PaymentMethodsClient client.

func (PaymentMethodsClient) ListByBillingAccountName Uses

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 Uses

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 Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (PaymentMethodsClient) ListByBillingAccountNameResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (PaymentMethodsClient) ListByBillingProfileNameResponder Uses

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 Uses

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 Uses

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 Uses

func (pmlr PaymentMethodsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PaymentMethodsListResultIterator Uses

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

PaymentMethodsListResultIterator provides access to a complete listing of PaymentMethod values.

func NewPaymentMethodsListResultIterator Uses

func NewPaymentMethodsListResultIterator(page PaymentMethodsListResultPage) PaymentMethodsListResultIterator

Creates a new instance of the PaymentMethodsListResultIterator type.

func (*PaymentMethodsListResultIterator) Next Uses

func (iter *PaymentMethodsListResultIterator) 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 (*PaymentMethodsListResultIterator) NextWithContext Uses

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 Uses

func (iter PaymentMethodsListResultIterator) NotDone() bool

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

func (PaymentMethodsListResultIterator) Response Uses

func (iter PaymentMethodsListResultIterator) Response() PaymentMethodsListResult

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

func (PaymentMethodsListResultIterator) Value Uses

func (iter PaymentMethodsListResultIterator) Value() PaymentMethod

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

type PaymentMethodsListResultPage Uses

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

PaymentMethodsListResultPage contains a page of PaymentMethod values.

func NewPaymentMethodsListResultPage Uses

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

Creates a new instance of the PaymentMethodsListResultPage type.

func (*PaymentMethodsListResultPage) Next Uses

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 Uses

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 Uses

func (page PaymentMethodsListResultPage) NotDone() bool

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

func (PaymentMethodsListResultPage) Response Uses

func (page PaymentMethodsListResultPage) Response() PaymentMethodsListResult

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

func (PaymentMethodsListResultPage) Values Uses

func (page PaymentMethodsListResultPage) Values() []PaymentMethod

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

type PaymentProperties Uses

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 Uses

type PermissionsClient struct {
    BaseClient
}

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

func NewPermissionsClient Uses

func NewPermissionsClient(subscriptionID string) PermissionsClient

NewPermissionsClient creates an instance of the PermissionsClient client.

func NewPermissionsClientWithBaseURI Uses

func NewPermissionsClientWithBaseURI(baseURI string, subscriptionID string) PermissionsClient

NewPermissionsClientWithBaseURI creates an instance of the PermissionsClient client.

func (PermissionsClient) ListByBillingAccount Uses

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 Uses

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (PermissionsClient) ListByBillingAccountResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByBillingProfilePreparer prepares the ListByBillingProfile request.

func (PermissionsClient) ListByBillingProfileResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByCustomersPreparer prepares the ListByCustomers request.

func (PermissionsClient) ListByCustomersResponder Uses

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 Uses

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 Uses

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 Uses

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

ListByInvoiceSectionsPreparer prepares the ListByInvoiceSections request.

func (PermissionsClient) ListByInvoiceSectionsResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

type PoliciesClient struct {
    BaseClient
}

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

func NewPoliciesClient Uses

func NewPoliciesClient(subscriptionID string) PoliciesClient

NewPoliciesClient creates an instance of the PoliciesClient client.

func NewPoliciesClientWithBaseURI Uses

func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient

NewPoliciesClientWithBaseURI creates an instance of the PoliciesClient client.

func (PoliciesClient) GetByBillingProfileName Uses

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 Uses

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

GetByBillingProfileNamePreparer prepares the GetByBillingProfileName request.

func (PoliciesClient) GetByBillingProfileNameResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (PoliciesClient) UpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Policy.

func (*Policy) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Policy struct.

type PolicyProperties Uses

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 Uses

type PriceSheetClient struct {
    BaseClient
}

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

func NewPriceSheetClient Uses

func NewPriceSheetClient(subscriptionID string) PriceSheetClient

NewPriceSheetClient creates an instance of the PriceSheetClient client.

func NewPriceSheetClientWithBaseURI Uses

func NewPriceSheetClientWithBaseURI(baseURI string, subscriptionID string) PriceSheetClient

NewPriceSheetClientWithBaseURI creates an instance of the PriceSheetClient client.

func (PriceSheetClient) Download Uses

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 Uses

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

DownloadPreparer prepares the Download request.

func (PriceSheetClient) DownloadResponder Uses

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 Uses

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 Uses

type PriceSheetDownloadFuture struct {
    azure.Future
}

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

func (*PriceSheetDownloadFuture) Result Uses

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 Uses

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 Uses

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 Uses

func PossibleProductStatusTypeValues() []ProductStatusType

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

type ProductSummary Uses

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 Uses

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

MarshalJSON is the custom marshaler for ProductSummary.

func (*ProductSummary) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ProductSummary struct.

type ProductSummaryProperties Uses

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 Uses

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 Uses

func PossibleProductTransferStatusValues() []ProductTransferStatus

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

type ProductTransferValidationErrorCode Uses

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 Uses

func PossibleProductTransferValidationErrorCodeValues() []ProductTransferValidationErrorCode

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

type ProductType Uses

type ProductType string

ProductType enumerates the values for product type.

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

func PossibleProductTypeValues Uses

func PossibleProductTypeValues() []ProductType

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

type ProductsClient Uses

type ProductsClient struct {
    BaseClient
}

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

func NewProductsClient Uses

func NewProductsClient(subscriptionID string) ProductsClient

NewProductsClient creates an instance of the ProductsClient client.

func NewProductsClientWithBaseURI Uses

func NewProductsClientWithBaseURI(baseURI string, subscriptionID string) ProductsClient

NewProductsClientWithBaseURI creates an instance of the ProductsClient client.

func (ProductsClient) Get Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ProductsClient) GetResponder Uses

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

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

func (ProductsClient) GetSender Uses

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

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

func (ProductsClient) ListByBillingAccountName Uses

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

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

func (ProductsClient) ListByBillingAccountNameComplete Uses

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

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

func (ProductsClient) ListByBillingAccountNamePreparer Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (ProductsClient) ListByBillingAccountNameResponder Uses

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

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

func (ProductsClient) ListByBillingAccountNameSender Uses

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

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

func (ProductsClient) ListByInvoiceSectionName Uses

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

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

func (ProductsClient) ListByInvoiceSectionNameComplete Uses

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

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

func (ProductsClient) ListByInvoiceSectionNamePreparer Uses

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

ListByInvoiceSectionNamePreparer prepares the ListByInvoiceSectionName request.

func (ProductsClient) ListByInvoiceSectionNameResponder Uses

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

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

func (ProductsClient) ListByInvoiceSectionNameSender Uses

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

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

func (ProductsClient) Transfer Uses

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

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

func (ProductsClient) TransferPreparer Uses

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

TransferPreparer prepares the Transfer request.

func (ProductsClient) TransferResponder Uses

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

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

func (ProductsClient) TransferSender Uses

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

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

func (ProductsClient) UpdateAutoRenewByBillingAccountName Uses

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

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

func (ProductsClient) UpdateAutoRenewByBillingAccountNamePreparer Uses

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

UpdateAutoRenewByBillingAccountNamePreparer prepares the UpdateAutoRenewByBillingAccountName request.

func (ProductsClient) UpdateAutoRenewByBillingAccountNameResponder Uses

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

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

func (ProductsClient) UpdateAutoRenewByBillingAccountNameSender Uses

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

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

func (ProductsClient) UpdateAutoRenewByInvoiceSectionName Uses

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

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

func (ProductsClient) UpdateAutoRenewByInvoiceSectionNamePreparer Uses

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

UpdateAutoRenewByInvoiceSectionNamePreparer prepares the UpdateAutoRenewByInvoiceSectionName request.

func (ProductsClient) UpdateAutoRenewByInvoiceSectionNameResponder Uses

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

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

func (ProductsClient) UpdateAutoRenewByInvoiceSectionNameSender Uses

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

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

func (ProductsClient) ValidateTransfer Uses

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

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

func (ProductsClient) ValidateTransferPreparer Uses

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

ValidateTransferPreparer prepares the ValidateTransfer request.

func (ProductsClient) ValidateTransferResponder Uses

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

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

func (ProductsClient) ValidateTransferSender Uses

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

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

type ProductsListResult Uses

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

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

func (ProductsListResult) IsEmpty Uses

func (plr ProductsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProductsListResultIterator Uses

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

ProductsListResultIterator provides access to a complete listing of ProductSummary values.

func NewProductsListResultIterator Uses

func NewProductsListResultIterator(page ProductsListResultPage) ProductsListResultIterator

Creates a new instance of the ProductsListResultIterator type.

func (*ProductsListResultIterator) Next Uses

func (iter *ProductsListResultIterator) Next() error

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

func (*ProductsListResultIterator) NextWithContext Uses

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

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

func (ProductsListResultIterator) NotDone Uses

func (iter ProductsListResultIterator) NotDone() bool

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

func (ProductsListResultIterator) Response Uses

func (iter ProductsListResultIterator) Response() ProductsListResult

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

func (ProductsListResultIterator) Value Uses

func (iter ProductsListResultIterator) Value() ProductSummary

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

type ProductsListResultPage Uses

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

ProductsListResultPage contains a page of ProductSummary values.

func NewProductsListResultPage Uses

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

Creates a new instance of the ProductsListResultPage type.

func (*ProductsListResultPage) Next Uses

func (page *ProductsListResultPage) Next() error

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

func (*ProductsListResultPage) NextWithContext Uses

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

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

func (ProductsListResultPage) NotDone Uses

func (page ProductsListResultPage) NotDone() bool

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

func (ProductsListResultPage) Response Uses

func (page ProductsListResultPage) Response() ProductsListResult

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

func (ProductsListResultPage) Values Uses

func (page ProductsListResultPage) Values() []ProductSummary

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

type Profile Uses

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

Profile a billing profile resource.

func (Profile) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Profile.

func (*Profile) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Profile struct.

type ProfileCreationParameters Uses

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

ProfileCreationParameters the parameters for creating a new billing profile.

type ProfileListResult Uses

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

ProfileListResult result of listing billing profiles.

func (ProfileListResult) IsEmpty Uses

func (plr ProfileListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProfileListResultIterator Uses

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

ProfileListResultIterator provides access to a complete listing of Profile values.

func NewProfileListResultIterator Uses

func NewProfileListResultIterator(page ProfileListResultPage) ProfileListResultIterator

Creates a new instance of the ProfileListResultIterator type.

func (*ProfileListResultIterator) Next Uses

func (iter *ProfileListResultIterator) Next() error

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

func (*ProfileListResultIterator) NextWithContext Uses

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

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

func (ProfileListResultIterator) NotDone Uses

func (iter ProfileListResultIterator) NotDone() bool

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

func (ProfileListResultIterator) Response Uses

func (iter ProfileListResultIterator) Response() ProfileListResult

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

func (ProfileListResultIterator) Value Uses

func (iter ProfileListResultIterator) Value() Profile

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

type ProfileListResultPage Uses

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

ProfileListResultPage contains a page of Profile values.

func NewProfileListResultPage Uses

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

Creates a new instance of the ProfileListResultPage type.

func (*ProfileListResultPage) Next Uses

func (page *ProfileListResultPage) Next() error

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

func (*ProfileListResultPage) NextWithContext Uses

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

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

func (ProfileListResultPage) NotDone Uses

func (page ProfileListResultPage) NotDone() bool

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

func (ProfileListResultPage) Response Uses

func (page ProfileListResultPage) Response() ProfileListResult

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

func (ProfileListResultPage) Values Uses

func (page ProfileListResultPage) Values() []Profile

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

type ProfileProperties Uses

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

ProfileProperties the properties of the billing profile.

type ProfilesClient Uses

type ProfilesClient struct {
    BaseClient
}

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

func NewProfilesClient Uses

func NewProfilesClient(subscriptionID string) ProfilesClient

NewProfilesClient creates an instance of the ProfilesClient client.

func NewProfilesClientWithBaseURI Uses

func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient

NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.

func (ProfilesClient) Create Uses

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

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

func (ProfilesClient) CreatePreparer Uses

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

CreatePreparer prepares the Create request.

func (ProfilesClient) CreateResponder Uses

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

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

func (ProfilesClient) CreateSender Uses

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

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

func (ProfilesClient) Get Uses

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

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

func (ProfilesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ProfilesClient) GetResponder Uses

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

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

func (ProfilesClient) GetSender Uses

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

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

func (ProfilesClient) ListByBillingAccountName Uses

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

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

func (ProfilesClient) ListByBillingAccountNameComplete Uses

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

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

func (ProfilesClient) ListByBillingAccountNamePreparer Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (ProfilesClient) ListByBillingAccountNameResponder Uses

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

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

func (ProfilesClient) ListByBillingAccountNameSender Uses

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

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

func (ProfilesClient) Update Uses

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

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

func (ProfilesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (ProfilesClient) UpdateResponder Uses

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

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

func (ProfilesClient) UpdateSender Uses

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

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

type ProfilesCreateFuture Uses

type ProfilesCreateFuture struct {
    azure.Future
}

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

func (*ProfilesCreateFuture) Result Uses

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

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

type ProfilesUpdateFuture Uses

type ProfilesUpdateFuture struct {
    azure.Future
}

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

func (*ProfilesUpdateFuture) Result Uses

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

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

type Property Uses

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

Property a billing property resource.

func (Property) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Property.

func (*Property) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Property struct.

type PropertyClient Uses

type PropertyClient struct {
    BaseClient
}

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

func NewPropertyClient Uses

func NewPropertyClient(subscriptionID string) PropertyClient

NewPropertyClient creates an instance of the PropertyClient client.

func NewPropertyClientWithBaseURI Uses

func NewPropertyClientWithBaseURI(baseURI string, subscriptionID string) PropertyClient

NewPropertyClientWithBaseURI creates an instance of the PropertyClient client.

func (PropertyClient) Get Uses

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

Get get billing property by subscription Id.

func (PropertyClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (PropertyClient) GetResponder Uses

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

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

func (PropertyClient) GetSender Uses

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

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

type PropertySummary Uses

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

PropertySummary the billing property.

type RecipientTransferDetails Uses

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

RecipientTransferDetails details of the transfer.

func (RecipientTransferDetails) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for RecipientTransferDetails.

func (*RecipientTransferDetails) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for RecipientTransferDetails struct.

type RecipientTransferDetailsListResult Uses

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

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

func (RecipientTransferDetailsListResult) IsEmpty Uses

func (rtdlr RecipientTransferDetailsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RecipientTransferDetailsListResultIterator Uses

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

RecipientTransferDetailsListResultIterator provides access to a complete listing of RecipientTransferDetails values.

func NewRecipientTransferDetailsListResultIterator Uses

func NewRecipientTransferDetailsListResultIterator(page RecipientTransferDetailsListResultPage) RecipientTransferDetailsListResultIterator

Creates a new instance of the RecipientTransferDetailsListResultIterator type.

func (*RecipientTransferDetailsListResultIterator) Next Uses

func (iter *RecipientTransferDetailsListResultIterator) 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 (*RecipientTransferDetailsListResultIterator) NextWithContext Uses

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

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

func (RecipientTransferDetailsListResultIterator) NotDone Uses

func (iter RecipientTransferDetailsListResultIterator) NotDone() bool

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

func (RecipientTransferDetailsListResultIterator) Response Uses

func (iter RecipientTransferDetailsListResultIterator) Response() RecipientTransferDetailsListResult

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

func (RecipientTransferDetailsListResultIterator) Value Uses

func (iter RecipientTransferDetailsListResultIterator) Value() RecipientTransferDetails

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

type RecipientTransferDetailsListResultPage Uses

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

RecipientTransferDetailsListResultPage contains a page of RecipientTransferDetails values.

func NewRecipientTransferDetailsListResultPage Uses

func NewRecipientTransferDetailsListResultPage(getNextPage func(context.Context, RecipientTransferDetailsListResult) (RecipientTransferDetailsListResult, error)) RecipientTransferDetailsListResultPage

Creates a new instance of the RecipientTransferDetailsListResultPage type.

func (*RecipientTransferDetailsListResultPage) Next Uses

func (page *RecipientTransferDetailsListResultPage) 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 (*RecipientTransferDetailsListResultPage) NextWithContext Uses

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

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

func (RecipientTransferDetailsListResultPage) NotDone Uses

func (page RecipientTransferDetailsListResultPage) NotDone() bool

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

func (RecipientTransferDetailsListResultPage) Response Uses

func (page RecipientTransferDetailsListResultPage) Response() RecipientTransferDetailsListResult

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

func (RecipientTransferDetailsListResultPage) Values Uses

func (page RecipientTransferDetailsListResultPage) Values() []RecipientTransferDetails

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

type RecipientTransferProperties Uses

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

RecipientTransferProperties transfer Details.

type RecipientTransfersClient Uses

type RecipientTransfersClient struct {
    BaseClient
}

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

func NewRecipientTransfersClient Uses

func NewRecipientTransfersClient(subscriptionID string) RecipientTransfersClient

NewRecipientTransfersClient creates an instance of the RecipientTransfersClient client.

func NewRecipientTransfersClientWithBaseURI Uses

func NewRecipientTransfersClientWithBaseURI(baseURI string, subscriptionID string) RecipientTransfersClient

NewRecipientTransfersClientWithBaseURI creates an instance of the RecipientTransfersClient client.

func (RecipientTransfersClient) Accept Uses

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

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

func (RecipientTransfersClient) AcceptPreparer Uses

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

AcceptPreparer prepares the Accept request.

func (RecipientTransfersClient) AcceptResponder Uses

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

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

func (RecipientTransfersClient) AcceptSender Uses

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

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

func (RecipientTransfersClient) Decline Uses

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

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

func (RecipientTransfersClient) DeclinePreparer Uses

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

DeclinePreparer prepares the Decline request.

func (RecipientTransfersClient) DeclineResponder Uses

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

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

func (RecipientTransfersClient) DeclineSender Uses

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

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

func (RecipientTransfersClient) Get Uses

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

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

func (RecipientTransfersClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (RecipientTransfersClient) GetResponder Uses

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

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

func (RecipientTransfersClient) GetSender Uses

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

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

func (RecipientTransfersClient) List Uses

func (client RecipientTransfersClient) List(ctx context.Context) (result RecipientTransferDetailsListResultPage, err error)

List sends the list request.

func (RecipientTransfersClient) ListComplete Uses

func (client RecipientTransfersClient) ListComplete(ctx context.Context) (result RecipientTransferDetailsListResultIterator, err error)

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

func (RecipientTransfersClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (RecipientTransfersClient) ListResponder Uses

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

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

func (RecipientTransfersClient) ListSender Uses

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

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

type Reseller Uses

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

Reseller details about a reseller.

type ReservationType Uses

type ReservationType string

ReservationType enumerates the values for reservation type.

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

func PossibleReservationTypeValues Uses

func PossibleReservationTypeValues() []ReservationType

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

type Resource Uses

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

Resource the Resource model definition.

type RoleAssignment Uses

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

RoleAssignment a role assignment

func (RoleAssignment) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for RoleAssignment.

func (*RoleAssignment) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for RoleAssignment struct.

type RoleAssignmentListResult Uses

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

RoleAssignmentListResult result of get list of role assignments

type RoleAssignmentPayload Uses

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

RoleAssignmentPayload the payload use to update role assignment on a scope

type RoleAssignmentProperties Uses

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

RoleAssignmentProperties the properties of the a role assignment.

type RoleAssignmentsClient Uses

type RoleAssignmentsClient struct {
    BaseClient
}

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

func NewRoleAssignmentsClient Uses

func NewRoleAssignmentsClient(subscriptionID string) RoleAssignmentsClient

NewRoleAssignmentsClient creates an instance of the RoleAssignmentsClient client.

func NewRoleAssignmentsClientWithBaseURI Uses

func NewRoleAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) RoleAssignmentsClient

NewRoleAssignmentsClientWithBaseURI creates an instance of the RoleAssignmentsClient client.

func (RoleAssignmentsClient) AddByBillingAccountName Uses

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

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

func (RoleAssignmentsClient) AddByBillingAccountNamePreparer Uses

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

AddByBillingAccountNamePreparer prepares the AddByBillingAccountName request.

func (RoleAssignmentsClient) AddByBillingAccountNameResponder Uses

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

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

func (RoleAssignmentsClient) AddByBillingAccountNameSender Uses

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

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

func (RoleAssignmentsClient) AddByBillingProfileName Uses

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

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

func (RoleAssignmentsClient) AddByBillingProfileNamePreparer Uses

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

AddByBillingProfileNamePreparer prepares the AddByBillingProfileName request.

func (RoleAssignmentsClient) AddByBillingProfileNameResponder Uses

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

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

func (RoleAssignmentsClient) AddByBillingProfileNameSender Uses

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

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

func (RoleAssignmentsClient) AddByInvoiceSectionName Uses

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

AddByInvoiceSectionName the operation to add a role assignment to a invoice Section. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. parameters - parameters supplied to add a role assignment.

func (RoleAssignmentsClient) AddByInvoiceSectionNamePreparer Uses

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

AddByInvoiceSectionNamePreparer prepares the AddByInvoiceSectionName request.

func (RoleAssignmentsClient) AddByInvoiceSectionNameResponder Uses

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

AddByInvoiceSectionNameResponder handles the response to the AddByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) AddByInvoiceSectionNameSender Uses

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

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

func (RoleAssignmentsClient) DeleteByBillingAccountName Uses

func (client RoleAssignmentsClient) DeleteByBillingAccountName(ctx context.Context, billingAccountName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

DeleteByBillingAccountName delete the role assignment on this billing account Parameters: billingAccountName - billing Account Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) DeleteByBillingAccountNamePreparer Uses

func (client RoleAssignmentsClient) DeleteByBillingAccountNamePreparer(ctx context.Context, billingAccountName string, billingRoleAssignmentName string) (*http.Request, error)

DeleteByBillingAccountNamePreparer prepares the DeleteByBillingAccountName request.

func (RoleAssignmentsClient) DeleteByBillingAccountNameResponder Uses

func (client RoleAssignmentsClient) DeleteByBillingAccountNameResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteByBillingAccountNameResponder handles the response to the DeleteByBillingAccountName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) DeleteByBillingAccountNameSender Uses

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

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

func (RoleAssignmentsClient) DeleteByBillingProfileName Uses

func (client RoleAssignmentsClient) DeleteByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

DeleteByBillingProfileName delete the role assignment on this Billing Profile Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) DeleteByBillingProfileNamePreparer Uses

func (client RoleAssignmentsClient) DeleteByBillingProfileNamePreparer(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleAssignmentName string) (*http.Request, error)

DeleteByBillingProfileNamePreparer prepares the DeleteByBillingProfileName request.

func (RoleAssignmentsClient) DeleteByBillingProfileNameResponder Uses

func (client RoleAssignmentsClient) DeleteByBillingProfileNameResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteByBillingProfileNameResponder handles the response to the DeleteByBillingProfileName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) DeleteByBillingProfileNameSender Uses

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

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

func (RoleAssignmentsClient) DeleteByInvoiceSectionName Uses

func (client RoleAssignmentsClient) DeleteByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

DeleteByInvoiceSectionName delete the role assignment on the invoice Section Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) DeleteByInvoiceSectionNamePreparer Uses

func (client RoleAssignmentsClient) DeleteByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleAssignmentName string) (*http.Request, error)

DeleteByInvoiceSectionNamePreparer prepares the DeleteByInvoiceSectionName request.

func (RoleAssignmentsClient) DeleteByInvoiceSectionNameResponder Uses

func (client RoleAssignmentsClient) DeleteByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteByInvoiceSectionNameResponder handles the response to the DeleteByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) DeleteByInvoiceSectionNameSender Uses

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

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

func (RoleAssignmentsClient) GetByBillingAccount Uses

func (client RoleAssignmentsClient) GetByBillingAccount(ctx context.Context, billingAccountName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

GetByBillingAccount get the role assignment for the caller Parameters: billingAccountName - billing Account Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) GetByBillingAccountPreparer Uses

func (client RoleAssignmentsClient) GetByBillingAccountPreparer(ctx context.Context, billingAccountName string, billingRoleAssignmentName string) (*http.Request, error)

GetByBillingAccountPreparer prepares the GetByBillingAccount request.

func (RoleAssignmentsClient) GetByBillingAccountResponder Uses

func (client RoleAssignmentsClient) GetByBillingAccountResponder(resp *http.Response) (result RoleAssignment, err error)

GetByBillingAccountResponder handles the response to the GetByBillingAccount request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) GetByBillingAccountSender Uses

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

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

func (RoleAssignmentsClient) GetByBillingProfileName Uses

func (client RoleAssignmentsClient) GetByBillingProfileName(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

GetByBillingProfileName get the role assignment for the caller on the Billing Profile Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) GetByBillingProfileNamePreparer Uses

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

GetByBillingProfileNamePreparer prepares the GetByBillingProfileName request.

func (RoleAssignmentsClient) GetByBillingProfileNameResponder Uses

func (client RoleAssignmentsClient) GetByBillingProfileNameResponder(resp *http.Response) (result RoleAssignment, err error)

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

func (RoleAssignmentsClient) GetByBillingProfileNameSender Uses

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

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

func (RoleAssignmentsClient) GetByInvoiceSectionName Uses

func (client RoleAssignmentsClient) GetByInvoiceSectionName(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleAssignmentName string) (result RoleAssignment, err error)

GetByInvoiceSectionName get the role assignment for the caller on the invoice Section Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingRoleAssignmentName - role assignment id.

func (RoleAssignmentsClient) GetByInvoiceSectionNamePreparer Uses

func (client RoleAssignmentsClient) GetByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleAssignmentName string) (*http.Request, error)

GetByInvoiceSectionNamePreparer prepares the GetByInvoiceSectionName request.

func (RoleAssignmentsClient) GetByInvoiceSectionNameResponder Uses

func (client RoleAssignmentsClient) GetByInvoiceSectionNameResponder(resp *http.Response) (result RoleAssignment, err error)

GetByInvoiceSectionNameResponder handles the response to the GetByInvoiceSectionName request. The method always closes the http.Response Body.

func (RoleAssignmentsClient) GetByInvoiceSectionNameSender Uses

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

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

func (RoleAssignmentsClient) ListByBillingAccountName Uses

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

ListByBillingAccountName get the role assignments on the Billing Account Parameters: billingAccountName - billing Account Id.

func (RoleAssignmentsClient) ListByBillingAccountNamePreparer Uses

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (RoleAssignmentsClient) ListByBillingAccountNameResponder Uses

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

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

func (RoleAssignmentsClient) ListByBillingAccountNameSender Uses

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

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

func (RoleAssignmentsClient) ListByBillingProfileName Uses

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

ListByBillingProfileName get the role assignments on the Billing Profile Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (RoleAssignmentsClient) ListByBillingProfileNamePreparer Uses

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

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (RoleAssignmentsClient) ListByBillingProfileNameResponder Uses

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

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

func (RoleAssignmentsClient) ListByBillingProfileNameSender Uses

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

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

func (RoleAssignmentsClient) ListByInvoiceSectionName Uses

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

ListByInvoiceSectionName get the role assignments on the invoice Section Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (RoleAssignmentsClient) ListByInvoiceSectionNamePreparer Uses

func (client RoleAssignmentsClient) ListByInvoiceSectionNamePreparer(ctx context.Context, billingAccountName