ory-hydra-client 1.9.0.alpha2 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
# PluginConfigArgs plugin config args
|
@@ -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
|
{
|
@@ -158,7 +164,9 @@ module OryHydraClient
|
|
158
164
|
def build_from_hash(attributes)
|
159
165
|
return nil unless attributes.is_a?(Hash)
|
160
166
|
self.class.openapi_types.each_pair do |key, type|
|
161
|
-
if
|
167
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
168
|
+
self.send("#{key}=", nil)
|
169
|
+
elsif type =~ /\AArray<(.*)>/i
|
162
170
|
# check to ensure the input is an array given that the attribute
|
163
171
|
# is documented as an array but the input is not
|
164
172
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -166,7 +174,7 @@ module OryHydraClient
|
|
166
174
|
end
|
167
175
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
168
176
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
169
|
-
end
|
177
|
+
end
|
170
178
|
end
|
171
179
|
|
172
180
|
self
|
@@ -178,8 +186,8 @@ module OryHydraClient
|
|
178
186
|
# @return [Object] Deserialized data
|
179
187
|
def _deserialize(type, value)
|
180
188
|
case type.to_sym
|
181
|
-
when :
|
182
|
-
|
189
|
+
when :Time
|
190
|
+
Time.parse(value)
|
183
191
|
when :Date
|
184
192
|
Date.parse(value)
|
185
193
|
when :String
|
@@ -209,7 +217,9 @@ module OryHydraClient
|
|
209
217
|
end
|
210
218
|
end
|
211
219
|
else # model
|
212
|
-
|
220
|
+
# models (e.g. Pet) or oneOf
|
221
|
+
klass = OryHydraClient.const_get(type)
|
222
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
213
223
|
end
|
214
224
|
end
|
215
225
|
|
@@ -235,7 +245,7 @@ module OryHydraClient
|
|
235
245
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
236
246
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
237
247
|
end
|
238
|
-
|
248
|
+
|
239
249
|
hash[param] = _to_hash(value)
|
240
250
|
end
|
241
251
|
hash
|
@@ -258,5 +268,7 @@ module OryHydraClient
|
|
258
268
|
value
|
259
269
|
end
|
260
270
|
end
|
271
|
+
|
261
272
|
end
|
273
|
+
|
262
274
|
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
|
# PluginConfigInterface The interface between Docker and the plugin
|
@@ -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
|
{
|
@@ -126,7 +132,9 @@ module OryHydraClient
|
|
126
132
|
def build_from_hash(attributes)
|
127
133
|
return nil unless attributes.is_a?(Hash)
|
128
134
|
self.class.openapi_types.each_pair do |key, type|
|
129
|
-
if
|
135
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
136
|
+
self.send("#{key}=", nil)
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
130
138
|
# check to ensure the input is an array given that the attribute
|
131
139
|
# is documented as an array but the input is not
|
132
140
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -134,7 +142,7 @@ module OryHydraClient
|
|
134
142
|
end
|
135
143
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
144
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
137
|
-
end
|
145
|
+
end
|
138
146
|
end
|
139
147
|
|
140
148
|
self
|
@@ -146,8 +154,8 @@ module OryHydraClient
|
|
146
154
|
# @return [Object] Deserialized data
|
147
155
|
def _deserialize(type, value)
|
148
156
|
case type.to_sym
|
149
|
-
when :
|
150
|
-
|
157
|
+
when :Time
|
158
|
+
Time.parse(value)
|
151
159
|
when :Date
|
152
160
|
Date.parse(value)
|
153
161
|
when :String
|
@@ -177,7 +185,9 @@ module OryHydraClient
|
|
177
185
|
end
|
178
186
|
end
|
179
187
|
else # model
|
180
|
-
|
188
|
+
# models (e.g. Pet) or oneOf
|
189
|
+
klass = OryHydraClient.const_get(type)
|
190
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
181
191
|
end
|
182
192
|
end
|
183
193
|
|
@@ -203,7 +213,7 @@ module OryHydraClient
|
|
203
213
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
204
214
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
205
215
|
end
|
206
|
-
|
216
|
+
|
207
217
|
hash[param] = _to_hash(value)
|
208
218
|
end
|
209
219
|
hash
|
@@ -226,5 +236,7 @@ module OryHydraClient
|
|
226
236
|
value
|
227
237
|
end
|
228
238
|
end
|
239
|
+
|
229
240
|
end
|
241
|
+
|
230
242
|
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
|
# PluginConfigLinux plugin config linux
|
@@ -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
|
{
|
@@ -143,7 +149,9 @@ module OryHydraClient
|
|
143
149
|
def build_from_hash(attributes)
|
144
150
|
return nil unless attributes.is_a?(Hash)
|
145
151
|
self.class.openapi_types.each_pair do |key, type|
|
146
|
-
if
|
152
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
153
|
+
self.send("#{key}=", nil)
|
154
|
+
elsif type =~ /\AArray<(.*)>/i
|
147
155
|
# check to ensure the input is an array given that the attribute
|
148
156
|
# is documented as an array but the input is not
|
149
157
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -151,7 +159,7 @@ module OryHydraClient
|
|
151
159
|
end
|
152
160
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
153
161
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
154
|
-
end
|
162
|
+
end
|
155
163
|
end
|
156
164
|
|
157
165
|
self
|
@@ -163,8 +171,8 @@ module OryHydraClient
|
|
163
171
|
# @return [Object] Deserialized data
|
164
172
|
def _deserialize(type, value)
|
165
173
|
case type.to_sym
|
166
|
-
when :
|
167
|
-
|
174
|
+
when :Time
|
175
|
+
Time.parse(value)
|
168
176
|
when :Date
|
169
177
|
Date.parse(value)
|
170
178
|
when :String
|
@@ -194,7 +202,9 @@ module OryHydraClient
|
|
194
202
|
end
|
195
203
|
end
|
196
204
|
else # model
|
197
|
-
|
205
|
+
# models (e.g. Pet) or oneOf
|
206
|
+
klass = OryHydraClient.const_get(type)
|
207
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
208
|
end
|
199
209
|
end
|
200
210
|
|
@@ -220,7 +230,7 @@ module OryHydraClient
|
|
220
230
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
221
231
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
222
232
|
end
|
223
|
-
|
233
|
+
|
224
234
|
hash[param] = _to_hash(value)
|
225
235
|
end
|
226
236
|
hash
|
@@ -243,5 +253,7 @@ module OryHydraClient
|
|
243
253
|
value
|
244
254
|
end
|
245
255
|
end
|
256
|
+
|
246
257
|
end
|
258
|
+
|
247
259
|
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
|
# PluginConfigNetwork plugin config network
|
@@ -25,6 +26,11 @@ module OryHydraClient
|
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
30
|
+
def self.acceptable_attributes
|
31
|
+
attribute_map.values
|
32
|
+
end
|
33
|
+
|
28
34
|
# Attribute type mapping.
|
29
35
|
def self.openapi_types
|
30
36
|
{
|
@@ -109,7 +115,9 @@ module OryHydraClient
|
|
109
115
|
def build_from_hash(attributes)
|
110
116
|
return nil unless attributes.is_a?(Hash)
|
111
117
|
self.class.openapi_types.each_pair do |key, type|
|
112
|
-
if
|
118
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
119
|
+
self.send("#{key}=", nil)
|
120
|
+
elsif type =~ /\AArray<(.*)>/i
|
113
121
|
# check to ensure the input is an array given that the attribute
|
114
122
|
# is documented as an array but the input is not
|
115
123
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -117,7 +125,7 @@ module OryHydraClient
|
|
117
125
|
end
|
118
126
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
119
127
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
120
|
-
end
|
128
|
+
end
|
121
129
|
end
|
122
130
|
|
123
131
|
self
|
@@ -129,8 +137,8 @@ module OryHydraClient
|
|
129
137
|
# @return [Object] Deserialized data
|
130
138
|
def _deserialize(type, value)
|
131
139
|
case type.to_sym
|
132
|
-
when :
|
133
|
-
|
140
|
+
when :Time
|
141
|
+
Time.parse(value)
|
134
142
|
when :Date
|
135
143
|
Date.parse(value)
|
136
144
|
when :String
|
@@ -160,7 +168,9 @@ module OryHydraClient
|
|
160
168
|
end
|
161
169
|
end
|
162
170
|
else # model
|
163
|
-
|
171
|
+
# models (e.g. Pet) or oneOf
|
172
|
+
klass = OryHydraClient.const_get(type)
|
173
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
164
174
|
end
|
165
175
|
end
|
166
176
|
|
@@ -186,7 +196,7 @@ module OryHydraClient
|
|
186
196
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
187
197
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
188
198
|
end
|
189
|
-
|
199
|
+
|
190
200
|
hash[param] = _to_hash(value)
|
191
201
|
end
|
192
202
|
hash
|
@@ -209,5 +219,7 @@ module OryHydraClient
|
|
209
219
|
value
|
210
220
|
end
|
211
221
|
end
|
222
|
+
|
212
223
|
end
|
224
|
+
|
213
225
|
end
|
@@ -3,14 +3,15 @@
|
|
3
3
|
|
4
4
|
#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
|
# PluginConfigRootfs plugin config rootfs
|
@@ -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
|
{
|
@@ -116,7 +122,9 @@ module OryHydraClient
|
|
116
122
|
def build_from_hash(attributes)
|
117
123
|
return nil unless attributes.is_a?(Hash)
|
118
124
|
self.class.openapi_types.each_pair do |key, type|
|
119
|
-
if
|
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
|
120
128
|
# check to ensure the input is an array given that the attribute
|
121
129
|
# is documented as an array but the input is not
|
122
130
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -124,7 +132,7 @@ module OryHydraClient
|
|
124
132
|
end
|
125
133
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
126
134
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
127
|
-
end
|
135
|
+
end
|
128
136
|
end
|
129
137
|
|
130
138
|
self
|
@@ -136,8 +144,8 @@ module OryHydraClient
|
|
136
144
|
# @return [Object] Deserialized data
|
137
145
|
def _deserialize(type, value)
|
138
146
|
case type.to_sym
|
139
|
-
when :
|
140
|
-
|
147
|
+
when :Time
|
148
|
+
Time.parse(value)
|
141
149
|
when :Date
|
142
150
|
Date.parse(value)
|
143
151
|
when :String
|
@@ -167,7 +175,9 @@ module OryHydraClient
|
|
167
175
|
end
|
168
176
|
end
|
169
177
|
else # model
|
170
|
-
|
178
|
+
# models (e.g. Pet) or oneOf
|
179
|
+
klass = OryHydraClient.const_get(type)
|
180
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
171
181
|
end
|
172
182
|
end
|
173
183
|
|
@@ -193,7 +203,7 @@ module OryHydraClient
|
|
193
203
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
194
204
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
195
205
|
end
|
196
|
-
|
206
|
+
|
197
207
|
hash[param] = _to_hash(value)
|
198
208
|
end
|
199
209
|
hash
|
@@ -216,5 +226,7 @@ module OryHydraClient
|
|
216
226
|
value
|
217
227
|
end
|
218
228
|
end
|
229
|
+
|
219
230
|
end
|
231
|
+
|
220
232
|
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
|
# PluginConfigUser plugin config user
|
@@ -29,6 +30,11 @@ module OryHydraClient
|
|
29
30
|
}
|
30
31
|
end
|
31
32
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
32
38
|
# Attribute type mapping.
|
33
39
|
def self.openapi_types
|
34
40
|
{
|
@@ -114,7 +120,9 @@ module OryHydraClient
|
|
114
120
|
def build_from_hash(attributes)
|
115
121
|
return nil unless attributes.is_a?(Hash)
|
116
122
|
self.class.openapi_types.each_pair do |key, type|
|
117
|
-
if
|
123
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
124
|
+
self.send("#{key}=", nil)
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
118
126
|
# check to ensure the input is an array given that the attribute
|
119
127
|
# is documented as an array but the input is not
|
120
128
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -122,7 +130,7 @@ module OryHydraClient
|
|
122
130
|
end
|
123
131
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
124
132
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
125
|
-
end
|
133
|
+
end
|
126
134
|
end
|
127
135
|
|
128
136
|
self
|
@@ -134,8 +142,8 @@ module OryHydraClient
|
|
134
142
|
# @return [Object] Deserialized data
|
135
143
|
def _deserialize(type, value)
|
136
144
|
case type.to_sym
|
137
|
-
when :
|
138
|
-
|
145
|
+
when :Time
|
146
|
+
Time.parse(value)
|
139
147
|
when :Date
|
140
148
|
Date.parse(value)
|
141
149
|
when :String
|
@@ -165,7 +173,9 @@ module OryHydraClient
|
|
165
173
|
end
|
166
174
|
end
|
167
175
|
else # model
|
168
|
-
|
176
|
+
# models (e.g. Pet) or oneOf
|
177
|
+
klass = OryHydraClient.const_get(type)
|
178
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
179
|
end
|
170
180
|
end
|
171
181
|
|
@@ -191,7 +201,7 @@ module OryHydraClient
|
|
191
201
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
192
202
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
193
203
|
end
|
194
|
-
|
204
|
+
|
195
205
|
hash[param] = _to_hash(value)
|
196
206
|
end
|
197
207
|
hash
|
@@ -214,5 +224,7 @@ module OryHydraClient
|
|
214
224
|
value
|
215
225
|
end
|
216
226
|
end
|
227
|
+
|
217
228
|
end
|
229
|
+
|
218
230
|
end
|