ReservationRecommendationDetailsOperations Class

ReservationRecommendationDetailsOperations 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.object
ReservationRecommendationDetailsOperations

Constructor

ReservationRecommendationDetailsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

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.

get(billing_scope: str, scope: Union[str, _models.Scope], region: str, term: Union[str, _models.Term], look_back_period: Union[str, _models.LookBackPeriod], product: str, **kwargs: Any) -> Optional[_models.ReservationRecommendationDetailsModel]

Parameters

billing_scope
str
Required

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.

scope
str or Scope
Required

Scope of the reservation.

region
str
Required

Used to select the region the recommendation should be generated for.

term
str or Term
Required

Specify length of reservation recommendation term.

look_back_period
str or LookBackPeriod
Required

Filter the time period on which reservation recommendation results are based.

product
str
Required

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'>