smplkit 3.0.4 → 3.0.5
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eee9a81ffc5d49a37de19535f1ca19730af58eb7cf18f3f1f6e4370c2a0105e1
|
|
4
|
+
data.tar.gz: 671f7b84c1280ee1c658e3a21e1d0737acf11c7f14dd9929345272946680fe9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e9f68fe181e15cb220c98309c2753e4013c4b4355999665f0972fa82c5d439225e26b238053f6991bc8eabacad8b88e6a313780d0c49ce7e03be0908124f06e
|
|
7
|
+
data.tar.gz: 2dc15c482920bcef2ff039bdbb76a47940094955fd38b88d53496774f219797807eeaaaa60ddf1cd1d900ab08399ade2b29baf58e131e002039a9bdce91feccc
|
|
@@ -212,9 +212,10 @@ module SmplkitGeneratedClient::Config
|
|
|
212
212
|
end
|
|
213
213
|
|
|
214
214
|
# List Configs
|
|
215
|
-
# List configs for this account. 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.
|
|
216
216
|
# @param [Hash] opts the optional parameters
|
|
217
217
|
# @option opts [String] :filter_parent
|
|
218
|
+
# @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')
|
|
218
219
|
# @return [ConfigListResponse]
|
|
219
220
|
def list_configs(opts = {})
|
|
220
221
|
data, _status_code, _headers = list_configs_with_http_info(opts)
|
|
@@ -222,20 +223,26 @@ module SmplkitGeneratedClient::Config
|
|
|
222
223
|
end
|
|
223
224
|
|
|
224
225
|
# List Configs
|
|
225
|
-
# List configs for this account. Pass `filter[parent]=<parent_key>` to return only the direct children of a specific config.
|
|
226
|
+
# 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.
|
|
226
227
|
# @param [Hash] opts the optional parameters
|
|
227
228
|
# @option opts [String] :filter_parent
|
|
229
|
+
# @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')
|
|
228
230
|
# @return [Array<(ConfigListResponse, Integer, Hash)>] ConfigListResponse data, response status code and response headers
|
|
229
231
|
def list_configs_with_http_info(opts = {})
|
|
230
232
|
if @api_client.config.debugging
|
|
231
233
|
@api_client.config.logger.debug 'Calling API: ConfigsApi.list_configs ...'
|
|
232
234
|
end
|
|
235
|
+
allowable_values = ["created_at", "-created_at", "key", "-key", "name", "-name", "updated_at", "-updated_at"]
|
|
236
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
237
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
238
|
+
end
|
|
233
239
|
# resource path
|
|
234
240
|
local_var_path = '/api/v1/configs'
|
|
235
241
|
|
|
236
242
|
# query parameters
|
|
237
243
|
query_params = opts[:query_params] || {}
|
|
238
244
|
query_params[:'filter[parent]'] = opts[:'filter_parent'] if !opts[:'filter_parent'].nil?
|
|
245
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
239
246
|
|
|
240
247
|
# header parameters
|
|
241
248
|
header_params = opts[:header_params] || {}
|
|
@@ -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. 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.
|
|
74
74
|
# @param [Hash] opts the optional parameters
|
|
75
75
|
# @option opts [String] :filter_parent
|
|
76
|
+
# @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`.
|
|
76
77
|
# @return [ConfigListResponse]
|
|
77
78
|
describe 'list_configs test' do
|
|
78
79
|
it 'should work' do
|