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 +4 -4
- data/lib/smplkit/_generated/flags/lib/smplkit_flags_client/api/flag_sources_api.rb +18 -4
- data/lib/smplkit/_generated/flags/lib/smplkit_flags_client/api/flags_api.rb +9 -2
- data/lib/smplkit/_generated/flags/spec/api/flag_sources_api_spec.rb +4 -2
- data/lib/smplkit/_generated/flags/spec/api/flags_api_spec.rb +2 -1
- 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: 65dfc771ba74cbb5df8387bcc64236657763fdcf94ecc8c98e3bcdadfa8dc16b
|
|
4
|
+
data.tar.gz: affdd73ed68555c0937d4ca797cbafc3e24cc0df7cb36d1f3cff4678466f34ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`. (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 `-last_seen` (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 `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`. (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 `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `type`, `-type`, `updated_at`, `-updated_at`. (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 `key` 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 `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `type`, `-type`, `updated_at`, `-updated_at`. (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 `environment` or `service` (or both) to narrow the result.
|
|
37
|
+
# 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.
|
|
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 `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`.
|
|
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 `-last_seen` (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 `-` for descending order. Default: `-last_seen`. Allowed values: `created_at`, `-created_at`, `environment`, `-environment`, `last_seen`, `-last_seen`, `service`, `-service`.
|
|
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 `key` 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 `-` for descending order. Default: `key`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `type`, `-type`, `updated_at`, `-updated_at`.
|
|
91
92
|
# @return [FlagListResponse]
|
|
92
93
|
describe 'list_flags test' do
|
|
93
94
|
it 'should work' do
|