Sha256: a3315a8c36c634b14b701b3bb1ae6a5178d4b655f942a1d2c0183a7fff696bbc

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

module Elasticsearch
  module API
    module Ingest
      module Actions

        # Delete a speficied pipeline
        #
        # @option arguments [String] :id Pipeline ID (*Required*)
        # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
        # @option arguments [Time] :timeout Explicit operation timeout
        #
        # @see https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html
        #
        def delete_pipeline(arguments={})
          Utils.__report_unsupported_method(__method__)

          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
          valid_params = [
            :master_timeout,
            :timeout ]
          method = 'DELETE'
          path   = Utils.__pathify "_ingest/pipeline", Utils.__escape(arguments[:id])
          params = Utils.__validate_and_extract_params arguments, valid_params
          body   = nil

          perform_request(method, path, params, body).body
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elasticsearch-api-1.1.3 lib/elasticsearch/api/actions/ingest/delete_pipeline.rb
elasticsearch-api-1.1.2 lib/elasticsearch/api/actions/ingest/delete_pipeline.rb
elasticsearch-api-1.1.1 lib/elasticsearch/api/actions/ingest/delete_pipeline.rb
elasticsearch-api-1.1.0 lib/elasticsearch/api/actions/ingest/delete_pipeline.rb
elasticsearch-api-1.1.pre lib/elasticsearch/api/actions/ingest/delete_pipeline.rb