public static string GetTypeForPS(string itemType) { AzureBackupItemType managedContainerType = (AzureBackupItemType)Enum.Parse(typeof(AzureBackupItemType), itemType, true); string returnType = string.Empty; switch (managedContainerType) { case AzureBackupItemType.IaasVM: returnType = "AzureVM"; break; } return(returnType); }
internal static string GetTypeForItem(string typeFromServiceRespone) { AzureBackupItemType managedContainerType = (AzureBackupItemType)Enum.Parse(typeof(AzureBackupItemType), typeFromServiceRespone, true); string itemType = string.Empty; switch (managedContainerType) { case AzureBackupItemType.IaasVM: itemType = "AzureVM"; break; } return(itemType); }