lib/fastly/api/events_api.rb in fastly-4.0.0.alpha4 vs lib/fastly/api/events_api.rb in fastly-4.0.0

- old
+ new

@@ -80,14 +80,15 @@ return data, status_code, headers end # List events # List all events for a particular customer. Events can be filtered by user, customer and event type. Events can be sorted by date. - # @option opts [String] :filter_event_type Limit the returned events to a specific &#x60;event_type&#x60;. # @option opts [String] :filter_customer_id Limit the results returned to a specific customer. + # @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 [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 = {}) @@ -95,14 +96,15 @@ data end # List events # List all events for a particular customer. Events can be filtered by user, customer and event type. Events can be sorted by date. - # @option opts [String] :filter_event_type Limit the returned events to a specific &#x60;event_type&#x60;. # @option opts [String] :filter_customer_id Limit the results returned to a specific customer. + # @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 [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 = {}) @@ -125,13 +127,14 @@ # resource path local_var_path = '/events' # query parameters query_params = opts[:query_params] || {} - query_params[:'filter[event_type]'] = opts[:'filter_event_type'] if !opts[:'filter_event_type'].nil? query_params[:'filter[customer_id]'] = opts[:'filter_customer_id'] if !opts[:'filter_customer_id'].nil? + 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[:'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