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.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/docs/AcceptConsentRequest.md +18 -17
- data/docs/AcceptLoginRequest.md +18 -17
- data/docs/AdminApi.md +883 -304
- data/docs/CompletedRequest.md +8 -7
- data/docs/ConsentRequest.md +30 -29
- data/docs/ConsentRequestSession.md +10 -9
- data/docs/ContainerWaitOKBodyError.md +8 -7
- data/docs/FlushInactiveOAuth2TokensRequest.md +8 -7
- data/docs/GenericError.md +14 -13
- data/docs/HealthNotReadyStatus.md +8 -7
- data/docs/HealthStatus.md +8 -7
- data/docs/JSONWebKey.md +40 -39
- data/docs/JSONWebKeySet.md +8 -7
- data/docs/JsonWebKeySetGeneratorRequest.md +12 -11
- data/docs/LoginRequest.md +24 -23
- data/docs/LogoutRequest.md +16 -13
- data/docs/OAuth2Client.md +72 -71
- data/docs/OAuth2TokenIntrospection.md +34 -31
- data/docs/Oauth2TokenResponse.md +18 -17
- data/docs/OpenIDConnectContext.md +16 -15
- data/docs/PatchDocument.md +24 -0
- data/docs/PluginConfig.md +38 -37
- data/docs/PluginConfigArgs.md +14 -13
- data/docs/PluginConfigInterface.md +10 -9
- data/docs/PluginConfigLinux.md +12 -11
- data/docs/PluginConfigNetwork.md +8 -7
- data/docs/PluginConfigRootfs.md +10 -9
- data/docs/PluginConfigUser.md +10 -9
- data/docs/PluginDevice.md +14 -13
- data/docs/PluginEnv.md +14 -13
- data/docs/PluginInterfaceType.md +12 -11
- data/docs/PluginMount.md +20 -19
- data/docs/PluginSettings.md +14 -13
- data/docs/PreviousConsentSession.md +20 -19
- data/docs/PublicApi.md +201 -60
- data/docs/RejectRequest.md +16 -15
- data/docs/RequestWasHandledResponse.md +18 -0
- data/docs/UserinfoResponse.md +44 -43
- data/docs/Version.md +8 -7
- data/docs/Volume.md +34 -0
- data/docs/VolumeUsageData.md +10 -9
- data/docs/WellKnown.md +58 -55
- data/lib/ory-hydra-client.rb +5 -2
- data/lib/ory-hydra-client/api/admin_api.rb +197 -96
- data/lib/ory-hydra-client/api/public_api.rb +34 -26
- data/lib/ory-hydra-client/api_client.rb +51 -49
- data/lib/ory-hydra-client/api_error.rb +2 -2
- data/lib/ory-hydra-client/configuration.rb +40 -11
- data/lib/ory-hydra-client/models/accept_consent_request.rb +21 -9
- data/lib/ory-hydra-client/models/accept_login_request.rb +20 -8
- data/lib/ory-hydra-client/models/completed_request.rb +20 -8
- data/lib/ory-hydra-client/models/consent_request.rb +20 -8
- data/lib/ory-hydra-client/models/consent_request_session.rb +20 -8
- data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +20 -8
- data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +21 -9
- data/lib/ory-hydra-client/models/generic_error.rb +20 -8
- data/lib/ory-hydra-client/models/health_not_ready_status.rb +20 -8
- data/lib/ory-hydra-client/models/health_status.rb +20 -8
- data/lib/ory-hydra-client/models/json_web_key.rb +20 -8
- data/lib/ory-hydra-client/models/json_web_key_set.rb +20 -8
- data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +20 -8
- data/lib/ory-hydra-client/models/login_request.rb +20 -8
- data/lib/ory-hydra-client/models/logout_request.rb +31 -9
- data/lib/ory-hydra-client/models/o_auth2_client.rb +22 -10
- data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +32 -10
- data/lib/ory-hydra-client/models/oauth2_token_response.rb +20 -8
- data/lib/ory-hydra-client/models/open_id_connect_context.rb +20 -8
- data/lib/ory-hydra-client/models/patch_document.rb +260 -0
- data/lib/ory-hydra-client/models/plugin_config.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_config_args.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_config_interface.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_config_linux.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_config_network.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_config_rootfs.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_config_user.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_device.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_env.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_interface_type.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_mount.rb +20 -8
- data/lib/ory-hydra-client/models/plugin_settings.rb +20 -8
- data/lib/ory-hydra-client/models/previous_consent_session.rb +21 -9
- data/lib/ory-hydra-client/models/reject_request.rb +20 -8
- data/lib/ory-hydra-client/models/request_was_handled_response.rb +224 -0
- data/lib/ory-hydra-client/models/userinfo_response.rb +20 -8
- data/lib/ory-hydra-client/models/version.rb +20 -8
- data/lib/ory-hydra-client/models/volume.rb +333 -0
- data/lib/ory-hydra-client/models/volume_usage_data.rb +20 -8
- data/lib/ory-hydra-client/models/well_known.rb +33 -9
- data/lib/ory-hydra-client/version.rb +3 -3
- data/ory-hydra-client.gemspec +4 -5
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/patch_document_spec.rb +52 -0
- data/spec/models/request_was_handled_response_spec.rb +34 -0
- data/spec/models/volume_spec.rb +82 -0
- data/spec/spec_helper.rb +2 -2
- metadata +45 -53
|
@@ -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.
|
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
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
|
# PluginDevice plugin device
|
|
@@ -37,6 +38,11 @@ module OryHydraClient
|
|
|
37
38
|
}
|
|
38
39
|
end
|
|
39
40
|
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
40
46
|
# Attribute type mapping.
|
|
41
47
|
def self.openapi_types
|
|
42
48
|
{
|
|
@@ -156,7 +162,9 @@ module OryHydraClient
|
|
|
156
162
|
def build_from_hash(attributes)
|
|
157
163
|
return nil unless attributes.is_a?(Hash)
|
|
158
164
|
self.class.openapi_types.each_pair do |key, type|
|
|
159
|
-
if
|
|
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
|
|
160
168
|
# check to ensure the input is an array given that the attribute
|
|
161
169
|
# is documented as an array but the input is not
|
|
162
170
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -164,7 +172,7 @@ module OryHydraClient
|
|
|
164
172
|
end
|
|
165
173
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
166
174
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
167
|
-
end
|
|
175
|
+
end
|
|
168
176
|
end
|
|
169
177
|
|
|
170
178
|
self
|
|
@@ -176,8 +184,8 @@ module OryHydraClient
|
|
|
176
184
|
# @return [Object] Deserialized data
|
|
177
185
|
def _deserialize(type, value)
|
|
178
186
|
case type.to_sym
|
|
179
|
-
when :
|
|
180
|
-
|
|
187
|
+
when :Time
|
|
188
|
+
Time.parse(value)
|
|
181
189
|
when :Date
|
|
182
190
|
Date.parse(value)
|
|
183
191
|
when :String
|
|
@@ -207,7 +215,9 @@ module OryHydraClient
|
|
|
207
215
|
end
|
|
208
216
|
end
|
|
209
217
|
else # model
|
|
210
|
-
|
|
218
|
+
# models (e.g. Pet) or oneOf
|
|
219
|
+
klass = OryHydraClient.const_get(type)
|
|
220
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
211
221
|
end
|
|
212
222
|
end
|
|
213
223
|
|
|
@@ -233,7 +243,7 @@ module OryHydraClient
|
|
|
233
243
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
234
244
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
235
245
|
end
|
|
236
|
-
|
|
246
|
+
|
|
237
247
|
hash[param] = _to_hash(value)
|
|
238
248
|
end
|
|
239
249
|
hash
|
|
@@ -256,5 +266,7 @@ module OryHydraClient
|
|
|
256
266
|
value
|
|
257
267
|
end
|
|
258
268
|
end
|
|
269
|
+
|
|
259
270
|
end
|
|
271
|
+
|
|
260
272
|
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.
|
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
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
|
# PluginEnv plugin env
|
|
@@ -37,6 +38,11 @@ module OryHydraClient
|
|
|
37
38
|
}
|
|
38
39
|
end
|
|
39
40
|
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
40
46
|
# Attribute type mapping.
|
|
41
47
|
def self.openapi_types
|
|
42
48
|
{
|
|
@@ -156,7 +162,9 @@ module OryHydraClient
|
|
|
156
162
|
def build_from_hash(attributes)
|
|
157
163
|
return nil unless attributes.is_a?(Hash)
|
|
158
164
|
self.class.openapi_types.each_pair do |key, type|
|
|
159
|
-
if
|
|
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
|
|
160
168
|
# check to ensure the input is an array given that the attribute
|
|
161
169
|
# is documented as an array but the input is not
|
|
162
170
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -164,7 +172,7 @@ module OryHydraClient
|
|
|
164
172
|
end
|
|
165
173
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
166
174
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
167
|
-
end
|
|
175
|
+
end
|
|
168
176
|
end
|
|
169
177
|
|
|
170
178
|
self
|
|
@@ -176,8 +184,8 @@ module OryHydraClient
|
|
|
176
184
|
# @return [Object] Deserialized data
|
|
177
185
|
def _deserialize(type, value)
|
|
178
186
|
case type.to_sym
|
|
179
|
-
when :
|
|
180
|
-
|
|
187
|
+
when :Time
|
|
188
|
+
Time.parse(value)
|
|
181
189
|
when :Date
|
|
182
190
|
Date.parse(value)
|
|
183
191
|
when :String
|
|
@@ -207,7 +215,9 @@ module OryHydraClient
|
|
|
207
215
|
end
|
|
208
216
|
end
|
|
209
217
|
else # model
|
|
210
|
-
|
|
218
|
+
# models (e.g. Pet) or oneOf
|
|
219
|
+
klass = OryHydraClient.const_get(type)
|
|
220
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
211
221
|
end
|
|
212
222
|
end
|
|
213
223
|
|
|
@@ -233,7 +243,7 @@ module OryHydraClient
|
|
|
233
243
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
234
244
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
235
245
|
end
|
|
236
|
-
|
|
246
|
+
|
|
237
247
|
hash[param] = _to_hash(value)
|
|
238
248
|
end
|
|
239
249
|
hash
|
|
@@ -256,5 +266,7 @@ module OryHydraClient
|
|
|
256
266
|
value
|
|
257
267
|
end
|
|
258
268
|
end
|
|
269
|
+
|
|
259
270
|
end
|
|
271
|
+
|
|
260
272
|
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.
|
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
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
|
# PluginInterfaceType plugin interface type
|
|
@@ -33,6 +34,11 @@ module OryHydraClient
|
|
|
33
34
|
}
|
|
34
35
|
end
|
|
35
36
|
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
# Attribute type mapping.
|
|
37
43
|
def self.openapi_types
|
|
38
44
|
{
|
|
@@ -139,7 +145,9 @@ module OryHydraClient
|
|
|
139
145
|
def build_from_hash(attributes)
|
|
140
146
|
return nil unless attributes.is_a?(Hash)
|
|
141
147
|
self.class.openapi_types.each_pair do |key, type|
|
|
142
|
-
if
|
|
148
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
149
|
+
self.send("#{key}=", nil)
|
|
150
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
143
151
|
# check to ensure the input is an array given that the attribute
|
|
144
152
|
# is documented as an array but the input is not
|
|
145
153
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -147,7 +155,7 @@ module OryHydraClient
|
|
|
147
155
|
end
|
|
148
156
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
149
157
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
150
|
-
end
|
|
158
|
+
end
|
|
151
159
|
end
|
|
152
160
|
|
|
153
161
|
self
|
|
@@ -159,8 +167,8 @@ module OryHydraClient
|
|
|
159
167
|
# @return [Object] Deserialized data
|
|
160
168
|
def _deserialize(type, value)
|
|
161
169
|
case type.to_sym
|
|
162
|
-
when :
|
|
163
|
-
|
|
170
|
+
when :Time
|
|
171
|
+
Time.parse(value)
|
|
164
172
|
when :Date
|
|
165
173
|
Date.parse(value)
|
|
166
174
|
when :String
|
|
@@ -190,7 +198,9 @@ module OryHydraClient
|
|
|
190
198
|
end
|
|
191
199
|
end
|
|
192
200
|
else # model
|
|
193
|
-
|
|
201
|
+
# models (e.g. Pet) or oneOf
|
|
202
|
+
klass = OryHydraClient.const_get(type)
|
|
203
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
194
204
|
end
|
|
195
205
|
end
|
|
196
206
|
|
|
@@ -216,7 +226,7 @@ module OryHydraClient
|
|
|
216
226
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
217
227
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
218
228
|
end
|
|
219
|
-
|
|
229
|
+
|
|
220
230
|
hash[param] = _to_hash(value)
|
|
221
231
|
end
|
|
222
232
|
hash
|
|
@@ -239,5 +249,7 @@ module OryHydraClient
|
|
|
239
249
|
value
|
|
240
250
|
end
|
|
241
251
|
end
|
|
252
|
+
|
|
242
253
|
end
|
|
254
|
+
|
|
243
255
|
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.
|
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
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
|
# PluginMount plugin mount
|
|
@@ -49,6 +50,11 @@ module OryHydraClient
|
|
|
49
50
|
}
|
|
50
51
|
end
|
|
51
52
|
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
|
54
|
+
def self.acceptable_attributes
|
|
55
|
+
attribute_map.values
|
|
56
|
+
end
|
|
57
|
+
|
|
52
58
|
# Attribute type mapping.
|
|
53
59
|
def self.openapi_types
|
|
54
60
|
{
|
|
@@ -203,7 +209,9 @@ module OryHydraClient
|
|
|
203
209
|
def build_from_hash(attributes)
|
|
204
210
|
return nil unless attributes.is_a?(Hash)
|
|
205
211
|
self.class.openapi_types.each_pair do |key, type|
|
|
206
|
-
if
|
|
212
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
213
|
+
self.send("#{key}=", nil)
|
|
214
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
207
215
|
# check to ensure the input is an array given that the attribute
|
|
208
216
|
# is documented as an array but the input is not
|
|
209
217
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -211,7 +219,7 @@ module OryHydraClient
|
|
|
211
219
|
end
|
|
212
220
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
213
221
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
214
|
-
end
|
|
222
|
+
end
|
|
215
223
|
end
|
|
216
224
|
|
|
217
225
|
self
|
|
@@ -223,8 +231,8 @@ module OryHydraClient
|
|
|
223
231
|
# @return [Object] Deserialized data
|
|
224
232
|
def _deserialize(type, value)
|
|
225
233
|
case type.to_sym
|
|
226
|
-
when :
|
|
227
|
-
|
|
234
|
+
when :Time
|
|
235
|
+
Time.parse(value)
|
|
228
236
|
when :Date
|
|
229
237
|
Date.parse(value)
|
|
230
238
|
when :String
|
|
@@ -254,7 +262,9 @@ module OryHydraClient
|
|
|
254
262
|
end
|
|
255
263
|
end
|
|
256
264
|
else # model
|
|
257
|
-
|
|
265
|
+
# models (e.g. Pet) or oneOf
|
|
266
|
+
klass = OryHydraClient.const_get(type)
|
|
267
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
258
268
|
end
|
|
259
269
|
end
|
|
260
270
|
|
|
@@ -280,7 +290,7 @@ module OryHydraClient
|
|
|
280
290
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
281
291
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
282
292
|
end
|
|
283
|
-
|
|
293
|
+
|
|
284
294
|
hash[param] = _to_hash(value)
|
|
285
295
|
end
|
|
286
296
|
hash
|
|
@@ -303,5 +313,7 @@ module OryHydraClient
|
|
|
303
313
|
value
|
|
304
314
|
end
|
|
305
315
|
end
|
|
316
|
+
|
|
306
317
|
end
|
|
318
|
+
|
|
307
319
|
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.
|
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
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
|
class PluginSettings
|
|
@@ -36,6 +37,11 @@ module OryHydraClient
|
|
|
36
37
|
}
|
|
37
38
|
end
|
|
38
39
|
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
|
41
|
+
def self.acceptable_attributes
|
|
42
|
+
attribute_map.values
|
|
43
|
+
end
|
|
44
|
+
|
|
39
45
|
# Attribute type mapping.
|
|
40
46
|
def self.openapi_types
|
|
41
47
|
{
|
|
@@ -161,7 +167,9 @@ module OryHydraClient
|
|
|
161
167
|
def build_from_hash(attributes)
|
|
162
168
|
return nil unless attributes.is_a?(Hash)
|
|
163
169
|
self.class.openapi_types.each_pair do |key, type|
|
|
164
|
-
if
|
|
170
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
171
|
+
self.send("#{key}=", nil)
|
|
172
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
165
173
|
# check to ensure the input is an array given that the attribute
|
|
166
174
|
# is documented as an array but the input is not
|
|
167
175
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -169,7 +177,7 @@ module OryHydraClient
|
|
|
169
177
|
end
|
|
170
178
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
171
179
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
172
|
-
end
|
|
180
|
+
end
|
|
173
181
|
end
|
|
174
182
|
|
|
175
183
|
self
|
|
@@ -181,8 +189,8 @@ module OryHydraClient
|
|
|
181
189
|
# @return [Object] Deserialized data
|
|
182
190
|
def _deserialize(type, value)
|
|
183
191
|
case type.to_sym
|
|
184
|
-
when :
|
|
185
|
-
|
|
192
|
+
when :Time
|
|
193
|
+
Time.parse(value)
|
|
186
194
|
when :Date
|
|
187
195
|
Date.parse(value)
|
|
188
196
|
when :String
|
|
@@ -212,7 +220,9 @@ module OryHydraClient
|
|
|
212
220
|
end
|
|
213
221
|
end
|
|
214
222
|
else # model
|
|
215
|
-
|
|
223
|
+
# models (e.g. Pet) or oneOf
|
|
224
|
+
klass = OryHydraClient.const_get(type)
|
|
225
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
216
226
|
end
|
|
217
227
|
end
|
|
218
228
|
|
|
@@ -238,7 +248,7 @@ module OryHydraClient
|
|
|
238
248
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
239
249
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
240
250
|
end
|
|
241
|
-
|
|
251
|
+
|
|
242
252
|
hash[param] = _to_hash(value)
|
|
243
253
|
end
|
|
244
254
|
hash
|
|
@@ -261,5 +271,7 @@ module OryHydraClient
|
|
|
261
271
|
value
|
|
262
272
|
end
|
|
263
273
|
end
|
|
274
|
+
|
|
264
275
|
end
|
|
276
|
+
|
|
265
277
|
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.
|
|
6
|
+
The version of the OpenAPI document: v1.10.2
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version:
|
|
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
|
# The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json
|
|
@@ -44,13 +45,18 @@ module OryHydraClient
|
|
|
44
45
|
}
|
|
45
46
|
end
|
|
46
47
|
|
|
48
|
+
# Returns all the JSON keys this model knows about
|
|
49
|
+
def self.acceptable_attributes
|
|
50
|
+
attribute_map.values
|
|
51
|
+
end
|
|
52
|
+
|
|
47
53
|
# Attribute type mapping.
|
|
48
54
|
def self.openapi_types
|
|
49
55
|
{
|
|
50
56
|
:'consent_request' => :'ConsentRequest',
|
|
51
57
|
:'grant_access_token_audience' => :'Array<String>',
|
|
52
58
|
:'grant_scope' => :'Array<String>',
|
|
53
|
-
:'handled_at' => :'
|
|
59
|
+
:'handled_at' => :'Time',
|
|
54
60
|
:'remember' => :'Boolean',
|
|
55
61
|
:'remember_for' => :'Integer',
|
|
56
62
|
:'session' => :'ConsentRequestSession'
|
|
@@ -163,7 +169,9 @@ module OryHydraClient
|
|
|
163
169
|
def build_from_hash(attributes)
|
|
164
170
|
return nil unless attributes.is_a?(Hash)
|
|
165
171
|
self.class.openapi_types.each_pair do |key, type|
|
|
166
|
-
if
|
|
172
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
173
|
+
self.send("#{key}=", nil)
|
|
174
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
167
175
|
# check to ensure the input is an array given that the attribute
|
|
168
176
|
# is documented as an array but the input is not
|
|
169
177
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
@@ -171,7 +179,7 @@ module OryHydraClient
|
|
|
171
179
|
end
|
|
172
180
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
173
181
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
174
|
-
end
|
|
182
|
+
end
|
|
175
183
|
end
|
|
176
184
|
|
|
177
185
|
self
|
|
@@ -183,8 +191,8 @@ module OryHydraClient
|
|
|
183
191
|
# @return [Object] Deserialized data
|
|
184
192
|
def _deserialize(type, value)
|
|
185
193
|
case type.to_sym
|
|
186
|
-
when :
|
|
187
|
-
|
|
194
|
+
when :Time
|
|
195
|
+
Time.parse(value)
|
|
188
196
|
when :Date
|
|
189
197
|
Date.parse(value)
|
|
190
198
|
when :String
|
|
@@ -214,7 +222,9 @@ module OryHydraClient
|
|
|
214
222
|
end
|
|
215
223
|
end
|
|
216
224
|
else # model
|
|
217
|
-
|
|
225
|
+
# models (e.g. Pet) or oneOf
|
|
226
|
+
klass = OryHydraClient.const_get(type)
|
|
227
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
218
228
|
end
|
|
219
229
|
end
|
|
220
230
|
|
|
@@ -240,7 +250,7 @@ module OryHydraClient
|
|
|
240
250
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
241
251
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
242
252
|
end
|
|
243
|
-
|
|
253
|
+
|
|
244
254
|
hash[param] = _to_hash(value)
|
|
245
255
|
end
|
|
246
256
|
hash
|
|
@@ -263,5 +273,7 @@ module OryHydraClient
|
|
|
263
273
|
value
|
|
264
274
|
end
|
|
265
275
|
end
|
|
276
|
+
|
|
266
277
|
end
|
|
278
|
+
|
|
267
279
|
end
|