authentik-api 2026.5.0.rc2 → 2026.5.2

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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/README_API.md +5 -5
  3. data/lib/authentik/api/models/group_kerberos_source_connection_request.rb +1 -27
  4. data/lib/authentik/api/models/group_ldap_source_connection_request.rb +1 -27
  5. data/lib/authentik/api/models/group_o_auth_source_connection_request.rb +1 -27
  6. data/lib/authentik/api/models/group_plex_source_connection_request.rb +1 -27
  7. data/lib/authentik/api/models/group_saml_source_connection_request.rb +1 -27
  8. data/lib/authentik/api/models/group_source_connection_request.rb +1 -27
  9. data/lib/authentik/api/models/group_telegram_source_connection_request.rb +1 -27
  10. data/lib/authentik/api/models/notification_transport.rb +1 -1
  11. data/lib/authentik/api/models/notification_transport_request.rb +1 -1
  12. data/lib/authentik/api/models/patched_group_kerberos_source_connection_request.rb +1 -10
  13. data/lib/authentik/api/models/patched_group_ldap_source_connection_request.rb +1 -10
  14. data/lib/authentik/api/models/patched_group_o_auth_source_connection_request.rb +1 -10
  15. data/lib/authentik/api/models/patched_group_plex_source_connection_request.rb +1 -10
  16. data/lib/authentik/api/models/patched_group_saml_source_connection_request.rb +1 -10
  17. data/lib/authentik/api/models/patched_group_source_connection_request.rb +1 -10
  18. data/lib/authentik/api/models/patched_group_telegram_source_connection_request.rb +1 -10
  19. data/lib/authentik/api/models/patched_notification_transport_request.rb +1 -1
  20. data/lib/authentik/api/models/patched_user_kerberos_source_connection_request.rb +1 -10
  21. data/lib/authentik/api/models/patched_user_ldap_source_connection_request.rb +1 -10
  22. data/lib/authentik/api/models/patched_user_o_auth_source_connection_request.rb +1 -10
  23. data/lib/authentik/api/models/patched_user_plex_source_connection_request.rb +1 -10
  24. data/lib/authentik/api/models/patched_user_saml_source_connection_request.rb +1 -10
  25. data/lib/authentik/api/models/patched_user_source_connection_request.rb +1 -10
  26. data/lib/authentik/api/models/patched_user_telegram_source_connection_request.rb +1 -10
  27. data/lib/authentik/api/models/scim_authentication_mode_enum.rb +2 -1
  28. data/lib/authentik/api/models/scim_provider.rb +49 -1
  29. data/lib/authentik/api/models/session_end_challenge.rb +10 -1
  30. data/lib/authentik/api/models/user_kerberos_source_connection_request.rb +1 -27
  31. data/lib/authentik/api/models/user_ldap_source_connection_request.rb +1 -27
  32. data/lib/authentik/api/models/user_o_auth_source_connection_request.rb +1 -27
  33. data/lib/authentik/api/models/user_plex_source_connection_request.rb +1 -27
  34. data/lib/authentik/api/models/user_saml_source_connection_request.rb +1 -27
  35. data/lib/authentik/api/models/user_source_connection_request.rb +1 -27
  36. data/lib/authentik/api/models/user_telegram_source_connection_request.rb +1 -27
  37. data/lib/authentik/api/version.rb +1 -1
  38. data/spec/models/group_kerberos_source_connection_request_spec.rb +0 -6
  39. data/spec/models/group_ldap_source_connection_request_spec.rb +0 -6
  40. data/spec/models/group_o_auth_source_connection_request_spec.rb +0 -6
  41. data/spec/models/group_plex_source_connection_request_spec.rb +0 -6
  42. data/spec/models/group_saml_source_connection_request_spec.rb +0 -6
  43. data/spec/models/group_source_connection_request_spec.rb +0 -6
  44. data/spec/models/group_telegram_source_connection_request_spec.rb +0 -6
  45. data/spec/models/patched_group_kerberos_source_connection_request_spec.rb +0 -6
  46. data/spec/models/patched_group_ldap_source_connection_request_spec.rb +0 -6
  47. data/spec/models/patched_group_o_auth_source_connection_request_spec.rb +0 -6
  48. data/spec/models/patched_group_plex_source_connection_request_spec.rb +0 -6
  49. data/spec/models/patched_group_saml_source_connection_request_spec.rb +0 -6
  50. data/spec/models/patched_group_source_connection_request_spec.rb +0 -6
  51. data/spec/models/patched_group_telegram_source_connection_request_spec.rb +0 -6
  52. data/spec/models/patched_user_kerberos_source_connection_request_spec.rb +0 -6
  53. data/spec/models/patched_user_ldap_source_connection_request_spec.rb +0 -6
  54. data/spec/models/patched_user_o_auth_source_connection_request_spec.rb +0 -6
  55. data/spec/models/patched_user_plex_source_connection_request_spec.rb +0 -6
  56. data/spec/models/patched_user_saml_source_connection_request_spec.rb +0 -6
  57. data/spec/models/patched_user_source_connection_request_spec.rb +0 -6
  58. data/spec/models/patched_user_telegram_source_connection_request_spec.rb +0 -6
  59. data/spec/models/scim_provider_spec.rb +24 -0
  60. data/spec/models/session_end_challenge_spec.rb +6 -0
  61. data/spec/models/user_kerberos_source_connection_request_spec.rb +0 -6
  62. data/spec/models/user_ldap_source_connection_request_spec.rb +0 -6
  63. data/spec/models/user_o_auth_source_connection_request_spec.rb +0 -6
  64. data/spec/models/user_plex_source_connection_request_spec.rb +0 -6
  65. data/spec/models/user_saml_source_connection_request_spec.rb +0 -6
  66. data/spec/models/user_source_connection_request_spec.rb +0 -6
  67. data/spec/models/user_telegram_source_connection_request_spec.rb +0 -6
  68. metadata +1 -1
