Sha256: fa7eb24357b3005a4a89cc07efcd9162f5f7c56fc470bf3433cf64a065ef76f1
Contents?: true
Size: 759 Bytes
Versions: 22
Compression:
Stored size: 759 Bytes
Contents
module Fog module Compute class Google class Mock def list_images(project=@project) images = data(project)[:images].values build_excon_response({ "kind" => "compute#imageList", "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{project}/global/images", "id" => "projects/#{project}/global/images", "items" => images }) end end class Real def list_images(project=nil) api_method = @compute.images.list project=@project if project.nil? parameters = { 'project' => project } request(api_method, parameters) end end end end end
Version data entries
22 entries across 20 versions & 5 rubygems