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

25 lines
522 B
Ruby
Raw Normal View History

2013-03-01 17:46:56 -06:00
module Fog
module HP
2013-03-05 10:25:30 -06:00
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}"
)
2013-03-01 17:46:56 -06:00
end
2013-03-05 10:25:30 -06:00
end
class Mock
def update_load_balancer(load_balancer_id, options={})
response = Excon::Response.new
2013-03-01 17:46:56 -06:00
2013-03-04 14:33:54 -06:00
2013-03-05 10:25:30 -06:00
response
2013-03-01 17:46:56 -06:00
end
end
end
end
end