Sdílet prostřednictvím


ArmRecoveryServicesSiteRecoveryModelFactory.SiteRecoveryJobProperties Method

Definition

Initializes a new instance of SiteRecoveryJobProperties.

public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryJobProperties SiteRecoveryJobProperties (string activityId = default, string scenarioName = default, string friendlyName = default, string state = default, string stateDescription = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AsrTask> tasks = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryJobErrorDetails> errors = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, System.Collections.Generic.IEnumerable<string> allowedActions = default, string targetObjectId = default, string targetObjectName = default, string targetInstanceType = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryJobDetails customDetails = default);
static member SiteRecoveryJobProperties : string * string * string * string * string * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.AsrTask> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryJobErrorDetails> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * seq<string> * string * string * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryJobDetails -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryJobProperties
Public Shared Function SiteRecoveryJobProperties (Optional activityId As String = Nothing, Optional scenarioName As String = Nothing, Optional friendlyName As String = Nothing, Optional state As String = Nothing, Optional stateDescription As String = Nothing, Optional tasks As IEnumerable(Of AsrTask) = Nothing, Optional errors As IEnumerable(Of SiteRecoveryJobErrorDetails) = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional allowedActions As IEnumerable(Of String) = Nothing, Optional targetObjectId As String = Nothing, Optional targetObjectName As String = Nothing, Optional targetInstanceType As String = Nothing, Optional customDetails As SiteRecoveryJobDetails = Nothing) As SiteRecoveryJobProperties

Parameters

activityId
String

The activity id.

scenarioName
String

The ScenarioName.

friendlyName
String

The DisplayName.

state
String

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

stateDescription
String

The description of the state of the Job. For e.g. - For Succeeded state, description can be Completed, PartiallySucceeded, CompletedWithInformation or Skipped.

tasks
IEnumerable<AsrTask>

The tasks.

startOn
Nullable<DateTimeOffset>

The start time.

endOn
Nullable<DateTimeOffset>

The end time.

allowedActions
IEnumerable<String>

The Allowed action the job.

targetObjectId
String

The affected Object Id.

targetObjectName
String

The name of the affected object.

targetInstanceType
String

The type of the affected object which is of Microsoft.Azure.SiteRecovery.V2015_11_10.AffectedObjectType class.

customDetails
SiteRecoveryJobDetails

The custom job details like test failover job details. Please note SiteRecoveryJobDetails 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 AsrJobDetails, ExportJobDetails, FailoverJobDetails, SwitchProtectionJobDetails and TestFailoverJobDetails.

Returns

A new SiteRecoveryJobProperties instance for mocking.

Applies to