Sha256: 26ba7653a916fef179032610aef029bae87ce0640b08cbf0c05573316b44ac42
Contents?: true
Size: 993 Bytes
Versions: 39
Compression:
Stored size: 993 Bytes
Contents
module Fog module Compute class Google class Mock def get_zone(zone_name) zone = self.data[:zones][zone_name] || { "error" => { "errors" => [ { "domain" => "global", "reason" => "notFound", "message" => "The resource 'projects/#{project}/zones/#{zone_name}' was not found" } ], "code" => 404, "message" => "The resource 'projects/#{project}/zones/#{zone_name}' was not found" } } build_response(:body => zone) end end class Real def get_zone(zone_name) api_method = @compute.zones.get parameters = { 'project' => @project, 'zone' => zone_name } result = self.build_result(api_method, parameters) response = self.build_response(result) end end end end end
Version data entries
39 entries across 39 versions & 2 rubygems