Skip to content

Commit bc3485c

Browse files
authored
Swagger Changes (#349)
1 parent 568e235 commit bc3485c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public Microsoft.Rest.Azure.AzureOperationResponse EnableProtection()
9393
azureVMResourceGroupName,
9494
policy);
9595

96-
ProtectableObjectResource protectableObjectResource =
96+
WorkloadProtectableItem protectableObjectResource =
9797
GetAzureVMProtectableObject(azureVMName, azureVMRGName, isComputeAzureVM);
9898

9999
Dictionary<UriEnums, string> keyValueDict =
@@ -103,8 +103,9 @@ public Microsoft.Rest.Azure.AzureOperationResponse EnableProtection()
103103
protectedItemUri = HelperUtils.GetProtectableItemUri(
104104
keyValueDict, protectableObjectResource.Id);
105105

106-
AzureIaaSVMProtectableItem iaasVmProtectableItem =
107-
(AzureIaaSVMProtectableItem)protectableObjectResource.Properties;
106+
107+
IaaSVMProtectableItem iaasVmProtectableItem =
108+
(IaaSVMProtectableItem)protectableObjectResource;
108109
if (iaasVmProtectableItem != null)
109110
{
110111
sourceResourceId = iaasVmProtectableItem.VirtualMachineId;

0 commit comments

Comments
 (0)