@@ -300,10 +300,12 @@ public ASRProtectionContainer(ProtectionContainer pc)
300
300
301
301
if ( profile . ReplicationProvider == Constants . HyperVReplicaAzure )
302
302
{
303
+ asrProtectionProfile . HyperVReplicaAzureProviderSettingsObject = new HyperVReplicaAzureProviderSettings ( ) ;
303
304
asrProtectionProfile . HyperVReplicaAzureProviderSettingsObject . AssociationDetail = new List < ASRProtectionProfileAssociationDetails > ( ) ;
304
305
}
305
306
else if ( profile . ReplicationProvider == Constants . HyperVReplica )
306
307
{
308
+ asrProtectionProfile . HyperVReplicaProviderSettingsObject = new HyperVReplicaProviderSettings ( ) ;
307
309
asrProtectionProfile . HyperVReplicaProviderSettingsObject . AssociationDetail = new List < ASRProtectionProfileAssociationDetails > ( ) ;
308
310
}
309
311
@@ -523,158 +525,6 @@ public ASRProtectionProfile(ProtectionProfile protectionProfile)
523
525
#endregion Properties
524
526
}
525
527
526
- /// <summary>
527
- /// Azure Site Recovery Protection Profile HyperVReplicaProviderSettings.
528
- /// </summary>
529
- [ SuppressMessage (
530
- "Microsoft.StyleCop.CSharp.MaintainabilityRules" ,
531
- "SA1402:FileMayOnlyContainASingleClass" ,
532
- Justification = "Keeping all related objects together." ) ]
533
- public class HyperVReplicaProviderSettings
534
- {
535
- /// <summary>
536
- /// Initializes a new instance of the <see cref="HyperVReplicaProviderSettings" /> class.
537
- /// </summary>
538
- public HyperVReplicaProviderSettings ( )
539
- {
540
- }
541
-
542
- #region Properties
543
-
544
- /// <summary>
545
- /// Gets or sets Replication Method.
546
- /// </summary>
547
- public string ReplicationMethod { get ; set ; }
548
-
549
- /// <summary>
550
- /// Gets or sets a value indicating whether profile can be dissociated or not.
551
- /// </summary>
552
- public bool CanDissociate { get ; set ; }
553
-
554
- /// <summary>
555
- /// Gets or sets Association Details.
556
- /// </summary>
557
- public List < ASRProtectionProfileAssociationDetails > AssociationDetail { get ; set ; }
558
-
559
- /// <summary>
560
- /// Gets or sets Replication Frequency in seconds.
561
- /// </summary>
562
- public int ReplicationFrequencyInSeconds { get ; set ; }
563
-
564
- /// <summary>
565
- /// Gets or sets Recovery Points.
566
- /// </summary>
567
- public int RecoveryPoints { get ; set ; }
568
-
569
- /// <summary>
570
- /// Gets or sets Application Consistent Snapshot Frequency in hours.
571
- /// </summary>
572
- public int ApplicationConsistentSnapshotFrequencyInHours { get ; set ; }
573
-
574
- /// <summary>
575
- /// Gets or sets a value indicating whether Compression is Enabled.
576
- /// </summary>
577
- public bool CompressionEnabled { get ; set ; }
578
-
579
- /// <summary>
580
- /// Gets or sets the replication port.
581
- /// </summary>
582
- public int ReplicationPort { get ; set ; }
583
-
584
- /// <summary>
585
- /// Gets or sets Replication Start Time.
586
- /// </summary>
587
- public TimeSpan ? ReplicationStartTime { get ; set ; }
588
-
589
- /// <summary>
590
- /// Gets or sets a value indicating whether Replica Deletion should be enabled.
591
- /// </summary>
592
- public bool AllowReplicaDeletion { get ; set ; }
593
-
594
- #endregion
595
- }
596
-
597
- /// <summary>
598
- /// Azure Site Recovery Protection Profile HyperVReplicaAzureProviderSettings.
599
- /// </summary>
600
- [ SuppressMessage (
601
- "Microsoft.StyleCop.CSharp.MaintainabilityRules" ,
602
- "SA1402:FileMayOnlyContainASingleClass" ,
603
- Justification = "Keeping all related objects together." ) ]
604
- public class HyperVReplicaAzureProviderSettings
605
- {
606
- /// <summary>
607
- /// Initializes a new instance of the <see cref="HyperVReplicaAzureProviderSettings" /> class.
608
- /// </summary>
609
- public HyperVReplicaAzureProviderSettings ( )
610
- {
611
- }
612
-
613
- #region Properties
614
-
615
- /// <summary>
616
- /// Gets or sets Replication Method.
617
- /// </summary>
618
- public string ReplicationMethod { get ; set ; }
619
-
620
- /// <summary>
621
- /// Gets or sets a value indicating whether profile can be dissociated or not.
622
- /// </summary>
623
- public bool CanDissociate { get ; set ; }
624
-
625
- /// <summary>
626
- /// Gets or sets Association Details.
627
- /// </summary>
628
- public List < ASRProtectionProfileAssociationDetails > AssociationDetail { get ; set ; }
629
-
630
- /// <summary>
631
- /// Gets or sets Recovery Azure Subscription.
632
- /// </summary>
633
- public string RecoveryAzureSubscription { get ; set ; }
634
-
635
- /// <summary>
636
- /// Gets or sets Recovery Azure Storage Account Name.
637
- /// </summary>
638
- public string RecoveryAzureStorageAccountName { get ; set ; }
639
-
640
- /// <summary>
641
- /// Gets or sets Replication Frequency in seconds.
642
- /// </summary>
643
- public int ReplicationFrequencyInSeconds { get ; set ; }
644
-
645
- /// <summary>
646
- /// Gets or sets Recovery Points.
647
- /// </summary>
648
- public int RecoveryPoints { get ; set ; }
649
-
650
- /// <summary>
651
- /// Gets or sets Application Consistent Snapshot Frequency in hours.
652
- /// </summary>
653
- public int ApplicationConsistentSnapshotFrequencyInHours { get ; set ; }
654
-
655
- /// <summary>
656
- /// Gets or sets a value indicating whether Compression is Enabled.
657
- /// </summary>
658
- public bool CompressionEnabled { get ; set ; }
659
-
660
- /// <summary>
661
- /// Gets or sets the replication port.
662
- /// </summary>
663
- public int ReplicationPort { get ; set ; }
664
-
665
- /// <summary>
666
- /// Gets or sets Replication Start Time.
667
- /// </summary>
668
- public TimeSpan ? ReplicationStartTime { get ; set ; }
669
-
670
- /// <summary>
671
- /// Gets or sets a value indicating whether Replica Deletion should be enabled.
672
- /// </summary>
673
- public bool AllowReplicaDeletion { get ; set ; }
674
-
675
- #endregion
676
- }
677
-
678
528
/// <summary>
679
529
/// Azure Site Recovery Virtual Machine.
680
530
/// </summary>
0 commit comments