elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_calendar_event.rb
# Deletes scheduled events from a calendar.
#
# @option arguments [String] :calendar_id The ID of the calendar to modify
# @option arguments [String] :event_id The ID of the event to remove from the calendar
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html
#
Deletes scheduled events from a calendar.
Deletes scheduled events from a calendar .
def delete_calendar_event(arguments = {})
          raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
          raise ArgumentError, "Required argument 'event_id' missing" unless arguments[:event_id]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _calendar_id = arguments.delete(:calendar_id)
          _event_id = arguments.delete(:event_id)
          method = Elasticsearch::API::HTTP_DELETE
          path   = "_ml/calendars/#{Utils.__listify(_calendar_id)}/events/#{Utils.__listify(_event_id)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def delete_calendar_event ( arguments = { } ) raise ArgumentError , "Required argument 'calendar_id' missing" unless arguments [ :calendar_id ] raise ArgumentError , "Required argument 'event_id' missing" unless arguments [ :event_id ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _calendar_id = arguments . delete ( :calendar_id ) _event_id = arguments . delete ( :event_id ) method = Elasticsearch :: API :: HTTP_DELETE path = "_ml/calendars/#{Utils.__listify(_calendar_id)}/events/#{Utils.__listify(_event_id)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Deletes scheduled events from a calendar.
Deletes scheduled events from a calendar .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None