Share via


SavingsPlanPurchase Class

Definition

Request body for savings plan purchase.

public class SavingsPlanPurchase : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Reservations.Models.SavingsPlanPurchase>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Reservations.Models.SavingsPlanPurchase>
public class SavingsPlanPurchase
type SavingsPlanPurchase = class
    interface IJsonModel<SavingsPlanPurchase>
    interface IPersistableModel<SavingsPlanPurchase>
type SavingsPlanPurchase = class
Public Class SavingsPlanPurchase
Implements IJsonModel(Of SavingsPlanPurchase), IPersistableModel(Of SavingsPlanPurchase)
Public Class SavingsPlanPurchase
Inheritance
SavingsPlanPurchase
Implements

Constructors

SavingsPlanPurchase()

Initializes a new instance of SavingsPlanPurchase.

Properties

AppliedScopeProperties

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

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.

Commitment

Commitment towards the benefit.

DisplayName

Friendly name of the savings plan.

SkuName

Gets or sets the sku name.

Term

Represent savings plan term in ISO 8601 format.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<SavingsPlanPurchase>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<SavingsPlanPurchase>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SavingsPlanPurchase>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SavingsPlanPurchase>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<SavingsPlanPurchase>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to