Skip to content

Commit 2154cd0

Browse files
Arpitajinilgupta6
authored andcommitted
Fixing PFO/TFO/UFO build errors
1 parent 1ab57c1 commit 2154cd0

File tree

4 files changed

+19
-30
lines changed

4 files changed

+19
-30
lines changed

src/RecoveryServices/RecoveryServices.SiteRecovery/ReplicationProtectedItem/StartAzureRmRecoveryServicesAsrApplyRecoveryPoint.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ private void StartPEApplyRecoveryPoint()
124124
new HyperVReplicaAzureApplyRecoveryPointInput
125125
{
126126
PrimaryKekCertificatePfx = this.primaryKekCertpfx,
127-
SecondaryKekCertificatePfx = this.secondaryKekCertpfx,
128-
VaultLocation = "dummy"
127+
SecondaryKekCertificatePfx = this.secondaryKekCertpfx
129128
};
130129
input.Properties.ProviderSpecificDetails =
131130
hyperVReplicaAzureApplyRecoveryPointInput;

src/RecoveryServices/RecoveryServices.SiteRecovery/ReplicationProtectedItem/StartAzureRmRecoveryServicesAsrPlannedFailoverJob.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private void StartRPIPlannedFailover()
162162
var plannedFailoverInputProperties = new PlannedFailoverInputProperties
163163
{
164164
FailoverDirection = this.Direction,
165-
ProviderSpecificDetails = new ProviderSpecificFailoverInput()
165+
ProviderSpecificDetails = new PlannedFailoverProviderSpecificFailoverInput()
166166
};
167167

168168
var input = new PlannedFailoverInput { Properties = plannedFailoverInputProperties };
@@ -175,11 +175,10 @@ private void StartRPIPlannedFailover()
175175
{
176176
if (this.Direction == Constants.PrimaryToRecovery)
177177
{
178-
var failoverInput = new HyperVReplicaAzureFailoverProviderInput
178+
var failoverInput = new HyperVReplicaAzurePlannedFailoverProviderInput
179179
{
180180
PrimaryKekCertificatePfx = this.primaryKekCertpfx,
181-
SecondaryKekCertificatePfx = this.secondaryKekCertpfx,
182-
VaultLocation = "dummy"
181+
SecondaryKekCertificatePfx = this.secondaryKekCertpfx
183182
};
184183
input.Properties.ProviderSpecificDetails = failoverInput;
185184
}
@@ -284,8 +283,7 @@ private void StartRpPlannedFailover()
284283
new RecoveryPlanHyperVReplicaAzureFailoverInput
285284
{
286285
PrimaryKekCertificatePfx = this.primaryKekCertpfx,
287-
SecondaryKekCertificatePfx = this.secondaryKekCertpfx,
288-
VaultLocation = "dummy"
286+
SecondaryKekCertificatePfx = this.secondaryKekCertpfx
289287
};
290288
recoveryPlanPlannedFailoverInputProperties.ProviderSpecificDetails.Add(
291289
recoveryPlanHyperVReplicaAzureFailoverInput);

src/RecoveryServices/RecoveryServices.SiteRecovery/ReplicationProtectedItem/StartAzureRmRecoveryServicesAsrTestFailoverJob.cs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ private void StartRPITestFailover()
233233
FailoverDirection = this.Direction,
234234
NetworkId = this.networkId,
235235
NetworkType = this.networkType,
236-
ProviderSpecificDetails = new ProviderSpecificFailoverInput(),
237-
SkipTestFailoverCleanup = bool.TrueString
236+
ProviderSpecificDetails = new TestFailoverProviderSpecificInput()
238237
};
239238