@@ -10,8 +10,6 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class PatchedUserTelegramSourceConnectionRequest < ApiModelBase
13
- attr_accessor :user
14
-
15
13
  attr_accessor :source
16
14
 
17
15
  attr_accessor :identifier
@@ -19,7 +17,6 @@ module Authentik::Api
19
17
  # Attribute mapping from ruby-style variable name to JSON key.
20
18
  def self.attribute_map
21
19
  {
22
- :'user' => :'user',
23
20
  :'source' => :'source',
24
21
  :'identifier' => :'identifier'
25
22
  }
@@ -38,7 +35,6 @@ module Authentik::Api
38
35
  # Attribute type mapping.
39
36
  def self.openapi_types
40
37
  {
41
- :'user' => :'Integer',
42
38
  :'source' => :'String',
43
39
  :'identifier' => :'String'
44
40
  }
@@ -66,10 +62,6 @@ module Authentik::Api
66
62
  h[k.to_sym] = v
67
63
  }
68
64
 
69
- if attributes.key?(:'user')
70
- self.user = attributes[:'user']
71
- end
72
-
73
65
  if attributes.key?(:'source')
74
66
  self.source = attributes[:'source']
75
67
  end
@@ -118,7 +110,6 @@ module Authentik::Api
118
110
  def ==(o)
119
111
  return true if self.equal?(o)
120
112
  self.class == o.class &&
121
- user == o.user &&
122
113
  source == o.source &&
123
114
  identifier == o.identifier
124
115
  end
@@ -132,7 +123,7 @@ module Authentik::Api
132
123
  # Calculates hash code according to all attributes.
133
124
  # @return [Integer] Hash code
134
125
  def hash
135
- [user, source, identifier].hash
126
+ [source, identifier].hash
136
127
  end
137
128
 
138
129
  # Builds the object from hash
@@ -11,9 +11,10 @@ module Authentik::Api
11
11
  class SCIMAuthenticationModeEnum
12
12
  TOKEN = "token".freeze
13
13
  OAUTH = "oauth".freeze
14
+ OAUTH_INTERACTIVE = "oauth_interactive".freeze
14
15
 
