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
|
# SwaggerHealthStatus swagger health status
|
18
17
|
class SwaggerHealthStatus
|
19
18
|
# Status always contains \"ok\".
|
@@ -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::SwaggerHealthStatus` 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::SwaggerHealthStatus`. 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
|
}
|
@@ -110,9 +104,7 @@ module OryOathkeeperClient
|
|
110
104
|
def build_from_hash(attributes)
|
111
105
|
return nil unless attributes.is_a?(Hash)
|
112
106
|
self.class.openapi_types.each_pair do |key, type|
|
113
|
-
if
|
114
|
-
self.send("#{key}=", nil)
|
115
|
-
elsif type =~ /\AArray<(.*)>/i
|
107
|
+
if type =~ /\AArray<(.*)>/i
|
116
108
|
# check to ensure the input is an array given that the attribute
|
117
109
|
# is documented as an array but the input is not
|
118
110
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -120,7 +112,7 @@ module OryOathkeeperClient
|
|
120
112
|
end
|
121
113
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
114
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
-
end
|
115
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
116
|
end
|
125
117
|
|
126
118
|
self
|
@@ -132,8 +124,8 @@ module OryOathkeeperClient
|
|
132
124
|
# @return [Object] Deserialized data
|
133
125
|
def _deserialize(type, value)
|
134
126
|
case type.to_sym
|
135
|
-
when :
|
136
|
-
|
127
|
+
when :DateTime
|
128
|
+
DateTime.parse(value)
|
137
129
|
when :Date
|
138
130
|
Date.parse(value)
|
139
131
|
when :String
|
@@ -163,9 +155,7 @@ module OryOathkeeperClient
|
|
163
155
|
end
|
164
156
|
end
|
165
157
|
else # model
|
166
|
-
|
167
|
-
klass = OryOathkeeperClient.const_get(type)
|
168
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
158
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
169
159
|
end
|
170
160
|
end
|
171
161
|
|
@@ -191,7 +181,7 @@ module OryOathkeeperClient
|
|
191
181
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
192
182
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
193
183
|
end
|
194
|
-
|
184
|
+
|
195
185
|
hash[param] = _to_hash(value)
|
196
186
|
end
|
197
187
|
hash
|
@@ -214,7 +204,5 @@ module OryOathkeeperClient
|
|
214
204
|
value
|
215
205
|
end
|
216
206
|
end
|
217
|
-
|
218
207
|
end
|
219
|
-
|
220
208
|
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
|
# SwaggerJSONWebKey swagger JSON web key
|
18
17
|
class SwaggerJSONWebKey
|
19
18
|
# The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name.
|
@@ -90,11 +89,6 @@ module OryOathkeeperClient
|
|
90
89
|
}
|
91
90
|
end
|
92
91
|
|
93
|
-
# Returns all the JSON keys this model knows about
|
94
|
-
def self.acceptable_attributes
|
95
|
-
attribute_map.values
|
96
|
-
end
|
97
|
-
|
98
92
|
# Attribute type mapping.
|
99
93
|
def self.openapi_types
|
100
94
|
{
|
@@ -128,13 +122,13 @@ module OryOathkeeperClient
|
|
128
122
|
# @param [Hash] attributes Model attributes in the form of hash
|
129
123
|
def initialize(attributes = {})
|
130
124
|
if (!attributes.is_a?(Hash))
|
131
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
125
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::SwaggerJSONWebKey` initialize method"
|
132
126
|
end
|
133
127
|
|
134
128
|
# check to see if the attribute exists and convert string to symbol for hash key
|
135
129
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
136
130
|
if (!self.class.attribute_map.key?(k.to_sym))
|
137
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
131
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::SwaggerJSONWebKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
138
132
|
end
|
139
133
|
h[k.to_sym] = v
|
140
134
|
}
|
@@ -272,9 +266,7 @@ module OryOathkeeperClient
|
|
272
266
|
def build_from_hash(attributes)
|
273
267
|
return nil unless attributes.is_a?(Hash)
|
274
268
|
self.class.openapi_types.each_pair do |key, type|
|
275
|
-
if
|
276
|
-
self.send("#{key}=", nil)
|
277
|
-
elsif type =~ /\AArray<(.*)>/i
|
269
|
+
if type =~ /\AArray<(.*)>/i
|
278
270
|
# check to ensure the input is an array given that the attribute
|
279
271
|
# is documented as an array but the input is not
|
280
272
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -282,7 +274,7 @@ module OryOathkeeperClient
|
|
282
274
|
end
|
283
275
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
284
276
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
285
|
-
end
|
277
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
286
278
|
end
|
287
279
|
|
288
280
|
self
|
@@ -294,8 +286,8 @@ module OryOathkeeperClient
|
|
294
286
|
# @return [Object] Deserialized data
|
295
287
|
def _deserialize(type, value)
|
296
288
|
case type.to_sym
|
297
|
-
when :
|
298
|
-
|
289
|
+
when :DateTime
|
290
|
+
DateTime.parse(value)
|
299
291
|
when :Date
|
300
292
|
Date.parse(value)
|
301
293
|
when :String
|
@@ -325,9 +317,7 @@ module OryOathkeeperClient
|
|
325
317
|
end
|
326
318
|
end
|
327
319
|
else # model
|
328
|
-
|
329
|
-
klass = OryOathkeeperClient.const_get(type)
|
330
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
320
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
331
321
|
end
|
332
322
|
end
|
333
323
|
|
@@ -353,7 +343,7 @@ module OryOathkeeperClient
|
|
353
343
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
354
344
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
355
345
|
end
|
356
|
-
|
346
|
+
|
357
347
|
hash[param] = _to_hash(value)
|
358
348
|
end
|
359
349
|
hash
|
@@ -376,7 +366,5 @@ module OryOathkeeperClient
|
|
376
366
|
value
|
377
367
|
end
|
378
368
|
end
|
379
|
-
|
380
369
|
end
|
381
|
-
|
382
370
|
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
|
# SwaggerJSONWebKeySet swagger JSON web key set
|
18
17
|
class SwaggerJSONWebKeySet
|
19
18
|
# The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired.
|
@@ -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::SwaggerJSONWebKeySet` 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::SwaggerJSONWebKeySet`. 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
|
}
|
@@ -112,9 +106,7 @@ module OryOathkeeperClient
|
|
112
106
|
def build_from_hash(attributes)
|
113
107
|
return nil unless attributes.is_a?(Hash)
|
114
108
|
self.class.openapi_types.each_pair do |key, type|
|
115
|
-
if
|
116
|
-
self.send("#{key}=", nil)
|
117
|
-
elsif type =~ /\AArray<(.*)>/i
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
118
110
|
# check to ensure the input is an array given that the attribute
|
119
111
|
# is documented as an array but the input is not
|
120
112
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -122,7 +114,7 @@ module OryOathkeeperClient
|
|
122
114
|
end
|
123
115
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
116
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
-
end
|
117
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
126
118
|
end
|
127
119
|
|
128
120
|
self
|
@@ -134,8 +126,8 @@ module OryOathkeeperClient
|
|
134
126
|
# @return [Object] Deserialized data
|
135
127
|
def _deserialize(type, value)
|
136
128
|
case type.to_sym
|
137
|
-
when :
|
138
|
-
|
129
|
+
when :DateTime
|
130
|
+
DateTime.parse(value)
|
139
131
|
when :Date
|
140
132
|
Date.parse(value)
|
141
133
|
when :String
|
@@ -165,9 +157,7 @@ module OryOathkeeperClient
|
|
165
157
|
end
|
166
158
|
end
|
167
159
|
else # model
|
168
|
-
|
169
|
-
klass = OryOathkeeperClient.const_get(type)
|
170
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
160
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
171
161
|
end
|
172
162
|
end
|
173
163
|
|
@@ -193,7 +183,7 @@ module OryOathkeeperClient
|
|
193
183
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
194
184
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
195
185
|
end
|
196
|
-
|
186
|
+
|
197
187
|
hash[param] = _to_hash(value)
|
198
188
|
end
|
199
189
|
hash
|
@@ -216,7 +206,5 @@ module OryOathkeeperClient
|
|
216
206
|
value
|
217
207
|
end
|
218
208
|
end
|
219
|
-
|
220
209
|
end
|
221
|
-
|
222
210
|
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
|
# SwaggerListRulesParameters swagger list rules parameters
|
18
17
|
class SwaggerListRulesParameters
|
19
18
|
# The maximum amount of rules returned. in: query
|
@@ -30,11 +29,6 @@ module OryOathkeeperClient
|
|
30
29
|
}
|
31
30
|
end
|
32
31
|
|
33
|
-
# Returns all the JSON keys this model knows about
|
34
|
-
def self.acceptable_attributes
|
35
|
-
attribute_map.values
|
36
|
-
end
|
37
|
-
|
38
32
|
# Attribute type mapping.
|
39
33
|
def self.openapi_types
|
40
34
|
{
|
@@ -53,13 +47,13 @@ module OryOathkeeperClient
|
|
53
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
54
48
|
def initialize(attributes = {})
|
55
49
|
if (!attributes.is_a?(Hash))
|
56
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::SwaggerListRulesParameters` initialize method"
|
57
51
|
end
|
58
52
|
|
59
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
60
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::SwaggerListRulesParameters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
57
|
end
|
64
58
|
h[k.to_sym] = v
|
65
59
|
}
|
@@ -120,9 +114,7 @@ module OryOathkeeperClient
|
|
120
114
|
def build_from_hash(attributes)
|
121
115
|
return nil unless attributes.is_a?(Hash)
|
122
116
|
self.class.openapi_types.each_pair do |key, type|
|
123
|
-
if
|
124
|
-
self.send("#{key}=", nil)
|
125
|
-
elsif type =~ /\AArray<(.*)>/i
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
126
118
|
# check to ensure the input is an array given that the attribute
|
127
119
|
# is documented as an array but the input is not
|
128
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -130,7 +122,7 @@ module OryOathkeeperClient
|
|
130
122
|
end
|
131
123
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
124
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
133
|
-
end
|
125
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
134
126
|
end
|
135
127
|
|
136
128
|
self
|
@@ -142,8 +134,8 @@ module OryOathkeeperClient
|
|
142
134
|
# @return [Object] Deserialized data
|
143
135
|
def _deserialize(type, value)
|
144
136
|
case type.to_sym
|
145
|
-
when :
|
146
|
-
|
137
|
+
when :DateTime
|
138
|
+
DateTime.parse(value)
|
147
139
|
when :Date
|
148
140
|
Date.parse(value)
|
149
141
|
when :String
|
@@ -173,9 +165,7 @@ module OryOathkeeperClient
|
|
173
165
|
end
|
174
166
|
end
|
175
167
|
else # model
|
176
|
-
|
177
|
-
klass = OryOathkeeperClient.const_get(type)
|
178
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
168
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
179
169
|
end
|
180
170
|
end
|
181
171
|
|
@@ -201,7 +191,7 @@ module OryOathkeeperClient
|
|
201
191
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
202
192
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
203
193
|
end
|
204
|
-
|
194
|
+
|
205
195
|
hash[param] = _to_hash(value)
|
206
196
|
end
|
207
197
|
hash
|
@@ -224,7 +214,5 @@ module OryOathkeeperClient
|
|
224
214
|
value
|
225
215
|
end
|
226
216
|
end
|
227
|
-
|
228
217
|
end
|
229
|
-
|
230
218
|
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
|
# SwaggerNotReadyStatus swagger not ready status
|
18
17
|
class SwaggerNotReadyStatus
|
19
18
|
# Errors contains a list of errors that caused the not ready status.
|
@@ -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::SwaggerNotReadyStatus` 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::SwaggerNotReadyStatus`. 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
|
}
|
@@ -112,9 +106,7 @@ module OryOathkeeperClient
|
|
112
106
|
def build_from_hash(attributes)
|
113
107
|
return nil unless attributes.is_a?(Hash)
|
114
108
|
self.class.openapi_types.each_pair do |key, type|
|
115
|
-
if
|
116
|
-
self.send("#{key}=", nil)
|
117
|
-
elsif type =~ /\AArray<(.*)>/i
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
118
110
|
# check to ensure the input is an array given that the attribute
|
119
111
|
# is documented as an array but the input is not
|
120
112
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -122,7 +114,7 @@ module OryOathkeeperClient
|
|
122
114
|
end
|
123
115
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
116
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
-
end
|
117
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
126
118
|
end
|
127
119
|
|
128
120
|
self
|
@@ -134,8 +126,8 @@ module OryOathkeeperClient
|
|
134
126
|
# @return [Object] Deserialized data
|
135
127
|
def _deserialize(type, value)
|
136
128
|
case type.to_sym
|
137
|
-
when :
|
138
|
-
|
129
|
+
when :DateTime
|
130
|
+
DateTime.parse(value)
|
139
131
|
when :Date
|
140
132
|
Date.parse(value)
|
141
133
|
when :String
|
@@ -165,9 +157,7 @@ module OryOathkeeperClient
|
|
165
157
|
end
|
166
158
|
end
|
167
159
|
else # model
|
168
|
-
|
169
|
-
klass = OryOathkeeperClient.const_get(type)
|
170
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
160
|
+
OryHydraClient.const_get(type).build_from_hash(value)
|
171
161
|
end
|
172
162
|
end
|
173
163
|
|
@@ -193,7 +183,7 @@ module OryOathkeeperClient
|
|
193
183
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
194
184
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
195
185
|
end
|
196
|
-
|
186
|
+
|
197
187
|
hash[param] = _to_hash(value)
|
198
188
|
end
|
199
189
|
hash
|
@@ -216,7 +206,5 @@ module OryOathkeeperClient
|
|
216
206
|
value
|
217
207
|
end
|
218
208
|
end
|
219
|
-
|
220
209
|
end
|
221
|
-
|
222
210
|
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
|
class SwaggerRule
|
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::SwaggerRule` 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::SwaggerRule`. 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
|