rbflagr 0.2.0 → 1.1.0
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 +5 -5
- data/README.md +5 -5
- data/docs/EvalResult.md +8 -8
- data/docs/FlagApi.md +3 -1
- data/lib/rbflagr.rb +1 -1
- data/lib/rbflagr/api/constraint_api.rb +1 -1
- data/lib/rbflagr/api/distribution_api.rb +1 -1
- data/lib/rbflagr/api/evaluation_api.rb +1 -1
- data/lib/rbflagr/api/export_api.rb +1 -1
- data/lib/rbflagr/api/flag_api.rb +4 -1
- data/lib/rbflagr/api/health_api.rb +1 -1
- data/lib/rbflagr/api/segment_api.rb +1 -1
- data/lib/rbflagr/api/variant_api.rb +1 -1
- data/lib/rbflagr/api_client.rb +1 -1
- data/lib/rbflagr/api_error.rb +1 -1
- data/lib/rbflagr/configuration.rb +1 -1
- data/lib/rbflagr/models/constraint.rb +1 -1
- data/lib/rbflagr/models/create_constraint_request.rb +1 -1
- data/lib/rbflagr/models/create_flag_request.rb +1 -1
- data/lib/rbflagr/models/create_segment_request.rb +1 -1
- data/lib/rbflagr/models/create_variant_request.rb +1 -1
- data/lib/rbflagr/models/distribution.rb +1 -1
- data/lib/rbflagr/models/error.rb +1 -1
- data/lib/rbflagr/models/eval_context.rb +1 -1
- data/lib/rbflagr/models/eval_debug_log.rb +1 -1
- data/lib/rbflagr/models/eval_result.rb +1 -136
- data/lib/rbflagr/models/evaluation_batch_request.rb +1 -1
- data/lib/rbflagr/models/evaluation_batch_response.rb +1 -1
- data/lib/rbflagr/models/evaluation_entity.rb +1 -1
- data/lib/rbflagr/models/flag.rb +1 -1
- data/lib/rbflagr/models/flag_snapshot.rb +1 -1
- data/lib/rbflagr/models/put_distributions_request.rb +1 -1
- data/lib/rbflagr/models/put_flag_request.rb +1 -1
- data/lib/rbflagr/models/put_segment_reorder_request.rb +1 -1
- data/lib/rbflagr/models/put_segment_request.rb +1 -1
- data/lib/rbflagr/models/put_variant_request.rb +1 -1
- data/lib/rbflagr/models/segment.rb +1 -1
- data/lib/rbflagr/models/segment_debug_log.rb +1 -1
- data/lib/rbflagr/models/set_flag_enabled_request.rb +1 -1
- data/lib/rbflagr/models/variant.rb +1 -1
- data/lib/rbflagr/version.rb +2 -2
- data/rbflagr.gemspec +1 -1
- data/swagger.yaml +6 -16
- data/swagger_ruby.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f318bd8d828121492002a8777982a3c2afae9e37
|
4
|
+
data.tar.gz: 0a0963c8a47f0d535c214aa392033a177bc95113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db2a9b57764ac362d1337d5fa2fa98fb9fcdb58a513f99053a9dda599c58073f48885b26c375d23083b20b8fab17bc4fbb6a112469348dca471c4ffa0159c6db
|
7
|
+
data.tar.gz: b23fd22a2687fa1944a9ea636a6405dcf1ce14c50a88d70a0dd78df56eee6f0e41ec1f52505b83d59c9970b8421e406350184b5867f9bcf00ca590039bbd0472
|
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.0
|
10
|
-
- Package version:
|
9
|
+
- API version: 1.1.0
|
10
|
+
- Package version: 1.1.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-
|
26
|
+
gem install ./rbflagr-1.1.0.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./rbflagr-
|
28
|
+
(for development, run `gem install --dev ./rbflagr-1.1.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', '~>
|
34
|
+
gem 'rbflagr', '~> 1.1.0'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
data/docs/EvalResult.md
CHANGED
@@ -3,15 +3,15 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**flag_id** | **Integer** | |
|
7
|
-
**flag_key** | **String** | |
|
6
|
+
**flag_id** | **Integer** | | [optional]
|
7
|
+
**flag_key** | **String** | | [optional]
|
8
8
|
**flag_snapshot_id** | **Integer** | | [optional]
|
9
|
-
**segment_id** | **Integer** | |
|
10
|
-
**variant_id** | **Integer** | |
|
11
|
-
**variant_key** | **String** | |
|
12
|
-
**variant_attachment** | **Object** | |
|
13
|
-
**eval_context** | [**EvalContext**](EvalContext.md) | |
|
14
|
-
**timestamp** | **String** | |
|
9
|
+
**segment_id** | **Integer** | | [optional]
|
10
|
+
**variant_id** | **Integer** | | [optional]
|
11
|
+
**variant_key** | **String** | | [optional]
|
12
|
+
**variant_attachment** | **Object** | | [optional]
|
13
|
+
**eval_context** | [**EvalContext**](EvalContext.md) | | [optional]
|
14
|
+
**timestamp** | **String** | | [optional]
|
15
15
|
**eval_debug_log** | [**EvalDebugLog**](EvalDebugLog.md) | | [optional]
|
16
16
|
|
17
17
|
|
data/docs/FlagApi.md
CHANGED
@@ -119,7 +119,8 @@ opts = {
|
|
119
119
|
description: 'description_example', # String | return flags exactly matching given description
|
120
120
|
description_like: 'description_like_example', # String | return flags partially matching given description
|
121
121
|
key: 'key_example', # String | return flags matching given key
|
122
|
-
offset: 789 # Integer | return flags given the offset, it should usually set together with limit
|
122
|
+
offset: 789, # Integer | return flags given the offset, it should usually set together with limit
|
123
|
+
preload: true # BOOLEAN | return flags with preloaded segments and variants
|
123
124
|
}
|
124
125
|
|
125
126
|
begin
|
@@ -140,6 +141,7 @@ Name | Type | Description | Notes
|
|
140
141
|
**description_like** | **String**| return flags partially matching given description | [optional]
|
141
142
|
**key** | **String**| return flags matching given key | [optional]
|
142
143
|
**offset** | **Integer**| return flags given the offset, it should usually set together with limit | [optional]
|
144
|
+
**preload** | **BOOLEAN**| return flags with preloaded segments and variants | [optional]
|
143
145
|
|
144
146
|
### Return type
|
145
147
|
|
data/lib/rbflagr.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
data/lib/rbflagr/api/flag_api.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -129,6 +129,7 @@ module Flagr
|
|
129
129
|
# @option opts [String] :description_like return flags partially matching given description
|
130
130
|
# @option opts [String] :key return flags matching given key
|
131
131
|
# @option opts [Integer] :offset return flags given the offset, it should usually set together with limit
|
132
|
+
# @option opts [BOOLEAN] :preload return flags with preloaded segments and variants
|
132
133
|
# @return [Array<Flag>]
|
133
134
|
def find_flags(opts = {})
|
134
135
|
data, _status_code, _headers = find_flags_with_http_info(opts)
|
@@ -142,6 +143,7 @@ module Flagr
|
|
142
143
|
# @option opts [String] :description_like return flags partially matching given description
|
143
144
|
# @option opts [String] :key return flags matching given key
|
144
145
|
# @option opts [Integer] :offset return flags given the offset, it should usually set together with limit
|
146
|
+
# @option opts [BOOLEAN] :preload return flags with preloaded segments and variants
|
145
147
|
# @return [Array<(Array<Flag>, Fixnum, Hash)>] Array<Flag> data, response status code and response headers
|
146
148
|
def find_flags_with_http_info(opts = {})
|
147
149
|
if @api_client.config.debugging
|
@@ -158,6 +160,7 @@ module Flagr
|
|
158
160
|
query_params[:'description_like'] = opts[:'description_like'] if !opts[:'description_like'].nil?
|
159
161
|
query_params[:'key'] = opts[:'key'] if !opts[:'key'].nil?
|
160
162
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
163
|
+
query_params[:'preload'] = opts[:'preload'] if !opts[:'preload'].nil?
|
161
164
|
|
162
165
|
# header parameters
|
163
166
|
header_params = {}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
data/lib/rbflagr/api_client.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
data/lib/rbflagr/api_error.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
data/lib/rbflagr/models/error.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -119,150 +119,15 @@ module Flagr
|
|
119
119
|
# @return Array for valid properties with the reasons
|
120
120
|
def list_invalid_properties
|
121
121
|
invalid_properties = Array.new
|
122
|
-
if @flag_id.nil?
|
123
|
-
invalid_properties.push('invalid value for "flag_id", flag_id cannot be nil.')
|
124
|
-
end
|
125
|
-
|
126
|
-
if @flag_id < 1
|
127
|
-
invalid_properties.push('invalid value for "flag_id", must be greater than or equal to 1.')
|
128
|
-
end
|
129
|
-
|
130
|
-
if @flag_key.nil?
|
131
|
-
invalid_properties.push('invalid value for "flag_key", flag_key cannot be nil.')
|
132
|
-
end
|
133
|
-
|
134
|
-
if @segment_id.nil?
|
135
|
-
invalid_properties.push('invalid value for "segment_id", segment_id cannot be nil.')
|
136
|
-
end
|
137
|
-
|
138
|
-
if @segment_id < 1
|
139
|
-
invalid_properties.push('invalid value for "segment_id", must be greater than or equal to 1.')
|
140
|
-
end
|
141
|
-
|
142
|
-
if @variant_id.nil?
|
143
|
-
invalid_properties.push('invalid value for "variant_id", variant_id cannot be nil.')
|
144
|
-
end
|
145
|
-
|
146
|
-
if @variant_id < 1
|
147
|
-
invalid_properties.push('invalid value for "variant_id", must be greater than or equal to 1.')
|
148
|
-
end
|
149
|
-
|
150
|
-
if @variant_key.nil?
|
151
|
-
invalid_properties.push('invalid value for "variant_key", variant_key cannot be nil.')
|
152
|
-
end
|
153
|
-
|
154
|
-
if @variant_key.to_s.length < 1
|
155
|
-
invalid_properties.push('invalid value for "variant_key", the character length must be great than or equal to 1.')
|
156
|
-
end
|
157
|
-
|
158
|
-
if @variant_attachment.nil?
|
159
|
-
invalid_properties.push('invalid value for "variant_attachment", variant_attachment cannot be nil.')
|
160
|
-
end
|
161
|
-
|
162
|
-
if @eval_context.nil?
|
163
|
-
invalid_properties.push('invalid value for "eval_context", eval_context cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
|
-
if @timestamp.nil?
|
167
|
-
invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
|
168
|
-
end
|
169
|
-
|
170
|
-
if @timestamp.to_s.length < 1
|
171
|
-
invalid_properties.push('invalid value for "timestamp", the character length must be great than or equal to 1.')
|
172
|
-
end
|
173
|
-
|
174
122
|
invalid_properties
|
175
123
|
end
|
176
124
|
|
177
125
|
# Check to see if the all the properties in the model are valid
|
178
126
|
# @return true if the model is valid
|
179
127
|
def valid?
|
180
|
-
return false if @flag_id.nil?
|
181
|
-
return false if @flag_id < 1
|
182
|
-
return false if @flag_key.nil?
|
183
|
-
return false if @segment_id.nil?
|
184
|
-
return false if @segment_id < 1
|
185
|
-
return false if @variant_id.nil?
|
186
|
-
return false if @variant_id < 1
|
187
|
-
return false if @variant_key.nil?
|
188
|
-
return false if @variant_key.to_s.length < 1
|
189
|
-
return false if @variant_attachment.nil?
|
190
|
-
return false if @eval_context.nil?
|
191
|
-
return false if @timestamp.nil?
|
192
|
-
return false if @timestamp.to_s.length < 1
|
193
128
|
true
|
194
129
|
end
|
195
130
|
|
196
|
-
# Custom attribute writer method with validation
|
197
|
-
# @param [Object] flag_id Value to be assigned
|
198
|
-
def flag_id=(flag_id)
|
199
|
-
if flag_id.nil?
|
200
|
-
fail ArgumentError, 'flag_id cannot be nil'
|
201
|
-
end
|
202
|
-
|
203
|
-
if flag_id < 1
|
204
|
-
fail ArgumentError, 'invalid value for "flag_id", must be greater than or equal to 1.'
|
205
|
-
end
|
206
|
-
|
207
|
-
@flag_id = flag_id
|
208
|
-
end
|
209
|
-
|
210
|
-
# Custom attribute writer method with validation
|
211
|
-
# @param [Object] segment_id Value to be assigned
|
212
|
-
def segment_id=(segment_id)
|
213
|
-
if segment_id.nil?
|
214
|
-
fail ArgumentError, 'segment_id cannot be nil'
|
215
|
-
end
|
216
|
-
|
217
|
-
if segment_id < 1
|
218
|
-
fail ArgumentError, 'invalid value for "segment_id", must be greater than or equal to 1.'
|
219
|
-
end
|
220
|
-
|
221
|
-
@segment_id = segment_id
|
222
|
-
end
|
223
|
-
|
224
|
-
# Custom attribute writer method with validation
|
225
|
-
# @param [Object] variant_id Value to be assigned
|
226
|
-
def variant_id=(variant_id)
|
227
|
-
if variant_id.nil?
|
228
|
-
fail ArgumentError, 'variant_id cannot be nil'
|
229
|
-
end
|
230
|
-
|
231
|
-
if variant_id < 1
|
232
|
-
fail ArgumentError, 'invalid value for "variant_id", must be greater than or equal to 1.'
|
233
|
-
end
|
234
|
-
|
235
|
-
@variant_id = variant_id
|
236
|
-
end
|
237
|
-
|
238
|
-
# Custom attribute writer method with validation
|
239
|
-
# @param [Object] variant_key Value to be assigned
|
240
|
-
def variant_key=(variant_key)
|
241
|
-
if variant_key.nil?
|
242
|
-
fail ArgumentError, 'variant_key cannot be nil'
|
243
|
-
end
|
244
|
-
|
245
|
-
if variant_key.to_s.length < 1
|
246
|
-
fail ArgumentError, 'invalid value for "variant_key", the character length must be great than or equal to 1.'
|
247
|
-
end
|
248
|
-
|
249
|
-
@variant_key = variant_key
|
250
|
-
end
|
251
|
-
|
252
|
-
# Custom attribute writer method with validation
|
253
|
-
# @param [Object] timestamp Value to be assigned
|
254
|
-
def timestamp=(timestamp)
|
255
|
-
if timestamp.nil?
|
256
|
-
fail ArgumentError, 'timestamp cannot be nil'
|
257
|
-
end
|
258
|
-
|
259
|
-
if timestamp.to_s.length < 1
|
260
|
-
fail ArgumentError, 'invalid value for "timestamp", the character length must be great than or equal to 1.'
|
261
|
-
end
|
262
|
-
|
263
|
-
@timestamp = timestamp
|
264
|
-
end
|
265
|
-
|
266
131
|
# Checks equality by comparing each attribute.
|
267
132
|
# @param [Object] Object to be compared
|
268
133
|
def ==(o)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
data/lib/rbflagr/models/flag.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
data/lib/rbflagr/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
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
|
6
|
+
OpenAPI spec version: 1.1.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Flagr
|
14
|
-
VERSION = '
|
14
|
+
VERSION = '1.1.0'
|
15
15
|
end
|
data/rbflagr.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
#Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
|
7
7
|
|
8
|
-
OpenAPI spec version: 1.0
|
8
|
+
OpenAPI spec version: 1.1.0
|
9
9
|
|
10
10
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
11
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
data/swagger.yaml
CHANGED
@@ -4,7 +4,7 @@ info:
|
|
4
4
|
Flagr is a feature flagging, A/B testing and dynamic configuration
|
5
5
|
microservice. The base path for all the APIs is "/api/v1".
|
6
6
|
title: Flagr
|
7
|
-
version: 1.0
|
7
|
+
version: 1.1.0
|
8
8
|
tags:
|
9
9
|
- name: flag
|
10
10
|
description: Everything about the flag
|
@@ -79,6 +79,10 @@ paths:
|
|
79
79
|
description: >-
|
80
80
|
return flags given the offset, it should usually set together with
|
81
81
|
limit
|
82
|
+
- in: query
|
83
|
+
name: preload
|
84
|
+
type: boolean
|
85
|
+
description: return flags with preloaded segments and variants
|
82
86
|
responses:
|
83
87
|
'200':
|
84
88
|
description: list all the flags
|
@@ -1101,20 +1105,10 @@ definitions:
|
|
1101
1105
|
type: string
|
1102
1106
|
evalResult:
|
1103
1107
|
type: object
|
1104
|
-
required:
|
1105
|
-
- flagID
|
1106
|
-
- flagKey
|
1107
|
-
- segmentID
|
1108
|
-
- variantID
|
1109
|
-
- variantKey
|
1110
|
-
- variantAttachment
|
1111
|
-
- evalContext
|
1112
|
-
- timestamp
|
1113
1108
|
properties:
|
1114
1109
|
flagID:
|
1115
1110
|
type: integer
|
1116
1111
|
format: int64
|
1117
|
-
minimum: 1
|
1118
1112
|
flagKey:
|
1119
1113
|
type: string
|
1120
1114
|
flagSnapshotID:
|
@@ -1123,21 +1117,17 @@ definitions:
|
|
1123
1117
|
segmentID:
|
1124
1118
|
type: integer
|
1125
1119
|
format: int64
|
1126
|
-
minimum: 1
|
1127
1120
|
variantID:
|
1128
1121
|
type: integer
|
1129
1122
|
format: int64
|
1130
|
-
minimum: 1
|
1131
1123
|
variantKey:
|
1132
1124
|
type: string
|
1133
|
-
minLength: 1
|
1134
1125
|
variantAttachment:
|
1135
1126
|
type: object
|
1136
1127
|
evalContext:
|
1137
1128
|
$ref: '#/definitions/evalContext'
|
1138
1129
|
timestamp:
|
1139
1130
|
type: string
|
1140
|
-
minLength: 1
|
1141
1131
|
evalDebugLog:
|
1142
1132
|
$ref: '#/definitions/evalDebugLog'
|
1143
1133
|
evalDebugLog:
|
@@ -1212,4 +1202,4 @@ definitions:
|
|
1212
1202
|
properties:
|
1213
1203
|
message:
|
1214
1204
|
type: string
|
1215
|
-
minLength: 1
|
1205
|
+
minLength: 1
|
data/swagger_ruby.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbflagr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swagger-Codegen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -325,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
325
325
|
version: '0'
|
326
326
|
requirements: []
|
327
327
|
rubyforge_project:
|
328
|
-
rubygems_version: 2.
|
328
|
+
rubygems_version: 2.5.2
|
329
329
|
signing_key:
|
330
330
|
specification_version: 4
|
331
331
|
summary: Flagr Ruby Gem
|