lib/elasticsearch/api/actions/indices/modify_data_stream.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/indices/modify_data_stream.rb in elasticsearch-api-8.11.0

- old
+ new

@@ -25,13 +25,15 @@ # Modifies a data stream # # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body The data stream modifications (*Required*) # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/data-streams.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/data-streams.html # def modify_data_stream(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || "indices.modify_data_stream" } + raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] arguments = arguments.clone headers = arguments.delete(:headers) || {} @@ -40,10 +42,10 @@ method = Elasticsearch::API::HTTP_POST path = "_data_stream/_modify" params = {} Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers) + perform_request(method, path, params, body, headers, request_opts) ) end end end end