smplkit 3.0.4 → 3.0.6

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: 65dfc771ba74cbb5df8387bcc64236657763fdcf94ecc8c98e3bcdadfa8dc16b
4
+ data.tar.gz: affdd73ed68555c0937d4ca797cbafc3e24cc0df7cb36d1f3cff4678466f34ee
5
5
  SHA512:
6
- metadata.gz: 865519ba14ce2b29accb2cd171588043d7ee750d66e329e5b6e6bda90a0090501559a148095b02e70590414999bef2d4bef7821e75abdb865ee0cdbb0653dd58
7
- data.tar.gz: 24b56faf3476d189dc0291ea9789107b2ca4926cf564769cae2b2191710e552fdcbb77be632815f04008322a6c419bf1c402b7ff60626b246d8c8b8638b6cd32
6
+ metadata.gz: 6799c9dde84ee70bb1f25a9e02dd3c67a39a6176b7c90282130270a6aa568a24d6b262f949714180031d83a11d60d679c320442d8eb7a35ec50e779fdff655f1
7
+ data.tar.gz: '011939e4fa5ba837c5acf0f4ee694065155820f806baad293ddaef69d3b29bcb2fb2b460622cd15054882e3d587b034d025d5b1a77bce7908afd9dd4f3f61acf'
@@ -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
@@ -20,10 +20,11 @@ module SmplkitGeneratedClient::Flags
20
20
  @api_client = api_client
21
21
  end
22
22
  # List All Flag Sources
23
- # List service/environment observations across all flags for this account. Filter by `environment` or `service` (or both) to narrow the result.
23
+ # List service/environment observations across all flags for this account. Default sort is `-last_seen` (most recently seen first). Filter by `environment` or `service` (or both) to narrow the result.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :filter_environment
26
26
  # @option opts [String] :filter_service
27
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-last_seen&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;environment&#x60;, &#x60;-environment&#x60;, &#x60;last_seen&#x60;, &#x60;-last_seen&#x60;, &#x60;service&#x60;, &#x60;-service&#x60;. (default to '-last_seen')
27
28
  # @return [FlagSourceListResponse]
28
29
  def list_all_flag_sources(opts = {})
29
30
  data, _status_code, _headers = list_all_flag_sources_with_http_info(opts)
@@ -31,15 +32,20 @@ module SmplkitGeneratedClient::Flags
31
32
  end
32
33
 
33
34
  # List All Flag Sources
34
- # List service/environment observations across all flags for this account. Filter by &#x60;environment&#x60; or &#x60;service&#x60; (or both) to narrow the result.
35
+ # List service/environment observations across all flags for this account. Default sort is &#x60;-last_seen&#x60; (most recently seen first). Filter by &#x60;environment&#x60; or &#x60;service&#x60; (or both) to narrow the result.
35
36
  # @param [Hash] opts the optional parameters
36
37
  # @option opts [String] :filter_environment
37
38
  # @option opts [String] :filter_service
39
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-last_seen&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;environment&#x60;, &#x60;-environment&#x60;, &#x60;last_seen&#x60;, &#x60;-last_seen&#x60;, &#x60;service&#x60;, &#x60;-service&#x60;. (default to '-last_seen')
38
40
  # @return [Array<(FlagSourceListResponse, Integer, Hash)>] FlagSourceListResponse data, response status code and response headers
39
41
  def list_all_flag_sources_with_http_info(opts = {})
40
42
  if @api_client.config.debugging
41
43
  @api_client.config.logger.debug 'Calling API: FlagSourcesApi.list_all_flag_sources ...'
42
44
  end
45
+ allowable_values = ["created_at", "-created_at", "environment", "-environment", "last_seen", "-last_seen", "service", "-service"]
46
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
47
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
48
+ end
43
49
  # resource path
44
50
  local_var_path = '/api/v1/flag_sources'
45
51
 
