Share via


ArmReservationsModelFactory.ReservationSwapProperties(String, String) Method

Definition

Initializes a new instance of ReservationSwapProperties.

public static Azure.ResourceManager.Reservations.Models.ReservationSwapProperties ReservationSwapProperties (string swapSource = default, string swapDestination = default);
static member ReservationSwapProperties : string * string -> Azure.ResourceManager.Reservations.Models.ReservationSwapProperties
Public Shared Function ReservationSwapProperties (Optional swapSource As String = Nothing, Optional swapDestination As String = Nothing) As ReservationSwapProperties

Parameters

swapSource
String

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

swapDestination
String

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

Returns

A new ReservationSwapProperties instance for mocking.

Applies to