azure.mgmt.billing.operations module

class azure.mgmt.billing.operations.BillingPeriodsOperations(client, config, serializer, deserializer)[source]

Bases: object

BillingPeriodsOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Version of the API to be used with the client request. The current version is 2017-04-24-preview. Constant value: “2017-04-24-preview”.

get(billing_period_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a named billing period.

Parameters:
  • billing_period_name (str) – The name of a BillingPeriod resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

BillingPeriod

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

list(filter=None, skiptoken=None, top=None, custom_headers=None, raw=False, **operation_config)[source]

Lists the available billing periods for a subscription in reverse chronological order.

Parameters:
  • filter (str) – 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 (str) – 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 (int) – May be used to limit the number of results to the most recent N billing periods.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

BillingPeriodPaged

Raises:

ErrorResponseException

class azure.mgmt.billing.operations.InvoicesOperations(client, config, serializer, deserializer)[source]

Bases: object

InvoicesOperations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Version of the API to be used with the client request. The current version is 2017-04-24-preview. Constant value: “2017-04-24-preview”.

get(invoice_name, custom_headers=None, raw=False, **operation_config)[source]

Gets a named invoice resource. When getting a single invoice, the downloadUrl property is expanded automatically.

Parameters:
  • invoice_name (str) – The name of an invoice resource.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

Invoice

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

get_latest(custom_headers=None, raw=False, **operation_config)[source]

Gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded automatically.

Parameters:
Return type:

Invoice

Return type:

ClientRawResponse if raw=true

Raises:

ErrorResponseException

list(expand=None, filter=None, skiptoken=None, top=None, custom_headers=None, raw=False, **operation_config)[source]

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.

Parameters:
  • expand (str) – 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 (str) – 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 (str) – 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 (int) – May be used to limit the number of results to the most recent N invoices.
  • custom_headers (dict) – headers that will be added to the request
  • raw (bool) – returns the direct response alongside the deserialized response
  • operation_configOperation configuration overrides.
Return type:

InvoicePaged

Raises:

ErrorResponseException

class azure.mgmt.billing.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

Parameters:
  • client – Client for service requests.
  • config – Configuration of service client.
  • serializer – An object model serializer.
  • deserializer – An objec model deserializer.
Variables:

api_version – Version of the API to be used with the client request. The current version is 2017-04-24-preview. Constant value: “2017-04-24-preview”.

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available billing REST API operations.

Parameters:
Return type:

OperationPaged

Raises:

ErrorResponseException