authentik-api 2026.2.3 → 2026.5.0.rc2

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 (206) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/README_API.md +66 -14
  4. data/lib/authentik/api/api/admin_api.rb +4 -12
  5. data/lib/authentik/api/api/core_api.rb +143 -18
  6. data/lib/authentik/api/api/crypto_api.rb +2 -6
  7. data/lib/authentik/api/api/endpoints_api.rb +1577 -656
  8. data/lib/authentik/api/api/events_api.rb +121 -38
  9. data/lib/authentik/api/api/flows_api.rb +8 -90
  10. data/lib/authentik/api/api/lifecycle_api.rb +22 -13
  11. data/lib/authentik/api/api/managed_api.rb +73 -0
  12. data/lib/authentik/api/api/policies_api.rb +5 -6
  13. data/lib/authentik/api/api/providers_api.rb +46 -108
  14. data/lib/authentik/api/api/rbac_api.rb +0 -5
  15. data/lib/authentik/api/api/schema_api.rb +4 -12
  16. data/lib/authentik/api/api/sources_api.rb +35 -96
  17. data/lib/authentik/api/api/ssf_api.rb +63 -6
  18. data/lib/authentik/api/api/stages_api.rb +581 -102
  19. data/lib/authentik/api/api/tasks_api.rb +5 -13
  20. data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
  21. data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
  22. data/lib/authentik/api/models/app_enum.rb +3 -2
  23. data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
  24. data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
  25. data/lib/authentik/api/models/application.rb +14 -4
  26. data/lib/authentik/api/models/application_request.rb +14 -4
  27. data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
  28. data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
  29. data/lib/authentik/api/models/authentication_enum.rb +2 -1
  30. data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
  31. data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
  32. data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
  33. data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
  34. data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
  35. data/lib/authentik/api/models/brand.rb +11 -1
  36. data/lib/authentik/api/models/brand_request.rb +11 -1
  37. data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
  38. data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
  39. data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
  40. data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
  41. data/lib/authentik/api/models/consent_stage.rb +1 -1
  42. data/lib/authentik/api/models/consent_stage_request.rb +1 -1
  43. data/lib/authentik/api/models/country_code_enum.rb +3 -3
  44. data/lib/authentik/api/models/current_brand.rb +10 -1
  45. data/lib/authentik/api/models/current_brand_flags.rb +31 -27
  46. data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
  47. data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
  48. data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
  49. data/lib/authentik/api/models/event_stats.rb +187 -0
  50. data/lib/authentik/api/models/event_volume.rb +1 -1
  51. data/lib/authentik/api/models/events_requested_enum.rb +7 -1
  52. data/lib/authentik/api/models/force_binding_enum.rb +34 -0
  53. data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
  54. data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
  55. data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
  56. data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
  57. data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
  58. data/lib/authentik/api/models/grant_types_enum.rb +39 -0
  59. data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
  60. data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
  61. data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
  62. data/lib/authentik/api/models/key_type_enum.rb +3 -3
  63. data/lib/authentik/api/models/lang_enum.rb +131 -0
  64. data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
  65. data/lib/authentik/api/models/logout_url.rb +209 -0
  66. data/lib/authentik/api/models/model_enum.rb +3 -1
  67. data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
  68. data/lib/authentik/api/models/notification_transport.rb +13 -2
  69. data/lib/authentik/api/models/notification_transport_request.rb +13 -2
  70. data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
  71. data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
  72. data/lib/authentik/api/models/operating_system.rb +0 -17
  73. data/lib/authentik/api/models/operating_system_request.rb +2 -9
  74. data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
  75. data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
  76. data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
  77. data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
  78. data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
  79. data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
  80. data/lib/authentik/api/models/patched_application_request.rb +14 -4
  81. data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
  82. data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
  83. data/lib/authentik/api/models/patched_brand_request.rb +11 -1
  84. data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
  85. data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
  86. data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
  87. data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
  88. data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
  89. data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
  90. data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
  91. data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
  92. data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
  93. data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
  94. data/lib/authentik/api/models/redirect_uri.rb +13 -4
  95. data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
  96. data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
  97. data/lib/authentik/api/models/related_rule.rb +250 -0
  98. data/lib/authentik/api/models/saml_provider.rb +98 -8
  99. data/lib/authentik/api/models/saml_provider_request.rb +17 -27
  100. data/lib/authentik/api/models/saml_source.rb +11 -1
  101. data/lib/authentik/api/models/saml_source_request.rb +11 -1
  102. data/lib/authentik/api/models/ssf_provider.rb +41 -4
  103. data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
  104. data/lib/authentik/api/models/ssf_stream.rb +10 -1
  105. data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
  106. data/lib/authentik/api/models/task.rb +1 -1
  107. data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
  108. data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
  109. data/lib/authentik/api/models/usage_enum.rb +33 -0
  110. data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
  111. data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
  112. data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
  113. data/lib/authentik/api/models/vendor_enum.rb +2 -1
  114. data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
  115. data/lib/authentik/api/version.rb +1 -1
  116. data/spec/api/admin_api_spec.rb +2 -2
  117. data/spec/api/core_api_spec.rb +27 -3
  118. data/spec/api/crypto_api_spec.rb +1 -1
  119. data/spec/api/endpoints_api_spec.rb +167 -0
  120. data/spec/api/events_api_spec.rb +33 -7
  121. data/spec/api/flows_api_spec.rb +4 -16
  122. data/spec/api/lifecycle_api_spec.rb +6 -3
  123. data/spec/api/managed_api_spec.rb +13 -0
  124. data/spec/api/policies_api_spec.rb +2 -1
  125. data/spec/api/providers_api_spec.rb +21 -19
  126. data/spec/api/schema_api_spec.rb +2 -2
  127. data/spec/api/sources_api_spec.rb +17 -16
  128. data/spec/api/ssf_api_spec.rb +12 -1
  129. data/spec/api/stages_api_spec.rb +117 -18
  130. data/spec/api/tasks_api_spec.rb +2 -2
  131. data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
  132. data/spec/models/account_lockdown_stage_spec.rb +96 -0
  133. data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
  134. data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
  135. data/spec/models/application_request_spec.rb +6 -0
  136. data/spec/models/application_spec.rb +6 -0
  137. data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
  138. data/spec/models/authenticator_validate_stage_spec.rb +30 -0
  139. data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
  140. data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
  141. data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
  142. data/spec/models/brand_request_spec.rb +6 -0
  143. data/spec/models/brand_spec.rb +6 -0
  144. data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
  145. data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
  146. data/spec/models/current_brand_flags_spec.rb +2 -2
  147. data/spec/models/current_brand_spec.rb +6 -0
  148. data/spec/models/event_matcher_policy_request_spec.rb +6 -0
  149. data/spec/models/event_matcher_policy_spec.rb +6 -0
  150. data/spec/models/event_stats_spec.rb +36 -0
  151. data/spec/models/force_binding_enum_spec.rb +24 -0
  152. data/spec/models/format_enum_spec.rb +24 -0
  153. data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
  154. data/spec/models/google_chrome_connector_request_spec.rb +48 -0
  155. data/spec/models/google_chrome_connector_spec.rb +78 -0
  156. data/spec/models/grant_types_enum_spec.rb +24 -0
  157. data/spec/models/group_ldap_source_connection_spec.rb +6 -0
  158. data/spec/models/invitation_send_email_request_spec.rb +48 -0
  159. data/spec/models/lang_enum_spec.rb +24 -0
  160. data/spec/models/lifecycle_iteration_spec.rb +2 -14
  161. data/spec/models/logout_url_spec.rb +60 -0
  162. data/spec/models/native_logout_challenge_spec.rb +13 -7
  163. data/spec/models/notification_transport_request_spec.rb +6 -0
  164. data/spec/models/notification_transport_spec.rb +6 -0
  165. data/spec/models/o_auth2_provider_request_spec.rb +6 -0
  166. data/spec/models/o_auth2_provider_spec.rb +6 -0
  167. data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
  168. data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
  169. data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
  170. data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
  171. data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
  172. data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
  173. data/spec/models/patched_application_request_spec.rb +6 -0
  174. data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
  175. data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
  176. data/spec/models/patched_brand_request_spec.rb +6 -0
  177. data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
  178. data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
  179. data/spec/models/patched_notification_transport_request_spec.rb +6 -0
  180. data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
  181. data/spec/models/patched_saml_provider_request_spec.rb +7 -1
  182. data/spec/models/patched_saml_source_request_spec.rb +6 -0
  183. data/spec/models/patched_settings_request_flags_spec.rb +2 -2
  184. data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
  185. data/spec/models/redirect_uri_request_spec.rb +6 -0
  186. data/spec/models/redirect_uri_spec.rb +6 -0
  187. data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
  188. data/spec/models/related_rule_spec.rb +54 -0
  189. data/spec/models/saml_provider_request_spec.rb +7 -1
  190. data/spec/models/saml_provider_spec.rb +25 -1
  191. data/spec/models/saml_source_request_spec.rb +6 -0
  192. data/spec/models/saml_source_spec.rb +6 -0
  193. data/spec/models/ssf_provider_request_spec.rb +6 -0
  194. data/spec/models/ssf_provider_spec.rb +12 -0
  195. data/spec/models/ssf_stream_spec.rb +6 -0
  196. data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
  197. data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
  198. data/spec/models/transport_mode_enum_spec.rb +24 -0
  199. data/spec/models/usage_enum_spec.rb +24 -0
  200. data/spec/models/user_account_lockdown_request_spec.rb +30 -0
  201. data/spec/models/user_ldap_source_connection_spec.rb +6 -0
  202. data/spec/models/user_password_hash_set_request_spec.rb +30 -0
  203. data/spec/models/web_authn_hint_enum_spec.rb +24 -0
  204. data/spec/zeitwerk_spec.rb +34 -0
  205. metadata +113 -32
  206. data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
