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