Share via


ReservationSwapProperties Class

Definition

Properties of reservation swap

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ReservationSwapPropertiesTypeConverter))]
public class ReservationSwapProperties : Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.IReservationSwapProperties
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.ReservationSwapPropertiesTypeConverter))>]
type ReservationSwapProperties = class
    interface IReservationSwapProperties
    interface IJsonSerializable
Public Class ReservationSwapProperties
Implements IReservationSwapProperties
Inheritance
ReservationSwapProperties
Attributes
Implements

Constructors

ReservationSwapProperties()

Creates an new ReservationSwapProperties instance.

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

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ReservationSwapProperties.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ReservationSwapProperties.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.IReservationSwapProperties.

FromJsonString(String)

Creates a new instance of ReservationSwapProperties, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ReservationSwapProperties into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to