ory-hydra-client 0.0.0.alpha63 → 1.2.0.alpha2
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/Gemfile +1 -1
- data/README.md +37 -45
- data/docs/AcceptConsentRequest.md +2 -4
- data/docs/AcceptLoginRequest.md +1 -1
- data/docs/AdminApi.md +70 -110
- data/docs/AttributeTypeAndValue.md +19 -0
- data/docs/Certificate.md +101 -0
- data/docs/CompletedRequest.md +1 -1
- data/docs/ConsentRequest.md +4 -4
- data/docs/ConsentRequestSession.md +2 -2
- data/docs/Extension.md +21 -0
- data/docs/IPNet.md +19 -0
- data/docs/JSONWebKey.md +12 -12
- data/docs/LoginRequest.md +7 -7
- data/docs/Name.md +27 -0
- data/docs/OAuth2Client.md +11 -13
- data/docs/OAuth2TokenIntrospection.md +3 -5
- data/docs/Oauth2TokenResponse.md +6 -6
- data/docs/OpenIDConnectContext.md +1 -1
- data/docs/PreviousConsentSession.md +2 -4
- data/docs/PublicApi.md +15 -15
- data/docs/RejectRequest.md +5 -5
- data/docs/URL.md +33 -0
- data/docs/WellKnown.md +1 -3
- data/lib/ory-hydra-client.rb +9 -16
- data/lib/ory-hydra-client/api/admin_api.rb +47 -113
- data/lib/ory-hydra-client/api/public_api.rb +12 -12
- data/lib/ory-hydra-client/api_client.rb +7 -9
- data/lib/ory-hydra-client/api_error.rb +2 -2
- data/lib/ory-hydra-client/configuration.rb +2 -2
- data/lib/ory-hydra-client/models/accept_consent_request.rb +5 -12
- data/lib/ory-hydra-client/models/accept_login_request.rb +7 -4
- data/lib/ory-hydra-client/models/{plugin_config_rootfs.rb → attribute_type_and_value.rb} +21 -22
- data/lib/ory-hydra-client/models/certificate.rb +683 -0
- data/lib/ory-hydra-client/models/completed_request.rb +2 -7
- data/lib/ory-hydra-client/models/consent_request.rb +10 -10
- data/lib/ory-hydra-client/models/consent_request_session.rb +10 -6
- data/lib/ory-hydra-client/models/{plugin_config_network.rb → extension.rb} +37 -19
- data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +2 -2
- data/lib/ory-hydra-client/models/generic_error.rb +2 -2
- data/lib/ory-hydra-client/models/health_not_ready_status.rb +2 -2
- data/lib/ory-hydra-client/models/health_status.rb +2 -2
- data/lib/ory-hydra-client/models/{plugin_config_user.rb → ip_net.rb} +23 -21
- data/lib/ory-hydra-client/models/json_web_key.rb +15 -3
- data/lib/ory-hydra-client/models/json_web_key_set.rb +3 -3
- data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +3 -2
- data/lib/ory-hydra-client/models/login_request.rb +5 -38
- data/lib/ory-hydra-client/models/logout_request.rb +2 -2
- data/lib/ory-hydra-client/models/{plugin_settings.rb → name.rb} +61 -58
- data/lib/ory-hydra-client/models/o_auth2_client.rb +14 -15
- data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +9 -17
- data/lib/ory-hydra-client/models/oauth2_token_response.rb +8 -2
- data/lib/ory-hydra-client/models/oauth_token_response.rb +2 -2
- data/lib/ory-hydra-client/models/open_id_connect_context.rb +6 -4
- data/lib/ory-hydra-client/models/previous_consent_session.rb +6 -13
- data/lib/ory-hydra-client/models/reject_request.rb +7 -7
- data/lib/ory-hydra-client/models/{plugin_device.rb → url.rb} +77 -49
- data/lib/ory-hydra-client/models/userinfo_response.rb +3 -3
- data/lib/ory-hydra-client/models/version.rb +3 -2
- data/lib/ory-hydra-client/models/well_known.rb +3 -15
- data/lib/ory-hydra-client/version.rb +3 -3
- data/ory-hydra-client.gemspec +2 -2
- data/spec/models/{plugin_config_rootfs_spec.rb → attribute_type_and_value_spec.rb} +9 -9
- data/spec/models/certificate_spec.rb +293 -0
- data/spec/models/{plugin_interface_type_spec.rb → extension_spec.rb} +10 -10
- data/spec/models/{plugin_config_user_spec.rb → ip_net_spec.rb} +9 -9
- data/spec/models/{plugin_mount_spec.rb → name_spec.rb} +13 -19
- data/spec/models/url_spec.rb +89 -0
- metadata +43 -75
- data/docs/ContainerWaitOKBodyError.md +0 -17
- data/docs/PluginConfig.md +0 -47
- data/docs/PluginConfigArgs.md +0 -23
- data/docs/PluginConfigInterface.md +0 -19
- data/docs/PluginConfigLinux.md +0 -21
- data/docs/PluginConfigNetwork.md +0 -17
- data/docs/PluginConfigRootfs.md +0 -19
- data/docs/PluginConfigUser.md +0 -19
- data/docs/PluginDevice.md +0 -23
- data/docs/PluginEnv.md +0 -23
- data/docs/PluginInterfaceType.md +0 -21
- data/docs/PluginMount.md +0 -29
- data/docs/PluginSettings.md +0 -23
- data/docs/VolumeUsageData.md +0 -19
- data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +0 -208
- data/lib/ory-hydra-client/models/plugin_config.rb +0 -422
- data/lib/ory-hydra-client/models/plugin_config_args.rb +0 -262
- data/lib/ory-hydra-client/models/plugin_config_interface.rb +0 -230
- data/lib/ory-hydra-client/models/plugin_config_linux.rb +0 -247
- data/lib/ory-hydra-client/models/plugin_env.rb +0 -260
- data/lib/ory-hydra-client/models/plugin_interface_type.rb +0 -243
- data/lib/ory-hydra-client/models/plugin_mount.rb +0 -307
- data/lib/ory-hydra-client/models/volume_usage_data.rb +0 -228
- data/spec/models/container_wait_ok_body_error_spec.rb +0 -41
- data/spec/models/plugin_config_args_spec.rb +0 -59
- data/spec/models/plugin_config_interface_spec.rb +0 -47
- data/spec/models/plugin_config_linux_spec.rb +0 -53
- data/spec/models/plugin_config_network_spec.rb +0 -41
- data/spec/models/plugin_config_spec.rb +0 -131
- data/spec/models/plugin_device_spec.rb +0 -59
- data/spec/models/plugin_env_spec.rb +0 -59
- data/spec/models/plugin_settings_spec.rb +0 -59
- data/spec/models/volume_usage_data_spec.rb +0 -47
|
@@ -3,10 +3,10 @@
|
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: latest
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ module OryHydraClient
|
|
|
21
21
|
# Audience contains a list of the token's intended audiences.
|
|
22
22
|
attr_accessor :aud
|
|
23
23
|
|
|
24
|
-
#
|
|
24
|
+
# ClientID is aclient identifier for the OAuth 2.0 client that requested this token.
|
|
25
25
|
attr_accessor :client_id
|
|
26
26
|
|
|
27
27
|
# Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.
|
|
@@ -48,12 +48,9 @@ module OryHydraClient
|
|
|
48
48
|
# Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token.
|
|
49
49
|
attr_accessor :sub
|
|
50
50
|
|
|
51
|
-
# TokenType is the introspected token's type,
|
|
51
|
+
# TokenType is the introspected token's type, for example `access_token` or `refresh_token`.
|
|
52
52
|
attr_accessor :token_type
|
|
53
53
|
|
|
54
|
-
# TokenUse is the introspected token's use, for example `access_token` or `refresh_token`.
|
|
55
|
-
attr_accessor :token_use
|
|
56
|
-
|
|
57
54
|
# Username is a human-readable identifier for the resource owner who authorized this token.
|
|
58
55
|
attr_accessor :username
|
|
59
56
|
|
|
@@ -72,7 +69,6 @@ module OryHydraClient
|
|
|
72
69
|
:'scope' => :'scope',
|
|
73
70
|
:'sub' => :'sub',
|
|
74
71
|
:'token_type' => :'token_type',
|
|
75
|
-
:'token_use' => :'token_use',
|
|
76
72
|
:'username' => :'username'
|
|
77
73
|
}
|
|
78
74
|
end
|
|
@@ -84,7 +80,7 @@ module OryHydraClient
|
|
|
84
80
|
:'aud' => :'Array<String>',
|
|
85
81
|
:'client_id' => :'String',
|
|
86
82
|
:'exp' => :'Integer',
|
|
87
|
-
:'ext' => :'Object',
|
|
83
|
+
:'ext' => :'Hash<String, Object>',
|
|
88
84
|
:'iat' => :'Integer',
|
|
89
85
|
:'iss' => :'String',
|
|
90
86
|
:'nbf' => :'Integer',
|
|
@@ -92,7 +88,6 @@ module OryHydraClient
|
|
|
92
88
|
:'scope' => :'String',
|
|
93
89
|
:'sub' => :'String',
|
|
94
90
|
:'token_type' => :'String',
|
|
95
|
-
:'token_use' => :'String',
|
|
96
91
|
:'username' => :'String'
|
|
97
92
|
}
|
|
98
93
|
end
|
|
@@ -137,7 +132,9 @@ module OryHydraClient
|
|
|
137
132
|
end
|
|
138
133
|
|
|
139
134
|
if attributes.key?(:'ext')
|
|
140
|
-
|
|
135
|
+
if (value = attributes[:'ext']).is_a?(Hash)
|
|
136
|
+
self.ext = value
|
|
137
|
+
end
|
|
141
138
|
end
|
|
142
139
|
|
|
143
140
|
if attributes.key?(:'iat')
|
|
@@ -168,10 +165,6 @@ module OryHydraClient
|
|
|
168
165
|
self.token_type = attributes[:'token_type']
|
|
169
166
|
end
|
|
170
167
|
|
|
171
|
-
if attributes.key?(:'token_use')
|
|
172
|
-
self.token_use = attributes[:'token_use']
|
|
173
|
-
end
|
|
174
|
-
|
|
175
168
|
if attributes.key?(:'username')
|
|
176
169
|
self.username = attributes[:'username']
|
|
177
170
|
end
|
|
@@ -212,7 +205,6 @@ module OryHydraClient
|
|
|
212
205
|
scope == o.scope &&
|
|
213
206
|
sub == o.sub &&
|
|
214
207
|
token_type == o.token_type &&
|
|
215
|
-
token_use == o.token_use &&
|
|
216
208
|
username == o.username
|
|
217
209
|
end
|
|
218
210
|
|
|
@@ -225,7 +217,7 @@ module OryHydraClient
|
|
|
225
217
|
# Calculates hash code according to all attributes.
|
|
226
218
|
# @return [Integer] Hash code
|
|
227
219
|
def hash
|
|
228
|
-
[active, aud, client_id, exp, ext, iat, iss, nbf, obfuscated_subject, scope, sub, token_type,
|
|
220
|
+
[active, aud, client_id, exp, ext, iat, iss, nbf, obfuscated_subject, scope, sub, token_type, username].hash
|
|
229
221
|
end
|
|
230
222
|
|
|
231
223
|
# Builds the object from hash
|
|
@@ -3,10 +3,10 @@
|
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: latest
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -15,16 +15,22 @@ require 'date'
|
|
|
15
15
|
module OryHydraClient
|
|
16
16
|
# The Access Token Response
|
|
17
17
|
class Oauth2TokenResponse
|
|
18
|
+
# access token
|
|
18
19
|
attr_accessor :access_token
|
|
19
20
|
|
|
21
|
+
# expires in
|
|
20
22
|
attr_accessor :expires_in
|
|
21
23
|
|
|
24
|
+
# id token
|
|
22
25
|
attr_accessor :id_token
|
|
23
26
|
|
|
27
|
+
# refresh token
|
|
24
28
|
attr_accessor :refresh_token
|
|
25
29
|
|
|
30
|
+
# scope
|
|
26
31
|
attr_accessor :scope
|
|
27
32
|
|
|
33
|
+
# token type
|
|
28
34
|
attr_accessor :token_type
|
|
29
35
|
|
|
30
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -3,7 +3,7 @@
|
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: latest
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.2.2
|
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.2.2
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module OryHydraClient
|
|
16
|
-
# The token response
|
|
16
|
+
# OauthTokenResponse The token response
|
|
17
17
|
class OauthTokenResponse
|
|
18
18
|
# The access token issued by the authorization server.
|
|
19
19
|
attr_accessor :access_token
|
|
@@ -3,10 +3,10 @@
|
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: latest
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -45,7 +45,7 @@ module OryHydraClient
|
|
|
45
45
|
{
|
|
46
46
|
:'acr_values' => :'Array<String>',
|
|
47
47
|
:'display' => :'String',
|
|
48
|
-
:'id_token_hint_claims' => :'Object',
|
|
48
|
+
:'id_token_hint_claims' => :'Hash<String, Object>',
|
|
49
49
|
:'login_hint' => :'String',
|
|
50
50
|
:'ui_locales' => :'Array<String>'
|
|
51
51
|
}
|
|
@@ -83,7 +83,9 @@ module OryHydraClient
|
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
if attributes.key?(:'id_token_hint_claims')
|
|
86
|
-
|
|
86
|
+
if (value = attributes[:'id_token_hint_claims']).is_a?(Hash)
|
|
87
|
+
self.id_token_hint_claims = value
|
|
88
|
+
end
|
|
87
89
|
end
|
|
88
90
|
|
|
89
91
|
if attributes.key?(:'login_hint')
|
|
@@ -3,26 +3,26 @@
|
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: latest
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module OryHydraClient
|
|
16
|
-
# The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json
|
|
16
|
+
# PreviousConsentSession PreviousConsentSession PreviousConsentSession The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json
|
|
17
17
|
class PreviousConsentSession
|
|
18
18
|
attr_accessor :consent_request
|
|
19
19
|
|
|
20
|
+
# GrantedAudience sets the audience the user authorized the client to use. Should be a subset of `requested_access_token_audience`.
|
|
20
21
|
attr_accessor :grant_access_token_audience
|
|
21
22
|
|
|
23
|
+
# GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`
|
|
22
24
|
attr_accessor :grant_scope
|
|
23
25
|
|
|
24
|
-
attr_accessor :handled_at
|
|
25
|
-
|
|
26
26
|
# Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.
|
|
27
27
|
attr_accessor :remember
|
|
28
28
|
|
|
@@ -37,7 +37,6 @@ module OryHydraClient
|
|
|
37
37
|
:'consent_request' => :'consent_request',
|
|
38
38
|
:'grant_access_token_audience' => :'grant_access_token_audience',
|
|
39
39
|
:'grant_scope' => :'grant_scope',
|
|
40
|
-
:'handled_at' => :'handled_at',
|
|
41
40
|
:'remember' => :'remember',
|
|
42
41
|
:'remember_for' => :'remember_for',
|
|
43
42
|
:'session' => :'session'
|
|
@@ -50,7 +49,6 @@ module OryHydraClient
|
|
|
50
49
|
:'consent_request' => :'ConsentRequest',
|
|
51
50
|
:'grant_access_token_audience' => :'Array<String>',
|
|
52
51
|
:'grant_scope' => :'Array<String>',
|
|
53
|
-
:'handled_at' => :'DateTime',
|
|
54
52
|
:'remember' => :'Boolean',
|
|
55
53
|
:'remember_for' => :'Integer',
|
|
56
54
|
:'session' => :'ConsentRequestSession'
|
|
@@ -94,10 +92,6 @@ module OryHydraClient
|
|
|
94
92
|
end
|
|
95
93
|
end
|
|
96
94
|
|
|
97
|
-
if attributes.key?(:'handled_at')
|
|
98
|
-
self.handled_at = attributes[:'handled_at']
|
|
99
|
-
end
|
|
100
|
-
|
|
101
95
|
if attributes.key?(:'remember')
|
|
102
96
|
self.remember = attributes[:'remember']
|
|
103
97
|
end
|
|
@@ -132,7 +126,6 @@ module OryHydraClient
|
|
|
132
126
|
consent_request == o.consent_request &&
|
|
133
127
|
grant_access_token_audience == o.grant_access_token_audience &&
|
|
134
128
|
grant_scope == o.grant_scope &&
|
|
135
|
-
handled_at == o.handled_at &&
|
|
136
129
|
remember == o.remember &&
|
|
137
130
|
remember_for == o.remember_for &&
|
|
138
131
|
session == o.session
|
|
@@ -147,7 +140,7 @@ module OryHydraClient
|
|
|
147
140
|
# Calculates hash code according to all attributes.
|
|
148
141
|
# @return [Integer] Hash code
|
|
149
142
|
def hash
|
|
150
|
-
[consent_request, grant_access_token_audience, grant_scope,
|
|
143
|
+
[consent_request, grant_access_token_audience, grant_scope, remember, remember_for, session].hash
|
|
151
144
|
end
|
|
152
145
|
|
|
153
146
|
# Builds the object from hash
|
|
@@ -3,10 +3,10 @@
|
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: latest
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,19 +14,19 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module OryHydraClient
|
|
16
16
|
class RejectRequest
|
|
17
|
-
#
|
|
17
|
+
# error
|
|
18
18
|
attr_accessor :error
|
|
19
19
|
|
|
20
|
-
#
|
|
20
|
+
# error debug
|
|
21
21
|
attr_accessor :error_debug
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# error description
|
|
24
24
|
attr_accessor :error_description
|
|
25
25
|
|
|
26
|
-
#
|
|
26
|
+
# error hint
|
|
27
27
|
attr_accessor :error_hint
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# status code
|
|
30
30
|
attr_accessor :status_code
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -3,47 +3,72 @@
|
|
|
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:
|
|
6
|
+
The version of the OpenAPI document: latest
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 4.
|
|
9
|
+
OpenAPI Generator version: 4.2.2
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module OryHydraClient
|
|
16
|
-
#
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
16
|
+
# The general form represented is: [scheme:][//[userinfo@]host][/]path[?query][#fragment] URLs that do not start with a slash after the scheme are interpreted as: scheme:opaque[?query][#fragment] Note that the Path field is stored in decoded form: /%47%6f%2f becomes /Go/. A consequence is that it is impossible to tell which slashes in the Path were slashes in the raw URL and which were %2f. This distinction is rarely important, but when it is, the code should use RawPath, an optional field which only gets set if the default encoding is different from Path. URL's String method uses the EscapedPath method to obtain the path. See the EscapedPath method for more details.
|
|
17
|
+
class URL
|
|
18
|
+
# force query
|
|
19
|
+
attr_accessor :force_query
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# fragment
|
|
22
|
+
attr_accessor :fragment
|
|
23
|
+
|
|
24
|
+
# host
|
|
25
|
+
attr_accessor :host
|
|
26
|
+
|
|
27
|
+
# opaque
|
|
28
|
+
attr_accessor :opaque
|
|
23
29
|
|
|
24
30
|
# path
|
|
25
31
|
attr_accessor :path
|
|
26
32
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
33
|
+
# raw path
|
|
34
|
+
attr_accessor :raw_path
|
|
35
|
+
|
|
36
|
+
# raw query
|
|
37
|
+
attr_accessor :raw_query
|
|
38
|
+
|
|
39
|
+
# scheme
|
|
40
|
+
attr_accessor :scheme
|
|
41
|
+
|
|
42
|
+
# Userinfo Userinfo Userinfo The Userinfo type is an immutable encapsulation of username and password details for a URL. An existing Userinfo value is guaranteed to have a username set (potentially empty, as allowed by RFC 2396), and optionally a password.
|
|
43
|
+
attr_accessor :user
|
|
29
44
|
|
|
30
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
46
|
def self.attribute_map
|
|
32
47
|
{
|
|
33
|
-
:'
|
|
34
|
-
:'
|
|
48
|
+
:'force_query' => :'ForceQuery',
|
|
49
|
+
:'fragment' => :'Fragment',
|
|
50
|
+
:'host' => :'Host',
|
|
51
|
+
:'opaque' => :'Opaque',
|
|
35
52
|
:'path' => :'Path',
|
|
36
|
-
:'
|
|
53
|
+
:'raw_path' => :'RawPath',
|
|
54
|
+
:'raw_query' => :'RawQuery',
|
|
55
|
+
:'scheme' => :'Scheme',
|
|
56
|
+
:'user' => :'User'
|
|
37
57
|
}
|
|
38
58
|
end
|
|
39
59
|
|
|
40
60
|
# Attribute type mapping.
|
|
41
61
|
def self.openapi_types
|
|
42
62
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
63
|
+
:'force_query' => :'Boolean',
|
|
64
|
+
:'fragment' => :'String',
|
|
65
|
+
:'host' => :'String',
|
|
66
|
+
:'opaque' => :'String',
|
|
45
67
|
:'path' => :'String',
|
|
46
|
-
:'
|
|
68
|
+
:'raw_path' => :'String',
|
|
69
|
+
:'raw_query' => :'String',
|
|
70
|
+
:'scheme' => :'String',
|
|
71
|
+
:'user' => :'Object'
|
|
47
72
|
}
|
|
48
73
|
end
|
|
49
74
|
|
|
@@ -57,66 +82,64 @@ module OryHydraClient
|
|
|
57
82
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
83
|
def initialize(attributes = {})
|
|
59
84
|
if (!attributes.is_a?(Hash))
|
|
60
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::
|
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::URL` initialize method"
|
|
61
86
|
end
|
|
62
87
|
|
|
63
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
89
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
90
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::
|
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::URL`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
67
92
|
end
|
|
68
93
|
h[k.to_sym] = v
|
|
69
94
|
}
|
|
70
95
|
|
|
71
|
-
if attributes.key?(:'
|
|
72
|
-
self.
|
|
96
|
+
if attributes.key?(:'force_query')
|
|
97
|
+
self.force_query = attributes[:'force_query']
|
|
73
98
|
end
|
|
74
99
|
|
|
75
|
-
if attributes.key?(:'
|
|
76
|
-
self.
|
|
100
|
+
if attributes.key?(:'fragment')
|
|
101
|
+
self.fragment = attributes[:'fragment']
|
|
77
102
|
end
|
|
78
103
|
|
|
79
|
-
if attributes.key?(:'
|
|
80
|
-
self.
|
|
104
|
+
if attributes.key?(:'host')
|
|
105
|
+
self.host = attributes[:'host']
|
|
81
106
|
end
|
|
82
107
|
|
|
83
|
-
if attributes.key?(:'
|
|
84
|
-
|
|
85
|
-
self.settable = value
|
|
86
|
-
end
|
|
108
|
+
if attributes.key?(:'opaque')
|
|
109
|
+
self.opaque = attributes[:'opaque']
|
|
87
110
|
end
|
|
88
|
-
end
|
|
89
111
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
def list_invalid_properties
|
|
93
|
-
invalid_properties = Array.new
|
|
94
|
-
if @description.nil?
|
|
95
|
-
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
|
112
|
+
if attributes.key?(:'path')
|
|
113
|
+
self.path = attributes[:'path']
|
|
96
114
|
end
|
|
97
115
|
|
|
98
|
-
if
|
|
99
|
-
|
|
116
|
+
if attributes.key?(:'raw_path')
|
|
117
|
+
self.raw_path = attributes[:'raw_path']
|
|
100
118
|
end
|
|
101
119
|
|
|
102
|
-
if
|
|
103
|
-
|
|
120
|
+
if attributes.key?(:'raw_query')
|
|
121
|
+
self.raw_query = attributes[:'raw_query']
|
|
104
122
|
end
|
|
105
123
|
|
|
106
|
-
if
|
|
107
|
-
|
|
124
|
+
if attributes.key?(:'scheme')
|
|
125
|
+
self.scheme = attributes[:'scheme']
|
|
108
126
|
end
|
|
109
127
|
|
|
128
|
+
if attributes.key?(:'user')
|
|
129
|
+
self.user = attributes[:'user']
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
134
|
+
# @return Array for valid properties with the reasons
|
|
135
|
+
def list_invalid_properties
|
|
136
|
+
invalid_properties = Array.new
|
|
110
137
|
invalid_properties
|
|
111
138
|
end
|
|
112
139
|
|
|
113
140
|
# Check to see if the all the properties in the model are valid
|
|
114
141
|
# @return true if the model is valid
|
|
115
142
|
def valid?
|
|
116
|
-
return false if @description.nil?
|
|
117
|
-
return false if @name.nil?
|
|
118
|
-
return false if @path.nil?
|
|
119
|
-
return false if @settable.nil?
|
|
120
143
|
true
|
|
121
144
|
end
|
|
122
145
|
|
|
@@ -125,10 +148,15 @@ module OryHydraClient
|
|
|
125
148
|
def ==(o)
|
|
126
149
|
return true if self.equal?(o)
|
|
127
150
|
self.class == o.class &&
|
|
128
|
-
|
|
129
|
-
|
|
151
|
+
force_query == o.force_query &&
|
|
152
|
+
fragment == o.fragment &&
|
|
153
|
+
host == o.host &&
|
|
154
|
+
opaque == o.opaque &&
|
|
130
155
|
path == o.path &&
|
|
131
|
-
|
|
156
|
+
raw_path == o.raw_path &&
|
|
157
|
+
raw_query == o.raw_query &&
|
|
158
|
+
scheme == o.scheme &&
|
|
159
|
+
user == o.user
|
|
132
160
|
end
|
|
133
161
|
|
|
134
162
|
# @see the `==` method
|
|
@@ -140,7 +168,7 @@ module OryHydraClient
|
|
|
140
168
|
# Calculates hash code according to all attributes.
|
|
141
169
|
# @return [Integer] Hash code
|
|
142
170
|
def hash
|
|
143
|
-
[
|
|
171
|
+
[force_query, fragment, host, opaque, path, raw_path, raw_query, scheme, user].hash
|
|
144
172
|
end
|
|
145
173
|
|
|
146
174
|
# Builds the object from hash
|