Sha256: e2f1d1a2ddf415f06dd6ccdae68976e8e43757000e8ba936f7509be3e73035e3
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 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 = self.data[:list].values #for image in images # case image['state'] # when 'Available' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.8.2 | lib/fog/compute/requests/go_grid/grid_image_list.rb |