lib/elasticsearch/api/actions/security/update_settings.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/security/update_settings.rb in elasticsearch-api-8.13.0
- old
+ new
@@ -25,23 +25,23 @@
# Update settings for the security system index
#
# @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.12/security-api-update-settings.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/security-api-update-settings.html
#
def update_settings(arguments = {})
- request_opts = { endpoint: arguments[:endpoint] || "security.update_settings" }
+ request_opts = { endpoint: arguments[:endpoint] || 'security.update_settings' }
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
method = Elasticsearch::API::HTTP_PUT
- path = "_security/settings"
+ path = '_security/settings'
params = {}
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)