@@ -0,0 +1,246 @@
1
+ =begin
2
+ This file is automatically generated by: https://openapi-generator.tech.
3
+ Any manual changes will be lost when the OpenAPI scheme changes.
4
+
5
+ =end
6
+
7
+ require 'date'
8
+ require 'time'
9
+
10
+ module Authentik::Api
11
+ class AppleIndependentSecureEnclave < ApiModelBase
12
+ attr_accessor :uuid
13
+
14
+ # The user that this device belongs to.
15
+ attr_accessor :user
16
+
17
+ attr_accessor :apple_secure_enclave_key
18
+
19
+ attr_accessor :apple_enclave_key_id
20
+
21
+ attr_accessor :device_type
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'uuid' => :'uuid',
27
+ :'user' => :'user',
28
+ :'apple_secure_enclave_key' => :'apple_secure_enclave_key',
29
+ :'apple_enclave_key_id' => :'apple_enclave_key_id',
30
+ :'device_type' => :'device_type'
31
+ }
32
+ end
33
+
34
+ # Returns attribute mapping this model knows about
35
+ def self.acceptable_attribute_map
36
+ attribute_map
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ acceptable_attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'uuid' => :'String',
48
+ :'user' => :'Integer',
49
+ :'apple_secure_enclave_key' => :'String',
50
+ :'apple_enclave_key_id' => :'String',
51
+ :'device_type' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::AppleIndependentSecureEnclave` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ acceptable_attribute_map = self.class.acceptable_attribute_map
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!acceptable_attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::AppleIndependentSecureEnclave`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'uuid')
78
+ self.uuid = attributes[:'uuid']
79
+ end
80
+
81
+ if attributes.key?(:'user')
82
+ self.user = attributes[:'user']
83
+ else
84
+ self.user = nil
85
+ end
86
+
87
+ if attributes.key?(:'apple_secure_enclave_key')
88
+ self.apple_secure_enclave_key = attributes[:'apple_secure_enclave_key']
89
+ else
90
+ self.apple_secure_enclave_key = nil
91
+ end
92
+
93
+ if attributes.key?(:'apple_enclave_key_id')
94
+ self.apple_enclave_key_id = attributes[:'apple_enclave_key_id']
95
+ else
96
+ self.apple_enclave_key_id = nil
97
+ end
98
+
99
+ if attributes.key?(:'device_type')
100
+ self.device_type = attributes[:'device_type']
101
+ else
102
+ self.device_type = nil
103
+ end
104
+ end
105
+
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properties with the reasons
108
+ def list_invalid_properties
109
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
+ invalid_properties = Array.new
111
+ if @user.nil?
112
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
113
+ end
114
+
115
+ if @apple_secure_enclave_key.nil?
116
+ invalid_properties.push('invalid value for "apple_secure_enclave_key", apple_secure_enclave_key cannot be nil.')
117
+ end
118
+
119
+ if @apple_enclave_key_id.nil?
120
+ invalid_properties.push('invalid value for "apple_enclave_key_id", apple_enclave_key_id cannot be nil.')
121
+ end
122
+
123
+ if @device_type.nil?
124
+ invalid_properties.push('invalid value for "device_type", device_type cannot be nil.')
125
+ end
126
+
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ warn '[DEPRECATED] the `valid?` method is obsolete'
134
+ return false if @user.nil?
135
+ return false if @apple_secure_enclave_key.nil?
136
+ return false if @apple_enclave_key_id.nil?
137
+ return false if @device_type.nil?
138
+ true
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] user Value to be assigned
143
+ def user=(user)
144
+ if user.nil?
145
+ fail ArgumentError, 'user cannot be nil'
146
+ end
147
+
148
+ @user = user
149
+ end
150
+
151
+ # Custom attribute writer method with validation
152
+ # @param [Object] apple_secure_enclave_key Value to be assigned
153
+ def apple_secure_enclave_key=(apple_secure_enclave_key)
154
+ if apple_secure_enclave_key.nil?
155
+ fail ArgumentError, 'apple_secure_enclave_key cannot be nil'
156
+ end
157
+
158
+ @apple_secure_enclave_key = apple_secure_enclave_key
159
+ end
160
+
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] apple_enclave_key_id Value to be assigned
163
+ def apple_enclave_key_id=(apple_enclave_key_id)
164
+ if apple_enclave_key_id.nil?
165
+ fail ArgumentError, 'apple_enclave_key_id cannot be nil'
166
+ end
167
+
168
+ @apple_enclave_key_id = apple_enclave_key_id
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] device_type Value to be assigned
173
+ def device_type=(device_type)
174
+ if device_type.nil?
175
+ fail ArgumentError, 'device_type cannot be nil'
176
+ end
177
+
178
+ @device_type = device_type
179
+ end
180
+
181
+ # Checks equality by comparing each attribute.
182
+ # @param [Object] Object to be compared
183
+ def ==(o)
184
+ return true if self.equal?(o)
185
+ self.class == o.class &&
186
+ uuid == o.uuid &&
187
+ user == o.user &&
188
+ apple_secure_enclave_key == o.apple_secure_enclave_key &&
189
+ apple_enclave_key_id == o.apple_enclave_key_id &&
190
+ device_type == o.device_type
191
+ end
192
+
193
+ # @see the `==` method
194
+ # @param [Object] Object to be compared
195
+ def eql?(o)
196
+ self == o
197
+ end
198
+
199
+ # Calculates hash code according to all attributes.
200
+ # @return [Integer] Hash code
201
+ def hash
202
+ [uuid, user, apple_secure_enclave_key, apple_enclave_key_id, device_type].hash
203
+ end
204
+
205
+ # Builds the object from hash
206
+ # @param [Hash] attributes Model attributes in the form of hash
207
+ # @return [Object] Returns the model itself
208
+ def self.build_from_hash(attributes)
209
+ return nil unless attributes.is_a?(Hash)
210
+ attributes = attributes.transform_keys(&:to_sym)
211
+ transformed_hash = {}
212
+ openapi_types.each_pair do |key, type|
213
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
214
+ transformed_hash["#{key}"] = nil
215
+ elsif type =~ /\AArray<(.*)>/i
216
+ # check to ensure the input is an array given that the attribute
217
+ # is documented as an array but the input is not
218
+ if attributes[attribute_map[key]].is_a?(Array)
219
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
220
+ end
221
+ elsif !attributes[attribute_map[key]].nil?
222
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
223
+ end
224
+ end
225
+ new(transformed_hash)
226
+ end
227
+
228
+ # Returns the object in the form of hash
229
+ # @return [Hash] Returns the object in the form of hash
230
+ def to_hash
231
+ hash = {}
232
+ self.class.attribute_map.each_pair do |attr, param|
233
+ value = self.send(attr)
234
+ if value.nil?
235
+ is_nullable = self.class.openapi_nullable.include?(attr)
236
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
237
+ end
238
+
239
+ hash[param] = _to_hash(value)
240
+ end
241
+ hash
242
+ end
243
+
244
+ end
245
+
246
+ end
@@ -0,0 +1,273 @@
1
+ =begin
2
+ This file is automatically generated by: https://openapi-generator.tech.
3
+ Any manual changes will be lost when the OpenAPI scheme changes.
4
+
5
+ =end
6
+
7
+ require 'date'
8
+ require 'time'
9
+
10
+ module Authentik::Api
11
+ class AppleIndependentSecureEnclaveRequest < ApiModelBase
12
+ attr_accessor :uuid
13
+
14
+ # The user that this device belongs to.
15
+ attr_accessor :user
16
+
17
+ attr_accessor :apple_secure_enclave_key
18
+
19
+ attr_accessor :apple_enclave_key_id
20
+
21
+ attr_accessor :device_type
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'uuid' => :'uuid',
27
+ :'user' => :'user',
28
+ :'apple_secure_enclave_key' => :'apple_secure_enclave_key',
29
+ :'apple_enclave_key_id' => :'apple_enclave_key_id',
30
+ :'device_type' => :'device_type'
31
+ }
32
+ end
33
+
34
+ # Returns attribute mapping this model knows about
35
+ def self.acceptable_attribute_map
36
+ attribute_map
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ acceptable_attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'uuid' => :'String',
48
+ :'user' => :'Integer',
49
+ :'apple_secure_enclave_key' => :'String',
50
+ :'apple_enclave_key_id' => :'String',
51
+ :'device_type' => :'String'
52
+ }
53
+ end
54
+
55
+ # List of attributes with nullable: true
56
+ def self.openapi_nullable
57
+ Set.new([
58
+ ])
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::AppleIndependentSecureEnclaveRequest` initialize method"
66
+ end
67
+
68
+ # check to see if the attribute exists and convert string to symbol for hash key
69
+ acceptable_attribute_map = self.class.acceptable_attribute_map
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!acceptable_attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::AppleIndependentSecureEnclaveRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'uuid')
78
+ self.uuid = attributes[:'uuid']
79
+ end
80
+
81
+ if attributes.key?(:'user')
82
+ self.user = attributes[:'user']
83
+ else
84
+ self.user = nil
85
+ end
86
+
87
+ if attributes.key?(:'apple_secure_enclave_key')
88
+ self.apple_secure_enclave_key = attributes[:'apple_secure_enclave_key']
89
+ else
90
+ self.apple_secure_enclave_key = nil
91
+ end
92
+
93
+ if attributes.key?(:'apple_enclave_key_id')
94
+ self.apple_enclave_key_id = attributes[:'apple_enclave_key_id']
95
+ else
96
+ self.apple_enclave_key_id = nil
97
+ end
98
+
99
+ if attributes.key?(:'device_type')
100
+ self.device_type = attributes[:'device_type']
101
+ else
102
+ self.device_type = nil
103
+ end
104
+ end
105
+
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properties with the reasons
108
+ def list_invalid_properties
109
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
+ invalid_properties = Array.new
111
+ if @user.nil?
112
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
113
+ end
114
+
115
+ if @apple_secure_enclave_key.nil?
116
+ invalid_properties.push('invalid value for "apple_secure_enclave_key", apple_secure_enclave_key cannot be nil.')
117
+ end
118
+
119
+ if @apple_secure_enclave_key.to_s.length < 1
120
+ invalid_properties.push('invalid value for "apple_secure_enclave_key", the character length must be greater than or equal to 1.')
121
+ end
122
+
123
+ if @apple_enclave_key_id.nil?
124
+ invalid_properties.push('invalid value for "apple_enclave_key_id", apple_enclave_key_id cannot be nil.')
125
+ end
126
+
127
+ if @apple_enclave_key_id.to_s.length < 1
128
+ invalid_properties.push('invalid value for "apple_enclave_key_id", the character length must be greater than or equal to 1.')
129
+ end
130
+
131
+ if @device_type.nil?
132
+ invalid_properties.push('invalid value for "device_type", device_type cannot be nil.')
133
+ end
134
+
135
+ if @device_type.to_s.length < 1
136
+ invalid_properties.push('invalid value for "device_type", the character length must be greater than or equal to 1.')
137
+ end
138
+
139
+ invalid_properties
140
+ end
141
+
142
+ # Check to see if the all the properties in the model are valid
143
+ # @return true if the model is valid
144
+ def valid?
145
+ warn '[DEPRECATED] the `valid?` method is obsolete'
146
+ return false if @user.nil?
147
+ return false if @apple_secure_enclave_key.nil?
148
+ return false if @apple_secure_enclave_key.to_s.length < 1
149
+ return false if @apple_enclave_key_id.nil?
150
+ return false if @apple_enclave_key_id.to_s.length < 1
151
+ return false if @device_type.nil?
152
+ return false if @device_type.to_s.length < 1
153
+ true
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] user Value to be assigned
158
+ def user=(user)
159
+ if user.nil?
160
+ fail ArgumentError, 'user cannot be nil'
161
+ end
162
+
163
+ @user = user
164
+ end
165
+
166
+ # Custom attribute writer method with validation
167
+ # @param [Object] apple_secure_enclave_key Value to be assigned
168
+ def apple_secure_enclave_key=(apple_secure_enclave_key)
169
+ if apple_secure_enclave_key.nil?
170
+ fail ArgumentError, 'apple_secure_enclave_key cannot be nil'
171
+ end
172
+
173
+ if apple_secure_enclave_key.to_s.length < 1
174
+ fail ArgumentError, 'invalid value for "apple_secure_enclave_key", the character length must be greater than or equal to 1.'
175
+ end
176
+
177
+ @apple_secure_enclave_key = apple_secure_enclave_key
178
+ end
179
+
180
+ # Custom attribute writer method with validation
181
+ # @param [Object] apple_enclave_key_id Value to be assigned
182
+ def apple_enclave_key_id=(apple_enclave_key_id)
183
+ if apple_enclave_key_id.nil?
184
+ fail ArgumentError, 'apple_enclave_key_id cannot be nil'
185
+ end
186
+
187
+ if apple_enclave_key_id.to_s.length < 1
188
+ fail ArgumentError, 'invalid value for "apple_enclave_key_id", the character length must be greater than or equal to 1.'
189
+ end
190
+
191
+ @apple_enclave_key_id = apple_enclave_key_id
192
+ end
193
+
194
+ # Custom attribute writer method with validation
195
+ # @param [Object] device_type Value to be assigned
196
+ def device_type=(device_type)
197
+ if device_type.nil?
198
+ fail ArgumentError, 'device_type cannot be nil'
199
+ end
200
+
201
+ if device_type.to_s.length < 1
202
+ fail ArgumentError, 'invalid value for "device_type", the character length must be greater than or equal to 1.'
203
+ end
204
+
205
+ @device_type = device_type
206
+ end
207
+
208
+ # Checks equality by comparing each attribute.
209
+ # @param [Object] Object to be compared
210
+ def ==(o)
211
+ return true if self.equal?(o)
212
+ self.class == o.class &&
213
+ uuid == o.uuid &&
214
+ user == o.user &&
215
+ apple_secure_enclave_key == o.apple_secure_enclave_key &&
216
+ apple_enclave_key_id == o.apple_enclave_key_id &&
217
+ device_type == o.device_type
218
+ end
219
+
220
+ # @see the `==` method
221
+ # @param [Object] Object to be compared
222
+ def eql?(o)
223
+ self == o
224
+ end
225
+
226
+ # Calculates hash code according to all attributes.
227
+ # @return [Integer] Hash code
228
+ def hash
229
+ [uuid, user, apple_secure_enclave_key, apple_enclave_key_id, device_type].hash
230
+ end
231
+
232
+ # Builds the object from hash
233
+ # @param [Hash] attributes Model attributes in the form of hash
234
+ # @return [Object] Returns the model itself
235
+ def self.build_from_hash(attributes)
236
+ return nil unless attributes.is_a?(Hash)
237
+ attributes = attributes.transform_keys(&:to_sym)
238
+ transformed_hash = {}
239
+ openapi_types.each_pair do |key, type|
240
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
241
+ transformed_hash["#{key}"] = nil
242
+ elsif type =~ /\AArray<(.*)>/i
243
+ # check to ensure the input is an array given that the attribute
244
+ # is documented as an array but the input is not
245
+ if attributes[attribute_map[key]].is_a?(Array)
246
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
247
+ end
248
+ elsif !attributes[attribute_map[key]].nil?
249
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
250
+ end
251
+ end
252
+ new(transformed_hash)
253
+ end
254
+
255
+ # Returns the object in the form of hash
256
+ # @return [Hash] Returns the object in the form of hash
257
+ def to_hash
258
+ hash = {}
259
+ self.class.attribute_map.each_pair do |attr, param|
260
+ value = self.send(attr)
261
+ if value.nil?
262
+ is_nullable = self.class.openapi_nullable.include?(attr)
263
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
264
+ end
265
+
266
+ hash[param] = _to_hash(value)
267
+ end
268
+ hash
269
+ end
270
+
271
+ end
272
+
273
+ end
@@ -49,6 +49,9 @@ module Authentik::Api
49
49
 
50
50
  attr_accessor :group
51
51
 
52
+ # Hide this application from the user's My applications page.
53
+ attr_accessor :meta_hide
54
+
52
55
  class EnumAttributeValidator
53
56
  attr_reader :datatype
54
57
  attr_reader :allowable_values
@@ -90,7 +93,8 @@ module Authentik::Api
90
93
  :'meta_description' => :'meta_description',
91
94
  :'meta_publisher' => :'meta_publisher',
92
95
  :'policy_engine_mode' => :'policy_engine_mode',
93
- :'group' => :'group'
96
+ :'group' => :'group',
97
+ :'meta_hide' => :'meta_hide'
94
98
  }
95
99
  end
96
100
 
@@ -123,7 +127,8 @@ module Authentik::Api
123
127
  :'meta_description' => :'String',
124
128
  :'meta_publisher' => :'String',
125
129
  :'policy_engine_mode' => :'PolicyEngineMode',
126
- :'group' => :'String'
130
+ :'group' => :'String',
131
+ :'meta_hide' => :'Boolean'
127
132
  }
128
133
  end
129
134
 
@@ -241,6 +246,10 @@ module Authentik::Api
241
246
  if attributes.key?(:'group')
242
247
  self.group = attributes[:'group']
243
248
  end
249
+
250
+ if attributes.key?(:'meta_hide')
251
+ self.meta_hide = attributes[:'meta_hide']
252
+ end
244
253
  end
245
254
 
246
255
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -350,7 +359,8 @@ module Authentik::Api
350
359
  meta_description == o.meta_description &&
351
360
  meta_publisher == o.meta_publisher &&
352
361
  policy_engine_mode == o.policy_engine_mode &&
353
- group == o.group
362
+ group == o.group &&
363
+ meta_hide == o.meta_hide
354
364
  end
355
365
 
356
366
  # @see the `==` method
@@ -362,7 +372,7 @@ module Authentik::Api
362
372
  # Calculates hash code according to all attributes.
363
373
  # @return [Integer] Hash code
364
374
  def hash
365
- [pk, name, slug, provider, provider_obj, backchannel_providers, backchannel_providers_obj, launch_url, open_in_new_tab, meta_launch_url, meta_icon, meta_icon_url, meta_icon_themed_urls, meta_description, meta_publisher, policy_engine_mode, group].hash
375
+ [pk, name, slug, provider, provider_obj, backchannel_providers, backchannel_providers_obj, launch_url, open_in_new_tab, meta_launch_url, meta_icon, meta_icon_url, meta_icon_themed_urls, meta_description, meta_publisher, policy_engine_mode, group, meta_hide].hash
366
376
  end
367
377
 
368
378
  # Builds the object from hash
@@ -35,6 +35,9 @@ module Authentik::Api
35
35
 
36
36
  attr_accessor :group
37
37
 
38
+ # Hide this application from the user's My applications page.
39
+ attr_accessor :meta_hide
40
+
38
41
  class EnumAttributeValidator
39
42
  attr_reader :datatype
40
43
  attr_reader :allowable_values
@@ -70,7 +73,8 @@ module Authentik::Api
70
73
  :'meta_description' => :'meta_description',
71
74
  :'meta_publisher' => :'meta_publisher',
72
75
  :'policy_engine_mode' => :'policy_engine_mode',
73
- :'group' => :'group'
76
+ :'group' => :'group',
77
+ :'meta_hide' => :'meta_hide'
74
78
  }
75
79
  end
76
80
 
@@ -97,7 +101,8 @@ module Authentik::Api
97
101
  :'meta_description' => :'String',
98
102
  :'meta_publisher' => :'String',
99
103
  :'policy_engine_mode' => :'PolicyEngineMode',
100
- :'group' => :'String'
104
+ :'group' => :'String',
105
+ :'meta_hide' => :'Boolean'
101
106
  }
102
107
  end
103
108
 
@@ -173,6 +178,10 @@ module Authentik::Api
173
178
  if attributes.key?(:'group')
174
179
  self.group = attributes[:'group']
175
180
  end
181
+
182
+ if attributes.key?(:'meta_hide')
183
+ self.meta_hide = attributes[:'meta_hide']
184
+ end
176
185
  end
177
186
 
178
187
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -264,7 +273,8 @@ module Authentik::Api
264
273
  meta_description == o.meta_description &&
265
274
  meta_publisher == o.meta_publisher &&
266
275
  policy_engine_mode == o.policy_engine_mode &&
267
- group == o.group
276
+ group == o.group &&
277
+ meta_hide == o.meta_hide
268
278
  end
269
279
 
270
280
  # @see the `==` method
@@ -276,7 +286,7 @@ module Authentik::Api
276
286
  # Calculates hash code according to all attributes.
277
287
  # @return [Integer] Hash code
278
288
  def hash
279
- [name, slug, provider, backchannel_providers, open_in_new_tab, meta_launch_url, meta_icon, meta_description, meta_publisher, policy_engine_mode, group].hash
289
+ [name, slug, provider, backchannel_providers, open_in_new_tab, meta_launch_url, meta_icon, meta_description, meta_publisher, policy_engine_mode, group, meta_hide].hash
280
290
  end
281
291
 
282
292
  # Builds the object from hash
@@ -47,6 +47,8 @@ module Authentik::Api
47
47
  # List of attributes with nullable: true
48
48
  def self.openapi_nullable
49
49
  Set.new([
50
+ :'brand',
51
+ :'model'
50
52
  ])
51
53
  end
52
54
 
@@ -90,18 +92,10 @@ module Authentik::Api
90
92
  def list_invalid_properties
91
93
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
94
  invalid_properties = Array.new
93
- if @brand.nil?
94
- invalid_properties.push('invalid value for "brand", brand cannot be nil.')
95
- end
96
-
97
95
  if @family.nil?
98
96
  invalid_properties.push('invalid value for "family", family cannot be nil.')
99
97
  end
100
98
 
101
- if @model.nil?
102
- invalid_properties.push('invalid value for "model", model cannot be nil.')
103
- end
104
-
105
99
  invalid_properties
106
100
  end
107
101
 
@@ -109,22 +103,10 @@ module Authentik::Api
109
103
  # @return true if the model is valid
110
104
  def valid?
111
105
  warn '[DEPRECATED] the `valid?` method is obsolete'
112
- return false if @brand.nil?
113
106
  return false if @family.nil?
114
- return false if @model.nil?
115
107
  true
116
108
  end
117
109
 
118
- # Custom attribute writer method with validation
119
- # @param [Object] brand Value to be assigned
120
- def brand=(brand)
121
- if brand.nil?
122
- fail ArgumentError, 'brand cannot be nil'
123
- end
124
-
125
- @brand = brand
126
- end
127
-
128
110
  # Custom attribute writer method with validation
129
111
  # @param [Object] family Value to be assigned
130
112
  def family=(family)
@@ -135,16 +117,6 @@ module Authentik::Api
135
117
  @family = family
136
118
  end
137
119
 
138
- # Custom attribute writer method with validation
139
- # @param [Object] model Value to be assigned
140
- def model=(model)
141
- if model.nil?
142
- fail ArgumentError, 'model cannot be nil'
143
- end
144
-
145
- @model = model
146
- end
147
-
148
120
  # Checks equality by comparing each attribute.
149
121
  # @param [Object] Object to be compared
150
122
  def ==(o)