smplkit 3.0.1 → 3.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e20cde58e0c87a7c342219711458837b0be7685749ef7252b71e925c7d535a0
4
- data.tar.gz: 7650634c387086a8854511d3f7345071d1dd805dcb7722060c045ccdc8120018
3
+ metadata.gz: a2df7b56969ecc78af54eb3cdf4d97c4d8355ae239a39bfcf03c2eeff4f73de4
4
+ data.tar.gz: 510d3be0930a5186f02b39bf108021fa00c18790a13131ecbe895d5a52837446
5
5
  SHA512:
6
- metadata.gz: 601c420a3033f845c4d770b8e260335be8cb9367f0b84572bf9dfd617a3a567bf51924d21f4a14a39740fdcee4d7193a5e4d5e42da2df6074e3c9495f35b9e81
7
- data.tar.gz: 065aa3dfd005cb71f6ae4124f8b12cbb78fb44e8dfa22eeff07c7b258aa79040372e36a4ae0fe4908bac32e2f01de944b9aa2ef7c0f2dd421b08b82e3b3ffbe4
6
+ metadata.gz: 6c551d8c463d348391ef053a16ec442c04849181fe35950592eed8a2aef44451e773f4e2fc540fc460084dd3712c478cd882439e905c358e52d9a330f25a81c3
7
+ data.tar.gz: 7b9700aea42bdd53134dc9879f7156a1a2e1f3e4c93b269adf9c7de2dca187ebfa7669c3a9c1fb05f0524459a9607b0e5491f61a2154e328d67ca554ff89f7b5
@@ -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,*)`), and `filter[search]`, which is a case-insensitive substring match against `resource_id`.
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.
87
87
  # @param [Hash] opts the optional parameters
88
88
  # @option opts [String] :filter_occurred_at
89
89
  # @option opts [String] :filter_actor_type
@@ -91,7 +91,7 @@ module SmplkitGeneratedClient::Audit
91
91
  # @option opts [String] :filter_action
92
92
  # @option opts [String] :filter_resource_type
93
93
  # @option opts [String] :filter_resource_id
94
- # @option opts [String] :filter_search Case-insensitive substring match against `resource_id`. Use `filter[resource_id]` for an exact match.
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
97
  # @return [EventListResponse]
@@ -101,7 +101,7 @@ module SmplkitGeneratedClient::Audit
101
101
  end
102
102
 
103
103
  # 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,*)`), and `filter[search]`, which is a case-insensitive substring match against `resource_id`.
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
105
  # @param [Hash] opts the optional parameters
106
106
  # @option opts [String] :filter_occurred_at
107
107
  # @option opts [String] :filter_actor_type
@@ -109,7 +109,7 @@ module SmplkitGeneratedClient::Audit
109
109
  # @option opts [String] :filter_action
110
110
  # @option opts [String] :filter_resource_type
111
111
  # @option opts [String] :filter_resource_id
112
- # @option opts [String] :filter_search Case-insensitive substring match against `resource_id`. Use `filter[resource_id]` for an exact match.
112
+ # @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
113
  # @option opts [Integer] :page_size
114
114
  # @option opts [String] :page_after
115
115
  # @return [Array<(EventListResponse, Integer, Hash)>] EventListResponse data, response status code and response headers
@@ -25,6 +25,9 @@ module SmplkitGeneratedClient::Audit
25
25
  # Identifier of the specific resource the event is about.
26
26
  attr_accessor :resource_id
27
27
 
28
+ # Free-text description of the event. Included alongside `resource_id` in the `filter[search]` substring target.
29
+ attr_accessor :description
30
+
28
31
  # When the event actually happened. Defaults to the server receipt time (`created_at`).
29
32
  attr_accessor :occurred_at
30
33
 
@@ -55,6 +58,7 @@ module SmplkitGeneratedClient::Audit
55
58
  :'action' => :'action',
56
59
  :'resource_type' => :'resource_type',
57
60
  :'resource_id' => :'resource_id',
61
+ :'description' => :'description',
58
62
  :'occurred_at' => :'occurred_at',
59
63
  :'data' => :'data',
60
64
  :'do_not_forward' => :'do_not_forward',
