lib/elasticsearch/xpack/api/actions/info.rb in elasticsearch-xpack-7.6.0 vs lib/elasticsearch/xpack/api/actions/info.rb in elasticsearch-xpack-7.7.0.pre
- old
+ new
@@ -4,26 +4,27 @@
module Elasticsearch
module XPack
module API
module Actions
- # TODO: Description
-
+ # Retrieves information about the installed X-Pack features.
#
# @option arguments [List] :categories Comma-separated list of info categories. Can be any of: build, license, features
-
+ # @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html
#
def info(arguments = {})
+ headers = arguments.delete(:headers) || {}
+
arguments = arguments.clone
method = Elasticsearch::API::HTTP_GET
path = "_xpack"
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
body = nil
- perform_request(method, path, params, body).body
+ perform_request(method, path, params, body, headers).body
end
# Register this action with its valid params when the module is loaded.
#
# @since 6.2.0