PriceSheetOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:price_sheet> attribute.
- Inheritance
-
builtins.objectPriceSheetOperations
Constructor
PriceSheetOperations(*args, **kwargs)
Methods
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. |
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
Parameters
Name | Description |
---|---|
expand
Required
|
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. |
skiptoken
Required
|
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. |
top
Required
|
May be used to limit the number of results to the top N results. Default value is None. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
PriceSheetResult, or the result of cls(response) |
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
|
Billing Period Name. |
expand
Required
|
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. |
skiptoken
Required
|
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. |
top
Required
|
May be used to limit the number of results to the top N results. Default value is None. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
PriceSheetResult, 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'>
Azure SDK for Python