240239
var input = new TestFailoverInput { Properties = testFailoverInputProperties };
@@ -247,7 +246,7 @@ private void StartRPITestFailover()
247246
{
248247
if (this.Direction == Constants.PrimaryToRecovery)
249248
{
250-
var failoverInput = new HyperVReplicaAzureFailoverProviderInput
249+
var failoverInput = new HyperVReplicaAzureTestFailoverInput
251250
{
252251
PrimaryKekCertificatePfx = this.primaryKekCertpfx,
253252
SecondaryKekCertificatePfx = this.secondaryKekCertpfx
@@ -299,7 +298,7 @@ private void StartRPITestFailover()
299298
if (this.Direction == Constants.PrimaryToRecovery)
300299
{
301300
// Set the InMageAzureV2 Provider specific input in the Test Failover Input.
302-
var failoverInput = new InMageAzureV2FailoverProviderInput
301+
var failoverInput = new InMageAzureV2TestFailoverInput
303302
{
304303
RecoveryPointId = this.RecoveryPoint != null ? this.RecoveryPoint.ID : null
305304
};
@@ -327,14 +326,13 @@ private void StartRPITestFailover()
327326
this.ReplicationProtectedItem.ReplicationProvider,
328327
StringComparison.OrdinalIgnoreCase))
329328
{
330-
var failoverInput = new A2AFailoverProviderInput()
329+
var failoverInput = new A2ATestFailoverInput()
331330
{
332331
RecoveryPointId = this.RecoveryPoint != null ? this.RecoveryPoint.ID : null,
333332
CloudServiceCreationOption = this.CloudServiceCreationOption
334333
};
335334

336335
input.Properties.ProviderSpecificDetails = failoverInput;
337-
input.Properties.SkipTestFailoverCleanup = true.ToString();
338336
}
339337

340338
var response = this.RecoveryServicesClient.StartAzureSiteRecoveryTestFailover(
@@ -367,8 +365,7 @@ private void StartRpTestFailover()
367365
: PossibleOperationsDirections.RecoveryToPrimary,
368366
NetworkId = this.networkId,
369367
NetworkType = this.networkType,
370-
ProviderSpecificDetails = new List<RecoveryPlanProviderSpecificFailoverInput>(),
371-
SkipTestFailoverCleanup = bool.TrueString
368+
ProviderSpecificDetails = new List<RecoveryPlanProviderSpecificFailoverInput>()
372369
};
373370

374371
foreach (var replicationProvider in rp.Properties.ReplicationProviders)
@@ -385,8 +382,7 @@ private void StartRpTestFailover()
385382
new RecoveryPlanHyperVReplicaAzureFailoverInput
386383
{
387384
PrimaryKekCertificatePfx = this.primaryKekCertpfx,
388-
SecondaryKekCertificatePfx = this.secondaryKekCertpfx,
389-
VaultLocation = "dummy"
385+
SecondaryKekCertificatePfx = this.secondaryKekCertpfx
390386
};
391387
recoveryPlanTestFailoverInputProperties.ProviderSpecificDetails.Add(
392388
recoveryPlanHyperVReplicaAzureFailoverInput);
@@ -420,8 +416,7 @@ private void StartRpTestFailover()
420416
var recoveryPlanInMageAzureV2FailoverInput =
421417
new RecoveryPlanInMageAzureV2FailoverInput
422418
{
423-
RecoveryPointType = recoveryPointType,
424-
VaultLocation = "dummy"
419+
RecoveryPointType = recoveryPointType
425420
};
426421

427422
// Add the InMageAzureV2 Provider specific input in the Test Failover Input.

src/RecoveryServices/RecoveryServices.SiteRecovery/ReplicationProtectedItem/StartAzureRmRecoveryServicesAsrUnPlannedFailover.cs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private void StartRPIUnplannedFailover()
163163
{
164164
FailoverDirection = this.Direction,
165165
SourceSiteOperations = this.PerformSourceSideAction ? "Required" : "NotRequired",
166-
ProviderSpecificDetails = new ProviderSpecificFailoverInput()
166+
ProviderSpecificDetails = new UnplannedFailoverProviderSpecificInput()
167167
};
168168

169169
var input =
@@ -177,11 +177,10 @@ private void StartRPIUnplannedFailover()
177177
{
178178
if (this.Direction == Constants.PrimaryToRecovery)
179179
{
180-
var failoverInput = new HyperVReplicaAzureFailoverProviderInput
180+
var failoverInput = new HyperVReplicaAzureUnplannedFailoverInput
181181
{
182182
PrimaryKekCertificatePfx = this.primaryKekCertpfx,
183183
SecondaryKekCertificatePfx = this.secondaryKekCertpfx,
184-
VaultLocation = "dummy",
185184
RecoveryPointId = this.RecoveryPoint == null ? null : this.RecoveryPoint.ID
186185
};
187186
input.Properties.ProviderSpecificDetails = failoverInput;
@@ -208,7 +207,7 @@ private void StartRPIUnplannedFailover()
208207
Constants.A2A,
209208
StringComparison.OrdinalIgnoreCase))
210209
{
211-
var failoverInput = new A2AFailoverProviderInput()
210+
var failoverInput = new A2AUnplannedFailoverInput()
212211
{
213212
RecoveryPointId = this.RecoveryPoint == null ? null : this.RecoveryPoint.ID
214213
};
@@ -266,7 +265,7 @@ private void InMageUnplannedFailover(UnplannedFailoverInput input)
266265
: RecoveryPointType.LatestTime;
267266

268267
// Set the InMage Provider specific input in the Unplanned Failover Input.
269-
var failoverInput = new InMageFailoverProviderInput
268+
var failoverInput = new InMageUnplannedFailoverInput
270269
{
271270
RecoveryPointType = recoveryPointType
272271
};
@@ -311,7 +310,7 @@ private void InMageAzureV2UnplannedFailover(UnplannedFailoverInput input)
311310
if (this.Direction == Constants.PrimaryToRecovery)
312311
{
313312
// Set the InMageAzureV2 Provider specific input in the Unplanned Failover Input.
314-
var failoverInput = new InMageAzureV2FailoverProviderInput
313+
var failoverInput = new InMageAzureV2UnplannedFailoverInput
315314
{
316315
RecoveryPointId = this.RecoveryPoint != null ? this.RecoveryPoint.ID : null
317316
};
@@ -361,8 +360,7 @@ private void StartRpUnplannedFailover()
361360
new RecoveryPlanHyperVReplicaAzureFailoverInput
362361
{
363362
PrimaryKekCertificatePfx = this.primaryKekCertpfx,
364-
SecondaryKekCertificatePfx = this.secondaryKekCertpfx,
365-
VaultLocation = "dummy"
363+
SecondaryKekCertificatePfx = this.secondaryKekCertpfx
366364
};
367365
if (this.RecoveryTag != null)
368366
{
@@ -404,8 +402,7 @@ private void StartRpUnplannedFailover()
404402
var recoveryPlanInMageAzureV2FailoverInput =
405403
new RecoveryPlanInMageAzureV2FailoverInput
406404
{
407-
RecoveryPointType = recoveryPointType,
408-
VaultLocation = "dummy"
405+
RecoveryPointType = recoveryPointType
409406
};
410407

411408
// Add the InMageAzureV2 Provider specific input in the Planned Failover Input.

0 commit comments

Comments
 (0)