PriceSheetOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ConsumptionManagementClient's

<xref:price_sheet> attribute.

Constructor

PriceSheetOperations(*args, **kwargs)

Methods

begin_download_by_billing_account_period

Generates the pricesheet for the provided billing period asynchronously based on the enrollment id.

get

Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.

get_by_billing_period

Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.

begin_download_by_billing_account_period

Generates the pricesheet for the provided billing period asynchronously based on the enrollment id.

begin_download_by_billing_account_period(billing_account_id: str, billing_period_name: str, **kwargs: Any) -> LROPoller[OperationStatus]

Parameters

Name Description
billing_account_id
Required
str

BillingAccount ID. Required.

billing_period_name
Required
str

Billing Period Name. Required.

Returns

Type Description

An instance of LROPoller that returns OperationStatus. The OperationStatus is compatible with MutableMapping

Exceptions

Type Description

get

Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.

get(*, expand: str | None = None, skiptoken: str | None = None, top: int | None = None, **kwargs: Any) -> PriceSheetResult

Keyword-Only Parameters

Name Description
expand
str

May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet. Default value is None.

Default value: None
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. Default value is None.

Default value: None
top
int

May be used to limit the number of results to the top N results. Default value is None.

Default value: None

Returns

Type Description

PriceSheetResult. The PriceSheetResult is compatible with MutableMapping

Exceptions

Type Description

get_by_billing_period

Get the price sheet for a scope by subscriptionId and billing period. Price sheet is available via this API only for May 1, 2014 or later.

get_by_billing_period(billing_period_name: str, *, expand: str | None = None, skiptoken: str | None = None, top: int | None = None, **kwargs: Any) -> PriceSheetResult

Parameters

Name Description
billing_period_name
Required
str

Billing Period Name. Required.

Keyword-Only Parameters

Name Description
expand
str

May be used to expand the properties/meterDetails within a price sheet. By default, these fields are not included when returning price sheet. Default value is None.

Default value: None
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. Default value is None.

Default value: None
top
int

May be used to limit the number of results to the top N results. Default value is None.

Default value: None

Returns

Type Description

PriceSheetResult. The PriceSheetResult is compatible with MutableMapping

Exceptions

Type Description