Share via


ReservationPurchaseRequest Class

The request for reservation purchase.

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

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.

Default value: None
location
str

The Azure region where the reserved resource lives.

Default value: None
billing_plan

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

Default value: None
quantity
int

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

Default value: None
display_name
str

Friendly name of the reservation.

Default value: None
applied_scope_type

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

Default value: None
applied_scopes

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

Default value: None
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.

Default value: None
renew

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

Default value: False
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".

Default value: None
review_date_time

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

Default value: None
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".

Default value: None

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".