lib/elasticsearch/api/actions/indices/create_data_stream.rb in elasticsearch-api-7.8.1 vs lib/elasticsearch/api/actions/indices/create_data_stream.rb in elasticsearch-api-7.9.0.pre

- old
+ new

@@ -18,23 +18,18 @@ module Elasticsearch module API module Indices module Actions # Creates or updates a data stream - # This functionality is Experimental and may be changed or removed - # completely in a future release. Elastic will take a best effort approach - # to fix any issues, but experimental features are not subject to the - # support SLA of official GA features. # # @option arguments [String] :name The name of the data stream # @option arguments [Hash] :headers Custom HTTP headers - # @option arguments [Hash] :body The data stream definition (*Required*) + # @option arguments [Hash] :body The data stream definition # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/data-streams.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/data-streams.html # def create_data_stream(arguments = {}) - raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] headers = arguments.delete(:headers) || {} arguments = arguments.clone @@ -46,9 +41,9 @@ params = {} body = arguments[:body] perform_request(method, path, params, body, headers).body end -end end + end end end