rbflagr 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -7
  3. data/docs/CreateFlagRequest.md +1 -0
  4. data/docs/Distribution.md +0 -1
  5. data/docs/EvalContext.md +3 -2
  6. data/docs/EvalResult.md +1 -0
  7. data/docs/EvaluationBatchRequest.md +2 -1
  8. data/docs/EvaluationEntity.md +1 -1
  9. data/docs/ExportApi.md +49 -0
  10. data/docs/Flag.md +5 -0
  11. data/docs/FlagApi.md +41 -0
  12. data/docs/HealthApi.md +7 -5
  13. data/docs/PutFlagRequest.md +4 -1
  14. data/docs/PutVariantRequest.md +1 -1
  15. data/lib/rbflagr.rb +3 -2
  16. data/lib/rbflagr/api/constraint_api.rb +2 -2
  17. data/lib/rbflagr/api/distribution_api.rb +2 -2
  18. data/lib/rbflagr/api/evaluation_api.rb +2 -2
  19. data/lib/rbflagr/api/export_api.rb +69 -0
  20. data/lib/rbflagr/api/flag_api.rb +49 -2
  21. data/lib/rbflagr/api/health_api.rb +9 -7
  22. data/lib/rbflagr/api/segment_api.rb +2 -2
  23. data/lib/rbflagr/api/variant_api.rb +2 -2
  24. data/lib/rbflagr/api_client.rb +2 -2
  25. data/lib/rbflagr/api_error.rb +2 -2
  26. data/lib/rbflagr/configuration.rb +2 -2
  27. data/lib/rbflagr/models/constraint.rb +2 -2
  28. data/lib/rbflagr/models/create_constraint_request.rb +2 -2
  29. data/lib/rbflagr/models/create_flag_request.rb +16 -6
  30. data/lib/rbflagr/models/create_segment_request.rb +2 -2
  31. data/lib/rbflagr/models/create_variant_request.rb +2 -2
  32. data/lib/rbflagr/models/distribution.rb +3 -27
  33. data/lib/rbflagr/models/error.rb +2 -2
  34. data/lib/rbflagr/models/eval_context.rb +20 -42
  35. data/lib/rbflagr/models/eval_debug_log.rb +2 -2
  36. data/lib/rbflagr/models/eval_result.rb +17 -3
  37. data/lib/rbflagr/models/evaluation_batch_request.rb +19 -11
  38. data/lib/rbflagr/models/evaluation_batch_response.rb +2 -2
  39. data/lib/rbflagr/models/evaluation_entity.rb +2 -26
  40. data/lib/rbflagr/models/flag.rb +68 -6
  41. data/lib/rbflagr/models/flag_snapshot.rb +2 -2
  42. data/lib/rbflagr/models/put_distributions_request.rb +2 -2
  43. data/lib/rbflagr/models/put_flag_request.rb +37 -18
  44. data/lib/rbflagr/models/put_segment_reorder_request.rb +2 -2
  45. data/lib/rbflagr/models/put_segment_request.rb +2 -2
  46. data/lib/rbflagr/models/put_variant_request.rb +2 -7
  47. data/lib/rbflagr/models/segment.rb +2 -2
  48. data/lib/rbflagr/models/segment_debug_log.rb +2 -2
  49. data/lib/rbflagr/models/set_flag_enabled_request.rb +2 -2
  50. data/lib/rbflagr/models/variant.rb +2 -2
  51. data/lib/rbflagr/version.rb +3 -3
  52. data/rbflagr.gemspec +3 -3
  53. data/spec/api/export_api_spec.rb +45 -0
  54. data/swagger.yaml +115 -35
  55. data/swagger_ruby.json +1 -1
  56. metadata +8 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d581712bb92f0f0bc0dcf1bd36fae8f9ed8e5511147bde6ed674f018ef8402b
4
- data.tar.gz: 35f793dab20335bd32c8b8602b178cfd580ddaa5eb20a21759821f21be2eb6a6
3
+ metadata.gz: 72c1faf5b1ee8c6ae575b8e00a29320e92ee0e5fff91c2dfe6cd5a1d382453fd
4
+ data.tar.gz: 92a5d8eb871b5973da7ed14c3238ccc52efecbefc466d151848aa54ea9a1859f
5
5
  SHA512:
