ory-hydra-client 1.9.0.alpha2 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -5
  3. data/docs/AcceptConsentRequest.md +18 -17
  4. data/docs/AcceptLoginRequest.md +18 -17
  5. data/docs/AdminApi.md +883 -304
  6. data/docs/CompletedRequest.md +8 -7
  7. data/docs/ConsentRequest.md +30 -29
  8. data/docs/ConsentRequestSession.md +10 -9
  9. data/docs/ContainerWaitOKBodyError.md +8 -7
  10. data/docs/FlushInactiveOAuth2TokensRequest.md +8 -7
  11. data/docs/GenericError.md +14 -13
  12. data/docs/HealthNotReadyStatus.md +8 -7
  13. data/docs/HealthStatus.md +8 -7
  14. data/docs/JSONWebKey.md +40 -39
  15. data/docs/JSONWebKeySet.md +8 -7
  16. data/docs/JsonWebKeySetGeneratorRequest.md +12 -11
  17. data/docs/LoginRequest.md +24 -23
  18. data/docs/LogoutRequest.md +16 -13
  19. data/docs/OAuth2Client.md +72 -71
  20. data/docs/OAuth2TokenIntrospection.md +34 -31
  21. data/docs/Oauth2TokenResponse.md +18 -17
  22. data/docs/OpenIDConnectContext.md +16 -15
  23. data/docs/PatchDocument.md +24 -0
  24. data/docs/PluginConfig.md +38 -37
  25. data/docs/PluginConfigArgs.md +14 -13
  26. data/docs/PluginConfigInterface.md +10 -9
  27. data/docs/PluginConfigLinux.md +12 -11
  28. data/docs/PluginConfigNetwork.md +8 -7
  29. data/docs/PluginConfigRootfs.md +10 -9
  30. data/docs/PluginConfigUser.md +10 -9
  31. data/docs/PluginDevice.md +14 -13
  32. data/docs/PluginEnv.md +14 -13
  33. data/docs/PluginInterfaceType.md +12 -11
  34. data/docs/PluginMount.md +20 -19
  35. data/docs/PluginSettings.md +14 -13
  36. data/docs/PreviousConsentSession.md +20 -19
  37. data/docs/PublicApi.md +201 -60
  38. data/docs/RejectRequest.md +16 -15
  39. data/docs/RequestWasHandledResponse.md +18 -0
  40. data/docs/UserinfoResponse.md +44 -43
  41. data/docs/Version.md +8 -7
  42. data/docs/Volume.md +34 -0
  43. data/docs/VolumeUsageData.md +10 -9
  44. data/docs/WellKnown.md +58 -55
  45. data/lib/ory-hydra-client.rb +5 -2
  46. data/lib/ory-hydra-client/api/admin_api.rb +197 -96
  47. data/lib/ory-hydra-client/api/public_api.rb +34 -26
  48. data/lib/ory-hydra-client/api_client.rb +51 -49
  49. data/lib/ory-hydra-client/api_error.rb +2 -2
  50. data/lib/ory-hydra-client/configuration.rb +40 -11
  51. data/lib/ory-hydra-client/models/accept_consent_request.rb +21 -9
  52. data/lib/ory-hydra-client/models/accept_login_request.rb +20 -8
  53. data/lib/ory-hydra-client/models/completed_request.rb +20 -8
  54. data/lib/ory-hydra-client/models/consent_request.rb +20 -8
  55. data/lib/ory-hydra-client/models/consent_request_session.rb +20 -8
  56. data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +20 -8
  57. data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +21 -9
  58. data/lib/ory-hydra-client/models/generic_error.rb +20 -8
  59. data/lib/ory-hydra-client/models/health_not_ready_status.rb +20 -8
  60. data/lib/ory-hydra-client/models/health_status.rb +20 -8
  61. data/lib/ory-hydra-client/models/json_web_key.rb +20 -8
  62. data/lib/ory-hydra-client/models/json_web_key_set.rb +20 -8
  63. data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +20 -8
  64. data/lib/ory-hydra-client/models/login_request.rb +20 -8
  65. data/lib/ory-hydra-client/models/logout_request.rb +31 -9
  66. data/lib/ory-hydra-client/models/o_auth2_client.rb +22 -10
  67. data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +32 -10
  68. data/lib/ory-hydra-client/models/oauth2_token_response.rb +20 -8
  69. data/lib/ory-hydra-client/models/open_id_connect_context.rb +20 -8
  70. data/lib/ory-hydra-client/models/patch_document.rb +260 -0
  71. data/lib/ory-hydra-client/models/plugin_config.rb +20 -8
  72. data/lib/ory-hydra-client/models/plugin_config_args.rb +20 -8
  73. data/lib/ory-hydra-client/models/plugin_config_interface.rb +20 -8
  74. data/lib/ory-hydra-client/models/plugin_config_linux.rb +20 -8
  75. data/lib/ory-hydra-client/models/plugin_config_network.rb +20 -8
  76. data/lib/ory-hydra-client/models/plugin_config_rootfs.rb +20 -8
  77. data/lib/ory-hydra-client/models/plugin_config_user.rb +20 -8
  78. data/lib/ory-hydra-client/models/plugin_device.rb +20 -8
  79. data/lib/ory-hydra-client/models/plugin_env.rb +20 -8
  80. data/lib/ory-hydra-client/models/plugin_interface_type.rb +20 -8
  81. data/lib/ory-hydra-client/models/plugin_mount.rb +20 -8
  82. data/lib/ory-hydra-client/models/plugin_settings.rb +20 -8
  83. data/lib/ory-hydra-client/models/previous_consent_session.rb +21 -9
  84. data/lib/ory-hydra-client/models/reject_request.rb +20 -8
  85. data/lib/ory-hydra-client/models/request_was_handled_response.rb +224 -0
  86. data/lib/ory-hydra-client/models/userinfo_response.rb +20 -8
  87. data/lib/ory-hydra-client/models/version.rb +20 -8
  88. data/lib/ory-hydra-client/models/volume.rb +333 -0
  89. data/lib/ory-hydra-client/models/volume_usage_data.rb +20 -8
  90. data/lib/ory-hydra-client/models/well_known.rb +33 -9
  91. data/lib/ory-hydra-client/version.rb +3 -3
  92. data/ory-hydra-client.gemspec +4 -5
  93. data/spec/api_client_spec.rb +3 -3
  94. data/spec/configuration_spec.rb +2 -2
  95. data/spec/models/patch_document_spec.rb +52 -0
  96. data/spec/models/request_was_handled_response_spec.rb +34 -0
  97. data/spec/models/volume_spec.rb +82 -0
  98. data/spec/spec_helper.rb +2 -2
  99. metadata +45 -53
