togglr-sdk 1.0.2 → 1.0.3

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/togglr/client.rb +2 -8
  3. data/lib/togglr/version.rb +1 -1
  4. metadata +1 -51
  5. data/generated/Gemfile +0 -9
  6. data/generated/README.md +0 -121
  7. data/generated/Rakefile +0 -10
  8. data/generated/docs/DefaultApi.md +0 -282
  9. data/generated/docs/Error.md +0 -18
  10. data/generated/docs/ErrorBadRequest.md +0 -18
  11. data/generated/docs/ErrorError.md +0 -18
  12. data/generated/docs/ErrorInternalServerError.md +0 -18
  13. data/generated/docs/ErrorNotFound.md +0 -18
  14. data/generated/docs/ErrorPermissionDenied.md +0 -18
  15. data/generated/docs/ErrorTooManyRequests.md +0 -18
  16. data/generated/docs/ErrorUnauthorized.md +0 -18
  17. data/generated/docs/EvaluateResponse.md +0 -22
  18. data/generated/docs/FeatureErrorReport.md +0 -22
  19. data/generated/docs/FeatureHealth.md +0 -30
  20. data/generated/docs/HealthResponse.md +0 -20
  21. data/generated/git_push.sh +0 -57
  22. data/generated/lib/togglr-client/api/default_api.rb +0 -284
  23. data/generated/lib/togglr-client/api_client.rb +0 -437
  24. data/generated/lib/togglr-client/api_error.rb +0 -58
  25. data/generated/lib/togglr-client/configuration.rb +0 -392
  26. data/generated/lib/togglr-client/models/error.rb +0 -237
  27. data/generated/lib/togglr-client/models/error_bad_request.rb +0 -244
  28. data/generated/lib/togglr-client/models/error_error.rb +0 -220
  29. data/generated/lib/togglr-client/models/error_internal_server_error.rb +0 -244
  30. data/generated/lib/togglr-client/models/error_not_found.rb +0 -244
  31. data/generated/lib/togglr-client/models/error_permission_denied.rb +0 -244
  32. data/generated/lib/togglr-client/models/error_too_many_requests.rb +0 -244
  33. data/generated/lib/togglr-client/models/error_unauthorized.rb +0 -244
  34. data/generated/lib/togglr-client/models/evaluate_response.rb +0 -289
  35. data/generated/lib/togglr-client/models/feature_error_report.rb +0 -274
  36. data/generated/lib/togglr-client/models/feature_health.rb +0 -342
  37. data/generated/lib/togglr-client/models/health_response.rb +0 -287
  38. data/generated/lib/togglr-client/version.rb +0 -15
  39. data/generated/lib/togglr-client.rb +0 -52
  40. data/generated/spec/api/default_api_spec.rb +0 -81
  41. data/generated/spec/models/error_bad_request_spec.rb +0 -36
  42. data/generated/spec/models/error_error_spec.rb +0 -36
  43. data/generated/spec/models/error_internal_server_error_spec.rb +0 -36
  44. data/generated/spec/models/error_not_found_spec.rb +0 -36
  45. data/generated/spec/models/error_permission_denied_spec.rb +0 -36
  46. data/generated/spec/models/error_spec.rb +0 -36
  47. data/generated/spec/models/error_too_many_requests_spec.rb +0 -36
  48. data/generated/spec/models/error_unauthorized_spec.rb +0 -36
  49. data/generated/spec/models/evaluate_response_spec.rb +0 -48
  50. data/generated/spec/models/feature_error_report_spec.rb +0 -48
  51. data/generated/spec/models/feature_health_spec.rb +0 -72
  52. data/generated/spec/models/health_response_spec.rb +0 -46
  53. data/generated/spec/spec_helper.rb +0 -111
  54. data/generated/togglr-client.gemspec +0 -41
