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
|