elasticsearch-api/lib/elasticsearch/api/actions/watcher/delete_watch.rb
def delete_watch(arguments = {})
          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]

          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _id = arguments.delete(:id)

          method = Elasticsearch::API::HTTP_DELETE
          path   = "_watcher/watch/#{Utils.__listify(_id)}"
          params = {}

          if Array(arguments[:ignore]).include?(404)
            Utils.__rescue_from_not_found { perform_request(method, path, params, body, headers).body }
          else
            perform_request(method, path, params, body, headers).body
          end
        end
# Removes a watch from Watcher.
#
# @option arguments [String] :id Watch ID
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html
#
Removes a watch from Watcher.
Removes a watch from Watcher .
def delete_watch(arguments = {})
          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _id = arguments.delete(:id)
          method = Elasticsearch::API::HTTP_DELETE
          path   = "_watcher/watch/#{Utils.__listify(_id)}"
          params = {}
          if Array(arguments[:ignore]).include?(404)
            Utils.__rescue_from_not_found { perform_request(method, path, params, body, headers).body }
          else
            perform_request(method, path, params, body, headers).body
          end
        end
def delete_watch ( arguments = { } ) raise ArgumentError , "Required argument 'id' missing" unless arguments [ :id ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _id = arguments . delete ( :id ) method = Elasticsearch :: API :: HTTP_DELETE path = "_watcher/watch/#{Utils.__listify(_id)}" params = { } if Array ( arguments [ :ignore ] ) . include? ( 404 ) Utils . __rescue_from_not_found { perform_request ( method , path , params , body , headers ) . body } else perform_request ( method , path , params , body , headers ) . body end end
Removes a watch from Watcher.
Removes a watch from Watcher .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None