共用方式為


ArmRecoveryServicesSiteRecoveryModelFactory.ReplicationProtectedItemProperties Method

Definition

Initializes a new instance of ReplicationProtectedItemProperties.

public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProtectedItemProperties ReplicationProtectedItemProperties (string friendlyName = default, string protectedItemType = default, Azure.Core.ResourceIdentifier protectableItemId = default, string recoveryServicesProviderId = default, string primaryFabricFriendlyName = default, string primaryFabricProvider = default, string recoveryFabricFriendlyName = default, Azure.Core.ResourceIdentifier recoveryFabricId = default, string primaryProtectionContainerFriendlyName = default, string recoveryProtectionContainerFriendlyName = default, string protectionState = default, string protectionStateDescription = default, string activeLocation = default, string testFailoverState = default, string testFailoverStateDescription = default, string switchProviderState = default, string switchProviderStateDescription = default, System.Collections.Generic.IEnumerable<string> allowedOperations = default, string replicationHealth = default, string failoverHealth = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> healthErrors = default, Azure.Core.ResourceIdentifier policyId = default, string policyFriendlyName = default, DateTimeOffset? lastSuccessfulFailoverOn = default, DateTimeOffset? lastSuccessfulTestFailoverOn = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.CurrentScenarioDetails currentScenario = default, Azure.Core.ResourceIdentifier failoverRecoveryPointId = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProviderSpecificSettings providerSpecificDetails = default, Azure.Core.ResourceIdentifier recoveryContainerId = default, Guid? eventCorrelationId = default);
static member ReplicationProtectedItemProperties : string * string * Azure.Core.ResourceIdentifier * string * string * string * string * Azure.Core.ResourceIdentifier * string * string * string * string * string * string * string * string * string * seq<string> * string * string * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SiteRecoveryHealthError> * Azure.Core.ResourceIdentifier * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.CurrentScenarioDetails * Azure.Core.ResourceIdentifier * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProviderSpecificSettings * Azure.Core.ResourceIdentifier * Nullable<Guid> -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProtectedItemProperties
Public Shared Function ReplicationProtectedItemProperties (Optional friendlyName As String = Nothing, Optional protectedItemType As String = Nothing, Optional protectableItemId As ResourceIdentifier = Nothing, Optional recoveryServicesProviderId As String = Nothing, Optional primaryFabricFriendlyName As String = Nothing, Optional primaryFabricProvider As String = Nothing, Optional recoveryFabricFriendlyName As String = Nothing, Optional recoveryFabricId As ResourceIdentifier = Nothing, Optional primaryProtectionContainerFriendlyName As String = Nothing, Optional recoveryProtectionContainerFriendlyName As String = Nothing, Optional protectionState As String = Nothing, Optional protectionStateDescription As String = Nothing, Optional activeLocation As String = Nothing, Optional testFailoverState As String = Nothing, Optional testFailoverStateDescription As String = Nothing, Optional switchProviderState As String = Nothing, Optional switchProviderStateDescription As String = Nothing, Optional allowedOperations As IEnumerable(Of String) = Nothing, Optional replicationHealth As String = Nothing, Optional failoverHealth As String = Nothing, Optional healthErrors As IEnumerable(Of SiteRecoveryHealthError) = Nothing, Optional policyId As ResourceIdentifier = Nothing, Optional policyFriendlyName As String = Nothing, Optional lastSuccessfulFailoverOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastSuccessfulTestFailoverOn As Nullable(Of DateTimeOffset) = Nothing, Optional currentScenario As CurrentScenarioDetails = Nothing, Optional failoverRecoveryPointId As ResourceIdentifier = Nothing, Optional providerSpecificDetails As ReplicationProviderSpecificSettings = Nothing, Optional recoveryContainerId As ResourceIdentifier = Nothing, Optional eventCorrelationId As Nullable(Of Guid) = Nothing) As ReplicationProtectedItemProperties

Parameters

friendlyName
String

The name.

protectedItemType
String

The type of protected item type.

protectableItemId
ResourceIdentifier

The protected item ARM Id.

recoveryServicesProviderId
String

The recovery provider ARM Id.

primaryFabricFriendlyName
String

The friendly name of the primary fabric.

primaryFabricProvider
String

The fabric provider of the primary fabric.

recoveryFabricFriendlyName
String

The friendly name of recovery fabric.

recoveryFabricId
ResourceIdentifier

The Arm Id of recovery fabric.

primaryProtectionContainerFriendlyName
String

The name of primary protection container friendly name.

recoveryProtectionContainerFriendlyName
String

The name of recovery container friendly name.

protectionState
String

The protection status.

protectionStateDescription
String

The protection state description.

activeLocation
String

The Current active location of the PE.

testFailoverState
String

The Test failover state.

testFailoverStateDescription
String

The Test failover state description.

switchProviderState
String

The switch provider state.

switchProviderStateDescription
String

The switch provider state description.

allowedOperations
IEnumerable<String>

The allowed operations on the Replication protected item.

replicationHealth
String

The consolidated protection health for the VM taking any issues with SRS as well as all the replication units associated with the VM's replication group into account. This is a string representation of the ProtectionHealth enumeration.

failoverHealth
String

The consolidated failover health for the VM.

healthErrors
IEnumerable<SiteRecoveryHealthError>

List of health errors.

policyId
ResourceIdentifier

The ID of Policy governing this PE.

policyFriendlyName
String

The name of Policy governing this PE.

lastSuccessfulFailoverOn
Nullable<DateTimeOffset>

The Last successful failover time.

lastSuccessfulTestFailoverOn
Nullable<DateTimeOffset>

The Last successful test failover time.

currentScenario
CurrentScenarioDetails

The current scenario.

failoverRecoveryPointId
ResourceIdentifier

The recovery point ARM Id to which the Vm was failed over.

providerSpecificDetails
ReplicationProviderSpecificSettings

The Replication provider custom settings. Please note ReplicationProviderSpecificSettings 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 A2AReplicationDetails, A2ACrossClusterMigrationReplicationDetails, HyperVReplicaReplicationDetails, HyperVReplicaBlueReplicationDetails, HyperVReplicaAzureReplicationDetails, HyperVReplicaBaseReplicationDetails, InMageReplicationDetails, InMageAzureV2ReplicationDetails, InMageRcmReplicationDetails and InMageRcmFailbackReplicationDetails.

recoveryContainerId
ResourceIdentifier

The recovery container Id.

eventCorrelationId
Nullable<Guid>

The correlation Id for events associated with this protected item.

Returns

A new ReplicationProtectedItemProperties instance for mocking.

Applies to