docs: def from_name(cls, name):
          """ Retrieve a disk id associated to a name. """
          disks = cls.list({'name': name})
          if len(disks) == 1:
              return disks[0]['id']
          elif not disks:
              return
  
          raise DuplicateResults('disk name %s is ambiguous.' % name)