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.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +37 -45
  4. data/docs/AcceptConsentRequest.md +2 -4
  5. data/docs/AcceptLoginRequest.md +1 -1
  6. data/docs/AdminApi.md +70 -110
  7. data/docs/AttributeTypeAndValue.md +19 -0
  8. data/docs/Certificate.md +101 -0
  9. data/docs/CompletedRequest.md +1 -1
  10. data/docs/ConsentRequest.md +4 -4
  11. data/docs/ConsentRequestSession.md +2 -2
  12. data/docs/Extension.md +21 -0
  13. data/docs/IPNet.md +19 -0
  14. data/docs/JSONWebKey.md +12 -12
  15. data/docs/LoginRequest.md +7 -7
  16. data/docs/Name.md +27 -0
  17. data/docs/OAuth2Client.md +11 -13
  18. data/docs/OAuth2TokenIntrospection.md +3 -5
  19. data/docs/Oauth2TokenResponse.md +6 -6
  20. data/docs/OpenIDConnectContext.md +1 -1
  21. data/docs/PreviousConsentSession.md +2 -4
  22. data/docs/PublicApi.md +15 -15
  23. data/docs/RejectRequest.md +5 -5
  24. data/docs/URL.md +33 -0
  25. data/docs/WellKnown.md +1 -3
  26. data/lib/ory-hydra-client.rb +9 -16
  27. data/lib/ory-hydra-client/api/admin_api.rb +47 -113
  28. data/lib/ory-hydra-client/api/public_api.rb +12 -12
  29. data/lib/ory-hydra-client/api_client.rb +7 -9
  30. data/lib/ory-hydra-client/api_error.rb +2 -2
  31. data/lib/ory-hydra-client/configuration.rb +2 -2
  32. data/lib/ory-hydra-client/models/accept_consent_request.rb +5 -12
  33. data/lib/ory-hydra-client/models/accept_login_request.rb +7 -4
  34. data/lib/ory-hydra-client/models/{plugin_config_rootfs.rb → attribute_type_and_value.rb} +21 -22
  35. data/lib/ory-hydra-client/models/certificate.rb +683 -0
  36. data/lib/ory-hydra-client/models/completed_request.rb +2 -7
  37. data/lib/ory-hydra-client/models/consent_request.rb +10 -10
  38. data/lib/ory-hydra-client/models/consent_request_session.rb +10 -6
  39. data/lib/ory-hydra-client/models/{plugin_config_network.rb → extension.rb} +37 -19
  40. data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +2 -2
  41. data/lib/ory-hydra-client/models/generic_error.rb +2 -2
  42. data/lib/ory-hydra-client/models/health_not_ready_status.rb +2 -2
  43. data/lib/ory-hydra-client/models/health_status.rb +2 -2
  44. data/lib/ory-hydra-client/models/{plugin_config_user.rb → ip_net.rb} +23 -21
  45. data/lib/ory-hydra-client/models/json_web_key.rb +15 -3
  46. data/lib/ory-hydra-client/models/json_web_key_set.rb +3 -3
  47. data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +3 -2
  48. data/lib/ory-hydra-client/models/login_request.rb +5 -38
  49. data/lib/ory-hydra-client/models/logout_request.rb +2 -2
  50. data/lib/ory-hydra-client/models/{plugin_settings.rb → name.rb} +61 -58
  51. data/lib/ory-hydra-client/models/o_auth2_client.rb +14 -15
  52. data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +9 -17
  53. data/lib/ory-hydra-client/models/oauth2_token_response.rb +8 -2
  54. data/lib/ory-hydra-client/models/oauth_token_response.rb +2 -2
  55. data/lib/ory-hydra-client/models/open_id_connect_context.rb +6 -4
  56. data/lib/ory-hydra-client/models/previous_consent_session.rb +6 -13
  57. data/lib/ory-hydra-client/models/reject_request.rb +7 -7
  58. data/lib/ory-hydra-client/models/{plugin_device.rb → url.rb} +77 -49
  59. data/lib/ory-hydra-client/models/userinfo_response.rb +3 -3
  60. data/lib/ory-hydra-client/models/version.rb +3 -2
  61. data/lib/ory-hydra-client/models/well_known.rb +3 -15
  62. data/lib/ory-hydra-client/version.rb +3 -3
  63. data/ory-hydra-client.gemspec +2 -2
  64. data/spec/models/{plugin_config_rootfs_spec.rb → attribute_type_and_value_spec.rb} +9 -9
  65. data/spec/models/certificate_spec.rb +293 -0
  66. data/spec/models/{plugin_interface_type_spec.rb → extension_spec.rb} +10 -10
  67. data/spec/models/{plugin_config_user_spec.rb → ip_net_spec.rb} +9 -9
  68. data/spec/models/{plugin_mount_spec.rb → name_spec.rb} +13 -19
  69. data/spec/models/url_spec.rb +89 -0
  70. metadata +43 -75
  71. data/docs/ContainerWaitOKBodyError.md +0 -17
  72. data/docs/PluginConfig.md +0 -47
  73. data/docs/PluginConfigArgs.md +0 -23
  74. data/docs/PluginConfigInterface.md +0 -19
  75. data/docs/PluginConfigLinux.md +0 -21
  76. data/docs/PluginConfigNetwork.md +0 -17
  77. data/docs/PluginConfigRootfs.md +0 -19
  78. data/docs/PluginConfigUser.md +0 -19
  79. data/docs/PluginDevice.md +0 -23
  80. data/docs/PluginEnv.md +0 -23
  81. data/docs/PluginInterfaceType.md +0 -21
  82. data/docs/PluginMount.md +0 -29
  83. data/docs/PluginSettings.md +0 -23
  84. data/docs/VolumeUsageData.md +0 -19
  85. data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +0 -208
  86. data/lib/ory-hydra-client/models/plugin_config.rb +0 -422
  87. data/lib/ory-hydra-client/models/plugin_config_args.rb +0 -262
  88. data/lib/ory-hydra-client/models/plugin_config_interface.rb +0 -230
  89. data/lib/ory-hydra-client/models/plugin_config_linux.rb +0 -247
  90. data/lib/ory-hydra-client/models/plugin_env.rb +0 -260
  91. data/lib/ory-hydra-client/models/plugin_interface_type.rb +0 -243
  92. data/lib/ory-hydra-client/models/plugin_mount.rb +0 -307
  93. data/lib/ory-hydra-client/models/volume_usage_data.rb +0 -228
  94. data/spec/models/container_wait_ok_body_error_spec.rb +0 -41
  95. data/spec/models/plugin_config_args_spec.rb +0 -59
  96. data/spec/models/plugin_config_interface_spec.rb +0 -47
  97. data/spec/models/plugin_config_linux_spec.rb +0 -53
  98. data/spec/models/plugin_config_network_spec.rb +0 -41
  99. data/spec/models/plugin_config_spec.rb +0 -131
  100. data/spec/models/plugin_device_spec.rb +0 -59
  101. data/spec/models/plugin_env_spec.rb +0 -59
  102. data/spec/models/plugin_settings_spec.rb +0 -59
  103. data/spec/models/volume_usage_data_spec.rb +0 -47
