Sdílet prostřednictvím


ArmRecoveryServicesSiteRecoveryModelFactory.SiteRecoveryMigrationItemProperties Method

Definition

Initializes a new instance of SiteRecoveryMigrationItemProperties.

public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryMigrationItemProperties SiteRecoveryMigrationItemProperties (string machineName = default, Azure.Core.ResourceIdentifier policyId = default, string policyFriendlyName = default, string recoveryServicesProviderId = default, string replicationStatus = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryMigrationState? migrationState = default, string migrationStateDescription = default, DateTimeOffset? lastTestMigrationOn = default, string lastTestMigrationStatus = default, DateTimeOffset? lastMigrationOn = default, string lastMigrationStatus = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.TestMigrationState? testMigrateState = default, string testMigrateStateDescription = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryProtectionHealth? health = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> healthErrors = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.MigrationItemOperation> allowedOperations = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.CurrentJobDetails currentJob = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.CriticalJobHistoryDetails> criticalJobHistory = default, string eventCorrelationId = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.MigrationProviderSpecificSettings providerSpecificDetails = default);
static member SiteRecoveryMigrationItemProperties : string * Azure.Core.ResourceIdentifier * string * string * string * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryMigrationState> * string * Nullable<DateTimeOffset> * string * Nullable<DateTimeOffset> * string * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.TestMigrationState> * string * Nullable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryProtectionHealth> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.MigrationItemOperation> * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.CurrentJobDetails * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.CriticalJobHistoryDetails> * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.MigrationProviderSpecificSettings -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryMigrationItemProperties
Public Shared Function SiteRecoveryMigrationItemProperties (Optional machineName As String = Nothing, Optional policyId As ResourceIdentifier = Nothing, Optional policyFriendlyName As String = Nothing, Optional recoveryServicesProviderId As String = Nothing, Optional replicationStatus As String = Nothing, Optional migrationState As Nullable(Of SiteRecoveryMigrationState) = Nothing, Optional migrationStateDescription As String = Nothing, Optional lastTestMigrationOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastTestMigrationStatus As String = Nothing, Optional lastMigrationOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastMigrationStatus As String = Nothing, Optional testMigrateState As Nullable(Of TestMigrationState) = Nothing, Optional testMigrateStateDescription As String = Nothing, Optional health As Nullable(Of SiteRecoveryProtectionHealth) = Nothing, Optional healthErrors As IEnumerable(Of SiteRecoveryHealthError) = Nothing, Optional allowedOperations As IEnumerable(Of MigrationItemOperation) = Nothing, Optional currentJob As CurrentJobDetails = Nothing, Optional criticalJobHistory As IEnumerable(Of CriticalJobHistoryDetails) = Nothing, Optional eventCorrelationId As String = Nothing, Optional providerSpecificDetails As MigrationProviderSpecificSettings = Nothing) As SiteRecoveryMigrationItemProperties

Parameters

machineName
String

The on-premise virtual machine name.

policyId
ResourceIdentifier

The ARM Id of policy governing this item.

policyFriendlyName
String

The name of policy governing this item.

recoveryServicesProviderId
String

The recovery services provider ARM Id.

replicationStatus
String

The replication status.

migrationState
Nullable<SiteRecoveryMigrationState>

The migration status.

migrationStateDescription
String

The migration state description.

lastTestMigrationOn
Nullable<DateTimeOffset>

The last test migration time.

lastTestMigrationStatus
String

The status of the last test migration.

lastMigrationOn
Nullable<DateTimeOffset>

The last migration time.

lastMigrationStatus
String

The status of the last migration.

testMigrateState
Nullable<TestMigrationState>

The test migrate state.

testMigrateStateDescription
String

The test migrate state description.

health
Nullable<SiteRecoveryProtectionHealth>

The consolidated health.

healthErrors
IEnumerable<SiteRecoveryHealthError>

The list of health errors.

allowedOperations
IEnumerable<MigrationItemOperation>

The allowed operations on the migration item based on the current migration state of the item.

currentJob
CurrentJobDetails

The current job details.

criticalJobHistory
IEnumerable<CriticalJobHistoryDetails>

The critical past job details.

eventCorrelationId
String

The correlation Id for events associated with this migration item.

providerSpecificDetails
MigrationProviderSpecificSettings

The migration provider custom settings. Please note MigrationProviderSpecificSettings 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 VMwareCbtMigrationDetails.

Returns

A new SiteRecoveryMigrationItemProperties instance for mocking.

Applies to