rbflagr 1.1.0 → 1.1.10

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.
Files changed (64) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +1 -1
  3. data/README.md +14 -6
  4. data/docs/CreateFlagRequest.md +1 -0
  5. data/docs/CreateTagRequest.md +8 -0
  6. data/docs/EvalContext.md +1 -0
  7. data/docs/EvaluationBatchRequest.md +2 -1
  8. data/docs/ExportApi.md +54 -6
  9. data/docs/Flag.md +2 -0
  10. data/docs/FlagApi.md +2 -0
  11. data/docs/Health.md +8 -0
  12. data/docs/HealthApi.md +4 -3
  13. data/docs/PutFlagRequest.md +1 -0
  14. data/docs/Tag.md +9 -0
  15. data/docs/TagApi.md +198 -0
  16. data/lib/rbflagr.rb +6 -2
  17. data/lib/rbflagr/api/constraint_api.rb +2 -2
  18. data/lib/rbflagr/api/distribution_api.rb +2 -2
  19. data/lib/rbflagr/api/evaluation_api.rb +2 -2
  20. data/lib/rbflagr/api/export_api.rb +56 -7
  21. data/lib/rbflagr/api/flag_api.rb +5 -2
  22. data/lib/rbflagr/api/health_api.rb +8 -7
  23. data/lib/rbflagr/api/segment_api.rb +2 -2
  24. data/lib/rbflagr/api/tag_api.rb +253 -0
  25. data/lib/rbflagr/api/variant_api.rb +2 -2
  26. data/lib/rbflagr/api_client.rb +4 -2
  27. data/lib/rbflagr/api_error.rb +2 -2
  28. data/lib/rbflagr/configuration.rb +2 -2
  29. data/lib/rbflagr/models/constraint.rb +4 -3
  30. data/lib/rbflagr/models/create_constraint_request.rb +4 -3
  31. data/lib/rbflagr/models/create_flag_request.rb +18 -7
  32. data/lib/rbflagr/models/create_segment_request.rb +4 -3
  33. data/lib/rbflagr/models/create_tag_request.rb +208 -0
  34. data/lib/rbflagr/models/create_variant_request.rb +4 -3
  35. data/lib/rbflagr/models/distribution.rb +4 -3
  36. data/lib/rbflagr/models/error.rb +4 -3
  37. data/lib/rbflagr/models/eval_context.rb +20 -7
  38. data/lib/rbflagr/models/eval_debug_log.rb +4 -3
  39. data/lib/rbflagr/models/eval_result.rb +4 -3
  40. data/lib/rbflagr/models/evaluation_batch_request.rb +21 -8
  41. data/lib/rbflagr/models/evaluation_batch_response.rb +4 -3
  42. data/lib/rbflagr/models/evaluation_entity.rb +4 -3
  43. data/lib/rbflagr/models/flag.rb +26 -4
  44. data/lib/rbflagr/models/flag_snapshot.rb +4 -3
  45. data/lib/rbflagr/models/health.rb +184 -0
  46. data/lib/rbflagr/models/put_distributions_request.rb +4 -3
  47. data/lib/rbflagr/models/put_flag_request.rb +17 -7
  48. data/lib/rbflagr/models/put_segment_reorder_request.rb +4 -3
  49. data/lib/rbflagr/models/put_segment_request.rb +4 -3
  50. data/lib/rbflagr/models/put_variant_request.rb +4 -3
  51. data/lib/rbflagr/models/segment.rb +4 -3
  52. data/lib/rbflagr/models/segment_debug_log.rb +4 -3
  53. data/lib/rbflagr/models/set_flag_enabled_request.rb +4 -3
  54. data/lib/rbflagr/models/tag.rb +232 -0
  55. data/lib/rbflagr/models/variant.rb +4 -3
  56. data/lib/rbflagr/version.rb +3 -3
  57. data/rbflagr.gemspec +2 -2
  58. data/spec/api/tag_api_spec.rb +79 -0
  59. data/spec/models/create_tag_request_spec.rb +41 -0
  60. data/spec/models/health_spec.rb +41 -0
  61. data/spec/models/tag_spec.rb +47 -0
  62. data/swagger.yaml +201 -5
  63. data/swagger_ruby.json +1 -1
  64. metadata +28 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f318bd8d828121492002a8777982a3c2afae9e37
4
- data.tar.gz: 0a0963c8a47f0d535c214aa392033a177bc95113
2
+ SHA256:
3
+ metadata.gz: 1d70d24ed0ee321f0b7dd00459f440ab2428357d0e2c25182e9e7c57b3610bbf
4
+ data.tar.gz: 340441a4b90a00fc1288a48fa9b7da623108342a7dbc02948ca142d960f67c34
5
5
  SHA512:
6
- metadata.gz: db2a9b57764ac362d1337d5fa2fa98fb9fcdb58a513f99053a9dda599c58073f48885b26c375d23083b20b8fab17bc4fbb6a112469348dca471c4ffa0159c6db
7
- data.tar.gz: b23fd22a2687fa1944a9ea636a6405dcf1ce14c50a88d70a0dd78df56eee6f0e41ec1f52505b83d59c9970b8421e406350184b5867f9bcf00ca590039bbd0472
6
+ metadata.gz: 35cac01f3ea668f933d2022ddcf244df9a5733deb4093c894df83805f1dce3965804bbecd35ebe4436ba5302aacbdb4eb0201b434553fd8c93bfaf2ac5f185a6
7
+ data.tar.gz: 960ea91ef6cc34121ce6646ddcc12fc7df5814fdb3fb064950b372c9109d5b3f2ed6cc8405d9a4df529dce136c248ceedcdf8564929766be1d6e66dc38fe271c
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 12.3.3'
7
7
  end
