billing

package
v21.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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

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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-preview/billing instead. DownloadURL a secure URL that can be used to download a PDF invoice until the URL expires.

type EnrollmentAccount deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. EnrollmentAccount an enrollment account resource.

func (EnrollmentAccount) MarshalJSON deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. MarshalJSON is the custom marshaler for EnrollmentAccount.

func (*EnrollmentAccount) UnmarshalJSON deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. UnmarshalJSON is the custom unmarshaler for EnrollmentAccount struct.

type EnrollmentAccountListResult deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. EnrollmentAccountListResult result of listing enrollment accounts.

func (EnrollmentAccountListResult) IsEmpty deprecated

func (ealr EnrollmentAccountListResult) IsEmpty() bool

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

type EnrollmentAccountListResultIterator deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. EnrollmentAccountListResultIterator provides access to a complete listing of EnrollmentAccount values.

func (*EnrollmentAccountListResultIterator) Next deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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 (EnrollmentAccountListResultIterator) NotDone deprecated

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

func (EnrollmentAccountListResultIterator) Response deprecated

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

func (EnrollmentAccountListResultIterator) Value deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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 EnrollmentAccountListResultPage deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. EnrollmentAccountListResultPage contains a page of EnrollmentAccount values.

func (*EnrollmentAccountListResultPage) Next deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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 (EnrollmentAccountListResultPage) NotDone deprecated

func (page EnrollmentAccountListResultPage) NotDone() bool

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

func (EnrollmentAccountListResultPage) Response deprecated

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

func (EnrollmentAccountListResultPage) Values deprecated

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

type EnrollmentAccountProperties deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. EnrollmentAccountProperties the properties of the enrollment account.

type EnrollmentAccountsClient deprecated

type EnrollmentAccountsClient struct {
	BaseClient
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. EnrollmentAccountsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewEnrollmentAccountsClient deprecated

func NewEnrollmentAccountsClient(subscriptionID string) EnrollmentAccountsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. NewEnrollmentAccountsClient creates an instance of the EnrollmentAccountsClient client.

func NewEnrollmentAccountsClientWithBaseURI deprecated

func NewEnrollmentAccountsClientWithBaseURI(baseURI string, subscriptionID string) EnrollmentAccountsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. NewEnrollmentAccountsClientWithBaseURI creates an instance of the EnrollmentAccountsClient client.

func (EnrollmentAccountsClient) Get deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. Get gets a enrollment account by name.

name is enrollment Account name.

func (EnrollmentAccountsClient) GetPreparer deprecated

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

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

func (EnrollmentAccountsClient) GetResponder deprecated

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

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

func (EnrollmentAccountsClient) GetSender deprecated

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

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

func (EnrollmentAccountsClient) List deprecated

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. List lists the enrollment accounts the caller has access to.

func (EnrollmentAccountsClient) ListComplete deprecated

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

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

func (EnrollmentAccountsClient) ListPreparer deprecated

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

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

func (EnrollmentAccountsClient) ListResponder deprecated

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

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

func (EnrollmentAccountsClient) ListSender deprecated

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

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

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/2018-03-01-preview/billing instead. ErrorDetails the details of the error.

type ErrorResponse deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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 - 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"`
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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/2018-03-01-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/2018-03-01-preview/billing instead. UnmarshalJSON is the custom unmarshaler for Invoice struct.

type InvoiceProperties deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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/2018-03-01-preview/billing instead. InvoicesClient is the billing client provides access to billing resources for Azure subscriptions.

func NewInvoicesClient deprecated

func NewInvoicesClient(subscriptionID string) InvoicesClient

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

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/2018-03-01-preview/billing instead. 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 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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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. 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.

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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-preview/billing instead. InvoicesListResult result of listing 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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-preview/billing instead. 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 deprecated

func (olr OperationListResult) IsEmpty() bool

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-preview/billing instead. OperationsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewOperationsClient deprecated

func NewOperationsClient(subscriptionID string) OperationsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-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/2018-03-01-preview/billing instead. ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Period deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. Period a billing period resource.

func (Period) MarshalJSON deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. MarshalJSON is the custom marshaler for Period.

func (*Period) UnmarshalJSON deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. UnmarshalJSON is the custom unmarshaler for Period struct.

type PeriodProperties deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. PeriodProperties the properties of the billing period.

type PeriodsClient deprecated

type PeriodsClient struct {
	BaseClient
}

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. PeriodsClient is the billing client provides access to billing resources for Azure subscriptions.

func NewPeriodsClient deprecated

func NewPeriodsClient(subscriptionID string) PeriodsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. NewPeriodsClient creates an instance of the PeriodsClient client.

func NewPeriodsClientWithBaseURI deprecated

func NewPeriodsClientWithBaseURI(baseURI string, subscriptionID string) PeriodsClient

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. NewPeriodsClientWithBaseURI creates an instance of the PeriodsClient client.

func (PeriodsClient) Get deprecated

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

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

billingPeriodName is the name of a BillingPeriod resource.

func (PeriodsClient) GetPreparer deprecated

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

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

func (PeriodsClient) GetResponder deprecated

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

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

func (PeriodsClient) GetSender deprecated

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

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

func (PeriodsClient) List deprecated

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

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

filter is 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 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 billing periods.

func (PeriodsClient) ListComplete deprecated

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

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

func (PeriodsClient) ListPreparer deprecated

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

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

func (PeriodsClient) ListResponder deprecated

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

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

func (PeriodsClient) ListSender deprecated

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

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

type PeriodsListResult deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. PeriodsListResult result of listing billing periods. It contains a list of available billing periods in reverse chronological order.

func (PeriodsListResult) IsEmpty deprecated

func (plr PeriodsListResult) IsEmpty() bool

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

type PeriodsListResultIterator deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. PeriodsListResultIterator provides access to a complete listing of Period values.

func (*PeriodsListResultIterator) Next deprecated

func (iter *PeriodsListResultIterator) Next() error

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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 (PeriodsListResultIterator) NotDone deprecated

func (iter PeriodsListResultIterator) NotDone() bool

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

func (PeriodsListResultIterator) Response deprecated

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

func (PeriodsListResultIterator) Value deprecated

func (iter PeriodsListResultIterator) Value() Period

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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 PeriodsListResultPage deprecated

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

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-preview/billing instead. PeriodsListResultPage contains a page of Period values.

func (*PeriodsListResultPage) Next deprecated

func (page *PeriodsListResultPage) Next() error

Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/preview/billing/mgmt/2018-03-01-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 (PeriodsListResultPage) NotDone deprecated

func (page PeriodsListResultPage) NotDone() bool

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

func (PeriodsListResultPage) Response deprecated

func (page PeriodsListResultPage) Response() PeriodsListResult

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

func (PeriodsListResultPage) Values deprecated

func (page PeriodsListResultPage) Values() []Period

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

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/2018-03-01-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