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: d84b2fada8f2a0bc4fae54630d4622589b8df535c24fe2a0382792976d2135af
4
- data.tar.gz: a10e21e6eca3bce84b98fba2a0240709ca4140002553454816520cd72854628e
3
+ metadata.gz: eee9a81ffc5d49a37de19535f1ca19730af58eb7cf18f3f1f6e4370c2a0105e1
4
+ data.tar.gz: 671f7b84c1280ee1c658e3a21e1d0737acf11c7f14dd9929345272946680fe9b
5
5
  SHA512:
6
- metadata.gz: 865519ba14ce2b29accb2cd171588043d7ee750d66e329e5b6e6bda90a0090501559a148095b02e70590414999bef2d4bef7821e75abdb865ee0cdbb0653dd58
7
- data.tar.gz: 24b56faf3476d189dc0291ea9789107b2ca4926cf564769cae2b2191710e552fdcbb77be632815f04008322a6c419bf1c402b7ff60626b246d8c8b8638b6cd32
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 &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (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 &#x60;filter[parent]&#x3D;&lt;parent_key&gt;&#x60; to return only the direct children of a specific config.
226
+ # List configs for this account. Default sort is &#x60;key&#x60; ascending. Pass &#x60;filter[parent]&#x3D;&lt;parent_key&gt;&#x60; 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 &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (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 &#x60;filter[parent]&#x3D;&lt;parent_key&gt;&#x60; to return only the direct children of a specific config.
73
+ # List configs for this account. Default sort is &#x60;key&#x60; ascending. Pass &#x60;filter[parent]&#x3D;&lt;parent_key&gt;&#x60; 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 &#x60;-&#x60; for descending order. Default: &#x60;key&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
76
77
  # @return [ConfigListResponse]
77
78
  describe 'list_configs test' do
78
79
  it 'should work' do
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.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC