smplkit 3.0.5 → 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: eee9a81ffc5d49a37de19535f1ca19730af58eb7cf18f3f1f6e4370c2a0105e1
4
- data.tar.gz: 671f7b84c1280ee1c658e3a21e1d0737acf11c7f14dd9929345272946680fe9b
3
+ metadata.gz: 65dfc771ba74cbb5df8387bcc64236657763fdcf94ecc8c98e3bcdadfa8dc16b
4
+ data.tar.gz: affdd73ed68555c0937d4ca797cbafc3e24cc0df7cb36d1f3cff4678466f34ee
5
5
  SHA512:
6
- metadata.gz: 0e9f68fe181e15cb220c98309c2753e4013c4b4355999665f0972fa82c5d439225e26b238053f6991bc8eabacad8b88e6a313780d0c49ce7e03be0908124f06e
7
- data.tar.gz: 2dc15c482920bcef2ff039bdbb76a47940094955fd38b88d53496774f219797807eeaaaa60ddf1cd1d900ab08399ade2b29baf58e131e002039a9bdce91feccc
6
+ metadata.gz: 6799c9dde84ee70bb1f25a9e02dd3c67a39a6176b7c90282130270a6aa568a24d6b262f949714180031d83a11d60d679c320442d8eb7a35ec50e779fdff655f1
7
+ data.tar.gz: '011939e4fa5ba837c5acf0f4ee694065155820f806baad293ddaef69d3b29bcb2fb2b460622cd15054882e3d587b034d025d5b1a77bce7908afd9dd4f3f61acf'
@@ -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 `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`. (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 `environment` or `service` (or both) to narrow the result.
35
+ # 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.
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 `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`. (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.5
4
+ version: 3.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC