lib/elasticsearch/api/actions/machine_learning/get_jobs.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/machine_learning/get_jobs.rb in elasticsearch-api-8.1.0

- old
+ new

@@ -21,20 +21,20 @@ module Actions # Retrieves configuration information for anomaly detection jobs. # # @option arguments [String] :job_id The ID of the jobs to fetch # @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) - # @option arguments [Boolean] :allow_no_jobs Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) *Deprecated* # @option arguments [Boolean] :exclude_generated Omits fields that are illegal to set on job PUT # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/ml-get-job.html # def get_jobs(arguments = {}) - arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil + + arguments = arguments.clone _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_GET path = if _job_id