Share via


ArmReservationsModelFactory.CalculateExchangeResult Method

Definition

Initializes a new instance of CalculateExchangeResult.

public static Azure.ResourceManager.Reservations.Models.CalculateExchangeResult CalculateExchangeResult (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.ResourceManager.Reservations.Models.CalculateExchangeOperationResultStatus? status = default, Azure.ResourceManager.Reservations.Models.CalculateExchangeResultProperties properties = default, Azure.ResourceManager.Reservations.Models.OperationResultError error = default);
static member CalculateExchangeResult : Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.Reservations.Models.CalculateExchangeOperationResultStatus> * Azure.ResourceManager.Reservations.Models.CalculateExchangeResultProperties * Azure.ResourceManager.Reservations.Models.OperationResultError -> Azure.ResourceManager.Reservations.Models.CalculateExchangeResult
Public Shared Function CalculateExchangeResult (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional status As Nullable(Of CalculateExchangeOperationResultStatus) = Nothing, Optional properties As CalculateExchangeResultProperties = Nothing, Optional error As OperationResultError = Nothing) As CalculateExchangeResult

Parameters

id
ResourceIdentifier

It should match what is used to GET the operation result.

name
String

It must match the last segment of the id field, and will typically be a GUID / system generated value.

status
Nullable<CalculateExchangeOperationResultStatus>

Status of the operation.

properties
CalculateExchangeResultProperties

CalculateExchange response properties.

error
OperationResultError

Required if status == failed or status == canceled.

Returns

A new CalculateExchangeResult instance for mocking.

Applies to