@@ -82,6 +86,7 @@ module SmplkitGeneratedClient::Audit
82
86
  :'action' => :'String',
83
87
  :'resource_type' => :'String',
84
88
  :'resource_id' => :'String',
89
+ :'description' => :'String',
85
90
  :'occurred_at' => :'Time',
86
91
  :'data' => :'Hash<String, Object>',
87
92
  :'do_not_forward' => :'Boolean',
@@ -96,6 +101,7 @@ module SmplkitGeneratedClient::Audit
96
101
  # List of attributes with nullable: true
97
102
  def self.openapi_nullable
98
103
  Set.new([
104
+ :'description',
99
105
  :'occurred_at',
100
106
  :'created_at',
101
107
  :'actor_type',
@@ -139,6 +145,10 @@ module SmplkitGeneratedClient::Audit
139
145
  self.resource_id = nil
140
146
  end
141
147
 
148
+ if attributes.key?(:'description')
149
+ self.description = attributes[:'description']
150
+ end
151
+
142
152
  if attributes.key?(:'occurred_at')
143
153
  self.occurred_at = attributes[:'occurred_at']
144
154
  end
@@ -271,6 +281,7 @@ module SmplkitGeneratedClient::Audit
271
281
  action == o.action &&
272
282
  resource_type == o.resource_type &&
273
283
  resource_id == o.resource_id &&
284
+ description == o.description &&
274
285
  occurred_at == o.occurred_at &&
275
286
  data == o.data &&
276
287
  do_not_forward == o.do_not_forward &&
@@ -290,7 +301,7 @@ module SmplkitGeneratedClient::Audit
290
301
  # Calculates hash code according to all attributes.
291
302
  # @return [Integer] Hash code
292
303
  def hash
293
- [action, resource_type, resource_id, occurred_at, data, do_not_forward, created_at, actor_type, actor_id, actor_label, idempotency_key].hash
304
+ [action, resource_type, resource_id, description, occurred_at, data, do_not_forward, created_at, actor_type, actor_id, actor_label, idempotency_key].hash
294
305
  end
295
306
 
296
307
  # Builds the object from hash
@@ -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 &#x60;filter[occurred_at]&#x60;, which uses interval notation (e.g. &#x60;[2026-01-01T00:00:00Z,*)&#x60;), and &#x60;filter[search]&#x60;, which is a case-insensitive substring match against &#x60;resource_id&#x60;.
49
+ # List audit events for this account. Default sort is newest first. Filters are exact-match except &#x60;filter[occurred_at]&#x60;, which uses interval notation (e.g. &#x60;[2026-01-01T00:00:00Z,2026-01-31T00:00:00Z)&#x60;), and &#x60;filter[search]&#x60;, which is a case-insensitive substring match against &#x60;resource_id&#x60; or &#x60;description&#x60;. To bound the rows scanned per request, the endpoint requires either: - &#x60;filter[resource_id]&#x60; (which must be accompanied by &#x60;filter[resource_type]&#x60;), or - &#x60;filter[occurred_at]&#x60; with a span no greater than 30 days. &#x60;page[size]&#x60; 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
@@ -54,7 +54,7 @@ describe 'EventsApi' do
54
54
  # @option opts [String] :filter_action
55
55
  # @option opts [String] :filter_resource_type
56
56
  # @option opts [String] :filter_resource_id
57
- # @option opts [String] :filter_search Case-insensitive substring match against &#x60;resource_id&#x60;. Use &#x60;filter[resource_id]&#x60; for an exact match.
57
+ # @option opts [String] :filter_search Case-insensitive substring match against &#x60;resource_id&#x60; or &#x60;description&#x60;. Use &#x60;filter[resource_id]&#x60; for an exact match on &#x60;resource_id&#x60;.
58
58
  # @option opts [Integer] :page_size
59
59
  # @option opts [String] :page_after
60
60
  # @return [EventListResponse]
@@ -45,6 +45,12 @@ describe SmplkitGeneratedClient::Audit::Event do
45
45
  end
46
46
  end
47
47
 
48
+ describe 'test attribute "description"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ end
52
+ end
53
+
48
54
  describe 'test attribute "occurred_at"' do
49
55
  it 'should work' do
50
56
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC