Share via


ReservationDetailPatch Class

Definition

The request for reservation patch.

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

Constructors

ReservationDetailPatch()

Initializes a new instance of ReservationDetailPatch.

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. This property will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType.

AppliedScopeType

Type of the Applied Scope.

InstanceFlexibility

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

IsRenewEnabled

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

Name

Display name of the reservation.

RenewPurchaseProperties

The request for reservation purchase.

ReviewOn

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ReservationDetailPatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ReservationDetailPatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ReservationDetailPatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ReservationDetailPatch>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ReservationDetailPatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to