elasticsearch-api/lib/elasticsearch/api/actions/ingest/put_pipeline.rb
# Creates or updates a pipeline.
#
# @option arguments [String] :id Pipeline ID
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The ingest definition (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html
#
Creates or updates a pipeline.
Creates or updates a pipeline .
def put_pipeline(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _id = arguments.delete(:id)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_ingest/pipeline/#{Utils.__listify(_id)}"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def put_pipeline ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'id' missing" unless arguments [ :id ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _id = arguments . delete ( :id ) method = Elasticsearch :: API :: HTTP_PUT path = "_ingest/pipeline/#{Utils.__listify(_id)}" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Creates or updates a pipeline.
Creates or updates a pipeline .
arguments
:body The ingest definition (*Required*)
: body The ingest definition ( * Required * )
see
None