ArmReservationsModelFactory.CalculateExchangeResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 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
Azure SDK for .NET