PurchaseRequest Class

Purchase request.

Inheritance
azure.mgmt.billing._serialization.Model
PurchaseRequest

Constructor

PurchaseRequest(*, sku: _models.Sku | None = None, display_name: str | None = None, billing_scope_id: str | None = None, term: str | _models.SavingsPlanTerm | None = None, billing_plan: str | _models.BillingPlan | None = None, applied_scope_type: str | _models.AppliedScopeType | None = None, commitment: _models.Commitment | None = None, renew: bool = False, applied_scope_properties: _models.AppliedScopeProperties | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
sku
Sku

The SKU to be applied for this resource.

display_name
str

Friendly name of the savings plan.

billing_scope_id
str

Subscription that will be charged for purchasing SavingsPlan.

term

Represents the Savings plan term in ISO 8601 format. Known values are: "P1Y", "P3Y", and "P5Y".

billing_plan

Represents the billing plan in ISO 8601 format. Required only for monthly purchases. "P1M"

applied_scope_type

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

commitment

Commitment towards the benefit.

renew

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

applied_scope_properties

Properties specific to applied scope type. Not required if not applicable.

Variables

Name Description
sku
Sku

The SKU to be applied for this resource.

display_name
str

Friendly name of the savings plan.

billing_scope_id
str

Subscription that will be charged for purchasing SavingsPlan.

term

Represents the Savings plan term in ISO 8601 format. Known values are: "P1Y", "P3Y", and "P5Y".

billing_plan

Represents the billing plan in ISO 8601 format. Required only for monthly purchases. "P1M"

applied_scope_type

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

commitment

Commitment towards the benefit.

renew

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

applied_scope_properties

Properties specific to applied scope type. Not required if not applicable.