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