smplkit 3.0.36 → 3.0.37
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/events_api.rb +3 -0
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/event_search_request.rb +12 -1
- data/lib/smplkit/_generated/audit/lib/smplkit_audit_client/models/test_forwarder_request.rb +31 -5
- data/lib/smplkit/_generated/audit/spec/api/events_api_spec.rb +1 -0
- data/lib/smplkit/_generated/audit/spec/models/event_search_request_spec.rb +6 -0
- data/lib/smplkit/_generated/audit/spec/models/test_forwarder_request_spec.rb +6 -0
- 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: 97fc9d5f5ccd8884a150cc985e0c09dc4f0323f19ba39940d435e4b30fa6a8a4
|
|
4
|
+
data.tar.gz: a66fa0dd76a8188fd8a3673c122bd6305f3916da73174f5d8dcd75b9edd2628a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e2970204abfbab07db8d18f3e9ba94c33fe8e5d7d56f78ffd3bc436c8fe01b8add1db4c541ee4307756b5f030403667d2ac258b3bf1cbde0423749167390f39
|
|
7
|
+
data.tar.gz: 923a51443ab908653434775e9f94ff40ad8a02a18cb981176da51baba6469f6164cccddf3b210e5de5b454bcdb71c6a446d8126cbdce8f314cb93f59cf723399
|
|
@@ -92,6 +92,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
92
92
|
# @option opts [String] :filter_resource_type
|
|
93
93
|
# @option opts [String] :filter_resource_id
|
|
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
|
+
# @option opts [Boolean] :filter_do_not_forward When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
|
|
95
96
|
# @option opts [Integer] :page_size
|
|
96
97
|
# @option opts [String] :page_after
|
|
97
98
|
# @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')
|
|
@@ -111,6 +112,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
111
112
|
# @option opts [String] :filter_resource_type
|
|
112
113
|
# @option opts [String] :filter_resource_id
|
|
113
114
|
# @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`.
|
|
115
|
+
# @option opts [Boolean] :filter_do_not_forward When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
|
|
114
116
|
# @option opts [Integer] :page_size
|
|
115
117
|
# @option opts [String] :page_after
|
|
116
118
|
# @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')
|
|
@@ -139,6 +141,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
139
141
|
query_params[:'filter[resource_type]'] = opts[:'filter_resource_type'] if !opts[:'filter_resource_type'].nil?
|
|
140
142
|
query_params[:'filter[resource_id]'] = opts[:'filter_resource_id'] if !opts[:'filter_resource_id'].nil?
|
|
141
143
|
query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
|
|
144
|
+
query_params[:'filter[do_not_forward]'] = opts[:'filter_do_not_forward'] if !opts[:'filter_do_not_forward'].nil?
|
|
142
145
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
143
146
|
query_params[:'page[after]'] = opts[:'page_after'] if !opts[:'page_after'].nil?
|
|
144
147
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
@@ -40,6 +40,9 @@ module SmplkitGeneratedClient::Audit
|
|
|
40
40
|
# Case-insensitive substring match on `resource_id` or `description`. Must be accompanied by either `filter[occurred_at]` or `filter[resource_type]` + `filter[resource_id]`.
|
|
41
41
|
attr_accessor :filter_search
|
|
42
42
|
|
|
43
|
+
# When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
|
|
44
|
+
attr_accessor :filter_do_not_forward
|
|
45
|
+
|
|
43
46
|
# Maximum events to return. Range 1..1000, default 1000 — matches every other list / search endpoint on the platform. Set explicitly to a smaller value when the consumer is rendering results card-by-card.
|
|
44
47
|
attr_accessor :page_size
|
|
45
48
|
|
|
@@ -60,6 +63,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
60
63
|
:'filter_actor_id' => :'filter[actor_id]',
|
|
61
64
|
:'filter_occurred_at' => :'filter[occurred_at]',
|
|
62
65
|
:'filter_search' => :'filter[search]',
|
|
66
|
+
:'filter_do_not_forward' => :'filter[do_not_forward]',
|
|
63
67
|
:'page_size' => :'page[size]',
|
|
64
68
|
:'page_after' => :'page[after]',
|
|
65
69
|
:'sort' => :'sort'
|
|
@@ -87,6 +91,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
87
91
|
:'filter_actor_id' => :'String',
|
|
88
92
|
:'filter_occurred_at' => :'String',
|
|
89
93
|
:'filter_search' => :'String',
|
|
94
|
+
:'filter_do_not_forward' => :'Boolean',
|
|
90
95
|
:'page_size' => :'Integer',
|
|
91
96
|
:'page_after' => :'String',
|
|
92
97
|
:'sort' => :'String'
|
|
@@ -104,6 +109,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
104
109
|
:'filter_actor_id',
|
|
105
110
|
:'filter_occurred_at',
|
|
106
111
|
:'filter_search',
|
|
112
|
+
:'filter_do_not_forward',
|
|
107
113
|
:'page_after',
|
|
108
114
|
])
|
|
109
115
|
end
|
|
@@ -158,6 +164,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
158
164
|
self.filter_search = attributes[:'filter_search']
|
|
159
165
|
end
|
|
160
166
|
|
|
167
|
+
if attributes.key?(:'filter_do_not_forward')
|
|
168
|
+
self.filter_do_not_forward = attributes[:'filter_do_not_forward']
|
|
169
|
+
end
|
|
170
|
+
|
|
161
171
|
if attributes.key?(:'page_size')
|
|
162
172
|
self.page_size = attributes[:'page_size']
|
|
163
173
|
else
|
|
@@ -231,6 +241,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
231
241
|
filter_actor_id == o.filter_actor_id &&
|
|
232
242
|
filter_occurred_at == o.filter_occurred_at &&
|
|
233
243
|
filter_search == o.filter_search &&
|
|
244
|
+
filter_do_not_forward == o.filter_do_not_forward &&
|
|
234
245
|
page_size == o.page_size &&
|
|
235
246
|
page_after == o.page_after &&
|
|
236
247
|
sort == o.sort
|
|
@@ -245,7 +256,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
245
256
|
# Calculates hash code according to all attributes.
|
|
246
257
|
# @return [Integer] Hash code
|
|
247
258
|
def hash
|
|
248
|
-
[filter, filter_action, filter_resource_type, filter_resource_id, filter_actor_type, filter_actor_id, filter_occurred_at, filter_search, page_size, page_after, sort].hash
|
|
259
|
+
[filter, filter_action, filter_resource_type, filter_resource_id, filter_actor_type, filter_actor_id, filter_occurred_at, filter_search, filter_do_not_forward, page_size, page_after, sort].hash
|
|
249
260
|
end
|
|
250
261
|
|
|
251
262
|
# Builds the object from hash
|
|
@@ -31,6 +31,9 @@ module SmplkitGeneratedClient::Audit
|
|
|
31
31
|
# Per-request timeout in milliseconds. Capped at 30 seconds.
|
|
32
32
|
attr_accessor :timeout_ms
|
|
33
33
|
|
|
34
|
+
# Request body sent to the destination. When omitted, an empty body is sent (suitable for connectivity probes). When set, the body is sent verbatim — pair with an appropriate `Content-Type` entry in `headers` so the destination interprets it correctly. Limit 1 MiB.
|
|
35
|
+
attr_accessor :body
|
|
36
|
+
|
|
34
37
|
class EnumAttributeValidator
|
|
35
38
|
attr_reader :datatype
|
|
36
39
|
attr_reader :allowable_values
|
|
@@ -60,7 +63,8 @@ module SmplkitGeneratedClient::Audit
|
|
|
60
63
|
:'url' => :'url',
|
|
61
64
|
:'headers' => :'headers',
|
|
62
65
|
:'success_status' => :'success_status',
|
|
63
|
-
:'timeout_ms' => :'timeout_ms'
|
|
66
|
+
:'timeout_ms' => :'timeout_ms',
|
|
67
|
+
:'body' => :'body'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
@@ -81,14 +85,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
81
85
|
:'url' => :'String',
|
|
82
86
|
:'headers' => :'Array<HttpHeader>',
|
|
83
87
|
:'success_status' => :'String',
|
|
84
|
-
:'timeout_ms' => :'Integer'
|
|
88
|
+
:'timeout_ms' => :'Integer',
|
|
89
|
+
:'body' => :'String'
|
|
85
90
|
}
|
|
86
91
|
end
|
|
87
92
|
|
|
88
93
|
# List of attributes with nullable: true
|
|
89
94
|
def self.openapi_nullable
|
|
90
95
|
Set.new([
|
|
91
|
-
:'timeout_ms'
|
|
96
|
+
:'timeout_ms',
|
|
97
|
+
:'body'
|
|
92
98
|
])
|
|
93
99
|
end
|
|
94
100
|
|
|
@@ -135,6 +141,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
135
141
|
if attributes.key?(:'timeout_ms')
|
|
136
142
|
self.timeout_ms = attributes[:'timeout_ms']
|
|
137
143
|
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'body')
|
|
146
|
+
self.body = attributes[:'body']
|
|
147
|
+
end
|
|
138
148
|
end
|
|
139
149
|
|
|
140
150
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -166,6 +176,10 @@ module SmplkitGeneratedClient::Audit
|
|
|
166
176
|
invalid_properties.push('invalid value for "timeout_ms", must be greater than or equal to 1.')
|
|
167
177
|
end
|
|
168
178
|
|
|
179
|
+
if !@body.nil? && @body.to_s.length > 1048576
|
|
180
|
+
invalid_properties.push('invalid value for "body", the character length must be smaller than or equal to 1048576.')
|
|
181
|
+
end
|
|
182
|
+
|
|
169
183
|
invalid_properties
|
|
170
184
|
end
|
|
171
185
|
|
|
@@ -181,6 +195,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
181
195
|
return false if !@success_status.nil? && @success_status.to_s.length > 3
|
|
182
196
|
return false if !@timeout_ms.nil? && @timeout_ms > 30000
|
|
183
197
|
return false if !@timeout_ms.nil? && @timeout_ms < 1
|
|
198
|
+
return false if !@body.nil? && @body.to_s.length > 1048576
|
|
184
199
|
true
|
|
185
200
|
end
|
|
186
201
|
|
|
@@ -240,6 +255,16 @@ module SmplkitGeneratedClient::Audit
|
|
|
240
255
|
@timeout_ms = timeout_ms
|
|
241
256
|
end
|
|
242
257
|
|
|
258
|
+
# Custom attribute writer method with validation
|
|
259
|
+
# @param [Object] body Value to be assigned
|
|
260
|
+
def body=(body)
|
|
261
|
+
if !body.nil? && body.to_s.length > 1048576
|
|
262
|
+
fail ArgumentError, 'invalid value for "body", the character length must be smaller than or equal to 1048576.'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@body = body
|
|
266
|
+
end
|
|
267
|
+
|
|
243
268
|
# Checks equality by comparing each attribute.
|
|
244
269
|
# @param [Object] Object to be compared
|
|
245
270
|
def ==(o)
|
|
@@ -249,7 +274,8 @@ module SmplkitGeneratedClient::Audit
|
|
|
249
274
|
url == o.url &&
|
|
250
275
|
headers == o.headers &&
|
|
251
276
|
success_status == o.success_status &&
|
|
252
|
-
timeout_ms == o.timeout_ms
|
|
277
|
+
timeout_ms == o.timeout_ms &&
|
|
278
|
+
body == o.body
|
|
253
279
|
end
|
|
254
280
|
|
|
255
281
|
# @see the `==` method
|
|
@@ -261,7 +287,7 @@ module SmplkitGeneratedClient::Audit
|
|
|
261
287
|
# Calculates hash code according to all attributes.
|
|
262
288
|
# @return [Integer] Hash code
|
|
263
289
|
def hash
|
|
264
|
-
[method, url, headers, success_status, timeout_ms].hash
|
|
290
|
+
[method, url, headers, success_status, timeout_ms, body].hash
|
|
265
291
|
end
|
|
266
292
|
|
|
267
293
|
# Builds the object from hash
|
|
@@ -55,6 +55,7 @@ describe 'EventsApi' do
|
|
|
55
55
|
# @option opts [String] :filter_resource_type
|
|
56
56
|
# @option opts [String] :filter_resource_id
|
|
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
|
+
# @option opts [Boolean] :filter_do_not_forward When set, restrict to events whose `do_not_forward` flag matches the given boolean. Forwarder previews typically pass `false` to match live-pipeline semantics (events flagged `do_not_forward=true` are skipped by the forwarder pipeline).
|
|
58
59
|
# @option opts [Integer] :page_size
|
|
59
60
|
# @option opts [String] :page_after
|
|
60
61
|
# @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`.
|
|
@@ -75,6 +75,12 @@ describe SmplkitGeneratedClient::Audit::EventSearchRequest do
|
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
describe 'test attribute "filter_do_not_forward"' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
78
84
|
describe 'test attribute "page_size"' do
|
|
79
85
|
it 'should work' do
|
|
80
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -61,4 +61,10 @@ describe SmplkitGeneratedClient::Audit::TestForwarderRequest do
|
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
describe 'test attribute "body"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
64
70
|
end
|