15
16
  def self.all_vars
16
- @all_vars ||= [TOKEN, OAUTH].freeze
17
+ @all_vars ||= [TOKEN, OAUTH, OAUTH_INTERACTIVE].freeze
17
18
  end
18
19
 
19
20
  # Builds the enum from string
@@ -53,6 +53,14 @@ module Authentik::Api
53
53
  # Additional OAuth parameters, such as grant_type
54
54
  attr_accessor :auth_oauth_params
55
55
 
56
+ attr_accessor :auth_oauth_token_last_updated
57
+
58
+ attr_accessor :auth_oauth_token_expires
59
+
60
+ attr_accessor :auth_oauth_url_callback
61
+
62
+ attr_accessor :auth_oauth_url_start
63
+
56
64
  # Alter authentik behavior for vendor-specific SCIM implementations.
57
65
  attr_accessor :compatibility_mode
58
66
 
@@ -114,6 +122,10 @@ module Authentik::Api
114
122
  :'auth_mode' => :'auth_mode',
115
123
  :'auth_oauth' => :'auth_oauth',
116
124
  :'auth_oauth_params' => :'auth_oauth_params',
125
+ :'auth_oauth_token_last_updated' => :'auth_oauth_token_last_updated',
126
+ :'auth_oauth_token_expires' => :'auth_oauth_token_expires',
127
+ :'auth_oauth_url_callback' => :'auth_oauth_url_callback',
128
+ :'auth_oauth_url_start' => :'auth_oauth_url_start',
117
129
  :'compatibility_mode' => :'compatibility_mode',
118
130
  :'service_provider_config_cache_timeout' => :'service_provider_config_cache_timeout',
119
131
  :'exclude_users_service_account' => :'exclude_users_service_account',
@@ -153,6 +165,10 @@ module Authentik::Api
153
165
  :'auth_mode' => :'SCIMAuthenticationModeEnum',
154
166
  :'auth_oauth' => :'String',
155
167
  :'auth_oauth_params' => :'Hash<String, Object>',
168
+ :'auth_oauth_token_last_updated' => :'Time',
169
+ :'auth_oauth_token_expires' => :'Time',
170
+ :'auth_oauth_url_callback' => :'String',
171
+ :'auth_oauth_url_start' => :'String',
156
172
  :'compatibility_mode' => :'CompatibilityModeEnum',
157
173
  :'service_provider_config_cache_timeout' => :'String',
158
174
  :'exclude_users_service_account' => :'Boolean',
@@ -169,6 +185,10 @@ module Authentik::Api
169
185
  :'assigned_backchannel_application_slug',
170
186
  :'assigned_backchannel_application_name',
171
187
  :'auth_oauth',
188
+ :'auth_oauth_token_last_updated',
189
+ :'auth_oauth_token_expires',
190
+ :'auth_oauth_url_callback',
191
+ :'auth_oauth_url_start',
172
192
  ])
173
193
  end
174
194
 
@@ -276,6 +296,30 @@ module Authentik::Api
276
296
  end
277
297
  end
278
298
 
299
+ if attributes.key?(:'auth_oauth_token_last_updated')
300
+ self.auth_oauth_token_last_updated = attributes[:'auth_oauth_token_last_updated']
301
+ else
302
+ self.auth_oauth_token_last_updated = nil
303
+ end
304
+
305
+ if attributes.key?(:'auth_oauth_token_expires')
306
+ self.auth_oauth_token_expires = attributes[:'auth_oauth_token_expires']
307
+ else
308
+ self.auth_oauth_token_expires = nil
309
+ end
310
+
311
+ if attributes.key?(:'auth_oauth_url_callback')
312
+ self.auth_oauth_url_callback = attributes[:'auth_oauth_url_callback']
313
+ else
314
+ self.auth_oauth_url_callback = nil
315
+ end
316
+
317
+ if attributes.key?(:'auth_oauth_url_start')
318
+ self.auth_oauth_url_start = attributes[:'auth_oauth_url_start']
319
+ else
320
+ self.auth_oauth_url_start = nil
321
+ end
322
+
279
323
  if attributes.key?(:'compatibility_mode')