@@ -0,0 +1,333 @@
1
+ =begin
2
+ #ORY Hydra
3
+
4
+ #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
+
6
+ The version of the OpenAPI document: v1.10.2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module OryHydraClient
17
+ # Volume volume
18
+ class Volume
19
+ # Date/Time the volume was created.
20
+ attr_accessor :created_at
21
+
22
+ # Name of the volume driver used by the volume.
23
+ attr_accessor :driver
24
+
25
+ # User-defined key/value metadata.
26
+ attr_accessor :labels
27
+
28
+ # Mount path of the volume on the host.
29
+ attr_accessor :mountpoint
30
+
31
+ # Name of the volume.
32
+ attr_accessor :name
33
+
34
+ # The driver specific options used when creating the volume.
35
+ attr_accessor :options
36
+
37
+ # The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level.
38
+ attr_accessor :scope
39
+
40
+ # Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature.
41
+ attr_accessor :status
42
+
43
+ attr_accessor :usage_data
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'created_at' => :'CreatedAt',
49
+ :'driver' => :'Driver',
50
+ :'labels' => :'Labels',
51
+ :'mountpoint' => :'Mountpoint',
52
+ :'name' => :'Name',
53
+ :'options' => :'Options',
54
+ :'scope' => :'Scope',
55
+ :'status' => :'Status',
56
+ :'usage_data' => :'UsageData'
57
+ }
58
+ end
59
+
60
+ # Returns all the JSON keys this model knows about
61
+ def self.acceptable_attributes
62
+ attribute_map.values
63
+ end
64
+
65
+ # Attribute type mapping.
66
+ def self.openapi_types
67
+ {
68
+ :'created_at' => :'String',
69
+ :'driver' => :'String',
70
+ :'labels' => :'Hash<String, String>',
71
+ :'mountpoint' => :'String',
72
+ :'name' => :'String',
73
+ :'options' => :'Hash<String, String>',
74
+ :'scope' => :'String',
75
+ :'status' => :'Object',
76
+ :'usage_data' => :'VolumeUsageData'
77
+ }
78
+ end
79
+
80
+ # List of attributes with nullable: true
81
+ def self.openapi_nullable
82
+ Set.new([
83
+ ])
84
+ end
85
+
86
+ # Initializes the object
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ def initialize(attributes = {})
89
+ if (!attributes.is_a?(Hash))
90
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::Volume` initialize method"
91
+ end
92
+
93
+ # check to see if the attribute exists and convert string to symbol for hash key
94
+ attributes = attributes.each_with_object({}) { |(k, v), h|
95
+ if (!self.class.attribute_map.key?(k.to_sym))
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::Volume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
97
+ end
98
+ h[k.to_sym] = v
99
+ }
100
+
101
+ if attributes.key?(:'created_at')
102
+ self.created_at = attributes[:'created_at']
103
+ end
104
+
105
+ if attributes.key?(:'driver')
106
+ self.driver = attributes[:'driver']
107
+ end
108
+
109
+ if attributes.key?(:'labels')
110
+ if (value = attributes[:'labels']).is_a?(Hash)
111
+ self.labels = value
112
+ end
113
+ end
114
+
115
+ if attributes.key?(:'mountpoint')
116
+ self.mountpoint = attributes[:'mountpoint']
117
+ end
118
+
119
+ if attributes.key?(:'name')
120
+ self.name = attributes[:'name']
121
+ end
122
+
123
+ if attributes.key?(:'options')
124
+ if (value = attributes[:'options']).is_a?(Hash)
125
+ self.options = value
126
+ end
127
+ end
128
+
129
+ if attributes.key?(:'scope')
130
+ self.scope = attributes[:'scope']
131
+ end
132
+
133
+ if attributes.key?(:'status')
134
+ self.status = attributes[:'status']
135
+ end
136
+
137
+ if attributes.key?(:'usage_data')
138
+ self.usage_data = attributes[:'usage_data']
139
+ end
140
+ end
141
+
142
+ # Show invalid properties with the reasons. Usually used together with valid?
143
+ # @return Array for valid properties with the reasons
144
+ def list_invalid_properties
145
+ invalid_properties = Array.new
146
+ if @driver.nil?
147
+ invalid_properties.push('invalid value for "driver", driver cannot be nil.')
148
+ end
149
+
150
+ if @labels.nil?
151
+ invalid_properties.push('invalid value for "labels", labels cannot be nil.')
152
+ end
153
+
154
+ if @mountpoint.nil?
155
+ invalid_properties.push('invalid value for "mountpoint", mountpoint cannot be nil.')
156
+ end
157
+
158
+ if @name.nil?
159
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
160
+ end
161
+
162
+ if @options.nil?
163
+ invalid_properties.push('invalid value for "options", options cannot be nil.')
164
+ end
165
+
166
+ if @scope.nil?
167
+ invalid_properties.push('invalid value for "scope", scope cannot be nil.')
168
+ end
169
+
170
+ invalid_properties
171
+ end
172
+
173
+ # Check to see if the all the properties in the model are valid
174
+ # @return true if the model is valid
175
+ def valid?
176
+ return false if @driver.nil?
177
+ return false if @labels.nil?
178
+ return false if @mountpoint.nil?
179
+ return false if @name.nil?
180
+ return false if @options.nil?
181
+ return false if @scope.nil?
182
+ true
183
+ end
184
+
185
+ # Checks equality by comparing each attribute.
186
+ # @param [Object] Object to be compared
187
+ def ==(o)
188
+ return true if self.equal?(o)
189
+ self.class == o.class &&
190
+ created_at == o.created_at &&
191
+ driver == o.driver &&
192
+ labels == o.labels &&
193
+ mountpoint == o.mountpoint &&
194
+ name == o.name &&
195
+ options == o.options &&
196
+ scope == o.scope &&
197
+ status == o.status &&
198
+ usage_data == o.usage_data
199
+ end
200
+
201
+ # @see the `==` method
202
+ # @param [Object] Object to be compared
203
+ def eql?(o)
204
+ self == o
205
+ end
206
+
207
+ # Calculates hash code according to all attributes.
208
+ # @return [Integer] Hash code
209
+ def hash
210
+ [created_at, driver, labels, mountpoint, name, options, scope, status, usage_data].hash
211
+ end
212
+
213
+ # Builds the object from hash
214
+ # @param [Hash] attributes Model attributes in the form of hash
215
+ # @return [Object] Returns the model itself
216
+ def self.build_from_hash(attributes)
217
+ new.build_from_hash(attributes)
218
+ end
219
+
220
+ # Builds the object from hash
221
+ # @param [Hash] attributes Model attributes in the form of hash
222
+ # @return [Object] Returns the model itself
223
+ def build_from_hash(attributes)
224
+ return nil unless attributes.is_a?(Hash)
225
+ self.class.openapi_types.each_pair do |key, type|
226
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
227
+ self.send("#{key}=", nil)
228
+ elsif type =~ /\AArray<(.*)>/i
229
+ # check to ensure the input is an array given that the attribute
230
+ # is documented as an array but the input is not
231
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
232
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
233
+ end
234
+ elsif !attributes[self.class.attribute_map[key]].nil?
235
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
236
+ end
237
+ end
238
+
239
+ self
240
+ end
241
+
242
+ # Deserializes the data based on type
243
+ # @param string type Data type
244
+ # @param string value Value to be deserialized
245
+ # @return [Object] Deserialized data
246
+ def _deserialize(type, value)
247
+ case type.to_sym
248
+ when :Time
249
+ Time.parse(value)
250
+ when :Date
251
+ Date.parse(value)
252
+ when :String
253
+ value.to_s
254
+ when :Integer
255
+ value.to_i
256
+ when :Float
257
+ value.to_f
258
+ when :Boolean
259
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
260
+ true
261
+ else
262
+ false
263
+ end
264
+ when :Object
265
+ # generic object (usually a Hash), return directly
266
+ value
267
+ when /\AArray<(?<inner_type>.+)>\z/
268
+ inner_type = Regexp.last_match[:inner_type]
269
+ value.map { |v| _deserialize(inner_type, v) }
270
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
271
+ k_type = Regexp.last_match[:k_type]
272
+ v_type = Regexp.last_match[:v_type]
273
+ {}.tap do |hash|
274
+ value.each do |k, v|
275
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
276
+ end
277
+ end
278
+ else # model
279
+ # models (e.g. Pet) or oneOf
280
+ klass = OryHydraClient.const_get(type)
281
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
282
+ end
283
+ end
284
+
285
+ # Returns the string representation of the object
286
+ # @return [String] String presentation of the object
287
+ def to_s
288
+ to_hash.to_s
289
+ end
290
+
291
+ # to_body is an alias to to_hash (backward compatibility)
292
+ # @return [Hash] Returns the object in the form of hash
293
+ def to_body
294
+ to_hash
295
+ end
296
+
297
+ # Returns the object in the form of hash
298
+ # @return [Hash] Returns the object in the form of hash
299
+ def to_hash
300
+ hash = {}
301
+ self.class.attribute_map.each_pair do |attr, param|
302
+ value = self.send(attr)
303
+ if value.nil?
304
+ is_nullable = self.class.openapi_nullable.include?(attr)
305
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
306
+ end
307
+
308
+ hash[param] = _to_hash(value)
309
+ end
310
+ hash
311
+ end
312
+
313
+ # Outputs non-array value in the form of hash
314
+ # For object, use to_hash. Otherwise, just return the value
315
+ # @param [Object] value Any valid value
316
+ # @return [Hash] Returns the value in the form of hash
317
+ def _to_hash(value)
318
+ if value.is_a?(Array)
319
+ value.compact.map { |v| _to_hash(v) }
320
+ elsif value.is_a?(Hash)
321
+ {}.tap do |hash|
322
+ value.each { |k, v| hash[k] = _to_hash(v) }
323
+ end
324
+ elsif value.respond_to? :to_hash
325
+ value.to_hash
326
+ else
327
+ value
328
+ end
329
+ end
330
+
331
+ end
332
+
333
+ end
@@ -3,14 +3,15 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v1.9.0-alpha.2
6
+ The version of the OpenAPI document: v1.10.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 5.1.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module OryHydraClient
16
17
  # VolumeUsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints.
@@ -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
  {
@@ -124,7 +130,9 @@ module OryHydraClient
124
130
  def build_from_hash(attributes)
125
131
  return nil unless attributes.is_a?(Hash)
126
132
  self.class.openapi_types.each_pair do |key, type|
127
- if type =~ /\AArray<(.*)>/i
133
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
+ self.send("#{key}=", nil)
135
+ elsif type =~ /\AArray<(.*)>/i
128
136
  # check to ensure the input is an array given that the attribute
129
137
  # is documented as an array but the input is not
130
138
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -132,7 +140,7 @@ module OryHydraClient
132
140
  end
133
141
  elsif !attributes[self.class.attribute_map[key]].nil?
134
142
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
- end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
136
144
  end
137
145
 
138
146
  self
@@ -144,8 +152,8 @@ module OryHydraClient
144
152
  # @return [Object] Deserialized data
145
153
  def _deserialize(type, value)
146
154
  case type.to_sym
147
- when :DateTime
148
- DateTime.parse(value)
155
+ when :Time
156
+ Time.parse(value)
149
157
  when :Date
150
158
  Date.parse(value)
151
159
  when :String
@@ -175,7 +183,9 @@ module OryHydraClient
175
183
  end
176
184
  end
177
185
  else # model
178
- OryHydraClient.const_get(type).build_from_hash(value)
186
+ # models (e.g. Pet) or oneOf
187
+ klass = OryHydraClient.const_get(type)
188
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
189
  end
180
190
  end
181
191
 
@@ -201,7 +211,7 @@ module OryHydraClient
201
211
  is_nullable = self.class.openapi_nullable.include?(attr)
202
212
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
213
  end
204
-
214
+
205
215
  hash[param] = _to_hash(value)
206
216
  end
207
217
  hash
@@ -224,5 +234,7 @@ module OryHydraClient
224
234
  value
225
235
  end
226
236
  end
237
+
227
238
  end
239
+
228
240
  end
@@ -3,14 +3,15 @@
3
3
 
4
4
  #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
5
 
6
- The version of the OpenAPI document: v1.9.0-alpha.2
6
+ The version of the OpenAPI document: v1.10.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 5.1.0
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
+ require 'time'
14
15
 
15
16
  module OryHydraClient
16
17
  # It includes links to several endpoints (e.g. /oauth2/token) and exposes information on supported signature algorithms among others.
@@ -54,6 +55,9 @@ module OryHydraClient
54
55
  # URL of the OP's Dynamic Client Registration Endpoint.
55
56
  attr_accessor :registration_endpoint
56
57
 
58
+ # JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter).
59
+ attr_accessor :request_object_signing_alg_values_supported
60
+
57
61
  # Boolean value specifying whether the OP supports use of the request parameter, with true indicating support.
58
62
  attr_accessor :request_parameter_supported
59
63
 
@@ -106,6 +110,7 @@ module OryHydraClient
106
110
  :'issuer' => :'issuer',
107
111
  :'jwks_uri' => :'jwks_uri',
108
112
  :'registration_endpoint' => :'registration_endpoint',
113
+ :'request_object_signing_alg_values_supported' => :'request_object_signing_alg_values_supported',
109
114
  :'request_parameter_supported' => :'request_parameter_supported',
110
115
  :'request_uri_parameter_supported' => :'request_uri_parameter_supported',
111
116
  :'require_request_uri_registration' => :'require_request_uri_registration',
@@ -121,6 +126,11 @@ module OryHydraClient
121
126
  }
122
127
  end
123
128
 
129
+ # Returns all the JSON keys this model knows about
130
+ def self.acceptable_attributes
131
+ attribute_map.values
132
+ end
133
+
124
134
  # Attribute type mapping.
125
135
  def self.openapi_types
126
136
  {
@@ -137,6 +147,7 @@ module OryHydraClient
137
147
  :'issuer' => :'String',
138
148
  :'jwks_uri' => :'String',
139
149
  :'registration_endpoint' => :'String',
150
+ :'request_object_signing_alg_values_supported' => :'Array<String>',
140
151
  :'request_parameter_supported' => :'Boolean',
141
152
  :'request_uri_parameter_supported' => :'Boolean',
142
153
  :'require_request_uri_registration' => :'Boolean',
@@ -231,6 +242,12 @@ module OryHydraClient
231
242
  self.registration_endpoint = attributes[:'registration_endpoint']
232
243
  end
233
244
 
245
+ if attributes.key?(:'request_object_signing_alg_values_supported')
246
+ if (value = attributes[:'request_object_signing_alg_values_supported']).is_a?(Array)
247
+ self.request_object_signing_alg_values_supported = value
248
+ end
249
+ end
250
+
234
251
  if attributes.key?(:'request_parameter_supported')
235
252
  self.request_parameter_supported = attributes[:'request_parameter_supported']
236
253
  end
@@ -358,6 +375,7 @@ module OryHydraClient
358
375
  issuer == o.issuer &&
359
376
  jwks_uri == o.jwks_uri &&
360
377
  registration_endpoint == o.registration_endpoint &&
378
+ request_object_signing_alg_values_supported == o.request_object_signing_alg_values_supported &&
361
379
  request_parameter_supported == o.request_parameter_supported &&
362
380
  request_uri_parameter_supported == o.request_uri_parameter_supported &&
363
381
  require_request_uri_registration == o.require_request_uri_registration &&
@@ -381,7 +399,7 @@ module OryHydraClient
381
399
  # Calculates hash code according to all attributes.
382
400
  # @return [Integer] Hash code
383
401
  def hash
384
- [authorization_endpoint, backchannel_logout_session_supported, backchannel_logout_supported, claims_parameter_supported, claims_supported, end_session_endpoint, frontchannel_logout_session_supported, frontchannel_logout_supported, grant_types_supported, id_token_signing_alg_values_supported, issuer, jwks_uri, registration_endpoint, request_parameter_supported, request_uri_parameter_supported, require_request_uri_registration, response_modes_supported, response_types_supported, revocation_endpoint, scopes_supported, subject_types_supported, token_endpoint, token_endpoint_auth_methods_supported, userinfo_endpoint, userinfo_signing_alg_values_supported].hash
402
+ [authorization_endpoint, backchannel_logout_session_supported, backchannel_logout_supported, claims_parameter_supported, claims_supported, end_session_endpoint, frontchannel_logout_session_supported, frontchannel_logout_supported, grant_types_supported, id_token_signing_alg_values_supported, issuer, jwks_uri, registration_endpoint, request_object_signing_alg_values_supported, request_parameter_supported, request_uri_parameter_supported, require_request_uri_registration, response_modes_supported, response_types_supported, revocation_endpoint, scopes_supported, subject_types_supported, token_endpoint, token_endpoint_auth_methods_supported, userinfo_endpoint, userinfo_signing_alg_values_supported].hash
385
403
  end
386
404
 
387
405
  # Builds the object from hash
@@ -397,7 +415,9 @@ module OryHydraClient
397
415
  def build_from_hash(attributes)
398
416
  return nil unless attributes.is_a?(Hash)
399
417
  self.class.openapi_types.each_pair do |key, type|
400
- if type =~ /\AArray<(.*)>/i
418
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
419
+ self.send("#{key}=", nil)
420
+ elsif type =~ /\AArray<(.*)>/i
401
421
  # check to ensure the input is an array given that the attribute
402
422
  # is documented as an array but the input is not
403
423
  if attributes[self.class.attribute_map[key]].is_a?(Array)
@@ -405,7 +425,7 @@ module OryHydraClient
405
425
  end
406
426
  elsif !attributes[self.class.attribute_map[key]].nil?
407
427
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
408
- end # or else data not found in attributes(hash), not an issue as the data can be optional
428
+ end
409
429
  end
410
430
 
411
431
  self
@@ -417,8 +437,8 @@ module OryHydraClient
417
437
  # @return [Object] Deserialized data
418
438
  def _deserialize(type, value)
419
439
  case type.to_sym
420
- when :DateTime
421
- DateTime.parse(value)
440
+ when :Time
441
+ Time.parse(value)
422
442
  when :Date
423
443
  Date.parse(value)
424
444
  when :String
@@ -448,7 +468,9 @@ module OryHydraClient
448
468
  end
449
469
  end
450
470
  else # model
451
- OryHydraClient.const_get(type).build_from_hash(value)
471
+ # models (e.g. Pet) or oneOf
472
+ klass = OryHydraClient.const_get(type)
473
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
452
474
  end
453
475
  end
454
476
 
@@ -474,7 +496,7 @@ module OryHydraClient
474
496
  is_nullable = self.class.openapi_nullable.include?(attr)
475
497
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
476
498
  end
477
-
499
+
478
500
  hash[param] = _to_hash(value)
479
501
  end
480
502
  hash
@@ -497,5 +519,7 @@ module OryHydraClient
497
519
  value
498
520
  end
499
521
  end
522
+
500
523
  end
524
+
501
525
  end