def get_disk_offering(name)
      params = {
          'command' => 'listDiskOfferings',
      }
      json = send_request(params)
      disks = json['diskoffering']

      return nil if !disks

      disks.each { |d|
        return d if d['name'] == name
      }
      nil
    end
def get_disk_offering(name)
      params = {
          'command' => 'listDiskOfferings',
      }
      json = send_request(params)
      disks = json['diskoffering']

      return nil if !disks

      disks.each { |d|
        return d if d['name'] == name
      }
      nil
    end
Finds the disk offering with the specified name.