Share via


ArmReservationsModelFactory.SavingsPlanToPurchaseExchange Method

Definition

Initializes a new instance of SavingsPlanToPurchaseExchange.

public static Azure.ResourceManager.Reservations.Models.SavingsPlanToPurchaseExchange SavingsPlanToPurchaseExchange (string savingsPlanOrderId = default, string savingsPlanId = default, Azure.ResourceManager.Reservations.Models.SavingsPlanPurchase properties = default, Azure.ResourceManager.Reservations.Models.PurchasePrice billingCurrencyTotal = default, Azure.ResourceManager.Reservations.Models.ReservationOperationStatus? status = default);
static member SavingsPlanToPurchaseExchange : string * string * Azure.ResourceManager.Reservations.Models.SavingsPlanPurchase * Azure.ResourceManager.Reservations.Models.PurchasePrice * Nullable<Azure.ResourceManager.Reservations.Models.ReservationOperationStatus> -> Azure.ResourceManager.Reservations.Models.SavingsPlanToPurchaseExchange
Public Shared Function SavingsPlanToPurchaseExchange (Optional savingsPlanOrderId As String = Nothing, Optional savingsPlanId As String = Nothing, Optional properties As SavingsPlanPurchase = Nothing, Optional billingCurrencyTotal As PurchasePrice = Nothing, Optional status As Nullable(Of ReservationOperationStatus) = Nothing) As SavingsPlanToPurchaseExchange

Parameters

savingsPlanOrderId
String

Fully qualified id of the savings plan order being purchased.

savingsPlanId
String

Fully qualified id of the savings plan being purchased. This value is only guaranteed to be non-null if the purchase is successful.

properties
SavingsPlanPurchase

Request body for savings plan purchase.

billingCurrencyTotal
PurchasePrice

Pricing information containing the amount and the currency code.

status
Nullable<ReservationOperationStatus>

Status of the individual operation.

Returns

A new SavingsPlanToPurchaseExchange instance for mocking.

Applies to