ory-hydra-client 1.4.6 → 1.5.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -4
  3. data/docs/AdminApi.md +1 -1
  4. data/docs/ConsentRequestSession.md +2 -2
  5. data/docs/ContainerWaitOKBodyError.md +17 -0
  6. data/docs/FlushInactiveOAuth2TokensRequest.md +1 -1
  7. data/docs/JSONWebKey.md +12 -12
  8. data/docs/OAuth2TokenIntrospection.md +1 -1
  9. data/docs/Oauth2TokenResponse.md +6 -6
  10. data/docs/OpenIDConnectContext.md +1 -1
  11. data/docs/PluginConfig.md +47 -0
  12. data/docs/PluginConfigArgs.md +23 -0
  13. data/docs/PluginConfigInterface.md +19 -0
  14. data/docs/PluginConfigLinux.md +21 -0
  15. data/docs/PluginConfigNetwork.md +17 -0
  16. data/docs/PluginConfigRootfs.md +19 -0
  17. data/docs/PluginConfigUser.md +19 -0
  18. data/docs/PluginDevice.md +23 -0
  19. data/docs/PluginEnv.md +23 -0
  20. data/docs/PluginInterfaceType.md +21 -0
  21. data/docs/PluginMount.md +29 -0
  22. data/docs/PluginSettings.md +23 -0
  23. data/docs/PreviousConsentSession.md +3 -3
  24. data/docs/RejectRequest.md +5 -5
  25. data/docs/VolumeUsageData.md +19 -0
  26. data/lib/ory-hydra-client.rb +14 -0
  27. data/lib/ory-hydra-client/api/admin_api.rb +2 -2
  28. data/lib/ory-hydra-client/models/consent_request_session.rb +4 -8
  29. data/lib/ory-hydra-client/models/container_wait_ok_body_error.rb +208 -0
  30. data/lib/ory-hydra-client/models/flush_inactive_o_auth2_tokens_request.rb +1 -2
  31. data/lib/ory-hydra-client/models/health_not_ready_status.rb +0 -1
  32. data/lib/ory-hydra-client/models/health_status.rb +0 -1
  33. data/lib/ory-hydra-client/models/json_web_key.rb +1 -13
  34. data/lib/ory-hydra-client/models/json_web_key_set.rb +1 -1
  35. data/lib/ory-hydra-client/models/json_web_key_set_generator_request.rb +0 -1
  36. data/lib/ory-hydra-client/models/o_auth2_token_introspection.rb +2 -4
  37. data/lib/ory-hydra-client/models/oauth2_token_response.rb +0 -6
  38. data/lib/ory-hydra-client/models/open_id_connect_context.rb +2 -4
  39. data/lib/ory-hydra-client/models/plugin_config.rb +422 -0
  40. data/lib/ory-hydra-client/models/plugin_config_args.rb +262 -0
  41. data/lib/ory-hydra-client/models/plugin_config_interface.rb +230 -0
  42. data/lib/ory-hydra-client/models/plugin_config_linux.rb +247 -0
  43. data/lib/ory-hydra-client/models/plugin_config_network.rb +213 -0
  44. data/lib/ory-hydra-client/models/plugin_config_rootfs.rb +220 -0
  45. data/lib/ory-hydra-client/models/plugin_config_user.rb +218 -0
  46. data/lib/ory-hydra-client/models/plugin_device.rb +260 -0
  47. data/lib/ory-hydra-client/models/plugin_env.rb +260 -0
  48. data/lib/ory-hydra-client/models/plugin_interface_type.rb +243 -0
  49. data/lib/ory-hydra-client/models/plugin_mount.rb +307 -0
  50. data/lib/ory-hydra-client/models/plugin_settings.rb +265 -0
  51. data/lib/ory-hydra-client/models/previous_consent_session.rb +1 -4
  52. data/lib/ory-hydra-client/models/reject_request.rb +0 -5
  53. data/lib/ory-hydra-client/models/version.rb +0 -1
  54. data/lib/ory-hydra-client/models/volume_usage_data.rb +228 -0
  55. data/lib/ory-hydra-client/version.rb +1 -1
  56. data/spec/models/container_wait_ok_body_error_spec.rb +41 -0
  57. data/spec/models/plugin_config_args_spec.rb +59 -0
  58. data/spec/models/plugin_config_interface_spec.rb +47 -0
  59. data/spec/models/plugin_config_linux_spec.rb +53 -0
  60. data/spec/models/plugin_config_network_spec.rb +41 -0
  61. data/spec/models/plugin_config_rootfs_spec.rb +47 -0
  62. data/spec/models/plugin_config_spec.rb +131 -0
  63. data/spec/models/plugin_config_user_spec.rb +47 -0
  64. data/spec/models/plugin_device_spec.rb +59 -0
  65. data/spec/models/plugin_env_spec.rb +59 -0
  66. data/spec/models/plugin_interface_type_spec.rb +53 -0
  67. data/spec/models/plugin_mount_spec.rb +77 -0
  68. data/spec/models/plugin_settings_spec.rb +59 -0
  69. data/spec/models/volume_usage_data_spec.rb +47 -0
  70. metadata +77 -21
