ArmResourcesModelFactory.WhatIfOperationResult Method

Definition

Overloads

WhatIfOperationResult(String, ResponseError, IEnumerable<WhatIfChange>, IEnumerable<WhatIfChange>, IEnumerable<DeploymentDiagnosticsDefinition>)

Source:
ArmResourcesModelFactory.cs
Source:
ArmResourcesModelFactory.cs

Initializes a new instance of WhatIfOperationResult.

public static Azure.ResourceManager.Resources.Models.WhatIfOperationResult WhatIfOperationResult(string status = default, Azure.ResponseError error = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WhatIfChange> changes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WhatIfChange> potentialChanges = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.DeploymentDiagnosticsDefinition> diagnostics = default);
static member WhatIfOperationResult : string * Azure.ResponseError * seq<Azure.ResourceManager.Resources.Models.WhatIfChange> * seq<Azure.ResourceManager.Resources.Models.WhatIfChange> * seq<Azure.ResourceManager.Resources.Models.DeploymentDiagnosticsDefinition> -> Azure.ResourceManager.Resources.Models.WhatIfOperationResult
Public Shared Function WhatIfOperationResult (Optional status As String = Nothing, Optional error As ResponseError = Nothing, Optional changes As IEnumerable(Of WhatIfChange) = Nothing, Optional potentialChanges As IEnumerable(Of WhatIfChange) = Nothing, Optional diagnostics As IEnumerable(Of DeploymentDiagnosticsDefinition) = Nothing) As WhatIfOperationResult

Parameters

status
String

Status of the What-If operation.

error
ResponseError

Error when What-If operation fails.

changes
IEnumerable<WhatIfChange>

List of resource changes predicted by What-If operation.

potentialChanges
IEnumerable<WhatIfChange>

List of resource changes predicted by What-If operation.

diagnostics
IEnumerable<DeploymentDiagnosticsDefinition>

List of resource diagnostics detected by What-If operation.

Returns

A new WhatIfOperationResult instance for mocking.

Applies to

WhatIfOperationResult(String, IEnumerable<WhatIfChange>, IEnumerable<WhatIfChange>, IEnumerable<DeploymentDiagnosticsDefinition>, ResponseError)

Source:
ArmResourcesModelFactory.cs
public static Azure.ResourceManager.Resources.Models.WhatIfOperationResult WhatIfOperationResult(string status = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WhatIfChange> changes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WhatIfChange> potentialChanges = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.DeploymentDiagnosticsDefinition> diagnostics = default, Azure.ResponseError error = default);
static member WhatIfOperationResult : string * seq<Azure.ResourceManager.Resources.Models.WhatIfChange> * seq<Azure.ResourceManager.Resources.Models.WhatIfChange> * seq<Azure.ResourceManager.Resources.Models.DeploymentDiagnosticsDefinition> * Azure.ResponseError -> Azure.ResourceManager.Resources.Models.WhatIfOperationResult
Public Shared Function WhatIfOperationResult (Optional status As String = Nothing, Optional changes As IEnumerable(Of WhatIfChange) = Nothing, Optional potentialChanges As IEnumerable(Of WhatIfChange) = Nothing, Optional diagnostics As IEnumerable(Of DeploymentDiagnosticsDefinition) = Nothing, Optional error As ResponseError = Nothing) As WhatIfOperationResult

Parameters

status
String

Status of the What-If operation.

changes
IEnumerable<WhatIfChange>

List of resource changes predicted by What-If operation.

potentialChanges
IEnumerable<WhatIfChange>

List of resource changes predicted by What-If operation.

diagnostics
IEnumerable<DeploymentDiagnosticsDefinition>

List of resource diagnostics detected by What-If operation.

error
ResponseError

Error when What-If operation fails.

Returns

A new WhatIfOperationResult instance for mocking.

Applies to