lib/elasticsearch/api/actions/machine_learning/get_calendars.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/machine_learning/get_calendars.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -25,16 +25,17 @@
# @option arguments [Integer] :from skips a number of calendars
# @option arguments [Integer] :size specifies a max number of calendars to get
# @option arguments [Hash] :headers Custom HTTP headers
# @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
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/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