ory-kratos-client 0.6.2.alpha1 → 0.6.3.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -24
  3. data/docs/AdminApi.md +15 -13
  4. data/docs/GenericError.md +14 -2
  5. data/docs/Identity.md +6 -2
  6. data/docs/IdentityCredentials.md +5 -1
  7. data/docs/JsonError.md +18 -0
  8. data/docs/LoginFlow.md +5 -1
  9. data/docs/PublicApi.md +216 -210
  10. data/docs/RecoveryAddress.md +4 -0
  11. data/docs/SelfServiceErrorContainer.md +24 -0
  12. data/docs/VerifiableIdentityAddress.md +32 -0
  13. data/lib/ory-kratos-client.rb +4 -4
  14. data/lib/ory-kratos-client/api/admin_api.rb +7 -4
  15. data/lib/ory-kratos-client/api/public_api.rb +171 -162
  16. data/lib/ory-kratos-client/api_client.rb +1 -1
  17. data/lib/ory-kratos-client/api_error.rb +1 -1
  18. data/lib/ory-kratos-client/configuration.rb +15 -22
  19. data/lib/ory-kratos-client/models/authenticate_ok_body.rb +1 -1
  20. data/lib/ory-kratos-client/models/container_change_response_item.rb +1 -1
  21. data/lib/ory-kratos-client/models/container_create_created_body.rb +1 -1
  22. data/lib/ory-kratos-client/models/container_top_ok_body.rb +1 -1
  23. data/lib/ory-kratos-client/models/container_update_ok_body.rb +1 -1
  24. data/lib/ory-kratos-client/models/container_wait_ok_body.rb +1 -1
  25. data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +1 -1
  26. data/lib/ory-kratos-client/models/create_identity.rb +1 -1
  27. data/lib/ory-kratos-client/models/create_recovery_link.rb +1 -1
  28. data/lib/ory-kratos-client/models/error_response.rb +1 -1
  29. data/lib/ory-kratos-client/models/generic_error.rb +76 -9
  30. data/lib/ory-kratos-client/models/graph_driver_data.rb +1 -1
  31. data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
  32. data/lib/ory-kratos-client/models/health_status.rb +1 -1
  33. data/lib/ory-kratos-client/models/id_response.rb +1 -1
  34. data/lib/ory-kratos-client/models/identity.rb +27 -9
  35. data/lib/ory-kratos-client/models/identity_credentials.rb +25 -5
  36. data/lib/ory-kratos-client/models/image_delete_response_item.rb +1 -1
  37. data/lib/ory-kratos-client/models/image_summary.rb +1 -1
  38. data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
  39. data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
  40. data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
  41. data/lib/ory-kratos-client/models/json_error.rb +224 -0
  42. data/lib/ory-kratos-client/models/login_flow.rb +25 -5
  43. data/lib/ory-kratos-client/models/login_via_api_response.rb +1 -1
  44. data/lib/ory-kratos-client/models/meta.rb +1 -1
  45. data/lib/ory-kratos-client/models/plugin.rb +1 -1
  46. data/lib/ory-kratos-client/models/plugin_config.rb +1 -1
  47. data/lib/ory-kratos-client/models/plugin_config_args.rb +1 -1
  48. data/lib/ory-kratos-client/models/plugin_config_interface.rb +1 -1
  49. data/lib/ory-kratos-client/models/plugin_config_linux.rb +1 -1
  50. data/lib/ory-kratos-client/models/plugin_config_network.rb +1 -1
  51. data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +1 -1
  52. data/lib/ory-kratos-client/models/plugin_config_user.rb +1 -1
  53. data/lib/ory-kratos-client/models/plugin_device.rb +1 -1
  54. data/lib/ory-kratos-client/models/plugin_env.rb +1 -1
  55. data/lib/ory-kratos-client/models/plugin_interface_type.rb +1 -1
  56. data/lib/ory-kratos-client/models/plugin_mount.rb +1 -1
  57. data/lib/ory-kratos-client/models/plugin_settings.rb +1 -1
  58. data/lib/ory-kratos-client/models/port.rb +1 -1
  59. data/lib/ory-kratos-client/models/recovery_address.rb +22 -2
  60. data/lib/ory-kratos-client/models/recovery_flow.rb +1 -1
  61. data/lib/ory-kratos-client/models/recovery_link.rb +1 -1
  62. data/lib/ory-kratos-client/models/registration_flow.rb +1 -1
  63. data/lib/ory-kratos-client/models/registration_via_api_response.rb +1 -1
  64. data/lib/ory-kratos-client/models/revoke_session.rb +1 -1
  65. data/lib/ory-kratos-client/models/self_service_error_container.rb +260 -0
  66. data/lib/ory-kratos-client/models/service_update_response.rb +1 -1
  67. data/lib/ory-kratos-client/models/session.rb +1 -1
  68. data/lib/ory-kratos-client/models/settings_flow.rb +1 -1
  69. data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
  70. data/lib/ory-kratos-client/models/settings_via_api_response.rb +1 -1
  71. data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
  72. data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +1 -1
  73. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
  74. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
  75. data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +1 -1
  76. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method.rb +22 -1
  77. data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +1 -1
  78. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
  79. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
  80. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
  81. data/lib/ory-kratos-client/models/ui_container.rb +1 -1
  82. data/lib/ory-kratos-client/models/ui_node.rb +1 -1
  83. data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +1 -1
  84. data/lib/ory-kratos-client/models/ui_node_attributes.rb +1 -1
  85. data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +1 -1
  86. data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +1 -1
  87. data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +1 -1
  88. data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +1 -1
  89. data/lib/ory-kratos-client/models/ui_text.rb +1 -1
  90. data/lib/ory-kratos-client/models/update_identity.rb +1 -1
  91. data/lib/ory-kratos-client/models/verifiable_identity_address.rb +313 -0
  92. data/lib/ory-kratos-client/models/verification_flow.rb +1 -1
  93. data/lib/ory-kratos-client/models/version.rb +1 -1
  94. data/lib/ory-kratos-client/models/volume.rb +1 -1
  95. data/lib/ory-kratos-client/models/volume_usage_data.rb +1 -1
  96. data/lib/ory-kratos-client/version.rb +2 -2
  97. data/ory-kratos-client.gemspec +1 -1
  98. data/spec/api_client_spec.rb +1 -1
  99. data/spec/configuration_spec.rb +4 -4
  100. data/spec/models/json_error_spec.rb +34 -0
  101. data/spec/models/self_service_error_container_spec.rb +52 -0
  102. data/spec/models/verifiable_identity_address_spec.rb +76 -0
  103. data/spec/spec_helper.rb +1 -1
  104. metadata +14 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -18,18 +18,26 @@ module OryHydraClient
