smplkit 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/actions_api.rb +9 -2
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/events_api.rb +9 -2
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/forwarders_api.rb +18 -4
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/api/resource_types_api.rb +9 -2
- data/lib/smplkit/_generated/audit/spec/api/actions_api_spec.rb +2 -1
- data/lib/smplkit/_generated/audit/spec/api/events_api_spec.rb +2 -1
- data/lib/smplkit/_generated/audit/spec/api/forwarders_api_spec.rb +4 -2
- data/lib/smplkit/_generated/audit/spec/api/resource_types_api_spec.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d84b2fada8f2a0bc4fae54630d4622589b8df535c24fe2a0382792976d2135af
|
|
4
|
+
data.tar.gz: a10e21e6eca3bce84b98fba2a0240709ca4140002553454816520cd72854628e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 865519ba14ce2b29accb2cd171588043d7ee750d66e329e5b6e6bda90a0090501559a148095b02e70590414999bef2d4bef7821e75abdb865ee0cdbb0653dd58
|
|
7
|
+
data.tar.gz: 24b56faf3476d189dc0291ea9789107b2ca4926cf564769cae2b2191710e552fdcbb77be632815f04008322a6c419bf1c402b7ff60626b246d8c8b8638b6cd32
|
|
@@ -20,11 +20,12 @@ module SmplkitGeneratedClient::Audit
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# List Actions
|
|
23
|
-
# List the distinct `action` slugs recorded for this account. Without `filter[resource_type]`, returns one row per distinct action. With `filter[resource_type]`, returns the actions recorded for that specific resource type.
|
|
23
|
+
# List the distinct `action` slugs recorded for this account. Default sort is `key` ascending; pass `sort=-key` for descending. Without `filter[resource_type]`, returns one row per distinct action. With `filter[resource_type]`, returns the actions recorded for that specific resource type.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [String] :filter_resource_type
|
|
26
26
|
# @option opts [Integer] :page_size
|
|
27
27
|
# @option opts [String] :page_after
|
|
28
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`. (default to 'key')
|
|
28
29
|
# @return [ActionListResponse]
|
|
29
30
|
def list_actions(opts = {})
|
|
30
31
|
data, _status_code, _headers = list_actions_with_http_info(opts)
|
|
@@ -32,11 +33,12 @@ module SmplkitGeneratedClient::Audit
|
|
|
32
33
|
end
|
|
33
34
|
|
|
34
35
|
# List Actions
|
|
35
|
-
# List the distinct `action` slugs recorded for this account. Without `filter[resource_type]`, returns one row per distinct action. With `filter[resource_type]`, returns the actions recorded for that specific resource type.
|
|
36
|
+
# List the distinct `action` slugs recorded for this account. Default sort is `key` ascending; pass `sort=-key` for descending. Without `filter[resource_type]`, returns one row per distinct action. With `filter[resource_type]`, returns the actions recorded for that specific resource type.
|
|
36
37
|
# @param [Hash] opts the optional parameters
|
|
37
38
|
# @option opts [String] :filter_resource_type
|
|
38
39
|
# @option opts [Integer] :page_size
|
|
39
40
|
# @option opts [String] :page_after
|
|
41
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`. (default to 'key')
|
|
40
42
|
# @return [Array<(ActionListResponse, Integer, Hash)>] ActionListResponse data, response status code and response headers
|
|
41
43
|
def list_actions_with_http_info(opts = {})
|
|
42
44
|
if @api_client.config.debugging
|
|
@@ -46,6 +48,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
46
48
|
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ActionsApi.list_actions, must be greater than or equal to 1.'
|
|
47
49
|
end
|
|
48
50
|
|
|
51
|
+
allowable_values = ["key", "-key"]
|
|
52
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
53
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
54
|
+
end
|
|
49
55
|
# resource path
|
|
50
56
|
local_var_path = '/api/v1/actions'
|
|
51
57
|
|
|
@@ -54,6 +60,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
54
60
|
query_params[:'filter[resource_type]'] = opts[:'filter_resource_type'] if !opts[:'filter_resource_type'].nil?
|
|
55
61
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
56
62
|
query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
|
|
63
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
57
64
|
|
|
58
65
|
# header parameters
|
|
59
66
|
header_params = opts[:header_params] || {}
|
|
@@ -83,7 +83,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
# List Events
|
|
86
|
-
# List audit events for this account. Default sort is newest first. Filters are exact-match except `filter[occurred_at]`, which uses interval notation (e.g. `[2026-01-01T00:00:00Z,2026-01-31T00:00:00Z)`), and `filter[search]`, which is a case-insensitive substring match against `resource_id` or `description`. To bound the rows scanned per request, the endpoint requires either: - `filter[resource_id]` (which must be accompanied by `filter[resource_type]`), or - `filter[occurred_at]` with a span no greater than 30 days. `page[size]` defaults to 50 and must not exceed 1000.
|
|
86
|
+
# List audit events for this account. Default sort is `-occurred_at` (newest occurrence first). Sort by `occurred_at` or `created_at`, ascending or descending — keep the same `sort` value across paginated requests so the cursor stays consistent. Filters are exact-match except `filter[occurred_at]`, which uses interval notation (e.g. `[2026-01-01T00:00:00Z,2026-01-31T00:00:00Z)`), and `filter[search]`, which is a case-insensitive substring match against `resource_id` or `description`. To bound the rows scanned per request, the endpoint requires either: - `filter[resource_id]` (which must be accompanied by `filter[resource_type]`), or - `filter[occurred_at]` with a span no greater than 30 days. `page[size]` defaults to 50 and must not exceed 1000.
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
88
88
|
# @option opts [String] :filter_occurred_at
|
|
89
89
|
# @option opts [String] :filter_actor_type
|
|
@@ -94,6 +94,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
94
94
|
# @option opts [String] :filter_search Case-insensitive substring match against `resource_id` or `description`. Use `filter[resource_id]` for an exact match on `resource_id`.
|
|
95
95
|
# @option opts [Integer] :page_size
|
|
96
96
|
# @option opts [String] :page_after
|
|
97
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-occurred_at`. Allowed values: `created_at`, `-created_at`, `occurred_at`, `-occurred_at`. (default to '-occurred_at')
|
|
97
98
|
# @return [EventListResponse]
|
|
98
99
|
def list_events(opts = {})
|
|
99
100
|
data, _status_code, _headers = list_events_with_http_info(opts)
|
|
@@ -101,7 +102,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
101
102
|
end
|
|
102
103
|
|
|
103
104
|
# List Events
|
|
104
|
-
# List audit events for this account. Default sort is newest first. Filters are exact-match except `filter[occurred_at]`, which uses interval notation (e.g. `[2026-01-01T00:00:00Z,2026-01-31T00:00:00Z)`), and `filter[search]`, which is a case-insensitive substring match against `resource_id` or `description`. To bound the rows scanned per request, the endpoint requires either: - `filter[resource_id]` (which must be accompanied by `filter[resource_type]`), or - `filter[occurred_at]` with a span no greater than 30 days. `page[size]` defaults to 50 and must not exceed 1000.
|
|
105
|
+
# List audit events for this account. Default sort is `-occurred_at` (newest occurrence first). Sort by `occurred_at` or `created_at`, ascending or descending — keep the same `sort` value across paginated requests so the cursor stays consistent. Filters are exact-match except `filter[occurred_at]`, which uses interval notation (e.g. `[2026-01-01T00:00:00Z,2026-01-31T00:00:00Z)`), and `filter[search]`, which is a case-insensitive substring match against `resource_id` or `description`. To bound the rows scanned per request, the endpoint requires either: - `filter[resource_id]` (which must be accompanied by `filter[resource_type]`), or - `filter[occurred_at]` with a span no greater than 30 days. `page[size]` defaults to 50 and must not exceed 1000.
|
|
105
106
|
# @param [Hash] opts the optional parameters
|
|
106
107
|
# @option opts [String] :filter_occurred_at
|
|
107
108
|
# @option opts [String] :filter_actor_type
|
|
@@ -112,6 +113,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
112
113
|
# @option opts [String] :filter_search Case-insensitive substring match against `resource_id` or `description`. Use `filter[resource_id]` for an exact match on `resource_id`.
|
|
113
114
|
# @option opts [Integer] :page_size
|
|
114
115
|
# @option opts [String] :page_after
|
|
116
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-occurred_at`. Allowed values: `created_at`, `-created_at`, `occurred_at`, `-occurred_at`. (default to '-occurred_at')
|
|
115
117
|
# @return [Array<(EventListResponse, Integer, Hash)>] EventListResponse data, response status code and response headers
|
|
116
118
|
def list_events_with_http_info(opts = {})
|
|
117
119
|
if @api_client.config.debugging
|
|
@@ -121,6 +123,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
121
123
|
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling EventsApi.list_events, must be greater than or equal to 1.'
|
|
122
124
|
end
|
|
123
125
|
|
|
126
|
+
allowable_values = ["created_at", "-created_at", "occurred_at", "-occurred_at"]
|
|
127
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
128
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
129
|
+
end
|
|
124
130
|
# resource path
|
|
125
131
|
local_var_path = '/api/v1/events'
|
|
126
132
|
|
|
@@ -135,6 +141,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
135
141
|
query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
|
|
136
142
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
137
143
|
query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
|
|
144
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
138
145
|
|
|
139
146
|
# header parameters
|
|
140
147
|
header_params = opts[:header_params] || {}
|
|
@@ -280,7 +280,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
280
280
|
end
|
|
281
281
|
|
|
282
282
|
# List Forwarder Deliveries
|
|
283
|
-
# List delivery log entries for a forwarder. Default sort is newest first. Filter by `status` (one of `SUCCEEDED`, `FAILED`, `FILTERED_OUT`, `SKIPPED_DO_NOT_FORWARD` — case-insensitive), by `event_id`, or by a `created_at` range using interval notation (e.g. `[2026-01-01T00:00:00Z,*)`).
|
|
283
|
+
# List delivery log entries for a forwarder. Default sort is `-created_at` (newest first). Filter by `status` (one of `SUCCEEDED`, `FAILED`, `FILTERED_OUT`, `SKIPPED_DO_NOT_FORWARD` — case-insensitive), by `event_id`, or by a `created_at` range using interval notation (e.g. `[2026-01-01T00:00:00Z,*)`).
|
|
284
284
|
# @param forwarder_id [String]
|
|
285
285
|
# @param [Hash] opts the optional parameters
|
|
286
286
|
# @option opts [String] :filter_status
|
|
@@ -288,6 +288,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
288
288
|
# @option opts [String] :filter_event_id
|
|
289
289
|
# @option opts [Integer] :page_size
|
|
290
290
|
# @option opts [String] :page_after
|
|
291
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`. (default to '-created_at')
|
|
291
292
|
# @return [ForwarderDeliveryListResponse]
|
|
292
293
|
def list_forwarder_deliveries(forwarder_id, opts = {})
|
|
293
294
|
data, _status_code, _headers = list_forwarder_deliveries_with_http_info(forwarder_id, opts)
|
|
@@ -295,7 +296,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
295
296
|
end
|
|
296
297
|
|
|
297
298
|
# List Forwarder Deliveries
|
|
298
|
-
# List delivery log entries for a forwarder. Default sort is newest first. Filter by `status` (one of `SUCCEEDED`, `FAILED`, `FILTERED_OUT`, `SKIPPED_DO_NOT_FORWARD` — case-insensitive), by `event_id`, or by a `created_at` range using interval notation (e.g. `[2026-01-01T00:00:00Z,*)`).
|
|
299
|
+
# List delivery log entries for a forwarder. Default sort is `-created_at` (newest first). Filter by `status` (one of `SUCCEEDED`, `FAILED`, `FILTERED_OUT`, `SKIPPED_DO_NOT_FORWARD` — case-insensitive), by `event_id`, or by a `created_at` range using interval notation (e.g. `[2026-01-01T00:00:00Z,*)`).
|
|
299
300
|
# @param forwarder_id [String]
|
|
300
301
|
# @param [Hash] opts the optional parameters
|
|
301
302
|
# @option opts [String] :filter_status
|
|
@@ -303,6 +304,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
303
304
|
# @option opts [String] :filter_event_id
|
|
304
305
|
# @option opts [Integer] :page_size
|
|
305
306
|
# @option opts [String] :page_after
|
|
307
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`. (default to '-created_at')
|
|
306
308
|
# @return [Array<(ForwarderDeliveryListResponse, Integer, Hash)>] ForwarderDeliveryListResponse data, response status code and response headers
|
|
307
309
|
def list_forwarder_deliveries_with_http_info(forwarder_id, opts = {})
|
|
308
310
|
if @api_client.config.debugging
|
|
@@ -316,6 +318,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
316
318
|
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ForwardersApi.list_forwarder_deliveries, must be greater than or equal to 1.'
|
|
317
319
|
end
|
|
318
320
|
|
|
321
|
+
allowable_values = ["created_at", "-created_at"]
|
|
322
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
323
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
324
|
+
end
|
|
319
325
|
# resource path
|
|
320
326
|
local_var_path = '/api/v1/forwarders/{forwarder_id}/deliveries'.sub('{forwarder_id}', CGI.escape(forwarder_id.to_s))
|
|
321
327
|
|
|
@@ -326,6 +332,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
326
332
|
query_params[:'filter[event_id]'] = opts[:'filter_event_id'] if !opts[:'filter_event_id'].nil?
|
|
327
333
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
328
334
|
query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
|
|
335
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
329
336
|
|
|
330
337
|
# header parameters
|
|
331
338
|
header_params = opts[:header_params] || {}
|
|
@@ -362,12 +369,13 @@ module SmplkitGeneratedClient::Audit
|
|
|
362
369
|
end
|
|
363
370
|
|
|
364
371
|
# List Forwarders
|
|
365
|
-
# List forwarders for this account.
|
|
372
|
+
# List forwarders for this account. Default sort is `-created_at` (newest first). Pagination uses cursor tokens; keep the same `sort` value across paginated requests.
|
|
366
373
|
# @param [Hash] opts the optional parameters
|
|
367
374
|
# @option opts [String] :filter_forwarder_type
|
|
368
375
|
# @option opts [Boolean] :filter_enabled
|
|
369
376
|
# @option opts [Integer] :page_size
|
|
370
377
|
# @option opts [String] :page_after
|
|
378
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`, `updated_at`, `-updated_at`. (default to '-created_at')
|
|
371
379
|
# @return [ForwarderListResponse]
|
|
372
380
|
def list_forwarders(opts = {})
|
|
373
381
|
data, _status_code, _headers = list_forwarders_with_http_info(opts)
|
|
@@ -375,12 +383,13 @@ module SmplkitGeneratedClient::Audit
|
|
|
375
383
|
end
|
|
376
384
|
|
|
377
385
|
# List Forwarders
|
|
378
|
-
# List forwarders for this account.
|
|
386
|
+
# List forwarders for this account. Default sort is `-created_at` (newest first). Pagination uses cursor tokens; keep the same `sort` value across paginated requests.
|
|
379
387
|
# @param [Hash] opts the optional parameters
|
|
380
388
|
# @option opts [String] :filter_forwarder_type
|
|
381
389
|
# @option opts [Boolean] :filter_enabled
|
|
382
390
|
# @option opts [Integer] :page_size
|
|
383
391
|
# @option opts [String] :page_after
|
|
392
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`, `updated_at`, `-updated_at`. (default to '-created_at')
|
|
384
393
|
# @return [Array<(ForwarderListResponse, Integer, Hash)>] ForwarderListResponse data, response status code and response headers
|
|
385
394
|
def list_forwarders_with_http_info(opts = {})
|
|
386
395
|
if @api_client.config.debugging
|
|
@@ -390,6 +399,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
390
399
|
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ForwardersApi.list_forwarders, must be greater than or equal to 1.'
|
|
391
400
|
end
|
|
392
401
|
|
|
402
|
+
allowable_values = ["created_at", "-created_at", "updated_at", "-updated_at"]
|
|
403
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
404
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
405
|
+
end
|
|
393
406
|
# resource path
|
|
394
407
|
local_var_path = '/api/v1/forwarders'
|
|
395
408
|
|
|
@@ -399,6 +412,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
399
412
|
query_params[:'filter[enabled]'] = opts[:'filter_enabled'] if !opts[:'filter_enabled'].nil?
|
|
400
413
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
401
414
|
query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
|
|
415
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
402
416
|
|
|
403
417
|
# header parameters
|
|
404
418
|
header_params = opts[:header_params] || {}
|
|
@@ -20,10 +20,11 @@ module SmplkitGeneratedClient::Audit
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
# List Resource Types
|
|
23
|
-
# List the distinct `resource_type` slugs recorded for this account. The resource `id` is the slug itself. Useful for populating filter dropdowns in a UI.
|
|
23
|
+
# List the distinct `resource_type` slugs recorded for this account. The resource `id` is the slug itself. Default sort is `key` ascending; pass `sort=-key` for descending. Useful for populating filter dropdowns in a UI.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Integer] :page_size
|
|
26
26
|
# @option opts [String] :page_after
|
|
27
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`. (default to 'key')
|
|
27
28
|
# @return [ResourceTypeListResponse]
|
|
28
29
|
def list_resource_types(opts = {})
|
|
29
30
|
data, _status_code, _headers = list_resource_types_with_http_info(opts)
|
|
@@ -31,10 +32,11 @@ module SmplkitGeneratedClient::Audit
|
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
# List Resource Types
|
|
34
|
-
# List the distinct `resource_type` slugs recorded for this account. The resource `id` is the slug itself. Useful for populating filter dropdowns in a UI.
|
|
35
|
+
# List the distinct `resource_type` slugs recorded for this account. The resource `id` is the slug itself. Default sort is `key` ascending; pass `sort=-key` for descending. Useful for populating filter dropdowns in a UI.
|
|
35
36
|
# @param [Hash] opts the optional parameters
|
|
36
37
|
# @option opts [Integer] :page_size
|
|
37
38
|
# @option opts [String] :page_after
|
|
39
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`. (default to 'key')
|
|
38
40
|
# @return [Array<(ResourceTypeListResponse, Integer, Hash)>] ResourceTypeListResponse data, response status code and response headers
|
|
39
41
|
def list_resource_types_with_http_info(opts = {})
|
|
40
42
|
if @api_client.config.debugging
|
|
@@ -44,6 +46,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
44
46
|
fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ResourceTypesApi.list_resource_types, must be greater than or equal to 1.'
|
|
45
47
|
end
|
|
46
48
|
|
|
49
|
+
allowable_values = ["key", "-key"]
|
|
50
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
51
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
52
|
+
end
|
|
47
53
|
# resource path
|
|
48
54
|
local_var_path = '/api/v1/resource_types'
|
|
49
55
|
|
|
@@ -51,6 +57,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
51
57
|
query_params = opts[:query_params] || {}
|
|
52
58
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
53
59
|
query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
|
|
60
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
54
61
|
|
|
55
62
|
# header parameters
|
|
56
63
|
header_params = opts[:header_params] || {}
|
|
@@ -34,11 +34,12 @@ describe 'ActionsApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for list_actions
|
|
36
36
|
# List Actions
|
|
37
|
-
# List the distinct `action` slugs recorded for this account. Without `filter[resource_type]`, returns one row per distinct action. With `filter[resource_type]`, returns the actions recorded for that specific resource type.
|
|
37
|
+
# List the distinct `action` slugs recorded for this account. Default sort is `key` ascending; pass `sort=-key` for descending. Without `filter[resource_type]`, returns one row per distinct action. With `filter[resource_type]`, returns the actions recorded for that specific resource type.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :filter_resource_type
|
|
40
40
|
# @option opts [Integer] :page_size
|
|
41
41
|
# @option opts [String] :page_after
|
|
42
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`.
|
|
42
43
|
# @return [ActionListResponse]
|
|
43
44
|
describe 'list_actions test' do
|
|
44
45
|
it 'should work' do
|
|
@@ -46,7 +46,7 @@ describe 'EventsApi' do
|
|
|
46
46
|
|
|
47
47
|
# unit tests for list_events
|
|
48
48
|
# List Events
|
|
49
|
-
# List audit events for this account. Default sort is newest first. Filters are exact-match except `filter[occurred_at]`, which uses interval notation (e.g. `[2026-01-01T00:00:00Z,2026-01-31T00:00:00Z)`), and `filter[search]`, which is a case-insensitive substring match against `resource_id` or `description`. To bound the rows scanned per request, the endpoint requires either: - `filter[resource_id]` (which must be accompanied by `filter[resource_type]`), or - `filter[occurred_at]` with a span no greater than 30 days. `page[size]` defaults to 50 and must not exceed 1000.
|
|
49
|
+
# List audit events for this account. Default sort is `-occurred_at` (newest occurrence first). Sort by `occurred_at` or `created_at`, ascending or descending — keep the same `sort` value across paginated requests so the cursor stays consistent. Filters are exact-match except `filter[occurred_at]`, which uses interval notation (e.g. `[2026-01-01T00:00:00Z,2026-01-31T00:00:00Z)`), and `filter[search]`, which is a case-insensitive substring match against `resource_id` or `description`. To bound the rows scanned per request, the endpoint requires either: - `filter[resource_id]` (which must be accompanied by `filter[resource_type]`), or - `filter[occurred_at]` with a span no greater than 30 days. `page[size]` defaults to 50 and must not exceed 1000.
|
|
50
50
|
# @param [Hash] opts the optional parameters
|
|
51
51
|
# @option opts [String] :filter_occurred_at
|
|
52
52
|
# @option opts [String] :filter_actor_type
|
|
@@ -57,6 +57,7 @@ describe 'EventsApi' do
|
|
|
57
57
|
# @option opts [String] :filter_search Case-insensitive substring match against `resource_id` or `description`. Use `filter[resource_id]` for an exact match on `resource_id`.
|
|
58
58
|
# @option opts [Integer] :page_size
|
|
59
59
|
# @option opts [String] :page_after
|
|
60
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-occurred_at`. Allowed values: `created_at`, `-created_at`, `occurred_at`, `-occurred_at`.
|
|
60
61
|
# @return [EventListResponse]
|
|
61
62
|
describe 'list_events test' do
|
|
62
63
|
it 'should work' do
|
|
@@ -82,7 +82,7 @@ describe 'ForwardersApi' do
|
|
|
82
82
|
|
|
83
83
|
# unit tests for list_forwarder_deliveries
|
|
84
84
|
# List Forwarder Deliveries
|
|
85
|
-
# List delivery log entries for a forwarder. Default sort is newest first. Filter by `status` (one of `SUCCEEDED`, `FAILED`, `FILTERED_OUT`, `SKIPPED_DO_NOT_FORWARD` — case-insensitive), by `event_id`, or by a `created_at` range using interval notation (e.g. `[2026-01-01T00:00:00Z,*)`).
|
|
85
|
+
# List delivery log entries for a forwarder. Default sort is `-created_at` (newest first). Filter by `status` (one of `SUCCEEDED`, `FAILED`, `FILTERED_OUT`, `SKIPPED_DO_NOT_FORWARD` — case-insensitive), by `event_id`, or by a `created_at` range using interval notation (e.g. `[2026-01-01T00:00:00Z,*)`).
|
|
86
86
|
# @param forwarder_id
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
88
88
|
# @option opts [String] :filter_status
|
|
@@ -90,6 +90,7 @@ describe 'ForwardersApi' do
|
|
|
90
90
|
# @option opts [String] :filter_event_id
|
|
91
91
|
# @option opts [Integer] :page_size
|
|
92
92
|
# @option opts [String] :page_after
|
|
93
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`.
|
|
93
94
|
# @return [ForwarderDeliveryListResponse]
|
|
94
95
|
describe 'list_forwarder_deliveries test' do
|
|
95
96
|
it 'should work' do
|
|
@@ -99,12 +100,13 @@ describe 'ForwardersApi' do
|
|
|
99
100
|
|
|
100
101
|
# unit tests for list_forwarders
|
|
101
102
|
# List Forwarders
|
|
102
|
-
# List forwarders for this account.
|
|
103
|
+
# List forwarders for this account. Default sort is `-created_at` (newest first). Pagination uses cursor tokens; keep the same `sort` value across paginated requests.
|
|
103
104
|
# @param [Hash] opts the optional parameters
|
|
104
105
|
# @option opts [String] :filter_forwarder_type
|
|
105
106
|
# @option opts [Boolean] :filter_enabled
|
|
106
107
|
# @option opts [Integer] :page_size
|
|
107
108
|
# @option opts [String] :page_after
|
|
109
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `-created_at`. Allowed values: `created_at`, `-created_at`, `updated_at`, `-updated_at`.
|
|
108
110
|
# @return [ForwarderListResponse]
|
|
109
111
|
describe 'list_forwarders test' do
|
|
110
112
|
it 'should work' do
|
|
@@ -34,10 +34,11 @@ describe 'ResourceTypesApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for list_resource_types
|
|
36
36
|
# List Resource Types
|
|
37
|
-
# List the distinct `resource_type` slugs recorded for this account. The resource `id` is the slug itself. Useful for populating filter dropdowns in a UI.
|
|
37
|
+
# List the distinct `resource_type` slugs recorded for this account. The resource `id` is the slug itself. Default sort is `key` ascending; pass `sort=-key` for descending. Useful for populating filter dropdowns in a UI.
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Integer] :page_size
|
|
40
40
|
# @option opts [String] :page_after
|
|
41
|
+
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `key`, `-key`.
|
|
41
42
|
# @return [ResourceTypeListResponse]
|
|
42
43
|
describe 'list_resource_types test' do
|
|
43
44
|
it 'should work' do
|