lib/fastly/api/events_api.rb in fastly-7.1.0 vs lib/fastly/api/events_api.rb in fastly-7.1.1

- old
+ new

@@ -86,10 +86,14 @@ # @option opts [String] :filter_event_type Limit the returned events to a specific &#x60;event_type&#x60;. # @option opts [String] :filter_service_id Limit the results returned to a specific service. # @option opts [String] :filter_user_id Limit the results returned to a specific user. # @option opts [String] :filter_token_id Limit the returned events to a specific token. # @option opts [String] :filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]&#x3D;2022-01-12). + # @option opts [String] :filter_created_at_lte Return events on and before a date and time in ISO 8601 format. + # @option opts [String] :filter_created_at_lt Return events before a date and time in ISO 8601 format. + # @option opts [String] :filter_created_at_gte Return events on and after a date and time in ISO 8601 format. + # @option opts [String] :filter_created_at_gt Return events after a date and time in ISO 8601 format. # @option opts [Integer] :page_number Current page. # @option opts [Integer] :page_size Number of records per page. (default to 20) # @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at') # @return [EventsResponse] def list_events(opts = {}) @@ -103,10 +107,14 @@ # @option opts [String] :filter_event_type Limit the returned events to a specific &#x60;event_type&#x60;. # @option opts [String] :filter_service_id Limit the results returned to a specific service. # @option opts [String] :filter_user_id Limit the results returned to a specific user. # @option opts [String] :filter_token_id Limit the returned events to a specific token. # @option opts [String] :filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]&#x3D;2022-01-12). + # @option opts [String] :filter_created_at_lte Return events on and before a date and time in ISO 8601 format. + # @option opts [String] :filter_created_at_lt Return events before a date and time in ISO 8601 format. + # @option opts [String] :filter_created_at_gte Return events on and after a date and time in ISO 8601 format. + # @option opts [String] :filter_created_at_gt Return events after a date and time in ISO 8601 format. # @option opts [Integer] :page_number Current page. # @option opts [Integer] :page_size Number of records per page. (default to 20) # @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at') # @return [Array<(EventsResponse, Integer, Hash)>] EventsResponse data, response status code and response headers def list_events_with_http_info(opts = {}) @@ -135,9 +143,13 @@ query_params[:'filter[event_type]'] = opts[:'filter_event_type'] if !opts[:'filter_event_type'].nil? query_params[:'filter[service_id]'] = opts[:'filter_service_id'] if !opts[:'filter_service_id'].nil? query_params[:'filter[user_id]'] = opts[:'filter_user_id'] if !opts[:'filter_user_id'].nil? query_params[:'filter[token_id]'] = opts[:'filter_token_id'] if !opts[:'filter_token_id'].nil? query_params[:'filter[created_at]'] = opts[:'filter_created_at'] if !opts[:'filter_created_at'].nil? + query_params[:'filter[created_at][lte]'] = opts[:'filter_created_at_lte'] if !opts[:'filter_created_at_lte'].nil? + query_params[:'filter[created_at][lt]'] = opts[:'filter_created_at_lt'] if !opts[:'filter_created_at_lt'].nil? + query_params[:'filter[created_at][gte]'] = opts[:'filter_created_at_gte'] if !opts[:'filter_created_at_gte'].nil? + query_params[:'filter[created_at][gt]'] = opts[:'filter_created_at_gt'] if !opts[:'filter_created_at_gt'].nil? query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil? query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? # header parameters