Compartilhar via


ArmReservationsModelFactory.ReservationToPurchaseExchange Method

Definition

Initializes a new instance of ReservationToPurchaseExchange.

public static Azure.ResourceManager.Reservations.Models.ReservationToPurchaseExchange ReservationToPurchaseExchange (Azure.Core.ResourceIdentifier reservationOrderId = default, Azure.Core.ResourceIdentifier reservationId = default, Azure.ResourceManager.Reservations.Models.ReservationPurchaseContent properties = default, Azure.ResourceManager.Reservations.Models.PurchasePrice billingCurrencyTotal = default, Azure.ResourceManager.Reservations.Models.ReservationOperationStatus? status = default);
static member ReservationToPurchaseExchange : Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Reservations.Models.ReservationPurchaseContent * Azure.ResourceManager.Reservations.Models.PurchasePrice * Nullable<Azure.ResourceManager.Reservations.Models.ReservationOperationStatus> -> Azure.ResourceManager.Reservations.Models.ReservationToPurchaseExchange
Public Shared Function ReservationToPurchaseExchange (Optional reservationOrderId As ResourceIdentifier = Nothing, Optional reservationId As ResourceIdentifier = Nothing, Optional properties As ReservationPurchaseContent = Nothing, Optional billingCurrencyTotal As PurchasePrice = Nothing, Optional status As Nullable(Of ReservationOperationStatus) = Nothing) As ReservationToPurchaseExchange

Parameters

reservationOrderId
ResourceIdentifier

Fully qualified id of the reservationOrder being purchased.

reservationId
ResourceIdentifier

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

properties
ReservationPurchaseContent

The request for reservation purchase.

billingCurrencyTotal
PurchasePrice

Pricing information containing the amount and the currency code.

status
Nullable<ReservationOperationStatus>

Status of the individual operation.

Returns

A new ReservationToPurchaseExchange instance for mocking.

Applies to