Sha256: db9033f2568d7198ef6f4ca03128582a5987d5bb7e1af272a28813537c011a9b

Contents?: true

Size: 1.15 KB

Versions: 43

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module Compute
    class GoGrid
      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 = self.data[:list].values
          #for image in images
          #  case image['state']
          #  when 'Available'
        end
      end
    end
  end
end

Version data entries

43 entries across 41 versions & 6 rubygems

Version Path
fog-2.3.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-ifeel-2.2.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-2.2.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-2.1.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/go_grid/requests/compute/grid_image_list.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/go_grid/requests/compute/grid_image_list.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.42.1 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-2.0.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.42.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.41.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.40.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.39.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.38.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.37.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.36.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.35.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-2.0.0.pre.0 lib/fog/go_grid/requests/compute/grid_image_list.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/go_grid/requests/compute/grid_image_list.rb
fog-1.34.0 lib/fog/go_grid/requests/compute/grid_image_list.rb