Beispiel #1
0
 public ContainerBase(ServiceClientModel.ProtectionContainerResource protectionContainer)
     : base(ConversionUtils.GetPsContainerType(
                protectionContainer.Properties.ContainerType.ToString()),
            protectionContainer.Properties.BackupManagementType.ToString())
 {
     Name = IdUtils.GetNameFromUri(protectionContainer.Name);
 }
Beispiel #2
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);
     }
 }