@@ -47,6 +53,7 @@ module SmplkitGeneratedClient::Flags
47
53
  query_params = opts[:query_params] || {}
48
54
  query_params[:'filter[environment]'] = opts[:'filter_environment'] if !opts[:'filter_environment'].nil?
49
55
  query_params[:'filter[service]'] = opts[:'filter_service'] if !opts[:'filter_service'].nil?
56
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
50
57
 
51
58
  # header parameters
52
59
  header_params = opts[:header_params] || {}
@@ -83,9 +90,10 @@ module SmplkitGeneratedClient::Flags
83
90
  end
84
91
 
85
92
  # List Flag Sources
86
- # List the service/environment observations recorded for a single flag.
93
+ # List the service/environment observations recorded for a single flag. Default sort is `-last_seen` (most recently seen first).
87
94
  # @param id [String]
88
95
  # @param [Hash] opts the optional parameters
96
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-last_seen&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;environment&#x60;, &#x60;-environment&#x60;, &#x60;last_seen&#x60;, &#x60;-last_seen&#x60;, &#x60;service&#x60;, &#x60;-service&#x60;. (default to '-last_seen')
89
97
  # @return [FlagSourceListResponse]
90
98
  def list_flag_sources(id, opts = {})
91
99
  data, _status_code, _headers = list_flag_sources_with_http_info(id, opts)
@@ -93,9 +101,10 @@ module SmplkitGeneratedClient::Flags
93
101
  end
94
102
 
95
103
  # List Flag Sources
96
- # List the service/environment observations recorded for a single flag.
104
+ # List the service/environment observations recorded for a single flag. Default sort is &#x60;-last_seen&#x60; (most recently seen first).
97
105
  # @param id [String]
98
106
  # @param [Hash] opts the optional parameters
107
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-last_seen&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;environment&#x60;, &#x60;-environment&#x60;, &#x60;last_seen&#x60;, &#x60;-last_seen&#x60;, &#x60;service&#x60;, &#x60;-service&#x60;. (default to '-last_seen')
99
108
  # @return [Array<(FlagSourceListResponse, Integer, Hash)>] FlagSourceListResponse data, response status code and response headers
100
109
  def list_flag_sources_with_http_info(id, opts = {})
101
110
  if @api_client.config.debugging
@@ -105,11 +114,16 @@ module SmplkitGeneratedClient::Flags
105
114
  if @api_client.config.client_side_validation && id.nil?
106
115
  fail ArgumentError, "Missing the required parameter 'id' when calling FlagSourcesApi.list_flag_sources"
107
116
  end
117
+ allowable_values = ["created_at", "-created_at", "environment", "-environment", "last_seen", "-last_seen", "service", "-service"]
118
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
119
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
120
+ end
108
121
  # resource path
109
122
  local_var_path = '/api/v1/flags/{id}/sources'.sub('{id}', CGI.escape(id.to_s))
110
123
 
111
124
  # query parameters
112
125
  query_params = opts[:query_params] || {}
126
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
113
127
 
114
128
  # header parameters
115
129
  header_params = opts[:header_params] || {}
@@ -280,12 +280,13 @@ module SmplkitGeneratedClient::Flags
280
280
  end
281
281
 
282
282
  # List Flags
283
- # List feature flags for this account.
283
+ # List feature flags for this account. Default sort is `key` ascending.
284
284
  # @param [Hash] opts the optional parameters
285
285
  # @option opts [String] :filter_type
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] :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;type&#x60;, &#x60;-type&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'key')
289
290
  # @return [FlagListResponse]
290
291
  def list_flags(opts = {})
291
292
  data, _status_code, _headers = list_flags_with_http_info(opts)
@@ -293,17 +294,22 @@ module SmplkitGeneratedClient::Flags
293
294
  end
294
295
 
295
296
  # List Flags
296
- # List feature flags for this account.
297
+ # List feature flags for this account. Default sort is &#x60;key&#x60; ascending.
297
298
  # @param [Hash] opts the optional parameters
