ArmRecoveryServicesDataReplicationModelFactory.DataReplicationProtectedItemProperties 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 DataReplicationProtectedItemProperties.
public static Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationProtectedItemProperties DataReplicationProtectedItemProperties (string policyName = default, string replicationExtensionName = default, string correlationId = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationProvisioningState? provisioningState = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationProtectionState? protectionState = default, string protectionStateDescription = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationTestFailoverState? testFailoverState = default, string testFailoverStateDescription = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationResynchronizationState? resynchronizationState = default, string fabricObjectId = default, string fabricObjectName = default, string sourceFabricProviderId = default, string targetFabricProviderId = default, string fabricId = default, string targetFabricId = default, string draId = default, string targetDraId = default, bool? isResyncRequired = default, DateTimeOffset? lastSuccessfulPlannedFailoverOn = default, DateTimeOffset? lastSuccessfulUnplannedFailoverOn = default, DateTimeOffset? lastSuccessfulTestFailoverOn = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemJobProperties currentJob = default, System.Collections.Generic.IEnumerable<string> allowedJobs = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemJobProperties lastFailedEnableProtectionJob = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemJobProperties lastFailedPlannedFailoverJob = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemJobProperties lastTestFailoverJob = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationHealthStatus? replicationHealth = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationHealthErrorInfo> healthErrors = default, Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemModelCustomProperties customProperties = default);
static member DataReplicationProtectedItemProperties : string * string * string * Nullable<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationProvisioningState> * Nullable<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationProtectionState> * string * Nullable<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationTestFailoverState> * string * Nullable<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationResynchronizationState> * string * string * string * string * string * string * string * string * Nullable<bool> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemJobProperties * seq<string> * Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemJobProperties * Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemJobProperties * Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemJobProperties * Nullable<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationHealthStatus> * seq<Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationHealthErrorInfo> * Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemModelCustomProperties -> Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationProtectedItemProperties
Public Shared Function DataReplicationProtectedItemProperties (Optional policyName As String = Nothing, Optional replicationExtensionName As String = Nothing, Optional correlationId As String = Nothing, Optional provisioningState As Nullable(Of DataReplicationProvisioningState) = Nothing, Optional protectionState As Nullable(Of DataReplicationProtectionState) = Nothing, Optional protectionStateDescription As String = Nothing, Optional testFailoverState As Nullable(Of DataReplicationTestFailoverState) = Nothing, Optional testFailoverStateDescription As String = Nothing, Optional resynchronizationState As Nullable(Of DataReplicationResynchronizationState) = Nothing, Optional fabricObjectId As String = Nothing, Optional fabricObjectName As String = Nothing, Optional sourceFabricProviderId As String = Nothing, Optional targetFabricProviderId As String = Nothing, Optional fabricId As String = Nothing, Optional targetFabricId As String = Nothing, Optional draId As String = Nothing, Optional targetDraId As String = Nothing, Optional isResyncRequired As Nullable(Of Boolean) = Nothing, Optional lastSuccessfulPlannedFailoverOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastSuccessfulUnplannedFailoverOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastSuccessfulTestFailoverOn As Nullable(Of DateTimeOffset) = Nothing, Optional currentJob As ProtectedItemJobProperties = Nothing, Optional allowedJobs As IEnumerable(Of String) = Nothing, Optional lastFailedEnableProtectionJob As ProtectedItemJobProperties = Nothing, Optional lastFailedPlannedFailoverJob As ProtectedItemJobProperties = Nothing, Optional lastTestFailoverJob As ProtectedItemJobProperties = Nothing, Optional replicationHealth As Nullable(Of DataReplicationHealthStatus) = Nothing, Optional healthErrors As IEnumerable(Of DataReplicationHealthErrorInfo) = Nothing, Optional customProperties As ProtectedItemModelCustomProperties = Nothing) As DataReplicationProtectedItemProperties
Parameters
- policyName
- String
Gets or sets the policy name.
- replicationExtensionName
- String
Gets or sets the replication extension name.
- correlationId
- String
Gets or sets the protected item correlation Id.
- provisioningState
- Nullable<DataReplicationProvisioningState>
Gets or sets the provisioning state of the Dra.
- protectionState
- Nullable<DataReplicationProtectionState>
Gets or sets the protection state.
- protectionStateDescription
- String
Gets or sets the protection state description.
- testFailoverState
- Nullable<DataReplicationTestFailoverState>
Gets or sets the test failover state.
- testFailoverStateDescription
- String
Gets or sets the Test failover state description.
- resynchronizationState
- Nullable<DataReplicationResynchronizationState>
Gets or sets the resynchronization state.
- fabricObjectId
- String
Gets or sets the fabric object Id.
- fabricObjectName
- String
Gets or sets the fabric object name.
- sourceFabricProviderId
- String
Gets or sets the source fabric provider Id.
- targetFabricProviderId
- String
Gets or sets the target fabric provider Id.
- fabricId
- String
Gets or sets the fabric Id.
- targetFabricId
- String
Gets or sets the target fabric Id.
- draId
- String
Gets or sets the DRA Id.
- targetDraId
- String
Gets or sets the target DRA Id.
Gets or sets a value indicating whether resynchronization is required or not.
- lastSuccessfulPlannedFailoverOn
- Nullable<DateTimeOffset>
Gets or sets the Last successful planned failover time.
- lastSuccessfulUnplannedFailoverOn
- Nullable<DateTimeOffset>
Gets or sets the Last successful unplanned failover time.
- lastSuccessfulTestFailoverOn
- Nullable<DateTimeOffset>
Gets or sets the Last successful test failover time.
- currentJob
- ProtectedItemJobProperties
Protected item job properties.
- allowedJobs
- IEnumerable<String>
Gets or sets the allowed scenarios on the protected item.
- lastFailedEnableProtectionJob
- ProtectedItemJobProperties
Protected item job properties.
- lastFailedPlannedFailoverJob
- ProtectedItemJobProperties
Protected item job properties.
- lastTestFailoverJob
- ProtectedItemJobProperties
Protected item job properties.
- replicationHealth
- Nullable<DataReplicationHealthStatus>
Gets or sets protected item replication health.
- healthErrors
- IEnumerable<DataReplicationHealthErrorInfo>
Gets or sets the list of health errors.
- customProperties
- ProtectedItemModelCustomProperties
Protected item model custom properties. Please note ProtectedItemModelCustomProperties 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 HyperVToAzStackHciProtectedItemModelCustomProperties, GeneralProtectedItemModelCustomProperties and VMwareToAzStackHciProtectedItemModelCustomProperties.
Returns
A new DataReplicationProtectedItemProperties instance for mocking.
Applies to
Azure SDK for .NET