ArmRecoveryServicesSiteRecoveryModelFactory.AsrTask 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 AsrTask.
public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AsrTask AsrTask (string taskId = default, string name = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, System.Collections.Generic.IEnumerable<string> allowedActions = default, string friendlyName = default, string state = default, string stateDescription = default, string taskType = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryTaskTypeDetails customDetails = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryGroupTaskDetails groupTaskCustomDetails = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryJobErrorDetails> errors = default);
static member AsrTask : string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<string> * string * string * string * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryTaskTypeDetails * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryGroupTaskDetails * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryJobErrorDetails> -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AsrTask
Public Shared Function AsrTask (Optional taskId As String = Nothing, Optional name As String = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional allowedActions As IEnumerable(Of String) = Nothing, Optional friendlyName As String = Nothing, Optional state As String = Nothing, Optional stateDescription As String = Nothing, Optional taskType As String = Nothing, Optional customDetails As SiteRecoveryTaskTypeDetails = Nothing, Optional groupTaskCustomDetails As SiteRecoveryGroupTaskDetails = Nothing, Optional errors As IEnumerable(Of SiteRecoveryJobErrorDetails) = Nothing) As AsrTask
Parameters
- taskId
- String
The Id.
- name
- String
The unique Task name.
- startOn
- Nullable<DateTimeOffset>
The start time.
- endOn
- Nullable<DateTimeOffset>
The end time.
- allowedActions
- IEnumerable<String>
The state/actions applicable on this task.
- friendlyName
- String
The name.
- state
- String
The State. It is one of these values - NotStarted, InProgress, Succeeded, Failed, Cancelled, Suspended or Other.
- stateDescription
- String
The description of the task state. For example - For Succeeded state, description can be Completed, PartiallySucceeded, CompletedWithInformation or Skipped.
- taskType
- String
The type of task. Details in CustomDetails property depend on this type.
- customDetails
- SiteRecoveryTaskTypeDetails
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.
- groupTaskCustomDetails
- SiteRecoveryGroupTaskDetails
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.
The task error details.
Returns
A new AsrTask instance for mocking.