280
324
  self.compatibility_mode = attributes[:'compatibility_mode']
281
325
  end
@@ -476,6 +520,10 @@ module Authentik::Api
476
520
  auth_mode == o.auth_mode &&
477
521
  auth_oauth == o.auth_oauth &&
478
522
  auth_oauth_params == o.auth_oauth_params &&
523
+ auth_oauth_token_last_updated == o.auth_oauth_token_last_updated &&
524
+ auth_oauth_token_expires == o.auth_oauth_token_expires &&
525
+ auth_oauth_url_callback == o.auth_oauth_url_callback &&
526
+ auth_oauth_url_start == o.auth_oauth_url_start &&
479
527
  compatibility_mode == o.compatibility_mode &&
480
528
  service_provider_config_cache_timeout == o.service_provider_config_cache_timeout &&
481
529
  exclude_users_service_account == o.exclude_users_service_account &&
@@ -494,7 +542,7 @@ module Authentik::Api
494
542
  # Calculates hash code according to all attributes.
495
543
  # @return [Integer] Hash code
496
544
  def hash
497
- [pk, name, property_mappings, property_mappings_group, component, assigned_backchannel_application_slug, assigned_backchannel_application_name, verbose_name, verbose_name_plural, meta_model_name, url, verify_certificates, token, auth_mode, auth_oauth, auth_oauth_params, compatibility_mode, service_provider_config_cache_timeout, exclude_users_service_account, sync_page_size, sync_page_timeout, group_filters, dry_run].hash
545
+ [pk, name, property_mappings, property_mappings_group, component, assigned_backchannel_application_slug, assigned_backchannel_application_name, verbose_name, verbose_name_plural, meta_model_name, url, verify_certificates, token, auth_mode, auth_oauth, auth_oauth_params, auth_oauth_token_last_updated, auth_oauth_token_expires, auth_oauth_url_callback, auth_oauth_url_start, compatibility_mode, service_provider_config_cache_timeout, exclude_users_service_account, sync_page_size, sync_page_timeout, group_filters, dry_run].hash
498
546
  end
499
547
 
500
548
  # Builds the object from hash
@@ -26,6 +26,8 @@ module Authentik::Api
26
26
 
27
27
  attr_accessor :invalidation_flow_url
28
28
 
29
+ attr_accessor :overview_url
30
+
29
31
  attr_accessor :brand_name
30
32
 
31
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -39,6 +41,7 @@ module Authentik::Api
39
41
  :'application_name' => :'application_name',
40
42
  :'application_launch_url' => :'application_launch_url',
41
43
  :'invalidation_flow_url' => :'invalidation_flow_url',
44
+ :'overview_url' => :'overview_url',
42
45
  :'brand_name' => :'brand_name'
43
46
  }
44
47
  end
@@ -64,6 +67,7 @@ module Authentik::Api
64
67
  :'application_name' => :'String',
65
68
  :'application_launch_url' => :'String',
66
69
  :'invalidation_flow_url' => :'String',
70
+ :'overview_url' => :'String',
67
71
  :'brand_name' => :'String'
68
72
  }
69
73
  end
@@ -130,6 +134,10 @@ module Authentik::Api
130
134
  self.invalidation_flow_url = attributes[:'invalidation_flow_url']
131
135
  end
132
136
 
137
+ if attributes.key?(:'overview_url')
138
+ self.overview_url = attributes[:'overview_url']
139
+ end
140
+
133
141
  if attributes.key?(:'brand_name')
134
142
  self.brand_name = attributes[:'brand_name']
135
143
  else
@@ -210,6 +218,7 @@ module Authentik::Api
210
218
  application_name == o.application_name &&
211
219
  application_launch_url == o.application_launch_url &&
212
220
  invalidation_flow_url == o.invalidation_flow_url &&
221
+ overview_url == o.overview_url &&
213
222
  brand_name == o.brand_name
214
223
  end
215
224
 
@@ -222,7 +231,7 @@ module Authentik::Api
222
231
  # Calculates hash code according to all attributes.
