///GENMHASH:BA0EA3BD50E3CD77EC22B73FFC802C41:744865003C628CE889C88FAC8E7D6E87
        public GalleryImageImpl WithUnsupportedDiskType(DiskSkuTypes diskType)
        {
            if (this.Inner.Disallowed == null)
            {
                this.Inner.Disallowed = new Disallowed();
            }
            if (this.Inner.Disallowed.DiskTypes == null)
            {
                this.Inner.Disallowed.DiskTypes = new List <string>();
            }
            bool   found          = false;
            string newDiskTypeStr = diskType.ToString();

            foreach (var diskTypeStr in this.Inner.Disallowed.DiskTypes)
            {
                if (diskTypeStr.Equals(newDiskTypeStr, StringComparison.OrdinalIgnoreCase))
                {
                    found = true;
                    break;
                }
            }
            if (!found)
            {
                this.Inner.Disallowed.DiskTypes.Add(diskType.ToString());
            }
            return(this);
        }
 ///GENMHASH:327CBF262F4C69D4F67206A8BC678FD6:6E1EBADD62B789305803912915AD8226
 public GalleryImageImpl WithoutUnsupportedDiskType(DiskSkuTypes diskType)
 {
     if (this.Inner.Disallowed != null && this.Inner.Disallowed.DiskTypes != null)
     {
         int    foundIndex       = -1;
         int    i                = 0;
         string diskTypeToRemove = diskType.ToString();
         foreach (var diskTypeStr in this.Inner.Disallowed.DiskTypes)
         {
             if (diskTypeStr.Equals(diskTypeToRemove, StringComparison.OrdinalIgnoreCase))
             {
                 foundIndex = i;
                 break;
             }
             i++;
         }
         if (foundIndex != -1)
         {
             this.Inner.Disallowed.DiskTypes.RemoveAt(foundIndex);
         }
     }
     return(this);
 }