Sha256: 4f7d014e8568f15cdb852f6ad26c21eea46d773d582b67ca938c3cf4eec663e9

Contents?: true

Size: 1.15 KB

Versions: 44

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module GoGrid
    class Compute
      class Real

        # List images
        #
        # ==== Parameters
        # * options<~Hash>:
        #   * 'datacenter'<~String> - datacenter to limit results to
        #   * 'isPublic'<~String>   - If true only returns public images, in ['false', 'true']
        #   * 'num_items'<~Integer> - Number of items to return
        #   * 'page'<~Integer>      - Page index for paginated results
        #   * 'state'<~String>      - state to limit results to, in ['Saving', 'Available']
        #   * 'type'<~String>       - image type to limit results to
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        # TODO: docs
        def grid_image_list(options={})
          request(
            :path     => 'grid/image/list',
            :query    => options
          )
        end

      end

      class Mock

        def grid_image_list(options={})
          #response = Excon::Response.new

          #images = @data[:list].values
          #for image in images
          #  case image['state']
          #  when 'Available'
        end

      end
    end
  end
end

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
fog-0.8.1 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.8.0 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.7.2 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.7.1 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.7.0 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.6.0 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.5.3 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.5.2 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.5.1 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.5.0 lib/fog/compute/requests/go_grid/grid_image_list.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/go_grid/grid_image_list.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/go_grid/grid_image_list.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/go_grid/grid_image_list.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.4.1 lib/fog/compute/requests/go_grid/grid_image_list.rb
fog-0.4.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-0.3.34 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-0.3.33 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-0.3.32 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-0.3.31 lib/fog/go_grid/requests/compute/grid_image_list.rb