Sha256: c636f9c74f4a4b58012f30282f790327e73efe250de7869eb7fed36642273e8f

Contents?: true

Size: 667 Bytes

Versions: 7

Compression:

Stored size: 667 Bytes

Contents

module Fog
  module Compute
    class Voxel
      class Real

        require 'fog/compute/parsers/voxel/images_list'

        def images_list(image_id = nil)
          options = {
            :parser     => Fog::Parsers::Compute::Voxel::ImagesList.new,
            :verbosity  => 'compact'
          }

          unless image_id.nil?
            options[:verbosity] = 'extended'
            options[:image_id] = image_id
          end

          data = request("voxel.images.list", options)

          if data.body['stat'] == "ok"
            data
          else
            raise Fog::Compute::Voxel::NotFound
          end
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/voxel/images_list.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/voxel/images_list.rb
fog-0.11.0 lib/fog/compute/requests/voxel/images_list.rb
fog-0.10.0 lib/fog/compute/requests/voxel/images_list.rb
fog4encbs-0.9.0.1 lib/fog/compute/requests/voxel/images_list.rb
fog4encbs-0.9.0 lib/fog/compute/requests/voxel/images_list.rb
fog-0.9.0 lib/fog/compute/requests/voxel/images_list.rb