lib/elasticsearch/api/actions/tasks/list.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/tasks/list.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -32,16 +32,17 @@
# @option arguments [Boolean] :wait_for_completion Wait for the matching tasks to complete (default: false)
# @option arguments [String] :group_by Group tasks by nodes or parent/child relationships (options: nodes, parents, none)
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/tasks.html
#
def list(arguments = {})
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
- body = nil
+ body = nil
+
+ arguments = arguments.clone
method = Elasticsearch::API::HTTP_GET
path = "_tasks"
params = Utils.process_params(arguments)