Partilhar via


ReservationSwapProperties Class

Definition

Properties of reservation swap.

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

Constructors

ReservationSwapProperties()

Initializes a new instance of ReservationSwapProperties.

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}.

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