lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb in elasticsearch-api-8.14.0 vs lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb in elasticsearch-api-8.15.0

- old
+ new

@@ -23,13 +23,14 @@ module Autoscaling module Actions # Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported. # # @option arguments [String] :name the name of the autoscaling policy + # @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/autoscaling-get-autoscaling-policy.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.15/autoscaling-get-autoscaling-policy.html # def get_autoscaling_policy(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'autoscaling.get_autoscaling_policy' } defined_params = [:name].each_with_object({}) do |variable, set_variables| @@ -46,10 +47,10 @@ _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_GET path = "_autoscaling/policy/#{Utils.__listify(_name)}" - params = {} + params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end