lib/elasticsearch/api/actions/machine_learning/get_calendars.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/machine_learning/get_calendars.rb in elasticsearch-api-8.0.1

- old
+ new

@@ -28,14 +28,13 @@ # @option arguments [Hash] :body The from and size parameters optionally sent in the body # # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html # def get_calendars(arguments = {}) + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) - - arguments = arguments.clone _calendar_id = arguments.delete(:calendar_id) method = if body Elasticsearch::API::HTTP_POST