Skip to content

Commit 4837ffe

Browse files
committed
Update Model Name to AzureRmRecoveryServicesBackupIaasVmRecoveryPoint
1 parent 012003a commit 4837ffe

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static List<AzureRmRecoveryServicesBackupRecoveryPointBase> GetPSAzureRec
4040
RecoveryPoint recPoint = rp.Properties as RecoveryPoint;
4141

4242
DateTime recPointTime = DateTime.ParseExact(recPoint.RecoveryPointTime, @"MM/dd/yyyy HH:mm:ss", CultureInfo.InvariantCulture);
43-
AzureRmRecoveryServicesIaasVmRecoveryPoint rpBase = new AzureRmRecoveryServicesIaasVmRecoveryPoint()
43+
AzureRmRecoveryServicesBackupIaasVmRecoveryPoint rpBase = new AzureRmRecoveryServicesBackupIaasVmRecoveryPoint()
4444
{
4545
Name = rp.Name,
4646
BackupManagementType = item.BackupManagementType,
@@ -72,7 +72,7 @@ public static AzureRmRecoveryServicesBackupRecoveryPointBase GetPSAzureRecoveryP
7272
string containerUri = HelperUtils.GetContainerUri(uriDict, item.Id);
7373
string protectedItemName = HelperUtils.GetProtectedItemUri(uriDict, item.Id);
7474

75-
AzureRmRecoveryServicesIaasVmRecoveryPoint result = new AzureRmRecoveryServicesIaasVmRecoveryPoint()
75+
AzureRmRecoveryServicesBackupIaasVmRecoveryPoint result = new AzureRmRecoveryServicesBackupIaasVmRecoveryPoint()
7676
{
7777
Name = rpResponse.RecPoint.Name,
7878
BackupManagementType = item.BackupManagementType,

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
@@ -20,7 +20,7 @@ public partial class HydraAdapter
2020
/// <param name="protectedItemName"></param>
2121
/// <param name="recoveryPointId"></param>
2222
/// <returns></returns>
23-
public BaseRecoveryServicesJobResponse RestoreDisk(AzureRmRecoveryServicesIaasVmRecoveryPoint rp, string storageAccountId,
23+
public BaseRecoveryServicesJobResponse RestoreDisk(AzureRmRecoveryServicesBackupIaasVmRecoveryPoint rp, string storageAccountId,
2424
string storageAccountLocation, string storageAccountType)
2525
{
2626
string resourceGroupName = BmsAdapter.GetResourceGroupName();

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Models/AzureVmModels/AzureRmRecoveryServicesAzureVmRecoveryPoint.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.Models
2222
{
23-
public class AzureRmRecoveryServicesIaasVmRecoveryPoint : AzureRmRecoveryServicesBackupRecoveryPointBase
23+
public class AzureRmRecoveryServicesBackupIaasVmRecoveryPoint : AzureRmRecoveryServicesBackupRecoveryPointBase
2424
{
2525
/// <summary>
2626
///
@@ -30,7 +30,7 @@ public class AzureRmRecoveryServicesIaasVmRecoveryPoint : AzureRmRecoveryService
3030

3131
public string SourceVMStorageType { get; set; }
3232

33-
public AzureRmRecoveryServicesIaasVmRecoveryPoint()
33+
public AzureRmRecoveryServicesBackupIaasVmRecoveryPoint()
3434
{
3535

3636
}

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Providers/Providers/IaasVmPsBackupProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ public BaseRecoveryServicesJobResponse TriggerBackup()
189189

190190
public BaseRecoveryServicesJobResponse TriggerRestore()
191191
{
192-
AzureRmRecoveryServicesIaasVmRecoveryPoint rp = ProviderData.ProviderParameters[RestoreBackupItemParams.RecoveryPoint]
193-
as AzureRmRecoveryServicesIaasVmRecoveryPoint;
192+
AzureRmRecoveryServicesBackupIaasVmRecoveryPoint rp = ProviderData.ProviderParameters[RestoreBackupItemParams.RecoveryPoint]
193+
as AzureRmRecoveryServicesBackupIaasVmRecoveryPoint;
194194
string storageAccountId = ProviderData.ProviderParameters[RestoreBackupItemParams.StorageAccountId].ToString();
195195
string storageAccountLocation = ProviderData.ProviderParameters[RestoreBackupItemParams.StorageAccountLocation].ToString();
196196
string storageAccountType = ProviderData.ProviderParameters[RestoreBackupItemParams.StorageAccountType].ToString();

0 commit comments

Comments
 (0)