223
232
  # @return [Integer] Hash code
224
233
  def hash
225
- [flow_info, component, response_errors, pending_user, pending_user_avatar, application_name, application_launch_url, invalidation_flow_url, brand_name].hash
234
+ [flow_info, component, response_errors, pending_user, pending_user_avatar, application_name, application_launch_url, invalidation_flow_url, overview_url, brand_name].hash
226
235
  end
227
236
 
228
237
  # Builds the object from hash
@@ -10,8 +10,6 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class UserKerberosSourceConnectionRequest < ApiModelBase
13
- attr_accessor :user
14
-
15
13
  attr_accessor :source
16
14
 
17
15
  attr_accessor :identifier
@@ -19,7 +17,6 @@ module Authentik::Api
19
17
  # Attribute mapping from ruby-style variable name to JSON key.
20
18
  def self.attribute_map
21
19
  {
22
- :'user' => :'user',
23
20
  :'source' => :'source',
24
21
  :'identifier' => :'identifier'
25
22
  }
@@ -38,7 +35,6 @@ module Authentik::Api
38
35
  # Attribute type mapping.
39
36
  def self.openapi_types
40
37
  {
41
- :'user' => :'Integer',
42
38
  :'source' => :'String',
43
39
  :'identifier' => :'String'
44
40
  }
@@ -66,12 +62,6 @@ module Authentik::Api
66
62
  h[k.to_sym] = v
67
63
  }
68
64
 
69
- if attributes.key?(:'user')
70
- self.user = attributes[:'user']
71
- else
72
- self.user = nil
73
- end
74
-
75
65
  if attributes.key?(:'source')
76
66
  self.source = attributes[:'source']
77
67
  else
@@ -90,10 +80,6 @@ module Authentik::Api
90
80
  def list_invalid_properties
91
81
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
82
  invalid_properties = Array.new
93
- if @user.nil?
94
- invalid_properties.push('invalid value for "user", user cannot be nil.')
95
- end
96
-
97
83
  if @source.nil?
98
84
  invalid_properties.push('invalid value for "source", source cannot be nil.')
99
85
  end
@@ -113,23 +99,12 @@ module Authentik::Api
113
99
  # @return true if the model is valid
114
100
  def valid?
115
101
  warn '[DEPRECATED] the `valid?` method is obsolete'
116
- return false if @user.nil?
117
102
  return false if @source.nil?
118
103
  return false if @identifier.nil?
119
104
  return false if @identifier.to_s.length < 1
120
105
  true
121
106
  end
122
107
 
123
- # Custom attribute writer method with validation
124
- # @param [Object] user Value to be assigned
125
- def user=(user)
126
- if user.nil?
127
- fail ArgumentError, 'user cannot be nil'
128
- end
129
-
130
- @user = user
131
- end
132
-
133
108
  # Custom attribute writer method with validation
134
109
  # @param [Object] source Value to be assigned
135
110
  def source=(source)
@@ -159,7 +134,6 @@ module Authentik::Api
159
134
  def ==(o)
160
135
  return true if self.equal?(o)
161
136
  self.class == o.class &&
162
- user == o.user &&
163
137
  source == o.source &&
164
138
  identifier == o.identifier
165
139
  end
@@ -173,7 +147,7 @@ module Authentik::Api
173
147
  # Calculates hash code according to all attributes.
174
148
  # @return [Integer] Hash code
175
149
  def hash
176
- [user, source, identifier].hash
150
+ [source, identifier].hash
177
151
  end
178
152
 
179
153
  # Builds the object from hash
@@ -10,8 +10,6 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class UserLDAPSourceConnectionRequest < ApiModelBase
13
- attr_accessor :user
14
-
15
13
  attr_accessor :source
16
14
 
17
15
  attr_accessor :identifier
@@ -19,7 +17,6 @@ module Authentik::Api
19
17
  # Attribute mapping from ruby-style variable name to JSON key.
20
18
  def self.attribute_map
