ArmHybridComputeModelFactory.MachineRunCommandInstanceView Method

Definition

Initializes a new instance of MachineRunCommandInstanceView.

public static Azure.ResourceManager.HybridCompute.Models.MachineRunCommandInstanceView MachineRunCommandInstanceView (Azure.ResourceManager.HybridCompute.Models.HybridComputeExecutionState? executionState = default, string executionMessage = default, int? exitCode = default, string output = default, string error = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.HybridCompute.Models.ExtensionsResourceStatus> statuses = default);
static member MachineRunCommandInstanceView : Nullable<Azure.ResourceManager.HybridCompute.Models.HybridComputeExecutionState> * string * Nullable<int> * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<Azure.ResourceManager.HybridCompute.Models.ExtensionsResourceStatus> -> Azure.ResourceManager.HybridCompute.Models.MachineRunCommandInstanceView
Public Shared Function MachineRunCommandInstanceView (Optional executionState As Nullable(Of HybridComputeExecutionState) = Nothing, Optional executionMessage As String = Nothing, Optional exitCode As Nullable(Of Integer) = Nothing, Optional output As String = Nothing, Optional error As String = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional statuses As IEnumerable(Of ExtensionsResourceStatus) = Nothing) As MachineRunCommandInstanceView

Parameters

executionState
Nullable<HybridComputeExecutionState>

Script execution status.

executionMessage
String

Communicate script configuration errors or execution messages.

exitCode
Nullable<Int32>

Exit code returned from script execution.

output
String

Script output stream.

error
String

Script error stream.

startOn
Nullable<DateTimeOffset>

Script start time.

endOn
Nullable<DateTimeOffset>

Script end time.

statuses
IEnumerable<ExtensionsResourceStatus>

The status information.

Returns

A new MachineRunCommandInstanceView instance for mocking.

Applies to