PriceSheetOperations Class
PriceSheetOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectPriceSheetOperations
Constructor
PriceSheetOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| get |
Gets the price sheet for a scope by subscriptionId. 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 scope by subscriptionId. Price sheet is available via this API only for May 1, 2014 or later.
get(expand: Optional[str] = None, skiptoken: Optional[str] = None, top: Optional[int] = None, **kwargs: Any) -> _models.PriceSheetResult
Parameters
- 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.
- 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.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
PriceSheetResult, or the result of cls(response)
Return type
Exceptions
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: Optional[str] = None, skiptoken: Optional[str] = None, top: Optional[int] = None, **kwargs: Any) -> _models.PriceSheetResult
Parameters
- 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.
- 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.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
PriceSheetResult, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.consumption.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\consumption\\models\\__init__.py'>
Feedback
Submit and view feedback for