public ContainerBase(ServiceClientModel.ProtectionContainerResource protectionContainer) : base(ConversionUtils.GetPsContainerType( protectionContainer.Properties.ContainerType.ToString()), protectionContainer.Properties.BackupManagementType.ToString()) { Name = IdUtils.GetNameFromUri(protectionContainer.Name); }
public ItemContext(ServiceClientModel.ProtectedItem protectedItem, string containerName, ContainerType containerType) : base(containerType, protectedItem.BackupManagementType) { WorkloadType = ConversionUtils.GetPsWorkloadType(protectedItem.WorkloadType); ContainerName = containerName; }
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); } }
public ManagementContext(string backupManagementType) { BackupManagementType = ConversionUtils.GetPsBackupManagementType(backupManagementType); }