21
19
  {
22
- :'user' => :'user',
23
20
  :'source' => :'source',
24
21
  :'identifier' => :'identifier'
25
22
  }
@@ -38,7 +35,6 @@ module Authentik::Api
38
35
  # Attribute type mapping.
39
36
  def self.openapi_types
40
37
  {
41
- :'user' => :'Integer',
42
38
  :'source' => :'String',
43
39
  :'identifier' => :'String'
44
40
  }
@@ -66,12 +62,6 @@ module Authentik::Api
66
62
  h[k.to_sym] = v
67
63
  }
68
64
 
69
- if attributes.key?(:'user')
70
- self.user = attributes[:'user']
71
- else
72
- self.user = nil
73
- end
74
-
75
65
  if attributes.key?(:'source')
76
66
  self.source = attributes[:'source']
77
67
  else
@@ -90,10 +80,6 @@ module Authentik::Api
90
80
  def list_invalid_properties
91
81
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
82
  invalid_properties = Array.new
93
- if @user.nil?
94
- invalid_properties.push('invalid value for "user", user cannot be nil.')
95
- end
96
-
97
83
  if @source.nil?
98
84
  invalid_properties.push('invalid value for "source", source cannot be nil.')
99
85
  end
@@ -113,23 +99,12 @@ module Authentik::Api
113
99
  # @return true if the model is valid
114
100
  def valid?
115
101
  warn '[DEPRECATED] the `valid?` method is obsolete'
116
- return false if @user.nil?
117
102
  return false if @source.nil?
118
103
  return false if @identifier.nil?
119
104
  return false if @identifier.to_s.length < 1
120
105
  true
121
106
  end
122
107
 
123
- # Custom attribute writer method with validation
124
- # @param [Object] user Value to be assigned
125
- def user=(user)
126
- if user.nil?
127
- fail ArgumentError, 'user cannot be nil'
128
- end
129
-
130
- @user = user
131
- end
132
-
133
108
  # Custom attribute writer method with validation
134
109
  # @param [Object] source Value to be assigned
135
110
  def source=(source)
@@ -159,7 +134,6 @@ module Authentik::Api
159
134
  def ==(o)
160
135
  return true if self.equal?(o)
161
136
  self.class == o.class &&
162
- user == o.user &&
163
137
  source == o.source &&
164
138
  identifier == o.identifier
165
139
  end
@@ -173,7 +147,7 @@ module Authentik::Api
173
147
  # Calculates hash code according to all attributes.
174
148
  # @return [Integer] Hash code
175
149
  def hash
176
- [user, source, identifier].hash
150
+ [source, identifier].hash
177
151
  end
178
152
 
179
153
  # Builds the object from hash
@@ -10,8 +10,6 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class UserOAuthSourceConnectionRequest < ApiModelBase
13
- attr_accessor :user
14
-
15
13
  attr_accessor :source
16
14
 
17
15
  attr_accessor :identifier
@@ -23,7 +21,6 @@ module Authentik::Api
23
21
  # Attribute mapping from ruby-style variable name to JSON key.
24
22
  def self.attribute_map
