2012-10-22 17:15:33 -07:00
|
|
|
module Fog
|
|
|
|
module Compute
|
2012-12-04 12:05:11 -08:00
|
|
|
class Google
|
2012-10-22 17:15:33 -07:00
|
|
|
|
|
|
|
class Mock
|
|
|
|
|
|
|
|
def list_images
|
|
|
|
Fog::Mock.not_implemented
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
class Real
|
|
|
|
|
2013-08-02 11:46:32 +02:00
|
|
|
def list_images(project=nil)
|
2012-10-22 17:15:33 -07:00
|
|
|
api_method = @compute.images.list
|
2013-08-02 11:46:32 +02:00
|
|
|
project=@project if project.nil?
|
2012-10-22 17:15:33 -07:00
|
|
|
parameters = {
|
2013-08-02 11:46:32 +02:00
|
|
|
'project' => project
|
2012-10-22 17:15:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
result = self.build_result(api_method, parameters)
|
|
|
|
response = self.build_response(result)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|