lib/elasticsearch/api/actions/rollup/put_job.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/rollup/put_job.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -27,19 +27,20 @@
#
# @option arguments [String] :id The ID of the job to create
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The job configuration (*Required*)
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-put-job.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/rollup-put-job.html
#
def put_job(arguments = {})
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
+
+ arguments = arguments.clone
_id = arguments.delete(:id)
method = Elasticsearch::API::HTTP_PUT
path = "_rollup/job/#{Utils.__listify(_id)}"