Partager via


SavingsPlanPurchaseRequest Class

Definition

Request body for savings plan purchase

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.SavingsPlanPurchaseRequestTypeConverter))]
public class SavingsPlanPurchaseRequest : Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ISavingsPlanPurchaseRequest
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.SavingsPlanPurchaseRequestTypeConverter))>]
type SavingsPlanPurchaseRequest = class
    interface ISavingsPlanPurchaseRequest
    interface IJsonSerializable
Public Class SavingsPlanPurchaseRequest
Implements ISavingsPlanPurchaseRequest
Inheritance
SavingsPlanPurchaseRequest
Attributes
Implements

Constructors

SavingsPlanPurchaseRequest()

Creates an new SavingsPlanPurchaseRequest instance.

Properties

AppliedScopePropertyDisplayName

Display name

AppliedScopePropertyManagementGroupId

Fully-qualified identifier of the management group where the benefit must be applied.

AppliedScopePropertyResourceGroupId

Fully-qualified identifier of the resource group.

AppliedScopePropertySubscriptionId

Fully-qualified identifier of the subscription.

AppliedScopePropertyTenantId

Tenant ID where the savings plan should apply benefit.

AppliedScopeType

Type of the Applied Scope.

BillingPlan

Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.

BillingScopeId

Subscription that will be charged for purchasing reservation or savings plan

CommitmentAmount
CommitmentCurrencyCode

The ISO 4217 3-letter currency code for the currency used by this purchase record.

CommitmentGrain

Commitment grain.

DisplayName

Friendly name of the savings plan

SkuName
Term

Represent savings plan term in ISO 8601 format.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of SavingsPlanPurchaseRequest.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of SavingsPlanPurchaseRequest.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ISavingsPlanPurchaseRequest.

FromJsonString(String)

Creates a new instance of SavingsPlanPurchaseRequest, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of SavingsPlanPurchaseRequest into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to