18
18
  class IdentityCredentials
19
19
  attr_accessor :config
20
20
 
21
+ # CreatedAt is a helper struct field for gobuffalo.pop.
22
+ attr_accessor :created_at
23
+
21
24
  # Identifiers represents a list of unique identifiers this credential type matches.
22
25
  attr_accessor :identifiers
23
26
 
24
27
  # and so on.
25
28
  attr_accessor :type
26
29
 
30
+ # UpdatedAt is a helper struct field for gobuffalo.pop.
31
+ attr_accessor :updated_at
32
+
27
33
  # Attribute mapping from ruby-style variable name to JSON key.
28
34
  def self.attribute_map
29
35
  {
30
36
  :'config' => :'config',
37
+ :'created_at' => :'created_at',
31
38
  :'identifiers' => :'identifiers',
32
- :'type' => :'type'
39
+ :'type' => :'type',
40
+ :'updated_at' => :'updated_at'
33
41
  }
34
42
  end
35
43
 
@@ -42,8 +50,10 @@ module OryHydraClient
42
50
  def self.openapi_types
43
51
  {
44
52
  :'config' => :'Object',
53
+ :'created_at' => :'Time',
45
54
  :'identifiers' => :'Array<String>',
46
- :'type' => :'String'
55
+ :'type' => :'String',
56
+ :'updated_at' => :'Time'
47
57
  }
48
58
  end
49
59
 
@@ -72,6 +82,10 @@ module OryHydraClient
72
82
  self.config = attributes[:'config']
73
83
  end
74
84
 
85
+ if attributes.key?(:'created_at')
86
+ self.created_at = attributes[:'created_at']
87
+ end
88
+
75
89
  if attributes.key?(:'identifiers')
76
90
  if (value = attributes[:'identifiers']).is_a?(Array)
77
91
  self.identifiers = value
@@ -81,6 +95,10 @@ module OryHydraClient
81
95
  if attributes.key?(:'type')
82
96
  self.type = attributes[:'type']
83
97
  end
98
+
99
+ if attributes.key?(:'updated_at')
100
+ self.updated_at = attributes[:'updated_at']
101
+ end
84
102
  end
85
103
 
86
104
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -102,8 +120,10 @@ module OryHydraClient
102
120
  return true if self.equal?(o)
103
121
  self.class == o.class &&
104
122
  config == o.config &&
123
+ created_at == o.created_at &&
105
124
  identifiers == o.identifiers &&
106
- type == o.type
125
+ type == o.type &&
126
+ updated_at == o.updated_at
107
127
  end