25
23
  {
26
- :'user' => :'user',
27
24
  :'source' => :'source',
28
25
  :'identifier' => :'identifier',
29
26
  :'access_token' => :'access_token',
@@ -44,7 +41,6 @@ module Authentik::Api
44
41
  # Attribute type mapping.
45
42
  def self.openapi_types
46
43
  {
47
- :'user' => :'Integer',
48
44
  :'source' => :'String',
49
45
  :'identifier' => :'String',
50
46
  :'access_token' => :'String',
@@ -75,12 +71,6 @@ module Authentik::Api
75
71
  h[k.to_sym] = v
76
72
  }
77
73
 
78
- if attributes.key?(:'user')
79
- self.user = attributes[:'user']
80
- else
81
- self.user = nil
82
- end
83
-
84
74
  if attributes.key?(:'source')
85
75
  self.source = attributes[:'source']
86
76
  else
@@ -107,10 +97,6 @@ module Authentik::Api
107
97
  def list_invalid_properties
108
98
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
99
  invalid_properties = Array.new
110
- if @user.nil?
111
- invalid_properties.push('invalid value for "user", user cannot be nil.')
112
- end
113
-
114
100
  if @source.nil?
115
101
  invalid_properties.push('invalid value for "source", source cannot be nil.')
116
102
  end
@@ -130,23 +116,12 @@ module Authentik::Api
130
116
  # @return true if the model is valid
131
117
  def valid?
132
118
  warn '[DEPRECATED] the `valid?` method is obsolete'
133
- return false if @user.nil?
134
119
  return false if @source.nil?
135
120
  return false if @identifier.nil?
136
121
  return false if @identifier.to_s.length < 1
137
122
  true
138
123
  end
139
124
 
140
- # Custom attribute writer method with validation
141
- # @param [Object] user Value to be assigned
142
- def user=(user)
143
- if user.nil?
144
- fail ArgumentError, 'user cannot be nil'
145
- end
146
-
147
- @user = user
148
- end
149
-
150
125
  # Custom attribute writer method with validation
151
126
  # @param [Object] source Value to be assigned
152
127
  def source=(source)
@@ -176,7 +151,6 @@ module Authentik::Api
176
151
  def ==(o)
177
152
  return true if self.equal?(o)
178
153
  self.class == o.class &&
179
- user == o.user &&
180
154
  source == o.source &&
181
155
  identifier == o.identifier &&
182
156
  access_token == o.access_token &&
@@ -192,7 +166,7 @@ module Authentik::Api
192
166
  # Calculates hash code according to all attributes.
193
167
  # @return [Integer] Hash code
194
168
  def hash
195
- [user, source, identifier, access_token, expires].hash
169
+ [source, identifier, access_token, expires].hash
196
170
  end
197
171
 
198
172
  # Builds the object from hash
@@ -10,8 +10,6 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class UserPlexSourceConnectionRequest < ApiModelBase
13
- attr_accessor :user
14
-
15
13
  attr_accessor :source
16
14
 
17
15
  attr_accessor :identifier
@@ -21,7 +19,6 @@ module Authentik::Api
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
24
- :'user' => :'user',
25
22
  :'source' => :'source',
26
23
  :'identifier' => :'identifier',
27
24
  :'plex_token' => :'plex_token'
@@ -41,7 +38,6 @@ module Authentik::Api
41
38
  # Attribute type mapping.
42
39
  def self.openapi_types
43
40
  {
44
- :'user' => :'Integer',
45
41
  :'source' => :'String',
46
42
  :'identifier' => :'String',
47
43
  :'plex_token' => :'String'
@@ -70,12 +66,6 @@ module Authentik::Api
70
66
  h[k.to_sym] = v
71
67
  }
72
68
 
73
- if attributes.key?(:'user')
74
- self.user = attributes[:'user']
75
- else
76
- self.user = nil
77
- end
78
-
79
69
  if attributes.key?(:'source')
80
70
  self.source = attributes[:'source']
81
71
  else
@@ -100,10 +90,6 @@ module Authentik::Api
100
90
  def list_invalid_properties
101
91
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
102
92
  invalid_properties = Array.new
103
- if @user.nil?
104
- invalid_properties.push('invalid value for "user", user cannot be nil.')
105
- end
106
-
107
93
  if @source.nil?
108
94
  invalid_properties.push('invalid value for "source", source cannot be nil.')
109
95
  end
@@ -131,7 +117,6 @@ module Authentik::Api
131
117
  # @return true if the model is valid
132
118
  def valid?
133
119
  warn '[DEPRECATED] the `valid?` method is obsolete'
134
- return false if @user.nil?
135
120
  return false if @source.nil?
136
121
  return false if @identifier.nil?
137
122
  return false if @identifier.to_s.length < 1
@@ -140,16 +125,6 @@ module Authentik::Api
140
125
  true
141
126
  end
142
127
 
143
- # Custom attribute writer method with validation
144
- # @param [Object] user Value to be assigned
145
- def user=(user)
146
- if user.nil?
147
- fail ArgumentError, 'user cannot be nil'
148
- end
149
-
150
- @user = user
151
- end
152
-
153
128
  # Custom attribute writer method with validation
154
129
  # @param [Object] source Value to be assigned
155
130
  def source=(source)
@@ -193,7 +168,6 @@ module Authentik::Api
193
168
  def ==(o)
194
169
  return true if self.equal?(o)
195
170
  self.class == o.class &&
196
- user == o.user &&
197
171
  source == o.source &&
198
172
  identifier == o.identifier &&
199
173
  plex_token == o.plex_token
@@ -208,7 +182,7 @@ module Authentik::Api
208
182
  # Calculates hash code according to all attributes.
209
183
  # @return [Integer] Hash code
210
184
  def hash
211
- [user, source, identifier, plex_token].hash
185
+ [source, identifier, plex_token].hash
212
186
  end
213
187
 
214
188
  # Builds the object from hash
@@ -10,8 +10,6 @@ require 'time'
10
10
  module Authentik::Api
11
11
  # User source connection
12
12
  class UserSAMLSourceConnectionRequest < ApiModelBase
13
- attr_accessor :user
14
-
15
13
  attr_accessor :source
16
14
 
17
15
  attr_accessor :identifier
@@ -19,7 +17,6 @@ module Authentik::Api
19
17
  # Attribute mapping from ruby-style variable name to JSON key.
20
18
  def self.attribute_map
21
19
  {
22
- :'user' => :'user',
23
20
  :'source' => :'source',
24
21
  :'identifier' => :'identifier'
25
22
  }
@@ -38,7 +35,6 @@ module Authentik::Api
38
35
  # Attribute type mapping.
39
36
  def self.openapi_types
40
37
  {
41
- :'user' => :'Integer',
42
38
  :'source' => :'String',
43
39
  :'identifier' => :'String'
44
40
  }
@@ -66,12 +62,6 @@ module Authentik::Api
66
62
  h[k.to_sym] = v
67
63
  }
