Sha256: 88898f152e012089c43612103e00809c1ea9b2040b54ec266a07c61d1b18d2c2
Contents?: true
Size: 1.13 KB
Versions: 69
Compression:
Stored size: 1.13 KB
Contents
module Elasticsearch module API module Actions # Remove an indexed script from Elasticsearch # # @option arguments [String] :id Script ID (*Required*) # @option arguments [String] :lang Script language (*Required*) # @option arguments [Number] :version Explicit version number for concurrency control # @option arguments [String] :version_type Specific version type (options: internal, external, external_gte, force) # # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-scripting.html # def delete_script(arguments={}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] raise ArgumentError, "Required argument 'lang' missing" unless arguments[:lang] valid_params = [ :version, :version_type ] method = HTTP_DELETE path = "_scripts/#{arguments.delete(:lang)}/#{arguments[:id]}" params = Utils.__validate_and_extract_params arguments, valid_params body = nil perform_request(method, path, params, body).body end end end end
Version data entries
69 entries across 69 versions & 6 rubygems