ReservationPurchaseRequest Class

The request for reservation purchase.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.billing._serialization.Model
ReservationPurchaseRequest

Constructor

ReservationPurchaseRequest(*, sku: _models.SkuName | None = None, location: str | None = None, billing_plan: str | _models.ReservationBillingPlan | None = None, quantity: int | None = None, display_name: str | None = None, applied_scope_type: str | _models.AppliedScopeType | None = None, applied_scopes: List[str] | None = None, applied_scope_properties: _models.ReservationAppliedScopeProperties | None = None, renew: bool = False, instance_flexibility_properties_instance_flexibility: str | _models.InstanceFlexibility | None = None, review_date_time: datetime | None = None, instance_flexibility_properties_reserved_resource_properties_instance_flexibility: str | _models.InstanceFlexibility | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
sku

The name of sku.

location
str

The Azure region where the reserved resource lives.

billing_plan

Represent the billing plans. Known values are: "Upfront" and "Monthly".

quantity
int

Quantity of the skus that are part of the reservation. Must be greater than zero.

display_name
str

Friendly name of the reservation.

applied_scope_type

Type of the Applied Scope. Known values are: "Single", "Shared", and "ManagementGroup".

applied_scopes

List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.

applied_scope_properties

Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup.

renew

Setting this to true will automatically purchase a new benefit on the expiration date time.

instance_flexibility_properties_instance_flexibility

Allows reservation discount to be applied across skus within the same auto fit group. Not all skus support instance size flexibility. Known values are: "On" and "Off".

review_date_time

This is the date-time when the Azure hybrid benefit needs to be reviewed.

instance_flexibility_properties_reserved_resource_properties_instance_flexibility

Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type. Known values are: "On" and "Off".

Variables

Name Description
sku

The name of sku.

location
str

The Azure region where the reserved resource lives.

reserved_resource_type
str

The reserved source type of the reservation, e.g. virtual machine.

billing_scope_id
str

Subscription that will be charged for purchasing reservation or savings plan.

term
str

The term of the reservation, e.g. P1Y.

billing_plan

Represent the billing plans. Known values are: "Upfront" and "Monthly".

quantity
int

Quantity of the skus that are part of the reservation. Must be greater than zero.

display_name
str

Friendly name of the reservation.

applied_scope_type

Type of the Applied Scope. Known values are: "Single", "Shared", and "ManagementGroup".

applied_scopes

List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.

applied_scope_properties

Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup.

renew

Setting this to true will automatically purchase a new benefit on the expiration date time.

instance_flexibility_properties_instance_flexibility

Allows reservation discount to be applied across skus within the same auto fit group. Not all skus support instance size flexibility. Known values are: "On" and "Off".

review_date_time

This is the date-time when the Azure hybrid benefit needs to be reviewed.

instance_flexibility_properties_reserved_resource_properties_instance_flexibility

Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type. Known values are: "On" and "Off".