68
64
 
69
- if attributes.key?(:'user')
70
- self.user = attributes[:'user']
71
- else
72
- self.user = nil
73
- end
74
-
75
65
  if attributes.key?(:'source')
76
66
  self.source = attributes[:'source']
77
67
  else
@@ -90,10 +80,6 @@ module Authentik::Api
90
80
  def list_invalid_properties
91
81
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
82
  invalid_properties = Array.new
93
- if @user.nil?
94
- invalid_properties.push('invalid value for "user", user cannot be nil.')
95
- end
96
-
97
83
  if @source.nil?
98
84
  invalid_properties.push('invalid value for "source", source cannot be nil.')
99
85
  end
@@ -113,23 +99,12 @@ module Authentik::Api
113
99
  # @return true if the model is valid
114
100
  def valid?
115
101
  warn '[DEPRECATED] the `valid?` method is obsolete'
116
- return false if @user.nil?
117
102
  return false if @source.nil?
118
103
  return false if @identifier.nil?
119
104
  return false if @identifier.to_s.length < 1
120
105
  true
121
106
  end
122
107
 
123
- # Custom attribute writer method with validation
124
- # @param [Object] user Value to be assigned
125
- def user=(user)
126
- if user.nil?
127
- fail ArgumentError, 'user cannot be nil'
128
- end
129
-
130
- @user = user
131
- end
132
-
133
108
  # Custom attribute writer method with validation
134
109
  # @param [Object] source Value to be assigned
135
110
  def source=(source)
@@ -159,7 +134,6 @@ module Authentik::Api
159
134
  def ==(o)
160
135
  return true if self.equal?(o)
161
136
  self.class == o.class &&
162
- user == o.user &&
163
137
  source == o.source &&
164
138
  identifier == o.identifier
165
139
  end
@@ -173,7 +147,7 @@ module Authentik::Api
173
147
  # Calculates hash code according to all attributes.
174
148
  # @return [Integer] Hash code
175
149
  def hash
176
- [user, source, identifier].hash
150
+ [source, identifier].hash
177
151
  end
178
152
 
179
153
  # Builds the object from hash