@@ -1,342 +0,0 @@
1
- =begin
2
- #SDK API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.15.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module TogglrClient
17
- class FeatureHealth
18
- attr_accessor :feature_key
19
-
20
- attr_accessor :environment_key
21
-
22
- attr_accessor :enabled
23
-
24
- attr_accessor :auto_disabled
25
-
26
- attr_accessor :error_rate
27
-
28
- attr_accessor :threshold
29
-
30
- attr_accessor :last_error_at
31
-
32
- # Attribute mapping from ruby-style variable name to JSON key.
33
- def self.attribute_map
34
- {
35
- :'feature_key' => :'feature_key',
36
- :'environment_key' => :'environment_key',
37
- :'enabled' => :'enabled',
38
- :'auto_disabled' => :'auto_disabled',
39
- :'error_rate' => :'error_rate',
40
- :'threshold' => :'threshold',
41
- :'last_error_at' => :'last_error_at'
42
- }
43
- end
44
-
45
- # Returns attribute mapping this model knows about
46
- def self.acceptable_attribute_map
47
- attribute_map
48
- end
49
-
50
- # Returns all the JSON keys this model knows about
51
- def self.acceptable_attributes
52
- acceptable_attribute_map.values
53
- end
54
-
55
- # Attribute type mapping.
56
- def self.openapi_types
57
- {
58
- :'feature_key' => :'String',
59
- :'environment_key' => :'String',
60
- :'enabled' => :'Boolean',
61
- :'auto_disabled' => :'Boolean',
62
- :'error_rate' => :'Float',
63
- :'threshold' => :'Float',
64
- :'last_error_at' => :'Time'
65
- }
66
- end
67
-
68
- # List of attributes with nullable: true
69
- def self.openapi_nullable
70
- Set.new([
71
- ])
72
- end
73
-
74
- # Initializes the object
75
- # @param [Hash] attributes Model attributes in the form of hash
76
- def initialize(attributes = {})
77
- if (!attributes.is_a?(Hash))
78
- fail ArgumentError, "The input argument (attributes) must be a hash in `TogglrClient::FeatureHealth` initialize method"
79
- end
80
-
81
- # check to see if the attribute exists and convert string to symbol for hash key
82
- acceptable_attribute_map = self.class.acceptable_attribute_map
83
- attributes = attributes.each_with_object({}) { |(k, v), h|
84
- if (!acceptable_attribute_map.key?(k.to_sym))
85
- fail ArgumentError, "`#{k}` is not a valid attribute in `TogglrClient::FeatureHealth`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
86
- end
87
- h[k.to_sym] = v
88
- }
89
-
90
- if attributes.key?(:'feature_key')
91
- self.feature_key = attributes[:'feature_key']
92
- else
93
- self.feature_key = nil
94
- end
95
-
96
- if attributes.key?(:'environment_key')
97
- self.environment_key = attributes[:'environment_key']
98
- else
99
- self.environment_key = nil
100
- end
101
-
102
- if attributes.key?(:'enabled')
103
- self.enabled = attributes[:'enabled']
104
- else
105
- self.enabled = nil
106
- end
107
-
108
- if attributes.key?(:'auto_disabled')
109
- self.auto_disabled = attributes[:'auto_disabled']
110
- else
111
- self.auto_disabled = nil
112
- end
113
-
114
- if attributes.key?(:'error_rate')
115
- self.error_rate = attributes[:'error_rate']
116
- end
117
-
118
- if attributes.key?(:'threshold')
119
- self.threshold = attributes[:'threshold']
120
- end
121
-
122
- if attributes.key?(:'last_error_at')
123
- self.last_error_at = attributes[:'last_error_at']
124
- end
125
- end
126
-
127
- # Show invalid properties with the reasons. Usually used together with valid?
128
- # @return Array for valid properties with the reasons
129
- def list_invalid_properties
130
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
131
- invalid_properties = Array.new
132
- if @feature_key.nil?
133
- invalid_properties.push('invalid value for "feature_key", feature_key cannot be nil.')
134
- end
135
-
136
- if @environment_key.nil?
137
- invalid_properties.push('invalid value for "environment_key", environment_key cannot be nil.')
138
- end
139
-
140
- if @enabled.nil?
141
- invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
142
- end
143
-
144
- if @auto_disabled.nil?
145
- invalid_properties.push('invalid value for "auto_disabled", auto_disabled cannot be nil.')
146
- end
147
-
148
- invalid_properties
149
- end
150
-
151
- # Check to see if the all the properties in the model are valid
152
- # @return true if the model is valid
153
- def valid?
154
- warn '[DEPRECATED] the `valid?` method is obsolete'
155
- return false if @feature_key.nil?
156
- return false if @environment_key.nil?
157
- return false if @enabled.nil?
158
- return false if @auto_disabled.nil?
159
- true
160
- end
161
-
162
- # Custom attribute writer method with validation
163
- # @param [Object] feature_key Value to be assigned
164
- def feature_key=(feature_key)
165
- if feature_key.nil?
166
- fail ArgumentError, 'feature_key cannot be nil'
167
- end
168
-
169
- @feature_key = feature_key
170
- end
171
-
172
- # Custom attribute writer method with validation
173
- # @param [Object] environment_key Value to be assigned
174
- def environment_key=(environment_key)
175
- if environment_key.nil?
176
- fail ArgumentError, 'environment_key cannot be nil'
177
- end
178
-
179
- @environment_key = environment_key
180
- end
181
-
182
- # Custom attribute writer method with validation
183
- # @param [Object] enabled Value to be assigned
184
- def enabled=(enabled)
185
- if enabled.nil?
186
- fail ArgumentError, 'enabled cannot be nil'
187
- end
188
-
189
- @enabled = enabled
190
- end
191
-
192
- # Custom attribute writer method with validation
193
- # @param [Object] auto_disabled Value to be assigned
194
- def auto_disabled=(auto_disabled)
195
- if auto_disabled.nil?
196
- fail ArgumentError, 'auto_disabled cannot be nil'
197
- end
198
-
199
- @auto_disabled = auto_disabled
200
- end
201
-
202
- # Checks equality by comparing each attribute.
203
- # @param [Object] Object to be compared
204
- def ==(o)
205
- return true if self.equal?(o)
206
- self.class == o.class &&
207
- feature_key == o.feature_key &&
208
- environment_key == o.environment_key &&
209
- enabled == o.enabled &&
210
- auto_disabled == o.auto_disabled &&
211
- error_rate == o.error_rate &&
212
- threshold == o.threshold &&
213
- last_error_at == o.last_error_at
214
- end
215
-
216
- # @see the `==` method
217
- # @param [Object] Object to be compared
218
- def eql?(o)
219
- self == o
220
- end
221
-
222
- # Calculates hash code according to all attributes.
223
- # @return [Integer] Hash code
224
- def hash
225
- [feature_key, environment_key, enabled, auto_disabled, error_rate, threshold, last_error_at].hash
226
- end
227
-
228
- # Builds the object from hash
229
- # @param [Hash] attributes Model attributes in the form of hash
230
- # @return [Object] Returns the model itself
231
- def self.build_from_hash(attributes)
232
- return nil unless attributes.is_a?(Hash)
233
- attributes = attributes.transform_keys(&:to_sym)
234
- transformed_hash = {}
235
- openapi_types.each_pair do |key, type|
236
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
237
- transformed_hash["#{key}"] = nil
238
- elsif type =~ /\AArray<(.*)>/i
239
- # check to ensure the input is an array given that the attribute
240
- # is documented as an array but the input is not
241
- if attributes[attribute_map[key]].is_a?(Array)
242
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
243
- end
244
- elsif !attributes[attribute_map[key]].nil?
245
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
246
- end
247
- end
248
- new(transformed_hash)
249
- end
250
-
251
- # Deserializes the data based on type
252
- # @param string type Data type
253
- # @param string value Value to be deserialized
254
- # @return [Object] Deserialized data
255
- def self._deserialize(type, value)
256
- case type.to_sym
257
- when :Time
258
- Time.parse(value)
259
- when :Date
260
- Date.parse(value)
261
- when :String
262
- value.to_s
263
- when :Integer
264
- value.to_i
265
- when :Float
266
- value.to_f
267
- when :Boolean
268
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
269
- true
270
- else
271
- false
272
- end
273
- when :Object
274
- # generic object (usually a Hash), return directly
275
- value
276
- when /\AArray<(?<inner_type>.+)>\z/
277
- inner_type = Regexp.last_match[:inner_type]
278
- value.map { |v| _deserialize(inner_type, v) }
279
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
280
- k_type = Regexp.last_match[:k_type]
281
- v_type = Regexp.last_match[:v_type]
282
- {}.tap do |hash|
283
- value.each do |k, v|
284
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
285
- end
286
- end
287
- else # model
288
- # models (e.g. Pet) or oneOf
289
- klass = TogglrClient.const_get(type)
290
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
291
- end
292
- end
293
-
294
- # Returns the string representation of the object
295
- # @return [String] String presentation of the object
296
- def to_s
297
- to_hash.to_s
298
- end
299
-
300
- # to_body is an alias to to_hash (backward compatibility)
301
- # @return [Hash] Returns the object in the form of hash
302
- def to_body
303
- to_hash
304
- end
305
-
306
- # Returns the object in the form of hash
307
- # @return [Hash] Returns the object in the form of hash
308
- def to_hash
309
- hash = {}
310
- self.class.attribute_map.each_pair do |attr, param|
311
- value = self.send(attr)
312
- if value.nil?
313
- is_nullable = self.class.openapi_nullable.include?(attr)
314
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
315
- end
316
-
317
- hash[param] = _to_hash(value)
318
- end
319
- hash
320
- end
321
-
322
- # Outputs non-array value in the form of hash
323
- # For object, use to_hash. Otherwise, just return the value
324
- # @param [Object] value Any valid value
325
- # @return [Hash] Returns the value in the form of hash
326
- def _to_hash(value)
327
- if value.is_a?(Array)
328
- value.compact.map { |v| _to_hash(v) }
329
- elsif value.is_a?(Hash)
330
- {}.tap do |hash|
331
- value.each { |k, v| hash[k] = _to_hash(v) }
332
- end
333
- elsif value.respond_to? :to_hash
334
- value.to_hash
335
- else
336
- value
337
- end
338
- end
339
-
340
- end
341
-
342
- end
@@ -1,287 +0,0 @@
1
- =begin
2
- #SDK API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.15.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module TogglrClient
17
- class HealthResponse
18
- attr_accessor :status
19
-
20
- attr_accessor :server_time
21
-
22
- class EnumAttributeValidator
23
- attr_reader :datatype
24
- attr_reader :allowable_values
25
-
26
- def initialize(datatype, allowable_values)
27
- @allowable_values = allowable_values.map do |value|
28
- case datatype.to_s
29
- when /Integer/i
30
- value.to_i
31
- when /Float/i
32
- value.to_f
33
- else
34
- value
35
- end
36
- end
37
- end
38
-
39
- def valid?(value)
40
- !value || allowable_values.include?(value)
41
- end
42
- end
43
-
44
- # Attribute mapping from ruby-style variable name to JSON key.
45
- def self.attribute_map
46
- {
47
- :'status' => :'status',
48
- :'server_time' => :'server_time'
49
- }
50
- end
51
-
52
- # Returns attribute mapping this model knows about
53
- def self.acceptable_attribute_map
54
- attribute_map
55
- end
56
-
57
- # Returns all the JSON keys this model knows about
58
- def self.acceptable_attributes
59
- acceptable_attribute_map.values
60
- end
61
-
62
- # Attribute type mapping.
63
- def self.openapi_types
64
- {
65
- :'status' => :'String',
66
- :'server_time' => :'Time'
67
- }
68
- end
69
-
70
- # List of attributes with nullable: true
71
- def self.openapi_nullable
72
- Set.new([
73
- ])
74
- end
75
-
76
- # Initializes the object
77
- # @param [Hash] attributes Model attributes in the form of hash
78
- def initialize(attributes = {})
79
- if (!attributes.is_a?(Hash))
80
- fail ArgumentError, "The input argument (attributes) must be a hash in `TogglrClient::HealthResponse` initialize method"
81
- end
82
-
83
- # check to see if the attribute exists and convert string to symbol for hash key
84
- acceptable_attribute_map = self.class.acceptable_attribute_map
85
- attributes = attributes.each_with_object({}) { |(k, v), h|
86
- if (!acceptable_attribute_map.key?(k.to_sym))
87
- fail ArgumentError, "`#{k}` is not a valid attribute in `TogglrClient::HealthResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
- end
89
- h[k.to_sym] = v
90
- }
91
-
92
- if attributes.key?(:'status')
93
- self.status = attributes[:'status']
94
- else
95
- self.status = nil
96
- end
97
-
98
- if attributes.key?(:'server_time')
99
- self.server_time = attributes[:'server_time']
100
- else
101
- self.server_time = nil
102
- end
103
- end
104
-
105
- # Show invalid properties with the reasons. Usually used together with valid?
106
- # @return Array for valid properties with the reasons
107
- def list_invalid_properties
108
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
- invalid_properties = Array.new
110
- if @status.nil?
111
- invalid_properties.push('invalid value for "status", status cannot be nil.')
112
- end
113
-
114
- if @server_time.nil?
115
- invalid_properties.push('invalid value for "server_time", server_time cannot be nil.')
116
- end
117
-
118
- invalid_properties
119
- end
120
-
121
- # Check to see if the all the properties in the model are valid
122
- # @return true if the model is valid
123
- def valid?
124
- warn '[DEPRECATED] the `valid?` method is obsolete'
125
- return false if @status.nil?
126
- status_validator = EnumAttributeValidator.new('String', ["ok"])
127
- return false unless status_validator.valid?(@status)
128
- return false if @server_time.nil?
129
- true
130
- end
131
-
132
- # Custom attribute writer method checking allowed values (enum).
133
- # @param [Object] status Object to be assigned
134
- def status=(status)
135
- validator = EnumAttributeValidator.new('String', ["ok"])
136
- unless validator.valid?(status)
137
- fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
138
- end
139
- @status = status
140
- end
141
-
142
- # Custom attribute writer method with validation
143
- # @param [Object] server_time Value to be assigned
144
- def server_time=(server_time)
145
- if server_time.nil?
146
- fail ArgumentError, 'server_time cannot be nil'
147
- end
148
-
149
- @server_time = server_time
150
- end
151
-
152
- # Checks equality by comparing each attribute.
153
- # @param [Object] Object to be compared
154
- def ==(o)
155
- return true if self.equal?(o)
156
- self.class == o.class &&
157
- status == o.status &&
158
- server_time == o.server_time
159
- end
160
-
161
- # @see the `==` method
162
- # @param [Object] Object to be compared
163
- def eql?(o)
164
- self == o
165
- end
166
-
167
- # Calculates hash code according to all attributes.
168
- # @return [Integer] Hash code
169
- def hash
170
- [status, server_time].hash
171
- end
172
-
173
- # Builds the object from hash
174
- # @param [Hash] attributes Model attributes in the form of hash
175
- # @return [Object] Returns the model itself
176
- def self.build_from_hash(attributes)
177
- return nil unless attributes.is_a?(Hash)
178
- attributes = attributes.transform_keys(&:to_sym)
179
- transformed_hash = {}
180
- openapi_types.each_pair do |key, type|
181
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
182
- transformed_hash["#{key}"] = nil
183
- elsif type =~ /\AArray<(.*)>/i
184
- # check to ensure the input is an array given that the attribute
185
- # is documented as an array but the input is not
186
- if attributes[attribute_map[key]].is_a?(Array)
187
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
188
- end
189
- elsif !attributes[attribute_map[key]].nil?
190
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
191
- end
192
- end
193
- new(transformed_hash)
194
- end
195
-
196
- # Deserializes the data based on type
197
- # @param string type Data type
198
- # @param string value Value to be deserialized
199
- # @return [Object] Deserialized data
200
- def self._deserialize(type, value)
201
- case type.to_sym
202
- when :Time
203
- Time.parse(value)
204
- when :Date
205
- Date.parse(value)
206
- when :String
207
- value.to_s
208
- when :Integer
209
- value.to_i
210
- when :Float
211
- value.to_f
212
- when :Boolean
213
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
214
- true
215
- else
216
- false
217
- end
218
- when :Object
219
- # generic object (usually a Hash), return directly
220
- value
221
- when /\AArray<(?<inner_type>.+)>\z/
222
- inner_type = Regexp.last_match[:inner_type]
223
- value.map { |v| _deserialize(inner_type, v) }
224
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
225
- k_type = Regexp.last_match[:k_type]
226
- v_type = Regexp.last_match[:v_type]
227
- {}.tap do |hash|
228
- value.each do |k, v|
229
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
230
- end
231
- end
232
- else # model
233
- # models (e.g. Pet) or oneOf
234
- klass = TogglrClient.const_get(type)
235
- klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
236
- end
237
- end
238
-
239
- # Returns the string representation of the object
240
- # @return [String] String presentation of the object
241
- def to_s
242
- to_hash.to_s
243
- end
244
-
245
- # to_body is an alias to to_hash (backward compatibility)
246
- # @return [Hash] Returns the object in the form of hash
247
- def to_body
248
- to_hash
249
- end
250
-
251
- # Returns the object in the form of hash
252
- # @return [Hash] Returns the object in the form of hash
253
- def to_hash
254
- hash = {}
255
- self.class.attribute_map.each_pair do |attr, param|
256
- value = self.send(attr)
257
- if value.nil?
258
- is_nullable = self.class.openapi_nullable.include?(attr)
259
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
260
- end
261
-
262
- hash[param] = _to_hash(value)
263
- end
264
- hash
265
- end
266
-
267
- # Outputs non-array value in the form of hash
268
- # For object, use to_hash. Otherwise, just return the value
269
- # @param [Object] value Any valid value
270
- # @return [Hash] Returns the value in the form of hash
271
- def _to_hash(value)
272
- if value.is_a?(Array)
273
- value.compact.map { |v| _to_hash(v) }
274
- elsif value.is_a?(Hash)
275
- {}.tap do |hash|
276
- value.each { |k, v| hash[k] = _to_hash(v) }
277
- end
278
- elsif value.respond_to? :to_hash
279
- value.to_hash
280
- else
281
- value
282
- end
283
- end
284
-
285
- end
286
-
287
- end
@@ -1,15 +0,0 @@
1
- =begin
2
- #SDK API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.15.0
10
-
11
- =end
12
-
13
- module TogglrClient
14
- VERSION = '1.0.0'
15
- end
@@ -1,52 +0,0 @@
1
- =begin
2
- #SDK API
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.15.0
10
-
11
- =end
12
-
13
- # Common files
14
- require 'togglr-client/api_client'
15
- require 'togglr-client/api_error'
16
- require 'togglr-client/version'
17
- require 'togglr-client/configuration'
18
-
19
- # Models
20
- require 'togglr-client/models/error'
21
- require 'togglr-client/models/error_bad_request'
22
- require 'togglr-client/models/error_error'
23
- require 'togglr-client/models/error_internal_server_error'
24
- require 'togglr-client/models/error_not_found'
25
- require 'togglr-client/models/error_permission_denied'
26
- require 'togglr-client/models/error_too_many_requests'
27
- require 'togglr-client/models/error_unauthorized'
28
- require 'togglr-client/models/evaluate_response'
29
- require 'togglr-client/models/feature_error_report'
30
- require 'togglr-client/models/feature_health'
31
- require 'togglr-client/models/health_response'
32
-
33
- # APIs
34
- require 'togglr-client/api/default_api'
35
-
36
- module TogglrClient
37
- class << self
38
- # Customize default settings for the SDK using block.
39
- # TogglrClient.configure do |config|
40
- # config.username = "xxx"
41
- # config.password = "xxx"
42
- # end
43
- # If no block given, return the default Configuration object.
44
- def configure
45
- if block_given?
46
- yield(Configuration.default)
47
- else
48
- Configuration.default
49
- end
50
- end
51
- end
52
- end