ory-oathkeeper-client 0.38.5.beta1 → 0.38.9.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ApiApi.md +106 -37
- data/docs/CreateRuleCreated.md +8 -7
- data/docs/CreateRuleForbidden.md +8 -7
- data/docs/CreateRuleForbiddenBody.md +18 -17
- data/docs/CreateRuleInternalServerError.md +8 -7
- data/docs/CreateRuleInternalServerErrorBody.md +18 -17
- data/docs/CreateRuleUnauthorized.md +8 -7
- data/docs/CreateRuleUnauthorizedBody.md +18 -17
- data/docs/DecisionsForbidden.md +8 -7
- data/docs/DecisionsForbiddenBody.md +18 -17
- data/docs/DecisionsInternalServerError.md +8 -7
- data/docs/DecisionsInternalServerErrorBody.md +18 -17
- data/docs/DecisionsNotFound.md +8 -7
- data/docs/DecisionsNotFoundBody.md +18 -17
- data/docs/DecisionsUnauthorized.md +8 -7
- data/docs/DecisionsUnauthorizedBody.md +18 -17
- data/docs/DeleteRuleForbidden.md +8 -7
- data/docs/DeleteRuleForbiddenBody.md +18 -17
- data/docs/DeleteRuleInternalServerError.md +8 -7
- data/docs/DeleteRuleInternalServerErrorBody.md +18 -17
- data/docs/DeleteRuleNotFound.md +8 -7
- data/docs/DeleteRuleNotFoundBody.md +18 -17
- data/docs/DeleteRuleUnauthorized.md +8 -7
- data/docs/DeleteRuleUnauthorizedBody.md +18 -17
- data/docs/GetRuleForbidden.md +8 -7
- data/docs/GetRuleForbiddenBody.md +18 -17
- data/docs/GetRuleInternalServerError.md +8 -7
- data/docs/GetRuleInternalServerErrorBody.md +18 -17
- data/docs/GetRuleNotFound.md +8 -7
- data/docs/GetRuleNotFoundBody.md +18 -17
- data/docs/GetRuleOK.md +8 -7
- data/docs/GetRuleUnauthorized.md +8 -7
- data/docs/GetRuleUnauthorizedBody.md +18 -17
- data/docs/GetWellKnownForbidden.md +8 -7
- data/docs/GetWellKnownForbiddenBody.md +18 -17
- data/docs/GetWellKnownJSONWebKeysInternalServerError.md +8 -7
- data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +18 -17
- data/docs/GetWellKnownJSONWebKeysOK.md +8 -7
- data/docs/GetWellKnownOK.md +8 -7
- data/docs/GetWellKnownUnauthorized.md +8 -7
- data/docs/GetWellKnownUnauthorizedBody.md +18 -17
- data/docs/HealthApi.md +50 -15
- data/docs/HealthNotReadyStatus.md +8 -7
- data/docs/HealthStatus.md +8 -7
- data/docs/InlineResponse500.md +18 -17
- data/docs/IsInstanceAliveInternalServerError.md +8 -7
- data/docs/IsInstanceAliveInternalServerErrorBody.md +18 -17
- data/docs/IsInstanceAliveOK.md +8 -7
- data/docs/JsonWebKey.md +40 -39
- data/docs/JsonWebKeySet.md +8 -7
- data/docs/JudgeForbidden.md +8 -7
- data/docs/JudgeForbiddenBody.md +18 -17
- data/docs/JudgeInternalServerError.md +8 -7
- data/docs/JudgeInternalServerErrorBody.md +18 -17
- data/docs/JudgeNotFound.md +8 -7
- data/docs/JudgeNotFoundBody.md +18 -17
- data/docs/JudgeUnauthorized.md +8 -7
- data/docs/JudgeUnauthorizedBody.md +18 -17
- data/docs/ListRulesForbidden.md +8 -7
- data/docs/ListRulesForbiddenBody.md +18 -17
- data/docs/ListRulesInternalServerError.md +8 -7
- data/docs/ListRulesInternalServerErrorBody.md +18 -17
- data/docs/ListRulesOK.md +8 -7
- data/docs/ListRulesUnauthorized.md +8 -7
- data/docs/ListRulesUnauthorizedBody.md +18 -17
- data/docs/Rule.md +20 -19
- data/docs/RuleHandler.md +10 -9
- data/docs/RuleMatch.md +10 -9
- data/docs/SwaggerCreateRuleParameters.md +8 -7
- data/docs/SwaggerGetRuleParameters.md +8 -7
- data/docs/SwaggerHealthStatus.md +8 -7
- data/docs/SwaggerJSONWebKey.md +40 -39
- data/docs/SwaggerJSONWebKeySet.md +8 -7
- data/docs/SwaggerListRulesParameters.md +10 -9
- data/docs/SwaggerNotReadyStatus.md +8 -7
- data/docs/SwaggerRule.md +20 -19
- data/docs/SwaggerRuleHandler.md +10 -9
- data/docs/SwaggerRuleMatch.md +10 -9
- data/docs/SwaggerRuleResponse.md +8 -7
- data/docs/SwaggerRulesResponse.md +8 -7
- data/docs/SwaggerUpdateRuleParameters.md +10 -9
- data/docs/SwaggerVersion.md +8 -7
- data/docs/UpdateRuleForbidden.md +8 -7
- data/docs/UpdateRuleForbiddenBody.md +18 -17
- data/docs/UpdateRuleInternalServerError.md +8 -7
- data/docs/UpdateRuleInternalServerErrorBody.md +18 -17
- data/docs/UpdateRuleNotFound.md +8 -7
- data/docs/UpdateRuleNotFoundBody.md +18 -17
- data/docs/UpdateRuleOK.md +8 -7
- data/docs/UpdateRuleUnauthorized.md +8 -7
- data/docs/UpdateRuleUnauthorizedBody.md +18 -17
- data/docs/Upstream.md +12 -11
- data/docs/Version.md +8 -7
- data/docs/VersionApi.md +26 -9
- data/lib/ory-oathkeeper-client.rb +2 -2
- data/lib/ory-oathkeeper-client/api/api_api.rb +18 -14
- data/lib/ory-oathkeeper-client/api/health_api.rb +10 -8
- data/lib/ory-oathkeeper-client/api/version_api.rb +6 -5
- data/lib/ory-oathkeeper-client/api_client.rb +50 -48
- data/lib/ory-oathkeeper-client/api_error.rb +2 -2
- data/lib/ory-oathkeeper-client/configuration.rb +34 -7
- data/lib/ory-oathkeeper-client/models/create_rule_created.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/health_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/inline_response500.rb +20 -8
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/json_web_key.rb +20 -8
- data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/rule.rb +20 -8
- data/lib/ory-oathkeeper-client/models/rule_handler.rb +20 -8
- data/lib/ory-oathkeeper-client/models/rule_match.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_version.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/upstream.rb +20 -8
- data/lib/ory-oathkeeper-client/models/version.rb +20 -8
- data/lib/ory-oathkeeper-client/version.rb +3 -3
- data/ory-oathkeeper-client.gemspec +4 -5
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +81 -101
@@ -3,14 +3,15 @@
|
|
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
|
6
|
+
The version of the OpenAPI document: v0.0.0
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
# SwaggerGetRuleParameters swagger get rule parameters
|
@@ -25,6 +26,11 @@ module OryHydraClient
|
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
28
34
|
# Attribute type mapping.
|
29
35
|
def self.openapi_types
|
30
36
|
{
|
@@ -109,7 +115,9 @@ module OryHydraClient
|
|
109
115
|
def build_from_hash(attributes)
|
110
116
|
return nil unless attributes.is_a?(Hash)
|
111
117
|
self.class.openapi_types.each_pair do |key, type|
|
112
|
-
if
|
118
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
119
|
+
self.send("#{key}=", nil)
|
120
|
+
elsif type =~ /\AArray<(.*)>/i
|
113
121
|
# check to ensure the input is an array given that the attribute
|
114
122
|
# is documented as an array but the input is not
|
115
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -117,7 +125,7 @@ module OryHydraClient
|
|
117
125
|
end
|
118
126
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
119
127
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
120
|
-
end
|
128
|
+
end
|
121
129
|
end
|
122
130
|
|
123
131
|
self
|
@@ -129,8 +137,8 @@ module OryHydraClient
|
|
129
137
|
# @return [Object] Deserialized data
|
130
138
|
def _deserialize(type, value)
|
131
139
|
case type.to_sym
|
132
|
-
when :
|
133
|
-
|
140
|
+
when :Time
|
141
|
+
Time.parse(value)
|
134
142
|
when :Date
|
135
143
|
Date.parse(value)
|
136
144
|
when :String
|
@@ -160,7 +168,9 @@ module OryHydraClient
|
|
160
168
|
end
|
161
169
|
end
|
162
170
|
else # model
|
163
|
-
|
171
|
+
# models (e.g. Pet) or oneOf
|
172
|
+
klass = OryHydraClient.const_get(type)
|
173
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
174
|
end
|
165
175
|
end
|
166
176
|
|
@@ -186,7 +196,7 @@ module OryHydraClient
|
|
186
196
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
187
197
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
188
198
|
end
|
189
|
-
|
199
|
+
|
190
200
|
hash[param] = _to_hash(value)
|
191
201
|
end
|
192
202
|
hash
|
@@ -209,5 +219,7 @@ module OryHydraClient
|
|
209
219
|
value
|
210
220
|
end
|
211
221
|
end
|
222
|
+
|
212
223
|
end
|
224
|
+
|
213
225
|
end
|
@@ -3,14 +3,15 @@
|
|
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
|
6
|
+
The version of the OpenAPI document: v0.0.0
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
# SwaggerHealthStatus swagger health status
|
@@ -25,6 +26,11 @@ module OryHydraClient
|
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
28
34
|
# Attribute type mapping.
|
29
35
|
def self.openapi_types
|
30
36
|
{
|
@@ -104,7 +110,9 @@ module OryHydraClient
|
|
104
110
|
def build_from_hash(attributes)
|
105
111
|
return nil unless attributes.is_a?(Hash)
|
106
112
|
self.class.openapi_types.each_pair do |key, type|
|
107
|
-
if
|
113
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
114
|
+
self.send("#{key}=", nil)
|
115
|
+
elsif type =~ /\AArray<(.*)>/i
|
108
116
|
# check to ensure the input is an array given that the attribute
|
109
117
|
# is documented as an array but the input is not
|
110
118
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -112,7 +120,7 @@ module OryHydraClient
|
|
112
120
|
end
|
113
121
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
122
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
-
end
|
123
|
+
end
|
116
124
|
end
|
117
125
|
|
118
126
|
self
|
@@ -124,8 +132,8 @@ module OryHydraClient
|
|
124
132
|
# @return [Object] Deserialized data
|
125
133
|
def _deserialize(type, value)
|
126
134
|
case type.to_sym
|
127
|
-
when :
|
128
|
-
|
135
|
+
when :Time
|
136
|
+
Time.parse(value)
|
129
137
|
when :Date
|
130
138
|
Date.parse(value)
|
131
139
|
when :String
|
@@ -155,7 +163,9 @@ module OryHydraClient
|
|
155
163
|
end
|
156
164
|
end
|
157
165
|
else # model
|
158
|
-
|
166
|
+
# models (e.g. Pet) or oneOf
|
167
|
+
klass = OryHydraClient.const_get(type)
|
168
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
159
169
|
end
|
160
170
|
end
|
161
171
|
|
@@ -181,7 +191,7 @@ module OryHydraClient
|
|
181
191
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
182
192
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
183
193
|
end
|
184
|
-
|
194
|
+
|
185
195
|
hash[param] = _to_hash(value)
|
186
196
|
end
|
187
197
|
hash
|
@@ -204,5 +214,7 @@ module OryHydraClient
|
|
204
214
|
value
|
205
215
|
end
|
206
216
|
end
|
217
|
+
|
207
218
|
end
|
219
|
+
|
208
220
|
end
|
@@ -3,14 +3,15 @@
|
|
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
|
6
|
+
The version of the OpenAPI document: v0.0.0
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
# SwaggerJSONWebKey swagger JSON web key
|
@@ -89,6 +90,11 @@ module OryHydraClient
|
|
89
90
|
}
|
90
91
|
end
|
91
92
|
|
93
|
+
# Returns all the JSON keys this model knows about
|
94
|
+
def self.acceptable_attributes
|
95
|
+
attribute_map.values
|
96
|
+
end
|
97
|
+
|
92
98
|
# Attribute type mapping.
|
93
99
|
def self.openapi_types
|
94
100
|
{
|
@@ -266,7 +272,9 @@ module OryHydraClient
|
|
266
272
|
def build_from_hash(attributes)
|
267
273
|
return nil unless attributes.is_a?(Hash)
|
268
274
|
self.class.openapi_types.each_pair do |key, type|
|
269
|
-
if
|
275
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
276
|
+
self.send("#{key}=", nil)
|
277
|
+
elsif type =~ /\AArray<(.*)>/i
|
270
278
|
# check to ensure the input is an array given that the attribute
|
271
279
|
# is documented as an array but the input is not
|
272
280
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -274,7 +282,7 @@ module OryHydraClient
|
|
274
282
|
end
|
275
283
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
276
284
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
277
|
-
end
|
285
|
+
end
|
278
286
|
end
|
279
287
|
|
280
288
|
self
|
@@ -286,8 +294,8 @@ module OryHydraClient
|
|
286
294
|
# @return [Object] Deserialized data
|
287
295
|
def _deserialize(type, value)
|
288
296
|
case type.to_sym
|
289
|
-
when :
|
290
|
-
|
297
|
+
when :Time
|
298
|
+
Time.parse(value)
|
291
299
|
when :Date
|
292
300
|
Date.parse(value)
|
293
301
|
when :String
|
@@ -317,7 +325,9 @@ module OryHydraClient
|
|
317
325
|
end
|
318
326
|
end
|
319
327
|
else # model
|
320
|
-
|
328
|
+
# models (e.g. Pet) or oneOf
|
329
|
+
klass = OryHydraClient.const_get(type)
|
330
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
321
331
|
end
|
322
332
|
end
|
323
333
|
|
@@ -343,7 +353,7 @@ module OryHydraClient
|
|
343
353
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
344
354
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
345
355
|
end
|
346
|
-
|
356
|
+
|
347
357
|
hash[param] = _to_hash(value)
|
348
358
|
end
|
349
359
|
hash
|
@@ -366,5 +376,7 @@ module OryHydraClient
|
|
366
376
|
value
|
367
377
|
end
|
368
378
|
end
|
379
|
+
|
369
380
|
end
|
381
|
+
|
370
382
|
end
|
@@ -3,14 +3,15 @@
|
|
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
|
6
|
+
The version of the OpenAPI document: v0.0.0
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
# SwaggerJSONWebKeySet swagger JSON web key set
|
@@ -25,6 +26,11 @@ module OryHydraClient
|
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
28
34
|
# Attribute type mapping.
|
29
35
|
def self.openapi_types
|
30
36
|
{
|
@@ -106,7 +112,9 @@ module OryHydraClient
|
|
106
112
|
def build_from_hash(attributes)
|
107
113
|
return nil unless attributes.is_a?(Hash)
|
108
114
|
self.class.openapi_types.each_pair do |key, type|
|
109
|
-
if
|
115
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
116
|
+
self.send("#{key}=", nil)
|
117
|
+
elsif type =~ /\AArray<(.*)>/i
|
110
118
|
# check to ensure the input is an array given that the attribute
|
111
119
|
# is documented as an array but the input is not
|
112
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -114,7 +122,7 @@ module OryHydraClient
|
|
114
122
|
end
|
115
123
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
116
124
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
117
|
-
end
|
125
|
+
end
|
118
126
|
end
|
119
127
|
|
120
128
|
self
|
@@ -126,8 +134,8 @@ module OryHydraClient
|
|
126
134
|
# @return [Object] Deserialized data
|
127
135
|
def _deserialize(type, value)
|
128
136
|
case type.to_sym
|
129
|
-
when :
|
130
|
-
|
137
|
+
when :Time
|
138
|
+
Time.parse(value)
|
131
139
|
when :Date
|
132
140
|
Date.parse(value)
|
133
141
|
when :String
|
@@ -157,7 +165,9 @@ module OryHydraClient
|
|
157
165
|
end
|
158
166
|
end
|
159
167
|
else # model
|
160
|
-
|
168
|
+
# models (e.g. Pet) or oneOf
|
169
|
+
klass = OryHydraClient.const_get(type)
|
170
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
161
171
|
end
|
162
172
|
end
|
163
173
|
|
@@ -183,7 +193,7 @@ module OryHydraClient
|
|
183
193
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
184
194
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
185
195
|
end
|
186
|
-
|
196
|
+
|
187
197
|
hash[param] = _to_hash(value)
|
188
198
|
end
|
189
199
|
hash
|
@@ -206,5 +216,7 @@ module OryHydraClient
|
|
206
216
|
value
|
207
217
|
end
|
208
218
|
end
|
219
|
+
|
209
220
|
end
|
221
|
+
|
210
222
|
end
|
@@ -3,14 +3,15 @@
|
|
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
|
6
|
+
The version of the OpenAPI document: v0.0.0
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
# SwaggerListRulesParameters swagger list rules parameters
|
@@ -29,6 +30,11 @@ module OryHydraClient
|
|
29
30
|
}
|
30
31
|
end
|
31
32
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
@@ -114,7 +120,9 @@ module OryHydraClient
|
|
114
120
|
def build_from_hash(attributes)
|
115
121
|
return nil unless attributes.is_a?(Hash)
|
116
122
|
self.class.openapi_types.each_pair do |key, type|
|
117
|
-
if
|
123
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
124
|
+
self.send("#{key}=", nil)
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
118
126
|
# check to ensure the input is an array given that the attribute
|
119
127
|
# is documented as an array but the input is not
|
120
128
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -122,7 +130,7 @@ module OryHydraClient
|
|
122
130
|
end
|
123
131
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
132
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
-
end
|
133
|
+
end
|
126
134
|
end
|
127
135
|
|
128
136
|
self
|
@@ -134,8 +142,8 @@ module OryHydraClient
|
|
134
142
|
# @return [Object] Deserialized data
|
135
143
|
def _deserialize(type, value)
|
136
144
|
case type.to_sym
|
137
|
-
when :
|
138
|
-
|
145
|
+
when :Time
|
146
|
+
Time.parse(value)
|
139
147
|
when :Date
|
140
148
|
Date.parse(value)
|
141
149
|
when :String
|
@@ -165,7 +173,9 @@ module OryHydraClient
|
|
165
173
|
end
|
166
174
|
end
|
167
175
|
else # model
|
168
|
-
|
176
|
+
# models (e.g. Pet) or oneOf
|
177
|
+
klass = OryHydraClient.const_get(type)
|
178
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
179
|
end
|
170
180
|
end
|
171
181
|
|
@@ -191,7 +201,7 @@ module OryHydraClient
|
|
191
201
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
192
202
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
193
203
|
end
|
194
|
-
|
204
|
+
|
195
205
|
hash[param] = _to_hash(value)
|
196
206
|
end
|
197
207
|
hash
|
@@ -214,5 +224,7 @@ module OryHydraClient
|
|
214
224
|
value
|
215
225
|
end
|
216
226
|
end
|
227
|
+
|
217
228
|
end
|
229
|
+
|
218
230
|
end
|
@@ -3,14 +3,15 @@
|
|
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
|
6
|
+
The version of the OpenAPI document: v0.0.0
|
7
7
|
Contact: hi@ory.am
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OryHydraClient
|
16
17
|
# SwaggerNotReadyStatus swagger not ready status
|
@@ -25,6 +26,11 @@ module OryHydraClient
|
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
28
34
|
# Attribute type mapping.
|
29
35
|
def self.openapi_types
|
30
36
|
{
|
@@ -106,7 +112,9 @@ module OryHydraClient
|
|
106
112
|
def build_from_hash(attributes)
|
107
113
|
return nil unless attributes.is_a?(Hash)
|
108
114
|
self.class.openapi_types.each_pair do |key, type|
|
109
|
-
if
|
115
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
116
|
+
self.send("#{key}=", nil)
|
117
|
+
elsif type =~ /\AArray<(.*)>/i
|
110
118
|
# check to ensure the input is an array given that the attribute
|
111
119
|
# is documented as an array but the input is not
|
112
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -114,7 +122,7 @@ module OryHydraClient
|
|
114
122
|
end
|
115
123
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
116
124
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
117
|
-
end
|
125
|
+
end
|
118
126
|
end
|
119
127
|
|
120
128
|
self
|
@@ -126,8 +134,8 @@ module OryHydraClient
|
|
126
134
|
# @return [Object] Deserialized data
|
127
135
|
def _deserialize(type, value)
|
128
136
|
case type.to_sym
|
129
|
-
when :
|
130
|
-
|
137
|
+
when :Time
|
138
|
+
Time.parse(value)
|
131
139
|
when :Date
|
132
140
|
Date.parse(value)
|
133
141
|
when :String
|
@@ -157,7 +165,9 @@ module OryHydraClient
|
|
157
165
|
end
|
158
166
|
end
|
159
167
|
else # model
|
160
|
-
|
168
|
+
# models (e.g. Pet) or oneOf
|
169
|
+
klass = OryHydraClient.const_get(type)
|
170
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
161
171
|
end
|
162
172
|
end
|
163
173
|
|
@@ -183,7 +193,7 @@ module OryHydraClient
|
|
183
193
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
184
194
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
185
195
|
end
|
186
|
-
|
196
|
+
|
187
197
|
hash[param] = _to_hash(value)
|
188
198
|
end
|
189
199
|
hash
|
@@ -206,5 +216,7 @@ module OryHydraClient
|
|
206
216
|
value
|
207
217
|
end
|
208
218
|
end
|
219
|
+
|
209
220
|
end
|
221
|
+
|
210
222
|
end
|