6
- metadata.gz: 41dd88e56157dd2ca3df30e5bf40b4bd487c3c93634da94d0d331f0827274045426f4ef75c1d73426e4a5cb48fac7ccd351a091239ed4545aaa512b74dad1002
7
- data.tar.gz: c3b140e97a2c4921df97ccd8d89669de4eeb65d378549d317a1419e5457a063fc7dab72e90f028b523059ca57a9281347cbedc499d2cdfb9f50c5f3a2596f162
6
+ metadata.gz: ae8cee2a697034e4e66be84b2d73042ebe7cb4912fc0314568ad134e85bdab52bb11e0d1d72431a46af335df5f47d7edd5ceed4780268d4a3167a2049fa67012
7
+ data.tar.gz: 3b4bcc9ba06ba719bd4514b5043c3d8414c39e120ff907478e4b9166a728d24fcd2ac606266e5581c405ff78601163e53ebc5656eb30a2b03967076d5a2329d9
data/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Flagr - the Ruby gem for the Flagr
4
4
 
5
- Flagr is a feature flagging, A/B testing and dynamic configuration microservice
5
+ Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
6
6
 
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
- - API version: 1.0.8
10
- - Package version: 0.1.2
9
+ - API version: 1.0.13
10
+ - Package version: 0.2.0
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build rbflagr.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./rbflagr-0.1.2.gem
26
+ gem install ./rbflagr-0.2.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./rbflagr-0.1.2.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./rbflagr-0.2.0.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'rbflagr', '~> 0.1.2'
34
+ gem 'rbflagr', '~> 0.2.0'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -86,14 +86,16 @@ Class | Method | HTTP request | Description
86
86
  *Flagr::DistributionApi* | [**put_distributions**](docs/DistributionApi.md#put_distributions) | **PUT** /flags/{flagID}/segments/{segmentID}/distributions |
87
87
  *Flagr::EvaluationApi* | [**post_evaluation**](docs/EvaluationApi.md#post_evaluation) | **POST** /evaluation |
88
88
  *Flagr::EvaluationApi* | [**post_evaluation_batch**](docs/EvaluationApi.md#post_evaluation_batch) | **POST** /evaluation/batch |
89
+ *Flagr::ExportApi* | [**get_export_sq_lite**](docs/ExportApi.md#get_export_sq_lite) | **GET** /export/sqlite |
89
90
  *Flagr::FlagApi* | [**create_flag**](docs/FlagApi.md#create_flag) | **POST** /flags |
90
91
  *Flagr::FlagApi* | [**delete_flag**](docs/FlagApi.md#delete_flag) | **DELETE** /flags/{flagID} |
91
92
  *Flagr::FlagApi* | [**find_flags**](docs/FlagApi.md#find_flags) | **GET** /flags |
92
93
  *Flagr::FlagApi* | [**get_flag**](docs/FlagApi.md#get_flag) | **GET** /flags/{flagID} |
94
+ *Flagr::FlagApi* | [**get_flag_entity_types**](docs/FlagApi.md#get_flag_entity_types) | **GET** /flags/entity_types |
93
95
  *Flagr::FlagApi* | [**get_flag_snapshots**](docs/FlagApi.md#get_flag_snapshots) | **GET** /flags/{flagID}/snapshots |
94
96
  *Flagr::FlagApi* | [**put_flag**](docs/FlagApi.md#put_flag) | **PUT** /flags/{flagID} |
95
97
  *Flagr::FlagApi* | [**set_flag_enabled**](docs/FlagApi.md#set_flag_enabled) | **PUT** /flags/{flagID}/enabled |
96
- *Flagr::HealthApi* | [**health_get**](docs/HealthApi.md#health_get) | **GET** /health |
98
+ *Flagr::HealthApi* | [**get_health**](docs/HealthApi.md#get_health) | **GET** /health |
97
99
  *Flagr::SegmentApi* | [**create_segment**](docs/SegmentApi.md#create_segment) | **POST** /flags/{flagID}/segments |
98
100
  *Flagr::SegmentApi* | [**delete_segment**](docs/SegmentApi.md#delete_segment) | **DELETE** /flags/{flagID}/segments/{segmentID} |
99
101
  *Flagr::SegmentApi* | [**find_segments**](docs/SegmentApi.md#find_segments) | **GET** /flags/{flagID}/segments |
@@ -4,5 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **description** | **String** | |
7
+ **key** | **String** | unique key representation of the flag | [optional]
7
8
 
8
9
 
@@ -5,7 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **id** | **Integer** | | [optional]
7
7
  **percent** | **Integer** | |
8
- **bitmap** | **String** | | [optional]
9
8
  **variant_key** | **String** | |
10
9
  **variant_id** | **Integer** | |
11
10
 
@@ -4,9 +4,10 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **entity_id** | **String** | entityID is used to deterministically at random to evaluate the flag result. If it's empty, flagr will randomly generate one. | [optional]
7
- **entity_type** | **String** | |
7
+ **entity_type** | **String** | | [optional]
8
8
  **entity_context** | **Object** | | [optional]
9
9
  **enable_debug** | **BOOLEAN** | | [optional]
10
- **flag_id** | **Integer** | |
10
+ **flag_id** | **Integer** | flagID | [optional]
11
+ **flag_key** | **String** | flagKey. flagID or flagKey will resolve to the same flag. Either works. | [optional]
11
12
 
12
13
 
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **flag_id** | **Integer** | |
7
+ **flag_key** | **String** | |
7
8
  **flag_snapshot_id** | **Integer** | | [optional]
8
9
  **segment_id** | **Integer** | |
9
10
  **variant_id** | **Integer** | |
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **entities** | [**Array<EvaluationEntity>**](EvaluationEntity.md) | |
7
7
  **enable_debug** | **BOOLEAN** | | [optional]
8
- **flag_i_ds** | **Array<Integer>** | |
8
+ **flag_i_ds** | **Array<Integer>** | flagIDs | [optional]
9
+ **flag_keys** | **Array<String>** | flagKeys. Either flagIDs or flagKeys works. If pass in both, Flagr may return duplicate results. | [optional]
9
10
 
10
11
 
@@ -4,7 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **entity_id** | **String** | | [optional]
7
- **entity_type** | **String** | |
7
+ **entity_type** | **String** | | [optional]
8
8
  **entity_context** | **Object** | | [optional]
9
9
 
10
10
 
@@ -0,0 +1,49 @@
1
+ # Flagr::ExportApi
2
+
3
+ All URIs are relative to *http://localhost/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_export_sq_lite**](ExportApi.md#get_export_sq_lite) | **GET** /export/sqlite |
8
+
9
+
10
+ # **get_export_sq_lite**
11
+ > File get_export_sq_lite
12
+
13
+
14
+
15
+ Export sqlite3 format of the db dump, which is converted from the main database.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'rbflagr'
21
+
22
+ api_instance = Flagr::ExportApi.new
23
+
24
+ begin
25
+ result = api_instance.get_export_sq_lite
26
+ p result
27
+ rescue Flagr::ApiError => e
28
+ puts "Exception when calling ExportApi->get_export_sq_lite: #{e}"
29
+ end
30
+ ```
31
+
32
+ ### Parameters
33
+ This endpoint does not need any parameter.
34
+
35
+ ### Return type
36
+
37
+ **File**
38
+
39
+ ### Authorization
40
+
41
+ No authorization required
42
+
43
+ ### HTTP request headers
44
+
45
+ - **Content-Type**: application/json
46
+ - **Accept**: application/octet-stream
47
+
48
+
49
+
@@ -4,10 +4,15 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **id** | **Integer** | | [optional]
7
+ **key** | **String** | unique key representation of the flag | [optional]
7
8
  **description** | **String** | |
8
9
  **enabled** | **BOOLEAN** | |
9
10
  **segments** | [**Array<Segment>**](Segment.md) | | [optional]
10
11
  **variants** | [**Array<Variant>**](Variant.md) | | [optional]
11
12
  **data_records_enabled** | **BOOLEAN** | enabled data records will get data logging in the metrics pipeline, for example, kafka. |
13
+ **entity_type** | **String** | it will override the entityType in the evaluation logs if it's not empty | [optional]
14
+ **created_by** | **String** | | [optional]
15
+ **updated_by** | **String** | | [optional]
16
+ **updated_at** | **DateTime** | | [optional]
12
17
 
13
18
 
@@ -8,6 +8,7 @@ Method | HTTP request | Description
8
8
  [**delete_flag**](FlagApi.md#delete_flag) | **DELETE** /flags/{flagID} |
9
9
  [**find_flags**](FlagApi.md#find_flags) | **GET** /flags |
10
10
  [**get_flag**](FlagApi.md#get_flag) | **GET** /flags/{flagID} |
11
+ [**get_flag_entity_types**](FlagApi.md#get_flag_entity_types) | **GET** /flags/entity_types |
11
12
  [**get_flag_snapshots**](FlagApi.md#get_flag_snapshots) | **GET** /flags/{flagID}/snapshots |
12
13
  [**put_flag**](FlagApi.md#put_flag) | **PUT** /flags/{flagID} |
13
14
  [**set_flag_enabled**](FlagApi.md#set_flag_enabled) | **PUT** /flags/{flagID}/enabled |
@@ -117,6 +118,7 @@ opts = {
117
118
  enabled: true, # BOOLEAN | return flags having given enabled status
118
119
  description: 'description_example', # String | return flags exactly matching given description
119
120
  description_like: 'description_like_example', # String | return flags partially matching given description
121
+ key: 'key_example', # String | return flags matching given key
120
122
  offset: 789 # Integer | return flags given the offset, it should usually set together with limit
121
123
  }
122
124
 
@@ -136,6 +138,7 @@ Name | Type | Description | Notes
136
138
  **enabled** | **BOOLEAN**| return flags having given enabled status | [optional]
137
139
  **description** | **String**| return flags exactly matching given description | [optional]
138
140
  **description_like** | **String**| return flags partially matching given description | [optional]
141
+ **key** | **String**| return flags matching given key | [optional]
139
142
  **offset** | **Integer**| return flags given the offset, it should usually set together with limit | [optional]
140
143
 
141
144
  ### Return type
@@ -197,6 +200,44 @@ No authorization required
197
200
 
198
201
 
199
202
 
203
+ # **get_flag_entity_types**
204
+ > Array<String> get_flag_entity_types
205
+
206
+
207
+
208
+ ### Example
209
+ ```ruby
210
+ # load the gem
211
+ require 'rbflagr'
212
+
213
+ api_instance = Flagr::FlagApi.new
214
+
215
+ begin
216
+ result = api_instance.get_flag_entity_types
217
+ p result
218
+ rescue Flagr::ApiError => e
219
+ puts "Exception when calling FlagApi->get_flag_entity_types: #{e}"
220
+ end
221
+ ```
222
+
223
+ ### Parameters
224
+ This endpoint does not need any parameter.
225
+
226
+ ### Return type
227
+
228
+ **Array<String>**
229
+
230
+ ### Authorization
231
+
232
+ No authorization required
233
+
234
+ ### HTTP request headers
235
+
236
+ - **Content-Type**: application/json
237
+ - **Accept**: application/json
238
+
239
+
240
+
200
241
  # **get_flag_snapshots**
201
242
  > Array<FlagSnapshot> get_flag_snapshots(flag_id)
202
243
 
@@ -4,14 +4,16 @@ All URIs are relative to *http://localhost/api/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**health_get**](HealthApi.md#health_get) | **GET** /health |
7
+ [**get_health**](HealthApi.md#get_health) | **GET** /health |
8
8
 
9
9
 
10
- # **health_get**
11
- > health_get
10
+ # **get_health**
11
+ > get_health
12
12
 
13
13
 
14
14
 
15
+ Check if Flagr is healthy
16
+
15
17
  ### Example
16
18
  ```ruby
17
19
  # load the gem
@@ -20,9 +22,9 @@ require 'rbflagr'
20
22
  api_instance = Flagr::HealthApi.new
21
23
 
22
24
  begin
23
- api_instance.health_get
25
+ api_instance.get_health
24
26
  rescue Flagr::ApiError => e
25
- puts "Exception when calling HealthApi->health_get: #{e}"
27
+ puts "Exception when calling HealthApi->get_health: #{e}"
26
28
  end
27
29
  ```
28
30
 
@@ -3,7 +3,10 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **description** | **String** | |
6
+ **description** | **String** | | [optional]
7
7
  **data_records_enabled** | **BOOLEAN** | enabled data records will get data logging in the metrics pipeline, for example, kafka. | [optional]
8
+ **entity_type** | **String** | it will overwrite entityType into evaluation logs if it's not empty | [optional]
9
+ **enabled** | **BOOLEAN** | | [optional]
10
+ **key** | **String** | | [optional]
8
11
 
9
12
 
@@ -4,6 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **key** | **String** | |
7
- **attachment** | **Object** | |
7
+ **attachment** | **Object** | | [optional]
8
8
 
9
9
 
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.0.13
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.0-SNAPSHOT
@@ -46,6 +46,7 @@ require 'rbflagr/models/variant'
46
46
  require 'rbflagr/api/constraint_api'
47
47
  require 'rbflagr/api/distribution_api'
48
48
  require 'rbflagr/api/evaluation_api'
49
+ require 'rbflagr/api/export_api'
49
50
  require 'rbflagr/api/flag_api'
50
51
  require 'rbflagr/api/health_api'
51
52
  require 'rbflagr/api/segment_api'
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.0.13
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.0-SNAPSHOT
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.0.13
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.0-SNAPSHOT
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.0.13
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.0-SNAPSHOT
@@ -0,0 +1,69 @@
1
+ =begin
2
+ #Flagr
3
+
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
+
6
+ OpenAPI spec version: 1.0.13
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module Flagr
16
+ class ExportApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Export sqlite3 format of the db dump, which is converted from the main database.
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [File]
25
+ def get_export_sq_lite(opts = {})
26
+ data, _status_code, _headers = get_export_sq_lite_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Export sqlite3 format of the db dump, which is converted from the main database.
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
33
+ def get_export_sq_lite_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: ExportApi.get_export_sq_lite ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/export/sqlite'
39
+
40
+ # query parameters
41
+ query_params = {}
42
+
43
+ # header parameters
44
+ header_params = {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
47
+ # HTTP header 'Content-Type'
48
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
49
+
50
+ # form parameters
51
+ form_params = {}
52
+
53
+ # http body (model)
54
+ post_body = nil
55
+ auth_names = []
56
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
57
+ :header_params => header_params,
58
+ :query_params => query_params,
59
+ :form_params => form_params,
60
+ :body => post_body,
61
+ :auth_names => auth_names,
62
+ :return_type => 'File')
63
+ if @api_client.config.debugging
64
+ @api_client.config.logger.debug "API called: ExportApi#get_export_sq_lite\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
65
+ end
66
+ return data, status_code, headers
67
+ end
68
+ end
69
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Flagr
3
3
 
4
- #Flagr is a feature flagging, A/B testing and dynamic configuration microservice
4
+ #Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
5
5
 
6
- OpenAPI spec version: 1.0.8
6
+ OpenAPI spec version: 1.0.13
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.0-SNAPSHOT
@@ -127,6 +127,7 @@ module Flagr
127
127
  # @option opts [BOOLEAN] :enabled return flags having given enabled status
128
128
  # @option opts [String] :description return flags exactly matching given description
129
129
  # @option opts [String] :description_like return flags partially matching given description
130
+ # @option opts [String] :key return flags matching given key
130
131
  # @option opts [Integer] :offset return flags given the offset, it should usually set together with limit
131
132
  # @return [Array<Flag>]
132
133
  def find_flags(opts = {})
@@ -139,6 +140,7 @@ module Flagr
139
140
  # @option opts [BOOLEAN] :enabled return flags having given enabled status
140
141
  # @option opts [String] :description return flags exactly matching given description
141
142
  # @option opts [String] :description_like return flags partially matching given description
143
+ # @option opts [String] :key return flags matching given key
142
144
  # @option opts [Integer] :offset return flags given the offset, it should usually set together with limit
143
145
  # @return [Array<(Array<Flag>, Fixnum, Hash)>] Array<Flag> data, response status code and response headers
144
146
  def find_flags_with_http_info(opts = {})
@@ -154,6 +156,7 @@ module Flagr
154
156
  query_params[:'enabled'] = opts[:'enabled'] if !opts[:'enabled'].nil?
155
157
  query_params[:'description'] = opts[:'description'] if !opts[:'description'].nil?
156
158
  query_params[:'description_like'] = opts[:'description_like'] if !opts[:'description_like'].nil?
159
+ query_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?
157
160
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
158
161
 
159
162
  # header parameters
@@ -235,6 +238,50 @@ module Flagr
235
238
  end
236
239
  return data, status_code, headers
237
240
  end
241
+ # @param [Hash] opts the optional parameters
242
+ # @return [Array<String>]
243
+ def get_flag_entity_types(opts = {})
244
+ data, _status_code, _headers = get_flag_entity_types_with_http_info(opts)
245
+ data
246
+ end
247
+
248
+ # @param [Hash] opts the optional parameters
249
+ # @return [Array<(Array<String>, Fixnum, Hash)>] Array<String> data, response status code and response headers
250
+ def get_flag_entity_types_with_http_info(opts = {})
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug 'Calling API: FlagApi.get_flag_entity_types ...'
253
+ end
254
+ # resource path
255
+ local_var_path = '/flags/entity_types'
256
+
257
+ # query parameters
258
+ query_params = {}
259
+
260
+ # header parameters
261
+ header_params = {}
262
+ # HTTP header 'Accept' (if needed)
263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
+ # HTTP header 'Content-Type'
265
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
266
+
267
+ # form parameters
268
+ form_params = {}
269
+
270
+ # http body (model)
271
+ post_body = nil
272
+ auth_names = []
273
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
274
+ :header_params => header_params,
275
+ :query_params => query_params,
276
+ :form_params => form_params,
277
+ :body => post_body,
278
+ :auth_names => auth_names,
279
+ :return_type => 'Array<String>')
280
+ if @api_client.config.debugging
281
+ @api_client.config.logger.debug "API called: FlagApi#get_flag_entity_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
282
+ end
283
+ return data, status_code, headers
284
+ end
238
285
  # @param flag_id numeric ID of the flag to get
239
286
  # @param [Hash] opts the optional parameters
240
287
  # @return [Array<FlagSnapshot>]