298
299
  # @option opts [String] :filter_type
299
300
  # @option opts [Boolean] :filter_managed
300
301
  # @option opts [String] :filter_references_context Return flags whose rules reference this context instance. Format: {type}:{key}
301
302
  # @option opts [String] :filter_references_context_type Return flags whose rules reference any attribute of the given context type.
303
+ # @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;type&#x60;, &#x60;-type&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;. (default to 'key')
302
304
  # @return [Array<(FlagListResponse, Integer, Hash)>] FlagListResponse data, response status code and response headers
303
305
  def list_flags_with_http_info(opts = {})
304
306
  if @api_client.config.debugging
305
307
  @api_client.config.logger.debug 'Calling API: FlagsApi.list_flags ...'
306
308
  end
309
+ allowable_values = ["created_at", "-created_at", "key", "-key", "name", "-name", "type", "-type", "updated_at", "-updated_at"]
310
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
311
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
312
+ end
307
313
  # resource path
308
314
  local_var_path = '/api/v1/flags'
309
315
 
@@ -313,6 +319,7 @@ module SmplkitGeneratedClient::Flags
313
319
  query_params[:'filter[managed]'] = opts[:'filter_managed'] if !opts[:'filter_managed'].nil?
314
320
  query_params[:'filter[references_context]'] = opts[:'filter_references_context'] if !opts[:'filter_references_context'].nil?
315
321
  query_params[:'filter[references_context_type]'] = opts[:'filter_references_context_type'] if !opts[:'filter_references_context_type'].nil?
322
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
316
323
 
317
324
  # header parameters
318
325
  header_params = opts[:header_params] || {}
@@ -34,10 +34,11 @@ describe 'FlagSourcesApi' do
34
34
 
35
35
  # unit tests for list_all_flag_sources
36
36
  # List All Flag Sources
37
- # List service/environment observations across all flags for this account. Filter by &#x60;environment&#x60; or &#x60;service&#x60; (or both) to narrow the result.
37
+ # List service/environment observations across all flags for this account. Default sort is &#x60;-last_seen&#x60; (most recently seen first). Filter by &#x60;environment&#x60; or &#x60;service&#x60; (or both) to narrow the result.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :filter_environment
40
40
  # @option opts [String] :filter_service
41
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-last_seen&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;environment&#x60;, &#x60;-environment&#x60;, &#x60;last_seen&#x60;, &#x60;-last_seen&#x60;, &#x60;service&#x60;, &#x60;-service&#x60;.
41
42
  # @return [FlagSourceListResponse]
42
43
  describe 'list_all_flag_sources test' do
43
44
  it 'should work' do
@@ -47,9 +48,10 @@ describe 'FlagSourcesApi' do
47
48
 
48
49
  # unit tests for list_flag_sources
49
50
  # List Flag Sources
50
- # List the service/environment observations recorded for a single flag.
51
+ # List the service/environment observations recorded for a single flag. Default sort is &#x60;-last_seen&#x60; (most recently seen first).
51
52
  # @param id
52
53
  # @param [Hash] opts the optional parameters
54
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;-last_seen&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;environment&#x60;, &#x60;-environment&#x60;, &#x60;last_seen&#x60;, &#x60;-last_seen&#x60;, &#x60;service&#x60;, &#x60;-service&#x60;.
53
55
  # @return [FlagSourceListResponse]
54
56
  describe 'list_flag_sources test' do
55
57
  it 'should work' do
@@ -82,12 +82,13 @@ describe 'FlagsApi' do
82
82
 
83
83
  # unit tests for list_flags
84
84
  # List Flags
85
- # List feature flags for this account.
85
+ # List feature flags for this account. Default sort is &#x60;key&#x60; ascending.
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @option opts [String] :filter_type
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] :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;type&#x60;, &#x60;-type&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
91
92
  # @return [FlagListResponse]
92
93
  describe 'list_flags test' do
93
94
  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.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC