authentik-api 2026.2.3 → 2026.2.4
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.
- checksums.yaml +4 -4
- data/README_API.md +5 -5
- data/lib/authentik/api/models/group_kerberos_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/group_ldap_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/group_o_auth_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/group_plex_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/group_saml_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/group_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/group_telegram_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/patched_group_kerberos_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_group_ldap_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_group_o_auth_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_group_plex_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_group_saml_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_group_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_group_telegram_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_user_kerberos_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_user_ldap_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_user_o_auth_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_user_plex_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_user_saml_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_user_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/patched_user_telegram_source_connection_request.rb +1 -10
- data/lib/authentik/api/models/user_kerberos_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/user_ldap_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/user_o_auth_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/user_plex_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/user_saml_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/user_source_connection_request.rb +1 -27
- data/lib/authentik/api/models/user_telegram_source_connection_request.rb +1 -27
- data/lib/authentik/api/version.rb +1 -1
- data/spec/models/group_kerberos_source_connection_request_spec.rb +0 -6
- data/spec/models/group_ldap_source_connection_request_spec.rb +0 -6
- data/spec/models/group_o_auth_source_connection_request_spec.rb +0 -6
- data/spec/models/group_plex_source_connection_request_spec.rb +0 -6
- data/spec/models/group_saml_source_connection_request_spec.rb +0 -6
- data/spec/models/group_source_connection_request_spec.rb +0 -6
- data/spec/models/group_telegram_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_group_kerberos_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_group_ldap_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_group_o_auth_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_group_plex_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_group_saml_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_group_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_group_telegram_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_user_kerberos_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_user_ldap_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_user_o_auth_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_user_plex_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_user_saml_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_user_source_connection_request_spec.rb +0 -6
- data/spec/models/patched_user_telegram_source_connection_request_spec.rb +0 -6
- data/spec/models/user_kerberos_source_connection_request_spec.rb +0 -6
- data/spec/models/user_ldap_source_connection_request_spec.rb +0 -6
- data/spec/models/user_o_auth_source_connection_request_spec.rb +0 -6
- data/spec/models/user_plex_source_connection_request_spec.rb +0 -6
- data/spec/models/user_saml_source_connection_request_spec.rb +0 -6
- data/spec/models/user_source_connection_request_spec.rb +0 -6
- data/spec/models/user_telegram_source_connection_request_spec.rb +0 -6
- 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
|
-
[
|
|
126
|
+
[source, identifier].hash
|
|
136
127
|
end
|
|
137
128
|
|
|
138
129
|
# 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
|
-
[
|
|
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
|
-
[
|
|
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
|
-
[
|
|
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
|
-
[
|
|
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
|
-
[
|
|
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 UserSourceConnectionRequest < 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
|
-
[
|
|
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 UserTelegramSourceConnectionRequest < 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
|
-
[
|
|
150
|
+
[source, identifier].hash
|
|
177
151
|
end
|
|
178
152
|
|
|
179
153
|
# Builds the object from hash
|
|
@@ -21,12 +21,6 @@ describe Authentik::Api::GroupKerberosSourceConnectionRequest do
|
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
describe 'test attribute "group"' do
|
|
25
|
-
it 'should work' do
|
|
26
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
24
|
describe 'test attribute "source"' do
|
|
31
25
|
it 'should work' do
|
|
32
26
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -21,12 +21,6 @@ describe Authentik::Api::GroupLDAPSourceConnectionRequest do
|
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
describe 'test attribute "group"' do
|
|
25
|
-
it 'should work' do
|
|
26
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
24
|
describe 'test attribute "source"' do
|
|
31
25
|
it 'should work' do
|
|
32
26
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|