public ContainerBase(ServiceClientModel.ProtectionContainerResource protectionContainer) : base(ConversionUtils.GetPsContainerType( protectionContainer.Properties.ContainerType.ToString()), protectionContainer.Properties.BackupManagementType.ToString()) { Name = IdUtils.GetNameFromUri(protectionContainer.Name); }
public ContainerBase(ServiceClientModel.ProtectionContainerResource protectionContainer) : base(ConversionUtils.GetPsContainerType( protectionContainer.Properties.BackupManagementType), protectionContainer.Properties.BackupManagementType) { if (string.Compare(protectionContainer.Properties.BackupManagementType, ServiceClientModel.BackupManagementType.AzureWorkload) == 0) { Name = protectionContainer.Name; } else { Name = IdUtils.GetNameFromUri(protectionContainer.Name); } }