billing

package
v0.0.0-...-838bff6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Billing client provides access to billing resources for Azure subscriptions.

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type AcceptTransferProperties

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

AcceptTransferProperties request parameters to accept transfer.

type AcceptTransferRequest

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

AcceptTransferRequest request parameters to accept transfer.

func (AcceptTransferRequest) MarshalJSON

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

MarshalJSON is the custom marshaler for AcceptTransferRequest.

func (*AcceptTransferRequest) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for AcceptTransferRequest struct.

type Account

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

Account a billing account resource.

func (Account) MarshalJSON

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

MarshalJSON is the custom marshaler for Account.

func (*Account) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Account struct.

type AccountBillingPermissionsClient

type AccountBillingPermissionsClient struct {
	BaseClient
}

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

func NewAccountBillingPermissionsClient

func NewAccountBillingPermissionsClient(subscriptionID string) AccountBillingPermissionsClient

NewAccountBillingPermissionsClient creates an instance of the AccountBillingPermissionsClient client.

func NewAccountBillingPermissionsClientWithBaseURI

func NewAccountBillingPermissionsClientWithBaseURI(baseURI string, subscriptionID string) AccountBillingPermissionsClient

NewAccountBillingPermissionsClientWithBaseURI creates an instance of the AccountBillingPermissionsClient client.

func (AccountBillingPermissionsClient) List

func (client AccountBillingPermissionsClient) List(ctx context.Context, billingAccountName string) (result PermissionsListResult, err error)

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

func (AccountBillingPermissionsClient) ListPreparer

func (client AccountBillingPermissionsClient) ListPreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListPreparer prepares the List request.

func (AccountBillingPermissionsClient) ListResponder

func (client AccountBillingPermissionsClient) ListResponder(resp *http.Response) (result PermissionsListResult, err error)

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

func (AccountBillingPermissionsClient) ListSender

func (client AccountBillingPermissionsClient) 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 AccountBillingRoleAssignmentClient

type AccountBillingRoleAssignmentClient struct {
	BaseClient
}

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

func NewAccountBillingRoleAssignmentClient

func NewAccountBillingRoleAssignmentClient(subscriptionID string) AccountBillingRoleAssignmentClient

NewAccountBillingRoleAssignmentClient creates an instance of the AccountBillingRoleAssignmentClient client.

func NewAccountBillingRoleAssignmentClientWithBaseURI

func NewAccountBillingRoleAssignmentClientWithBaseURI(baseURI string, subscriptionID string) AccountBillingRoleAssignmentClient

NewAccountBillingRoleAssignmentClientWithBaseURI creates an instance of the AccountBillingRoleAssignmentClient client.

func (AccountBillingRoleAssignmentClient) Add

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

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

func (AccountBillingRoleAssignmentClient) AddPreparer

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

AddPreparer prepares the Add request.

func (AccountBillingRoleAssignmentClient) AddResponder

func (client AccountBillingRoleAssignmentClient) AddResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

AddResponder handles the response to the Add request. The method always closes the http.Response Body.

func (AccountBillingRoleAssignmentClient) AddSender

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

func (AccountBillingRoleAssignmentClient) Delete

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

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

func (AccountBillingRoleAssignmentClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (AccountBillingRoleAssignmentClient) DeleteResponder

func (client AccountBillingRoleAssignmentClient) DeleteResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AccountBillingRoleAssignmentClient) DeleteSender

func (client AccountBillingRoleAssignmentClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (AccountBillingRoleAssignmentClient) Get

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

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

func (AccountBillingRoleAssignmentClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AccountBillingRoleAssignmentClient) GetResponder

func (client AccountBillingRoleAssignmentClient) GetResponder(resp *http.Response) (result RoleAssignment, err error)

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

func (AccountBillingRoleAssignmentClient) GetSender

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

func (AccountBillingRoleAssignmentClient) List

func (client AccountBillingRoleAssignmentClient) List(ctx context.Context, billingAccountName string) (result RoleAssignmentListResult, err error)

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

func (AccountBillingRoleAssignmentClient) ListPreparer

func (client AccountBillingRoleAssignmentClient) ListPreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListPreparer prepares the List request.

func (AccountBillingRoleAssignmentClient) ListResponder

func (client AccountBillingRoleAssignmentClient) ListResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

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

func (AccountBillingRoleAssignmentClient) ListSender

func (client AccountBillingRoleAssignmentClient) 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 AccountBillingRoleDefinitionClient

type AccountBillingRoleDefinitionClient struct {
	BaseClient
}

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

func NewAccountBillingRoleDefinitionClient

func NewAccountBillingRoleDefinitionClient(subscriptionID string) AccountBillingRoleDefinitionClient

NewAccountBillingRoleDefinitionClient creates an instance of the AccountBillingRoleDefinitionClient client.

func NewAccountBillingRoleDefinitionClientWithBaseURI

func NewAccountBillingRoleDefinitionClientWithBaseURI(baseURI string, subscriptionID string) AccountBillingRoleDefinitionClient

NewAccountBillingRoleDefinitionClientWithBaseURI creates an instance of the AccountBillingRoleDefinitionClient client.

func (AccountBillingRoleDefinitionClient) Get

func (client AccountBillingRoleDefinitionClient) Get(ctx context.Context, billingAccountName string, billingRoleDefinitionName string) (result RoleDefinition, err error)

Get gets the role definition for a role Parameters: billingAccountName - billing Account Id. billingRoleDefinitionName - role definition id.

func (AccountBillingRoleDefinitionClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AccountBillingRoleDefinitionClient) GetResponder

func (client AccountBillingRoleDefinitionClient) GetResponder(resp *http.Response) (result RoleDefinition, err error)

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

func (AccountBillingRoleDefinitionClient) GetSender

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

func (AccountBillingRoleDefinitionClient) List

func (client AccountBillingRoleDefinitionClient) List(ctx context.Context, billingAccountName string) (result RoleDefinitionListResult, err error)

List lists the role definition for a billing account Parameters: billingAccountName - billing Account Id.

func (AccountBillingRoleDefinitionClient) ListPreparer

func (client AccountBillingRoleDefinitionClient) ListPreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListPreparer prepares the List request.

func (AccountBillingRoleDefinitionClient) ListResponder

func (client AccountBillingRoleDefinitionClient) ListResponder(resp *http.Response) (result RoleDefinitionListResult, err error)

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

func (AccountBillingRoleDefinitionClient) ListSender

func (client AccountBillingRoleDefinitionClient) 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 AccountListResult

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

AccountListResult result of listing billing accounts.

type AccountProperties

type AccountProperties struct {
	// DisplayName - The billing account name.
	DisplayName *string `json:"displayName,omitempty"`
	// AccountType - The billing account Type. Possible values include: 'AccountTypeOrganization', 'AccountTypeEnrollment'
	AccountType AccountType `json:"accountType,omitempty"`
	// Address - The address associated with billing account.
	Address *Address `json:"address,omitempty"`
	// Company - Company Name.
	Company *string `json:"company,omitempty"`
	// Country - Country Name.
	Country *string `json:"country,omitempty"`
	// InvoiceSections - The invoice sections associated to the billing account. By default this is not populated, unless it's specified in $expand.
	InvoiceSections *[]InvoiceSection `json:"invoiceSections,omitempty"`
	// BillingProfiles - The billing profiles associated to the billing account. By default this is not populated, unless it's specified in $expand.
	BillingProfiles *[]Profile `json:"billingProfiles,omitempty"`
	// EnrollmentDetails - 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 - Specifies whether the user has read access on billing account.
	HasReadAccess *bool `json:"hasReadAccess,omitempty"`
}

AccountProperties the properties of the billing account.

type AccountType

type AccountType string

AccountType enumerates the values for account type.

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

func PossibleAccountTypeValues

func PossibleAccountTypeValues() []AccountType

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

type AccountsClient

type AccountsClient struct {
	BaseClient
}

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

func NewAccountsClient

func NewAccountsClient(subscriptionID string) AccountsClient

NewAccountsClient creates an instance of the AccountsClient client.

func NewAccountsClientWithBaseURI

func NewAccountsClientWithBaseURI(baseURI string, subscriptionID string) AccountsClient

NewAccountsClientWithBaseURI creates an instance of the AccountsClient client.

func (AccountsClient) Get

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

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

func (AccountsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AccountsClient) GetResponder

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

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

func (AccountsClient) GetSender

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

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

func (AccountsClient) List

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

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

func (AccountsClient) ListPreparer

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

ListPreparer prepares the List request.

func (AccountsClient) ListResponder

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

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

func (AccountsClient) ListSender

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

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

type Address

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

Address address details.

type Agreement

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

Agreement an agreement resource.

func (Agreement) MarshalJSON

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

MarshalJSON is the custom marshaler for Agreement.

func (*Agreement) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Agreement struct.

type AgreementListResult

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

AgreementListResult result of listing agreements.

type AgreementProperties

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

AgreementProperties the properties of the agreement.

type AgreementsClient

type AgreementsClient struct {
	BaseClient
}

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

func NewAgreementsClient

func NewAgreementsClient(subscriptionID string) AgreementsClient

NewAgreementsClient creates an instance of the AgreementsClient client.

func NewAgreementsClientWithBaseURI

func NewAgreementsClientWithBaseURI(baseURI string, subscriptionID string) AgreementsClient

NewAgreementsClientWithBaseURI creates an instance of the AgreementsClient client.

func (AgreementsClient) Get

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

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

func (AgreementsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AgreementsClient) GetResponder

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

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

func (AgreementsClient) GetSender

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

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

func (AgreementsClient) ListByBillingAccountName

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

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

func (AgreementsClient) ListByBillingAccountNamePreparer

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

ListByBillingAccountNamePreparer prepares the ListByBillingAccountName request.

func (AgreementsClient) ListByBillingAccountNameResponder

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

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

func (AgreementsClient) ListByBillingAccountNameSender

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

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

type Amount

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

Amount the Amount.

type AvailableBalance

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

AvailableBalance latest available balance on Monetary Credit PI.

func (AvailableBalance) MarshalJSON

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

MarshalJSON is the custom marshaler for AvailableBalance.

func (*AvailableBalance) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for AvailableBalance struct.

type AvailableBalanceByBillingProfileClient

type AvailableBalanceByBillingProfileClient struct {
	BaseClient
}

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

func NewAvailableBalanceByBillingProfileClient

func NewAvailableBalanceByBillingProfileClient(subscriptionID string) AvailableBalanceByBillingProfileClient

NewAvailableBalanceByBillingProfileClient creates an instance of the AvailableBalanceByBillingProfileClient client.

func NewAvailableBalanceByBillingProfileClientWithBaseURI

func NewAvailableBalanceByBillingProfileClientWithBaseURI(baseURI string, subscriptionID string) AvailableBalanceByBillingProfileClient

NewAvailableBalanceByBillingProfileClientWithBaseURI creates an instance of the AvailableBalanceByBillingProfileClient client.

func (AvailableBalanceByBillingProfileClient) Get

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

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

func (AvailableBalanceByBillingProfileClient) GetPreparer

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

GetPreparer prepares the Get request.

func (AvailableBalanceByBillingProfileClient) GetResponder

func (client AvailableBalanceByBillingProfileClient) 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 (AvailableBalanceByBillingProfileClient) GetSender

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

type AvailableBalanceProperties

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

AvailableBalanceProperties the properties of available balance.

type BaseClient

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

BaseClient is the base client for Billing.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

func (BaseClient) UpdateAutoRenewForBillingAccount

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

UpdateAutoRenewForBillingAccount cancel product by product id Parameters: billingAccountName - billing Account Id. productName - invoice Id. body - update auto renew request parameters.

func (BaseClient) UpdateAutoRenewForBillingAccountPreparer

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

UpdateAutoRenewForBillingAccountPreparer prepares the UpdateAutoRenewForBillingAccount request.

func (BaseClient) UpdateAutoRenewForBillingAccountResponder

func (client BaseClient) UpdateAutoRenewForBillingAccountResponder(resp *http.Response) (result UpdateAutoRenewOperationSummary, err error)

UpdateAutoRenewForBillingAccountResponder handles the response to the UpdateAutoRenewForBillingAccount request. The method always closes the http.Response Body.

func (BaseClient) UpdateAutoRenewForBillingAccountSender

func (client BaseClient) UpdateAutoRenewForBillingAccountSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) UpdateAutoRenewForInvoiceSection

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

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

