ory-oathkeeper-client 0.0.0.alpha62 → 0.35.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +34 -106
- data/docs/ApiApi.md +46 -301
- data/docs/CreateRuleCreated.md +8 -9
- data/docs/CreateRuleForbidden.md +8 -9
- data/docs/CreateRuleForbiddenBody.md +18 -19
- data/docs/CreateRuleInternalServerError.md +8 -9
- data/docs/CreateRuleInternalServerErrorBody.md +18 -19
- data/docs/CreateRuleUnauthorized.md +8 -9
- data/docs/CreateRuleUnauthorizedBody.md +18 -19
- data/docs/DecisionsForbidden.md +8 -9
- data/docs/DecisionsForbiddenBody.md +18 -19
- data/docs/DecisionsInternalServerError.md +8 -9
- data/docs/DecisionsInternalServerErrorBody.md +18 -19
- data/docs/DecisionsNotFound.md +8 -9
- data/docs/DecisionsNotFoundBody.md +18 -19
- data/docs/DecisionsUnauthorized.md +8 -9
- data/docs/DecisionsUnauthorizedBody.md +18 -19
- data/docs/DeleteRuleForbidden.md +8 -9
- data/docs/DeleteRuleForbiddenBody.md +18 -19
- data/docs/DeleteRuleInternalServerError.md +8 -9
- data/docs/DeleteRuleInternalServerErrorBody.md +18 -19
- data/docs/DeleteRuleNotFound.md +8 -9
- data/docs/DeleteRuleNotFoundBody.md +18 -19
- data/docs/DeleteRuleUnauthorized.md +8 -9
- data/docs/DeleteRuleUnauthorizedBody.md +18 -19
- data/docs/GetRuleForbidden.md +8 -9
- data/docs/GetRuleForbiddenBody.md +18 -19
- data/docs/GetRuleInternalServerError.md +8 -9
- data/docs/GetRuleInternalServerErrorBody.md +18 -19
- data/docs/GetRuleNotFound.md +8 -9
- data/docs/GetRuleNotFoundBody.md +18 -19
- data/docs/GetRuleOK.md +8 -9
- data/docs/GetRuleUnauthorized.md +8 -9
- data/docs/GetRuleUnauthorizedBody.md +18 -19
- data/docs/GetWellKnownForbidden.md +8 -9
- data/docs/GetWellKnownForbiddenBody.md +18 -19
- data/docs/GetWellKnownJSONWebKeysInternalServerError.md +8 -9
- data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +18 -19
- data/docs/GetWellKnownJSONWebKeysOK.md +8 -9
- data/docs/GetWellKnownOK.md +8 -9
- data/docs/GetWellKnownUnauthorized.md +8 -9
- data/docs/GetWellKnownUnauthorizedBody.md +18 -19
- data/docs/HealthNotReadyStatus.md +8 -9
- data/docs/HealthStatus.md +8 -9
- data/docs/InlineResponse500.md +18 -19
- data/docs/IsInstanceAliveInternalServerError.md +8 -9
- data/docs/IsInstanceAliveInternalServerErrorBody.md +18 -19
- data/docs/IsInstanceAliveOK.md +8 -9
- data/docs/JsonWebKey.md +40 -41
- data/docs/JsonWebKeySet.md +8 -9
- data/docs/JudgeForbidden.md +8 -9
- data/docs/JudgeForbiddenBody.md +18 -19
- data/docs/JudgeInternalServerError.md +8 -9
- data/docs/JudgeInternalServerErrorBody.md +18 -19
- data/docs/JudgeNotFound.md +8 -9
- data/docs/JudgeNotFoundBody.md +18 -19
- data/docs/JudgeUnauthorized.md +8 -9
- data/docs/JudgeUnauthorizedBody.md +18 -19
- data/docs/ListRulesForbidden.md +8 -9
- data/docs/ListRulesForbiddenBody.md +18 -19
- data/docs/ListRulesInternalServerError.md +8 -9
- data/docs/ListRulesInternalServerErrorBody.md +18 -19
- data/docs/ListRulesOK.md +8 -9
- data/docs/ListRulesUnauthorized.md +8 -9
- data/docs/ListRulesUnauthorizedBody.md +18 -19
- data/docs/Rule.md +20 -21
- data/docs/RuleHandler.md +10 -11
- data/docs/RuleMatch.md +10 -11
- data/docs/SwaggerCreateRuleParameters.md +8 -9
- data/docs/SwaggerGetRuleParameters.md +8 -9
- data/docs/SwaggerHealthStatus.md +8 -9
- data/docs/SwaggerJSONWebKey.md +40 -41
- data/docs/SwaggerJSONWebKeySet.md +8 -9
- data/docs/SwaggerListRulesParameters.md +10 -11
- data/docs/SwaggerNotReadyStatus.md +8 -9
- data/docs/SwaggerRule.md +20 -21
- data/docs/SwaggerRuleHandler.md +10 -11
- data/docs/SwaggerRuleMatch.md +10 -11
- data/docs/SwaggerRuleResponse.md +8 -9
- data/docs/SwaggerRulesResponse.md +8 -9
- data/docs/SwaggerUpdateRuleParameters.md +10 -11
- data/docs/SwaggerVersion.md +8 -9
- data/docs/UpdateRuleForbidden.md +8 -9
- data/docs/UpdateRuleForbiddenBody.md +18 -19
- data/docs/UpdateRuleInternalServerError.md +8 -9
- data/docs/UpdateRuleInternalServerErrorBody.md +18 -19
- data/docs/UpdateRuleNotFound.md +8 -9
- data/docs/UpdateRuleNotFoundBody.md +18 -19
- data/docs/UpdateRuleOK.md +8 -9
- data/docs/UpdateRuleUnauthorized.md +8 -9
- data/docs/UpdateRuleUnauthorizedBody.md +18 -19
- data/docs/Upstream.md +12 -13
- data/docs/Version.md +8 -9
- data/lib/ory-oathkeeper-client/api/api_api.rb +15 -190
- data/lib/ory-oathkeeper-client/api/health_api.rb +2 -2
- data/lib/ory-oathkeeper-client/api/version_api.rb +2 -2
- data/lib/ory-oathkeeper-client/api_client.rb +48 -52
- data/lib/ory-oathkeeper-client/api_error.rb +3 -3
- data/lib/ory-oathkeeper-client/configuration.rb +12 -41
- data/lib/ory-oathkeeper-client/models/create_rule_created.rb +11 -23
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +12 -23
- data/lib/ory-oathkeeper-client/models/health_status.rb +11 -23
- data/lib/ory-oathkeeper-client/models/inline_response500.rb +12 -24
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/json_web_key.rb +24 -23
- data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/judge_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +13 -25
- data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/rule.rb +11 -23
- data/lib/ory-oathkeeper-client/models/rule_handler.rb +12 -23
- data/lib/ory-oathkeeper-client/models/rule_match.rb +12 -23
- data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rule.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +11 -23
- data/lib/ory-oathkeeper-client/models/swagger_version.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +11 -23
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +12 -24
- data/lib/ory-oathkeeper-client/models/upstream.rb +12 -24
- data/lib/ory-oathkeeper-client/models/version.rb +12 -23
- data/lib/ory-oathkeeper-client/version.rb +4 -4
- data/lib/ory-oathkeeper-client.rb +6 -76
- data/ory-oathkeeper-client.gemspec +6 -5
- data/spec/api/health_api_spec.rb +2 -2
- data/spec/api/version_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +32 -32
- data/spec/configuration_spec.rb +5 -5
- data/spec/spec_helper.rb +2 -2
- metadata +99 -79
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.37
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
|
-
module
|
15
|
+
module OryHydraClient
|
17
16
|
# ListRulesUnauthorizedBody ListRulesUnauthorizedBody ListRulesUnauthorizedBody ListRulesUnauthorizedBody ListRulesUnauthorizedBody ListRulesUnauthorizedBody ListRulesUnauthorizedBody list rules unauthorized body
|
18
17
|
class ListRulesUnauthorizedBody
|
19
18
|
# code
|
@@ -46,16 +45,11 @@ module OryOathkeeperClient
|
|
46
45
|
}
|
47
46
|
end
|
48
47
|
|
49
|
-
# Returns all the JSON keys this model knows about
|
50
|
-
def self.acceptable_attributes
|
51
|
-
attribute_map.values
|
52
|
-
end
|
53
|
-
|
54
48
|
# Attribute type mapping.
|
55
49
|
def self.openapi_types
|
56
50
|
{
|
57
51
|
:'code' => :'Integer',
|
58
|
-
:'details' => :'Array<Object
|
52
|
+
:'details' => :'Array<Hash<String, Object>>',
|
59
53
|
:'message' => :'String',
|
60
54
|
:'reason' => :'String',
|
61
55
|
:'request' => :'String',
|
@@ -73,13 +67,13 @@ module OryOathkeeperClient
|
|
73
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
68
|
def initialize(attributes = {})
|
75
69
|
if (!attributes.is_a?(Hash))
|
76
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::ListRulesUnauthorizedBody` initialize method"
|
77
71
|
end
|
78
72
|
|
79
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
80
74
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
81
75
|
if (!self.class.attribute_map.key?(k.to_sym))
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::ListRulesUnauthorizedBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
83
77
|
end
|
84
78
|
h[k.to_sym] = v
|
85
79
|
}
|
@@ -162,9 +156,7 @@ module OryOathkeeperClient
|
|
162
156
|
def build_from_hash(attributes)
|
163
157
|
return nil unless attributes.is_a?(Hash)
|
164
158
|
self.class.openapi_types.each_pair do |key, type|
|
165
|
-
if
|
166
|
-
self.send("#{key}=", nil)
|
167
|
-
elsif type =~ /\AArray<(.*)>/i
|
159
|
+
if type =~ /\AArray<(.*)>/i
|
168
160
|
# check to ensure the input is an array given that the attribute
|
169
161
|
# is documented as an array but the input is not
|
170
162
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -172,7 +164,7 @@ module OryOathkeeperClient
|
|
172
164
|
end
|
173
165
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
174
166
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
175
|
-
end
|
167
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
176
168
|
end
|
177
169
|
|
178
170
|
self
|
@@ -184,8 +176,8 @@ module OryOathkeeperClient
|
|
184
176
|
# @return [Object] Deserialized data
|
185
177
|
def _deserialize(type, value)
|
186
178
|
case type.to_sym
|
187
|
-
when :
|
188
|
-
|
179
|
+
when :DateTime
|
180
|
+
DateTime.parse(value)
|
189
181
|
when :Date
|
190
182
|
Date.parse(value)
|
191
183
|
when :String
|
@@ -215,9 +207,7 @@ module OryOathkeeperClient
|
|
215
207
|
end
|
216
208
|
end
|
217
209
|
else # model
|
218
|
-
|
219
|
-
klass = OryOathkeeperClient.const_get(type)
|
220
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
210
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
221
211
|
end
|
222
212
|
end
|
223
213
|
|
@@ -243,7 +233,7 @@ module OryOathkeeperClient
|
|
243
233
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
244
234
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
245
235
|
end
|
246
|
-
|
236
|
+
|
247
237
|
hash[param] = _to_hash(value)
|
248
238
|
end
|
249
239
|
hash
|
@@ -266,7 +256,5 @@ module OryOathkeeperClient
|
|
266
256
|
value
|
267
257
|
end
|
268
258
|
end
|
269
|
-
|
270
259
|
end
|
271
|
-
|
272
260
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
|
-
module
|
15
|
+
module OryHydraClient
|
17
16
|
class Rule
|
18
17
|
# Authenticators is a list of authentication handlers that will try and authenticate the provided credentials. Authenticators are checked iteratively from index 0 to n and if the first authenticator to return a positive result will be the one used. If you want the rule to first check a specific authenticator before \"falling back\" to others, have that authenticator as the first item in the array.
|
19
18
|
attr_accessor :authenticators
|
@@ -46,11 +45,6 @@ module OryOathkeeperClient
|
|
46
45
|
}
|
47
46
|
end
|
48
47
|
|
49
|
-
# Returns all the JSON keys this model knows about
|
50
|
-
def self.acceptable_attributes
|
51
|
-
attribute_map.values
|
52
|
-
end
|
53
|
-
|
54
48
|
# Attribute type mapping.
|
55
49
|
def self.openapi_types
|
56
50
|
{
|
@@ -74,13 +68,13 @@ module OryOathkeeperClient
|
|
74
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
75
69
|
def initialize(attributes = {})
|
76
70
|
if (!attributes.is_a?(Hash))
|
77
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::Rule` initialize method"
|
78
72
|
end
|
79
73
|
|
80
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
81
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
76
|
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::Rule`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
78
|
end
|
85
79
|
h[k.to_sym] = v
|
86
80
|
}
|
@@ -170,9 +164,7 @@ module OryOathkeeperClient
|
|
170
164
|
def build_from_hash(attributes)
|
171
165
|
return nil unless attributes.is_a?(Hash)
|
172
166
|
self.class.openapi_types.each_pair do |key, type|
|
173
|
-
if
|
174
|
-
self.send("#{key}=", nil)
|
175
|
-
elsif type =~ /\AArray<(.*)>/i
|
167
|
+
if type =~ /\AArray<(.*)>/i
|
176
168
|
# check to ensure the input is an array given that the attribute
|
177
169
|
# is documented as an array but the input is not
|
178
170
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -180,7 +172,7 @@ module OryOathkeeperClient
|
|
180
172
|
end
|
181
173
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
182
174
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
183
|
-
end
|
175
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
184
176
|
end
|
185
177
|
|
186
178
|
self
|
@@ -192,8 +184,8 @@ module OryOathkeeperClient
|
|
192
184
|
# @return [Object] Deserialized data
|
193
185
|
def _deserialize(type, value)
|
194
186
|
case type.to_sym
|
195
|
-
when :
|
196
|
-
|
187
|
+
when :DateTime
|
188
|
+
DateTime.parse(value)
|
197
189
|
when :Date
|
198
190
|
Date.parse(value)
|
199
191
|
when :String
|
@@ -223,9 +215,7 @@ module OryOathkeeperClient
|
|
223
215
|
end
|
224
216
|
end
|
225
217
|
else # model
|
226
|
-
|
227
|
-
klass = OryOathkeeperClient.const_get(type)
|
228
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
218
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
229
219
|
end
|
230
220
|
end
|
231
221
|
|
@@ -251,7 +241,7 @@ module OryOathkeeperClient
|
|
251
241
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
252
242
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
253
243
|
end
|
254
|
-
|
244
|
+
|
255
245
|
hash[param] = _to_hash(value)
|
256
246
|
end
|
257
247
|
hash
|
@@ -274,7 +264,5 @@ module OryOathkeeperClient
|
|
274
264
|
value
|
275
265
|
end
|
276
266
|
end
|
277
|
-
|
278
267
|
end
|
279
|
-
|
280
268
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
|
-
module
|
15
|
+
module OryHydraClient
|
16
|
+
# RuleHandler rule handler
|
17
17
|
class RuleHandler
|
18
18
|
# Config contains the configuration for the handler. Please read the user guide for a complete list of each handler's available settings.
|
19
19
|
attr_accessor :config
|
@@ -29,11 +29,6 @@ module OryOathkeeperClient
|
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
|
-
# Returns all the JSON keys this model knows about
|
33
|
-
def self.acceptable_attributes
|
34
|
-
attribute_map.values
|
35
|
-
end
|
36
|
-
|
37
32
|
# Attribute type mapping.
|
38
33
|
def self.openapi_types
|
39
34
|
{
|
@@ -52,13 +47,13 @@ module OryOathkeeperClient
|
|
52
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
48
|
def initialize(attributes = {})
|
54
49
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::RuleHandler` initialize method"
|
56
51
|
end
|
57
52
|
|
58
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::RuleHandler`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
57
|
end
|
63
58
|
h[k.to_sym] = v
|
64
59
|
}
|
@@ -119,9 +114,7 @@ module OryOathkeeperClient
|
|
119
114
|
def build_from_hash(attributes)
|
120
115
|
return nil unless attributes.is_a?(Hash)
|
121
116
|
self.class.openapi_types.each_pair do |key, type|
|
122
|
-
if
|
123
|
-
self.send("#{key}=", nil)
|
124
|
-
elsif type =~ /\AArray<(.*)>/i
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
125
118
|
# check to ensure the input is an array given that the attribute
|
126
119
|
# is documented as an array but the input is not
|
127
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -129,7 +122,7 @@ module OryOathkeeperClient
|
|
129
122
|
end
|
130
123
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
124
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
-
end
|
125
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
126
|
end
|
134
127
|
|
135
128
|
self
|
@@ -141,8 +134,8 @@ module OryOathkeeperClient
|
|
141
134
|
# @return [Object] Deserialized data
|
142
135
|
def _deserialize(type, value)
|
143
136
|
case type.to_sym
|
144
|
-
when :
|
145
|
-
|
137
|
+
when :DateTime
|
138
|
+
DateTime.parse(value)
|
146
139
|
when :Date
|
147
140
|
Date.parse(value)
|
148
141
|
when :String
|
@@ -172,9 +165,7 @@ module OryOathkeeperClient
|
|
172
165
|
end
|
173
166
|
end
|
174
167
|
else # model
|
175
|
-
|
176
|
-
klass = OryOathkeeperClient.const_get(type)
|
177
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
168
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
178
169
|
end
|
179
170
|
end
|
180
171
|
|
@@ -200,7 +191,7 @@ module OryOathkeeperClient
|
|
200
191
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
201
192
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
202
193
|
end
|
203
|
-
|
194
|
+
|
204
195
|
hash[param] = _to_hash(value)
|
205
196
|
end
|
206
197
|
hash
|
@@ -223,7 +214,5 @@ module OryOathkeeperClient
|
|
223
214
|
value
|
224
215
|
end
|
225
216
|
end
|
226
|
-
|
227
217
|
end
|
228
|
-
|
229
218
|
end
|
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: Latest
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
|
-
module
|
15
|
+
module OryHydraClient
|
16
|
+
# RuleMatch rule match
|
17
17
|
class RuleMatch
|
18
18
|
# An array of HTTP methods (e.g. GET, POST, PUT, DELETE, ...). When ORY Oathkeeper searches for rules to decide what to do with an incoming request to the proxy server, it compares the HTTP method of the incoming request with the HTTP methods of each rules. If a match is found, the rule is considered a partial match. If the matchesUrl field is satisfied as well, the rule is considered a full match.
|
19
19
|
attr_accessor :methods
|
@@ -29,11 +29,6 @@ module OryOathkeeperClient
|
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
|
-
# Returns all the JSON keys this model knows about
|
33
|
-
def self.acceptable_attributes
|
34
|
-
attribute_map.values
|
35
|
-
end
|
36
|
-
|
37
32
|
# Attribute type mapping.
|
38
33
|
def self.openapi_types
|
39
34
|
{
|
@@ -52,13 +47,13 @@ module OryOathkeeperClient
|
|
52
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
53
48
|
def initialize(attributes = {})
|
54
49
|
if (!attributes.is_a?(Hash))
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::RuleMatch` initialize method"
|
56
51
|
end
|
57
52
|
|
58
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
59
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::RuleMatch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
57
|
end
|
63
58
|
h[k.to_sym] = v
|
64
59
|
}
|
@@ -121,9 +116,7 @@ module OryOathkeeperClient
|
|
121
116
|
def build_from_hash(attributes)
|
122
117
|
return nil unless attributes.is_a?(Hash)
|
123
118
|
self.class.openapi_types.each_pair do |key, type|
|
124
|
-
if
|
125
|
-
self.send("#{key}=", nil)
|
126
|
-
elsif type =~ /\AArray<(.*)>/i
|
119
|
+
if type =~ /\AArray<(.*)>/i
|
127
120
|
# check to ensure the input is an array given that the attribute
|
128
121
|
# is documented as an array but the input is not
|
129
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -131,7 +124,7 @@ module OryOathkeeperClient
|
|
131
124
|
end
|
132
125
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
126
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
-
end
|
127
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
135
128
|
end
|
136
129
|
|
137
130
|
self
|
@@ -143,8 +136,8 @@ module OryOathkeeperClient
|
|
143
136
|
# @return [Object] Deserialized data
|
144
137
|
def _deserialize(type, value)
|
145
138
|
case type.to_sym
|
146
|
-
when :
|
147
|
-
|
139
|
+
when :DateTime
|
140
|
+
DateTime.parse(value)
|
148
141
|
when :Date
|
149
142
|
Date.parse(value)
|
150
143
|
when :String
|
@@ -174,9 +167,7 @@ module OryOathkeeperClient
|
|
174
167
|
end
|
175
168
|
end
|
176
169
|
else # model
|
177
|
-
|
178
|
-
klass = OryOathkeeperClient.const_get(type)
|
179
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
180
171
|
end
|
181
172
|
end
|
182
173
|
|
@@ -202,7 +193,7 @@ module OryOathkeeperClient
|
|
202
193
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
203
194
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
204
195
|
end
|
205
|
-
|
196
|
+
|
206
197
|
hash[param] = _to_hash(value)
|
207
198
|
end
|
208
199
|
hash
|
@@ -225,7 +216,5 @@ module OryOathkeeperClient
|
|
225
216
|
value
|
226
217
|
end
|
227
218
|
end
|
228
|
-
|
229
219
|
end
|
230
|
-
|
231
220
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.37
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
|
-
module
|
15
|
+
module OryHydraClient
|
17
16
|
# SwaggerCreateRuleParameters SwaggerCreateRuleParameters SwaggerCreateRuleParameters SwaggerCreateRuleParameters SwaggerCreateRuleParameters swagger create rule parameters
|
18
17
|
class SwaggerCreateRuleParameters
|
19
18
|
attr_accessor :body
|
@@ -25,11 +24,6 @@ module OryOathkeeperClient
|
|
25
24
|
}
|
26
25
|
end
|
27
26
|
|
28
|
-
# Returns all the JSON keys this model knows about
|
29
|
-
def self.acceptable_attributes
|
30
|
-
attribute_map.values
|
31
|
-
end
|
32
|
-
|
33
27
|
# Attribute type mapping.
|
34
28
|
def self.openapi_types
|
35
29
|
{
|
@@ -47,13 +41,13 @@ module OryOathkeeperClient
|
|
47
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
42
|
def initialize(attributes = {})
|
49
43
|
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::SwaggerCreateRuleParameters` initialize method"
|
51
45
|
end
|
52
46
|
|
53
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::SwaggerCreateRuleParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
51
|
end
|
58
52
|
h[k.to_sym] = v
|
59
53
|
}
|
@@ -109,9 +103,7 @@ module OryOathkeeperClient
|
|
109
103
|
def build_from_hash(attributes)
|
110
104
|
return nil unless attributes.is_a?(Hash)
|
111
105
|
self.class.openapi_types.each_pair do |key, type|
|
112
|
-
if
|
113
|
-
self.send("#{key}=", nil)
|
114
|
-
elsif type =~ /\AArray<(.*)>/i
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
115
107
|
# check to ensure the input is an array given that the attribute
|
116
108
|
# is documented as an array but the input is not
|
117
109
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -119,7 +111,7 @@ module OryOathkeeperClient
|
|
119
111
|
end
|
120
112
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
113
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
-
end
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
115
|
end
|
124
116
|
|
125
117
|
self
|
@@ -131,8 +123,8 @@ module OryOathkeeperClient
|
|
131
123
|
# @return [Object] Deserialized data
|
132
124
|
def _deserialize(type, value)
|
133
125
|
case type.to_sym
|
134
|
-
when :
|
135
|
-
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
136
128
|
when :Date
|
137
129
|
Date.parse(value)
|
138
130
|
when :String
|
@@ -162,9 +154,7 @@ module OryOathkeeperClient
|
|
162
154
|
end
|
163
155
|
end
|
164
156
|
else # model
|
165
|
-
|
166
|
-
klass = OryOathkeeperClient.const_get(type)
|
167
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
157
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
168
158
|
end
|
169
159
|
end
|
170
160
|
|
@@ -190,7 +180,7 @@ module OryOathkeeperClient
|
|
190
180
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
191
181
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
192
182
|
end
|
193
|
-
|
183
|
+
|
194
184
|
hash[param] = _to_hash(value)
|
195
185
|
end
|
196
186
|
hash
|
@@ -213,7 +203,5 @@ module OryOathkeeperClient
|
|
213
203
|
value
|
214
204
|
end
|
215
205
|
end
|
216
|
-
|
217
206
|
end
|
218
|
-
|
219
207
|
end
|
@@ -3,17 +3,16 @@
|
|
3
3
|
|
4
4
|
#ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: v0.0.0-alpha.
|
6
|
+
The version of the OpenAPI document: v0.0.0-alpha.37
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
-
require 'time'
|
15
14
|
|
16
|
-
module
|
15
|
+
module OryHydraClient
|
17
16
|
# SwaggerGetRuleParameters swagger get rule parameters
|
18
17
|
class SwaggerGetRuleParameters
|
19
18
|
# in: path
|
@@ -26,11 +25,6 @@ module OryOathkeeperClient
|
|
26
25
|
}
|
27
26
|
end
|
28
27
|
|
29
|
-
# Returns all the JSON keys this model knows about
|
30
|
-
def self.acceptable_attributes
|
31
|
-
attribute_map.values
|
32
|
-
end
|
33
|
-
|
34
28
|
# Attribute type mapping.
|
35
29
|
def self.openapi_types
|
36
30
|
{
|
@@ -48,13 +42,13 @@ module OryOathkeeperClient
|
|
48
42
|
# @param [Hash] attributes Model attributes in the form of hash
|
49
43
|
def initialize(attributes = {})
|
50
44
|
if (!attributes.is_a?(Hash))
|
51
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::SwaggerGetRuleParameters` initialize method"
|
52
46
|
end
|
53
47
|
|
54
48
|
# check to see if the attribute exists and convert string to symbol for hash key
|
55
49
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
50
|
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::SwaggerGetRuleParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
52
|
end
|
59
53
|
h[k.to_sym] = v
|
60
54
|
}
|
@@ -115,9 +109,7 @@ module OryOathkeeperClient
|
|
115
109
|
def build_from_hash(attributes)
|
116
110
|
return nil unless attributes.is_a?(Hash)
|
117
111
|
self.class.openapi_types.each_pair do |key, type|
|
118
|
-
if
|
119
|
-
self.send("#{key}=", nil)
|
120
|
-
elsif type =~ /\AArray<(.*)>/i
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
121
113
|
# check to ensure the input is an array given that the attribute
|
122
114
|
# is documented as an array but the input is not
|
123
115
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -125,7 +117,7 @@ module OryOathkeeperClient
|
|
125
117
|
end
|
126
118
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
119
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
|
-
end
|
120
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
129
121
|
end
|
130
122
|
|
131
123
|
self
|
@@ -137,8 +129,8 @@ module OryOathkeeperClient
|
|
137
129
|
# @return [Object] Deserialized data
|
138
130
|
def _deserialize(type, value)
|
139
131
|
case type.to_sym
|
140
|
-
when :
|
141
|
-
|
132
|
+
when :DateTime
|
133
|
+
DateTime.parse(value)
|
142
134
|
when :Date
|
143
135
|
Date.parse(value)
|
144
136
|
when :String
|
@@ -168,9 +160,7 @@ module OryOathkeeperClient
|
|
168
160
|
end
|
169
161
|
end
|
170
162
|
else # model
|
171
|
-
|
172
|
-
klass = OryOathkeeperClient.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
163
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
174
164
|
end
|
175
165
|
end
|
176
166
|
|
@@ -196,7 +186,7 @@ module OryOathkeeperClient
|
|
196
186
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
197
187
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
198
188
|
end
|
199
|
-
|
189
|
+
|
200
190
|
hash[param] = _to_hash(value)
|
201
191
|
end
|
202
192
|
hash
|
@@ -219,7 +209,5 @@ module OryOathkeeperClient
|
|
219
209
|
value
|
220
210
|
end
|
221
211
|
end
|
222
|
-
|
223
212
|
end
|
224
|
-
|
225
213
|
end
|