ReservationRecommendationDetailsOperations Class
ReservationRecommendationDetailsOperations 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.objectReservationRecommendationDetailsOperations
Constructor
ReservationRecommendationDetailsOperations(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 |
Details of a reservation recommendation for what-if analysis of reserved instances. |
get
Details of a reservation recommendation for what-if analysis of reserved instances.
async get(billing_scope: str, scope: Union[str, azure.mgmt.consumption.models._consumption_management_client_enums.Scope], region: str, term: Union[str, azure.mgmt.consumption.models._consumption_management_client_enums.Term], look_back_period: Union[str, azure.mgmt.consumption.models._consumption_management_client_enums.LookBackPeriod], product: str, **kwargs) -> Optional[azure.mgmt.consumption.models._models_py3.ReservationRecommendationDetailsModel]
Parameters
- billing_scope
- str
The scope associated with reservation recommendation details operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope, /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope.
- look_back_period
- str or LookBackPeriod
Filter the time period on which reservation recommendation results are based.
- product
- str
Filter the products for which reservation recommendation results are generated. Examples: Standard_DS1_v2 (for VM), Premium_SSD_Managed_Disks_P30 (for Managed Disks).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ReservationRecommendationDetailsModel, 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