@@ -23,14 +23,14 @@ namespace Microsoft.Azure.Commands.RecoveryServices
23
23
/// <summary>
24
24
/// Creates Azure Site Recovery Protection Profile object in memory.
25
25
/// </summary>
26
- [ Cmdlet ( VerbsCommon . New , "AzureSiteRecoveryProtectionProfile" , DefaultParameterSetName = ASRParameterSets . Default ) ]
26
+ [ Cmdlet ( VerbsCommon . New , "AzureSiteRecoveryProtectionProfile" , DefaultParameterSetName = ASRParameterSets . EnterpriseToEnterprise ) ]
27
27
[ OutputType ( typeof ( ASRProtectionProfile ) ) ]
28
28
public class CreateAzureSiteRecoveryProtectionProfileObject : RecoveryServicesCmdletBase
29
29
{
30
30
#region Parameters
31
31
32
32
/// <summary>
33
- /// Gets or sets Replication Type of the Protection Profile.
33
+ /// Gets or sets Replication Provider of the Protection Profile.
34
34
/// </summary>
35
35
[ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
36
36
[ ValidateNotNullOrEmpty ]
@@ -42,7 +42,8 @@ public class CreateAzureSiteRecoveryProtectionProfileObject : RecoveryServicesCm
42
42
/// <summary>
43
43
/// Gets or sets a value for Replication Method of the Protection Profile.
44
44
/// </summary>
45
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
45
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToEnterprise , Mandatory = true ) ]
46
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToAzure , Mandatory = true ) ]
46
47
[ ValidateNotNullOrEmpty ]
47
48
[ ValidateSet (
48
49
"Online" ,
@@ -66,50 +67,57 @@ public class CreateAzureSiteRecoveryProtectionProfileObject : RecoveryServicesCm
66
67
/// <summary>
67
68
/// Gets or sets Replication Frequency of the Protection Profile in seconds.
68
69
/// </summary>
69
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
70
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToEnterprise , Mandatory = true ) ]
71
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToAzure , Mandatory = true ) ]
70
72
[ ValidateNotNullOrEmpty ]
71
- public int ReplicationFrequencySecond { get ; set ; }
73
+ public int ReplicationFrequencyInSeconds { get ; set ; }
72
74
73
75
/// <summary>
74
76
/// Gets or sets Recovery Points of the Protection Profile.
75
77
/// </summary>
76
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
78
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToEnterprise , Mandatory = true ) ]
79
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToAzure , Mandatory = true ) ]
77
80
[ ValidateNotNullOrEmpty ]
78
81
public int RecoveryPoints { get ; set ; }
79
82
80
83
/// <summary>
81
84
/// Gets or sets Application Consistent Snapshot Frequency of the Protection Profile in hours.
82
85
/// </summary>
83
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
86
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToEnterprise , Mandatory = true ) ]
87
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToAzure , Mandatory = true ) ]
84
88
[ ValidateNotNullOrEmpty ]
85
89
public int ApplicationConsistentSnapshotFrequencyInHours { get ; set ; }
86
90
87
91
/// <summary>
88
92
/// Gets or sets a value indicating whether Compression needs to be Enabled on the Protection Profile.
89
93
/// </summary>
90
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
94
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToEnterprise , Mandatory = true ) ]
95
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToAzure , Mandatory = true ) ]
91
96
[ ValidateNotNullOrEmpty ]
92
97
public bool CompressionEnabled { get ; set ; }
93
98
94
99
/// <summary>
95
100
/// Gets or sets the Replication Port of the Protection Profile.
96
101
/// </summary>
97
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
102
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToEnterprise , Mandatory = true ) ]
103
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToAzure , Mandatory = true ) ]
98
104
[ ValidateNotNullOrEmpty ]
99
105
public int ReplicationPort { get ; set ; }
100
106
101
107
/// <summary>
102
108
/// Gets or sets Replication Start time of the Protection Profile.
103
109
/// </summary>
104
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
110
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToEnterprise , Mandatory = true ) ]
111
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToAzure , Mandatory = true ) ]
105
112
[ ValidateNotNullOrEmpty ]
106
113
public int ReplicationStartTime { get ; set ; }
107
114
108
115
/// <summary>
109
116
/// Gets or sets a value indicating whether Replica should be Deleted on
110
117
/// disabling protection of a protection entity protected by the Protection Profile.
111
118
/// </summary>
112
- [ Parameter ( ParameterSetName = ASRParameterSets . Default , Mandatory = true ) ]
119
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToEnterprise , Mandatory = true ) ]
120
+ [ Parameter ( ParameterSetName = ASRParameterSets . EnterpriseToAzure , Mandatory = true ) ]
113
121
[ ValidateNotNullOrEmpty ]
114
122
public bool AllowReplicaDeletion { get ; set ; }
115
123
@@ -165,7 +173,7 @@ private void EnterpriseToAzureProtectionProfileObject()
165
173
ReplicationMethod = this . ReplicationMethod ,
166
174
RecoveryAzureSubscription = this . RecoveryAzureSubscription ,
167
175
RecoveryAzureStorageAccountName = this . RecoveryAzureStorageAccount ,
168
- ReplicationFrequencySecond = this . ReplicationFrequencySecond ,
176
+ ReplicationFrequencySecond = this . ReplicationFrequencyInSeconds ,
169
177
RecoveryPoints = this . RecoveryPoints ,
170
178
ApplicationConsistentSnapshotFrequencyInHours = this . ApplicationConsistentSnapshotFrequencyInHours ,
171
179
CompressionEnabled = this . CompressionEnabled ,
@@ -188,7 +196,7 @@ private void EnterpriseToEnterpriseProtectionProfileObject()
188
196
ReplicationMethod = this . ReplicationMethod ,
189
197
RecoveryAzureSubscription = null ,
190
198
RecoveryAzureStorageAccountName = null ,
191
- ReplicationFrequencySecond = this . ReplicationFrequencySecond ,
199
+ ReplicationFrequencySecond = this . ReplicationFrequencyInSeconds ,
192
200
RecoveryPoints = this . RecoveryPoints ,
193
201
ApplicationConsistentSnapshotFrequencyInHours = this . ApplicationConsistentSnapshotFrequencyInHours ,
194
202
CompressionEnabled = this . CompressionEnabled ,
0 commit comments