Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the
 /// ReplicationProtectedItemProperties class.
 /// </summary>
 /// <param name="friendlyName">The name.</param>
 /// <param name="protectedItemType">The type of protected item
 /// type.</param>
 /// <param name="protectableItemId">The protected item ARM Id.</param>
 /// <param name="recoveryServicesProviderId">The recovery provider ARM
 /// Id.</param>
 /// <param name="primaryFabricFriendlyName">The friendly name of the
 /// primary fabric.</param>
 /// <param name="primaryFabricProvider">The fabric provider of the
 /// primary fabric.</param>
 /// <param name="recoveryFabricFriendlyName">The friendly name of
 /// recovery fabric.</param>
 /// <param name="recoveryFabricId">The Arm Id of recovery
 /// fabric.</param>
 /// <param name="primaryProtectionContainerFriendlyName">The name of
 /// primary protection container friendly name.</param>
 /// <param name="recoveryProtectionContainerFriendlyName">The name of
 /// recovery container friendly name.</param>
 /// <param name="protectionState">The protection status.</param>
 /// <param name="protectionStateDescription">The protection state
 /// description.</param>
 /// <param name="activeLocation">The Current active location of the
 /// PE.</param>
 /// <param name="testFailoverState">The Test failover state.</param>
 /// <param name="testFailoverStateDescription">The Test failover state
 /// description.</param>
 /// <param name="allowedOperations">The allowed operations on the
 /// Replication protected item.</param>
 /// <param name="replicationHealth">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.</param>
 /// <param name="failoverHealth">The consolidated failover health for
 /// the VM.</param>
 /// <param name="healthErrors">List of health errors.</param>
 /// <param name="policyId">The ID of Policy governing this PE.</param>
 /// <param name="policyFriendlyName">The name of Policy governing this
 /// PE.</param>
 /// <param name="lastSuccessfulFailoverTime">The Last successful
 /// failover time.</param>
 /// <param name="lastSuccessfulTestFailoverTime">The Last successful
 /// test failover time.</param>
 /// <param name="currentScenario">The current scenario.</param>
 /// <param name="failoverRecoveryPointId">The recovery point ARM Id to
 /// which the Vm was failed over.</param>
 /// <param name="providerSpecificDetails">The Replication provider
 /// custom settings.</param>
 /// <param name="recoveryContainerId">The recovery container
 /// Id.</param>
 /// <param name="eventCorrelationId">The correlation Id for events
 /// associated with this protected item.</param>
 public ReplicationProtectedItemProperties(string friendlyName = default(string), string protectedItemType = default(string), string protectableItemId = default(string), string recoveryServicesProviderId = default(string), string primaryFabricFriendlyName = default(string), string primaryFabricProvider = default(string), string recoveryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string primaryProtectionContainerFriendlyName = default(string), string recoveryProtectionContainerFriendlyName = default(string), string protectionState = default(string), string protectionStateDescription = default(string), string activeLocation = default(string), string testFailoverState = default(string), string testFailoverStateDescription = default(string), IList <string> allowedOperations = default(IList <string>), string replicationHealth = default(string), string failoverHealth = default(string), IList <HealthError> healthErrors = default(IList <HealthError>), string policyId = default(string), string policyFriendlyName = default(string), System.DateTime?lastSuccessfulFailoverTime = default(System.DateTime?), System.DateTime?lastSuccessfulTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string failoverRecoveryPointId = default(string), ReplicationProviderSpecificSettings providerSpecificDetails = default(ReplicationProviderSpecificSettings), string recoveryContainerId = default(string), string eventCorrelationId = default(string))
 {
     FriendlyName                            = friendlyName;
     ProtectedItemType                       = protectedItemType;
     ProtectableItemId                       = protectableItemId;
     RecoveryServicesProviderId              = recoveryServicesProviderId;
     PrimaryFabricFriendlyName               = primaryFabricFriendlyName;
     PrimaryFabricProvider                   = primaryFabricProvider;
     RecoveryFabricFriendlyName              = recoveryFabricFriendlyName;
     RecoveryFabricId                        = recoveryFabricId;
     PrimaryProtectionContainerFriendlyName  = primaryProtectionContainerFriendlyName;
     RecoveryProtectionContainerFriendlyName = recoveryProtectionContainerFriendlyName;
     ProtectionState                         = protectionState;
     ProtectionStateDescription              = protectionStateDescription;
     ActiveLocation                          = activeLocation;
     TestFailoverState                       = testFailoverState;
     TestFailoverStateDescription            = testFailoverStateDescription;
     AllowedOperations                       = allowedOperations;
     ReplicationHealth                       = replicationHealth;
     FailoverHealth                          = failoverHealth;
     HealthErrors                            = healthErrors;
     PolicyId                       = policyId;
     PolicyFriendlyName             = policyFriendlyName;
     LastSuccessfulFailoverTime     = lastSuccessfulFailoverTime;
     LastSuccessfulTestFailoverTime = lastSuccessfulTestFailoverTime;
     CurrentScenario                = currentScenario;
     FailoverRecoveryPointId        = failoverRecoveryPointId;
     ProviderSpecificDetails        = providerSpecificDetails;
     RecoveryContainerId            = recoveryContainerId;
     EventCorrelationId             = eventCorrelationId;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the RecoveryPlanProperties class.
 /// </summary>
 /// <param name="friendlyName">The friendly name.</param>
 /// <param name="primaryFabricId">The primary fabric Id.</param>
 /// <param name="primaryFabricFriendlyName">The primary fabric friendly
 /// name.</param>
 /// <param name="recoveryFabricId">The recovery fabric Id.</param>
 /// <param name="recoveryFabricFriendlyName">The recovery fabric
 /// friendly name.</param>
 /// <param name="failoverDeploymentModel">The failover deployment
 /// model.</param>
 /// <param name="replicationProviders">The list of replication
 /// providers.</param>
 /// <param name="allowedOperations">The list of allowed
 /// operations.</param>
 /// <param name="lastPlannedFailoverTime">The start time of the last
 /// planned failover.</param>
 /// <param name="lastUnplannedFailoverTime">The start time of the last
 /// unplanned failover.</param>
 /// <param name="lastTestFailoverTime">The start time of the last test
 /// failover.</param>
 /// <param name="currentScenario">The current scenario details.</param>
 /// <param name="currentScenarioStatus">The recovery plan
 /// status.</param>
 /// <param name="currentScenarioStatusDescription">The recovery plan
 /// status description.</param>
 /// <param name="groups">The recovery plan groups.</param>
 public RecoveryPlanProperties(string friendlyName = default(string), string primaryFabricId = default(string), string primaryFabricFriendlyName = default(string), string recoveryFabricId = default(string), string recoveryFabricFriendlyName = default(string), string failoverDeploymentModel = default(string), IList <string> replicationProviders = default(IList <string>), IList <string> allowedOperations = default(IList <string>), System.DateTime?lastPlannedFailoverTime = default(System.DateTime?), System.DateTime?lastUnplannedFailoverTime = default(System.DateTime?), System.DateTime?lastTestFailoverTime = default(System.DateTime?), CurrentScenarioDetails currentScenario = default(CurrentScenarioDetails), string currentScenarioStatus = default(string), string currentScenarioStatusDescription = default(string), IList <RecoveryPlanGroup> groups = default(IList <RecoveryPlanGroup>))
 {
     FriendlyName                     = friendlyName;
     PrimaryFabricId                  = primaryFabricId;
     PrimaryFabricFriendlyName        = primaryFabricFriendlyName;
     RecoveryFabricId                 = recoveryFabricId;
     RecoveryFabricFriendlyName       = recoveryFabricFriendlyName;
     FailoverDeploymentModel          = failoverDeploymentModel;
     ReplicationProviders             = replicationProviders;
     AllowedOperations                = allowedOperations;
     LastPlannedFailoverTime          = lastPlannedFailoverTime;
     LastUnplannedFailoverTime        = lastUnplannedFailoverTime;
     LastTestFailoverTime             = lastTestFailoverTime;
     CurrentScenario                  = currentScenario;
     CurrentScenarioStatus            = currentScenarioStatus;
     CurrentScenarioStatusDescription = currentScenarioStatusDescription;
     Groups = groups;
     CustomInit();
 }