func (BaseClient) UpdateAutoRenewForInvoiceSectionPreparer

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

UpdateAutoRenewForInvoiceSectionPreparer prepares the UpdateAutoRenewForInvoiceSection request.

func (BaseClient) UpdateAutoRenewForInvoiceSectionResponder

func (client BaseClient) UpdateAutoRenewForInvoiceSectionResponder(resp *http.Response) (result UpdateAutoRenewOperationSummary, err error)

UpdateAutoRenewForInvoiceSectionResponder handles the response to the UpdateAutoRenewForInvoiceSection request. The method always closes the http.Response Body.

func (BaseClient) UpdateAutoRenewForInvoiceSectionSender

func (client BaseClient) UpdateAutoRenewForInvoiceSectionSender(req *http.Request) (*http.Response, error)

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

type Department

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

Department a department resource.

func (Department) MarshalJSON

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

MarshalJSON is the custom marshaler for Department.

func (*Department) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Department struct.

type DepartmentListResult

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

DepartmentListResult result of listing departments.

type DepartmentProperties

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

DepartmentProperties the properties of the department.

type DepartmentsByBillingAccountNameClient

type DepartmentsByBillingAccountNameClient struct {
	BaseClient
}

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

func NewDepartmentsByBillingAccountNameClient

func NewDepartmentsByBillingAccountNameClient(subscriptionID string) DepartmentsByBillingAccountNameClient

NewDepartmentsByBillingAccountNameClient creates an instance of the DepartmentsByBillingAccountNameClient client.

func NewDepartmentsByBillingAccountNameClientWithBaseURI

func NewDepartmentsByBillingAccountNameClientWithBaseURI(baseURI string, subscriptionID string) DepartmentsByBillingAccountNameClient

NewDepartmentsByBillingAccountNameClientWithBaseURI creates an instance of the DepartmentsByBillingAccountNameClient client.

func (DepartmentsByBillingAccountNameClient) List

func (client DepartmentsByBillingAccountNameClient) List(ctx context.Context, billingAccountName string, expand string, filter string) (result DepartmentListResult, err error)

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

func (DepartmentsByBillingAccountNameClient) ListPreparer

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

ListPreparer prepares the List request.

func (DepartmentsByBillingAccountNameClient) ListResponder

func (client DepartmentsByBillingAccountNameClient) ListResponder(resp *http.Response) (result DepartmentListResult, err error)

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

func (DepartmentsByBillingAccountNameClient) ListSender

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

type DepartmentsClient

type DepartmentsClient struct {
	BaseClient
}

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

func NewDepartmentsClient

func NewDepartmentsClient(subscriptionID string) DepartmentsClient

NewDepartmentsClient creates an instance of the DepartmentsClient client.

func NewDepartmentsClientWithBaseURI

func NewDepartmentsClientWithBaseURI(baseURI string, subscriptionID string) DepartmentsClient

NewDepartmentsClientWithBaseURI creates an instance of the DepartmentsClient client.

func (DepartmentsClient) Get

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

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

func (DepartmentsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DepartmentsClient) GetResponder

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

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

func (DepartmentsClient) GetSender

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

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

type DetailedTransferStatus

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

DetailedTransferStatus detailed transfer status.

type DownloadProperties

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

DownloadProperties the properties of the invoice download.

type DownloadURL

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

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

type EligibleProductType

type EligibleProductType string

EligibleProductType enumerates the values for eligible product type.

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

func PossibleEligibleProductTypeValues

func PossibleEligibleProductTypeValues() []EligibleProductType

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

type EnabledAzureSKUs

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

EnabledAzureSKUs details about the enabled azure sku.

type Enrollment

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

Enrollment current entity level details

type EnrollmentAccount

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

EnrollmentAccount an account resource.

func (EnrollmentAccount) MarshalJSON

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

MarshalJSON is the custom marshaler for EnrollmentAccount.

func (*EnrollmentAccount) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for EnrollmentAccount struct.

type EnrollmentAccountContext

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

EnrollmentAccountContext the rating context.

type EnrollmentAccountListResult

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

EnrollmentAccountListResult result of listing enrollment accounts.

type EnrollmentAccountProperties

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

EnrollmentAccountProperties the properties of the account.

type EnrollmentAccountsByBillingAccountNameClient

type EnrollmentAccountsByBillingAccountNameClient struct {
	BaseClient
}

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

func NewEnrollmentAccountsByBillingAccountNameClient

func NewEnrollmentAccountsByBillingAccountNameClient(subscriptionID string) EnrollmentAccountsByBillingAccountNameClient

NewEnrollmentAccountsByBillingAccountNameClient creates an instance of the EnrollmentAccountsByBillingAccountNameClient client.

func NewEnrollmentAccountsByBillingAccountNameClientWithBaseURI

func NewEnrollmentAccountsByBillingAccountNameClientWithBaseURI(baseURI string, subscriptionID string) EnrollmentAccountsByBillingAccountNameClient

NewEnrollmentAccountsByBillingAccountNameClientWithBaseURI creates an instance of the EnrollmentAccountsByBillingAccountNameClient client.

func (EnrollmentAccountsByBillingAccountNameClient) List

func (client EnrollmentAccountsByBillingAccountNameClient) List(ctx context.Context, billingAccountName string, expand string, filter string) (result EnrollmentAccountListResult, err error)

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

func (EnrollmentAccountsByBillingAccountNameClient) ListPreparer

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

ListPreparer prepares the List request.

func (EnrollmentAccountsByBillingAccountNameClient) ListResponder

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

func (EnrollmentAccountsByBillingAccountNameClient) ListSender

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

type EnrollmentAccountsClient

type EnrollmentAccountsClient struct {
	BaseClient
}

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

func NewEnrollmentAccountsClient

func NewEnrollmentAccountsClient(subscriptionID string) EnrollmentAccountsClient

NewEnrollmentAccountsClient creates an instance of the EnrollmentAccountsClient client.

func NewEnrollmentAccountsClientWithBaseURI

func NewEnrollmentAccountsClientWithBaseURI(baseURI string, subscriptionID string) EnrollmentAccountsClient

NewEnrollmentAccountsClientWithBaseURI creates an instance of the EnrollmentAccountsClient client.

func (EnrollmentAccountsClient) GetByEnrollmentAccountAccountID

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

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

func (EnrollmentAccountsClient) GetByEnrollmentAccountAccountIDPreparer

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

GetByEnrollmentAccountAccountIDPreparer prepares the GetByEnrollmentAccountAccountID request.

func (EnrollmentAccountsClient) GetByEnrollmentAccountAccountIDResponder

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

GetByEnrollmentAccountAccountIDResponder handles the response to the GetByEnrollmentAccountAccountID request. The method always closes the http.Response Body.

func (EnrollmentAccountsClient) GetByEnrollmentAccountAccountIDSender

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

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

type EnrollmentPolicies

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

EnrollmentPolicies the attributes associated with legacy enrollment

type Error

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

Error error details for transfer execution.

type ErrorDetails

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

ErrorDetails the details of the error.

type ErrorResponse

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

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

type Frequency

type Frequency string

Frequency enumerates the values for frequency.

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

func PossibleFrequencyValues

func PossibleFrequencyValues() []Frequency

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

type InitiateTransferProperties

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

InitiateTransferProperties request parameters to initiate transfer.

type InitiateTransferRequest

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

InitiateTransferRequest request parameters to initiate transfer.

func (InitiateTransferRequest) MarshalJSON

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

MarshalJSON is the custom marshaler for InitiateTransferRequest.

func (*InitiateTransferRequest) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for InitiateTransferRequest struct.

type InvoiceClient

type InvoiceClient struct {
	BaseClient
}

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

func NewInvoiceClient

func NewInvoiceClient(subscriptionID string) InvoiceClient

NewInvoiceClient creates an instance of the InvoiceClient client.

func NewInvoiceClientWithBaseURI

func NewInvoiceClientWithBaseURI(baseURI string, subscriptionID string) InvoiceClient

NewInvoiceClientWithBaseURI creates an instance of the InvoiceClient client.

func (InvoiceClient) Get

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

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

func (InvoiceClient) GetPreparer

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

GetPreparer prepares the Get request.

func (InvoiceClient) GetResponder

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

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

func (InvoiceClient) GetSender

func (client InvoiceClient) 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 InvoiceListResult

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

InvoiceListResult result of listing invoices.

type InvoicePricesheetClient

type InvoicePricesheetClient struct {
	BaseClient
}

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

func NewInvoicePricesheetClient

func NewInvoicePricesheetClient(subscriptionID string) InvoicePricesheetClient

NewInvoicePricesheetClient creates an instance of the InvoicePricesheetClient client.

func NewInvoicePricesheetClientWithBaseURI

func NewInvoicePricesheetClientWithBaseURI(baseURI string, subscriptionID string) InvoicePricesheetClient

NewInvoicePricesheetClientWithBaseURI creates an instance of the InvoicePricesheetClient client.

func (InvoicePricesheetClient) Download

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

Download get pricesheet data for invoice id (invoiceName). Parameters: billingAccountName - azure Billing Account ID. invoiceName - the name of an invoice resource.

func (InvoicePricesheetClient) DownloadPreparer

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

DownloadPreparer prepares the Download request.

func (InvoicePricesheetClient) DownloadResponder

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

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

func (InvoicePricesheetClient) DownloadSender

func (client InvoicePricesheetClient) DownloadSender(req *http.Request) (future InvoicePricesheetDownloadFuture, err error)

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

type InvoicePricesheetDownloadFuture

type InvoicePricesheetDownloadFuture struct {
	azure.Future
}

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

func (*InvoicePricesheetDownloadFuture) Result

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

type InvoiceSection

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

InvoiceSection an InvoiceSection resource.

func (InvoiceSection) MarshalJSON

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

MarshalJSON is the custom marshaler for InvoiceSection.

func (*InvoiceSection) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for InvoiceSection struct.

type InvoiceSectionBillingRoleAssignmentClient

type InvoiceSectionBillingRoleAssignmentClient struct {
	BaseClient
}

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

func NewInvoiceSectionBillingRoleAssignmentClient

func NewInvoiceSectionBillingRoleAssignmentClient(subscriptionID string) InvoiceSectionBillingRoleAssignmentClient

NewInvoiceSectionBillingRoleAssignmentClient creates an instance of the InvoiceSectionBillingRoleAssignmentClient client.

func NewInvoiceSectionBillingRoleAssignmentClientWithBaseURI

func NewInvoiceSectionBillingRoleAssignmentClientWithBaseURI(baseURI string, subscriptionID string) InvoiceSectionBillingRoleAssignmentClient

NewInvoiceSectionBillingRoleAssignmentClientWithBaseURI creates an instance of the InvoiceSectionBillingRoleAssignmentClient client.

func (InvoiceSectionBillingRoleAssignmentClient) Add

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

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

func (InvoiceSectionBillingRoleAssignmentClient) AddPreparer

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

AddPreparer prepares the Add request.

func (InvoiceSectionBillingRoleAssignmentClient) AddResponder

AddResponder handles the response to the Add request. The method always closes the http.Response Body.

func (InvoiceSectionBillingRoleAssignmentClient) AddSender

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

func (InvoiceSectionBillingRoleAssignmentClient) Delete

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

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

func (InvoiceSectionBillingRoleAssignmentClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (InvoiceSectionBillingRoleAssignmentClient) DeleteResponder

func (client InvoiceSectionBillingRoleAssignmentClient) DeleteResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (InvoiceSectionBillingRoleAssignmentClient) DeleteSender

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

func (InvoiceSectionBillingRoleAssignmentClient) Get

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

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

func (InvoiceSectionBillingRoleAssignmentClient) GetPreparer

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

GetPreparer prepares the Get request.

func (InvoiceSectionBillingRoleAssignmentClient) GetResponder

func (client InvoiceSectionBillingRoleAssignmentClient) GetResponder(resp *http.Response) (result RoleAssignment, err error)

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

func (InvoiceSectionBillingRoleAssignmentClient) GetSender

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

func (InvoiceSectionBillingRoleAssignmentClient) List

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

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

func (InvoiceSectionBillingRoleAssignmentClient) ListPreparer

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

ListPreparer prepares the List request.

func (InvoiceSectionBillingRoleAssignmentClient) ListResponder

func (client InvoiceSectionBillingRoleAssignmentClient) ListResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

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

func (InvoiceSectionBillingRoleAssignmentClient) ListSender

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

type InvoiceSectionBillingRoleDefinitionClient

type InvoiceSectionBillingRoleDefinitionClient struct {
	BaseClient
}

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

func NewInvoiceSectionBillingRoleDefinitionClient

func NewInvoiceSectionBillingRoleDefinitionClient(subscriptionID string) InvoiceSectionBillingRoleDefinitionClient

NewInvoiceSectionBillingRoleDefinitionClient creates an instance of the InvoiceSectionBillingRoleDefinitionClient client.

func NewInvoiceSectionBillingRoleDefinitionClientWithBaseURI

func NewInvoiceSectionBillingRoleDefinitionClientWithBaseURI(baseURI string, subscriptionID string) InvoiceSectionBillingRoleDefinitionClient

NewInvoiceSectionBillingRoleDefinitionClientWithBaseURI creates an instance of the InvoiceSectionBillingRoleDefinitionClient client.

func (InvoiceSectionBillingRoleDefinitionClient) Get

func (client InvoiceSectionBillingRoleDefinitionClient) Get(ctx context.Context, billingAccountName string, invoiceSectionName string, billingRoleDefinitionName string) (result RoleDefinition, err error)

Get gets the role definition for a role Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingRoleDefinitionName - role definition id.

func (InvoiceSectionBillingRoleDefinitionClient) GetPreparer

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

GetPreparer prepares the Get request.

func (InvoiceSectionBillingRoleDefinitionClient) GetResponder

func (client InvoiceSectionBillingRoleDefinitionClient) GetResponder(resp *http.Response) (result RoleDefinition, err error)

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

func (InvoiceSectionBillingRoleDefinitionClient) GetSender

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

func (InvoiceSectionBillingRoleDefinitionClient) List

func (client InvoiceSectionBillingRoleDefinitionClient) List(ctx context.Context, billingAccountName string, invoiceSectionName string) (result RoleDefinitionListResult, err error)

List lists the role definition for a invoice Section Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (InvoiceSectionBillingRoleDefinitionClient) ListPreparer

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

ListPreparer prepares the List request.

func (InvoiceSectionBillingRoleDefinitionClient) ListResponder

func (client InvoiceSectionBillingRoleDefinitionClient) ListResponder(resp *http.Response) (result RoleDefinitionListResult, err error)

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

func (InvoiceSectionBillingRoleDefinitionClient) ListSender

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

type InvoiceSectionListResult

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

InvoiceSectionListResult result of listing invoice sections.

type InvoiceSectionProperties

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

InvoiceSectionProperties the properties of an InvoiceSection.

type InvoiceSectionsBillingPermissionsClient

type InvoiceSectionsBillingPermissionsClient struct {
	BaseClient
}

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

func NewInvoiceSectionsBillingPermissionsClient

func NewInvoiceSectionsBillingPermissionsClient(subscriptionID string) InvoiceSectionsBillingPermissionsClient

NewInvoiceSectionsBillingPermissionsClient creates an instance of the InvoiceSectionsBillingPermissionsClient client.

func NewInvoiceSectionsBillingPermissionsClientWithBaseURI

func NewInvoiceSectionsBillingPermissionsClientWithBaseURI(baseURI string, subscriptionID string) InvoiceSectionsBillingPermissionsClient

NewInvoiceSectionsBillingPermissionsClientWithBaseURI creates an instance of the InvoiceSectionsBillingPermissionsClient client.

func (InvoiceSectionsBillingPermissionsClient) List

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

List lists all billingPermissions for the caller has for a Invoice Section. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (InvoiceSectionsBillingPermissionsClient) ListPreparer

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

ListPreparer prepares the List request.

func (InvoiceSectionsBillingPermissionsClient) ListResponder

func (client InvoiceSectionsBillingPermissionsClient) ListResponder(resp *http.Response) (result PermissionsListResult, err error)

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

func (InvoiceSectionsBillingPermissionsClient) ListSender

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

type InvoiceSectionsByBillingAccountNameClient

type InvoiceSectionsByBillingAccountNameClient struct {
	BaseClient
}

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

func NewInvoiceSectionsByBillingAccountNameClient

func NewInvoiceSectionsByBillingAccountNameClient(subscriptionID string) InvoiceSectionsByBillingAccountNameClient

NewInvoiceSectionsByBillingAccountNameClient creates an instance of the InvoiceSectionsByBillingAccountNameClient client.

func NewInvoiceSectionsByBillingAccountNameClientWithBaseURI

func NewInvoiceSectionsByBillingAccountNameClientWithBaseURI(baseURI string, subscriptionID string) InvoiceSectionsByBillingAccountNameClient

NewInvoiceSectionsByBillingAccountNameClientWithBaseURI creates an instance of the InvoiceSectionsByBillingAccountNameClient client.

func (InvoiceSectionsByBillingAccountNameClient) List

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

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

func (InvoiceSectionsByBillingAccountNameClient) ListPreparer

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

ListPreparer prepares the List request.

func (InvoiceSectionsByBillingAccountNameClient) ListResponder

func (client InvoiceSectionsByBillingAccountNameClient) ListResponder(resp *http.Response) (result InvoiceSectionListResult, err error)

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

func (InvoiceSectionsByBillingAccountNameClient) ListSender

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

type InvoiceSectionsClient

type InvoiceSectionsClient struct {
	BaseClient
}

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

func NewInvoiceSectionsClient

func NewInvoiceSectionsClient(subscriptionID string) InvoiceSectionsClient

NewInvoiceSectionsClient creates an instance of the InvoiceSectionsClient client.

func NewInvoiceSectionsClientWithBaseURI

func NewInvoiceSectionsClientWithBaseURI(baseURI string, subscriptionID string) InvoiceSectionsClient

NewInvoiceSectionsClientWithBaseURI creates an instance of the InvoiceSectionsClient client.

func (InvoiceSectionsClient) Create

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

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

func (InvoiceSectionsClient) CreatePreparer

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

CreatePreparer prepares the Create request.

func (InvoiceSectionsClient) CreateResponder

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

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

func (InvoiceSectionsClient) CreateSender

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

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

func (InvoiceSectionsClient) ElevateToBillingProfile

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

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

func (InvoiceSectionsClient) ElevateToBillingProfilePreparer

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

ElevateToBillingProfilePreparer prepares the ElevateToBillingProfile request.

func (InvoiceSectionsClient) ElevateToBillingProfileResponder

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

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

func (InvoiceSectionsClient) ElevateToBillingProfileSender

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

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

func (InvoiceSectionsClient) Get

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

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

func (InvoiceSectionsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (InvoiceSectionsClient) GetResponder

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

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

func (InvoiceSectionsClient) GetSender

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

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

func (InvoiceSectionsClient) ListByBillingProfileName

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

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

func (InvoiceSectionsClient) ListByBillingProfileNamePreparer

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

ListByBillingProfileNamePreparer prepares the ListByBillingProfileName request.

func (InvoiceSectionsClient) ListByBillingProfileNameResponder

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

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

func (InvoiceSectionsClient) ListByBillingProfileNameSender

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

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

func (InvoiceSectionsClient) Update

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

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

func (InvoiceSectionsClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (InvoiceSectionsClient) UpdateResponder

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

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

func (InvoiceSectionsClient) UpdateSender

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

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

type InvoiceSectionsCreateFuture

type InvoiceSectionsCreateFuture struct {
	azure.Future
}

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

func (*InvoiceSectionsCreateFuture) Result

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

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

type InvoiceSectionsUpdateFuture

type InvoiceSectionsUpdateFuture struct {
	azure.Future
}

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

func (*InvoiceSectionsUpdateFuture) Result

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

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

type InvoiceSectionsWithCreateSubscriptionPermissionClient

type InvoiceSectionsWithCreateSubscriptionPermissionClient struct {
	BaseClient
}

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

func NewInvoiceSectionsWithCreateSubscriptionPermissionClient

func NewInvoiceSectionsWithCreateSubscriptionPermissionClient(subscriptionID string) InvoiceSectionsWithCreateSubscriptionPermissionClient

NewInvoiceSectionsWithCreateSubscriptionPermissionClient creates an instance of the InvoiceSectionsWithCreateSubscriptionPermissionClient client.

func NewInvoiceSectionsWithCreateSubscriptionPermissionClientWithBaseURI

func NewInvoiceSectionsWithCreateSubscriptionPermissionClientWithBaseURI(baseURI string, subscriptionID string) InvoiceSectionsWithCreateSubscriptionPermissionClient

NewInvoiceSectionsWithCreateSubscriptionPermissionClientWithBaseURI creates an instance of the InvoiceSectionsWithCreateSubscriptionPermissionClient client.

func (InvoiceSectionsWithCreateSubscriptionPermissionClient) List

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

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

func (InvoiceSectionsWithCreateSubscriptionPermissionClient) ListPreparer

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

ListPreparer prepares the List request.

func (InvoiceSectionsWithCreateSubscriptionPermissionClient) ListResponder

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

func (InvoiceSectionsWithCreateSubscriptionPermissionClient) ListSender

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

type InvoiceSummary

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

InvoiceSummary an invoice resource.

func (InvoiceSummary) MarshalJSON

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

MarshalJSON is the custom marshaler for InvoiceSummary.

func (*InvoiceSummary) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for InvoiceSummary struct.

type InvoiceSummaryProperties

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

InvoiceSummaryProperties the properties of the invoice.

type InvoicesByBillingAccountClient

type InvoicesByBillingAccountClient struct {
	BaseClient
}

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

func NewInvoicesByBillingAccountClient

func NewInvoicesByBillingAccountClient(subscriptionID string) InvoicesByBillingAccountClient

NewInvoicesByBillingAccountClient creates an instance of the InvoicesByBillingAccountClient client.

func NewInvoicesByBillingAccountClientWithBaseURI

func NewInvoicesByBillingAccountClientWithBaseURI(baseURI string, subscriptionID string) InvoicesByBillingAccountClient

NewInvoicesByBillingAccountClientWithBaseURI creates an instance of the InvoicesByBillingAccountClient client.

func (InvoicesByBillingAccountClient) List

func (client InvoicesByBillingAccountClient) List(ctx context.Context, billingAccountName string, periodStartDate string, periodEndDate string) (result InvoiceListResult, err error)

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

func (InvoicesByBillingAccountClient) ListPreparer

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

ListPreparer prepares the List request.

func (InvoicesByBillingAccountClient) ListResponder

func (client InvoicesByBillingAccountClient) ListResponder(resp *http.Response) (result InvoiceListResult, err error)

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

func (InvoicesByBillingAccountClient) ListSender

func (client InvoicesByBillingAccountClient) 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 InvoicesByBillingProfileClient

type InvoicesByBillingProfileClient struct {
	BaseClient
}

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

func NewInvoicesByBillingProfileClient

func NewInvoicesByBillingProfileClient(subscriptionID string) InvoicesByBillingProfileClient

NewInvoicesByBillingProfileClient creates an instance of the InvoicesByBillingProfileClient client.

func NewInvoicesByBillingProfileClientWithBaseURI

func NewInvoicesByBillingProfileClientWithBaseURI(baseURI string, subscriptionID string) InvoicesByBillingProfileClient

NewInvoicesByBillingProfileClientWithBaseURI creates an instance of the InvoicesByBillingProfileClient client.

func (InvoicesByBillingProfileClient) List

func (client InvoicesByBillingProfileClient) List(ctx context.Context, billingAccountName string, billingProfileName string, periodStartDate string, periodEndDate string) (result InvoiceListResult, err error)

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

func (InvoicesByBillingProfileClient) ListPreparer

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

ListPreparer prepares the List request.

func (InvoicesByBillingProfileClient) ListResponder

func (client InvoicesByBillingProfileClient) ListResponder(resp *http.Response) (result InvoiceListResult, err error)

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

func (InvoicesByBillingProfileClient) ListSender

func (client InvoicesByBillingProfileClient) 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 Kind

type Kind string

Kind enumerates the values for kind.

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

func PossibleKindValues

func PossibleKindValues() []Kind

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

type Operation

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

Operation a Billing REST API operation.

type OperationDisplay

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

OperationDisplay the object that represents the operation.

type OperationListResult

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

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

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

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

func (*OperationListResultIterator) NextWithContext

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

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

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response

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

func (OperationListResultIterator) Value

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

type OperationListResultPage

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

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

func (*OperationListResultPage) NextWithContext

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

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

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response

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

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

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

type OperationStatus

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

OperationStatus status of the Billing POST/PUT operation.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

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

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

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

List lists all of the available billing REST API operations.

func (OperationsClient) ListComplete

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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

func (OperationsClient) ListSender

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

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

type Participants

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

Participants details about the participant or signer.

type PaymentMethod

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

PaymentMethod a payment method resource.

func (PaymentMethod) MarshalJSON

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

MarshalJSON is the custom marshaler for PaymentMethod.

func (*PaymentMethod) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for PaymentMethod struct.

type PaymentMethodProperties

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

PaymentMethodProperties the properties of the payment method.

type PaymentMethodType

type PaymentMethodType string

PaymentMethodType enumerates the values for payment method type.

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

func PossiblePaymentMethodTypeValues

func PossiblePaymentMethodTypeValues() []PaymentMethodType

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

type PaymentMethodsByBillingProfileClient

type PaymentMethodsByBillingProfileClient struct {
	BaseClient
}

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

func NewPaymentMethodsByBillingProfileClient

func NewPaymentMethodsByBillingProfileClient(subscriptionID string) PaymentMethodsByBillingProfileClient

NewPaymentMethodsByBillingProfileClient creates an instance of the PaymentMethodsByBillingProfileClient client.

func NewPaymentMethodsByBillingProfileClientWithBaseURI

func NewPaymentMethodsByBillingProfileClientWithBaseURI(baseURI string, subscriptionID string) PaymentMethodsByBillingProfileClient

NewPaymentMethodsByBillingProfileClientWithBaseURI creates an instance of the PaymentMethodsByBillingProfileClient client.

func (PaymentMethodsByBillingProfileClient) List

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

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

func (PaymentMethodsByBillingProfileClient) ListComplete

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

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

func (PaymentMethodsByBillingProfileClient) ListPreparer

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

ListPreparer prepares the List request.

func (PaymentMethodsByBillingProfileClient) ListResponder

func (client PaymentMethodsByBillingProfileClient) ListResponder(resp *http.Response) (result PaymentMethodsListResult, err error)

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

func (PaymentMethodsByBillingProfileClient) ListSender

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

type PaymentMethodsListResult

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

PaymentMethodsListResult result of listing payment methods.

func (PaymentMethodsListResult) IsEmpty

func (pmlr PaymentMethodsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PaymentMethodsListResultIterator

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

PaymentMethodsListResultIterator provides access to a complete listing of PaymentMethod values.

func NewPaymentMethodsListResultIterator

func NewPaymentMethodsListResultIterator(page PaymentMethodsListResultPage) PaymentMethodsListResultIterator

Creates a new instance of the PaymentMethodsListResultIterator type.

func (*PaymentMethodsListResultIterator) Next

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

func (*PaymentMethodsListResultIterator) NextWithContext

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

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

func (PaymentMethodsListResultIterator) NotDone

func (iter PaymentMethodsListResultIterator) NotDone() bool

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

func (PaymentMethodsListResultIterator) Response

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

func (PaymentMethodsListResultIterator) Value

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

type PaymentMethodsListResultPage

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

PaymentMethodsListResultPage contains a page of PaymentMethod values.

func NewPaymentMethodsListResultPage

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

Creates a new instance of the PaymentMethodsListResultPage type.

func (*PaymentMethodsListResultPage) Next

func (page *PaymentMethodsListResultPage) Next() error

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

func (*PaymentMethodsListResultPage) NextWithContext

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

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

func (PaymentMethodsListResultPage) NotDone

func (page PaymentMethodsListResultPage) NotDone() bool

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

func (PaymentMethodsListResultPage) Response

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

func (PaymentMethodsListResultPage) Values

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

type PaymentProperties

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

PaymentProperties the properties of the payment.

type Permissions

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

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

type PermissionsListResult

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

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

type Policy

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

Policy the Policy.

func (Policy) MarshalJSON

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

MarshalJSON is the custom marshaler for Policy.

func (*Policy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Policy struct.

type PolicyClient

type PolicyClient struct {
	BaseClient
}

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

func NewPolicyClient

func NewPolicyClient(subscriptionID string) PolicyClient

NewPolicyClient creates an instance of the PolicyClient client.

func NewPolicyClientWithBaseURI

func NewPolicyClientWithBaseURI(baseURI string, subscriptionID string) PolicyClient

NewPolicyClientWithBaseURI creates an instance of the PolicyClient client.

func (PolicyClient) GetByBillingProfile

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

GetByBillingProfile the policy for a given billingAccountName and billingProfileName. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (PolicyClient) GetByBillingProfilePreparer

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

GetByBillingProfilePreparer prepares the GetByBillingProfile request.

func (PolicyClient) GetByBillingProfileResponder

func (client PolicyClient) 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 (PolicyClient) GetByBillingProfileSender

func (client PolicyClient) 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 (PolicyClient) Update

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

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

func (PolicyClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (PolicyClient) UpdateResponder

func (client PolicyClient) 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 (PolicyClient) UpdateSender

func (client PolicyClient) 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 PolicyProperties

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

PolicyProperties the properties of policy.

type ProductDetails

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

ProductDetails details of the product to be transferred.

type ProductStatusType

type ProductStatusType string

ProductStatusType enumerates the values for product status type.

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

func PossibleProductStatusTypeValues

func PossibleProductStatusTypeValues() []ProductStatusType

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

type ProductSummary

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

ProductSummary a product summary resource.

func (ProductSummary) MarshalJSON

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

MarshalJSON is the custom marshaler for ProductSummary.

func (*ProductSummary) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ProductSummary struct.

type ProductSummaryProperties

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

ProductSummaryProperties the properties of the product summary.

type ProductTransferStatus

type ProductTransferStatus string

ProductTransferStatus enumerates the values for product transfer status.

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

func PossibleProductTransferStatusValues

func PossibleProductTransferStatusValues() []ProductTransferStatus

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

type ProductType

type ProductType string

ProductType enumerates the values for product type.

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

func PossibleProductTypeValues

func PossibleProductTypeValues() []ProductType

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

type ProductsByBillingAccountClient

type ProductsByBillingAccountClient struct {
	BaseClient
}

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

func NewProductsByBillingAccountClient

func NewProductsByBillingAccountClient(subscriptionID string) ProductsByBillingAccountClient

NewProductsByBillingAccountClient creates an instance of the ProductsByBillingAccountClient client.

func NewProductsByBillingAccountClientWithBaseURI

func NewProductsByBillingAccountClientWithBaseURI(baseURI string, subscriptionID string) ProductsByBillingAccountClient

NewProductsByBillingAccountClientWithBaseURI creates an instance of the ProductsByBillingAccountClient client.

func (ProductsByBillingAccountClient) List

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

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

func (ProductsByBillingAccountClient) ListComplete

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

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

func (ProductsByBillingAccountClient) ListPreparer

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

ListPreparer prepares the List request.

func (ProductsByBillingAccountClient) ListResponder

func (client ProductsByBillingAccountClient) ListResponder(resp *http.Response) (result ProductsListResult, err error)

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

func (ProductsByBillingAccountClient) ListSender

func (client ProductsByBillingAccountClient) 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 ProductsByBillingSubscriptionsClient

type ProductsByBillingSubscriptionsClient struct {
	BaseClient
}

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

func NewProductsByBillingSubscriptionsClient

func NewProductsByBillingSubscriptionsClient(subscriptionID string) ProductsByBillingSubscriptionsClient

NewProductsByBillingSubscriptionsClient creates an instance of the ProductsByBillingSubscriptionsClient client.

func NewProductsByBillingSubscriptionsClientWithBaseURI

func NewProductsByBillingSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ProductsByBillingSubscriptionsClient

NewProductsByBillingSubscriptionsClientWithBaseURI creates an instance of the ProductsByBillingSubscriptionsClient client.

func (ProductsByBillingSubscriptionsClient) List

func (client ProductsByBillingSubscriptionsClient) List(ctx context.Context, billingAccountName string) (result SubscriptionsListResultPage, err error)

List lists billing subscriptions by billingAccountName. Parameters: billingAccountName - billing Account Id.

func (ProductsByBillingSubscriptionsClient) ListComplete

func (client ProductsByBillingSubscriptionsClient) ListComplete(ctx context.Context, billingAccountName string) (result SubscriptionsListResultIterator, err error)

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

func (ProductsByBillingSubscriptionsClient) ListPreparer

func (client ProductsByBillingSubscriptionsClient) ListPreparer(ctx context.Context, billingAccountName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ProductsByBillingSubscriptionsClient) ListResponder

func (client ProductsByBillingSubscriptionsClient) ListResponder(resp *http.Response) (result SubscriptionsListResult, err error)

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

func (ProductsByBillingSubscriptionsClient) ListSender

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

type ProductsByInvoiceSectionClient

type ProductsByInvoiceSectionClient struct {
	BaseClient
}

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

func NewProductsByInvoiceSectionClient

func NewProductsByInvoiceSectionClient(subscriptionID string) ProductsByInvoiceSectionClient

NewProductsByInvoiceSectionClient creates an instance of the ProductsByInvoiceSectionClient client.

func NewProductsByInvoiceSectionClientWithBaseURI

func NewProductsByInvoiceSectionClientWithBaseURI(baseURI string, subscriptionID string) ProductsByInvoiceSectionClient

NewProductsByInvoiceSectionClientWithBaseURI creates an instance of the ProductsByInvoiceSectionClient client.

func (ProductsByInvoiceSectionClient) List

func (client ProductsByInvoiceSectionClient) List(ctx context.Context, billingAccountName string, invoiceSectionName string, filter string) (result ProductsListResult, err error)

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

func (ProductsByInvoiceSectionClient) ListPreparer

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

ListPreparer prepares the List request.

func (ProductsByInvoiceSectionClient) ListResponder

func (client ProductsByInvoiceSectionClient) ListResponder(resp *http.Response) (result ProductsListResult, err error)

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

func (ProductsByInvoiceSectionClient) ListSender

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

type ProductsClient struct {
	BaseClient
}

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

func NewProductsClient

func NewProductsClient(subscriptionID string) ProductsClient

NewProductsClient creates an instance of the ProductsClient client.

func NewProductsClientWithBaseURI

func NewProductsClientWithBaseURI(baseURI string, subscriptionID string) ProductsClient

NewProductsClientWithBaseURI creates an instance of the ProductsClient client.

func (ProductsClient) Get

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

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

func (ProductsClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ProductsClient) GetResponder

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

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

func (ProductsClient) GetSender

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

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

func (ProductsClient) Transfer

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

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

func (ProductsClient) TransferPreparer

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

TransferPreparer prepares the Transfer request.

func (ProductsClient) TransferResponder

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

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

func (ProductsClient) TransferSender

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

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

type ProductsListResult

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

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

func (ProductsListResult) IsEmpty

func (plr ProductsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ProductsListResultIterator

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

ProductsListResultIterator provides access to a complete listing of ProductSummary values.

func NewProductsListResultIterator

func NewProductsListResultIterator(page ProductsListResultPage) ProductsListResultIterator

Creates a new instance of the ProductsListResultIterator type.

func (*ProductsListResultIterator) Next

func (iter *ProductsListResultIterator) Next() error

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

func (*ProductsListResultIterator) NextWithContext

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

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

func (ProductsListResultIterator) NotDone

func (iter ProductsListResultIterator) NotDone() bool

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

func (ProductsListResultIterator) Response

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

func (ProductsListResultIterator) Value

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

type ProductsListResultPage

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

ProductsListResultPage contains a page of ProductSummary values.

func NewProductsListResultPage

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

Creates a new instance of the ProductsListResultPage type.

func (*ProductsListResultPage) Next

func (page *ProductsListResultPage) Next() error

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

func (*ProductsListResultPage) NextWithContext

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

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

func (ProductsListResultPage) NotDone

func (page ProductsListResultPage) NotDone() bool

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

func (ProductsListResultPage) Response

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

func (ProductsListResultPage) Values

func (page ProductsListResultPage) Values() []ProductSummary

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

type Profile

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

Profile a billing profile resource.

func (Profile) MarshalJSON

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

MarshalJSON is the custom marshaler for Profile.

func (*Profile) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Profile struct.

type ProfileBillingPermissionsClient

type ProfileBillingPermissionsClient struct {
	BaseClient
}

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

func NewProfileBillingPermissionsClient

func NewProfileBillingPermissionsClient(subscriptionID string) ProfileBillingPermissionsClient

NewProfileBillingPermissionsClient creates an instance of the ProfileBillingPermissionsClient client.

func NewProfileBillingPermissionsClientWithBaseURI

func NewProfileBillingPermissionsClientWithBaseURI(baseURI string, subscriptionID string) ProfileBillingPermissionsClient

NewProfileBillingPermissionsClientWithBaseURI creates an instance of the ProfileBillingPermissionsClient client.

func (ProfileBillingPermissionsClient) List

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

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

func (ProfileBillingPermissionsClient) ListPreparer

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

ListPreparer prepares the List request.

func (ProfileBillingPermissionsClient) ListResponder

func (client ProfileBillingPermissionsClient) ListResponder(resp *http.Response) (result PermissionsListResult, err error)

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

func (ProfileBillingPermissionsClient) ListSender

func (client ProfileBillingPermissionsClient) 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 ProfileBillingRoleAssignmentClient

type ProfileBillingRoleAssignmentClient struct {
	BaseClient
}

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

func NewProfileBillingRoleAssignmentClient

func NewProfileBillingRoleAssignmentClient(subscriptionID string) ProfileBillingRoleAssignmentClient

NewProfileBillingRoleAssignmentClient creates an instance of the ProfileBillingRoleAssignmentClient client.

func NewProfileBillingRoleAssignmentClientWithBaseURI

func NewProfileBillingRoleAssignmentClientWithBaseURI(baseURI string, subscriptionID string) ProfileBillingRoleAssignmentClient

NewProfileBillingRoleAssignmentClientWithBaseURI creates an instance of the ProfileBillingRoleAssignmentClient client.

func (ProfileBillingRoleAssignmentClient) Add

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

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

func (ProfileBillingRoleAssignmentClient) AddPreparer

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

AddPreparer prepares the Add request.

func (ProfileBillingRoleAssignmentClient) AddResponder

func (client ProfileBillingRoleAssignmentClient) AddResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

AddResponder handles the response to the Add request. The method always closes the http.Response Body.

func (ProfileBillingRoleAssignmentClient) AddSender

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

func (ProfileBillingRoleAssignmentClient) Delete

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

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

func (ProfileBillingRoleAssignmentClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (ProfileBillingRoleAssignmentClient) DeleteResponder

func (client ProfileBillingRoleAssignmentClient) DeleteResponder(resp *http.Response) (result RoleAssignment, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ProfileBillingRoleAssignmentClient) DeleteSender

func (client ProfileBillingRoleAssignmentClient) DeleteSender(req *http.Request) (*http.Response, error)

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

func (ProfileBillingRoleAssignmentClient) Get

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

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

func (ProfileBillingRoleAssignmentClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ProfileBillingRoleAssignmentClient) GetResponder

func (client ProfileBillingRoleAssignmentClient) GetResponder(resp *http.Response) (result RoleAssignment, err error)

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

func (ProfileBillingRoleAssignmentClient) GetSender

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

func (ProfileBillingRoleAssignmentClient) List

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

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

func (ProfileBillingRoleAssignmentClient) ListPreparer

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

ListPreparer prepares the List request.

func (ProfileBillingRoleAssignmentClient) ListResponder

func (client ProfileBillingRoleAssignmentClient) ListResponder(resp *http.Response) (result RoleAssignmentListResult, err error)

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

func (ProfileBillingRoleAssignmentClient) ListSender

func (client ProfileBillingRoleAssignmentClient) 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 ProfileBillingRoleDefinitionClient

type ProfileBillingRoleDefinitionClient struct {
	BaseClient
}

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

func NewProfileBillingRoleDefinitionClient

func NewProfileBillingRoleDefinitionClient(subscriptionID string) ProfileBillingRoleDefinitionClient

NewProfileBillingRoleDefinitionClient creates an instance of the ProfileBillingRoleDefinitionClient client.

func NewProfileBillingRoleDefinitionClientWithBaseURI

func NewProfileBillingRoleDefinitionClientWithBaseURI(baseURI string, subscriptionID string) ProfileBillingRoleDefinitionClient

NewProfileBillingRoleDefinitionClientWithBaseURI creates an instance of the ProfileBillingRoleDefinitionClient client.

func (ProfileBillingRoleDefinitionClient) Get

func (client ProfileBillingRoleDefinitionClient) Get(ctx context.Context, billingAccountName string, billingProfileName string, billingRoleDefinitionName string) (result RoleDefinition, err error)

Get gets the role definition for a role Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. billingRoleDefinitionName - role definition id.

func (ProfileBillingRoleDefinitionClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ProfileBillingRoleDefinitionClient) GetResponder

func (client ProfileBillingRoleDefinitionClient) GetResponder(resp *http.Response) (result RoleDefinition, err error)

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

func (ProfileBillingRoleDefinitionClient) GetSender

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

func (ProfileBillingRoleDefinitionClient) List

func (client ProfileBillingRoleDefinitionClient) List(ctx context.Context, billingAccountName string, billingProfileName string) (result RoleDefinitionListResult, err error)

List lists the role definition for a Billing Profile Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (ProfileBillingRoleDefinitionClient) ListPreparer

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

ListPreparer prepares the List request.

func (ProfileBillingRoleDefinitionClient) ListResponder

func (client ProfileBillingRoleDefinitionClient) ListResponder(resp *http.Response) (result RoleDefinitionListResult, err error)

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

func (ProfileBillingRoleDefinitionClient) ListSender

func (client ProfileBillingRoleDefinitionClient) 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 ProfileListResult

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

ProfileListResult result of listing billing profiles.

type ProfileProperties

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

ProfileProperties the properties of the billing profile.

type ProfilesByBillingAccountNameClient

type ProfilesByBillingAccountNameClient struct {
	BaseClient
}

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

func NewProfilesByBillingAccountNameClient

func NewProfilesByBillingAccountNameClient(subscriptionID string) ProfilesByBillingAccountNameClient

NewProfilesByBillingAccountNameClient creates an instance of the ProfilesByBillingAccountNameClient client.

func NewProfilesByBillingAccountNameClientWithBaseURI

func NewProfilesByBillingAccountNameClientWithBaseURI(baseURI string, subscriptionID string) ProfilesByBillingAccountNameClient

NewProfilesByBillingAccountNameClientWithBaseURI creates an instance of the ProfilesByBillingAccountNameClient client.

func (ProfilesByBillingAccountNameClient) List

func (client ProfilesByBillingAccountNameClient) List(ctx context.Context, billingAccountName string, expand string) (result ProfileListResult, err error)

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

func (ProfilesByBillingAccountNameClient) ListPreparer

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

ListPreparer prepares the List request.

func (ProfilesByBillingAccountNameClient) ListResponder

func (client ProfilesByBillingAccountNameClient) ListResponder(resp *http.Response) (result ProfileListResult, err error)

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

func (ProfilesByBillingAccountNameClient) ListSender

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

type ProfilesClient struct {
	BaseClient
}

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

func NewProfilesClient

func NewProfilesClient(subscriptionID string) ProfilesClient

NewProfilesClient creates an instance of the ProfilesClient client.

func NewProfilesClientWithBaseURI

func NewProfilesClientWithBaseURI(baseURI string, subscriptionID string) ProfilesClient

NewProfilesClientWithBaseURI creates an instance of the ProfilesClient client.

func (ProfilesClient) Get

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

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

func (ProfilesClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ProfilesClient) GetResponder

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

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

func (ProfilesClient) GetSender

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

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

func (ProfilesClient) Update

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

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

func (ProfilesClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (ProfilesClient) UpdateResponder

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

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

func (ProfilesClient) UpdateSender

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

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

type ProfilesUpdateFuture

type ProfilesUpdateFuture struct {
	azure.Future
}

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

func (*ProfilesUpdateFuture) Result

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

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

type Property

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

Property a billing property resource.

func (Property) MarshalJSON

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

MarshalJSON is the custom marshaler for Property.

func (*Property) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Property struct.

type PropertyClient

type PropertyClient struct {
	BaseClient
}

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

func NewPropertyClient

func NewPropertyClient(subscriptionID string) PropertyClient

NewPropertyClient creates an instance of the PropertyClient client.

func NewPropertyClientWithBaseURI

func NewPropertyClientWithBaseURI(baseURI string, subscriptionID string) PropertyClient

NewPropertyClientWithBaseURI creates an instance of the PropertyClient client.

func (PropertyClient) Get

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

Get get billing property by subscription Id.

func (PropertyClient) GetPreparer

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

GetPreparer prepares the Get request.

func (PropertyClient) GetResponder

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

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

func (PropertyClient) GetSender

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

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

type PropertySummary

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

PropertySummary the billing property.

type RecipientTransferDetails

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

RecipientTransferDetails details of the transfer.

func (RecipientTransferDetails) MarshalJSON

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

MarshalJSON is the custom marshaler for RecipientTransferDetails.

func (*RecipientTransferDetails) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for RecipientTransferDetails struct.

type RecipientTransferDetailsListResult

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

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

func (RecipientTransferDetailsListResult) IsEmpty

func (rtdlr RecipientTransferDetailsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type RecipientTransferDetailsListResultIterator

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

RecipientTransferDetailsListResultIterator provides access to a complete listing of RecipientTransferDetails values.

func NewRecipientTransferDetailsListResultIterator

func NewRecipientTransferDetailsListResultIterator(page RecipientTransferDetailsListResultPage) RecipientTransferDetailsListResultIterator

Creates a new instance of the RecipientTransferDetailsListResultIterator type.

func (*RecipientTransferDetailsListResultIterator) Next

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

func (*RecipientTransferDetailsListResultIterator) NextWithContext

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

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

func (RecipientTransferDetailsListResultIterator) NotDone

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

func (RecipientTransferDetailsListResultIterator) Response

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

func (RecipientTransferDetailsListResultIterator) Value

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

type RecipientTransferDetailsListResultPage

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

RecipientTransferDetailsListResultPage contains a page of RecipientTransferDetails values.

func NewRecipientTransferDetailsListResultPage

Creates a new instance of the RecipientTransferDetailsListResultPage type.

func (*RecipientTransferDetailsListResultPage) Next

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

func (*RecipientTransferDetailsListResultPage) NextWithContext

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

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

func (RecipientTransferDetailsListResultPage) NotDone

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

func (RecipientTransferDetailsListResultPage) Response

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

func (RecipientTransferDetailsListResultPage) Values

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

type RecipientTransferProperties

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

RecipientTransferProperties transfer Details.

type RecipientTransfersClient

type RecipientTransfersClient struct {
	BaseClient
}

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

func NewRecipientTransfersClient

func NewRecipientTransfersClient(subscriptionID string) RecipientTransfersClient

NewRecipientTransfersClient creates an instance of the RecipientTransfersClient client.

func NewRecipientTransfersClientWithBaseURI

func NewRecipientTransfersClientWithBaseURI(baseURI string, subscriptionID string) RecipientTransfersClient

NewRecipientTransfersClientWithBaseURI creates an instance of the RecipientTransfersClient client.

func (RecipientTransfersClient) Accept

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

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

func (RecipientTransfersClient) AcceptPreparer

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

AcceptPreparer prepares the Accept request.

func (RecipientTransfersClient) AcceptResponder

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

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

func (RecipientTransfersClient) AcceptSender

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

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

func (RecipientTransfersClient) Decline

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

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

func (RecipientTransfersClient) DeclinePreparer

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

DeclinePreparer prepares the Decline request.

func (RecipientTransfersClient) DeclineResponder

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

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

func (RecipientTransfersClient) DeclineSender

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

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

func (RecipientTransfersClient) Get

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

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

func (RecipientTransfersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (RecipientTransfersClient) GetResponder

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

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

func (RecipientTransfersClient) GetSender

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

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

func (RecipientTransfersClient) List

List sends the list request.

func (RecipientTransfersClient) ListComplete

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

func (RecipientTransfersClient) ListPreparer

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

ListPreparer prepares the List request.

func (RecipientTransfersClient) ListResponder

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

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

func (RecipientTransfersClient) ListSender

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

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

type ReservationType

type ReservationType string

ReservationType enumerates the values for reservation type.

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

func PossibleReservationTypeValues

func PossibleReservationTypeValues() []ReservationType

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

type Resource

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

Resource the Resource model definition.

type RoleAssignment

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

RoleAssignment a role assignment

func (RoleAssignment) MarshalJSON

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

MarshalJSON is the custom marshaler for RoleAssignment.

func (*RoleAssignment) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for RoleAssignment struct.

type RoleAssignmentListResult

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

RoleAssignmentListResult result of get list of role assignments

type RoleAssignmentPayload

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

RoleAssignmentPayload the payload use to update role assignment on a scope

type RoleAssignmentProperties

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

RoleAssignmentProperties the properties of the a role assignment.

type RoleDefinition

type RoleDefinition struct {
	autorest.Response `json:"-"`
	// RoleDefinitionProperties - The role definition for a role.
	*RoleDefinitionProperties `json:"properties,omitempty"`
	// ID - Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
}

RoleDefinition result of get role definition for a role.

func (RoleDefinition) MarshalJSON

func (rd RoleDefinition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleDefinition.

func (*RoleDefinition) UnmarshalJSON

func (rd *RoleDefinition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleDefinition struct.

type RoleDefinitionListResult

type RoleDefinitionListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of role definitions.
	Value *[]RoleDefinition `json:"value,omitempty"`
}

RoleDefinitionListResult list the role definitions.

type RoleDefinitionProperties

type RoleDefinitionProperties struct {
	// Description - The role description
	Description *string `json:"description,omitempty"`
	// PermissionsListResult - The billingPermissions the role has
	*PermissionsListResult `json:"permissions,omitempty"`
	// RoleName - The name of the role
	RoleName *string `json:"roleName,omitempty"`
}

RoleDefinitionProperties the properties of the a role definition.

func (RoleDefinitionProperties) MarshalJSON

func (rdp RoleDefinitionProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RoleDefinitionProperties.

func (*RoleDefinitionProperties) UnmarshalJSON

func (rdp *RoleDefinitionProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RoleDefinitionProperties struct.

type Status

type Status string

Status enumerates the values for status.

const (
	// StatusDue ...
	StatusDue Status = "Due"
	// StatusPaid ...
	StatusPaid Status = "Paid"
	// StatusPastDue ...
	StatusPastDue Status = "PastDue"
	// StatusVoid ...
	StatusVoid Status = "Void"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type SubscriptionClient

type SubscriptionClient struct {
	BaseClient
}

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

func NewSubscriptionClient

func NewSubscriptionClient(subscriptionID string) SubscriptionClient

NewSubscriptionClient creates an instance of the SubscriptionClient client.

func NewSubscriptionClientWithBaseURI

func NewSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionClient

NewSubscriptionClientWithBaseURI creates an instance of the SubscriptionClient client.

func (SubscriptionClient) Get

func (client SubscriptionClient) Get(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string) (result SubscriptionSummary, err error)

Get get a single billing subscription by name. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingSubscriptionName - billing Subscription Id.

func (SubscriptionClient) GetPreparer

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

GetPreparer prepares the Get request.

func (SubscriptionClient) GetResponder

func (client SubscriptionClient) GetResponder(resp *http.Response) (result SubscriptionSummary, err error)

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

func (SubscriptionClient) GetSender

func (client SubscriptionClient) 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 (SubscriptionClient) Transfer

func (client SubscriptionClient) Transfer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string, parameters TransferBillingSubscriptionRequestProperties) (result SubscriptionTransferFuture, err error)

Transfer transfers the GTM subscription from one invoice section to another within a billing account. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. billingSubscriptionName - billing Subscription Id. parameters - parameters supplied to the Transfer Billing Subscription operation.

func (SubscriptionClient) TransferPreparer

func (client SubscriptionClient) TransferPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, billingSubscriptionName string, parameters TransferBillingSubscriptionRequestProperties) (*http.Request, error)

TransferPreparer prepares the Transfer request.

func (SubscriptionClient) TransferResponder

func (client SubscriptionClient) TransferResponder(resp *http.Response) (result TransferBillingSubscriptionResult, err error)

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

func (SubscriptionClient) TransferSender

func (client SubscriptionClient) TransferSender(req *http.Request) (future SubscriptionTransferFuture, err error)

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

type SubscriptionProperties

type SubscriptionProperties struct {
	// DisplayName - display name.
	DisplayName *string `json:"displayName,omitempty"`
	// SubscriptionID - Subscription Id.
	SubscriptionID *uuid.UUID `json:"subscriptionId,omitempty"`
	// SubscriptionBillingStatus - Subscription billing status. Possible values include: 'SubscriptionStatusTypeActive', 'SubscriptionStatusTypeInactive', 'SubscriptionStatusTypeAbandoned', 'SubscriptionStatusTypeDeleted', 'SubscriptionStatusTypeWarning'
	SubscriptionBillingStatus SubscriptionStatusType `json:"subscriptionBillingStatus,omitempty"`
	// LastMonthCharges - Last month charges.
	LastMonthCharges *Amount `json:"lastMonthCharges,omitempty"`
	// MonthToDateCharges - Month to date charges.
	MonthToDateCharges *Amount `json:"monthToDateCharges,omitempty"`
	// BillingProfileID - Billing Profile id to which this product belongs.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
	// BillingProfileName - Billing Profile name to which this product belongs.
	BillingProfileName *string `json:"billingProfileName,omitempty"`
	// InvoiceSectionID - Invoice section id to which this product belongs.
	InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
	// InvoiceSectionName - Invoice section name to which this product belongs.
	InvoiceSectionName *string `json:"invoiceSectionName,omitempty"`
	// SkuID - The sku id.
	SkuID *string `json:"skuId,omitempty"`
	// SkuDescription - The sku description.
	SkuDescription *string `json:"skuDescription,omitempty"`
}

SubscriptionProperties the usage context properties.

type SubscriptionStatusType

type SubscriptionStatusType string

SubscriptionStatusType enumerates the values for subscription status type.

const (
	// SubscriptionStatusTypeAbandoned ...
	SubscriptionStatusTypeAbandoned SubscriptionStatusType = "Abandoned"
	// SubscriptionStatusTypeActive ...
	SubscriptionStatusTypeActive SubscriptionStatusType = "Active"
	// SubscriptionStatusTypeDeleted ...
	SubscriptionStatusTypeDeleted SubscriptionStatusType = "Deleted"
	// SubscriptionStatusTypeInactive ...
	SubscriptionStatusTypeInactive SubscriptionStatusType = "Inactive"
	// SubscriptionStatusTypeWarning ...
	SubscriptionStatusTypeWarning SubscriptionStatusType = "Warning"
)

func PossibleSubscriptionStatusTypeValues

func PossibleSubscriptionStatusTypeValues() []SubscriptionStatusType

PossibleSubscriptionStatusTypeValues returns an array of possible values for the SubscriptionStatusType const type.

type SubscriptionSummary

type SubscriptionSummary struct {
	autorest.Response       `json:"-"`
	*SubscriptionProperties `json:"properties,omitempty"`
	// ID - Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
}

SubscriptionSummary a billing Subscription summary resource.

func (SubscriptionSummary) MarshalJSON

func (ss SubscriptionSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SubscriptionSummary.

func (*SubscriptionSummary) UnmarshalJSON

func (ss *SubscriptionSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SubscriptionSummary struct.

type SubscriptionTransferFuture

type SubscriptionTransferFuture struct {
	azure.Future
}

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

func (*SubscriptionTransferFuture) Result

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

type SubscriptionsByBillingProfileClient

type SubscriptionsByBillingProfileClient struct {
	BaseClient
}

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

func NewSubscriptionsByBillingProfileClient

func NewSubscriptionsByBillingProfileClient(subscriptionID string) SubscriptionsByBillingProfileClient

NewSubscriptionsByBillingProfileClient creates an instance of the SubscriptionsByBillingProfileClient client.

func NewSubscriptionsByBillingProfileClientWithBaseURI

func NewSubscriptionsByBillingProfileClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionsByBillingProfileClient

NewSubscriptionsByBillingProfileClientWithBaseURI creates an instance of the SubscriptionsByBillingProfileClient client.

func (SubscriptionsByBillingProfileClient) List

func (client SubscriptionsByBillingProfileClient) List(ctx context.Context, billingAccountName string, billingProfileName string) (result SubscriptionsListResult, err error)

List lists billing subscriptions by billingProfileName. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id.

func (SubscriptionsByBillingProfileClient) ListPreparer

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

ListPreparer prepares the List request.

func (SubscriptionsByBillingProfileClient) ListResponder

func (client SubscriptionsByBillingProfileClient) ListResponder(resp *http.Response) (result SubscriptionsListResult, err error)

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

func (SubscriptionsByBillingProfileClient) ListSender

func (client SubscriptionsByBillingProfileClient) 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 SubscriptionsByInvoiceSectionClient

type SubscriptionsByInvoiceSectionClient struct {
	BaseClient
}

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

func NewSubscriptionsByInvoiceSectionClient

func NewSubscriptionsByInvoiceSectionClient(subscriptionID string) SubscriptionsByInvoiceSectionClient

NewSubscriptionsByInvoiceSectionClient creates an instance of the SubscriptionsByInvoiceSectionClient client.

func NewSubscriptionsByInvoiceSectionClientWithBaseURI

func NewSubscriptionsByInvoiceSectionClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionsByInvoiceSectionClient

NewSubscriptionsByInvoiceSectionClientWithBaseURI creates an instance of the SubscriptionsByInvoiceSectionClient client.

func (SubscriptionsByInvoiceSectionClient) List

func (client SubscriptionsByInvoiceSectionClient) List(ctx context.Context, billingAccountName string, invoiceSectionName string) (result SubscriptionsListResult, err error)

List lists billing subscription by invoiceSectionName. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (SubscriptionsByInvoiceSectionClient) ListPreparer

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

ListPreparer prepares the List request.

func (SubscriptionsByInvoiceSectionClient) ListResponder

func (client SubscriptionsByInvoiceSectionClient) ListResponder(resp *http.Response) (result SubscriptionsListResult, err error)

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

func (SubscriptionsByInvoiceSectionClient) ListSender

func (client SubscriptionsByInvoiceSectionClient) 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 SubscriptionsListResult

type SubscriptionsListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of billing subscriptions summary.
	Value *[]SubscriptionSummary `json:"value,omitempty"`
	// NextLink - The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SubscriptionsListResult result of listing billing subscriptions summary.

func (SubscriptionsListResult) IsEmpty

func (slr SubscriptionsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SubscriptionsListResultIterator

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

SubscriptionsListResultIterator provides access to a complete listing of SubscriptionSummary values.

func NewSubscriptionsListResultIterator

func NewSubscriptionsListResultIterator(page SubscriptionsListResultPage) SubscriptionsListResultIterator

Creates a new instance of the SubscriptionsListResultIterator type.

func (*SubscriptionsListResultIterator) Next

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

func (*SubscriptionsListResultIterator) NextWithContext

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

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

func (SubscriptionsListResultIterator) NotDone

func (iter SubscriptionsListResultIterator) NotDone() bool

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

func (SubscriptionsListResultIterator) Response

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

func (SubscriptionsListResultIterator) Value

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

type SubscriptionsListResultPage

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

SubscriptionsListResultPage contains a page of SubscriptionSummary values.

func NewSubscriptionsListResultPage

func NewSubscriptionsListResultPage(getNextPage func(context.Context, SubscriptionsListResult) (SubscriptionsListResult, error)) SubscriptionsListResultPage

Creates a new instance of the SubscriptionsListResultPage type.

func (*SubscriptionsListResultPage) Next

func (page *SubscriptionsListResultPage) Next() error

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

func (*SubscriptionsListResultPage) NextWithContext

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

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

func (SubscriptionsListResultPage) NotDone

func (page SubscriptionsListResultPage) NotDone() bool

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

func (SubscriptionsListResultPage) Response

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

func (SubscriptionsListResultPage) Values

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

type TransactionTypeKind

type TransactionTypeKind string

TransactionTypeKind enumerates the values for transaction type kind.

const (
	// All ...
	All TransactionTypeKind = "all"
	// Reservation ...
	Reservation TransactionTypeKind = "reservation"
)

func PossibleTransactionTypeKindValues

func PossibleTransactionTypeKindValues() []TransactionTypeKind

PossibleTransactionTypeKindValues returns an array of possible values for the TransactionTypeKind const type.

type TransactionsByBillingAccountClient

type TransactionsByBillingAccountClient struct {
	BaseClient
}

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

func NewTransactionsByBillingAccountClient

func NewTransactionsByBillingAccountClient(subscriptionID string) TransactionsByBillingAccountClient

NewTransactionsByBillingAccountClient creates an instance of the TransactionsByBillingAccountClient client.

func NewTransactionsByBillingAccountClientWithBaseURI

func NewTransactionsByBillingAccountClientWithBaseURI(baseURI string, subscriptionID string) TransactionsByBillingAccountClient

NewTransactionsByBillingAccountClientWithBaseURI creates an instance of the TransactionsByBillingAccountClient client.

func (TransactionsByBillingAccountClient) List

func (client TransactionsByBillingAccountClient) List(ctx context.Context, billingAccountName string, startDate string, endDate string, filter string) (result TransactionsListResultPage, err error)

List lists the transactions by billingAccountName for given start and end date. Parameters: billingAccountName - billing Account Id. startDate - start date endDate - end date filter - may be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (TransactionsByBillingAccountClient) ListComplete

func (client TransactionsByBillingAccountClient) ListComplete(ctx context.Context, billingAccountName string, startDate string, endDate string, filter string) (result TransactionsListResultIterator, err error)

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

func (TransactionsByBillingAccountClient) ListPreparer

func (client TransactionsByBillingAccountClient) ListPreparer(ctx context.Context, billingAccountName string, startDate string, endDate string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (TransactionsByBillingAccountClient) ListResponder

func (client TransactionsByBillingAccountClient) ListResponder(resp *http.Response) (result TransactionsListResult, err error)

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

func (TransactionsByBillingAccountClient) ListSender

func (client TransactionsByBillingAccountClient) 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 TransactionsByBillingProfileClient

type TransactionsByBillingProfileClient struct {
	BaseClient
}

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

func NewTransactionsByBillingProfileClient

func NewTransactionsByBillingProfileClient(subscriptionID string) TransactionsByBillingProfileClient

NewTransactionsByBillingProfileClient creates an instance of the TransactionsByBillingProfileClient client.

func NewTransactionsByBillingProfileClientWithBaseURI

func NewTransactionsByBillingProfileClientWithBaseURI(baseURI string, subscriptionID string) TransactionsByBillingProfileClient

NewTransactionsByBillingProfileClientWithBaseURI creates an instance of the TransactionsByBillingProfileClient client.

func (TransactionsByBillingProfileClient) List

func (client TransactionsByBillingProfileClient) List(ctx context.Context, billingAccountName string, billingProfileName string, startDate string, endDate string, filter string) (result TransactionsListResult, err error)

List lists the transactions by billingProfileName for given start date and end date. Parameters: billingAccountName - billing Account Id. billingProfileName - billing Profile Id. startDate - start date endDate - end date filter - may be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (TransactionsByBillingProfileClient) ListPreparer

func (client TransactionsByBillingProfileClient) ListPreparer(ctx context.Context, billingAccountName string, billingProfileName string, startDate string, endDate string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (TransactionsByBillingProfileClient) ListResponder

func (client TransactionsByBillingProfileClient) ListResponder(resp *http.Response) (result TransactionsListResult, err error)

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

func (TransactionsByBillingProfileClient) ListSender

func (client TransactionsByBillingProfileClient) 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 TransactionsByInvoiceSectionClient

type TransactionsByInvoiceSectionClient struct {
	BaseClient
}

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

func NewTransactionsByInvoiceSectionClient

func NewTransactionsByInvoiceSectionClient(subscriptionID string) TransactionsByInvoiceSectionClient

NewTransactionsByInvoiceSectionClient creates an instance of the TransactionsByInvoiceSectionClient client.

func NewTransactionsByInvoiceSectionClientWithBaseURI

func NewTransactionsByInvoiceSectionClientWithBaseURI(baseURI string, subscriptionID string) TransactionsByInvoiceSectionClient

NewTransactionsByInvoiceSectionClientWithBaseURI creates an instance of the TransactionsByInvoiceSectionClient client.

func (TransactionsByInvoiceSectionClient) List

func (client TransactionsByInvoiceSectionClient) List(ctx context.Context, billingAccountName string, invoiceSectionName string, startDate string, endDate string, filter string) (result TransactionsListResult, err error)

List lists the transactions by invoiceSectionName for given start date and end date. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. startDate - start date endDate - end date filter - may be used to filter by transaction kind. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

func (TransactionsByInvoiceSectionClient) ListPreparer

func (client TransactionsByInvoiceSectionClient) ListPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, startDate string, endDate string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (TransactionsByInvoiceSectionClient) ListResponder

func (client TransactionsByInvoiceSectionClient) ListResponder(resp *http.Response) (result TransactionsListResult, err error)

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

func (TransactionsByInvoiceSectionClient) ListSender

func (client TransactionsByInvoiceSectionClient) 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 TransactionsListResult

type TransactionsListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of reservation transactions summary.
	Value *[]TransactionsSummary `json:"value,omitempty"`
	// NextLink - The link (url) to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

TransactionsListResult result of listing reservation transactions summary.

func (TransactionsListResult) IsEmpty

func (tlr TransactionsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TransactionsListResultIterator

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

TransactionsListResultIterator provides access to a complete listing of TransactionsSummary values.

func NewTransactionsListResultIterator

func NewTransactionsListResultIterator(page TransactionsListResultPage) TransactionsListResultIterator

Creates a new instance of the TransactionsListResultIterator type.

func (*TransactionsListResultIterator) Next

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

func (*TransactionsListResultIterator) NextWithContext

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

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

func (TransactionsListResultIterator) NotDone

func (iter TransactionsListResultIterator) NotDone() bool

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

func (TransactionsListResultIterator) Response

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

func (TransactionsListResultIterator) Value

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

type TransactionsListResultPage

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

TransactionsListResultPage contains a page of TransactionsSummary values.

func NewTransactionsListResultPage

func NewTransactionsListResultPage(getNextPage func(context.Context, TransactionsListResult) (TransactionsListResult, error)) TransactionsListResultPage

Creates a new instance of the TransactionsListResultPage type.

func (*TransactionsListResultPage) Next

func (page *TransactionsListResultPage) Next() error

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

func (*TransactionsListResultPage) NextWithContext

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

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

func (TransactionsListResultPage) NotDone

func (page TransactionsListResultPage) NotDone() bool

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

func (TransactionsListResultPage) Response

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

func (TransactionsListResultPage) Values

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

type TransactionsSummary

type TransactionsSummary struct {
	*TransactionsSummaryProperties `json:"properties,omitempty"`
	// ID - Resource Id.
	ID *string `json:"id,omitempty"`
	// Name - Resource name.
	Name *string `json:"name,omitempty"`
	// Type - Resource type.
	Type *string `json:"type,omitempty"`
}

TransactionsSummary a reservation transaction summary resource.

func (TransactionsSummary) MarshalJSON

func (ts TransactionsSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransactionsSummary.

func (*TransactionsSummary) UnmarshalJSON

func (ts *TransactionsSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransactionsSummary struct.

type TransactionsSummaryProperties

type TransactionsSummaryProperties struct {
	// Kind - The kind of transaction. Choices are all and reservation. Possible values include: 'All', 'Reservation'
	Kind TransactionTypeKind `json:"kind,omitempty"`
	// Date - The date of reservation transaction.
	Date *date.Time `json:"date,omitempty"`
	// Invoice - Invoice number or 'pending' if not invoiced.
	Invoice *string `json:"invoice,omitempty"`
	// OrderID - The reservation order id.
	OrderID *string `json:"orderId,omitempty"`
	// OrderName - The reservation order name.
	OrderName *string `json:"orderName,omitempty"`
	// ProductFamily - The product family.
	ProductFamily *string `json:"productFamily,omitempty"`
	// ProductTypeID - The product type id.
	ProductTypeID *string `json:"productTypeId,omitempty"`
	// ProductType - The type of product.
	ProductType *string `json:"productType,omitempty"`
	// ProductDescription - Product description.
	ProductDescription *string `json:"productDescription,omitempty"`
	// TransactionType - Transaction types. Possible values include: 'Purchase', 'UsageCharge'
	TransactionType ReservationType `json:"transactionType,omitempty"`
	// TransactionAmount - Last charge associated with the purchase.
	TransactionAmount *Amount `json:"transactionAmount,omitempty"`
	// Quantity - Purchase quantity.
	Quantity *int32 `json:"quantity,omitempty"`
	// InvoiceSectionID - Invoice section id to which this product belongs.
	InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
	// InvoiceSectionName - Invoice section name to which this product belongs.
	InvoiceSectionName *string `json:"invoiceSectionName,omitempty"`
	// BillingProfileID - Billing Profile id to which this product belongs.
	BillingProfileID *string `json:"billingProfileId,omitempty"`
	// BillingProfileName - Billing Profile name to which this product belongs.
	BillingProfileName *string `json:"billingProfileName,omitempty"`
	// SubscriptionID - The subscription id.
	SubscriptionID *string `json:"subscriptionId,omitempty"`
	// SubscriptionName - The subscription name.
	SubscriptionName *string `json:"subscriptionName,omitempty"`
}

TransactionsSummaryProperties the properties of the reservation transaction summary.

type TransferBillingSubscriptionRequest

type TransferBillingSubscriptionRequest struct {
	// TransferBillingSubscriptionRequestProperties - Request parameters to transfer billing subscription.
	*TransferBillingSubscriptionRequestProperties `json:"properties,omitempty"`
}

TransferBillingSubscriptionRequest request parameters to transfer billing subscription.

func (TransferBillingSubscriptionRequest) MarshalJSON

func (tbsr TransferBillingSubscriptionRequest) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransferBillingSubscriptionRequest.

func (*TransferBillingSubscriptionRequest) UnmarshalJSON

func (tbsr *TransferBillingSubscriptionRequest) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransferBillingSubscriptionRequest struct.

type TransferBillingSubscriptionRequestProperties

type TransferBillingSubscriptionRequestProperties struct {
	// DestinationInvoiceSectionID - The destination invoice section id.
	DestinationInvoiceSectionID *string `json:"destinationInvoiceSectionId,omitempty"`
}

TransferBillingSubscriptionRequestProperties request parameters to transfer billing subscription.

type TransferBillingSubscriptionResult

type TransferBillingSubscriptionResult struct {
	autorest.Response `json:"-"`
	// TransferBillingSubscriptionResultProperties - Request parameters to transfer billing subscription.
	*TransferBillingSubscriptionResultProperties `json:"properties,omitempty"`
}

TransferBillingSubscriptionResult request parameters to transfer billing subscription.

func (TransferBillingSubscriptionResult) MarshalJSON

func (tbsr TransferBillingSubscriptionResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransferBillingSubscriptionResult.

func (*TransferBillingSubscriptionResult) UnmarshalJSON

func (tbsr *TransferBillingSubscriptionResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransferBillingSubscriptionResult struct.

type TransferBillingSubscriptionResultProperties

type TransferBillingSubscriptionResultProperties struct {
	// BillingSubscriptionName - The destination billing subscription id.
	BillingSubscriptionName *string `json:"billingSubscriptionName,omitempty"`
}

TransferBillingSubscriptionResultProperties transfer billing subscription result properties.

type TransferDetails

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

TransferDetails details of the transfer.

func (TransferDetails) MarshalJSON

func (td TransferDetails) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TransferDetails.

func (*TransferDetails) UnmarshalJSON

func (td *TransferDetails) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for TransferDetails struct.

type TransferDetailsListResult

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

TransferDetailsListResult result of listing details of the transfer initiated by caller.

func (TransferDetailsListResult) IsEmpty

func (tdlr TransferDetailsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type TransferDetailsListResultIterator

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

TransferDetailsListResultIterator provides access to a complete listing of TransferDetails values.

func NewTransferDetailsListResultIterator

func NewTransferDetailsListResultIterator(page TransferDetailsListResultPage) TransferDetailsListResultIterator

Creates a new instance of the TransferDetailsListResultIterator type.

func (*TransferDetailsListResultIterator) Next

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

func (*TransferDetailsListResultIterator) NextWithContext

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

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

func (TransferDetailsListResultIterator) NotDone

func (iter TransferDetailsListResultIterator) NotDone() bool

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

func (TransferDetailsListResultIterator) Response

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

func (TransferDetailsListResultIterator) Value

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

type TransferDetailsListResultPage

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

TransferDetailsListResultPage contains a page of TransferDetails values.

func NewTransferDetailsListResultPage

func NewTransferDetailsListResultPage(getNextPage func(context.Context, TransferDetailsListResult) (TransferDetailsListResult, error)) TransferDetailsListResultPage

Creates a new instance of the TransferDetailsListResultPage type.

func (*TransferDetailsListResultPage) Next

func (page *TransferDetailsListResultPage) Next() error

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

func (*TransferDetailsListResultPage) NextWithContext

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

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

func (TransferDetailsListResultPage) NotDone

func (page TransferDetailsListResultPage) NotDone() bool

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

func (TransferDetailsListResultPage) Response

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

func (TransferDetailsListResultPage) Values

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

type TransferProductRequestProperties

type TransferProductRequestProperties struct {
	// DestinationInvoiceSectionID - Destination invoice section id.
	DestinationInvoiceSectionID *string `json:"destinationInvoiceSectionId,omitempty"`
}

TransferProductRequestProperties the properties of the product to initiate a transfer.

type TransferProperties

type TransferProperties struct {
	// CreationTime - Transfer creation time.
	CreationTime *date.Time `json:"creationTime,omitempty"`
	// ExpirationTime - Transfer expiration time.
	ExpirationTime *date.Time `json:"expirationTime,omitempty"`
	// InvoiceSectionID - Target invoice section Id.
	InvoiceSectionID *string `json:"invoiceSectionId,omitempty"`
	// BillingAccountID - Target billing account Id.
	BillingAccountID *string `json:"billingAccountId,omitempty"`
	// TransferStatus - Overall transfer status. Possible values include: 'TransferStatusPending', 'TransferStatusInProgress', 'TransferStatusCompleted', 'TransferStatusCompletedWithErrors', 'TransferStatusFailed', 'TransferStatusCanceled', 'TransferStatusDeclined'
	TransferStatus TransferStatus `json:"transferStatus,omitempty"`
	// RecipientEmailID - Email Id of recipient of transfer.
	RecipientEmailID *string `json:"recipientEmailId,omitempty"`
	// InitiatorEmailID - Email Id of initiator of transfer.
	InitiatorEmailID *string `json:"initiatorEmailId,omitempty"`
	// CanceledBy - Email Id who user canceled the transfer.
	CanceledBy *string `json:"canceledBy,omitempty"`
	// LastModifiedTime - Transfer last modification time.
	LastModifiedTime *date.Time `json:"lastModifiedTime,omitempty"`
	// DetailedTransferStatus - Detailed transfer status.
	DetailedTransferStatus *[]DetailedTransferStatus `json:"detailedTransferStatus,omitempty"`
}

TransferProperties transfer details

type TransferStatus

type TransferStatus string

TransferStatus enumerates the values for transfer status.

const (
	// TransferStatusCanceled ...
	TransferStatusCanceled TransferStatus = "Canceled"
	// TransferStatusCompleted ...
	TransferStatusCompleted TransferStatus = "Completed"
	// TransferStatusCompletedWithErrors ...
	TransferStatusCompletedWithErrors TransferStatus = "CompletedWithErrors"
	// TransferStatusDeclined ...
	TransferStatusDeclined TransferStatus = "Declined"
	// TransferStatusFailed ...
	TransferStatusFailed TransferStatus = "Failed"
	// TransferStatusInProgress ...
	TransferStatusInProgress TransferStatus = "InProgress"
	// TransferStatusPending ...
	TransferStatusPending TransferStatus = "Pending"
)

func PossibleTransferStatusValues

func PossibleTransferStatusValues() []TransferStatus

PossibleTransferStatusValues returns an array of possible values for the TransferStatus const type.

type TransfersClient

type TransfersClient struct {
	BaseClient
}

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

func NewTransfersClient

func NewTransfersClient(subscriptionID string) TransfersClient

NewTransfersClient creates an instance of the TransfersClient client.

func NewTransfersClientWithBaseURI

func NewTransfersClientWithBaseURI(baseURI string, subscriptionID string) TransfersClient

NewTransfersClientWithBaseURI creates an instance of the TransfersClient client.

func (TransfersClient) Cancel

func (client TransfersClient) Cancel(ctx context.Context, billingAccountName string, invoiceSectionName string, transferName string) (result TransferDetails, err error)

Cancel cancels the transfer for given transfer Id. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. transferName - transfer Name.

func (TransfersClient) CancelPreparer

func (client TransfersClient) CancelPreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, transferName string) (*http.Request, error)

CancelPreparer prepares the Cancel request.

func (TransfersClient) CancelResponder

func (client TransfersClient) CancelResponder(resp *http.Response) (result TransferDetails, err error)

CancelResponder handles the response to the Cancel request. The method always closes the http.Response Body.

func (TransfersClient) CancelSender

func (client TransfersClient) CancelSender(req *http.Request) (*http.Response, error)

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

func (TransfersClient) Get

func (client TransfersClient) Get(ctx context.Context, billingAccountName string, invoiceSectionName string, transferName string) (result TransferDetails, err error)

Get gets the transfer details for given transfer Id. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. transferName - transfer Name.

func (TransfersClient) GetPreparer

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

GetPreparer prepares the Get request.

func (TransfersClient) GetResponder

func (client TransfersClient) GetResponder(resp *http.Response) (result TransferDetails, err error)

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

func (TransfersClient) GetSender

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

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

func (TransfersClient) Initiate

func (client TransfersClient) Initiate(ctx context.Context, billingAccountName string, invoiceSectionName string, body InitiateTransferRequest) (result TransferDetails, err error)

Initiate initiates the request to transfer the GTM or legacy subscriptions or RIs to GTM. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id. body - initiate transfer parameters.

func (TransfersClient) InitiatePreparer

func (client TransfersClient) InitiatePreparer(ctx context.Context, billingAccountName string, invoiceSectionName string, body InitiateTransferRequest) (*http.Request, error)

InitiatePreparer prepares the Initiate request.

func (TransfersClient) InitiateResponder

func (client TransfersClient) InitiateResponder(resp *http.Response) (result TransferDetails, err error)

InitiateResponder handles the response to the Initiate request. The method always closes the http.Response Body.

func (TransfersClient) InitiateSender

func (client TransfersClient) InitiateSender(req *http.Request) (*http.Response, error)

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

func (TransfersClient) List

func (client TransfersClient) List(ctx context.Context, billingAccountName string, invoiceSectionName string) (result TransferDetailsListResultPage, err error)

List lists all transfer's details initiated from given invoice section. Parameters: billingAccountName - billing Account Id. invoiceSectionName - invoiceSection Id.

func (TransfersClient) ListComplete

func (client TransfersClient) ListComplete(ctx context.Context, billingAccountName string, invoiceSectionName string) (result TransferDetailsListResultIterator, err error)

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

func (TransfersClient) ListPreparer

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

ListPreparer prepares the List request.

func (TransfersClient) ListResponder

func (client TransfersClient) ListResponder(resp *http.Response) (result TransferDetailsListResult, err error)

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

func (TransfersClient) ListSender

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

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

type UpdateAutoRenew

type UpdateAutoRenew string

UpdateAutoRenew enumerates the values for update auto renew.

const (
	// False ...
	False UpdateAutoRenew = "false"
	// True ...
	True UpdateAutoRenew = "true"
)

func PossibleUpdateAutoRenewValues

func PossibleUpdateAutoRenewValues() []UpdateAutoRenew

PossibleUpdateAutoRenewValues returns an array of possible values for the UpdateAutoRenew const type.

type UpdateAutoRenewOperationSummary

type UpdateAutoRenewOperationSummary struct {
	autorest.Response `json:"-"`
	// UpdateAutoRenewOperationSummaryProperties - Summary of update auto renew operation summary properties
	*UpdateAutoRenewOperationSummaryProperties `json:"properties,omitempty"`
}

UpdateAutoRenewOperationSummary summary of cancel product operation

func (UpdateAutoRenewOperationSummary) MarshalJSON

func (uaros UpdateAutoRenewOperationSummary) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UpdateAutoRenewOperationSummary.

func (*UpdateAutoRenewOperationSummary) UnmarshalJSON

func (uaros *UpdateAutoRenewOperationSummary) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UpdateAutoRenewOperationSummary struct.

type UpdateAutoRenewOperationSummaryProperties

type UpdateAutoRenewOperationSummaryProperties struct {
	// EndDate - The end date of this asset
	EndDate *date.Time `json:"endDate,omitempty"`
}

UpdateAutoRenewOperationSummaryProperties update auto renew operation summary properties

type UpdateAutoRenewRequest

type UpdateAutoRenewRequest struct {
	// AutoRenew - Request parameters to update auto renew policy a product. Possible values include: 'True', 'False'
	AutoRenew UpdateAutoRenew `json:"autoRenew,omitempty"`
}

UpdateAutoRenewRequest request parameters to update auto renew for support product.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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