PurchaseRequest Class
Purchase request.
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
|
The SKU to be applied for this resource. Default value: None
|
|
display_name
|
Friendly name of the savings plan. Default value: None
|
|
billing_scope_id
|
Subscription that will be charged for purchasing SavingsPlan. Default value: None
|
|
term
|
Represents the Savings plan term in ISO 8601 format. Known values are: "P1Y", "P3Y", and "P5Y". Default value: None
|
|
billing_plan
|
str or
BillingPlan
Represents the billing plan in ISO 8601 format. Required only for monthly purchases. "P1M" Default value: None
|
|
applied_scope_type
|
Type of the Applied Scope. Known values are: "Single", "Shared", and "ManagementGroup". Default value: None
|
|
commitment
|
Commitment towards the benefit. Default value: None
|
|
renew
|
Setting this to true will automatically purchase a new benefit on the expiration date time. Default value: False
|
|
applied_scope_properties
|
Properties specific to applied scope type. Not required if not applicable. Default value: None
|
Variables
| Name | Description |
|---|---|
|
sku
|
The SKU to be applied for this resource. |
|
display_name
|
Friendly name of the savings plan. |
|
billing_scope_id
|
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
|
str or
BillingPlan
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. |