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.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ApiApi.md +106 -37
  4. data/docs/CreateRuleCreated.md +8 -7
  5. data/docs/CreateRuleForbidden.md +8 -7
  6. data/docs/CreateRuleForbiddenBody.md +18 -17
  7. data/docs/CreateRuleInternalServerError.md +8 -7
  8. data/docs/CreateRuleInternalServerErrorBody.md +18 -17
  9. data/docs/CreateRuleUnauthorized.md +8 -7
  10. data/docs/CreateRuleUnauthorizedBody.md +18 -17
  11. data/docs/DecisionsForbidden.md +8 -7
  12. data/docs/DecisionsForbiddenBody.md +18 -17
  13. data/docs/DecisionsInternalServerError.md +8 -7
  14. data/docs/DecisionsInternalServerErrorBody.md +18 -17
  15. data/docs/DecisionsNotFound.md +8 -7
  16. data/docs/DecisionsNotFoundBody.md +18 -17
  17. data/docs/DecisionsUnauthorized.md +8 -7
  18. data/docs/DecisionsUnauthorizedBody.md +18 -17
  19. data/docs/DeleteRuleForbidden.md +8 -7
  20. data/docs/DeleteRuleForbiddenBody.md +18 -17
  21. data/docs/DeleteRuleInternalServerError.md +8 -7
  22. data/docs/DeleteRuleInternalServerErrorBody.md +18 -17
  23. data/docs/DeleteRuleNotFound.md +8 -7
  24. data/docs/DeleteRuleNotFoundBody.md +18 -17
  25. data/docs/DeleteRuleUnauthorized.md +8 -7
  26. data/docs/DeleteRuleUnauthorizedBody.md +18 -17
  27. data/docs/GetRuleForbidden.md +8 -7
  28. data/docs/GetRuleForbiddenBody.md +18 -17
  29. data/docs/GetRuleInternalServerError.md +8 -7
  30. data/docs/GetRuleInternalServerErrorBody.md +18 -17
  31. data/docs/GetRuleNotFound.md +8 -7
  32. data/docs/GetRuleNotFoundBody.md +18 -17
  33. data/docs/GetRuleOK.md +8 -7
  34. data/docs/GetRuleUnauthorized.md +8 -7
  35. data/docs/GetRuleUnauthorizedBody.md +18 -17
  36. data/docs/GetWellKnownForbidden.md +8 -7
  37. data/docs/GetWellKnownForbiddenBody.md +18 -17
  38. data/docs/GetWellKnownJSONWebKeysInternalServerError.md +8 -7
  39. data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +18 -17
  40. data/docs/GetWellKnownJSONWebKeysOK.md +8 -7
  41. data/docs/GetWellKnownOK.md +8 -7
  42. data/docs/GetWellKnownUnauthorized.md +8 -7
  43. data/docs/GetWellKnownUnauthorizedBody.md +18 -17
  44. data/docs/HealthApi.md +50 -15
  45. data/docs/HealthNotReadyStatus.md +8 -7
  46. data/docs/HealthStatus.md +8 -7
  47. data/docs/InlineResponse500.md +18 -17
  48. data/docs/IsInstanceAliveInternalServerError.md +8 -7
  49. data/docs/IsInstanceAliveInternalServerErrorBody.md +18 -17
  50. data/docs/IsInstanceAliveOK.md +8 -7
  51. data/docs/JsonWebKey.md +40 -39
  52. data/docs/JsonWebKeySet.md +8 -7
  53. data/docs/JudgeForbidden.md +8 -7
  54. data/docs/JudgeForbiddenBody.md +18 -17
  55. data/docs/JudgeInternalServerError.md +8 -7
  56. data/docs/JudgeInternalServerErrorBody.md +18 -17
  57. data/docs/JudgeNotFound.md +8 -7
  58. data/docs/JudgeNotFoundBody.md +18 -17
  59. data/docs/JudgeUnauthorized.md +8 -7
  60. data/docs/JudgeUnauthorizedBody.md +18 -17
  61. data/docs/ListRulesForbidden.md +8 -7
  62. data/docs/ListRulesForbiddenBody.md +18 -17
  63. data/docs/ListRulesInternalServerError.md +8 -7
  64. data/docs/ListRulesInternalServerErrorBody.md +18 -17
  65. data/docs/ListRulesOK.md +8 -7
  66. data/docs/ListRulesUnauthorized.md +8 -7
  67. data/docs/ListRulesUnauthorizedBody.md +18 -17
  68. data/docs/Rule.md +20 -19
  69. data/docs/RuleHandler.md +10 -9
  70. data/docs/RuleMatch.md +10 -9
  71. data/docs/SwaggerCreateRuleParameters.md +8 -7
  72. data/docs/SwaggerGetRuleParameters.md +8 -7
  73. data/docs/SwaggerHealthStatus.md +8 -7
  74. data/docs/SwaggerJSONWebKey.md +40 -39
  75. data/docs/SwaggerJSONWebKeySet.md +8 -7
  76. data/docs/SwaggerListRulesParameters.md +10 -9
  77. data/docs/SwaggerNotReadyStatus.md +8 -7
  78. data/docs/SwaggerRule.md +20 -19
  79. data/docs/SwaggerRuleHandler.md +10 -9
  80. data/docs/SwaggerRuleMatch.md +10 -9
  81. data/docs/SwaggerRuleResponse.md +8 -7
  82. data/docs/SwaggerRulesResponse.md +8 -7
  83. data/docs/SwaggerUpdateRuleParameters.md +10 -9
  84. data/docs/SwaggerVersion.md +8 -7
  85. data/docs/UpdateRuleForbidden.md +8 -7
  86. data/docs/UpdateRuleForbiddenBody.md +18 -17
  87. data/docs/UpdateRuleInternalServerError.md +8 -7
  88. data/docs/UpdateRuleInternalServerErrorBody.md +18 -17
  89. data/docs/UpdateRuleNotFound.md +8 -7
  90. data/docs/UpdateRuleNotFoundBody.md +18 -17
  91. data/docs/UpdateRuleOK.md +8 -7
  92. data/docs/UpdateRuleUnauthorized.md +8 -7
  93. data/docs/UpdateRuleUnauthorizedBody.md +18 -17
  94. data/docs/Upstream.md +12 -11
  95. data/docs/Version.md +8 -7
  96. data/docs/VersionApi.md +26 -9
  97. data/lib/ory-oathkeeper-client.rb +2 -2
  98. data/lib/ory-oathkeeper-client/api/api_api.rb +18 -14
  99. data/lib/ory-oathkeeper-client/api/health_api.rb +10 -8
  100. data/lib/ory-oathkeeper-client/api/version_api.rb +6 -5
  101. data/lib/ory-oathkeeper-client/api_client.rb +50 -48
  102. data/lib/ory-oathkeeper-client/api_error.rb +2 -2
  103. data/lib/ory-oathkeeper-client/configuration.rb +34 -7
  104. data/lib/ory-oathkeeper-client/models/create_rule_created.rb +20 -8
  105. data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +20 -8
  106. data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +21 -9
  107. data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +20 -8
  108. data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +21 -9
  109. data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +20 -8
  110. data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +21 -9
  111. data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +20 -8
  112. data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +21 -9
  113. data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +20 -8
  114. data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +21 -9
  115. data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +20 -8
  116. data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +21 -9
  117. data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +20 -8
  118. data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +21 -9
  119. data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +20 -8
  120. data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +21 -9
  121. data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +20 -8
  122. data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +21 -9
  123. data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +20 -8
  124. data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +21 -9
  125. data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +20 -8
  126. data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +21 -9
  127. data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +20 -8
  128. data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +21 -9
  129. data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +20 -8
  130. data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +21 -9
  131. data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +20 -8
  132. data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +21 -9
  133. data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +20 -8
  134. data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +20 -8
  135. data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +21 -9
  136. data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +20 -8
  137. data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +21 -9
  138. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +20 -8
  139. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +21 -9
  140. data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +20 -8
  141. data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +20 -8
  142. data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +20 -8
  143. data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +21 -9
  144. data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +20 -8
  145. data/lib/ory-oathkeeper-client/models/health_status.rb +20 -8
  146. data/lib/ory-oathkeeper-client/models/inline_response500.rb +20 -8
  147. data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +20 -8
  148. data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +21 -9
  149. data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +20 -8
  150. data/lib/ory-oathkeeper-client/models/json_web_key.rb +20 -8
  151. data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +20 -8
  152. data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +20 -8
  153. data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +21 -9
  154. data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +20 -8
  155. data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +21 -9
  156. data/lib/ory-oathkeeper-client/models/judge_not_found.rb +20 -8
  157. data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +21 -9
  158. data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +20 -8
  159. data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +21 -9
  160. data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +20 -8
  161. data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +21 -9
  162. data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +20 -8
  163. data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +21 -9
  164. data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +20 -8
  165. data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +20 -8
  166. data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +21 -9
  167. data/lib/ory-oathkeeper-client/models/rule.rb +20 -8
  168. data/lib/ory-oathkeeper-client/models/rule_handler.rb +20 -8
  169. data/lib/ory-oathkeeper-client/models/rule_match.rb +20 -8
  170. data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +20 -8
  171. data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +20 -8
  172. data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +20 -8
  173. data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +20 -8
  174. data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +20 -8
  175. data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +20 -8
  176. data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +20 -8
  177. data/lib/ory-oathkeeper-client/models/swagger_rule.rb +20 -8
  178. data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +20 -8
  179. data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +20 -8
  180. data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +20 -8
  181. data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +20 -8
  182. data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +20 -8
  183. data/lib/ory-oathkeeper-client/models/swagger_version.rb +20 -8
  184. data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +20 -8
  185. data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +21 -9
  186. data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +20 -8
  187. data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +21 -9
  188. data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +20 -8
  189. data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +21 -9
  190. data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +20 -8
  191. data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +20 -8
  192. data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +21 -9
  193. data/lib/ory-oathkeeper-client/models/upstream.rb +20 -8
  194. data/lib/ory-oathkeeper-client/models/version.rb +20 -8
  195. data/lib/ory-oathkeeper-client/version.rb +3 -3
  196. data/ory-oathkeeper-client.gemspec +4 -5
  197. data/spec/api_client_spec.rb +3 -3
  198. data/spec/configuration_spec.rb +2 -2
  199. data/spec/spec_helper.rb +2 -2
  200. 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-alpha.37
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: 4.2.2
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 type =~ /\AArray<(.*)>/i
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 # or else data not found in attributes(hash), not an issue as the data can be optional
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 :DateTime
133
- DateTime.parse(value)
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
- OryHydraClient.const_get(type).build_from_hash(value)
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-alpha.37
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: 4.2.2
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 type =~ /\AArray<(.*)>/i
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 # or else data not found in attributes(hash), not an issue as the data can be optional
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 :DateTime
128
- DateTime.parse(value)
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
- OryHydraClient.const_get(type).build_from_hash(value)
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-alpha.37
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: 4.2.2
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 type =~ /\AArray<(.*)>/i
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 # or else data not found in attributes(hash), not an issue as the data can be optional
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 :DateTime
290
- DateTime.parse(value)
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
- OryHydraClient.const_get(type).build_from_hash(value)
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-alpha.37
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: 4.2.2
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 type =~ /\AArray<(.*)>/i
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 # or else data not found in attributes(hash), not an issue as the data can be optional
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 :DateTime
130
- DateTime.parse(value)
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
- OryHydraClient.const_get(type).build_from_hash(value)
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-alpha.37
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: 4.2.2
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 type =~ /\AArray<(.*)>/i
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 # or else data not found in attributes(hash), not an issue as the data can be optional
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 :DateTime
138
- DateTime.parse(value)
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
- OryHydraClient.const_get(type).build_from_hash(value)
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-alpha.37
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: 4.2.2
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 type =~ /\AArray<(.*)>/i
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 # or else data not found in attributes(hash), not an issue as the data can be optional
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 :DateTime
130
- DateTime.parse(value)
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
- OryHydraClient.const_get(type).build_from_hash(value)
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