smplkit 3.0.40 → 3.0.42
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/app/lib/smplkit_app_client/api/api_keys_api.rb +5 -2
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/environments_api.rb +8 -2
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/services_api.rb +5 -2
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account.rb +6 -39
- data/lib/smplkit/_generated/app/spec/api/api_keys_api_spec.rb +2 -1
- data/lib/smplkit/_generated/app/spec/api/environments_api_spec.rb +3 -1
- data/lib/smplkit/_generated/app/spec/api/services_api_spec.rb +2 -1
- data/lib/smplkit/_generated/app/spec/models/account_spec.rb +0 -18
- data/lib/smplkit/_generated/config/lib/smplkit_config_client/api/configs_api.rb +5 -2
- data/lib/smplkit/_generated/config/spec/api/configs_api_spec.rb +2 -1
- data/lib/smplkit/_generated/flags/lib/smplkit_flags_client/api/flags_api.rb +3 -0
- data/lib/smplkit/_generated/flags/spec/api/flags_api_spec.rb +1 -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: cfcf436010e02d7da188275c65a92f7f33ac83619089d691039724d1706ffd3b
|
|
4
|
+
data.tar.gz: cd4b7791b4a23f252a8d74066a3b2564d04a84d3da5ecc68646e2f7182c5cfc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b2a35b18aa5fff841d1807a8d104f9d9ba5c71901a0fbfaa23f4605d76fe295dcfcd69fc745950dd05920e1a0bdb94d56d69be5a5bd2d4dfcabab26a13f1a2a
|
|
7
|
+
data.tar.gz: 5daf601fefb271b4d2aea012791455404c0ed8ecca79532edb63b1d2ca9cb258520f43cef0fb436f02b929d428204ec24402bd92150e849b24db8c9bec2276df
|
|
@@ -214,9 +214,10 @@ module SmplkitGeneratedClient::App
|
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# List API Keys
|
|
217
|
-
# List all API keys for the authenticated account.
|
|
217
|
+
# List all API keys for the authenticated account. `filter[search]` does a case-insensitive substring match against the API key `name`.
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
219
|
# @option opts [String] :filter_status
|
|
220
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the API key `name`.
|
|
220
221
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `expires_at`, `-expires_at`, `last_used_at`, `-last_used_at`, `name`, `-name`, `status`, `-status`. (default to 'name')
|
|
221
222
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
222
223
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -228,9 +229,10 @@ module SmplkitGeneratedClient::App
|
|
|
228
229
|
end
|
|
229
230
|
|
|
230
231
|
# List API Keys
|
|
231
|
-
# List all API keys for the authenticated account.
|
|
232
|
+
# List all API keys for the authenticated account. `filter[search]` does a case-insensitive substring match against the API key `name`.
|
|
232
233
|
# @param [Hash] opts the optional parameters
|
|
233
234
|
# @option opts [String] :filter_status
|
|
235
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the API key `name`.
|
|
234
236
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `expires_at`, `-expires_at`, `last_used_at`, `-last_used_at`, `name`, `-name`, `status`, `-status`. (default to 'name')
|
|
235
237
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
236
238
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -250,6 +252,7 @@ module SmplkitGeneratedClient::App
|
|
|
250
252
|
# query parameters
|
|
251
253
|
query_params = opts[:query_params] || {}
|
|
252
254
|
query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
|
|
255
|
+
query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
|
|
253
256
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
254
257
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
255
258
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
@@ -280,8 +280,10 @@ module SmplkitGeneratedClient::App
|
|
|
280
280
|
end
|
|
281
281
|
|
|
282
282
|
# List Environments
|
|
283
|
-
# List all environments for the authenticated account.
|
|
283
|
+
# List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`).
|
|
284
284
|
# @param [Hash] opts the optional parameters
|
|
285
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the environment `key` and `name`. An environment is returned if either field contains the search term.
|
|
286
|
+
# @option opts [String] :filter_classification Narrow the result to environments with the given classification. One of `STANDARD` or `AD_HOC`.
|
|
285
287
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`. (default to 'name')
|
|
286
288
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
287
289
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -293,8 +295,10 @@ module SmplkitGeneratedClient::App
|
|
|
293
295
|
end
|
|
294
296
|
|
|
295
297
|
# List Environments
|
|
296
|
-
# List all environments for the authenticated account.
|
|
298
|
+
# List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`).
|
|
297
299
|
# @param [Hash] opts the optional parameters
|
|
300
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the environment `key` and `name`. An environment is returned if either field contains the search term.
|
|
301
|
+
# @option opts [String] :filter_classification Narrow the result to environments with the given classification. One of `STANDARD` or `AD_HOC`.
|
|
298
302
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`. (default to 'name')
|
|
299
303
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
300
304
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -313,6 +317,8 @@ module SmplkitGeneratedClient::App
|
|
|
313
317
|
|
|
314
318
|
# query parameters
|
|
315
319
|
query_params = opts[:query_params] || {}
|
|
320
|
+
query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
|
|
321
|
+
query_params[:'filter[classification]'] = opts[:'filter_classification'] if !opts[:'filter_classification'].nil?
|
|
316
322
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
317
323
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
318
324
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
@@ -214,8 +214,9 @@ module SmplkitGeneratedClient::App
|
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# List Services
|
|
217
|
-
# List all services for the authenticated account.
|
|
217
|
+
# List all services for the authenticated account. `filter[search]` does a case-insensitive substring match against the service `key` and `name`.
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the service `key` and `name`. A service is returned if either field contains the search term.
|
|
219
220
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`. (default to 'name')
|
|
220
221
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
221
222
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -227,8 +228,9 @@ module SmplkitGeneratedClient::App
|
|
|
227
228
|
end
|
|
228
229
|
|
|
229
230
|
# List Services
|
|
230
|
-
# List all services for the authenticated account.
|
|
231
|
+
# List all services for the authenticated account. `filter[search]` does a case-insensitive substring match against the service `key` and `name`.
|
|
231
232
|
# @param [Hash] opts the optional parameters
|
|
233
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the service `key` and `name`. A service is returned if either field contains the search term.
|
|
232
234
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`. (default to 'name')
|
|
233
235
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
234
236
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -247,6 +249,7 @@ module SmplkitGeneratedClient::App
|
|
|
247
249
|
|
|
248
250
|
# query parameters
|
|
249
251
|
query_params = opts[:query_params] || {}
|
|
252
|
+
query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
|
|
250
253
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
251
254
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
252
255
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
@@ -43,18 +43,9 @@ module SmplkitGeneratedClient::App
|
|
|
43
43
|
# Whether the account is currently configured to display the sample dataset alongside the customer's own resources.
|
|
44
44
|
attr_accessor :show_sample_data
|
|
45
45
|
|
|
46
|
-
# Custom discount percentage applied to the account in place of the volume-based discount schedule. `null` means the volume schedule applies.
|
|
46
|
+
# Custom discount percentage applied to the account in place of the volume-based discount schedule. `null` means the volume schedule applies. Who set it, when, and why are captured in the audit-event stream rather than on the subscription row.
|
|
47
47
|
attr_accessor :discount_override_pct
|
|
48
48
|
|
|
49
|
-
# Free-form note explaining why the override was set.
|
|
50
|
-
attr_accessor :discount_override_reason
|
|
51
|
-
|
|
52
|
-
# UUID of the user who set the override.
|
|
53
|
-
attr_accessor :discount_override_set_by_user_id
|
|
54
|
-
|
|
55
|
-
# When the override was last changed.
|
|
56
|
-
attr_accessor :discount_override_set_at
|
|
57
|
-
|
|
58
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
50
|
def self.attribute_map
|
|
60
51
|
{
|
|
@@ -67,10 +58,7 @@ module SmplkitGeneratedClient::App
|
|
|
67
58
|
:'product_subscriptions' => :'product_subscriptions',
|
|
68
59
|
:'entry_point' => :'entry_point',
|
|
69
60
|
:'show_sample_data' => :'show_sample_data',
|
|
70
|
-
:'discount_override_pct' => :'discount_override_pct'
|
|
71
|
-
:'discount_override_reason' => :'discount_override_reason',
|
|
72
|
-
:'discount_override_set_by_user_id' => :'discount_override_set_by_user_id',
|
|
73
|
-
:'discount_override_set_at' => :'discount_override_set_at'
|
|
61
|
+
:'discount_override_pct' => :'discount_override_pct'
|
|
74
62
|
}
|
|
75
63
|
end
|
|
76
64
|
|
|
@@ -96,10 +84,7 @@ module SmplkitGeneratedClient::App
|
|
|
96
84
|
:'product_subscriptions' => :'Hash<String, Object>',
|
|
97
85
|
:'entry_point' => :'String',
|
|
98
86
|
:'show_sample_data' => :'Boolean',
|
|
99
|
-
:'discount_override_pct' => :'Integer'
|
|
100
|
-
:'discount_override_reason' => :'String',
|
|
101
|
-
:'discount_override_set_by_user_id' => :'String',
|
|
102
|
-
:'discount_override_set_at' => :'Time'
|
|
87
|
+
:'discount_override_pct' => :'Integer'
|
|
103
88
|
}
|
|
104
89
|
end
|
|
105
90
|
|
|
@@ -113,10 +98,7 @@ module SmplkitGeneratedClient::App
|
|
|
113
98
|
:'product_subscriptions',
|
|
114
99
|
:'entry_point',
|
|
115
100
|
:'show_sample_data',
|
|
116
|
-
:'discount_override_pct'
|
|
117
|
-
:'discount_override_reason',
|
|
118
|
-
:'discount_override_set_by_user_id',
|
|
119
|
-
:'discount_override_set_at'
|
|
101
|
+
:'discount_override_pct'
|
|
120
102
|
])
|
|
121
103
|
end
|
|
122
104
|
|
|
@@ -181,18 +163,6 @@ module SmplkitGeneratedClient::App
|
|
|
181
163
|
if attributes.key?(:'discount_override_pct')
|
|
182
164
|
self.discount_override_pct = attributes[:'discount_override_pct']
|
|
183
165
|
end
|
|
184
|
-
|
|
185
|
-
if attributes.key?(:'discount_override_reason')
|
|
186
|
-
self.discount_override_reason = attributes[:'discount_override_reason']
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
if attributes.key?(:'discount_override_set_by_user_id')
|
|
190
|
-
self.discount_override_set_by_user_id = attributes[:'discount_override_set_by_user_id']
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
if attributes.key?(:'discount_override_set_at')
|
|
194
|
-
self.discount_override_set_at = attributes[:'discount_override_set_at']
|
|
195
|
-
end
|
|
196
166
|
end
|
|
197
167
|
|
|
198
168
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -248,10 +218,7 @@ module SmplkitGeneratedClient::App
|
|
|
248
218
|
product_subscriptions == o.product_subscriptions &&
|
|
249
219
|
entry_point == o.entry_point &&
|
|
250
220
|
show_sample_data == o.show_sample_data &&
|
|
251
|
-
discount_override_pct == o.discount_override_pct
|
|
252
|
-
discount_override_reason == o.discount_override_reason &&
|
|
253
|
-
discount_override_set_by_user_id == o.discount_override_set_by_user_id &&
|
|
254
|
-
discount_override_set_at == o.discount_override_set_at
|
|
221
|
+
discount_override_pct == o.discount_override_pct
|
|
255
222
|
end
|
|
256
223
|
|
|
257
224
|
# @see the `==` method
|
|
@@ -263,7 +230,7 @@ module SmplkitGeneratedClient::App
|
|
|
263
230
|
# Calculates hash code according to all attributes.
|
|
264
231
|
# @return [Integer] Hash code
|
|
265
232
|
def hash
|
|
266
|
-
[name, key, has_stripe_customer, expires_at, created_at, deleted_at, product_subscriptions, entry_point, show_sample_data, discount_override_pct
|
|
233
|
+
[name, key, has_stripe_customer, expires_at, created_at, deleted_at, product_subscriptions, entry_point, show_sample_data, discount_override_pct].hash
|
|
267
234
|
end
|
|
268
235
|
|
|
269
236
|
# Builds the object from hash
|
|
@@ -70,9 +70,10 @@ describe 'APIKeysApi' do
|
|
|
70
70
|
|
|
71
71
|
# unit tests for list_api_keys
|
|
72
72
|
# List API Keys
|
|
73
|
-
# List all API keys for the authenticated account.
|
|
73
|
+
# List all API keys for the authenticated account. `filter[search]` does a case-insensitive substring match against the API key `name`.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @option opts [String] :filter_status
|
|
76
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the API key `name`.
|
|
76
77
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `expires_at`, `-expires_at`, `last_used_at`, `-last_used_at`, `name`, `-name`, `status`, `-status`.
|
|
77
78
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
78
79
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
@@ -83,8 +83,10 @@ describe 'EnvironmentsApi' do
|
|
|
83
83
|
|
|
84
84
|
# unit tests for list_environments
|
|
85
85
|
# List Environments
|
|
86
|
-
# List all environments for the authenticated account.
|
|
86
|
+
# List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`).
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the environment `key` and `name`. An environment is returned if either field contains the search term.
|
|
89
|
+
# @option opts [String] :filter_classification Narrow the result to environments with the given classification. One of `STANDARD` or `AD_HOC`.
|
|
88
90
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
|
|
89
91
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
90
92
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
@@ -70,8 +70,9 @@ describe 'ServicesApi' do
|
|
|
70
70
|
|
|
71
71
|
# unit tests for list_services
|
|
72
72
|
# List Services
|
|
73
|
-
# List all services for the authenticated account.
|
|
73
|
+
# List all services for the authenticated account. `filter[search]` does a case-insensitive substring match against the service `key` and `name`.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the service `key` and `name`. A service is returned if either field contains the search term.
|
|
75
76
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
|
|
76
77
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
77
78
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
@@ -87,22 +87,4 @@ describe SmplkitGeneratedClient::App::Account do
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
describe 'test attribute "discount_override_reason"' do
|
|
91
|
-
it 'should work' do
|
|
92
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
-
end
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
describe 'test attribute "discount_override_set_by_user_id"' do
|
|
97
|
-
it 'should work' do
|
|
98
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
99
|
-
end
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
describe 'test attribute "discount_override_set_at"' do
|
|
103
|
-
it 'should work' do
|
|
104
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
-
end
|
|
106
|
-
end
|
|
107
|
-
|
|
108
90
|
end
|
|
@@ -212,9 +212,10 @@ module SmplkitGeneratedClient::Config
|
|
|
212
212
|
end
|
|
213
213
|
|
|
214
214
|
# List Configs
|
|
215
|
-
# List configs for this account. Default sort is `key` ascending. Pass `filter[parent]=<parent_key>` to return only the direct children of a specific config
|
|
215
|
+
# List configs for this account. Default sort is `key` ascending. Pass `filter[parent]=<parent_key>` to return only the direct children of a specific config, or `filter[search]=<term>` to filter by a case-insensitive substring against `key` or `name`.
|
|
216
216
|
# @param [Hash] opts the optional parameters
|
|
217
217
|
# @option opts [String] :filter_parent
|
|
218
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the config `key` and `name`. A config is returned if either field contains the search term.
|
|
218
219
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`. (default to 'key')
|
|
219
220
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
220
221
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -226,9 +227,10 @@ module SmplkitGeneratedClient::Config
|
|
|
226
227
|
end
|
|
227
228
|
|
|
228
229
|
# List Configs
|
|
229
|
-
# List configs for this account. Default sort is `key` ascending. Pass `filter[parent]=<parent_key>` to return only the direct children of a specific config
|
|
230
|
+
# List configs for this account. Default sort is `key` ascending. Pass `filter[parent]=<parent_key>` to return only the direct children of a specific config, or `filter[search]=<term>` to filter by a case-insensitive substring against `key` or `name`.
|
|
230
231
|
# @param [Hash] opts the optional parameters
|
|
231
232
|
# @option opts [String] :filter_parent
|
|
233
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the config `key` and `name`. A config is returned if either field contains the search term.
|
|
232
234
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`. (default to 'key')
|
|
233
235
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
234
236
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -248,6 +250,7 @@ module SmplkitGeneratedClient::Config
|
|
|
248
250
|
# query parameters
|
|
249
251
|
query_params = opts[:query_params] || {}
|
|
250
252
|
query_params[:'filter[parent]'] = opts[:'filter_parent'] if !opts[:'filter_parent'].nil?
|
|
253
|
+
query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
|
|
251
254
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
252
255
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
253
256
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
@@ -70,9 +70,10 @@ describe 'ConfigsApi' do
|
|
|
70
70
|
|
|
71
71
|
# unit tests for list_configs
|
|
72
72
|
# List Configs
|
|
73
|
-
# List configs for this account. Default sort is `key` ascending. Pass `filter[parent]=<parent_key>` to return only the direct children of a specific config
|
|
73
|
+
# List configs for this account. Default sort is `key` ascending. Pass `filter[parent]=<parent_key>` to return only the direct children of a specific config, or `filter[search]=<term>` to filter by a case-insensitive substring against `key` or `name`.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @option opts [String] :filter_parent
|
|
76
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the config `key` and `name`. A config is returned if either field contains the search term.
|
|
76
77
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
|
|
77
78
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
78
79
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|
|
@@ -286,6 +286,7 @@ module SmplkitGeneratedClient::Flags
|
|
|
286
286
|
# @option opts [Boolean] :filter_managed
|
|
287
287
|
# @option opts [String] :filter_references_context Return flags whose rules reference this context instance. Format: {type}:{key}
|
|
288
288
|
# @option opts [String] :filter_references_context_type Return flags whose rules reference any attribute of the given context type.
|
|
289
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the flag `key` and `name`. A flag is returned if either field contains the search term.
|
|
289
290
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `type`, `-type`, `updated_at`, `-updated_at`. (default to 'key')
|
|
290
291
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
291
292
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -303,6 +304,7 @@ module SmplkitGeneratedClient::Flags
|
|
|
303
304
|
# @option opts [Boolean] :filter_managed
|
|
304
305
|
# @option opts [String] :filter_references_context Return flags whose rules reference this context instance. Format: {type}:{key}
|
|
305
306
|
# @option opts [String] :filter_references_context_type Return flags whose rules reference any attribute of the given context type.
|
|
307
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the flag `key` and `name`. A flag is returned if either field contains the search term.
|
|
306
308
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `type`, `-type`, `updated_at`, `-updated_at`. (default to 'key')
|
|
307
309
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
|
|
308
310
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
|
|
@@ -325,6 +327,7 @@ module SmplkitGeneratedClient::Flags
|
|
|
325
327
|
query_params[:'filter[managed]'] = opts[:'filter_managed'] if !opts[:'filter_managed'].nil?
|
|
326
328
|
query_params[:'filter[references_context]'] = opts[:'filter_references_context'] if !opts[:'filter_references_context'].nil?
|
|
327
329
|
query_params[:'filter[references_context_type]'] = opts[:'filter_references_context_type'] if !opts[:'filter_references_context_type'].nil?
|
|
330
|
+
query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
|
|
328
331
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
329
332
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
|
330
333
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
@@ -88,6 +88,7 @@ describe 'FlagsApi' do
|
|
|
88
88
|
# @option opts [Boolean] :filter_managed
|
|
89
89
|
# @option opts [String] :filter_references_context Return flags whose rules reference this context instance. Format: {type}:{key}
|
|
90
90
|
# @option opts [String] :filter_references_context_type Return flags whose rules reference any attribute of the given context type.
|
|
91
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the flag `key` and `name`. A flag is returned if either field contains the search term.
|
|
91
92
|
# @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `type`, `-type`, `updated_at`, `-updated_at`.
|
|
92
93
|
# @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
|
|
93
94
|
# @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
|