Method: Elasticsearch::API::Indices::Actions#modify_data_stream
- Defined in:
- lib/elasticsearch/api/actions/indices/modify_data_stream.rb
#modify_data_stream(arguments = {}) ⇒ Object
Modifies a data stream
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/elasticsearch/api/actions/indices/modify_data_stream.rb', line 32 def modify_data_stream(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) method = Elasticsearch::API::HTTP_POST path = "_data_stream/_modify" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |