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
  # healthStatus
18
17
  class IsInstanceAliveOK
19
18
  attr_accessor :payload
@@ -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::IsInstanceAliveOK` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::IsInstanceAliveOK` 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::IsInstanceAliveOK`. 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::IsInstanceAliveOK`. 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,31 +3,37 @@
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: Latest
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
16
+ # JSONWebKey json web key
17
17
  class JsonWebKey
18
18
  # The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name.
19
19
  attr_accessor :alg
20
20
 
21
+ # crv
21
22
  attr_accessor :crv
22
23
 
24
+ # d
23
25
  attr_accessor :d
24
26
 
27
+ # dp
25
28
  attr_accessor :dp
26
29
 
30
+ # dq
27
31
  attr_accessor :dq
28
32
 
33
+ # e
29
34
  attr_accessor :e
30
35
 
36
+ # k
31
37
  attr_accessor :k
32
38
 
33
39
  # The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string.
@@ -36,22 +42,28 @@ module OryOathkeeperClient
36
42
  # The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string.
37
43
  attr_accessor :kty
38
44
 
45
+ # n
39
46
  attr_accessor :n
40
47
 
48
+ # p
41
49
  attr_accessor :p
42
50
 
51
+ # q
43
52
  attr_accessor :q
44
53
 
54
+ # qi
45
55
  attr_accessor :qi
46
56
 
47
57
  # The \"use\" (public key use) parameter identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).
48
58
  attr_accessor :use
49
59
 
60
+ # x
50
61
  attr_accessor :x
51
62
 
52
63
  # The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate.
53
64
  attr_accessor :x5c
54
65
 
66
+ # y
55
67
  attr_accessor :y
56
68
 
57
69
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -77,11 +89,6 @@ module OryOathkeeperClient
77
89
  }
78
90
  end
79
91
 
80
- # Returns all the JSON keys this model knows about
81
- def self.acceptable_attributes
82
- attribute_map.values
83
- end
84
-
85
92
  # Attribute type mapping.
86
93
  def self.openapi_types
87
94
  {
@@ -115,13 +122,13 @@ module OryOathkeeperClient
115
122
  # @param [Hash] attributes Model attributes in the form of hash
116
123
  def initialize(attributes = {})
117
124
  if (!attributes.is_a?(Hash))
118
- fail ArgumentError, "The input argument (attributes) must be a hash in `OryOathkeeperClient::JsonWebKey` initialize method"
125
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::JsonWebKey` initialize method"
119
126
  end
120
127
 
121
128
  # check to see if the attribute exists and convert string to symbol for hash key
122
129
  attributes = attributes.each_with_object({}) { |(k, v), h|
123
130
  if (!self.class.attribute_map.key?(k.to_sym))
124
- fail ArgumentError, "`#{k}` is not a valid attribute in `OryOathkeeperClient::JsonWebKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
131
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::JsonWebKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
125
132
  end
126
133
  h[k.to_sym] = v
127
134
  }
@@ -259,9 +266,7 @@ module OryOathkeeperClient
259
266
  def build_from_hash(attributes)
260
267
  return nil unless attributes.is_a?(Hash)
261
268
  self.class.openapi_types.each_pair do |key, type|
262
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
263
- self.send("#{key}=", nil)
264
- elsif type =~ /\AArray<(.*)>/i
269
+ if type =~ /\AArray<(.*)>/i
265
270
  # check to ensure the input is an array given that the attribute
266
271
  # is documented as an array but the input is not
267
272
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -269,7 +274,7 @@ module OryOathkeeperClient
269
274
  end
270
275
  elsif !attributes[self.class.attribute_map[key]].nil?
271
276
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
272
- end
277
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
273
278
  end
274
279
 
275
280
  self
@@ -281,8 +286,8 @@ module OryOathkeeperClient
281
286
  # @return [Object] Deserialized data
282
287
  def _deserialize(type, value)
283
288
  case type.to_sym
284
- when :Time
285
- Time.parse(value)
289
+ when :DateTime
290
+ DateTime.parse(value)
286
291
  when :Date
287
292
  Date.parse(value)
288
293
  when :String
@@ -312,9 +317,7 @@ module OryOathkeeperClient
312
317
  end
313
318
  end
314
319
  else # model
315
- # models (e.g. Pet) or oneOf
316
- klass = OryOathkeeperClient.const_get(type)
317
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
320
+ OryHydraClient.const_get(type).build_from_hash(value)
318
321
  end
319
322
  end
320
323
 
@@ -340,7 +343,7 @@ module OryOathkeeperClient
340
343
  is_nullable = self.class.openapi_nullable.include?(attr)
341
344
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
342
345
  end
343
-
346
+
344
347
  hash[param] = _to_hash(value)
345
348
  end
346
349
  hash
@@ -363,7 +366,5 @@ module OryOathkeeperClient
363
366
  value
364
367
  end
365
368
  end
366
-
367
369
  end
368
-
369
370
  end
@@ -3,17 +3,16 @@
3
3
 
4
4
  #ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies.
5
5
 
6
- The version of the OpenAPI document: v0.0.0-alpha.62
6
+ The version of the OpenAPI document: Latest
7
7
  Contact: hi@ory.am
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 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
  class JsonWebKeySet
18
17
  # The value of the \"keys\" parameter is an array of JWK values. By default, the order of the JWK values within the array does not imply an order of preference among them, although applications of JWK Sets can choose to assign a meaning to the order for their purposes, if desired.
19
18
  attr_accessor :keys
@@ -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::JsonWebKeySet` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::JsonWebKeySet` 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::JsonWebKeySet`. 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::JsonWebKeySet`. 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
  }
@@ -111,9 +105,7 @@ module OryOathkeeperClient
111
105
  def build_from_hash(attributes)
112
106
  return nil unless attributes.is_a?(Hash)
113
107
  self.class.openapi_types.each_pair do |key, type|
114
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
- self.send("#{key}=", nil)
116
- elsif type =~ /\AArray<(.*)>/i
108
+ if type =~ /\AArray<(.*)>/i
117
109
  # check to ensure the input is an array given that the attribute
118
110
  # is documented as an array but the input is not
119
111
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -121,7 +113,7 @@ module OryOathkeeperClient
121
113
  end
122
114
  elsif !attributes[self.class.attribute_map[key]].nil?
123
115
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
- end
116
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
125
117
  end
126
118
 
127
119
  self
@@ -133,8 +125,8 @@ module OryOathkeeperClient
133
125
  # @return [Object] Deserialized data
134
126
  def _deserialize(type, value)
135
127
  case type.to_sym
136
- when :Time
137
- Time.parse(value)
128
+ when :DateTime
129
+ DateTime.parse(value)
138
130
  when :Date
139
131
  Date.parse(value)
140
132
  when :String
@@ -164,9 +156,7 @@ module OryOathkeeperClient
164
156
  end
165
157
  end
166
158
  else # model
167
- # models (e.g. Pet) or oneOf
168
- klass = OryOathkeeperClient.const_get(type)
169
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
159
+ OryHydraClient.const_get(type).build_from_hash(value)
170
160
  end
171
161
  end
172
162
 
@@ -192,7 +182,7 @@ module OryOathkeeperClient
192
182
  is_nullable = self.class.openapi_nullable.include?(attr)
193
183
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
184
  end
195
-
185
+
196
186
  hash[param] = _to_hash(value)
197
187
  end
198
188
  hash
@@ -215,7 +205,5 @@ module OryOathkeeperClient
215
205
  value
216
206
  end
217
207
  end
218
-
219
208
  end
220
-
221
209
  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
  # The standard error format
18
17
  class JudgeForbidden
19
18
  attr_accessor :payload
