lib/elasticsearch/api/actions/fleet/global_checkpoints.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/fleet/global_checkpoints.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -26,18 +26,19 @@ # @option arguments [Boolean] :wait_for_index Whether to wait for the target index to exist and all primary shards be active # @option arguments [List] :checkpoints Comma separated list of checkpoints # @option arguments [Time] :timeout Timeout to wait for global checkpoint to advance # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-global-checkpoints.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/get-global-checkpoints.html # def global_checkpoints(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] - arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil + body = nil + + arguments = arguments.clone _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = "#{Utils.__listify(_index)}/_fleet/global_checkpoints"