data/README.md CHANGED
@@ -6,8 +6,8 @@ Flagr is a feature flagging, A/B testing and dynamic configuration microservice.
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.1.0
10
- - Package version: 1.1.0
9
+ - API version: 1.1.10
10
+ - Package version: 1.1.10
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-1.1.0.gem
26
+ gem install ./rbflagr-1.1.10.gem
27
27
  ```
28
- (for development, run `gem install --dev ./rbflagr-1.1.0.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./rbflagr-1.1.10.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', '~> 1.1.0'
34
+ gem 'rbflagr', '~> 1.1.10'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -86,7 +86,8 @@ 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
+ *Flagr::ExportApi* | [**get_export_eval_cache_json**](docs/ExportApi.md#get_export_eval_cache_json) | **GET** /export/eval_cache/json |
90
+ *Flagr::ExportApi* | [**get_export_sqlite**](docs/ExportApi.md#get_export_sqlite) | **GET** /export/sqlite |
90
91
  *Flagr::FlagApi* | [**create_flag**](docs/FlagApi.md#create_flag) | **POST** /flags |
91
92
  *Flagr::FlagApi* | [**delete_flag**](docs/FlagApi.md#delete_flag) | **DELETE** /flags/{flagID} |
92
93
  *Flagr::FlagApi* | [**find_flags**](docs/FlagApi.md#find_flags) | **GET** /flags |
@@ -101,6 +102,10 @@ Class | Method | HTTP request | Description
101
102
  *Flagr::SegmentApi* | [**find_segments**](docs/SegmentApi.md#find_segments) | **GET** /flags/{flagID}/segments |
102
103
  *Flagr::SegmentApi* | [**put_segment**](docs/SegmentApi.md#put_segment) | **PUT** /flags/{flagID}/segments/{segmentID} |
103
104
  *Flagr::SegmentApi* | [**put_segments_reorder**](docs/SegmentApi.md#put_segments_reorder) | **PUT** /flags/{flagID}/segments/reorder |
105
+ *Flagr::TagApi* | [**create_tag**](docs/TagApi.md#create_tag) | **POST** /flags/{flagID}/tags |
106
+ *Flagr::TagApi* | [**delete_tag**](docs/TagApi.md#delete_tag) | **DELETE** /flags/{flagID}/tags/{tagID} |
107
+ *Flagr::TagApi* | [**find_all_tags**](docs/TagApi.md#find_all_tags) | **GET** /tags |
108
+ *Flagr::TagApi* | [**find_tags**](docs/TagApi.md#find_tags) | **GET** /flags/{flagID}/tags |
104
109
  *Flagr::VariantApi* | [**create_variant**](docs/VariantApi.md#create_variant) | **POST** /flags/{flagID}/variants |
105
110
  *Flagr::VariantApi* | [**delete_variant**](docs/VariantApi.md#delete_variant) | **DELETE** /flags/{flagID}/variants/{variantID} |
106
111
  *Flagr::VariantApi* | [**find_variants**](docs/VariantApi.md#find_variants) | **GET** /flags/{flagID}/variants |
@@ -113,6 +118,7 @@ Class | Method | HTTP request | Description
113
118
  - [Flagr::CreateConstraintRequest](docs/CreateConstraintRequest.md)
114
119
  - [Flagr::CreateFlagRequest](docs/CreateFlagRequest.md)
115
120
  - [Flagr::CreateSegmentRequest](docs/CreateSegmentRequest.md)
121
+ - [Flagr::CreateTagRequest](docs/CreateTagRequest.md)
116
122
  - [Flagr::CreateVariantRequest](docs/CreateVariantRequest.md)
117
123
  - [Flagr::Distribution](docs/Distribution.md)
118
124
  - [Flagr::Error](docs/Error.md)
@@ -124,6 +130,7 @@ Class | Method | HTTP request | Description
124
130
  - [Flagr::EvaluationEntity](docs/EvaluationEntity.md)
125
131
  - [Flagr::Flag](docs/Flag.md)
126
132
  - [Flagr::FlagSnapshot](docs/FlagSnapshot.md)
133
+ - [Flagr::Health](docs/Health.md)
127
134
  - [Flagr::PutDistributionsRequest](docs/PutDistributionsRequest.md)
128
135
  - [Flagr::PutFlagRequest](docs/PutFlagRequest.md)
129
136
  - [Flagr::PutSegmentReorderRequest](docs/PutSegmentReorderRequest.md)
@@ -132,6 +139,7 @@ Class | Method | HTTP request | Description
132
139
  - [Flagr::Segment](docs/Segment.md)
133
140
  - [Flagr::SegmentDebugLog](docs/SegmentDebugLog.md)
134
141
  - [Flagr::SetFlagEnabledRequest](docs/SetFlagEnabledRequest.md)
142
+ - [Flagr::Tag](docs/Tag.md)
135
143
  - [Flagr::Variant](docs/Variant.md)
136
144
 
137
145
 
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **description** | **String** | |
7
7
  **key** | **String** | unique key representation of the flag | [optional]
8
+ **template** | **String** | template for flag creation | [optional]
8
9
 
9
10
 
@@ -0,0 +1,8 @@
1
+ # Flagr::CreateTagRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **value** | **String** | |
7
+
8
+
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
9
9
  **enable_debug** | **BOOLEAN** | | [optional]
10
10
  **flag_id** | **Integer** | flagID | [optional]
11
11
  **flag_key** | **String** | flagKey. flagID or flagKey will resolve to the same flag. Either works. | [optional]
12
+ **flag_tags** | **Array<String>** | flagTags. flagTags looks up flags by tag. Either works. | [optional]
12
13
 
13
14
 
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **entities** | [**Array<EvaluationEntity>**](EvaluationEntity.md) | |
7
7
  **enable_debug** | **BOOLEAN** | | [optional]
8
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
+ **flag_keys** | **Array<String>** | flagKeys. Either flagIDs, flagKeys or flagTags works. If pass in multiples, Flagr may return duplicate results. | [optional]
10
+ **flag_tags** | **Array<String>** | flagTags. Either flagIDs, flagKeys or flagTags works. If pass in multiples, Flagr may return duplicate results. | [optional]
10
11
 
11
12
 
@@ -4,15 +4,16 @@ All URIs are relative to *http://localhost/api/v1*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**get_export_sq_lite**](ExportApi.md#get_export_sq_lite) | **GET** /export/sqlite |
7
+ [**get_export_eval_cache_json**](ExportApi.md#get_export_eval_cache_json) | **GET** /export/eval_cache/json |
8
+ [**get_export_sqlite**](ExportApi.md#get_export_sqlite) | **GET** /export/sqlite |
8
9
 
9
10
 
10
- # **get_export_sq_lite**
11
- > File get_export_sq_lite
11
+ # **get_export_eval_cache_json**
12
+ > Object get_export_eval_cache_json
12
13
 
13
14
 
14
15
 
15
- Export sqlite3 format of the db dump, which is converted from the main database.
16
+ Export JSON format of the eval cache dump
16
17
 
17
18
  ### Example
18
19
  ```ruby
@@ -22,10 +23,10 @@ require 'rbflagr'
22
23
  api_instance = Flagr::ExportApi.new
23
24
 
24
25
  begin
25
- result = api_instance.get_export_sq_lite
26
+ result = api_instance.get_export_eval_cache_json
26
27
  p result
27
28
  rescue Flagr::ApiError => e
28
- puts "Exception when calling ExportApi->get_export_sq_lite: #{e}"
29
+ puts "Exception when calling ExportApi->get_export_eval_cache_json: #{e}"
29
30
  end
30
31
  ```
31
32
 
@@ -34,6 +35,53 @@ This endpoint does not need any parameter.
34
35
 
35
36
  ### Return type
36
37
 
38
+ **Object**
39
+
40
+ ### Authorization
41
+
42
+ No authorization required
43
+
44
+ ### HTTP request headers
45
+
46
+ - **Content-Type**: application/json
47
+ - **Accept**: application/json
48
+
49
+
50
+
51
+ # **get_export_sqlite**
52
+ > File get_export_sqlite(opts)
53
+
54
+
55
+
56
+ Export sqlite3 format of the db dump, which is converted from the main database.
57
+
58
+ ### Example
59
+ ```ruby
60
+ # load the gem
61
+ require 'rbflagr'
62
+
63
+ api_instance = Flagr::ExportApi.new
64
+
65
+ opts = {
66
+ exclude_snapshots: true # BOOLEAN | export without snapshots data - useful for smaller db without snapshots
67
+ }
68
+
69
+ begin
70
+ result = api_instance.get_export_sqlite(opts)
71
+ p result
72
+ rescue Flagr::ApiError => e
73
+ puts "Exception when calling ExportApi->get_export_sqlite: #{e}"
74
+ end
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+ Name | Type | Description | Notes
80
+ ------------- | ------------- | ------------- | -------------
81
+ **exclude_snapshots** | **BOOLEAN**| export without snapshots data - useful for smaller db without snapshots | [optional]
82
+
83
+ ### Return type
84
+
37
85
  **File**
38
86
 
39
87
  ### Authorization
@@ -7,10 +7,12 @@ Name | Type | Description | Notes
7
7
  **key** | **String** | unique key representation of the flag | [optional]
8
8
  **description** | **String** | |
9
9
  **enabled** | **BOOLEAN** | |
10
+ **tags** | [**Array<Tag>**](Tag.md) | | [optional]
10
11
  **segments** | [**Array<Segment>**](Segment.md) | | [optional]
11
12
  **variants** | [**Array<Variant>**](Variant.md) | | [optional]
12
13
  **data_records_enabled** | **BOOLEAN** | enabled data records will get data logging in the metrics pipeline, for example, kafka. |
13
14
  **entity_type** | **String** | it will override the entityType in the evaluation logs if it's not empty | [optional]
15
+ **notes** | **String** | flag usage details in markdown format | [optional]
14
16
  **created_by** | **String** | | [optional]
15
17
  **updated_by** | **String** | | [optional]
16
18
  **updated_at** | **DateTime** | | [optional]
@@ -117,6 +117,7 @@ opts = {
117
117
  limit: 789, # Integer | the numbers of flags to return
118
118
  enabled: true, # BOOLEAN | return flags having given enabled status
119
119
  description: 'description_example', # String | return flags exactly matching given description
120
+ tags: 'tags_example', # String | return flags with the given tags (comma separated)
120
121
  description_like: 'description_like_example', # String | return flags partially matching given description
121
122
  key: 'key_example', # String | return flags matching given key
122
123
  offset: 789, # Integer | return flags given the offset, it should usually set together with limit
@@ -138,6 +139,7 @@ Name | Type | Description | Notes
138
139
  **limit** | **Integer**| the numbers of flags to return | [optional]
139
140
  **enabled** | **BOOLEAN**| return flags having given enabled status | [optional]
140
141
  **description** | **String**| return flags exactly matching given description | [optional]
142
+ **tags** | **String**| return flags with the given tags (comma separated) | [optional]
141
143
  **description_like** | **String**| return flags partially matching given description | [optional]
142
144
  **key** | **String**| return flags matching given key | [optional]
143
145
  **offset** | **Integer**| return flags given the offset, it should usually set together with limit | [optional]
@@ -0,0 +1,8 @@
1
+ # Flagr::Health
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | | [optional]
7
+
8
+
@@ -8,7 +8,7 @@ Method | HTTP request | Description
8
8
 
9
9
 
10
10
  # **get_health**
11
- > get_health
11
+ > Health get_health
12
12
 
13
13
 
14
14
 
@@ -22,7 +22,8 @@ require 'rbflagr'
22
22
  api_instance = Flagr::HealthApi.new
23
23
 
24
24
  begin
25
- api_instance.get_health
25
+ result = api_instance.get_health
26
+ p result
26
27
  rescue Flagr::ApiError => e
27
28
  puts "Exception when calling HealthApi->get_health: #{e}"
28
29
  end
@@ -33,7 +34,7 @@ This endpoint does not need any parameter.
33
34
 
34
35
  ### Return type
35
36
 
36
- nil (empty response body)
37
+ [**Health**](Health.md)
37
38
 
38
39
  ### Authorization
39
40
 
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
8
8
  **entity_type** | **String** | it will overwrite entityType into evaluation logs if it's not empty | [optional]
9
9
  **enabled** | **BOOLEAN** | | [optional]
10
10
  **key** | **String** | | [optional]
11
+ **notes** | **String** | | [optional]
11
12
 
12
13
 
@@ -0,0 +1,9 @@
1
+ # Flagr::Tag
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | | [optional]
7
+ **value** | **String** | |
8
+
9
+
@@ -0,0 +1,198 @@
1
+ # Flagr::TagApi
2
+
3
+ All URIs are relative to *http://localhost/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_tag**](TagApi.md#create_tag) | **POST** /flags/{flagID}/tags |
8
+ [**delete_tag**](TagApi.md#delete_tag) | **DELETE** /flags/{flagID}/tags/{tagID} |
9
+ [**find_all_tags**](TagApi.md#find_all_tags) | **GET** /tags |
10
+ [**find_tags**](TagApi.md#find_tags) | **GET** /flags/{flagID}/tags |
11
+
12
+
13
+ # **create_tag**
14
+ > Tag create_tag(flag_id, body)
15
+
16
+
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'rbflagr'
22
+
23
+ api_instance = Flagr::TagApi.new
24
+
25
+ flag_id = 789 # Integer | numeric ID of the flag
26
+
27
+ body = Flagr::CreateTagRequest.new # CreateTagRequest | create a tag
28
+
29
+
30
+ begin
31
+ result = api_instance.create_tag(flag_id, body)
32
+ p result
33
+ rescue Flagr::ApiError => e
34
+ puts "Exception when calling TagApi->create_tag: #{e}"
35
+ end
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ Name | Type | Description | Notes
41
+ ------------- | ------------- | ------------- | -------------
42
+ **flag_id** | **Integer**| numeric ID of the flag |
43
+ **body** | [**CreateTagRequest**](CreateTagRequest.md)| create a tag |
44
+
45
+ ### Return type
46
+
47
+ [**Tag**](Tag.md)
48
+
49
+ ### Authorization
50
+
51
+ No authorization required
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: application/json
56
+ - **Accept**: application/json
57
+
58
+
59
+
60
+ # **delete_tag**
61
+ > delete_tag(flag_id, tag_id)
62
+
63
+
64
+
65
+ ### Example
66
+ ```ruby
67
+ # load the gem
68
+ require 'rbflagr'
69
+
70
+ api_instance = Flagr::TagApi.new
71
+
72
+ flag_id = 789 # Integer | numeric ID of the flag
73
+
74
+ tag_id = 789 # Integer | numeric ID of the tag
75
+
76
+
77
+ begin
78
+ api_instance.delete_tag(flag_id, tag_id)
79
+ rescue Flagr::ApiError => e
80
+ puts "Exception when calling TagApi->delete_tag: #{e}"
81
+ end
82
+ ```
83
+
84
+ ### Parameters
85
+
86
+ Name | Type | Description | Notes
87
+ ------------- | ------------- | ------------- | -------------
88
+ **flag_id** | **Integer**| numeric ID of the flag |
89
+ **tag_id** | **Integer**| numeric ID of the tag |
90
+
91
+ ### Return type
92
+
93
+ nil (empty response body)
94
+
95
+ ### Authorization
96
+
97
+ No authorization required
98
+
99
+ ### HTTP request headers
100
+
101
+ - **Content-Type**: application/json
102
+ - **Accept**: application/json
103
+
104
+
105
+
106
+ # **find_all_tags**
107
+ > Array<Tag> find_all_tags(opts)
108
+
109
+
110
+
111
+ ### Example
112
+ ```ruby
113
+ # load the gem
114
+ require 'rbflagr'
115
+
116
+ api_instance = Flagr::TagApi.new
117
+
118
+ opts = {
119
+ limit: 789, # Integer | the numbers of tags to return
120
+ offset: 789, # Integer | return tags given the offset, it should usually set together with limit
121
+ value_like: 'value_like_example' # String | return tags partially matching given value
122
+ }
123
+
124
+ begin
125
+ result = api_instance.find_all_tags(opts)
126
+ p result
127
+ rescue Flagr::ApiError => e
128
+ puts "Exception when calling TagApi->find_all_tags: #{e}"
129
+ end
130
+ ```
131
+
132
+ ### Parameters
133
+
134
+ Name | Type | Description | Notes
135
+ ------------- | ------------- | ------------- | -------------
136
+ **limit** | **Integer**| the numbers of tags to return | [optional]
137
+ **offset** | **Integer**| return tags given the offset, it should usually set together with limit | [optional]
138
+ **value_like** | **String**| return tags partially matching given value | [optional]
139
+
140
+ ### Return type
141
+
142
+ [**Array<Tag>**](Tag.md)
143
+
144
+ ### Authorization
145
+
146
+ No authorization required
147
+
148
+ ### HTTP request headers
149
+
150
+ - **Content-Type**: application/json
151
+ - **Accept**: application/json
152
+
153
+
154
+
155
+ # **find_tags**
156
+ > Array<Tag> find_tags(flag_id)
157
+
158
+
159
+
160
+ ### Example
161
+ ```ruby
162
+ # load the gem
163
+ require 'rbflagr'
164
+
165
+ api_instance = Flagr::TagApi.new
166
+
167
+ flag_id = 789 # Integer | numeric ID of the flag
168
+
169
+
170
+ begin
171
+ result = api_instance.find_tags(flag_id)
172
+ p result
173
+ rescue Flagr::ApiError => e
174
+ puts "Exception when calling TagApi->find_tags: #{e}"
175
+ end
176
+ ```
177
+
178
+ ### Parameters
179
+
180
+ Name | Type | Description | Notes
181
+ ------------- | ------------- | ------------- | -------------
182
+ **flag_id** | **Integer**| numeric ID of the flag |
183
+
184
+ ### Return type
185
+
186
+ [**Array<Tag>**](Tag.md)
187
+
188
+ ### Authorization
189
+
190
+ No authorization required
191
+
192
+ ### HTTP request headers
193
+
194
+ - **Content-Type**: application/json
195
+ - **Accept**: application/json
196
+
197
+
198
+