1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/google/requests/compute/get_url_map.rb
snyquist2 8ad7e9e318 Merge remote-tracking branch 'new-upstream/master' into gce_l7
Conflicts:
	lib/fog/google/requests/compute/delete_backend_service.rb
2014-08-06 20:46:13 +00:00

27 lines
541 B
Ruby

module Fog
module Compute
class Google
class Mock
def get_url_map(name)
url_map = self.data[:url_maps][name]
if url_map.nil?
return nil
end
build_excon_response(url_map)
end
end
class Real
def get_url_map(name)
api_method = @compute.url_maps.get
parameters = {
'project' => @project,
'urlMap' => name
}
request(api_method, parameters)
end
end
end
end
end