共用方式為


ReservationPurchaseRequest Class

Definition

The request for reservation purchase.

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

Constructors

ReservationPurchaseRequest()

Initializes a new instance of ReservationPurchaseRequest.

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.

AppliedScopes

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

AppliedScopeType

Type of the Applied Scope.

BillingPlan

Represent the billing plans.

BillingScopeId

Subscription that will be charged for purchasing reservation or savings plan.

DisplayName

Friendly name of the reservation.

InstanceFlexibilityPropertiesInstanceFlexibility

Allows reservation discount to be applied across skus within the same auto fit group. Not all skus support instance size flexibility.

InstanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility

Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type.

IsRenewed

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

Location

The Azure region where the reserved resource lives.

Quantity

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

ReservedResourceType

The reserved source type of the reservation, e.g. virtual machine.

ReviewOn

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

SkuName

Gets or sets the sku name.

Term

The term of the reservation, e.g. P1Y.

Explicit Interface Implementations

IJsonModel<ReservationPurchaseRequest>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ReservationPurchaseRequest>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ReservationPurchaseRequest>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ReservationPurchaseRequest>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ReservationPurchaseRequest>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to