Partilhar via


AnalyticsDefenderEasmModelFactory.TaskResource Method

Definition

Initializes a new instance of TaskResource.

public static Azure.Analytics.Defender.Easm.TaskResource TaskResource (string id = default, DateTimeOffset? startedAt = default, DateTimeOffset? completedAt = default, DateTimeOffset? lastPolledAt = default, Azure.Analytics.Defender.Easm.TaskResourceState? state = default, Azure.Analytics.Defender.Easm.TaskResourcePhase? phase = default, string reason = default, System.Collections.Generic.IReadOnlyDictionary<string,BinaryData> metadata = default);
static member TaskResource : string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.Analytics.Defender.Easm.TaskResourceState> * Nullable<Azure.Analytics.Defender.Easm.TaskResourcePhase> * string * System.Collections.Generic.IReadOnlyDictionary<string, BinaryData> -> Azure.Analytics.Defender.Easm.TaskResource
Public Shared Function TaskResource (Optional id As String = Nothing, Optional startedAt As Nullable(Of DateTimeOffset) = Nothing, Optional completedAt As Nullable(Of DateTimeOffset) = Nothing, Optional lastPolledAt As Nullable(Of DateTimeOffset) = Nothing, Optional state As Nullable(Of TaskResourceState) = Nothing, Optional phase As Nullable(Of TaskResourcePhase) = Nothing, Optional reason As String = Nothing, Optional metadata As IReadOnlyDictionary(Of String, BinaryData) = Nothing) As TaskResource

Parameters

id
String

The unique identifier of the task.

startedAt
Nullable<DateTimeOffset>

The time the task started.

completedAt
Nullable<DateTimeOffset>

The time the task completed.

lastPolledAt
Nullable<DateTimeOffset>

The last time the status of the task was updated.

state
Nullable<TaskResourceState>

The state the task is in.

phase
Nullable<TaskResourcePhase>

The phase the task is in.

reason
String

The reason the task was moved into its current state, if the task wasn't completed.

metadata
IReadOnlyDictionary<String,BinaryData>

Attributes unique to the task. This differs by task type.

Returns

A new TaskResource instance for mocking.

Applies to