Skip to content

Commit 882d2f1

Browse files
committed
Merge pull request #306 from MabOneSdk/mkheranidev1
Changed some parameter name in GetRP to be in sync with Restore and Jobs
2 parents ec9c647 + b2dbb27 commit 882d2f1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Helpers/Conversions/RecoveryPointConversions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ public static List<AzureRmRecoveryServicesBackupRecoveryPointBase> GetPSAzureRec
4242
DateTime recPointTime = DateTime.ParseExact(recPoint.RecoveryPointTime, @"MM/dd/yyyy HH:mm:ss", CultureInfo.InvariantCulture);
4343
AzureRmRecoveryServicesBackupIaasVmRecoveryPoint rpBase = new AzureRmRecoveryServicesBackupIaasVmRecoveryPoint()
4444
{
45-
Name = rp.Name,
45+
RecoveryPointId = rp.Name,
4646
BackupManagementType = item.BackupManagementType,
4747
ItemName = protectedItemName,
4848
ContainerName = containerUri,
4949
ContainerType = item.ContainerType,
5050
RecoveryPointTime = recPointTime,
5151
RecoveryPointType = recPoint.RecoveryPointType,
52-
RecoveryPointId = rp.Id,
52+
Id = rp.Id,
5353
WorkloadType = item.WorkloadType,
5454
RecoveryPointAdditionalInfo = recPoint.RecoveryPointAdditionalInfo,
5555
SourceVMStorageType = recPoint.SourceVMStorageType,
@@ -74,14 +74,14 @@ public static AzureRmRecoveryServicesBackupRecoveryPointBase GetPSAzureRecoveryP
7474

7575
AzureRmRecoveryServicesBackupIaasVmRecoveryPoint result = new AzureRmRecoveryServicesBackupIaasVmRecoveryPoint()
7676
{
77-
Name = rpResponse.RecPoint.Name,
77+
RecoveryPointId = rpResponse.RecPoint.Name,
7878
BackupManagementType = item.BackupManagementType,
7979
ItemName = protectedItemName,
8080
ContainerName = containerUri,
8181
ContainerType = item.ContainerType,
8282
RecoveryPointTime = Convert.ToDateTime(recPoint.RecoveryPointTime).ToLocalTime(),
8383
RecoveryPointType = recPoint.RecoveryPointType,
84-
RecoveryPointId = rpResponse.RecPoint.Id,
84+
Id = rpResponse.RecPoint.Id,
8585
WorkloadType = item.WorkloadType,
8686
RecoveryPointAdditionalInfo = recPoint.RecoveryPointAdditionalInfo,
8787
};

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.HydraAdapter/BMSAPIs/RestoreDiskAPIs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public BaseRecoveryServicesJobResponse RestoreDisk(AzureRmRecoveryServicesBackup
2828
string vaultLocation = BmsAdapter.GetResourceLocation();
2929
string containerName = rp.ContainerName;
3030
string protectedItemName = rp.ItemName;
31-
string recoveryPointId = rp.Name;
31+
string recoveryPointId = rp.RecoveryPointId;
3232
//validtion block
3333
if(storageAccountLocation != vaultLocation)
3434
{

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Models/BaseObjects.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public class AzureRmRecoveryServicesBackupRecoveryPointBase : AzureRmRecoverySer
176176
/// <summary>
177177
///
178178
/// </summary>
179-
public string Name { get; set; }
179+
public string RecoveryPointId { get; set; }
180180

181181
/// <summary>
182182
///
@@ -186,7 +186,7 @@ public class AzureRmRecoveryServicesBackupRecoveryPointBase : AzureRmRecoverySer
186186
/// <summary>
187187
///
188188
/// </summary>
189-
public string RecoveryPointId { get; set; }
189+
public string Id { get; set; }
190190

191191
/// <summary>
192192
///Type of recovery point (appConsistent\CrashConsistent etc)

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup/Microsoft.Azure.Commands.RecoveryServices.Backup.format.ps1xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
<TableRowEntry>
305305
<TableColumnItems>
306306
<TableColumnItem>
307-
<PropertyName>Name</PropertyName>
307+
<PropertyName>RecoveryPointId</PropertyName>
308308
</TableColumnItem>
309309
<TableColumnItem>
310310
<PropertyName>RecoveryPointType</PropertyName>

0 commit comments

Comments
 (0)