@@ -95,7 +95,7 @@ private static CmdletModel.AzureRmRecoveryServicesBackupAzureVmJob GetPSAzureVmJ
95
95
response . VmVersion = vmJob . VirtualMachineVersion ;
96
96
response . WorkloadName = vmJob . EntityFriendlyName ;
97
97
response . ActivityId = vmJob . ActivityId ;
98
- response . BackupManagementType = CmdletModel . EnumUtils . GetEnum < Microsoft . Azure . Commands . RecoveryServices . Backup . Cmdlets . Models . BackupManagementType > ( GetPSBackupManagementType ( vmJob . BackupManagementType ) ) ;
98
+ response . BackupManagementType = CmdletModel . EnumUtils . GetEnum < CmdletModel . BackupManagementType > ( GetPSBackupManagementType ( vmJob . BackupManagementType ) ) ;
99
99
response . Operation = vmJob . Operation ;
100
100
101
101
if ( vmJob . ErrorDetails != null )
@@ -166,22 +166,22 @@ public static string GetLastIdFromFullId(string fullId)
166
166
167
167
#region Enum translators
168
168
169
- public static string GetJobTypeForService ( Microsoft . Azure . Commands . RecoveryServices . Backup . Cmdlets . Models . BackupManagementType mgmtType )
169
+ public static string GetJobTypeForService ( CmdletModel . BackupManagementType mgmtType )
170
170
{
171
171
switch ( mgmtType )
172
172
{
173
- case Microsoft . Azure . Commands . RecoveryServices . Backup . Cmdlets . Models . BackupManagementType . AzureVM :
174
- return Microsoft . Azure . Management . RecoveryServices . Backup . Models . BackupManagementType . AzureIaasVM . ToString ( ) ;
173
+ case CmdletModel . BackupManagementType . AzureVM :
174
+ return BackupManagementType . AzureIaasVM . ToString ( ) ;
175
175
default :
176
176
throw new Exception ( "Invalid BackupManagementType provided: " + mgmtType ) ;
177
177
}
178
178
}
179
179
180
180
public static string GetPSBackupManagementType ( string jobType )
181
181
{
182
- if ( jobType == Microsoft . Azure . Management . RecoveryServices . Backup . Models . BackupManagementType . AzureIaasVM . ToString ( ) )
182
+ if ( jobType == BackupManagementType . AzureIaasVM . ToString ( ) )
183
183
{
184
- return Microsoft . Azure . Commands . RecoveryServices . Backup . Cmdlets . Models . BackupManagementType . AzureVM . ToString ( ) ;
184
+ return CmdletModel . BackupManagementType . AzureVM . ToString ( ) ;
185
185
}
186
186
else
187
187
{
0 commit comments