billing

package
v21.4.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package billing implements the Azure ARM Billing service API version 2017-02-27-preview.

Billing client provides access to billing resources 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.

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

Copyright (c) Microsoft and contributors. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and limitations under the License.

Code generated by Microsoft (R) AutoRest Code Generator. Changes may cause incorrect behavior and will be lost if the code is regenerated. Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. UserAgent returns the UserAgent string to use when sending http.Requests.

func Version deprecated

func Version() string

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Version returns the semantic version (see http://semver.org) of the client.

Types

type BaseClient deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. BaseClient is the base client for Billing.

func New deprecated

func New(subscriptionID string) BaseClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. New creates an instance of the BaseClient client.

func NewWithBaseURI deprecated

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NewWithBaseURI creates an instance of the BaseClient client.

type DownloadURL deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. DownloadURL a secure URL that can be used to download a PDF invoice until the URL expires.

type ErrorDetails deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ErrorDetails the details of the error.

type ErrorResponse deprecated

type ErrorResponse struct {
	Error *ErrorDetails `json:"error,omitempty"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. 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 deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Invoice an invoice resource can be used download a PDF version of an invoice.

func (Invoice) MarshalJSON deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. MarshalJSON is the custom marshaler for Invoice.

func (*Invoice) UnmarshalJSON deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. UnmarshalJSON is the custom unmarshaler for Invoice struct.

type InvoiceProperties deprecated

type InvoiceProperties struct {
	// 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"`
	// 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"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. InvoiceProperties the properties of the invoice.

type InvoicesClient deprecated

type InvoicesClient struct {
	BaseClient
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. InvoicesClient is the billing client provides access to billing resources 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 NewInvoicesClient deprecated

func NewInvoicesClient(subscriptionID string) InvoicesClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NewInvoicesClient creates an instance of the InvoicesClient client.

func NewInvoicesClientWithBaseURI deprecated

func NewInvoicesClientWithBaseURI(baseURI string, subscriptionID string) InvoicesClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NewInvoicesClientWithBaseURI creates an instance of the InvoicesClient client.

func (InvoicesClient) Get deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Get gets a named invoice resource. When getting a single invoice, the downloadUrl property is expanded automatically.

invoiceName is the name of an invoice resource.

func (InvoicesClient) GetLatest deprecated

func (client InvoicesClient) GetLatest(ctx context.Context) (result Invoice, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. GetLatest gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically.

func (InvoicesClient) GetLatestPreparer deprecated

func (client InvoicesClient) GetLatestPreparer(ctx context.Context) (*http.Request, error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. GetLatestPreparer prepares the GetLatest request.

func (InvoicesClient) GetLatestResponder deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. GetLatestResponder handles the response to the GetLatest request. The method always closes the http.Response Body.

func (InvoicesClient) GetLatestSender deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. GetLatestSender sends the GetLatest request. The method will close the http.Response Body if it receives an error.

func (InvoicesClient) GetPreparer deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. GetPreparer prepares the Get request.

func (InvoicesClient) GetResponder deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (InvoicesClient) GetSender deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (InvoicesClient) List deprecated

func (client InvoicesClient) List(ctx context.Context, expand string, filter string, skiptoken string, top *int32) (result InvoicesListResultPage, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. 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

expand is 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 is 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 is 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 is may be used to limit the number of results to the most recent N invoices.

func (InvoicesClient) ListComplete deprecated

func (client InvoicesClient) ListComplete(ctx context.Context, expand string, filter string, skiptoken string, top *int32) (result InvoicesListResultIterator, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ListComplete enumerates all values, automatically crossing page boundaries as required.

func (InvoicesClient) ListPreparer deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ListPreparer prepares the List request.

func (InvoicesClient) ListResponder deprecated

func (client InvoicesClient) ListResponder(resp *http.Response) (result InvoicesListResult, err error)

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (InvoicesClient) ListSender deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type InvoicesListResult deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. InvoicesListResult result of the request to list invoices. It contains a list of available invoices in reverse chronological order.

func (InvoicesListResult) IsEmpty deprecated

func (ilr InvoicesListResult) IsEmpty() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. IsEmpty returns true if the ListResult contains no values.

type InvoicesListResultIterator deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. InvoicesListResultIterator provides access to a complete listing of Invoice values.

func (*InvoicesListResultIterator) Next deprecated

func (iter *InvoicesListResultIterator) Next() error

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Next 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 deprecated

func (iter InvoicesListResultIterator) NotDone() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NotDone returns true if the enumeration should be started or is not yet complete.

func (InvoicesListResultIterator) Response deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Response returns the raw server response from the last page request.

func (InvoicesListResultIterator) Value deprecated

func (iter InvoicesListResultIterator) Value() Invoice

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type InvoicesListResultPage deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. InvoicesListResultPage contains a page of Invoice values.

func (*InvoicesListResultPage) Next deprecated

func (page *InvoicesListResultPage) Next() error

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. 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.

func (InvoicesListResultPage) NotDone deprecated

func (page InvoicesListResultPage) NotDone() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NotDone returns true if the page enumeration should be started or is not yet complete.

func (InvoicesListResultPage) Response deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Response returns the raw server response from the last page request.

func (InvoicesListResultPage) Values deprecated

func (page InvoicesListResultPage) Values() []Invoice

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Values returns the slice of values for the current page or nil if there are no values.

type Operation deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Operation a Billing REST API operation

type OperationDisplay deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. OperationDisplay the object that represents the operation.

type OperationListResult deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. OperationListResult result of the request to list billing operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) IsEmpty deprecated

func (olr OperationListResult) IsEmpty() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. OperationListResultIterator provides access to a complete listing of Operation values.

func (*OperationListResultIterator) Next deprecated

func (iter *OperationListResultIterator) Next() error

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Next 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 deprecated

func (iter OperationListResultIterator) NotDone() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. OperationListResultPage contains a page of Operation values.

func (*OperationListResultPage) Next deprecated

func (page *OperationListResultPage) Next() error

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. 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.

func (OperationListResultPage) NotDone deprecated

func (page OperationListResultPage) NotDone() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Response returns the raw server response from the last page request.

func (OperationListResultPage) Values deprecated

func (page OperationListResultPage) Values() []Operation

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient deprecated

type OperationsClient struct {
	BaseClient
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. OperationsClient is the billing client provides access to billing resources 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 NewOperationsClient deprecated

func NewOperationsClient(subscriptionID string) OperationsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI deprecated

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. List lists all of the available billing REST API operations.

func (OperationsClient) ListComplete deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ListPreparer prepares the List request.

func (OperationsClient) ListResponder deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Resource deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2017-02-27-preview/billing instead. Resource the Resource model definition.

Jump to

Keyboard shortcuts

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