@@ -13,17 +13,14 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession PreviousConsentSession The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json
16
+ # 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`.
21
20
  attr_accessor :grant_access_token_audience
22
21
 
23
- # GrantScope sets the scope the user authorized the client to use. Should be a subset of `requested_scope`
24
22
  attr_accessor :grant_scope
25
23
 
26
- # handled at Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time Format: date-time
27
24
  attr_accessor :handled_at
28
25
 
29
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.
@@ -14,19 +14,14 @@ require 'date'
14
14
 
15
15
  module OryHydraClient
16
16
  class RejectRequest
17
- # error
18
17
  attr_accessor :error
19
18
 
20
- # error debug
21
19
  attr_accessor :error_debug
22
20
 
23
- # error description
24
21
  attr_accessor :error_description
25
22
 
26
- # error hint
27
23
  attr_accessor :error_hint
28
24
 
29
- # status code
30
25
  attr_accessor :status_code
31
26
 
32
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -13,7 +13,6 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # Version Version version
17
16
  class Version
18
17
  # Version is the service's version.
19
18
  attr_accessor :version
@@ -0,0 +1,228 @@
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: latest
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module OryHydraClient
16
+ # VolumeUsageData Usage details about the volume. This information is used by the `GET /system/df` endpoint, and omitted in other endpoints.
17
+ class VolumeUsageData
18
+ # The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available.
19
+ attr_accessor :ref_count
20
+
21
+ # Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\")
22
+ attr_accessor :size
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'ref_count' => :'RefCount',
28
+ :'size' => :'Size'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'ref_count' => :'Integer',
36
+ :'size' => :'Integer'
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::VolumeUsageData` 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::VolumeUsageData`. 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?(:'ref_count')
62
+ self.ref_count = attributes[:'ref_count']
63
+ end
64
+
65
+ if attributes.key?(:'size')
66
+ self.size = attributes[:'size']
67
+ end
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properties with the reasons
72
+ def list_invalid_properties
73
+ invalid_properties = Array.new
74
+ if @ref_count.nil?
75
+ invalid_properties.push('invalid value for "ref_count", ref_count cannot be nil.')
76
+ end
77
+
78
+ if @size.nil?
79
+ invalid_properties.push('invalid value for "size", size cannot be nil.')
80
+ end
81
+
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ return false if @ref_count.nil?
89
+ return false if @size.nil?
90
+ true
91
+ end
92
+
93
+ # Checks equality by comparing each attribute.
94
+ # @param [Object] Object to be compared
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ ref_count == o.ref_count &&
99
+ size == o.size
100
+ end
101
+
102
+ # @see the `==` method
103
+ # @param [Object] Object to be compared
104
+ def eql?(o)
105
+ self == o
106
+ end
107
+
108
+ # Calculates hash code according to all attributes.
109
+ # @return [Integer] Hash code
110
+ def hash
111
+ [ref_count, size].hash
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def self.build_from_hash(attributes)
118
+ new.build_from_hash(attributes)
119
+ end
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def build_from_hash(attributes)
125
+ return nil unless attributes.is_a?(Hash)
126
+ self.class.openapi_types.each_pair do |key, type|
127
+ if type =~ /\AArray<(.*)>/i
128
+ # check to ensure the input is an array given that the attribute
129
+ # is documented as an array but the input is not
130
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
131
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
+ end
133
+ elsif !attributes[self.class.attribute_map[key]].nil?
134
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
136
+ end
137
+
138
+ self
139
+ end
140
+
141
+ # Deserializes the data based on type
142
+ # @param string type Data type
143
+ # @param string value Value to be deserialized
144
+ # @return [Object] Deserialized data
145
+ def _deserialize(type, value)
146
+ case type.to_sym
147
+ when :DateTime
148
+ DateTime.parse(value)
149
+ when :Date
150
+ Date.parse(value)
151
+ when :String
152
+ value.to_s
153
+ when :Integer
154
+ value.to_i
155
+ when :Float
156
+ value.to_f
157
+ when :Boolean
158
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
+ true
160
+ else
161
+ false
162
+ end
163
+ when :Object
164
+ # generic object (usually a Hash), return directly
165
+ value
166
+ when /\AArray<(?<inner_type>.+)>\z/
167
+ inner_type = Regexp.last_match[:inner_type]
168
+ value.map { |v| _deserialize(inner_type, v) }
169
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
+ k_type = Regexp.last_match[:k_type]
171
+ v_type = Regexp.last_match[:v_type]
172
+ {}.tap do |hash|
173
+ value.each do |k, v|
174
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
+ end
176
+ end
177
+ else # model
178
+ OryHydraClient.const_get(type).build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+ end
228
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module OryHydraClient
14
- VERSION = '1.4.6'
14
+ VERSION = '1.5.0.beta5'
15
15
  end
@@ -0,0 +1,41 @@
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: latest
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OryHydraClient::ContainerWaitOKBodyError
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'ContainerWaitOKBodyError' do
21
+ before do
22
+ # run before each test
23
+ @instance = OryHydraClient::ContainerWaitOKBodyError.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of ContainerWaitOKBodyError' do
31
+ it 'should create an instance of ContainerWaitOKBodyError' do
32
+ expect(@instance).to be_instance_of(OryHydraClient::ContainerWaitOKBodyError)
33
+ end
34
+ end
35
+ describe 'test attribute "message"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,59 @@
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: latest
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OryHydraClient::PluginConfigArgs
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PluginConfigArgs' do
21
+ before do
22
+ # run before each test
23
+ @instance = OryHydraClient::PluginConfigArgs.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PluginConfigArgs' do
31
+ it 'should create an instance of PluginConfigArgs' do
32
+ expect(@instance).to be_instance_of(OryHydraClient::PluginConfigArgs)
33
+ end
34
+ end
35
+ describe 'test attribute "description"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "settable"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "value"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ end
@@ -0,0 +1,47 @@
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: latest
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OryHydraClient::PluginConfigInterface
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PluginConfigInterface' do
21
+ before do
22
+ # run before each test
23
+ @instance = OryHydraClient::PluginConfigInterface.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PluginConfigInterface' do
31
+ it 'should create an instance of PluginConfigInterface' do
32
+ expect(@instance).to be_instance_of(OryHydraClient::PluginConfigInterface)
33
+ end
34
+ end
35
+ describe 'test attribute "socket"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "types"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,53 @@
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: latest
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for OryHydraClient::PluginConfigLinux
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PluginConfigLinux' do
21
+ before do
22
+ # run before each test
23
+ @instance = OryHydraClient::PluginConfigLinux.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PluginConfigLinux' do
31
+ it 'should create an instance of PluginConfigLinux' do
32
+ expect(@instance).to be_instance_of(OryHydraClient::PluginConfigLinux)
33
+ end
34
+ end
35
+ describe 'test attribute "allow_all_devices"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "capabilities"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "devices"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end