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

package billing

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

Package billing implements the Azure ARM Billing service API version .

Billing client provides access to billing resources for Azure subscriptions.

Index

Package Files

accounts.go address.go agreements.go availablebalances.go client.go customers.go enrollmentaccounts.go enums.go instructions.go invoices.go invoicesections.go models.go operations.go periods.go permissions.go policies.go products.go profiles.go property.go roleassignments.go roledefinitions.go subscriptions.go transactions.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 AcceptanceMode Uses

type AcceptanceMode string

AcceptanceMode enumerates the values for acceptance mode.

const (
    // ClickToAccept ...
    ClickToAccept AcceptanceMode = "ClickToAccept"
    // ESignEmbedded ...
    ESignEmbedded AcceptanceMode = "ESignEmbedded"
    // ESignOffline ...
    ESignOffline AcceptanceMode = "ESignOffline"
)

func PossibleAcceptanceModeValues Uses

func PossibleAcceptanceModeValues() []AcceptanceMode

PossibleAcceptanceModeValues returns an array of possible values for the AcceptanceMode const type.

type Account Uses

type Account struct {
    autorest.Response `json:"-"`
    // AccountProperties - The properties of the 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.

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 the list of 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(cur AccountListResult, 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 - The billing account name.
    DisplayName *string `json:"displayName,omitempty"`
    // SoldTo - The address of the individual or organization that is responsible for the billing account.
    SoldTo *AddressDetails `json:"soldTo,omitempty"`
    // AgreementType - READ-ONLY; The type of agreement. Possible values include: 'MicrosoftCustomerAgreement', 'EnterpriseAgreement', 'MicrosoftOnlineServicesProgram', 'MicrosoftPartnerAgreement'
    AgreementType AgreementType `json:"agreementType,omitempty"`
    // AccountType - READ-ONLY; The type of customer. Possible values include: 'Enterprise', 'Individual', 'Partner'
    AccountType AccountType `json:"accountType,omitempty"`
    // AccountStatus - READ-ONLY; The current status of the billing account. Possible values include: 'Active', 'Deleted', 'Disabled', 'Expired', 'Transferred', 'Extended', 'Terminated'
    AccountStatus AccountStatus `json:"accountStatus,omitempty"`
    // BillingProfiles - The billing profiles associated with the billing account. By default this is not populated, unless it's specified in $expand.
    BillingProfiles *ProfilesOnExpand `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; Indicates whether user has read access to the billing account.
    HasReadAccess *bool `json:"hasReadAccess,omitempty"`
}

AccountProperties the properties of the billing account.

func (AccountProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AccountProperties.

type AccountStatus Uses

type AccountStatus string

AccountStatus enumerates the values for account status.

const (
    // Active ...
    Active AccountStatus = "Active"
    // Deleted ...
    Deleted AccountStatus = "Deleted"
    // Disabled ...
    Disabled AccountStatus = "Disabled"
    // Expired ...
    Expired AccountStatus = "Expired"
    // Extended ...
    Extended AccountStatus = "Extended"
    // Terminated ...
    Terminated AccountStatus = "Terminated"
    // Transferred ...
    Transferred AccountStatus = "Transferred"
)

func PossibleAccountStatusValues Uses

func PossibleAccountStatusValues() []AccountStatus

PossibleAccountStatusValues returns an array of possible values for the AccountStatus const type.

type AccountType Uses

type AccountType string

AccountType enumerates the values for account type.

const (
    // Enterprise ...
    Enterprise AccountType = "Enterprise"
    // Individual ...
    Individual AccountType = "Individual"
    // Partner ...
    Partner AccountType = "Partner"
)

func PossibleAccountTypeValues Uses

func PossibleAccountTypeValues() []AccountType

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

type AccountUpdateRequest Uses

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

AccountUpdateRequest the request properties of the billing account that can be updated.

func (AccountUpdateRequest) MarshalJSON Uses

func (aur AccountUpdateRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AccountUpdateRequest.

func (*AccountUpdateRequest) UnmarshalJSON Uses

func (aur *AccountUpdateRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AccountUpdateRequest 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AccountsClient) Get Uses

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

Get gets a billing account by its ID. Parameters: billingAccountName - the ID that uniquely identifies a billing account. expand - may be used to expand the soldTo, invoice sections and billing profiles.

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 the billing accounts that a user has access to. Parameters: expand - may be used to expand the soldTo, invoice sections and billing profiles.

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) ListInvoiceSectionsByCreateSubscriptionPermission Uses

func (client AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermission(ctx context.Context, billingAccountName string) (result InvoiceSectionListWithCreateSubPermissionResultPage, err error)

ListInvoiceSectionsByCreateSubscriptionPermission lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account.

func (AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermissionComplete Uses

func (client AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermissionComplete(ctx context.Context, billingAccountName string) (result InvoiceSectionListWithCreateSubPermissionResultIterator, err error)

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

func (AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermissionPreparer Uses

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

ListInvoiceSectionsByCreateSubscriptionPermissionPreparer prepares the ListInvoiceSectionsByCreateSubscriptionPermission request.

func (AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermissionResponder Uses

func (client AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermissionResponder(resp *http.Response) (result InvoiceSectionListWithCreateSubPermissionResult, err error)

ListInvoiceSectionsByCreateSubscriptionPermissionResponder handles the response to the ListInvoiceSectionsByCreateSubscriptionPermission request. The method always closes the http.Response Body.

func (AccountsClient) ListInvoiceSectionsByCreateSubscriptionPermissionSender Uses

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

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

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 AccountUpdateRequest) (result AccountsUpdateFuture, err error)

Update updates the properties of a billing account. Currently, displayName and address can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. parameters - request parameters that are provided to the update billing account operation.

func (AccountsClient) UpdatePreparer Uses

func (client AccountsClient) UpdatePreparer(ctx context.Context, billingAccountName string, parameters AccountUpdateRequest) (*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.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(AccountsClient) (Account, error)
}

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

type AddressClient Uses

type AddressClient struct {
    BaseClient
}

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

func NewAddressClient Uses

func NewAddressClient(subscriptionID string) AddressClient

NewAddressClient creates an instance of the AddressClient client.

func NewAddressClientWithBaseURI Uses

func NewAddressClientWithBaseURI(baseURI string, subscriptionID string) AddressClient

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

func (AddressClient) Validate Uses

func (client AddressClient) Validate(ctx context.Context, address AddressDetails) (result ValidateAddressResponse, err error)

Validate validates an address. Use the operation to validate an address before using it as soldTo or a billTo address.

func (AddressClient) ValidatePreparer Uses

func (client AddressClient) ValidatePreparer(ctx context.Context, address AddressDetails) (*http.Request, error)

ValidatePreparer prepares the Validate request.

func (AddressClient) ValidateResponder Uses

func (client AddressClient) 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 (AddressClient) ValidateSender Uses

func (client AddressClient) 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 AddressDetails Uses

type AddressDetails 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 line 1.
    AddressLine1 *string `json:"addressLine1,omitempty"`
    // AddressLine2 - Address line 2.
    AddressLine2 *string `json:"addressLine2,omitempty"`
    // AddressLine3 - Address line 3.
    AddressLine3 *string `json:"addressLine3,omitempty"`
    // City - Address city.
    City *string `json:"city,omitempty"`
    // District - Address district.
    District *string `json:"district,omitempty"`
    // Region - Address region.
    Region *string `json:"region,omitempty"`
    // Country - Country code uses ISO2, 2-digit format.
    Country *string `json:"country,omitempty"`
    // PostalCode - Postal code.
    PostalCode *string `json:"postalCode,omitempty"`
    // Email - Email address.
    Email *string `json:"email,omitempty"`
    // PhoneNumber - Phone number.
    PhoneNumber *string `json:"phoneNumber,omitempty"`
}

AddressDetails 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 Agreement Uses

type Agreement struct {
    autorest.Response `json:"-"`
    // AgreementProperties - The properties of 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.

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(cur AgreementListResult, 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 URL to download the agreement.
    AgreementLink *string `json:"agreementLink,omitempty"`
    // Category - READ-ONLY; The category of the agreement signed by a customer. Possible values include: 'CategoryMicrosoftCustomerAgreement', 'CategoryAffiliatePurchaseTerms', 'CategoryOther'
    Category Category `json:"category,omitempty"`
    // AcceptanceMode - READ-ONLY; The mode of acceptance for an agreement. Possible values include: 'ClickToAccept', 'ESignEmbedded', 'ESignOffline'
    AcceptanceMode AcceptanceMode `json:"acceptanceMode,omitempty"`
    // EffectiveDate - READ-ONLY; The date from which the agreement is effective.
    EffectiveDate *date.Time `json:"effectiveDate,omitempty"`
    // ExpirationDate - READ-ONLY; The date when the agreement expires.
    ExpirationDate *date.Time `json:"expirationDate,omitempty"`
    // Participants - The list of participants that participates in acceptance of an agreement.
    Participants *[]Participants `json:"participants,omitempty"`
    // Status - READ-ONLY; The current status of the agreement.
    Status *string `json:"status,omitempty"`
}

AgreementProperties the properties of an agreement.

func (AgreementProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AgreementProperties.

type AgreementType Uses

type AgreementType string

AgreementType enumerates the values for agreement type.

const (
    // EnterpriseAgreement ...
    EnterpriseAgreement AgreementType = "EnterpriseAgreement"
    // MicrosoftCustomerAgreement ...
    MicrosoftCustomerAgreement AgreementType = "MicrosoftCustomerAgreement"
    // MicrosoftOnlineServicesProgram ...
    MicrosoftOnlineServicesProgram AgreementType = "MicrosoftOnlineServicesProgram"
    // MicrosoftPartnerAgreement ...
    MicrosoftPartnerAgreement AgreementType = "MicrosoftPartnerAgreement"
)

func PossibleAgreementTypeValues Uses

func PossibleAgreementTypeValues() []AgreementType

PossibleAgreementTypeValues returns an array of possible values for the AgreementType const type.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AgreementsClient) Get Uses

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

Get gets an agreement by ID. Parameters: billingAccountName - the ID that uniquely identifies a billing account. agreementName - the ID that uniquely identifies an agreement. 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) ListByBillingAccount Uses

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

ListByBillingAccount lists the agreements for a billing account. Parameters: billingAccountName - the ID that uniquely identifies a billing account. expand - may be used to expand the participants.

func (AgreementsClient) ListByBillingAccountComplete Uses

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

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

func (AgreementsClient) ListByBillingAccountPreparer Uses

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (AgreementsClient) ListByBillingAccountResponder Uses

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

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

func (AgreementsClient) ListByBillingAccountSender Uses

func (client AgreementsClient) 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.

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.

func (Amount) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Amount.

type AutoRenew Uses

type AutoRenew string

AutoRenew enumerates the values for auto renew.

const (
    // Off ...
    Off AutoRenew = "Off"
    // On ...
    On  AutoRenew = "On"
)

func PossibleAutoRenewValues Uses

func PossibleAutoRenewValues() []AutoRenew

PossibleAutoRenewValues returns an array of possible values for the AutoRenew const type.

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 the latest Azure credit balance. This is the balance available for pay now.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (AvailableBalancesClient) Get Uses

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

Get the available credit balance for a billing profile. This is the balance that can be used for pay now to settle due or past due invoices. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile.

func (AvailableBalancesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (AvailableBalancesClient) GetResponder Uses

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

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

func (AvailableBalancesClient) GetSender Uses

func (client AvailableBalancesClient) 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 AzurePlan Uses

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

AzurePlan details of the Azure plan.

func (AzurePlan) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for AzurePlan.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type Category Uses

type Category string

Category enumerates the values for category.

const (
    // CategoryAffiliatePurchaseTerms ...
    CategoryAffiliatePurchaseTerms Category = "AffiliatePurchaseTerms"
    // CategoryMicrosoftCustomerAgreement ...
    CategoryMicrosoftCustomerAgreement Category = "MicrosoftCustomerAgreement"
    // CategoryOther ...
    CategoryOther Category = "Other"
)

func PossibleCategoryValues Uses

func PossibleCategoryValues() []Category

PossibleCategoryValues returns an array of possible values for the Category const type.

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 the list of 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(cur CustomerListResult, 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 CustomerPolicy Uses

type CustomerPolicy struct {
    autorest.Response         `json:"-"`
    *CustomerPolicyProperties `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"`
}

CustomerPolicy the customer's Policy.

func (CustomerPolicy) MarshalJSON Uses

func (cp CustomerPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CustomerPolicy.

func (*CustomerPolicy) UnmarshalJSON Uses

func (cp *CustomerPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CustomerPolicy struct.

type CustomerPolicyProperties Uses

type CustomerPolicyProperties struct {
    // ViewCharges - The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices. Possible values include: 'ViewChargesAllowed', 'ViewChargesNotAllowed'
    ViewCharges ViewCharges `json:"viewCharges,omitempty"`
}

CustomerPolicyProperties the properties of a customer's policy.

type CustomerProperties Uses

type CustomerProperties struct {
    // BillingProfileID - READ-ONLY; The ID of the billing profile for the invoice section.
    BillingProfileID *string `json:"billingProfileId,omitempty"`
    // BillingProfileDisplayName - READ-ONLY; The name of the billing profile for the invoice section.
    BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"`
    // DisplayName - The name of the customer.
    DisplayName *string `json:"displayName,omitempty"`
    // EnabledAzurePlans - Azure plans enabled for the customer.
    EnabledAzurePlans *[]AzurePlan `json:"enabledAzurePlans,omitempty"`
    // Resellers - The list of resellers for which an Azure plan is enabled for the customer.
    Resellers *[]Reseller `json:"resellers,omitempty"`
}

CustomerProperties the properties of a customer.

func (CustomerProperties) MarshalJSON Uses

func (cp CustomerProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CustomerProperties.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CustomersClient) Get Uses

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

Get gets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. customerName - the ID that uniquely identifies a customer. expand - may be used to expand enabledAzurePlans and 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) ListByBillingAccount Uses

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

ListByBillingAccount lists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. search - used for searching customers by their name. Any customer with name containing the search text will be included in the response filter - may be used to filter the list of customers.

func (CustomersClient) ListByBillingAccountComplete Uses

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

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

func (CustomersClient) ListByBillingAccountPreparer Uses

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (CustomersClient) ListByBillingAccountResponder Uses

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

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

func (CustomersClient) ListByBillingAccountSender Uses

func (client CustomersClient) 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 (CustomersClient) ListByBillingProfile Uses

func (client CustomersClient) ListByBillingProfile(ctx context.Context, billingAccountName string, billingProfileName string, search string, filter string) (result CustomerListResultPage, err error)

ListByBillingProfile lists the customers that are billed to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. search - used for searching customers by their name. Any customer with name containing the search text will be included in the response filter - may be used to filter the list of customers.

func (CustomersClient) ListByBillingProfileComplete Uses

func (client CustomersClient) ListByBillingProfileComplete(ctx context.Context, billingAccountName string, billingProfileName string, search string, filter string) (result CustomerListResultIterator, err error)

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

func (CustomersClient) ListByBillingProfilePreparer Uses

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

ListByBillingProfilePreparer prepares the ListByBillingProfile request.

func (CustomersClient) ListByBillingProfileResponder Uses

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

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

func (CustomersClient) ListByBillingProfileSender Uses

func (client CustomersClient) 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 Department Uses

type Department struct {
    // 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.

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 DepartmentProperties Uses

type DepartmentProperties struct {
    // DepartmentName - The name of the department.
    DepartmentName *string `json:"departmentName,omitempty"`
    // CostCenter - The cost center associated with the department.
    CostCenter *string `json:"costCenter,omitempty"`
    // Status - The status of the 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 a department.

type Document Uses

type Document struct {
    // Kind - READ-ONLY; The type of the document. Possible values include: 'DocumentTypeInvoice', 'DocumentTypeVoidNote', 'DocumentTypeTaxReceipt', 'DocumentTypeCreditNote'
    Kind DocumentType `json:"kind,omitempty"`
    // URL - READ-ONLY; Document URL.
    URL *string `json:"url,omitempty"`
    // Source - READ-ONLY; The source of the document. ENF for Brazil and DRS for rest of the world. Possible values include: 'DRS', 'ENF'
    Source DocumentSource `json:"source,omitempty"`
}

Document the properties of a document.

type DocumentSource Uses

type DocumentSource string

DocumentSource enumerates the values for document source.

const (
    // DRS ...
    DRS DocumentSource = "DRS"
    // ENF ...
    ENF DocumentSource = "ENF"
)

func PossibleDocumentSourceValues Uses

func PossibleDocumentSourceValues() []DocumentSource

PossibleDocumentSourceValues returns an array of possible values for the DocumentSource const type.

type DocumentType Uses

type DocumentType string

DocumentType enumerates the values for document type.

const (
    // DocumentTypeCreditNote ...
    DocumentTypeCreditNote DocumentType = "CreditNote"
    // DocumentTypeInvoice ...
    DocumentTypeInvoice DocumentType = "Invoice"
    // DocumentTypeTaxReceipt ...
    DocumentTypeTaxReceipt DocumentType = "TaxReceipt"
    // DocumentTypeVoidNote ...
    DocumentTypeVoidNote DocumentType = "VoidNote"
)

func PossibleDocumentTypeValues Uses

func PossibleDocumentTypeValues() []DocumentType

PossibleDocumentTypeValues returns an array of possible values for the DocumentType const type.

type DownloadURL Uses

type DownloadURL struct {
    autorest.Response `json:"-"`
    // ExpiryTime - READ-ONLY; The time in UTC when the 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 Enrollment Uses

type Enrollment struct {
    // StartDate - The start date of the enrollment.
    StartDate *date.Time `json:"startDate,omitempty"`
    // EndDate - The end date of the enrollment.
    EndDate *date.Time `json:"endDate,omitempty"`
    // Currency - READ-ONLY; The billing currency for the enrollment.
    Currency *string `json:"currency,omitempty"`
    // Channel - READ-ONLY; The channel type of the enrollment.
    Channel *string `json:"channel,omitempty"`
    // Policies - READ-ONLY; The policies for Enterprise Agreement enrollments.
    Policies *EnrollmentPolicies `json:"policies,omitempty"`
    // Language - READ-ONLY; The language for the enrollment.
    Language *string `json:"language,omitempty"`
    // CountryCode - READ-ONLY; The country code of the enrollment.
    CountryCode *string `json:"countryCode,omitempty"`
    // Status - READ-ONLY; The current status of the enrollment.
    Status *string `json:"status,omitempty"`
    // BillingCycle - READ-ONLY; The billing cycle for the enrollment.
    BillingCycle *string `json:"billingCycle,omitempty"`
}

Enrollment the properties of an enrollment.

func (Enrollment) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Enrollment.

type EnrollmentAccount Uses

type EnrollmentAccount struct {
    // EnrollmentAccountProperties - The properties of an enrollment 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 enrollment account.

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 associated with the enrollment account.
    CostCenter *string `json:"costCenter,omitempty"`
    // StartDate - The start date of the enrollment account.
    StartDate *date.Time `json:"startDate,omitempty"`
    // EndDate - The end date of the enrollment account.
    EndDate *date.Time `json:"endDate,omitempty"`
    // EnrollmentAccountName - The ID of the enrollment account.
    EnrollmentAccountName *string `json:"enrollmentAccountName,omitempty"`
}

EnrollmentAccountContext the enrollment account context

type EnrollmentAccountListResult Uses

type EnrollmentAccountListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The list of enrollment accounts.
    Value *[]EnrollmentAccountSummary `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 EnrollmentAccountSummary 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() EnrollmentAccountSummary

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 EnrollmentAccountSummary values.

func NewEnrollmentAccountListResultPage Uses

func NewEnrollmentAccountListResultPage(cur EnrollmentAccountListResult, 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() []EnrollmentAccountSummary

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 name of the enrollment account.
    AccountName *string `json:"accountName,omitempty"`
    // CostCenter - The cost center associated with the enrollment account.
    CostCenter *string `json:"costCenter,omitempty"`
    // AccountOwner - The owner of the enrollment account.
    AccountOwner *string `json:"accountOwner,omitempty"`
    // Status - The status of the enrollment account.
    Status *string `json:"status,omitempty"`
    // StartDate - The start date of the enrollment account.
    StartDate *date.Time `json:"startDate,omitempty"`
    // EndDate - The end date of the enrollment account.
    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 an enrollment account.

type EnrollmentAccountSummary Uses

type EnrollmentAccountSummary struct {
    autorest.Response `json:"-"`
    // EnrollmentAccountSummaryProperties - An enrollment account.
    *EnrollmentAccountSummaryProperties `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"`
}

EnrollmentAccountSummary an enrollment account resource.

func (EnrollmentAccountSummary) MarshalJSON Uses

func (eas EnrollmentAccountSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EnrollmentAccountSummary.

func (*EnrollmentAccountSummary) UnmarshalJSON Uses

func (eas *EnrollmentAccountSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for EnrollmentAccountSummary struct.

type EnrollmentAccountSummaryProperties Uses

type EnrollmentAccountSummaryProperties struct {
    // PrincipalName - READ-ONLY; The account owner's principal name.
    PrincipalName *string `json:"principalName,omitempty"`
}

EnrollmentAccountSummaryProperties the properties of the enrollment 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (EnrollmentAccountsClient) Get Uses

func (client EnrollmentAccountsClient) Get(ctx context.Context, name string) (result EnrollmentAccountSummary, err error)

Get gets a enrollment account by name. Parameters: name - enrollment Account name.

func (EnrollmentAccountsClient) GetPreparer Uses

func (client EnrollmentAccountsClient) GetPreparer(ctx context.Context, name string) (*http.Request, error)

GetPreparer prepares the Get request.

func (EnrollmentAccountsClient) GetResponder Uses

func (client EnrollmentAccountsClient) GetResponder(resp *http.Response) (result EnrollmentAccountSummary, err error)

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

func (EnrollmentAccountsClient) GetSender Uses

func (client EnrollmentAccountsClient) 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 (EnrollmentAccountsClient) List Uses

func (client EnrollmentAccountsClient) List(ctx context.Context) (result EnrollmentAccountListResultPage, err error)

List lists the enrollment accounts the caller has access to.

func (EnrollmentAccountsClient) ListComplete Uses

func (client EnrollmentAccountsClient) ListComplete(ctx context.Context) (result EnrollmentAccountListResultIterator, err error)

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

func (EnrollmentAccountsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (EnrollmentAccountsClient) ListResponder Uses

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

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

func (EnrollmentAccountsClient) ListSender Uses

func (client EnrollmentAccountsClient) 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 EnrollmentPolicies Uses

type EnrollmentPolicies struct {
    // AccountOwnerViewCharges - READ-ONLY; The policy that controls whether Account Owners can view charges.
    AccountOwnerViewCharges *bool `json:"accountOwnerViewCharges,omitempty"`
    // DepartmentAdminViewCharges - READ-ONLY; The policy that controls whether Department Administrators can view charges.
    DepartmentAdminViewCharges *bool `json:"departmentAdminViewCharges,omitempty"`
    // MarketplacesEnabled - READ-ONLY; The policy that controls whether Azure marketplace purchases are allowed in the enrollment.
    MarketplacesEnabled *bool `json:"marketplacesEnabled,omitempty"`
    // ReservedInstancesEnabled - READ-ONLY; The policy that controls whether Azure reservation purchases are allowed in the enrollment.
    ReservedInstancesEnabled *bool `json:"reservedInstancesEnabled,omitempty"`
}

EnrollmentPolicies the policies for Enterprise Agreement enrollments.

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"`
    // Details - READ-ONLY; The sub details of the error.
    Details *[]ErrorSubDetailsItem `json:"details,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 ErrorSubDetailsItem Uses

type ErrorSubDetailsItem 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"`
}

ErrorSubDetailsItem ...

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 IndirectRelationshipInfo Uses

type IndirectRelationshipInfo struct {
    // BillingAccountName - The billing account name of the partner or the customer for an indirect motion.
    BillingAccountName *string `json:"billingAccountName,omitempty"`
    // BillingProfileName - The billing profile name of the partner or the customer for an indirect motion.
    BillingProfileName *string `json:"billingProfileName,omitempty"`
    // DisplayName - The display name of the partner or customer for an indirect motion.
    DisplayName *string `json:"displayName,omitempty"`
}

IndirectRelationshipInfo the billing profile details of the partner of the customer for an indirect motion.

type Instruction Uses

type Instruction struct {
    autorest.Response `json:"-"`
    // InstructionProperties - A billing instruction used during invoice generation.
    *InstructionProperties `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"`
}

Instruction an instruction.

func (Instruction) MarshalJSON Uses

func (i Instruction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Instruction.

func (*Instruction) UnmarshalJSON Uses

func (i *Instruction) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Instruction struct.

type InstructionListResult Uses

type InstructionListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The list of billing instructions used during invoice generation.
    Value *[]Instruction `json:"value,omitempty"`
    // NextLink - READ-ONLY; The link (url) to the next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

InstructionListResult the list of billing instructions used during invoice generation.

func (InstructionListResult) IsEmpty Uses

func (ilr InstructionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type InstructionListResultIterator Uses

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

InstructionListResultIterator provides access to a complete listing of Instruction values.

func NewInstructionListResultIterator Uses

func NewInstructionListResultIterator(page InstructionListResultPage) InstructionListResultIterator

Creates a new instance of the InstructionListResultIterator type.

func (*InstructionListResultIterator) Next Uses

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

func (iter *InstructionListResultIterator) 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 (InstructionListResultIterator) NotDone Uses

func (iter InstructionListResultIterator) NotDone() bool

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

func (InstructionListResultIterator) Response Uses

func (iter InstructionListResultIterator) Response() InstructionListResult

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

func (InstructionListResultIterator) Value Uses

func (iter InstructionListResultIterator) Value() Instruction

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

type InstructionListResultPage Uses

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

InstructionListResultPage contains a page of Instruction values.

func NewInstructionListResultPage Uses

func NewInstructionListResultPage(cur InstructionListResult, getNextPage func(context.Context, InstructionListResult) (InstructionListResult, error)) InstructionListResultPage

Creates a new instance of the InstructionListResultPage type.

func (*InstructionListResultPage) Next Uses

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

func (page *InstructionListResultPage) 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 (InstructionListResultPage) NotDone Uses

func (page InstructionListResultPage) NotDone() bool

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

func (InstructionListResultPage) Response Uses

func (page InstructionListResultPage) Response() InstructionListResult

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

func (InstructionListResultPage) Values Uses

func (page InstructionListResultPage) Values() []Instruction

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

type InstructionProperties Uses

type InstructionProperties struct {
    // Amount - The amount budgeted for this billing instruction.
    Amount *float64 `json:"amount,omitempty"`
    // StartDate - The date this billing instruction goes into effect.
    StartDate *date.Time `json:"startDate,omitempty"`
    // EndDate - The date this billing instruction is no longer in effect.
    EndDate *date.Time `json:"endDate,omitempty"`
    // CreationDate - The date this billing instruction was created.
    CreationDate *date.Time `json:"creationDate,omitempty"`
}

InstructionProperties a billing instruction used during invoice generation.

type InstructionsClient Uses

type InstructionsClient struct {
    BaseClient
}

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

func NewInstructionsClient Uses

func NewInstructionsClient(subscriptionID string) InstructionsClient

NewInstructionsClient creates an instance of the InstructionsClient client.

func NewInstructionsClientWithBaseURI Uses

func NewInstructionsClientWithBaseURI(baseURI string, subscriptionID string) InstructionsClient

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

func (InstructionsClient) Get Uses

func (client InstructionsClient) Get(ctx context.Context, billingAccountName string, billingProfileName string, instructionName string) (result Instruction, err error)

Get get the instruction by name. These are custom billing instructions and are only applicable for certain customers. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. instructionName - instruction Name.

func (InstructionsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (InstructionsClient) GetResponder Uses

func (client InstructionsClient) GetResponder(resp *http.Response) (result Instruction, err error)

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

func (InstructionsClient) GetSender Uses

func (client InstructionsClient) 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 (InstructionsClient) ListByBillingProfile Uses

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

ListByBillingProfile lists the instructions by billing profile id. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile.

func (InstructionsClient) ListByBillingProfileComplete Uses

func (client InstructionsClient) ListByBillingProfileComplete(ctx context.Context, billingAccountName string, billingProfileName string) (result InstructionListResultIterator, err error)

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

func (InstructionsClient) ListByBillingProfilePreparer Uses

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

ListByBillingProfilePreparer prepares the ListByBillingProfile request.

func (InstructionsClient) ListByBillingProfileResponder Uses

func (client InstructionsClient) ListByBillingProfileResponder(resp *http.Response) (result InstructionListResult, err error)

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

func (InstructionsClient) ListByBillingProfileSender Uses

func (client InstructionsClient) 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 (InstructionsClient) Put Uses

func (client InstructionsClient) Put(ctx context.Context, billingAccountName string, billingProfileName string, instructionName string, parameters Instruction) (result Instruction, err error)

Put creates or updates an instruction. These are custom billing instructions and are only applicable for certain customers. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. instructionName - instruction Name. parameters - the new instruction.

func (InstructionsClient) PutPreparer Uses

func (client InstructionsClient) PutPreparer(ctx context.Context, billingAccountName string, billingProfileName string, instructionName string, parameters Instruction) (*http.Request, error)

PutPreparer prepares the Put request.

func (InstructionsClient) PutResponder Uses

func (client InstructionsClient) PutResponder(resp *http.Response) (result Instruction, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (InstructionsClient) PutSender Uses

func (client InstructionsClient) PutSender(req *http.Request) (*http.Response, error)

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

type Invoice Uses

type Invoice struct {
    autorest.Response `json:"-"`
    // InvoiceProperties - An invoice.
    *InvoiceProperties `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"`
}

Invoice an invoice.

func (Invoice) MarshalJSON Uses

func (i Invoice) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Invoice.

func (*Invoice) UnmarshalJSON Uses

func (i *Invoice) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Invoice struct.

type InvoiceDocumentType Uses

type InvoiceDocumentType string

InvoiceDocumentType enumerates the values for invoice document type.

const (
    // InvoiceDocumentTypeCreditNote ...
    InvoiceDocumentTypeCreditNote InvoiceDocumentType = "CreditNote"
    // InvoiceDocumentTypeInvoice ...
    InvoiceDocumentTypeInvoice InvoiceDocumentType = "Invoice"
)

func PossibleInvoiceDocumentTypeValues Uses

func PossibleInvoiceDocumentTypeValues() []InvoiceDocumentType

PossibleInvoiceDocumentTypeValues returns an array of possible values for the InvoiceDocumentType const type.

type InvoiceListResult Uses

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

InvoiceListResult the list of 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 Invoice 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() Invoice

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 Invoice values.

func NewInvoiceListResultPage Uses

func NewInvoiceListResultPage(cur InvoiceListResult, 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() []Invoice

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

type InvoiceProperties Uses

type InvoiceProperties struct {
    // DueDate - READ-ONLY; The due date for the invoice.
    DueDate *date.Time `json:"dueDate,omitempty"`
    // InvoiceDate - READ-ONLY; The date when the invoice was generated.
    InvoiceDate *date.Time `json:"invoiceDate,omitempty"`
    // Status - READ-ONLY; The current status of the invoice. Possible values include: 'Due', 'OverDue', 'Paid', 'Void'
    Status InvoiceStatus `json:"status,omitempty"`
    // AmountDue - READ-ONLY; The amount due as of now.
    AmountDue *Amount `json:"amountDue,omitempty"`
    // AzurePrepaymentApplied - READ-ONLY; The amount of Azure prepayment applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
    AzurePrepaymentApplied *Amount `json:"azurePrepaymentApplied,omitempty"`
    // BilledAmount - READ-ONLY; The total charges for the invoice billing period.
    BilledAmount *Amount `json:"billedAmount,omitempty"`
    // CreditAmount - READ-ONLY; The total refund for returns and cancellations during the invoice billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
    CreditAmount *Amount `json:"creditAmount,omitempty"`
    // FreeAzureCreditApplied - READ-ONLY; The amount of free Azure credits applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
    FreeAzureCreditApplied *Amount `json:"freeAzureCreditApplied,omitempty"`
    // SubTotal - READ-ONLY; The pre-tax amount due. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
    SubTotal *Amount `json:"subTotal,omitempty"`
    // TaxAmount - READ-ONLY; The amount of tax charged for the billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
    TaxAmount *Amount `json:"taxAmount,omitempty"`
    // TotalAmount - READ-ONLY; The amount due when the invoice was generated. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
    TotalAmount *Amount `json:"totalAmount,omitempty"`
    // InvoicePeriodStartDate - READ-ONLY; The start date of the billing period for which the invoice is generated.
    InvoicePeriodStartDate *date.Time `json:"invoicePeriodStartDate,omitempty"`
    // InvoicePeriodEndDate - READ-ONLY; The end date of the billing period for which the invoice is generated.
    InvoicePeriodEndDate *date.Time `json:"invoicePeriodEndDate,omitempty"`
    // InvoiceType - READ-ONLY; Invoice type. Possible values include: 'AzureService', 'AzureMarketplace', 'AzureSupport'
    InvoiceType InvoiceType `json:"invoiceType,omitempty"`
    // IsMonthlyInvoice - READ-ONLY; Specifies if the invoice is generated as part of monthly invoicing cycle or not. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
    IsMonthlyInvoice *bool `json:"isMonthlyInvoice,omitempty"`
    // BillingProfileID - READ-ONLY; The ID of the billing profile for which the invoice is generated.
    BillingProfileID *string `json:"billingProfileId,omitempty"`
    // BillingProfileDisplayName - READ-ONLY; The name of the billing profile for which the invoice is generated.
    BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"`
    // PurchaseOrderNumber - READ-ONLY; An optional purchase order number for the invoice.
    PurchaseOrderNumber *string `json:"purchaseOrderNumber,omitempty"`
    // Documents - READ-ONLY; List of documents available to download such as invoice and tax receipt.
    Documents *[]Document `json:"documents,omitempty"`
    // Payments - READ-ONLY; List of payments.
    Payments *[]PaymentProperties `json:"payments,omitempty"`
    // RebillDetails - READ-ONLY; Rebill details for an invoice.
    RebillDetails map[string]*RebillDetails `json:"rebillDetails"`
    // DocumentType - READ-ONLY; The type of the document. Possible values include: 'InvoiceDocumentTypeInvoice', 'InvoiceDocumentTypeCreditNote'
    DocumentType InvoiceDocumentType `json:"documentType,omitempty"`
    // BilledDocumentID - READ-ONLY; The Id of the active invoice which is originally billed after this invoice was voided. This field is applicable to the void invoices only.
    BilledDocumentID *string `json:"billedDocumentId,omitempty"`
    // CreditForDocumentID - READ-ONLY; The Id of the invoice which got voided and this credit note was issued as a result. This field is applicable to the credit notes only.
    CreditForDocumentID *string `json:"creditForDocumentId,omitempty"`
    // SubscriptionID - READ-ONLY; The ID of the subscription for which the invoice is generated.
    SubscriptionID *string `json:"subscriptionId,omitempty"`
}

InvoiceProperties the properties of the invoice.

func (InvoiceProperties) MarshalJSON Uses

func (IP InvoiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InvoiceProperties.

type InvoiceSection Uses

type InvoiceSection struct {
    autorest.Response `json:"-"`
    // InvoiceSectionProperties - The properties of an invoice section.
    *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 invoice section.

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 invoice section.
    DisplayName *string `json:"displayName,omitempty"`
}

InvoiceSectionCreationRequest the properties of the invoice section.

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 the list of 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(cur InvoiceSectionListResult, 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 InvoiceSectionListWithCreateSubPermissionResult Uses

type InvoiceSectionListWithCreateSubPermissionResult struct {
    autorest.Response `json:"-"`
    // Value - The list of invoice section properties with create subscription permission.
    Value *[]InvoiceSectionWithCreateSubPermission `json:"value,omitempty"`
    // NextLink - READ-ONLY; The link (url) to the next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

InvoiceSectionListWithCreateSubPermissionResult the list of invoice section properties with create subscription permission.

func (InvoiceSectionListWithCreateSubPermissionResult) IsEmpty Uses

func (islwcspr InvoiceSectionListWithCreateSubPermissionResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (InvoiceSectionListWithCreateSubPermissionResult) MarshalJSON Uses

func (islwcspr InvoiceSectionListWithCreateSubPermissionResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InvoiceSectionListWithCreateSubPermissionResult.

type InvoiceSectionListWithCreateSubPermissionResultIterator Uses

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

InvoiceSectionListWithCreateSubPermissionResultIterator provides access to a complete listing of InvoiceSectionWithCreateSubPermission values.

func NewInvoiceSectionListWithCreateSubPermissionResultIterator Uses

func NewInvoiceSectionListWithCreateSubPermissionResultIterator(page InvoiceSectionListWithCreateSubPermissionResultPage) InvoiceSectionListWithCreateSubPermissionResultIterator

Creates a new instance of the InvoiceSectionListWithCreateSubPermissionResultIterator type.

func (*InvoiceSectionListWithCreateSubPermissionResultIterator) Next Uses

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

func (iter *InvoiceSectionListWithCreateSubPermissionResultIterator) 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 (InvoiceSectionListWithCreateSubPermissionResultIterator) NotDone Uses

func (iter InvoiceSectionListWithCreateSubPermissionResultIterator) NotDone() bool

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

func (InvoiceSectionListWithCreateSubPermissionResultIterator) Response Uses

func (iter InvoiceSectionListWithCreateSubPermissionResultIterator) Response() InvoiceSectionListWithCreateSubPermissionResult

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

func (InvoiceSectionListWithCreateSubPermissionResultIterator) Value Uses

func (iter InvoiceSectionListWithCreateSubPermissionResultIterator) Value() InvoiceSectionWithCreateSubPermission

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

type InvoiceSectionListWithCreateSubPermissionResultPage Uses

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

InvoiceSectionListWithCreateSubPermissionResultPage contains a page of InvoiceSectionWithCreateSubPermission values.

func NewInvoiceSectionListWithCreateSubPermissionResultPage Uses

func NewInvoiceSectionListWithCreateSubPermissionResultPage(cur InvoiceSectionListWithCreateSubPermissionResult, getNextPage func(context.Context, InvoiceSectionListWithCreateSubPermissionResult) (InvoiceSectionListWithCreateSubPermissionResult, error)) InvoiceSectionListWithCreateSubPermissionResultPage

Creates a new instance of the InvoiceSectionListWithCreateSubPermissionResultPage type.

func (*InvoiceSectionListWithCreateSubPermissionResultPage) Next Uses

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

func (page *InvoiceSectionListWithCreateSubPermissionResultPage) 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 (InvoiceSectionListWithCreateSubPermissionResultPage) NotDone Uses

func (page InvoiceSectionListWithCreateSubPermissionResultPage) NotDone() bool

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

func (InvoiceSectionListWithCreateSubPermissionResultPage) Response Uses

func (page InvoiceSectionListWithCreateSubPermissionResultPage) Response() InvoiceSectionListWithCreateSubPermissionResult

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

func (InvoiceSectionListWithCreateSubPermissionResultPage) Values Uses

func (page InvoiceSectionListWithCreateSubPermissionResultPage) Values() []InvoiceSectionWithCreateSubPermission

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 invoice section.
    DisplayName *string `json:"displayName,omitempty"`
    // Labels - Dictionary of metadata associated with the invoice section.
    Labels map[string]*string `json:"labels"`
    // State - READ-ONLY; Identifies the state of an invoice section. Possible values include: 'InvoiceSectionStateActive', 'InvoiceSectionStateRestricted'
    State InvoiceSectionState `json:"state,omitempty"`
    // SystemID - READ-ONLY; The system generated unique identifier for an invoice section.
    SystemID *string `json:"systemId,omitempty"`
    // TargetCloud - READ-ONLY; Identifies the cloud environments that are associated with an invoice section. This is a system managed optional field and gets updated as the invoice section gets associated with accounts in various clouds. Possible values include: 'USGov', 'USNat', 'USSec'
    TargetCloud TargetCloud `json:"targetCloud,omitempty"`
}

InvoiceSectionProperties the properties of an invoice section.

func (InvoiceSectionProperties) MarshalJSON Uses

func (isp InvoiceSectionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InvoiceSectionProperties.

type InvoiceSectionState Uses

type InvoiceSectionState string

InvoiceSectionState enumerates the values for invoice section state.

const (
    // InvoiceSectionStateActive ...
    InvoiceSectionStateActive InvoiceSectionState = "Active"
    // InvoiceSectionStateRestricted ...
    InvoiceSectionStateRestricted InvoiceSectionState = "Restricted"
)

func PossibleInvoiceSectionStateValues Uses

func PossibleInvoiceSectionStateValues() []InvoiceSectionState

PossibleInvoiceSectionStateValues returns an array of possible values for the InvoiceSectionState const type.

type InvoiceSectionWithCreateSubPermission Uses

type InvoiceSectionWithCreateSubPermission struct {
    // InvoiceSectionID - READ-ONLY; The ID of the invoice section.
    InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
    // InvoiceSectionDisplayName - READ-ONLY; The name of the invoice section.
    InvoiceSectionDisplayName *string `json:"invoiceSectionDisplayName,omitempty"`
    // InvoiceSectionSystemID - READ-ONLY; The system generated unique identifier for an invoice section.
    InvoiceSectionSystemID *string `json:"invoiceSectionSystemId,omitempty"`
    // BillingProfileID - READ-ONLY; The ID of the billing profile for the invoice section.
    BillingProfileID *string `json:"billingProfileId,omitempty"`
    // BillingProfileDisplayName - READ-ONLY; The name of the billing profile for the invoice section.
    BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"`
    // BillingProfileStatus - READ-ONLY; The status of the billing profile. Possible values include: 'ProfileStatusActive', 'ProfileStatusDisabled', 'ProfileStatusWarned'
    BillingProfileStatus ProfileStatus `json:"billingProfileStatus,omitempty"`
    // BillingProfileStatusReasonCode - READ-ONLY; Reason for the specified billing profile status. Possible values include: 'StatusReasonCodeForBillingProfilePastDue', 'StatusReasonCodeForBillingProfileSpendingLimitReached', 'StatusReasonCodeForBillingProfileSpendingLimitExpired'
    BillingProfileStatusReasonCode StatusReasonCodeForBillingProfile `json:"billingProfileStatusReasonCode,omitempty"`
    // BillingProfileSpendingLimit - READ-ONLY; The billing profile spending limit. Possible values include: 'SpendingLimitForBillingProfileOff', 'SpendingLimitForBillingProfileOn'
    BillingProfileSpendingLimit SpendingLimitForBillingProfile `json:"billingProfileSpendingLimit,omitempty"`
    // BillingProfileSystemID - READ-ONLY; The system generated unique identifier for a billing profile.
    BillingProfileSystemID *string `json:"billingProfileSystemId,omitempty"`
    // EnabledAzurePlans - Enabled azure plans for the associated billing profile.
    EnabledAzurePlans *[]AzurePlan `json:"enabledAzurePlans,omitempty"`
}

InvoiceSectionWithCreateSubPermission invoice section properties with create subscription permission.

func (InvoiceSectionWithCreateSubPermission) MarshalJSON Uses

func (iswcsp InvoiceSectionWithCreateSubPermission) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InvoiceSectionWithCreateSubPermission.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (InvoiceSectionsClient) CreateOrUpdate Uses

func (client InvoiceSectionsClient) CreateOrUpdate(ctx context.Context, billingAccountName string, billingProfileName string, invoiceSectionName string, parameters InvoiceSection) (result InvoiceSectionsCreateOrUpdateFuture, err error)

CreateOrUpdate creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. invoiceSectionName - the ID that uniquely identifies an invoice section. parameters - the new or updated invoice section.

func (InvoiceSectionsClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (InvoiceSectionsClient) CreateOrUpdateResponder Uses

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

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (InvoiceSectionsClient) CreateOrUpdateSender Uses

func (client InvoiceSectionsClient) CreateOrUpdateSender(req *http.Request) (future InvoiceSectionsCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate 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, billingProfileName string, invoiceSectionName string) (result InvoiceSection, err error)

Get gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. invoiceSectionName - the ID that uniquely identifies an invoice section.

func (InvoiceSectionsClient) GetPreparer Uses

func (client InvoiceSectionsClient) GetPreparer(ctx context.Context, billingAccountName string, billingProfileName string, invoiceSectionName 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) ListByBillingProfile Uses

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

ListByBillingProfile lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile.

func (InvoiceSectionsClient) ListByBillingProfileComplete Uses

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

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

func (InvoiceSectionsClient) ListByBillingProfilePreparer Uses

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

ListByBillingProfilePreparer prepares the ListByBillingProfile request.

func (InvoiceSectionsClient) ListByBillingProfileResponder Uses

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

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

func (InvoiceSectionsClient) ListByBillingProfileSender Uses

func (client InvoiceSectionsClient) 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 InvoiceSectionsCreateOrUpdateFuture Uses

type InvoiceSectionsCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(InvoiceSectionsClient) (InvoiceSection, error)
}

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

type InvoiceSectionsOnExpand Uses

type InvoiceSectionsOnExpand struct {
    // HasMoreResults - READ-ONLY; Indicates whether there are more invoice sections than the ones listed in this collection. The collection lists a maximum of 50 invoice sections. To get all invoice sections, use the list invoice sections API.
    HasMoreResults *bool `json:"hasMoreResults,omitempty"`
    // Value - The invoice sections associated to the billing profile.
    Value *[]InvoiceSection `json:"value,omitempty"`
}

InvoiceSectionsOnExpand the invoice sections associated to the billing profile. By default this is not populated, unless it's specified in $expand.

func (InvoiceSectionsOnExpand) MarshalJSON Uses

func (isoe InvoiceSectionsOnExpand) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for InvoiceSectionsOnExpand.

type InvoiceStatus Uses

type InvoiceStatus string

InvoiceStatus enumerates the values for invoice status.

const (
    // Due ...
    Due InvoiceStatus = "Due"
    // OverDue ...
    OverDue InvoiceStatus = "OverDue"
    // Paid ...
     InvoiceStatus = "Paid"
    // Void ...
    Void InvoiceStatus = "Void"
)

func PossibleInvoiceStatusValues Uses

func PossibleInvoiceStatusValues() []InvoiceStatus

PossibleInvoiceStatusValues returns an array of possible values for the InvoiceStatus const type.

type InvoiceType Uses

type InvoiceType string

InvoiceType enumerates the values for invoice type.

const (
    // AzureMarketplace ...
    AzureMarketplace InvoiceType = "AzureMarketplace"
    // AzureService ...
    AzureService InvoiceType = "AzureService"
    // AzureSupport ...
    AzureSupport InvoiceType = "AzureSupport"
)

func PossibleInvoiceTypeValues Uses

func PossibleInvoiceTypeValues() []InvoiceType

PossibleInvoiceTypeValues returns an array of possible values for the InvoiceType const type.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (InvoicesClient) DownloadBillingSubscriptionInvoice Uses

func (client InvoicesClient) DownloadBillingSubscriptionInvoice(ctx context.Context, invoiceName string, downloadToken string) (result InvoicesDownloadBillingSubscriptionInvoiceFuture, err error)

DownloadBillingSubscriptionInvoice gets a URL to download an invoice. Parameters: invoiceName - the ID that uniquely identifies an invoice. downloadToken - download token with document source and document ID.

func (InvoicesClient) DownloadBillingSubscriptionInvoicePreparer Uses

func (client InvoicesClient) DownloadBillingSubscriptionInvoicePreparer(ctx context.Context, invoiceName string, downloadToken string) (*http.Request, error)

DownloadBillingSubscriptionInvoicePreparer prepares the DownloadBillingSubscriptionInvoice request.

func (InvoicesClient) DownloadBillingSubscriptionInvoiceResponder Uses

func (client InvoicesClient) DownloadBillingSubscriptionInvoiceResponder(resp *http.Response) (result DownloadURL, err error)

DownloadBillingSubscriptionInvoiceResponder handles the response to the DownloadBillingSubscriptionInvoice request. The method always closes the http.Response Body.

func (InvoicesClient) DownloadBillingSubscriptionInvoiceSender Uses

func (client InvoicesClient) DownloadBillingSubscriptionInvoiceSender(req *http.Request) (future InvoicesDownloadBillingSubscriptionInvoiceFuture, err error)

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

func (InvoicesClient) DownloadInvoice Uses

func (client InvoicesClient) DownloadInvoice(ctx context.Context, billingAccountName string, invoiceName string, downloadToken string) (result InvoicesDownloadInvoiceFuture, err error)

DownloadInvoice gets a URL to download an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. invoiceName - the ID that uniquely identifies an invoice. downloadToken - download token with document source and document ID.

func (InvoicesClient) DownloadInvoicePreparer Uses

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

DownloadInvoicePreparer prepares the DownloadInvoice request.

func (InvoicesClient) DownloadInvoiceResponder Uses

func (client InvoicesClient) DownloadInvoiceResponder(resp *http.Response) (result DownloadURL, err error)

DownloadInvoiceResponder handles the response to the DownloadInvoice request. The method always closes the http.Response Body.

func (InvoicesClient) DownloadInvoiceSender Uses

func (client InvoicesClient) DownloadInvoiceSender(req *http.Request) (future InvoicesDownloadInvoiceFuture, err error)

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

func (InvoicesClient) DownloadMultipleBillingProfileInvoices Uses

func (client InvoicesClient) DownloadMultipleBillingProfileInvoices(ctx context.Context, billingAccountName string, downloadUrls []string) (result InvoicesDownloadMultipleBillingProfileInvoicesFuture, err error)

DownloadMultipleBillingProfileInvoices gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. downloadUrls - an array of download urls for individual documents

func (InvoicesClient) DownloadMultipleBillingProfileInvoicesPreparer Uses

func (client InvoicesClient) DownloadMultipleBillingProfileInvoicesPreparer(ctx context.Context, billingAccountName string, downloadUrls []string) (*http.Request, error)

DownloadMultipleBillingProfileInvoicesPreparer prepares the DownloadMultipleBillingProfileInvoices request.

func (InvoicesClient) DownloadMultipleBillingProfileInvoicesResponder Uses

func (client InvoicesClient) DownloadMultipleBillingProfileInvoicesResponder(resp *http.Response) (result DownloadURL, err error)

DownloadMultipleBillingProfileInvoicesResponder handles the response to the DownloadMultipleBillingProfileInvoices request. The method always closes the http.Response Body.

func (InvoicesClient) DownloadMultipleBillingProfileInvoicesSender Uses

func (client InvoicesClient) DownloadMultipleBillingProfileInvoicesSender(req *http.Request) (future InvoicesDownloadMultipleBillingProfileInvoicesFuture, err error)

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

func (InvoicesClient) DownloadMultipleBillingSubscriptionInvoices Uses

func (client InvoicesClient) DownloadMultipleBillingSubscriptionInvoices(ctx context.Context, downloadUrls []string) (result InvoicesDownloadMultipleBillingSubscriptionInvoicesFuture, err error)

DownloadMultipleBillingSubscriptionInvoices gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. Parameters: downloadUrls - an array of download urls for individual documents

func (InvoicesClient) DownloadMultipleBillingSubscriptionInvoicesPreparer Uses

func (client InvoicesClient) DownloadMultipleBillingSubscriptionInvoicesPreparer(ctx context.Context, downloadUrls []string) (*http.Request, error)

DownloadMultipleBillingSubscriptionInvoicesPreparer prepares the DownloadMultipleBillingSubscriptionInvoices request.

func (InvoicesClient) DownloadMultipleBillingSubscriptionInvoicesResponder Uses

func (client InvoicesClient) DownloadMultipleBillingSubscriptionInvoicesResponder(resp *http.Response) (result DownloadURL, err error)

DownloadMultipleBillingSubscriptionInvoicesResponder handles the response to the DownloadMultipleBillingSubscriptionInvoices request. The method always closes the http.Response Body.

func (InvoicesClient) DownloadMultipleBillingSubscriptionInvoicesSender Uses

func (client InvoicesClient) DownloadMultipleBillingSubscriptionInvoicesSender(req *http.Request) (future InvoicesDownloadMultipleBillingSubscriptionInvoicesFuture, err error)

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

func (InvoicesClient) Get Uses

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

Get gets an invoice by billing account name and ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. invoiceName - the ID that uniquely identifies an invoice.

func (InvoicesClient) GetByID Uses

func (client InvoicesClient) GetByID(ctx context.Context, invoiceName string) (result Invoice, err error)

GetByID gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. Parameters: invoiceName - the ID that uniquely identifies an invoice.

func (InvoicesClient) GetByIDPreparer Uses

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

GetByIDPreparer prepares the GetByID request.

func (InvoicesClient) GetByIDResponder Uses

func (client InvoicesClient) GetByIDResponder(resp *http.Response) (result Invoice, err error)

GetByIDResponder handles the response to the GetByID request. The method always closes the http.Response Body.

func (InvoicesClient) GetByIDSender Uses

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

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

func (InvoicesClient) GetBySubscriptionAndInvoiceID Uses

func (client InvoicesClient) GetBySubscriptionAndInvoiceID(ctx context.Context, invoiceName string) (result Invoice, err error)

GetBySubscriptionAndInvoiceID gets an invoice by subscription ID and invoice ID. Parameters: invoiceName - the ID that uniquely identifies an invoice.

func (InvoicesClient) GetBySubscriptionAndInvoiceIDPreparer Uses

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

GetBySubscriptionAndInvoiceIDPreparer prepares the GetBySubscriptionAndInvoiceID request.

func (InvoicesClient) GetBySubscriptionAndInvoiceIDResponder Uses

func (client InvoicesClient) GetBySubscriptionAndInvoiceIDResponder(resp *http.Response) (result Invoice, err error)

GetBySubscriptionAndInvoiceIDResponder handles the response to the GetBySubscriptionAndInvoiceID request. The method always closes the http.Response Body.

func (InvoicesClient) GetBySubscriptionAndInvoiceIDSender Uses

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

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

func (InvoicesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (InvoicesClient) GetResponder Uses

func (client InvoicesClient) GetResponder(resp *http.Response) (result Invoice, 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) ListByBillingAccount Uses

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

ListByBillingAccount lists the invoices for a billing account for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. periodStartDate - the start date to fetch the invoices. The date should be specified in MM-DD-YYYY format. periodEndDate - the end date to fetch the invoices. The date should be specified in MM-DD-YYYY format.

func (InvoicesClient) ListByBillingAccountComplete Uses

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

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

func (InvoicesClient) ListByBillingAccountPreparer Uses

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (InvoicesClient) ListByBillingAccountResponder Uses

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

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

func (InvoicesClient) ListByBillingAccountSender Uses

func (client InvoicesClient) 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 (InvoicesClient) ListByBillingProfile Uses

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

ListByBillingProfile lists the invoices for a billing profile for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. periodStartDate - the start date to fetch the invoices. The date should be specified in MM-DD-YYYY format. periodEndDate - the end date to fetch the invoices. The date should be specified in MM-DD-YYYY format.

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.

func (InvoicesClient) ListByBillingSubscription Uses

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

ListByBillingSubscription lists the invoices for a subscription. Parameters: periodStartDate - invoice period start date. periodEndDate - invoice period end date.

func (InvoicesClient) ListByBillingSubscriptionComplete Uses

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

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

func (InvoicesClient) ListByBillingSubscriptionPreparer Uses

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

ListByBillingSubscriptionPreparer prepares the ListByBillingSubscription request.

func (InvoicesClient) ListByBillingSubscriptionResponder Uses

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

ListByBillingSubscriptionResponder handles the response to the ListByBillingSubscription request. The method always closes the http.Response Body.

func (InvoicesClient) ListByBillingSubscriptionSender Uses

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

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

type InvoicesDownloadBillingSubscriptionInvoiceFuture Uses

type InvoicesDownloadBillingSubscriptionInvoiceFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(InvoicesClient) (DownloadURL, error)
}

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

type InvoicesDownloadInvoiceFuture Uses

type InvoicesDownloadInvoiceFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(InvoicesClient) (DownloadURL, error)
}

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

type InvoicesDownloadMultipleBillingProfileInvoicesFuture Uses

type InvoicesDownloadMultipleBillingProfileInvoicesFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(InvoicesClient) (DownloadURL, error)
}

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

type InvoicesDownloadMultipleBillingSubscriptionInvoicesFuture Uses

type InvoicesDownloadMultipleBillingSubscriptionInvoicesFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(InvoicesClient) (DownloadURL, error)
}

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

type MarketplacePurchasesPolicy Uses

type MarketplacePurchasesPolicy string

MarketplacePurchasesPolicy enumerates the values for marketplace purchases policy.

const (
    // AllAllowed ...
    AllAllowed MarketplacePurchasesPolicy = "AllAllowed"
    // NotAllowed ...
    NotAllowed MarketplacePurchasesPolicy = "NotAllowed"
    // OnlyFreeAllowed ...
    OnlyFreeAllowed MarketplacePurchasesPolicy = "OnlyFreeAllowed"
)

func PossibleMarketplacePurchasesPolicyValues Uses

func PossibleMarketplacePurchasesPolicyValues() []MarketplacePurchasesPolicy

PossibleMarketplacePurchasesPolicyValues returns an array of possible values for the MarketplacePurchasesPolicy const type.

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.

func (Operation) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for 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 such as invoice and billing subscription.
    Resource *string `json:"resource,omitempty"`
    // Operation - READ-ONLY; Operation type such as read, write and delete.
    Operation *string `json:"operation,omitempty"`
}

OperationDisplay the object that represents the operation.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - READ-ONLY; The 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 the list of billing 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(cur OperationListResult, 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 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List Uses

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

List lists 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 acceptance status of the participant.
    Status *string `json:"status,omitempty"`
    // StatusDate - READ-ONLY; The date when the status got changed.
    StatusDate *date.Time `json:"statusDate,omitempty"`
    // Email - READ-ONLY; The email address of the participant.
    Email *string `json:"email,omitempty"`
}

Participants the details about a participant.

type PaymentMethodFamily Uses

type PaymentMethodFamily string

PaymentMethodFamily enumerates the values for payment method family.

const (
    // CheckWire ...
    CheckWire PaymentMethodFamily = "CheckWire"
    // CreditCard ...
    CreditCard PaymentMethodFamily = "CreditCard"
    // Credits ...
    Credits PaymentMethodFamily = "Credits"
    // None ...
    None PaymentMethodFamily = "None"
)

func PossiblePaymentMethodFamilyValues Uses

func PossiblePaymentMethodFamilyValues() []PaymentMethodFamily

PossiblePaymentMethodFamilyValues returns an array of possible values for the PaymentMethodFamily const type.

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 when the payment was made.
    Date *date.Time `json:"date,omitempty"`
    // PaymentMethodFamily - The family of payment method. Possible values include: 'Credits', 'CheckWire', 'CreditCard', 'None'
    PaymentMethodFamily PaymentMethodFamily `json:"paymentMethodFamily,omitempty"`
    // PaymentMethodType - READ-ONLY; The type of payment method.
    PaymentMethodType *string `json:"paymentMethodType,omitempty"`
}

PaymentProperties the properties of a payment.

func (PaymentProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for PaymentProperties.

type Period Uses

type Period struct {
    autorest.Response `json:"-"`
    // PeriodProperties - A billing period.
    *PeriodProperties `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"`
}

Period a billing period resource.

func (Period) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Period.

func (*Period) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Period struct.

type PeriodProperties Uses

type PeriodProperties struct {
    // BillingPeriodStartDate - READ-ONLY; The start of the date range covered by the billing period.
    BillingPeriodStartDate *date.Date `json:"billingPeriodStartDate,omitempty"`
    // BillingPeriodEndDate - READ-ONLY; The end of the date range covered by the billing period.
    BillingPeriodEndDate *date.Date `json:"billingPeriodEndDate,omitempty"`
    // InvoiceIds - READ-ONLY; Array of invoice ids that associated with.
    InvoiceIds *[]string `json:"invoiceIds,omitempty"`
}

PeriodProperties the properties of the billing period.

type PeriodsClient Uses

type PeriodsClient struct {
    BaseClient
}

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

func NewPeriodsClient Uses

func NewPeriodsClient(subscriptionID string) PeriodsClient

NewPeriodsClient creates an instance of the PeriodsClient client.

func NewPeriodsClientWithBaseURI Uses

func NewPeriodsClientWithBaseURI(baseURI string, subscriptionID string) PeriodsClient

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

func (PeriodsClient) Get Uses

func (client PeriodsClient) Get(ctx context.Context, billingPeriodName string) (result Period, err error)

Get gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. Parameters: billingPeriodName - the name of a BillingPeriod resource.

func (PeriodsClient) GetPreparer Uses

func (client PeriodsClient) GetPreparer(ctx context.Context, billingPeriodName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PeriodsClient) GetResponder Uses

func (client PeriodsClient) GetResponder(resp *http.Response) (result Period, err error)

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

func (PeriodsClient) GetSender Uses

func (client PeriodsClient) 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 (PeriodsClient) List Uses

func (client PeriodsClient) List(ctx context.Context, filter string, skiptoken string, top *int32) (result PeriodsListResultPage, err error)

List lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. Parameters: filter - may be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. 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. top - may be used to limit the number of results to the most recent N billing periods.

func (PeriodsClient) ListComplete Uses

func (client PeriodsClient) ListComplete(ctx context.Context, filter string, skiptoken string, top *int32) (result PeriodsListResultIterator, err error)

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

func (PeriodsClient) ListPreparer Uses

func (client PeriodsClient) ListPreparer(ctx context.Context, filter string, skiptoken string, top *int32) (*http.Request, error)

ListPreparer prepares the List request.

func (PeriodsClient) ListResponder Uses

func (client PeriodsClient) ListResponder(resp *http.Response) (result PeriodsListResult, err error)

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

func (PeriodsClient) ListSender Uses

func (client PeriodsClient) 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 PeriodsListResult Uses

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

PeriodsListResult result of listing billing periods. It contains a list of available billing periods in reverse chronological order.

func (PeriodsListResult) IsEmpty Uses

func (plr PeriodsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PeriodsListResultIterator Uses

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

PeriodsListResultIterator provides access to a complete listing of Period values.

func NewPeriodsListResultIterator Uses

func NewPeriodsListResultIterator(page PeriodsListResultPage) PeriodsListResultIterator

Creates a new instance of the PeriodsListResultIterator type.

func (*PeriodsListResultIterator) Next Uses

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

func (iter *PeriodsListResultIterator) 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 (PeriodsListResultIterator) NotDone Uses

func (iter PeriodsListResultIterator) NotDone() bool

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

func (PeriodsListResultIterator) Response Uses

func (iter PeriodsListResultIterator) Response() PeriodsListResult

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

func (PeriodsListResultIterator) Value Uses

func (iter PeriodsListResultIterator) Value() Period

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

type PeriodsListResultPage Uses

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

PeriodsListResultPage contains a page of Period values.

func NewPeriodsListResultPage Uses

func NewPeriodsListResultPage(cur PeriodsListResult, getNextPage func(context.Context, PeriodsListResult) (PeriodsListResult, error)) PeriodsListResultPage

Creates a new instance of the PeriodsListResultPage type.

func (*PeriodsListResultPage) Next Uses

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

func (page *PeriodsListResultPage) 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 (PeriodsListResultPage) NotDone Uses

func (page PeriodsListResultPage) NotDone() bool

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

func (PeriodsListResultPage) Response Uses

func (page PeriodsListResultPage) Response() PeriodsListResult

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

func (PeriodsListResultPage) Values Uses

func (page PeriodsListResultPage) Values() []Period

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

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PermissionsClient) ListByBillingAccount Uses

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

ListByBillingAccount lists the billing permissions the caller has on a billing account. Parameters: billingAccountName - the ID that uniquely identifies a billing account.

func (PermissionsClient) ListByBillingAccountComplete Uses

func (client PermissionsClient) ListByBillingAccountComplete(ctx context.Context, billingAccountName string) (result PermissionsListResultIterator, err error)

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

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 PermissionsListResultPage, err error)

ListByBillingProfile lists the billing permissions the caller has on a billing profile. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile.

func (PermissionsClient) ListByBillingProfileComplete Uses

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

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

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) ListByCustomer Uses

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

ListByCustomer lists the billing permissions the caller has for a customer. Parameters: billingAccountName - the ID that uniquely identifies a billing account. customerName - the ID that uniquely identifies a customer.

func (PermissionsClient) ListByCustomerComplete Uses

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

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

func (PermissionsClient) ListByCustomerPreparer Uses

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

ListByCustomerPreparer prepares the ListByCustomer request.

func (PermissionsClient) ListByCustomerResponder Uses

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

ListByCustomerResponder handles the response to the ListByCustomer request. The method always closes the http.Response Body.

func (PermissionsClient) ListByCustomerSender Uses

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

ListByCustomerSender sends the ListByCustomer 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, billingProfileName string, invoiceSectionName string) (result PermissionsListResultPage, err error)

ListByInvoiceSections lists the billing permissions the caller has on an invoice section. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. invoiceSectionName - the ID that uniquely identifies an invoice section.

func (PermissionsClient) ListByInvoiceSectionsComplete Uses

func (client PermissionsClient) ListByInvoiceSectionsComplete(ctx context.Context, billingAccountName string, billingProfileName string, invoiceSectionName string) (result PermissionsListResultIterator, err error)

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

func (PermissionsClient) ListByInvoiceSectionsPreparer Uses

func (client PermissionsClient) ListByInvoiceSectionsPreparer(ctx context.Context, billingAccountName string, billingProfileName 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"`
    // NextLink - READ-ONLY; The link (url) to the next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

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

func (PermissionsListResult) IsEmpty Uses

func (plr PermissionsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PermissionsListResultIterator Uses

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

PermissionsListResultIterator provides access to a complete listing of PermissionsProperties values.

func NewPermissionsListResultIterator Uses

func NewPermissionsListResultIterator(page PermissionsListResultPage) PermissionsListResultIterator

Creates a new instance of the PermissionsListResultIterator type.

func (*PermissionsListResultIterator) Next Uses

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

func (iter *PermissionsListResultIterator) 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 (PermissionsListResultIterator) NotDone Uses

func (iter PermissionsListResultIterator) NotDone() bool

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

func (PermissionsListResultIterator) Response Uses

func (iter PermissionsListResultIterator) Response() PermissionsListResult

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

func (PermissionsListResultIterator) Value Uses

func (iter PermissionsListResultIterator) Value() PermissionsProperties

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

type PermissionsListResultPage Uses

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

PermissionsListResultPage contains a page of PermissionsProperties values.

func NewPermissionsListResultPage Uses

func NewPermissionsListResultPage(cur PermissionsListResult, getNextPage func(context.Context, PermissionsListResult) (PermissionsListResult, error)) PermissionsListResultPage

Creates a new instance of the PermissionsListResultPage type.

func (*PermissionsListResultPage) Next Uses

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

func (page *PermissionsListResultPage) 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 (PermissionsListResultPage) NotDone Uses

func (page PermissionsListResultPage) NotDone() bool

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

func (PermissionsListResultPage) Response Uses

func (page PermissionsListResultPage) Response() PermissionsListResult

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

func (PermissionsListResultPage) Values Uses

func (page PermissionsListResultPage) Values() []PermissionsProperties

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

type PermissionsProperties Uses

type PermissionsProperties struct {
    // Actions - READ-ONLY; The set of actions that the caller is allowed to perform.
    Actions *[]string `json:"actions,omitempty"`
    // NotActions - READ-ONLY; The set of actions that the caller is not allowed to perform.
    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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PoliciesClient) GetByBillingProfile Uses

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

GetByBillingProfile lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile.

func (PoliciesClient) GetByBillingProfilePreparer Uses

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

GetByBillingProfilePreparer prepares the GetByBillingProfile request.

func (PoliciesClient) GetByBillingProfileResponder Uses

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

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

func (PoliciesClient) GetByBillingProfileSender Uses

func (client PoliciesClient) 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.

func (PoliciesClient) GetByCustomer Uses

func (client PoliciesClient) GetByCustomer(ctx context.Context, billingAccountName string, customerName string) (result CustomerPolicy, err error)

GetByCustomer lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. customerName - the ID that uniquely identifies a customer.

func (PoliciesClient) GetByCustomerPreparer Uses

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

GetByCustomerPreparer prepares the GetByCustomer request.

func (PoliciesClient) GetByCustomerResponder Uses

func (client PoliciesClient) GetByCustomerResponder(resp *http.Response) (result CustomerPolicy, err error)

GetByCustomerResponder handles the response to the GetByCustomer request. The method always closes the http.Response Body.

func (PoliciesClient) GetByCustomerSender Uses

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

GetByCustomerSender sends the GetByCustomer 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 updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. parameters - request parameters that are provided to the update policies operation.

func (PoliciesClient) UpdateCustomer Uses

func (client PoliciesClient) UpdateCustomer(ctx context.Context, billingAccountName string, customerName string, parameters CustomerPolicy) (result CustomerPolicy, err error)

UpdateCustomer updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. customerName - the ID that uniquely identifies a customer. parameters - request parameters that are provided to the update policies operation.

func (PoliciesClient) UpdateCustomerPreparer Uses

func (client PoliciesClient) UpdateCustomerPreparer(ctx context.Context, billingAccountName string, customerName string, parameters CustomerPolicy) (*http.Request, error)

UpdateCustomerPreparer prepares the UpdateCustomer request.

func (PoliciesClient) UpdateCustomerResponder Uses

func (client PoliciesClient) UpdateCustomerResponder(resp *http.Response) (result CustomerPolicy, err error)

UpdateCustomerResponder handles the response to the UpdateCustomer request. The method always closes the http.Response Body.

func (PoliciesClient) UpdateCustomerSender Uses

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

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

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 a 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 {
    // MarketplacePurchases - The policy that controls whether Azure marketplace purchases are allowed for a billing profile. Possible values include: 'AllAllowed', 'OnlyFreeAllowed', 'NotAllowed'
    MarketplacePurchases MarketplacePurchasesPolicy `json:"marketplacePurchases,omitempty"`
    // ReservationPurchases - The policy that controls whether Azure reservation purchases are allowed for a billing profile. Possible values include: 'ReservationPurchasesPolicyAllowed', 'ReservationPurchasesPolicyNotAllowed'
    ReservationPurchases ReservationPurchasesPolicy `json:"reservationPurchases,omitempty"`
    // ViewCharges - The policy that controls whether users with Azure RBAC access to a subscription can view its charges. Possible values include: 'ViewChargesPolicyAllowed', 'ViewChargesPolicyNotAllowed'
    ViewCharges ViewChargesPolicy `json:"viewCharges,omitempty"`
}

PolicyProperties the properties of a policy.

type Product Uses

type Product struct {
    autorest.Response  `json:"-"`
    *ProductProperties `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"`
}

Product a product.

func (Product) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Product.

func (*Product) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Product struct.

type ProductProperties Uses

type ProductProperties struct {
    // AutoRenew - Indicates whether auto renewal is turned on or off for a product. Possible values include: 'Off', 'On'
    AutoRenew AutoRenew `json:"autoRenew,omitempty"`
    // DisplayName - READ-ONLY; The display name of the product.
    DisplayName *string `json:"displayName,omitempty"`
    // PurchaseDate - READ-ONLY; The date when the product was purchased.
    PurchaseDate *date.Time `json:"purchaseDate,omitempty"`
    // ProductTypeID - READ-ONLY; The ID of the type of product.
    ProductTypeID *string `json:"productTypeId,omitempty"`
    // ProductType - READ-ONLY; The description of the type of product.
    ProductType *string `json:"productType,omitempty"`
    // Status - The current status of the product. Possible values include: 'ProductStatusTypeActive', 'ProductStatusTypeInactive', 'ProductStatusTypePastDue', 'ProductStatusTypeExpiring', 'ProductStatusTypeExpired', 'ProductStatusTypeDisabled', 'ProductStatusTypeCancelled', 'ProductStatusTypeAutoRenew'
    Status ProductStatusType `json:"status,omitempty"`
    // EndDate - READ-ONLY; The date when the product will be renewed or canceled.
    EndDate *date.Time `json:"endDate,omitempty"`
    // BillingFrequency - The frequency at which the product will be billed. Possible values include: 'OneTime', 'Monthly', 'UsageBased'
    BillingFrequency Frequency `json:"billingFrequency,omitempty"`
    // LastCharge - READ-ONLY; The 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 quantity purchased for the product.
    Quantity *float64 `json:"quantity,omitempty"`
    // SkuID - READ-ONLY; The sku ID of the product.
    SkuID *string `json:"skuId,omitempty"`
    // SkuDescription - READ-ONLY; The sku description of the product.
    SkuDescription *string `json:"skuDescription,omitempty"`
    // TenantID - READ-ONLY; The id of the tenant in which the product is used.
    TenantID *string `json:"tenantId,omitempty"`
    // AvailabilityID - READ-ONLY; The availability of the product.
    AvailabilityID *string `json:"availabilityId,omitempty"`
    // InvoiceSectionID - READ-ONLY; The ID of the invoice section to which the product is billed.
    InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
    // InvoiceSectionDisplayName - READ-ONLY; The name of the invoice section to which the product is billed.
    InvoiceSectionDisplayName *string `json:"invoiceSectionDisplayName,omitempty"`
    // BillingProfileID - READ-ONLY; The ID of the billing profile to which the product is billed.
    BillingProfileID *string `json:"billingProfileId,omitempty"`
    // BillingProfileDisplayName - READ-ONLY; The name of the billing profile to which the product is billed.
    BillingProfileDisplayName *string `json:"billingProfileDisplayName,omitempty"`
    // CustomerID - READ-ONLY; The ID of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner Agreement billing account.
    CustomerID *string `json:"customerId,omitempty"`
    // CustomerDisplayName - READ-ONLY; The name of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner Agreement billing account.
    CustomerDisplayName *string `json:"customerDisplayName,omitempty"`
    // Reseller - READ-ONLY; Reseller for this product.
    Reseller *Reseller `json:"reseller,omitempty"`
}

ProductProperties the properties of a product.

func (ProductProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ProductProperties.

type ProductStatusType Uses

type ProductStatusType string

ProductStatusType enumerates the values for product status type.

const (
    // ProductStatusTypeActive ...
    ProductStatusTypeActive ProductStatusType = "Active"
    // ProductStatusTypeAutoRenew ...
    ProductStatusTypeAutoRenew ProductStatusType = "AutoRenew"
    // ProductStatusTypeCancelled ...
    ProductStatusTypeCancelled ProductStatusType = "Cancelled"
    // ProductStatusTypeDisabled ...
    ProductStatusTypeDisabled ProductStatusType = "Disabled"
    // ProductStatusTypeExpired ...
    ProductStatusTypeExpired ProductStatusType = "Expired"
    // ProductStatusTypeExpiring ...
    ProductStatusTypeExpiring ProductStatusType = "Expiring"
    // ProductStatusTypeInactive ...
    ProductStatusTypeInactive ProductStatusType = "Inactive"
    // ProductStatusTypePastDue ...
    ProductStatusTypePastDue ProductStatusType = "PastDue"
)

func PossibleProductStatusTypeValues Uses

func PossibleProductStatusTypeValues() []ProductStatusType

PossibleProductStatusTypeValues returns an array of possible values for the ProductStatusType 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 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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProductsClient) Get Uses

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

Get gets a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. productName - the ID that uniquely identifies a product.

func (ProductsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ProductsClient) GetResponder Uses

func (client ProductsClient) GetResponder(resp *http.Response) (result Product, 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) ListByBillingAccount Uses

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

ListByBillingAccount lists the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. 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 are separated by a colon (:).

func (ProductsClient) ListByBillingAccountComplete Uses

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

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

func (ProductsClient) ListByBillingAccountPreparer Uses

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (ProductsClient) ListByBillingAccountResponder Uses

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

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

func (ProductsClient) ListByBillingAccountSender Uses

func (client ProductsClient) 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 (ProductsClient) ListByBillingProfile Uses

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

ListByBillingProfile lists the products for a billing profile. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. 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 are separated by a colon (:).

func (ProductsClient) ListByBillingProfileComplete Uses

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

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

func (ProductsClient) ListByBillingProfilePreparer Uses

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

ListByBillingProfilePreparer prepares the ListByBillingProfile request.

func (ProductsClient) ListByBillingProfileResponder Uses

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

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

func (ProductsClient) ListByBillingProfileSender Uses

func (client ProductsClient) 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 (ProductsClient) ListByCustomer Uses

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

ListByCustomer lists the products for a customer. These don't include products billed based on usage.The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. customerName - the ID that uniquely identifies a customer.

func (ProductsClient) ListByCustomerComplete Uses

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

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

func (ProductsClient) ListByCustomerPreparer Uses

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

ListByCustomerPreparer prepares the ListByCustomer request.

func (ProductsClient) ListByCustomerResponder Uses

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

ListByCustomerResponder handles the response to the ListByCustomer request. The method always closes the http.Response Body.

func (ProductsClient) ListByCustomerSender Uses

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

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

func (ProductsClient) ListByInvoiceSection Uses

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

ListByInvoiceSection lists the products for an invoice section. These don't include products billed based on usage. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. invoiceSectionName - the ID that uniquely identifies an invoice section. 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 are separated by a colon (:).

func (ProductsClient) ListByInvoiceSectionComplete Uses

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

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

func (ProductsClient) ListByInvoiceSectionPreparer Uses

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

ListByInvoiceSectionPreparer prepares the ListByInvoiceSection request.

func (ProductsClient) ListByInvoiceSectionResponder Uses

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

ListByInvoiceSectionResponder handles the response to the ListByInvoiceSection request. The method always closes the http.Response Body.

func (ProductsClient) ListByInvoiceSectionSender Uses

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

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

func (ProductsClient) Move Uses

func (client ProductsClient) Move(ctx context.Context, billingAccountName string, productName string, parameters TransferProductRequestProperties) (result Product, err error)

Move moves a product's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. productName - the ID that uniquely identifies a product. parameters - request parameters that are provided to the move product operation.

func (ProductsClient) MovePreparer Uses

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

MovePreparer prepares the Move request.

func (ProductsClient) MoveResponder Uses

func (client ProductsClient) MoveResponder(resp *http.Response) (result Product, err error)

MoveResponder handles the response to the Move request. The method always closes the http.Response Body.

func (ProductsClient) MoveSender Uses

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

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

func (ProductsClient) Update Uses

func (client ProductsClient) Update(ctx context.Context, billingAccountName string, productName string, parameters Product) (result Product, err error)

Update updates the properties of a Product. Currently, auto renew can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. productName - the ID that uniquely identifies a product. parameters - request parameters that are provided to the update product operation.

func (ProductsClient) UpdatePreparer Uses

func (client ProductsClient) UpdatePreparer(ctx context.Context, billingAccountName string, productName string, parameters Product) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ProductsClient) UpdateResponder Uses

func (client ProductsClient) UpdateResponder(resp *http.Response) (result Product, err error)

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

func (ProductsClient) UpdateSender Uses

func (client ProductsClient) 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.

func (ProductsClient) ValidateMove Uses

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

ValidateMove validates if a product's charges can be moved to a new invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts with agreement type Microsoft Customer Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. productName - the ID that uniquely identifies a product. parameters - request parameters that are provided to the validate move eligibility operation.

func (ProductsClient) ValidateMovePreparer Uses

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

ValidateMovePreparer prepares the ValidateMove request.

func (ProductsClient) ValidateMoveResponder Uses

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

ValidateMoveResponder handles the response to the ValidateMove request. The method always closes the http.Response Body.

func (ProductsClient) ValidateMoveSender Uses

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

ValidateMoveSender sends the ValidateMove 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.
    Value *[]Product `json:"value,omitempty"`
    // NextLink - READ-ONLY; The link (url) to the next page of results.
    NextLink *string `json:"nextLink,omitempty"`
}

ProductsListResult the list of products. It contains a list of available product 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 Product 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() Product

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 Product values.

func NewProductsListResultPage Uses

func NewProductsListResultPage(cur ProductsListResult, 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() []Product

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 - The properties of the 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.

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 ProfileCreationRequest Uses

type ProfileCreationRequest struct {
    // DisplayName - The name of the billing profile.
    DisplayName *string `json:"displayName,omitempty"`
    // PoNumber - The purchase order name that will appear on the invoices generated for the billing profile.
    PoNumber *string `json:"poNumber,omitempty"`
    // BillTo - The address of the individual or organization that is responsible for the billing profile.
    BillTo *AddressDetails `json:"billTo,omitempty"`
    // InvoiceEmailOptIn - Flag controlling whether the invoices for the billing profile are sent through email.
    InvoiceEmailOptIn *bool `json:"invoiceEmailOptIn,omitempty"`
    // EnabledAzurePlans - Enabled azure plans for the billing profile.
    EnabledAzurePlans *[]AzurePlan `json:"enabledAzurePlans,omitempty"`
}

ProfileCreationRequest the request 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 the list of 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(cur ProfileListResult, 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 name of the billing profile.
    DisplayName *string `json:"displayName,omitempty"`
    // PoNumber - The purchase order name that will appear on the invoices generated for the billing profile.
    PoNumber *string `json:"poNumber,omitempty"`
    // BillingRelationshipType - READ-ONLY; Identifies which services and purchases are paid by a billing profile. Possible values include: 'Direct', 'IndirectCustomer', 'IndirectPartner', 'CSPPartner'
    BillingRelationshipType RelationshipType `json:"billingRelationshipType,omitempty"`
    // BillTo - Billing address.
    BillTo *AddressDetails `json:"billTo,omitempty"`
    // IndirectRelationshipInfo - READ-ONLY; Identifies the billing profile that is linked to another billing profile in indirect purchase motion.
    IndirectRelationshipInfo *IndirectRelationshipInfo `json:"indirectRelationshipInfo,omitempty"`
    // InvoiceEmailOptIn - Flag controlling whether the invoices for the billing profile are sent through email.
    InvoiceEmailOptIn *bool `json:"invoiceEmailOptIn,omitempty"`
    // InvoiceDay - READ-ONLY; The day of the month when the invoice for the billing profile is generated.
    InvoiceDay *int32 `json:"invoiceDay,omitempty"`
    // Currency - READ-ONLY; The currency in which the charges for the billing profile are billed.
    Currency *string `json:"currency,omitempty"`
    // EnabledAzurePlans - Information about the enabled azure plans.
    EnabledAzurePlans *[]AzurePlan `json:"enabledAzurePlans,omitempty"`
    // InvoiceSections - The invoice sections associated to the billing profile. By default this is not populated, unless it's specified in $expand.
    InvoiceSections *InvoiceSectionsOnExpand `json:"invoiceSections,omitempty"`
    // HasReadAccess - READ-ONLY; Indicates whether user has read access to the billing profile.
    HasReadAccess *bool `json:"hasReadAccess,omitempty"`
    // SystemID - READ-ONLY; The system generated unique identifier for a billing profile.
    SystemID *string `json:"systemId,omitempty"`
    // Status - READ-ONLY; The status of the billing profile. Possible values include: 'ProfileStatusActive', 'ProfileStatusDisabled', 'ProfileStatusWarned'
    Status ProfileStatus `json:"status,omitempty"`
    // StatusReasonCode - READ-ONLY; Reason for the specified billing profile status. Possible values include: 'StatusReasonCodePastDue', 'StatusReasonCodeSpendingLimitReached', 'StatusReasonCodeSpendingLimitExpired'
    StatusReasonCode StatusReasonCode `json:"statusReasonCode,omitempty"`
    // SpendingLimit - READ-ONLY; The billing profile spending limit. Possible values include: 'SpendingLimitOff', 'SpendingLimitOn'
    SpendingLimit SpendingLimit `json:"spendingLimit,omitempty"`
    // TargetClouds - READ-ONLY; Identifies the cloud environments that are associated with a billing profile. This is a system managed optional field and gets updated as the billing profile gets associated with accounts in various clouds.
    TargetClouds *[]TargetCloud `json:"targetClouds,omitempty"`
}

ProfileProperties the properties of the billing profile.

func (ProfileProperties) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ProfileProperties.

type ProfileSpendingLimit Uses

type ProfileSpendingLimit string

ProfileSpendingLimit enumerates the values for profile spending limit.

const (
    // ProfileSpendingLimitOff ...
    ProfileSpendingLimitOff ProfileSpendingLimit = "Off"
    // ProfileSpendingLimitOn ...
    ProfileSpendingLimitOn ProfileSpendingLimit = "On"
)

func PossibleProfileSpendingLimitValues Uses

func PossibleProfileSpendingLimitValues() []ProfileSpendingLimit

PossibleProfileSpendingLimitValues returns an array of possible values for the ProfileSpendingLimit const type.

type ProfileStatus Uses

type ProfileStatus string

ProfileStatus enumerates the values for profile status.

const (
    // ProfileStatusActive ...
    ProfileStatusActive ProfileStatus = "Active"
    // ProfileStatusDisabled ...
    ProfileStatusDisabled ProfileStatus = "Disabled"
    // ProfileStatusWarned ...
    ProfileStatusWarned ProfileStatus = "Warned"
)

func PossibleProfileStatusValues Uses

func PossibleProfileStatusValues() []ProfileStatus

PossibleProfileStatusValues returns an array of possible values for the ProfileStatus const type.

type ProfileStatusReasonCode Uses

type ProfileStatusReasonCode string

ProfileStatusReasonCode enumerates the values for profile status reason code.

const (
    // PastDue ...
    PastDue ProfileStatusReasonCode = "PastDue"
    // SpendingLimitExpired ...
    SpendingLimitExpired ProfileStatusReasonCode = "SpendingLimitExpired"
    // SpendingLimitReached ...
    SpendingLimitReached ProfileStatusReasonCode = "SpendingLimitReached"
)

func PossibleProfileStatusReasonCodeValues Uses

func PossibleProfileStatusReasonCodeValues() []ProfileStatusReasonCode

PossibleProfileStatusReasonCodeValues returns an array of possible values for the ProfileStatusReasonCode const type.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ProfilesClient) CreateOrUpdate Uses

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

CreateOrUpdate creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. parameters - the new or updated billing profile.

func (ProfilesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ProfilesClient) CreateOrUpdateResponder Uses

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

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ProfilesClient) CreateOrUpdateSender Uses

func (client ProfilesClient) CreateOrUpdateSender(req *http.Request) (future ProfilesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate 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 gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. billingProfileName - the ID that uniquely identifies a billing profile. expand - may be used to expand the invoice sections.

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) ListByBillingAccount Uses

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

ListByBillingAccount lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. Parameters: billingAccountName - the ID that uniquely identifies a billing account. expand - may be used to expand the invoice sections.

func (ProfilesClient) ListByBillingAccountComplete Uses

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

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

func (ProfilesClient) ListByBillingAccountPreparer Uses

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

ListByBillingAccountPreparer prepares the ListByBillingAccount request.

func (ProfilesClient) ListByBillingAccountResponder Uses

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

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

func (ProfilesClient) ListByBillingAccountSender Uses

func (client ProfilesClient) 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.

type ProfilesCreateOrUpdateFuture Uses

type ProfilesCreateOrUpdateFuture struct {
    azure.FutureAPI
    // Result returns the result of the asynchronous operation.
    // If the operation has not completed it will return an error.
    Result func(ProfilesClient) (Profile, error)
}

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

type ProfilesOnExpand Uses

type ProfilesOnExpand struct {
    // HasMoreResults - READ-ONLY; Indicates whether there are more billing profiles than the ones listed in this collection. The collection lists a maximum of 50 billing profiles. To get all billing profiles, use the list billing profiles API.
    HasMoreResults *bool `json:"hasMoreResults,omitempty"`
    // Value - The billing profiles associated with the billing account.
    Value *[]Profile `json:"value,omitempty"`
}

ProfilesOnExpand the billing profiles associated with the billing account. By default this is not populated, unless it's specified in $expand.

func (ProfilesOnExpand) MarshalJSON Uses

func (poe ProfilesOnExpand) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProfilesOnExpand.

type Property Uses

type Property struct {
    autorest.Response `json:"-"`
    // PropertyProperties - A billing property.
    *PropertyProperties `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.

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 using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PropertyClient) Get Uses

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

Get get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement.

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.

func (PropertyClient) Update Uses

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

Update updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. Parameters: parameters - request parameters that are provided to the update billing property operation.

func (PropertyClient) UpdatePreparer Uses

func (client PropertyClient) UpdatePreparer(ctx context.Context, parameters Property) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (PropertyClient) UpdateResponder Uses

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

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

func (PropertyClient) UpdateSender Uses

func (client PropertyClient) 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 PropertyProperties Uses

type PropertyProperties struct {
    // AccountAdminNotificationEmailAddress - READ-ONLY; The email address on which the account admin gets all Azure notifications.
    AccountAdminNotifi