rbflagr 1.1.0 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -1
- data/README.md +14 -6
- data/docs/CreateFlagRequest.md +1 -0
- data/docs/CreateTagRequest.md +8 -0
- data/docs/EvalContext.md +1 -0
- data/docs/EvaluationBatchRequest.md +2 -1
- data/docs/ExportApi.md +54 -6
- data/docs/Flag.md +2 -0
- data/docs/FlagApi.md +2 -0
- data/docs/Health.md +8 -0
- data/docs/HealthApi.md +4 -3
- data/docs/PutFlagRequest.md +1 -0
- data/docs/Tag.md +9 -0
- data/docs/TagApi.md +198 -0
- data/lib/rbflagr.rb +6 -2
- data/lib/rbflagr/api/constraint_api.rb +2 -2
- data/lib/rbflagr/api/distribution_api.rb +2 -2
- data/lib/rbflagr/api/evaluation_api.rb +2 -2
- data/lib/rbflagr/api/export_api.rb +56 -7
- data/lib/rbflagr/api/flag_api.rb +5 -2
- data/lib/rbflagr/api/health_api.rb +8 -7
- data/lib/rbflagr/api/segment_api.rb +2 -2
- data/lib/rbflagr/api/tag_api.rb +253 -0
- data/lib/rbflagr/api/variant_api.rb +2 -2
- data/lib/rbflagr/api_client.rb +4 -2
- data/lib/rbflagr/api_error.rb +2 -2
- data/lib/rbflagr/configuration.rb +2 -2
- data/lib/rbflagr/models/constraint.rb +4 -3
- data/lib/rbflagr/models/create_constraint_request.rb +4 -3
- data/lib/rbflagr/models/create_flag_request.rb +18 -7
- data/lib/rbflagr/models/create_segment_request.rb +4 -3
- data/lib/rbflagr/models/create_tag_request.rb +208 -0
- data/lib/rbflagr/models/create_variant_request.rb +4 -3
- data/lib/rbflagr/models/distribution.rb +4 -3
- data/lib/rbflagr/models/error.rb +4 -3
- data/lib/rbflagr/models/eval_context.rb +20 -7
- data/lib/rbflagr/models/eval_debug_log.rb +4 -3
- data/lib/rbflagr/models/eval_result.rb +4 -3
- data/lib/rbflagr/models/evaluation_batch_request.rb +21 -8
- data/lib/rbflagr/models/evaluation_batch_response.rb +4 -3
- data/lib/rbflagr/models/evaluation_entity.rb +4 -3
- data/lib/rbflagr/models/flag.rb +26 -4
- data/lib/rbflagr/models/flag_snapshot.rb +4 -3
- data/lib/rbflagr/models/health.rb +184 -0
- data/lib/rbflagr/models/put_distributions_request.rb +4 -3
- data/lib/rbflagr/models/put_flag_request.rb +17 -7
- data/lib/rbflagr/models/put_segment_reorder_request.rb +4 -3
- data/lib/rbflagr/models/put_segment_request.rb +4 -3
- data/lib/rbflagr/models/put_variant_request.rb +4 -3
- data/lib/rbflagr/models/segment.rb +4 -3
- data/lib/rbflagr/models/segment_debug_log.rb +4 -3
- data/lib/rbflagr/models/set_flag_enabled_request.rb +4 -3
- data/lib/rbflagr/models/tag.rb +232 -0
- data/lib/rbflagr/models/variant.rb +4 -3
- data/lib/rbflagr/version.rb +3 -3
- data/rbflagr.gemspec +2 -2
- data/spec/api/tag_api_spec.rb +79 -0
- data/spec/models/create_tag_request_spec.rb +41 -0
- data/spec/models/health_spec.rb +41 -0
- data/spec/models/tag_spec.rb +47 -0
- data/swagger.yaml +201 -5
- data/swagger_ruby.json +1 -1
- metadata +28 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1d70d24ed0ee321f0b7dd00459f440ab2428357d0e2c25182e9e7c57b3610bbf
|
4
|
+
data.tar.gz: 340441a4b90a00fc1288a48fa9b7da623108342a7dbc02948ca142d960f67c34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35cac01f3ea668f933d2022ddcf244df9a5733deb4093c894df83805f1dce3965804bbecd35ebe4436ba5302aacbdb4eb0201b434553fd8c93bfaf2ac5f185a6
|
7
|
+
data.tar.gz: 960ea91ef6cc34121ce6646ddcc12fc7df5814fdb3fb064950b372c9109d5b3f2ed6cc8405d9a4df529dce136c248ceedcdf8564929766be1d6e66dc38fe271c
|
data/Gemfile
CHANGED
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.
|
10
|
-
- Package version: 1.1.
|
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.
|
26
|
+
gem install ./rbflagr-1.1.10.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./rbflagr-1.1.
|
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.
|
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* | [**
|
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
|
|
data/docs/CreateFlagRequest.md
CHANGED
@@ -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
|
|
data/docs/EvalContext.md
CHANGED
@@ -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
|
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
|
|
data/docs/ExportApi.md
CHANGED
@@ -4,15 +4,16 @@ All URIs are relative to *http://localhost/api/v1*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
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
|
-
# **
|
11
|
-
>
|
11
|
+
# **get_export_eval_cache_json**
|
12
|
+
> Object get_export_eval_cache_json
|
12
13
|
|
13
14
|
|
14
15
|
|
15
|
-
Export
|
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.
|
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->
|
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
|
data/docs/Flag.md
CHANGED
@@ -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]
|
data/docs/FlagApi.md
CHANGED
@@ -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]
|
data/docs/Health.md
ADDED
data/docs/HealthApi.md
CHANGED
@@ -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
|
-
|
37
|
+
[**Health**](Health.md)
|
37
38
|
|
38
39
|
### Authorization
|
39
40
|
|
data/docs/PutFlagRequest.md
CHANGED
@@ -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
|
|
data/docs/Tag.md
ADDED
data/docs/TagApi.md
ADDED
@@ -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
|
+
|