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_backend_service.rb
2014-08-07 00:58:55 +00:00

26 lines
637 B
Ruby

module Fog
module Compute
class Google
class Mock
def get_backend_service(service_name)
backend_service = self.data[:backend_services][service_name]
if backend_service.nil?
return nil
end
build_excon_response(backend_service)
end
end
class Real
def get_backend_service(service_name)
api_method = @compute.backend_services.get
parameters = {
'project' => @project,
'backendService' => service_name
}
request(api_method, parameters)
end
end
end
end
end