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
|
|
|
@@ -61,17 +61,12 @@ module OryHydraClient
|
|
|
61
61
|
# @return Array for valid properties with the reasons
|
|
62
62
|
def list_invalid_properties
|
|
63
63
|
invalid_properties = Array.new
|
|
64
|
-
if @redirect_to.nil?
|
|
65
|
-
invalid_properties.push('invalid value for "redirect_to", redirect_to cannot be nil.')
|
|
66
|
-
end
|
|
67
|
-
|
|
68
64
|
invalid_properties
|
|
69
65
|
end
|
|
70
66
|
|
|
71
67
|
# Check to see if the all the properties in the model are valid
|
|
72
68
|
# @return true if the model is valid
|
|
73
69
|
def valid?
|
|
74
|
-
return false if @redirect_to.nil?
|
|
75
70
|
true
|
|
76
71
|
end
|
|
77
72
|
|
|
@@ -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
|
|
|
@@ -17,11 +17,12 @@ module OryHydraClient
|
|
|
17
17
|
# ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication.
|
|
18
18
|
attr_accessor :acr
|
|
19
19
|
|
|
20
|
-
#
|
|
20
|
+
# Challenge is the identifier (\"authorization challenge\") of the consent authorization request. It is used to identify the session.
|
|
21
21
|
attr_accessor :challenge
|
|
22
22
|
|
|
23
23
|
attr_accessor :client
|
|
24
24
|
|
|
25
|
+
# Context contains arbitrary information set by the login endpoint or is empty if not set.
|
|
25
26
|
attr_accessor :context
|
|
26
27
|
|
|
27
28
|
# LoginChallenge is the login challenge this consent challenge belongs to. It can be used to associate a login and consent request in the login & consent app.
|
|
@@ -35,8 +36,10 @@ module OryHydraClient
|
|
|
35
36
|
# RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters.
|
|
36
37
|
attr_accessor :request_url
|
|
37
38
|
|
|
39
|
+
# RequestedScope contains the access token audience as requested by the OAuth 2.0 Client.
|
|
38
40
|
attr_accessor :requested_access_token_audience
|
|
39
41
|
|
|
42
|
+
# RequestedScope contains the OAuth 2.0 Scope requested by the OAuth 2.0 Client.
|
|
40
43
|
attr_accessor :requested_scope
|
|
41
44
|
|
|
42
45
|
# Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you must not ask the user to grant the requested scopes. You must however either allow or deny the consent request using the usual API call.
|
|
@@ -69,7 +72,7 @@ module OryHydraClient
|
|
|
69
72
|
:'acr' => :'String',
|
|
70
73
|
:'challenge' => :'String',
|
|
71
74
|
:'client' => :'OAuth2Client',
|
|
72
|
-
:'context' => :'Object',
|
|
75
|
+
:'context' => :'Hash<String, Object>',
|
|
73
76
|
:'login_challenge' => :'String',
|
|
74
77
|
:'login_session_id' => :'String',
|
|
75
78
|
:'oidc_context' => :'OpenIDConnectContext',
|
|
@@ -115,7 +118,9 @@ module OryHydraClient
|
|
|
115
118
|
end
|
|
116
119
|
|
|
117
120
|
if attributes.key?(:'context')
|
|
118
|
-
|
|
121
|
+
if (value = attributes[:'context']).is_a?(Hash)
|
|
122
|
+
self.context = value
|
|
123
|
+
end
|
|
119
124
|
end
|
|
120
125
|
|
|
121
126
|
if attributes.key?(:'login_challenge')
|
|
@@ -159,17 +164,12 @@ module OryHydraClient
|
|
|
159
164
|
# @return Array for valid properties with the reasons
|
|
160
165
|
def list_invalid_properties
|
|
161
166
|
invalid_properties = Array.new
|
|
162
|
-
if @challenge.nil?
|
|
163
|
-
invalid_properties.push('invalid value for "challenge", challenge cannot be nil.')
|
|
164
|
-
end
|
|
165
|
-
|
|
166
167
|
invalid_properties
|
|
167
168
|
end
|
|
168
169
|
|
|
169
170
|
# Check to see if the all the properties in the model are valid
|
|
170
171
|
# @return true if the model is valid
|
|
171
172
|
def valid?
|
|
172
|
-
return false if @challenge.nil?
|
|
173
173
|
true
|
|
174
174
|
end
|
|
175
175
|
|
|
@@ -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
|
|
|
@@ -31,8 +31,8 @@ module OryHydraClient
|
|
|
31
31
|
# Attribute type mapping.
|
|
32
32
|
def self.openapi_types
|
|
33
33
|
{
|
|
34
|
-
:'access_token' => :'Object',
|
|
35
|
-
:'id_token' => :'Object'
|
|
34
|
+
:'access_token' => :'Hash<String, Object>',
|
|
35
|
+
:'id_token' => :'Hash<String, Object>'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -58,11 +58,15 @@ module OryHydraClient
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
if attributes.key?(:'access_token')
|
|
61
|
-
|
|
61
|
+
if (value = attributes[:'access_token']).is_a?(Hash)
|
|
62
|
+
self.access_token = value
|
|
63
|
+
end
|
|
62
64
|
end
|
|
63
65
|
|
|
64
66
|
if attributes.key?(:'id_token')
|
|
65
|
-
|
|
67
|
+
if (value = attributes[:'id_token']).is_a?(Hash)
|
|
68
|
+
self.id_token = value
|
|
69
|
+
end
|
|
66
70
|
end
|
|
67
71
|
end
|
|
68
72
|
|
|
@@ -3,32 +3,41 @@
|
|
|
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
|
+
# Extension Extension Extension Extension represents the ASN.1 structure of the same name. See RFC 5280, section 4.2.
|
|
17
|
+
class Extension
|
|
18
|
+
# critical
|
|
19
|
+
attr_accessor :critical
|
|
20
|
+
|
|
21
|
+
attr_accessor :id
|
|
22
|
+
|
|
23
|
+
# value
|
|
24
|
+
attr_accessor :value
|
|
20
25
|
|
|
21
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
27
|
def self.attribute_map
|
|
23
28
|
{
|
|
24
|
-
:'
|
|
29
|
+
:'critical' => :'Critical',
|
|
30
|
+
:'id' => :'Id',
|
|
31
|
+
:'value' => :'Value'
|
|
25
32
|
}
|
|
26
33
|
end
|
|
27
34
|
|
|
28
35
|
# Attribute type mapping.
|
|
29
36
|
def self.openapi_types
|
|
30
37
|
{
|
|
31
|
-
:'
|
|
38
|
+
:'critical' => :'Boolean',
|
|
39
|
+
:'id' => :'Array<Integer>',
|
|
40
|
+
:'value' => :'Array<Integer>'
|
|
32
41
|
}
|
|
33
42
|
end
|
|
34
43
|
|
|
@@ -42,19 +51,31 @@ module OryHydraClient
|
|
|
42
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
43
52
|
def initialize(attributes = {})
|
|
44
53
|
if (!attributes.is_a?(Hash))
|
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::Extension` initialize method"
|
|
46
55
|
end
|
|
47
56
|
|
|
48
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
49
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
50
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::
|
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::Extension`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
52
61
|
end
|
|
53
62
|
h[k.to_sym] = v
|
|
54
63
|
}
|
|
55
64
|
|
|
56
|
-
if attributes.key?(:'
|
|
57
|
-
self.
|
|
65
|
+
if attributes.key?(:'critical')
|
|
66
|
+
self.critical = attributes[:'critical']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'id')
|
|
70
|
+
if (value = attributes[:'id']).is_a?(Array)
|
|
71
|
+
self.id = value
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'value')
|
|
76
|
+
if (value = attributes[:'value']).is_a?(Array)
|
|
77
|
+
self.value = value
|
|
78
|
+
end
|
|
58
79
|
end
|
|
59
80
|
end
|
|
60
81
|
|
|
@@ -62,17 +83,12 @@ module OryHydraClient
|
|
|
62
83
|
# @return Array for valid properties with the reasons
|
|
63
84
|
def list_invalid_properties
|
|
64
85
|
invalid_properties = Array.new
|
|
65
|
-
if @type.nil?
|
|
66
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
67
|
-
end
|
|
68
|
-
|
|
69
86
|
invalid_properties
|
|
70
87
|
end
|
|
71
88
|
|
|
72
89
|
# Check to see if the all the properties in the model are valid
|
|
73
90
|
# @return true if the model is valid
|
|
74
91
|
def valid?
|
|
75
|
-
return false if @type.nil?
|
|
76
92
|
true
|
|
77
93
|
end
|
|
78
94
|
|
|
@@ -81,7 +97,9 @@ module OryHydraClient
|
|
|
81
97
|
def ==(o)
|
|
82
98
|
return true if self.equal?(o)
|
|
83
99
|
self.class == o.class &&
|
|
84
|
-
|
|
100
|
+
critical == o.critical &&
|
|
101
|
+
id == o.id &&
|
|
102
|
+
value == o.value
|
|
85
103
|
end
|
|
86
104
|
|
|
87
105
|
# @see the `==` method
|
|
@@ -93,7 +111,7 @@ module OryHydraClient
|
|
|
93
111
|
# Calculates hash code according to all attributes.
|
|
94
112
|
# @return [Integer] Hash code
|
|
95
113
|
def hash
|
|
96
|
-
[
|
|
114
|
+
[critical, id, value].hash
|
|
97
115
|
end
|
|
98
116
|
|
|
99
117
|
# 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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -3,37 +3,35 @@
|
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
attr_accessor :gid
|
|
16
|
+
class IPNet
|
|
17
|
+
# Note that in this documentation, referring to an IP address as an IPv4 address or an IPv6 address is a semantic property of the address, not just the length of the byte slice: a 16-byte slice can still be an IPv4 address.
|
|
18
|
+
attr_accessor :ip
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
attr_accessor :uid
|
|
20
|
+
attr_accessor :mask
|
|
23
21
|
|
|
24
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
23
|
def self.attribute_map
|
|
26
24
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'
|
|
25
|
+
:'ip' => :'IP',
|
|
26
|
+
:'mask' => :'Mask'
|
|
29
27
|
}
|
|
30
28
|
end
|
|
31
29
|
|
|
32
30
|
# Attribute type mapping.
|
|
33
31
|
def self.openapi_types
|
|
34
32
|
{
|
|
35
|
-
:'
|
|
36
|
-
:'
|
|
33
|
+
:'ip' => :'Array<Integer>',
|
|
34
|
+
:'mask' => :'Array<Integer>'
|
|
37
35
|
}
|
|
38
36
|
end
|
|
39
37
|
|
|
@@ -47,23 +45,27 @@ module OryHydraClient
|
|
|
47
45
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
46
|
def initialize(attributes = {})
|
|
49
47
|
if (!attributes.is_a?(Hash))
|
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::
|
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::IPNet` initialize method"
|
|
51
49
|
end
|
|
52
50
|
|
|
53
51
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
52
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
53
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::
|
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::IPNet`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
55
|
end
|
|
58
56
|
h[k.to_sym] = v
|
|
59
57
|
}
|
|
60
58
|
|
|
61
|
-
if attributes.key?(:'
|
|
62
|
-
|
|
59
|
+
if attributes.key?(:'ip')
|
|
60
|
+
if (value = attributes[:'ip']).is_a?(Array)
|
|
61
|
+
self.ip = value
|
|
62
|
+
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
if attributes.key?(:'
|
|
66
|
-
|
|
65
|
+
if attributes.key?(:'mask')
|
|
66
|
+
if (value = attributes[:'mask']).is_a?(Array)
|
|
67
|
+
self.mask = value
|
|
68
|
+
end
|
|
67
69
|
end
|
|
68
70
|
end
|
|
69
71
|
|
|
@@ -85,8 +87,8 @@ module OryHydraClient
|
|
|
85
87
|
def ==(o)
|
|
86
88
|
return true if self.equal?(o)
|
|
87
89
|
self.class == o.class &&
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
ip == o.ip &&
|
|
91
|
+
mask == o.mask
|
|
90
92
|
end
|
|
91
93
|
|
|
92
94
|
# @see the `==` method
|
|
@@ -98,7 +100,7 @@ module OryHydraClient
|
|
|
98
100
|
# Calculates hash code according to all attributes.
|
|
99
101
|
# @return [Integer] Hash code
|
|
100
102
|
def hash
|
|
101
|
-
[
|
|
103
|
+
[ip, mask].hash
|
|
102
104
|
end
|
|
103
105
|
|
|
104
106
|
# Builds the object from hash
|
|
@@ -3,31 +3,37 @@
|
|
|
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
|
-
#
|
|
16
|
+
# JSONWebKey JSONWebKey JSONWebKey JSON web key
|
|
17
17
|
class JSONWebKey
|
|
18
18
|
# The \"alg\" (algorithm) parameter identifies the algorithm intended for use with the key. The values used should either be registered in the IANA \"JSON Web Signature and Encryption Algorithms\" registry established by [JWA] or be a value that contains a Collision- Resistant Name.
|
|
19
19
|
attr_accessor :alg
|
|
20
20
|
|
|
21
|
+
# crv
|
|
21
22
|
attr_accessor :crv
|
|
22
23
|
|
|
24
|
+
# d
|
|
23
25
|
attr_accessor :d
|
|
24
26
|
|
|
27
|
+
# dp
|
|
25
28
|
attr_accessor :dp
|
|
26
29
|
|
|
30
|
+
# dq
|
|
27
31
|
attr_accessor :dq
|
|
28
32
|
|
|
33
|
+
# e
|
|
29
34
|
attr_accessor :e
|
|
30
35
|
|
|
36
|
+
# k
|
|
31
37
|
attr_accessor :k
|
|
32
38
|
|
|
33
39
|
# The \"kid\" (key ID) parameter is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover. The structure of the \"kid\" value is unspecified. When \"kid\" values are used within a JWK Set, different keys within the JWK Set SHOULD use distinct \"kid\" values. (One example in which different keys might use the same \"kid\" value is if they have different \"kty\" (key type) values but are considered to be equivalent alternatives by the application using them.) The \"kid\" value is a case-sensitive string.
|
|
@@ -36,22 +42,28 @@ module OryHydraClient
|
|
|
36
42
|
# The \"kty\" (key type) parameter identifies the cryptographic algorithm family used with the key, such as \"RSA\" or \"EC\". \"kty\" values should either be registered in the IANA \"JSON Web Key Types\" registry established by [JWA] or be a value that contains a Collision- Resistant Name. The \"kty\" value is a case-sensitive string.
|
|
37
43
|
attr_accessor :kty
|
|
38
44
|
|
|
45
|
+
# n
|
|
39
46
|
attr_accessor :n
|
|
40
47
|
|
|
48
|
+
# p
|
|
41
49
|
attr_accessor :p
|
|
42
50
|
|
|
51
|
+
# q
|
|
43
52
|
attr_accessor :q
|
|
44
53
|
|
|
54
|
+
# qi
|
|
45
55
|
attr_accessor :qi
|
|
46
56
|
|
|
47
57
|
# Use (\"public key use\") identifies the intended use of the public key. The \"use\" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data. Values are commonly \"sig\" (signature) or \"enc\" (encryption).
|
|
48
58
|
attr_accessor :use
|
|
49
59
|
|
|
60
|
+
# x
|
|
50
61
|
attr_accessor :x
|
|
51
62
|
|
|
52
63
|
# The \"x5c\" (X.509 certificate chain) parameter contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. The PKIX certificate containing the key value MUST be the first certificate.
|
|
53
64
|
attr_accessor :x5c
|
|
54
65
|
|
|
66
|
+
# y
|
|
55
67
|
attr_accessor :y
|
|
56
68
|
|
|
57
69
|
# Attribute mapping from ruby-style variable name to JSON key.
|