lib/elasticsearch/api/actions/enrich/get_policy.rb in elasticsearch-api-8.14.0 vs lib/elasticsearch/api/actions/enrich/get_policy.rb in elasticsearch-api-8.15.0

- old
+ new

@@ -23,13 +23,14 @@ module Enrich module Actions # Gets information about an enrich policy. # # @option arguments [List] :name A comma-separated list of enrich policy names + # @option arguments [Time] :master_timeout Timeout for processing on master node # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/get-enrich-policy-api.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.15/get-enrich-policy-api.html # def get_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'enrich.get_policy' } defined_params = [:name].each_with_object({}) do |variable, set_variables| @@ -48,10 +49,10 @@ path = if _name "_enrich/policy/#{Utils.__listify(_name)}" else '_enrich/policy' end - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end