mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
8ad7e9e318
Conflicts: lib/fog/google/requests/compute/delete_backend_service.rb
27 lines
541 B
Ruby
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
|