108
128
 
109
129
  # @see the `==` method
@@ -115,7 +135,7 @@ module OryHydraClient
115
135
  # Calculates hash code according to all attributes.
116
136
  # @return [Integer] Hash code
117
137
  def hash
118
- [config, identifiers, type].hash
138
+ [config, created_at, identifiers, type, updated_at].hash
119
139
  end
120
140
 
121
141
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -0,0 +1,224 @@
1
+ =begin
2
+ #Ory Kratos API
3
+
4
+ #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
+
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
+ Contact: hi@ory.sh
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module OryHydraClient
17
+ # The standard Ory JSON API error format.
18
+ class JsonError
19
+ attr_accessor :error
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'error' => :'error'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.openapi_types
35
+ {
36
+ :'error' => :'GenericError'
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::JsonError` 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::JsonError`. 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?(:'error')
62
+ self.error = attributes[:'error']
63
+ end
64
+ end
65
+
66
+ # Show invalid properties with the reasons. Usually used together with valid?
67
+ # @return Array for valid properties with the reasons
68
+ def list_invalid_properties
69
+ invalid_properties = Array.new
70
+ if @error.nil?
71
+ invalid_properties.push('invalid value for "error", error cannot be nil.')
72
+ end
73
+
74
+ invalid_properties
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ def valid?
80
+ return false if @error.nil?
81
+ true
82
+ end
83
+
84
+ # Checks equality by comparing each attribute.
85
+ # @param [Object] Object to be compared
86
+ def ==(o)
87
+ return true if self.equal?(o)
88
+ self.class == o.class &&
89
+ error == o.error
90
+ end
91
+
92
+ # @see the `==` method
93
+ # @param [Object] Object to be compared
94
+ def eql?(o)
95
+ self == o
96
+ end
97
+
98
+ # Calculates hash code according to all attributes.
99
+ # @return [Integer] Hash code
100
+ def hash
101
+ [error].hash
102
+ end
103
+
104
+ # Builds the object from hash
105
+ # @param [Hash] attributes Model attributes in the form of hash
106
+ # @return [Object] Returns the model itself
107
+ def self.build_from_hash(attributes)
108
+ new.build_from_hash(attributes)
109
+ end
110
+
111
+ # Builds the object from hash
112
+ # @param [Hash] attributes Model attributes in the form of hash
113
+ # @return [Object] Returns the model itself
114
+ def build_from_hash(attributes)
115
+ return nil unless attributes.is_a?(Hash)
116
+ self.class.openapi_types.each_pair do |key, type|
117
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
118
+ self.send("#{key}=", nil)
119
+ elsif type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
123
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
124
+ end
125
+ elsif !attributes[self.class.attribute_map[key]].nil?
126
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
127
+ end
128
+ end
129
+
130
+ self
131
+ end
132
+
133
+ # Deserializes the data based on type
134
+ # @param string type Data type
135
+ # @param string value Value to be deserialized
136
+ # @return [Object] Deserialized data
137
+ def _deserialize(type, value)
138
+ case type.to_sym
139
+ when :Time
140
+ Time.parse(value)
141
+ when :Date
142
+ Date.parse(value)
143
+ when :String
144
+ value.to_s
145
+ when :Integer
146
+ value.to_i
147
+ when :Float
148
+ value.to_f
149
+ when :Boolean
150
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
151
+ true
152
+ else
153
+ false
154
+ end
155
+ when :Object
156
+ # generic object (usually a Hash), return directly
157
+ value
158
+ when /\AArray<(?<inner_type>.+)>\z/
159
+ inner_type = Regexp.last_match[:inner_type]
160
+ value.map { |v| _deserialize(inner_type, v) }
161
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
162
+ k_type = Regexp.last_match[:k_type]
163
+ v_type = Regexp.last_match[:v_type]
164
+ {}.tap do |hash|
165
+ value.each do |k, v|
166
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
+ end
168
+ end
169
+ else # model
170
+ # models (e.g. Pet) or oneOf
171
+ klass = OryHydraClient.const_get(type)
172
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
+ end
174
+ end
175
+
176
+ # Returns the string representation of the object
177
+ # @return [String] String presentation of the object
178
+ def to_s
179
+ to_hash.to_s
180
+ end
181
+
182
+ # to_body is an alias to to_hash (backward compatibility)
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_body
185
+ to_hash
186
+ end
187
+
188
+ # Returns the object in the form of hash
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_hash
191
+ hash = {}
192
+ self.class.attribute_map.each_pair do |attr, param|
193
+ value = self.send(attr)
194
+ if value.nil?
195
+ is_nullable = self.class.openapi_nullable.include?(attr)
196
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
197
+ end
198
+
199
+ hash[param] = _to_hash(value)
200
+ end
201
+ hash
202
+ end
203
+
204
+ # Outputs non-array value in the form of hash
205
+ # For object, use to_hash. Otherwise, just return the value
206
+ # @param [Object] value Any valid value
207
+ # @return [Hash] Returns the value in the form of hash
208
+ def _to_hash(value)
209
+ if value.is_a?(Array)
210
+ value.compact.map { |v| _to_hash(v) }
211
+ elsif value.is_a?(Hash)
212
+ {}.tap do |hash|
213
+ value.each { |k, v| hash[k] = _to_hash(v) }
214
+ end
215
+ elsif value.respond_to? :to_hash
216
+ value.to_hash
217
+ else
218
+ value
219
+ end
220
+ end
221
+
222
+ end
223
+
224
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -19,6 +19,9 @@ module OryHydraClient
19
19
  # and so on.
20
20
  attr_accessor :active
21
21
 
22
+ # CreatedAt is a helper struct field for gobuffalo.pop.
23
+ attr_accessor :created_at
24
+
22
25
  # ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
23
26
  attr_accessor :expires_at
24
27
 
@@ -38,17 +41,22 @@ module OryHydraClient
38
41
 
39
42
  attr_accessor :ui
40
43
 
44
+ # UpdatedAt is a helper struct field for gobuffalo.pop.
45
+ attr_accessor :updated_at
46
+
41
47
  # Attribute mapping from ruby-style variable name to JSON key.
42
48
  def self.attribute_map
43
49
  {
44
50
  :'active' => :'active',
51
+ :'created_at' => :'created_at',
45
52
  :'expires_at' => :'expires_at',
46
53
  :'forced' => :'forced',
47
54
  :'id' => :'id',
48
55
  :'issued_at' => :'issued_at',
49
56
  :'request_url' => :'request_url',
50
57
  :'type' => :'type',
51
- :'ui' => :'ui'
58
+ :'ui' => :'ui',
59
+ :'updated_at' => :'updated_at'
52
60
  }
53
61
  end
54
62
 
@@ -61,13 +69,15 @@ module OryHydraClient
61
69
  def self.openapi_types
62
70
  {
63
71
  :'active' => :'String',
72
+ :'created_at' => :'Time',
64
73
  :'expires_at' => :'Time',
65
74
  :'forced' => :'Boolean',
66
75
  :'id' => :'String',
67
76
  :'issued_at' => :'Time',
68
77
  :'request_url' => :'String',
69
78
  :'type' => :'String',
70
- :'ui' => :'UiContainer'
79
+ :'ui' => :'UiContainer',
80
+ :'updated_at' => :'Time'
71
81
  }
72
82
  end
73
83
 
@@ -96,6 +106,10 @@ module OryHydraClient
96
106
  self.active = attributes[:'active']
97
107
  end
98
108
 
109
+ if attributes.key?(:'created_at')
110
+ self.created_at = attributes[:'created_at']
111
+ end
112
+
99
113
  if attributes.key?(:'expires_at')
100
114
  self.expires_at = attributes[:'expires_at']
101
115
  end
@@ -123,6 +137,10 @@ module OryHydraClient
123
137
  if attributes.key?(:'ui')
124
138
  self.ui = attributes[:'ui']
125
139
  end
140
+
141
+ if attributes.key?(:'updated_at')
142
+ self.updated_at = attributes[:'updated_at']
143
+ end
126
144
  end
127
145
 
128
146
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -174,13 +192,15 @@ module OryHydraClient
174
192
  return true if self.equal?(o)
175
193
  self.class == o.class &&
176
194
  active == o.active &&
195
+ created_at == o.created_at &&
177
196
  expires_at == o.expires_at &&
178
197
  forced == o.forced &&
179
198
  id == o.id &&
180
199
  issued_at == o.issued_at &&
181
200
  request_url == o.request_url &&
182
201
  type == o.type &&
183
- ui == o.ui
202
+ ui == o.ui &&
203
+ updated_at == o.updated_at
184
204
  end
185
205
 
186
206
  # @see the `==` method
@@ -192,7 +212,7 @@ module OryHydraClient
192
212
  # Calculates hash code according to all attributes.
193
213
  # @return [Integer] Hash code
194
214
  def hash
195
- [active, expires_at, forced, id, issued_at, request_url, type, ui].hash
215
+ [active, created_at, expires_at, forced, id, issued_at, request_url, type, ui, updated_at].hash
196
216
  end
197
217
 
198
218
  # Builds the object from hash