# File lib/fog/network/openstack/requests/update_lbaas_healthmonitor.rb, line 5 def update_lbaas_healthmonitor(healthmonitor_id, options = {}) data = {'healthmonitor' => {}} vanilla_options = [:name, :delay, :timeout, :max_retries, :http_method, :url_path, :expected_codes, :admin_state_up] vanilla_options.select { |o| options.key?(o) }.each do |key| data['healthmonitor'][key] = options[key] end request( :body => Fog::JSON.encode(data), :expects => 200, :method => 'PUT', :path => "lbaas/healthmonitors/#{healthmonitor_id}" ) end