lib/elasticsearch/api/actions/indices/create_data_stream.rb in elasticsearch-api-8.15.0 vs lib/elasticsearch/api/actions/indices/create_data_stream.rb in elasticsearch-api-8.16.0
- old
+ new
@@ -23,13 +23,15 @@
module Indices
module Actions
# Creates a data stream
#
# @option arguments [String] :name The name of the data stream
+ # @option arguments [Time] :timeout Specify timeout for acknowledging the cluster state update
+ # @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 create_data_stream(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'indices.create_data_stream' }
defined_params = [:name].each_with_object({}) do |variable, set_variables|
@@ -46,10 +48,10 @@
_name = arguments.delete(:name)
method = Elasticsearch::API::HTTP_PUT
path = "_data_stream/#{Utils.__listify(_name)}"
- params = {}
+ params = Utils.process_params(arguments)
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)
end