azure.mgmt.consumption.models module

class azure.mgmt.consumption.models.MeterDetails[source]

Bases: msrest.serialization.Model

The properties of the meter detail.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • meter_name (str) – The name of the meter, within the given meter category
  • meter_category (str) – The category of the meter, for example, ‘Cloud services’, ‘Networking’, etc..
  • meter_sub_category (str) – The subcategory of the meter, for example, ‘A6 Cloud services’, ‘ExpressRoute (IXP)’, etc..
  • unit (str) – The unit in which the meter consumption is charged, for example, ‘Hours’, ‘GB’, etc.
  • meter_location (str) – The location in which the Azure service is available.
  • total_included_quantity (decimal.Decimal) – The total included quantity associated with the offer.
  • pretax_standard_rate (decimal.Decimal) – The pretax listing price.
class azure.mgmt.consumption.models.UsageDetail[source]

Bases: azure.mgmt.consumption.models.resource.Resource

An usage detail resource.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • id (str) – Resource Id.
  • name (str) – Resource name.
  • type (str) – Resource type.
  • tags (dict) – Resource tags.
  • billing_period_id (str) – The id of the billing period resource that the usage belongs to.
  • invoice_id (str) – The id of the invoice resource that the usage belongs to.
  • usage_start (datetime) – The start of the date time range covered by the usage detail.
  • usage_end (datetime) – The end of the date time range covered by the usage detail.
  • instance_name (str) – The name of the resource instance that the usage is about.
  • instance_id (str) – The uri of the resource instance that the usage is about.
  • instance_location (str) – The location of the resource instance that the usage is about.
  • currency (str) – The ISO currency in which the meter is charged, for example, USD.
  • usage_quantity (decimal.Decimal) – The quantity of usage.
  • billable_quantity (decimal.Decimal) – The billable usage quantity.
  • pretax_cost (decimal.Decimal) – The amount of cost before tax.
  • is_estimated (bool) – The estimated usage is subject to change.
  • meter_id (str) – The meter id.
  • meter_details (MeterDetails) – The details about the meter. By default this is not populated, unless it’s specified in $expand.
  • additional_properties (dict) – The list of key/value pairs for the additional properties, in the format ‘key’:’value’ where key = the field name, and value = the field value. By default this is not populated, unless it’s specified in $expand.
class azure.mgmt.consumption.models.ErrorDetails[source]

Bases: msrest.serialization.Model

The details of the error.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • code (str) – Error code.
  • message (str) – Error message indicating why the operation failed.
  • target (str) – The target of the particular error.
class azure.mgmt.consumption.models.ErrorResponse(error=None)[source]

Bases: msrest.serialization.Model

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

Parameters:error (ErrorDetails) – The details of the error.
exception azure.mgmt.consumption.models.ErrorResponseException(deserialize, response, *args)[source]

Bases: msrest.exceptions.HttpOperationError

Server responsed with exception of type: ‘ErrorResponse’.

Parameters:
  • deserialize – A deserializer
  • response – Server response to be deserialized.
class azure.mgmt.consumption.models.OperationDisplay[source]

Bases: msrest.serialization.Model

The object that represents the operation.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
  • provider (str) – Service provider: Microsoft.Consumption.
  • resource (str) – Resource on which the operation is performed: UsageDetail, etc.
  • operation (str) – Operation type: Read, write, delete, etc.
class azure.mgmt.consumption.models.Operation(display=None)[source]

Bases: msrest.serialization.Model

A Consumption REST API operation.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:name (str) – Operation name: {provider}/{resource}/{operation}.
Parameters:display (OperationDisplay) – The object that represents the operation.
class azure.mgmt.consumption.models.Resource[source]

Bases: msrest.serialization.Model

The Resource model definition.

Variables are only populated by the server, and will be ignored when sending a request.

Variables:
class azure.mgmt.consumption.models.UsageDetailPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of UsageDetail object

class azure.mgmt.consumption.models.OperationPaged(*args, **kwargs)[source]

Bases: msrest.paging.Paged

A paging container for iterating over a list of Operation object