Share via


ReservationSwapProperties Class

Definition

Properties of reservation swap.

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

Properties

SwapDestination

Reservation resource id that the original resource gets swapped to. Format of the resource id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

SwapSource

Resource id of the source reservation that gets swapped. Format of the resource id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ReservationSwapProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ReservationSwapProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ReservationSwapProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ReservationSwapProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ReservationSwapProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to