lib/elasticsearch/api/actions/ingest/simulate.rb in elasticsearch-api-2.0.2 vs lib/elasticsearch/api/actions/ingest/simulate.rb in elasticsearch-api-5.0.0.pre
- old
+ new
@@ -11,16 +11,13 @@
# in executed pipeline
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html
#
def simulate(arguments={})
- Utils.__report_unsupported_method(__method__)
-
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
-
- valid_params = [ :verbose ]
-
- method = HTTP_GET
+ valid_params = [
+ :verbose ]
+ method = 'GET'
path = Utils.__pathify "_ingest/pipeline", Utils.__escape(arguments[:id]), '_simulate'
params = Utils.__validate_and_extract_params arguments, valid_params
body = arguments[:body]
perform_request(method, path, params, body).body