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