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/hp/requests/lb/update_load_balancer.rb
2013-10-30 19:01:58 -04:00

25 lines
No EOL
522 B
Ruby

module Fog
module HP
class LB
class Real
def update_load_balancer(load_balancer_id, options=())
request(
:body => Fog::JSON.encode(options),
:expects => 202,
:method => 'PUT',
:path => "loadbalancers/#{load_balancer_id}"
)
end
end
class Mock
def update_load_balancer(load_balancer_id, options={})
response = Excon::Response.new
response
end
end
end
end
end