ReservationsDetailsOperations Class
ReservationsDetailsOperations async 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.objectReservationsDetailsOperations
Constructor
ReservationsDetailsOperations(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
| list |
Lists the reservations details for the defined scope and provided date range. |
| list_by_reservation_order |
Lists the reservations details for provided date range. |
| list_by_reservation_order_and_reservation |
Lists the reservations details for provided date range. |
list
Lists the reservations details for the defined scope and provided date range.
list(scope: str, start_date: Optional[str] = None, end_date: Optional[str] = None, filter: Optional[str] = None, reservation_id: Optional[str] = None, reservation_order_id: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.consumption.models._models_py3.ReservationDetailsListResult]
Parameters
- scope
- str
The scope associated with reservations details operations. This includes '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy), and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope (modern).
- filter
- str
Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'. Not applicable when querying with billing profile.
- reservation_id
- str
Reservation Id GUID. Only valid if reservationOrderId is also provided. Filter to a specific reservation.
- reservation_order_id
- str
Reservation Order Id GUID. Required if reservationId is provided. Filter to a specific reservation order.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ReservationDetailsListResult or the result of cls(response)
Return type
Exceptions
list_by_reservation_order
Lists the reservations details for provided date range.
list_by_reservation_order(reservation_order_id: str, filter: str, **kwargs) -> AsyncIterable[azure.mgmt.consumption.models._models_py3.ReservationDetailsListResult]
Parameters
- filter
- str
Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ReservationDetailsListResult or the result of cls(response)
Return type
Exceptions
list_by_reservation_order_and_reservation
Lists the reservations details for provided date range.
list_by_reservation_order_and_reservation(reservation_order_id: str, reservation_id: str, filter: str, **kwargs) -> AsyncIterable[azure.mgmt.consumption.models._models_py3.ReservationDetailsListResult]
Parameters
- filter
- str
Filter reservation details by date range. The properties/UsageDate for start date and end date. The filter supports 'le' and 'ge'.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ReservationDetailsListResult 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