共用方式為


AsrTask Class

Definition

Task of the Job.

public class AsrTask : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AsrTask>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AsrTask>
type AsrTask = class
    interface IJsonModel<AsrTask>
    interface IPersistableModel<AsrTask>
Public Class AsrTask
Implements IJsonModel(Of AsrTask), IPersistableModel(Of AsrTask)
Inheritance
AsrTask
Implements

Properties

AllowedActions

The state/actions applicable on this task.

CustomDetails

The custom task details based on the task type. Please note SiteRecoveryTaskTypeDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include AutomationRunbookTaskDetails, ConsistencyCheckTaskDetails, FabricReplicationGroupTaskDetails, SiteRecoveryJobTaskDetails, ManualActionTaskDetails, ScriptActionTaskDetails, SiteRecoveryVmTaskDetails and VmNicUpdatesTaskDetails.

EndOn

The end time.

Errors

The task error details.

FriendlyName

The name.

GroupTaskCustomDetails

The custom task details based on the task type, if the task type is GroupTaskDetails or one of the types derived from it. Please note SiteRecoveryGroupTaskDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include InlineWorkflowTaskDetails, RecoveryPlanGroupTaskDetails and RecoveryPlanShutdownGroupTaskDetails.

Name

The unique Task name.

StartOn

The start time.

State

The State. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other.

StateDescription

The description of the task state. For example - For Succeeded state, description can be Completed, PartiallySucceeded, CompletedWithInformation or Skipped.

TaskId

The Id.

TaskType

The type of task. Details in CustomDetails property depend on this type.

Explicit Interface Implementations

IJsonModel<AsrTask>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AsrTask>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AsrTask>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AsrTask>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AsrTask>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to