BalancesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ConsumptionManagementClient's

<xref:balances> attribute.

Inheritance
builtins.object
BalancesOperations

Constructor

BalancesOperations(*args, **kwargs)

Methods

get_by_billing_account

Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.

get_for_billing_period_by_billing_account

Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.

get_by_billing_account

Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.

get_by_billing_account(billing_account_id: str, **kwargs: Any) -> Balance

Parameters

Name Description
billing_account_id
Required
str

BillingAccount ID.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

Balance, or the result of cls(response)

Exceptions

Type Description

get_for_billing_period_by_billing_account

Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.

get_for_billing_period_by_billing_account(billing_account_id: str, billing_period_name: str, **kwargs: Any) -> Balance

Parameters

Name Description
billing_account_id
Required
str

BillingAccount ID.

billing_period_name
Required
str

Billing Period Name.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

Balance, or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.consumption.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\consumption\\models\\__init__.py'>