lib/elasticsearch/api/actions/security/update_settings.rb in elasticsearch-api-8.14.0 vs lib/elasticsearch/api/actions/security/update_settings.rb in elasticsearch-api-8.15.0
- old
+ new
@@ -22,14 +22,16 @@
module API
module Security
module Actions
# Update settings for the security system index
#
+ # @option arguments [Time] :master_timeout Timeout for connection to master
+ # @option arguments [Time] :timeout Timeout for acknowledgements from all nodes
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body An object with the new settings for each index, if any (*Required*)
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/security-api-update-settings.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.15/security-api-update-settings.html
#
def update_settings(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'security.update_settings' }
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
@@ -39,10 +41,10 @@
body = arguments.delete(:body)
method = Elasticsearch::API::HTTP_PUT
path = '_security/settings'
- params = {}
+ params = Utils.process_params(arguments)
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)
end