@@ -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::JudgeForbidden` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::JudgeForbidden` 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::JudgeForbidden`. 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::JudgeForbidden`. 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
  # JudgeForbiddenBody JudgeForbiddenBody JudgeForbiddenBody judge forbidden body
18
17
  class JudgeForbiddenBody
19
18
  # code
@@ -46,16 +45,11 @@ module OryOathkeeperClient
46
45
  }
47
46
  end
48
47
 
49
- # Returns all the JSON keys this model knows about
50
- def self.acceptable_attributes
51
- attribute_map.values
52
- end
53
-
54
48
  # Attribute type mapping.
55
49
  def self.openapi_types
56
50
  {
57
51
  :'code' => :'Integer',
58
- :'details' => :'Array<Object>',
52
+ :'details' => :'Array<Hash<String, Object>>',
59
53
  :'message' => :'String',
60
54
  :'reason' => :'String',
61
55
  :'request' => :'String',
@@ -73,13 +67,13 @@ module OryOathkeeperClient
73
67
  # @param [Hash] attributes Model attributes in the form of hash
74
68
  def initialize(attributes = {})
75
69
  if (!attributes.is_a?(Hash))
76
- fail ArgumentError, "The input argument (attributes) must be a hash in `OryOathkeeperClient::JudgeForbiddenBody` initialize method"
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::JudgeForbiddenBody` initialize method"
77
71
  end
78
72
 
79
73
  # check to see if the attribute exists and convert string to symbol for hash key
80
74
  attributes = attributes.each_with_object({}) { |(k, v), h|
81
75
  if (!self.class.attribute_map.key?(k.to_sym))
82
- fail ArgumentError, "`#{k}` is not a valid attribute in `OryOathkeeperClient::JudgeForbiddenBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::JudgeForbiddenBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
83
77
  end
84
78
  h[k.to_sym] = v
85
79
  }
@@ -162,9 +156,7 @@ module OryOathkeeperClient
162
156
  def build_from_hash(attributes)
163
157
  return nil unless attributes.is_a?(Hash)
164
158
  self.class.openapi_types.each_pair do |key, type|
165
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
166
- self.send("#{key}=", nil)
167
- elsif type =~ /\AArray<(.*)>/i
159
+ if type =~ /\AArray<(.*)>/i
168
160
  # check to ensure the input is an array given that the attribute
169
161
  # is documented as an array but the input is not
170
162
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -172,7 +164,7 @@ module OryOathkeeperClient
172
164
  end
173
165
  elsif !attributes[self.class.attribute_map[key]].nil?
174
166
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
175
- end
167
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
176
168
  end
177
169
 
178
170
  self
@@ -184,8 +176,8 @@ module OryOathkeeperClient
184
176
  # @return [Object] Deserialized data
185
177
  def _deserialize(type, value)
186
178
  case type.to_sym
187
- when :Time
188
- Time.parse(value)
179
+ when :DateTime
180
+ DateTime.parse(value)
189
181
  when :Date
190
182
  Date.parse(value)
191
183
  when :String
@@ -215,9 +207,7 @@ module OryOathkeeperClient
215
207
  end
216
208
  end
217
209
  else # model
218
- # models (e.g. Pet) or oneOf
219
- klass = OryOathkeeperClient.const_get(type)
220
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
210
+ OryHydraClient.const_get(type).build_from_hash(value)
221
211
  end
222
212
  end
223
213
 
@@ -243,7 +233,7 @@ module OryOathkeeperClient
243
233
  is_nullable = self.class.openapi_nullable.include?(attr)
244
234
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
245
235
  end
246
-
236
+
247
237
  hash[param] = _to_hash(value)
248
238
  end
249
239
  hash
@@ -266,7 +256,5 @@ module OryOathkeeperClient
266
256
  value
267
257
  end
268
258
  end
269
-
270
259
  end
271
-
272
260
  end