lib/elasticsearch/api/actions/info.rb in elasticsearch-api-7.4.0 vs lib/elasticsearch/api/actions/info.rb in elasticsearch-api-7.5.0.pre.pre
- old
+ new
@@ -3,21 +3,24 @@
# See the LICENSE file in the project root for more information
module Elasticsearch
module API
module Actions
+ # Returns basic information about the cluster.
+ #
- # Return simple information about the cluster (name, version).
#
- # @see http://elasticsearch.org/guide/
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.5/index.html
#
- def info(arguments={})
- method = HTTP_GET
+ def info(arguments = {})
+ arguments = arguments.clone
+
+ method = Elasticsearch::API::HTTP_GET
path = ""
params = {}
- body = nil
+ body = nil
perform_request(method, path, params, body).body
end
end
- end
+ end
end