@@ -1,230 +0,0 @@
1
- =begin
2
- #ORY Hydra
3
-
4
- #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
-
6
- The version of the OpenAPI document: v0.0.0-alpha.63
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module OryHydraClient
16
- # PluginConfigInterface The interface between Docker and the plugin
17
- class PluginConfigInterface
18
- # socket
19
- attr_accessor :socket
20
-
21
- # types
22
- attr_accessor :types
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'socket' => :'Socket',
28
- :'types' => :'Types'
29
- }
30
- end
31
-
32
- # Attribute type mapping.
33
- def self.openapi_types
34
- {
35
- :'socket' => :'String',
36
- :'types' => :'Array<PluginInterfaceType>'
37
- }
38
- end
39
-
40
- # List of attributes with nullable: true
41
- def self.openapi_nullable
42
- Set.new([
43
- ])
44
- end
45
-
46
- # Initializes the object
47
- # @param [Hash] attributes Model attributes in the form of hash
48
- def initialize(attributes = {})
49
- if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::PluginConfigInterface` initialize method"
51
- end
52
-
53
- # check to see if the attribute exists and convert string to symbol for hash key
54
- attributes = attributes.each_with_object({}) { |(k, v), h|
55
- if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::PluginConfigInterface`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
- end
58
- h[k.to_sym] = v
59
- }
60
-
61
- if attributes.key?(:'socket')
62
- self.socket = attributes[:'socket']
63
- end
64
-
65
- if attributes.key?(:'types')
66
- if (value = attributes[:'types']).is_a?(Array)
67
- self.types = value
68
- end
69
- end
70
- end
71
-
72
- # Show invalid properties with the reasons. Usually used together with valid?
73
- # @return Array for valid properties with the reasons
74
- def list_invalid_properties
75
- invalid_properties = Array.new
76
- if @socket.nil?
77
- invalid_properties.push('invalid value for "socket", socket cannot be nil.')
78
- end
79
-
80
- if @types.nil?
81
- invalid_properties.push('invalid value for "types", types cannot be nil.')
82
- end
83
-
84
- invalid_properties
85
- end
86
-
87
- # Check to see if the all the properties in the model are valid
88
- # @return true if the model is valid
89
- def valid?
90
- return false if @socket.nil?
91
- return false if @types.nil?
92
- true
93
- end
94
-
95
- # Checks equality by comparing each attribute.
96
- # @param [Object] Object to be compared
97
- def ==(o)
98
- return true if self.equal?(o)
99
- self.class == o.class &&
100
- socket == o.socket &&
101
- types == o.types
102
- end
103
-
104
- # @see the `==` method
105
- # @param [Object] Object to be compared
106
- def eql?(o)
107
- self == o
108
- end
109
-
110
- # Calculates hash code according to all attributes.
111
- # @return [Integer] Hash code
112
- def hash
113
- [socket, types].hash
114
- end
115
-
116
- # Builds the object from hash
117
- # @param [Hash] attributes Model attributes in the form of hash
118
- # @return [Object] Returns the model itself
119
- def self.build_from_hash(attributes)
120
- new.build_from_hash(attributes)
121
- end
122
-
123
- # Builds the object from hash
124
- # @param [Hash] attributes Model attributes in the form of hash
125
- # @return [Object] Returns the model itself
126
- def build_from_hash(attributes)
127
- return nil unless attributes.is_a?(Hash)
128
- self.class.openapi_types.each_pair do |key, type|
129
- if type =~ /\AArray<(.*)>/i
130
- # check to ensure the input is an array given that the attribute
131
- # is documented as an array but the input is not
132
- if attributes[self.class.attribute_map[key]].is_a?(Array)
133
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
134
- end
135
- elsif !attributes[self.class.attribute_map[key]].nil?
136
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
- end # or else data not found in attributes(hash), not an issue as the data can be optional
138
- end
139
-
140
- self
141
- end
142
-
143
- # Deserializes the data based on type
144
- # @param string type Data type
145
- # @param string value Value to be deserialized
146
- # @return [Object] Deserialized data
147
- def _deserialize(type, value)
148
- case type.to_sym
149
- when :DateTime
150
- DateTime.parse(value)
151
- when :Date
152
- Date.parse(value)
153
- when :String
154
- value.to_s
155
- when :Integer
156
- value.to_i
157
- when :Float
158
- value.to_f
159
- when :Boolean
160
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
- true
162
- else
163
- false
164
- end
165
- when :Object
166
- # generic object (usually a Hash), return directly
167
- value
168
- when /\AArray<(?<inner_type>.+)>\z/
169
- inner_type = Regexp.last_match[:inner_type]
170
- value.map { |v| _deserialize(inner_type, v) }
171
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
- k_type = Regexp.last_match[:k_type]
173
- v_type = Regexp.last_match[:v_type]
174
- {}.tap do |hash|
175
- value.each do |k, v|
176
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
- end
178
- end
179
- else # model
180
- OryHydraClient.const_get(type).build_from_hash(value)
181
- end
182
- end
183
-
184
- # Returns the string representation of the object
185
- # @return [String] String presentation of the object
186
- def to_s
187
- to_hash.to_s
188
- end
189
-
190
- # to_body is an alias to to_hash (backward compatibility)
191
- # @return [Hash] Returns the object in the form of hash
192
- def to_body
193
- to_hash
194
- end
195
-
196
- # Returns the object in the form of hash
197
- # @return [Hash] Returns the object in the form of hash
198
- def to_hash
199
- hash = {}
200
- self.class.attribute_map.each_pair do |attr, param|
201
- value = self.send(attr)
202
- if value.nil?
203
- is_nullable = self.class.openapi_nullable.include?(attr)
204
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
- end
206
-
207
- hash[param] = _to_hash(value)
208
- end
209
- hash
210
- end
211
-
212
- # Outputs non-array value in the form of hash
213
- # For object, use to_hash. Otherwise, just return the value
214
- # @param [Object] value Any valid value
215
- # @return [Hash] Returns the value in the form of hash
216
- def _to_hash(value)
217
- if value.is_a?(Array)
218
- value.compact.map { |v| _to_hash(v) }
219
- elsif value.is_a?(Hash)
220
- {}.tap do |hash|
221
- value.each { |k, v| hash[k] = _to_hash(v) }
222
- end
223
- elsif value.respond_to? :to_hash
224
- value.to_hash
225
- else
226
- value
227
- end
228
- end
229
- end
230
- end
@@ -1,247 +0,0 @@
1
- =begin
2
- #ORY Hydra
3
-
4
- #Welcome to the ORY Hydra HTTP API documentation. You will find documentation for all HTTP APIs here.
5
-
6
- The version of the OpenAPI document: v0.0.0-alpha.63
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module OryHydraClient
16
- # PluginConfigLinux plugin config linux
17
- class PluginConfigLinux
18
- # allow all devices
19
- attr_accessor :allow_all_devices
20
-
21
- # capabilities
22
- attr_accessor :capabilities
23
-
24
- # devices
25
- attr_accessor :devices
26
-
27
- # Attribute mapping from ruby-style variable name to JSON key.
28
- def self.attribute_map
29
- {
30
- :'allow_all_devices' => :'AllowAllDevices',
31
- :'capabilities' => :'Capabilities',
32
- :'devices' => :'Devices'
33
- }
34
- end
35
-
36
- # Attribute type mapping.
37
- def self.openapi_types
38
- {
39
- :'allow_all_devices' => :'Boolean',
40
- :'capabilities' => :'Array<String>',
41
- :'devices' => :'Array<PluginDevice>'
42
- }
43
- end
44
-
45
- # List of attributes with nullable: true
46
- def self.openapi_nullable
47
- Set.new([
48
- ])
49
- end
50
-
51
- # Initializes the object
52
- # @param [Hash] attributes Model attributes in the form of hash
53
- def initialize(attributes = {})
54
- if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::PluginConfigLinux` initialize method"
56
- end
57
-
58
- # check to see if the attribute exists and convert string to symbol for hash key
59
- attributes = attributes.each_with_object({}) { |(k, v), h|
60
- if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::PluginConfigLinux`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
- end
63
- h[k.to_sym] = v
64
- }
65
-
66
- if attributes.key?(:'allow_all_devices')
67
- self.allow_all_devices = attributes[:'allow_all_devices']
68
- end
69
-
70
- if attributes.key?(:'capabilities')
71
- if (value = attributes[:'capabilities']).is_a?(Array)
72
- self.capabilities = value
73
- end
74
- end
75
-
76
- if attributes.key?(:'devices')
77
- if (value = attributes[:'devices']).is_a?(Array)
78
- self.devices = value
79
- end
80
- end
81
- end
82
-
83
- # Show invalid properties with the reasons. Usually used together with valid?
84
- # @return Array for valid properties with the reasons
85
- def list_invalid_properties
86
- invalid_properties = Array.new
87
- if @allow_all_devices.nil?
88
- invalid_properties.push('invalid value for "allow_all_devices", allow_all_devices cannot be nil.')
89
- end
90
-
91
- if @capabilities.nil?
92
- invalid_properties.push('invalid value for "capabilities", capabilities cannot be nil.')
93
- end
94
-
95
- if @devices.nil?
96
- invalid_properties.push('invalid value for "devices", devices cannot be nil.')
97
- end
98
-
99
- invalid_properties
100
- end
101
-
102
- # Check to see if the all the properties in the model are valid
103
- # @return true if the model is valid
104
- def valid?
105
- return false if @allow_all_devices.nil?
106
- return false if @capabilities.nil?
107
- return false if @devices.nil?
108
- true
109
- end
110
-
111
- # Checks equality by comparing each attribute.
112
- # @param [Object] Object to be compared
113
- def ==(o)
114
- return true if self.equal?(o)
115
- self.class == o.class &&
116
- allow_all_devices == o.allow_all_devices &&
117
- capabilities == o.capabilities &&
118
- devices == o.devices
119
- end
120
-
121
- # @see the `==` method
122
- # @param [Object] Object to be compared
123
- def eql?(o)
124
- self == o
125
- end
126
-
127
- # Calculates hash code according to all attributes.
128
- # @return [Integer] Hash code
129
- def hash
130
- [allow_all_devices, capabilities, devices].hash
131
- end
132
-
133
- # Builds the object from hash
134
- # @param [Hash] attributes Model attributes in the form of hash
135
- # @return [Object] Returns the model itself
136
- def self.build_from_hash(attributes)
137
- new.build_from_hash(attributes)
138
- end
139
-
140
- # Builds the object from hash
141
- # @param [Hash] attributes Model attributes in the form of hash
142
- # @return [Object] Returns the model itself
143
- def build_from_hash(attributes)
144
- return nil unless attributes.is_a?(Hash)
145
- self.class.openapi_types.each_pair do |key, type|
146
- if type =~ /\AArray<(.*)>/i
147
- # check to ensure the input is an array given that the attribute
148
- # is documented as an array but the input is not
149
- if attributes[self.class.attribute_map[key]].is_a?(Array)
150
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
- end
152
- elsif !attributes[self.class.attribute_map[key]].nil?
153
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
154
- end # or else data not found in attributes(hash), not an issue as the data can be optional
155
- end
156
-
157
- self
158
- end
159
-
160
- # Deserializes the data based on type
161
- # @param string type Data type
162
- # @param string value Value to be deserialized
163
- # @return [Object] Deserialized data
164
- def _deserialize(type, value)
165
- case type.to_sym
166
- when :DateTime
167
- DateTime.parse(value)
168
- when :Date
169
- Date.parse(value)
170
- when :String
171
- value.to_s
172
- when :Integer
173
- value.to_i
174
- when :Float
175
- value.to_f
176
- when :Boolean
177
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
- true
179
- else
180
- false
181
- end
182
- when :Object
183
- # generic object (usually a Hash), return directly
184
- value
185
- when /\AArray<(?<inner_type>.+)>\z/
186
- inner_type = Regexp.last_match[:inner_type]
187
- value.map { |v| _deserialize(inner_type, v) }
188
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
- k_type = Regexp.last_match[:k_type]
190
- v_type = Regexp.last_match[:v_type]
191
- {}.tap do |hash|
192
- value.each do |k, v|
193
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
194
- end
195
- end
196
- else # model
197
- OryHydraClient.const_get(type).build_from_hash(value)
198
- end
199
- end
200
-
201
- # Returns the string representation of the object
202
- # @return [String] String presentation of the object
203
- def to_s
204
- to_hash.to_s
205
- end
206
-
207
- # to_body is an alias to to_hash (backward compatibility)
208
- # @return [Hash] Returns the object in the form of hash
209
- def to_body
210
- to_hash
211
- end
212
-
213
- # Returns the object in the form of hash
214
- # @return [Hash] Returns the object in the form of hash
215
- def to_hash
216
- hash = {}
217
- self.class.attribute_map.each_pair do |attr, param|
218
- value = self.send(attr)
219
- if value.nil?
220
- is_nullable = self.class.openapi_nullable.include?(attr)
221
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
222
- end
223
-
224
- hash[param] = _to_hash(value)
225
- end
226
- hash
227
- end
228
-
229
- # Outputs non-array value in the form of hash
230
- # For object, use to_hash. Otherwise, just return the value
231
- # @param [Object] value Any valid value
232
- # @return [Hash] Returns the value in the form of hash
233
- def _to_hash(value)
234
- if value.is_a?(Array)
235
- value.compact.map { |v| _to_hash(v) }
236
- elsif value.is_a?(Hash)
237
- {}.tap do |hash|
238
- value.each { |k, v| hash[k] = _to_hash(v) }
239
- end
240
- elsif value.respond_to? :to_hash
241
- value.to_hash
242
- else
243
- value
244
- end
245
- end
246
- end
247
- end