Documentation ¶
Overview ¶
Package billing implements the Azure ARM Billing service API version 2018-03-01-preview.
Billing client provides access to billing resources for Azure subscriptions.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type BaseClient
- type DownloadURL
- type EnrollmentAccount
- type EnrollmentAccountListResult
- type EnrollmentAccountListResultIterator
- func (iter *EnrollmentAccountListResultIterator) Next() error
- func (iter *EnrollmentAccountListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter EnrollmentAccountListResultIterator) NotDone() bool
- func (iter EnrollmentAccountListResultIterator) Response() EnrollmentAccountListResult
- func (iter EnrollmentAccountListResultIterator) Value() EnrollmentAccount
- type EnrollmentAccountListResultPage
- func (page *EnrollmentAccountListResultPage) Next() error
- func (page *EnrollmentAccountListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page EnrollmentAccountListResultPage) NotDone() bool
- func (page EnrollmentAccountListResultPage) Response() EnrollmentAccountListResult
- func (page EnrollmentAccountListResultPage) Values() []EnrollmentAccount
- type EnrollmentAccountProperties
- type EnrollmentAccountsClient
- func (client EnrollmentAccountsClient) Get(ctx context.Context, name string) (result EnrollmentAccount, err error)
- func (client EnrollmentAccountsClient) GetPreparer(ctx context.Context, name string) (*http.Request, error)
- func (client EnrollmentAccountsClient) GetResponder(resp *http.Response) (result EnrollmentAccount, err error)
- func (client EnrollmentAccountsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client EnrollmentAccountsClient) List(ctx context.Context) (result EnrollmentAccountListResultPage, err error)
- func (client EnrollmentAccountsClient) ListComplete(ctx context.Context) (result EnrollmentAccountListResultIterator, err error)
- func (client EnrollmentAccountsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client EnrollmentAccountsClient) ListResponder(resp *http.Response) (result EnrollmentAccountListResult, err error)
- func (client EnrollmentAccountsClient) ListSender(req *http.Request) (*http.Response, error)
- type ErrorDetails
- type ErrorResponse
- type Invoice
- type InvoiceProperties
- type InvoicesClient
- func (client InvoicesClient) Get(ctx context.Context, invoiceName string) (result Invoice, err error)
- func (client InvoicesClient) GetLatest(ctx context.Context) (result Invoice, err error)
- func (client InvoicesClient) GetLatestPreparer(ctx context.Context) (*http.Request, error)
- func (client InvoicesClient) GetLatestResponder(resp *http.Response) (result Invoice, err error)
- func (client InvoicesClient) GetLatestSender(req *http.Request) (*http.Response, error)
- func (client InvoicesClient) GetPreparer(ctx context.Context, invoiceName string) (*http.Request, error)
- func (client InvoicesClient) GetResponder(resp *http.Response) (result Invoice, err error)
- func (client InvoicesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client InvoicesClient) List(ctx context.Context, expand string, filter string, skiptoken string, ...) (result InvoicesListResultPage, err error)
- func (client InvoicesClient) ListComplete(ctx context.Context, expand string, filter string, skiptoken string, ...) (result InvoicesListResultIterator, err error)
- func (client InvoicesClient) ListPreparer(ctx context.Context, expand string, filter string, skiptoken string, ...) (*http.Request, error)
- func (client InvoicesClient) ListResponder(resp *http.Response) (result InvoicesListResult, err error)
- func (client InvoicesClient) ListSender(req *http.Request) (*http.Response, error)
- type InvoicesListResult
- type InvoicesListResultIterator
- func (iter *InvoicesListResultIterator) Next() error
- func (iter *InvoicesListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter InvoicesListResultIterator) NotDone() bool
- func (iter InvoicesListResultIterator) Response() InvoicesListResult
- func (iter InvoicesListResultIterator) Value() Invoice
- type InvoicesListResultPage
- func (page *InvoicesListResultPage) Next() error
- func (page *InvoicesListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page InvoicesListResultPage) NotDone() bool
- func (page InvoicesListResultPage) Response() InvoicesListResult
- func (page InvoicesListResultPage) Values() []Invoice
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Period
- type PeriodProperties
- type PeriodsClient
- func (client PeriodsClient) Get(ctx context.Context, billingPeriodName string) (result Period, err error)
- func (client PeriodsClient) GetPreparer(ctx context.Context, billingPeriodName string) (*http.Request, error)
- func (client PeriodsClient) GetResponder(resp *http.Response) (result Period, err error)
- func (client PeriodsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client PeriodsClient) List(ctx context.Context, filter string, skiptoken string, top *int32) (result PeriodsListResultPage, err error)
- func (client PeriodsClient) ListComplete(ctx context.Context, filter string, skiptoken string, top *int32) (result PeriodsListResultIterator, err error)
- func (client PeriodsClient) ListPreparer(ctx context.Context, filter string, skiptoken string, top *int32) (*http.Request, error)
- func (client PeriodsClient) ListResponder(resp *http.Response) (result PeriodsListResult, err error)
- func (client PeriodsClient) ListSender(req *http.Request) (*http.Response, error)
- type PeriodsListResult
- type PeriodsListResultIterator
- func (iter *PeriodsListResultIterator) Next() error
- func (iter *PeriodsListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter PeriodsListResultIterator) NotDone() bool
- func (iter PeriodsListResultIterator) Response() PeriodsListResult
- func (iter PeriodsListResultIterator) Value() Period
- type PeriodsListResultPage
- type Resource
Constants ¶
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 BaseClient ¶
BaseClient is the base client for Billing.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client.
type DownloadURL ¶
type DownloadURL struct { // 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 PDF invoice until the URL expires.
type EnrollmentAccount ¶
type EnrollmentAccount struct { autorest.Response `json:"-"` // EnrollmentAccountProperties - An enrollment 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 enrollment 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 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.
func (EnrollmentAccountListResult) IsEmpty ¶
func (ealr EnrollmentAccountListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type EnrollmentAccountListResultIterator ¶
type EnrollmentAccountListResultIterator struct {
// contains filtered or unexported fields
}
EnrollmentAccountListResultIterator provides access to a complete listing of EnrollmentAccount values.
func (*EnrollmentAccountListResultIterator) Next ¶
func (iter *EnrollmentAccountListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*EnrollmentAccountListResultIterator) NextWithContext ¶
func (iter *EnrollmentAccountListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (EnrollmentAccountListResultIterator) NotDone ¶
func (iter EnrollmentAccountListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (EnrollmentAccountListResultIterator) Response ¶
func (iter EnrollmentAccountListResultIterator) Response() EnrollmentAccountListResult
Response returns the raw server response from the last page request.
func (EnrollmentAccountListResultIterator) Value ¶
func (iter EnrollmentAccountListResultIterator) Value() EnrollmentAccount
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type EnrollmentAccountListResultPage ¶
type EnrollmentAccountListResultPage struct {
// contains filtered or unexported fields
}
EnrollmentAccountListResultPage contains a page of EnrollmentAccount values.
func (*EnrollmentAccountListResultPage) Next ¶
func (page *EnrollmentAccountListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*EnrollmentAccountListResultPage) NextWithContext ¶
func (page *EnrollmentAccountListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (EnrollmentAccountListResultPage) NotDone ¶
func (page EnrollmentAccountListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (EnrollmentAccountListResultPage) Response ¶
func (page EnrollmentAccountListResultPage) Response() EnrollmentAccountListResult
Response returns the raw server response from the last page request.
func (EnrollmentAccountListResultPage) Values ¶
func (page EnrollmentAccountListResultPage) Values() []EnrollmentAccount
Values returns the slice of values for the current page or nil if there are no values.
type EnrollmentAccountProperties ¶
type EnrollmentAccountProperties struct { // PrincipalName - The account owner's principal name. PrincipalName *string `json:"principalName,omitempty"` }
EnrollmentAccountProperties the properties of the enrollment account.
type EnrollmentAccountsClient ¶
type EnrollmentAccountsClient struct {
BaseClient
}
EnrollmentAccountsClient is the billing client provides access to billing resources for Azure subscriptions.
func NewEnrollmentAccountsClient ¶
func NewEnrollmentAccountsClient(subscriptionID string) EnrollmentAccountsClient
NewEnrollmentAccountsClient creates an instance of the EnrollmentAccountsClient client.
func NewEnrollmentAccountsClientWithBaseURI ¶
func NewEnrollmentAccountsClientWithBaseURI(baseURI string, subscriptionID string) EnrollmentAccountsClient
NewEnrollmentAccountsClientWithBaseURI creates an instance of the EnrollmentAccountsClient client.
func (EnrollmentAccountsClient) Get ¶
func (client EnrollmentAccountsClient) Get(ctx context.Context, name string) (result EnrollmentAccount, err error)
Get gets a enrollment account by name. Parameters: name - enrollment Account name.
func (EnrollmentAccountsClient) GetPreparer ¶
func (client EnrollmentAccountsClient) GetPreparer(ctx context.Context, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (EnrollmentAccountsClient) GetResponder ¶
func (client EnrollmentAccountsClient) GetResponder(resp *http.Response) (result EnrollmentAccount, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (EnrollmentAccountsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (EnrollmentAccountsClient) List ¶
func (client EnrollmentAccountsClient) List(ctx context.Context) (result EnrollmentAccountListResultPage, err error)
List lists the enrollment accounts the caller has access to.
func (EnrollmentAccountsClient) ListComplete ¶
func (client EnrollmentAccountsClient) ListComplete(ctx context.Context) (result EnrollmentAccountListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (EnrollmentAccountsClient) ListPreparer ¶
ListPreparer prepares the List request.
func (EnrollmentAccountsClient) ListResponder ¶
func (client EnrollmentAccountsClient) ListResponder(resp *http.Response) (result EnrollmentAccountListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (EnrollmentAccountsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
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 Invoice ¶
type Invoice struct { autorest.Response `json:"-"` // InvoiceProperties - An invoice. *InvoiceProperties `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"` }
Invoice an invoice resource can be used download a PDF version of an invoice.
func (Invoice) MarshalJSON ¶
MarshalJSON is the custom marshaler for Invoice.
func (*Invoice) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Invoice struct.
type InvoiceProperties ¶
type InvoiceProperties struct { // DownloadURL - A secure link to download the PDF version of an invoice. The link will cease to work after its expiry time is reached. DownloadURL *DownloadURL `json:"downloadUrl,omitempty"` // InvoicePeriodStartDate - The start of the date range covered by the invoice. InvoicePeriodStartDate *date.Date `json:"invoicePeriodStartDate,omitempty"` // InvoicePeriodEndDate - The end of the date range covered by the invoice. InvoicePeriodEndDate *date.Date `json:"invoicePeriodEndDate,omitempty"` // BillingPeriodIds - Array of billing perdiod ids that the invoice is attributed to. BillingPeriodIds *[]string `json:"billingPeriodIds,omitempty"` }
InvoiceProperties the properties of the invoice.
type InvoicesClient ¶
type InvoicesClient struct {
BaseClient
}
InvoicesClient is the billing client provides access to billing resources for Azure subscriptions.
func NewInvoicesClient ¶
func NewInvoicesClient(subscriptionID string) InvoicesClient
NewInvoicesClient creates an instance of the InvoicesClient client.
func NewInvoicesClientWithBaseURI ¶
func NewInvoicesClientWithBaseURI(baseURI string, subscriptionID string) InvoicesClient
NewInvoicesClientWithBaseURI creates an instance of the InvoicesClient client.
func (InvoicesClient) Get ¶
func (client InvoicesClient) Get(ctx context.Context, invoiceName string) (result Invoice, err error)
Get gets a named invoice resource. When getting a single invoice, the downloadUrl property is expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. Parameters: invoiceName - the name of an invoice resource.
func (InvoicesClient) GetLatest ¶
func (client InvoicesClient) GetLatest(ctx context.Context) (result Invoice, err error)
GetLatest gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API.
func (InvoicesClient) GetLatestPreparer ¶
GetLatestPreparer prepares the GetLatest request.
func (InvoicesClient) GetLatestResponder ¶
func (client InvoicesClient) GetLatestResponder(resp *http.Response) (result Invoice, err error)
GetLatestResponder handles the response to the GetLatest request. The method always closes the http.Response Body.
func (InvoicesClient) GetLatestSender ¶
GetLatestSender sends the GetLatest request. The method will close the http.Response Body if it receives an error.
func (InvoicesClient) GetPreparer ¶
func (client InvoicesClient) GetPreparer(ctx context.Context, invoiceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (InvoicesClient) GetResponder ¶
func (client InvoicesClient) GetResponder(resp *http.Response) (result Invoice, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (InvoicesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (InvoicesClient) List ¶
func (client InvoicesClient) List(ctx context.Context, expand string, filter string, skiptoken string, top *int32) (result InvoicesListResultPage, err error)
List lists the available invoices for a subscription in reverse chronological order beginning with the most recent invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or later. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. Parameters: expand - may be used to expand the downloadUrl property within a list of invoices. This enables download links to be generated for multiple invoices at once. By default, downloadURLs are not included when listing invoices. filter - may be used to filter invoices by invoicePeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N invoices.
func (InvoicesClient) ListComplete ¶
func (client InvoicesClient) ListComplete(ctx context.Context, expand string, filter string, skiptoken string, top *int32) (result InvoicesListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (InvoicesClient) ListPreparer ¶
func (client InvoicesClient) ListPreparer(ctx context.Context, expand string, filter string, skiptoken string, top *int32) (*http.Request, error)
ListPreparer prepares the List request.
func (InvoicesClient) ListResponder ¶
func (client InvoicesClient) ListResponder(resp *http.Response) (result InvoicesListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (InvoicesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type InvoicesListResult ¶
type InvoicesListResult struct { autorest.Response `json:"-"` // Value - The list of invoices. Value *[]Invoice `json:"value,omitempty"` // NextLink - The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` }
InvoicesListResult result of listing invoices. It contains a list of available invoices in reverse chronological order.
func (InvoicesListResult) IsEmpty ¶
func (ilr InvoicesListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type InvoicesListResultIterator ¶
type InvoicesListResultIterator struct {
// contains filtered or unexported fields
}
InvoicesListResultIterator provides access to a complete listing of Invoice values.
func (*InvoicesListResultIterator) Next ¶
func (iter *InvoicesListResultIterator) 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 (*InvoicesListResultIterator) NextWithContext ¶
func (iter *InvoicesListResultIterator) 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 (InvoicesListResultIterator) NotDone ¶
func (iter InvoicesListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (InvoicesListResultIterator) Response ¶
func (iter InvoicesListResultIterator) Response() InvoicesListResult
Response returns the raw server response from the last page request.
func (InvoicesListResultIterator) Value ¶
func (iter InvoicesListResultIterator) Value() Invoice
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type InvoicesListResultPage ¶
type InvoicesListResultPage struct {
// contains filtered or unexported fields
}
InvoicesListResultPage contains a page of Invoice values.
func (*InvoicesListResultPage) Next ¶
func (page *InvoicesListResultPage) 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 (*InvoicesListResultPage) NextWithContext ¶
func (page *InvoicesListResultPage) 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 (InvoicesListResultPage) NotDone ¶
func (page InvoicesListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (InvoicesListResultPage) Response ¶
func (page InvoicesListResultPage) Response() InvoicesListResult
Response returns the raw server response from the last page request.
func (InvoicesListResultPage) Values ¶
func (page InvoicesListResultPage) Values() []Invoice
Values returns the slice of values for the current page or nil if there are no values.
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 (*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 ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListResultPage ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
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 ¶
func (page OperationListResultPage) Response() OperationListResult
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 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 ¶
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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Period ¶
type Period struct { autorest.Response `json:"-"` // PeriodProperties - A billing period. *PeriodProperties `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"` }
Period a billing period resource.
func (Period) MarshalJSON ¶
MarshalJSON is the custom marshaler for Period.
func (*Period) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Period struct.
type PeriodProperties ¶
type PeriodProperties struct { // BillingPeriodStartDate - The start of the date range covered by the billing period. BillingPeriodStartDate *date.Date `json:"billingPeriodStartDate,omitempty"` // BillingPeriodEndDate - The end of the date range covered by the billing period. BillingPeriodEndDate *date.Date `json:"billingPeriodEndDate,omitempty"` // InvoiceIds - Array of invoice ids that associated with. InvoiceIds *[]string `json:"invoiceIds,omitempty"` }
PeriodProperties the properties of the billing period.
type PeriodsClient ¶
type PeriodsClient struct {
BaseClient
}
PeriodsClient is the billing client provides access to billing resources for Azure subscriptions.
func NewPeriodsClient ¶
func NewPeriodsClient(subscriptionID string) PeriodsClient
NewPeriodsClient creates an instance of the PeriodsClient client.
func NewPeriodsClientWithBaseURI ¶
func NewPeriodsClientWithBaseURI(baseURI string, subscriptionID string) PeriodsClient
NewPeriodsClientWithBaseURI creates an instance of the PeriodsClient client.
func (PeriodsClient) Get ¶
func (client PeriodsClient) Get(ctx context.Context, billingPeriodName string) (result Period, err error)
Get gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. Parameters: billingPeriodName - the name of a BillingPeriod resource.
func (PeriodsClient) GetPreparer ¶
func (client PeriodsClient) GetPreparer(ctx context.Context, billingPeriodName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PeriodsClient) GetResponder ¶
func (client PeriodsClient) GetResponder(resp *http.Response) (result Period, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (PeriodsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (PeriodsClient) List ¶
func (client PeriodsClient) List(ctx context.Context, filter string, skiptoken string, top *int32) (result PeriodsListResultPage, err error)
List lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not supported through this preview API. Parameters: filter - may be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. skiptoken - skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top - may be used to limit the number of results to the most recent N billing periods.
func (PeriodsClient) ListComplete ¶
func (client PeriodsClient) ListComplete(ctx context.Context, filter string, skiptoken string, top *int32) (result PeriodsListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (PeriodsClient) ListPreparer ¶
func (client PeriodsClient) ListPreparer(ctx context.Context, filter string, skiptoken string, top *int32) (*http.Request, error)
ListPreparer prepares the List request.
func (PeriodsClient) ListResponder ¶
func (client PeriodsClient) ListResponder(resp *http.Response) (result PeriodsListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (PeriodsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PeriodsListResult ¶
type PeriodsListResult struct { autorest.Response `json:"-"` // Value - The list of billing periods. Value *[]Period `json:"value,omitempty"` // NextLink - The link (url) to the next page of results. NextLink *string `json:"nextLink,omitempty"` }
PeriodsListResult result of listing billing periods. It contains a list of available billing periods in reverse chronological order.
func (PeriodsListResult) IsEmpty ¶
func (plr PeriodsListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type PeriodsListResultIterator ¶
type PeriodsListResultIterator struct {
// contains filtered or unexported fields
}
PeriodsListResultIterator provides access to a complete listing of Period values.
func (*PeriodsListResultIterator) Next ¶
func (iter *PeriodsListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*PeriodsListResultIterator) NextWithContext ¶
func (iter *PeriodsListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (PeriodsListResultIterator) NotDone ¶
func (iter PeriodsListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (PeriodsListResultIterator) Response ¶
func (iter PeriodsListResultIterator) Response() PeriodsListResult
Response returns the raw server response from the last page request.
func (PeriodsListResultIterator) Value ¶
func (iter PeriodsListResultIterator) Value() Period
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type PeriodsListResultPage ¶
type PeriodsListResultPage struct {
// contains filtered or unexported fields
}
PeriodsListResultPage contains a page of Period values.
func (*PeriodsListResultPage) Next ¶
func (page *PeriodsListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*PeriodsListResultPage) NextWithContext ¶
func (page *PeriodsListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (PeriodsListResultPage) NotDone ¶
func (page PeriodsListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (PeriodsListResultPage) Response ¶
func (page PeriodsListResultPage) Response() PeriodsListResult
Response returns the raw server response from the last page request.
func (PeriodsListResultPage) Values ¶
func (page PeriodsListResultPage) Values() []Period
Values returns the slice of values for the current page or nil if there are no values.