lib/elasticsearch/api/actions/indices/promote_data_stream.rb in elasticsearch-api-8.15.0 vs lib/elasticsearch/api/actions/indices/promote_data_stream.rb in elasticsearch-api-8.16.0

- old
+ new

@@ -23,13 +23,14 @@ module Indices module Actions # Promotes a data stream from a replicated data stream managed by CCR to a regular data stream # # @option arguments [String] :name The name of the data stream + # @option arguments [Time] :master_timeout Specify timeout for connection to master # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.15/data-streams.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.16/data-streams.html # def promote_data_stream(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'indices.promote_data_stream' } defined_params = [:name].each_with_object({}) do |variable, set_variables| @@ -46,10 +47,10 @@ _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_POST path = "_data_stream/_promote/#{Utils.__listify(_name)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end