lib/elasticsearch/api/actions/watcher/delete_watch.rb in elasticsearch-api-8.7.1 vs lib/elasticsearch/api/actions/watcher/delete_watch.rb in elasticsearch-api-8.8.0

- old
+ new

@@ -13,11 +13,11 @@ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # -# Auto generated from build hash cf0d0c8ed43ab23b6d73c430a66aca4e771fce20 +# Auto generated from build hash f284cc16f4d4b4289bc679aa1529bb504190fe80 # @see https://github.com/elastic/elasticsearch/tree/main/rest-api-spec # module Elasticsearch module API module Watcher @@ -25,11 +25,11 @@ # 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/8.7/watcher-api-delete-watch.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.8/watcher-api-delete-watch.html # def delete_watch(arguments = {}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] arguments = arguments.clone @@ -39,10 +39,10 @@ _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_DELETE path = "_watcher/watch/#{Utils.__listify(_id)}" - params = {} + params = Utils.process_params(arguments) if Array(arguments[:ignore]).include?(404) Utils.__rescue_from_not_found { Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers)