authentik-api 2025.12.4 → 2026.2.1.1
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 +59 -7
- data/lib/authentik/api/api/core_api.rb +109 -12
- data/lib/authentik/api/api/crypto_api.rb +0 -3
- data/lib/authentik/api/api/endpoints_api.rb +459 -0
- data/lib/authentik/api/api/events_api.rb +3 -3
- data/lib/authentik/api/api/lifecycle_api.rb +681 -0
- data/lib/authentik/api/api/policies_api.rb +1 -1
- data/lib/authentik/api/api/providers_api.rb +705 -3
- data/lib/authentik/api/api/rbac_api.rb +6 -9
- data/lib/authentik/api/api/stages_api.rb +1 -1
- data/lib/authentik/api/models/alg_enum.rb +3 -1
- data/lib/authentik/api/models/app_enum.rb +4 -1
- data/lib/authentik/api/models/bulk_delete_session_response.rb +158 -0
- data/lib/authentik/api/models/certificate_key_pair.rb +5 -4
- data/lib/authentik/api/models/content_type_enum.rb +35 -0
- data/lib/authentik/api/models/contextual_flow_info_layout_enum.rb +3 -1
- data/lib/authentik/api/models/current_brand_flags.rb +27 -1
- data/lib/authentik/api/models/device_access_group.rb +15 -4
- data/lib/authentik/api/models/device_access_group_request.rb +15 -4
- data/lib/authentik/api/models/device_fact_snapshot.rb +53 -5
- data/lib/authentik/api/models/event_actions.rb +6 -1
- data/lib/authentik/api/models/fleet_connector.rb +349 -0
- data/lib/authentik/api/models/fleet_connector_request.rb +294 -0
- data/lib/authentik/api/models/flow_layout_enum.rb +3 -1
- data/lib/authentik/api/models/identification_challenge.rb +11 -1
- data/lib/authentik/api/models/lifecycle_iteration.rb +525 -0
- data/lib/authentik/api/models/lifecycle_iteration_request.rb +181 -0
- data/lib/authentik/api/models/lifecycle_iteration_state_enum.rb +36 -0
- data/lib/authentik/api/models/lifecycle_rule.rb +440 -0
- data/lib/authentik/api/models/lifecycle_rule_request.rb +394 -0
- data/lib/authentik/api/models/model_enum.rb +6 -1
- data/lib/authentik/api/models/model_request.rb +4 -2
- data/lib/authentik/api/models/operating_system.rb +3 -0
- data/lib/authentik/api/models/operating_system_request.rb +3 -0
- data/lib/authentik/api/models/paginated_fleet_connector_list.rb +214 -0
- data/lib/authentik/api/models/paginated_lifecycle_iteration_list.rb +214 -0
- data/lib/authentik/api/models/paginated_lifecycle_rule_list.rb +214 -0
- data/lib/authentik/api/models/paginated_ws_federation_provider_list.rb +214 -0
- data/lib/authentik/api/models/patched_device_access_group_request.rb +15 -4
- data/lib/authentik/api/models/patched_fleet_connector_request.rb +273 -0
- data/lib/authentik/api/models/patched_lifecycle_rule_request.rb +353 -0
- data/lib/authentik/api/models/patched_role_request.rb +0 -9
- data/lib/authentik/api/models/patched_saml_provider_request.rb +1 -1
- data/lib/authentik/api/models/patched_scim_provider_request.rb +13 -11
- data/lib/authentik/api/models/patched_settings_request_flags.rb +27 -1
- data/lib/authentik/api/models/patched_ws_federation_provider_request.rb +457 -0
- data/lib/authentik/api/models/provider_model_enum.rb +2 -1
- data/lib/authentik/api/models/review.rb +247 -0
- data/lib/authentik/api/models/review_request.rb +184 -0
- data/lib/authentik/api/models/reviewer_group.rb +184 -0
- data/lib/authentik/api/models/reviewer_user.rb +258 -0
- data/lib/authentik/api/models/role.rb +0 -9
- data/lib/authentik/api/models/role_request.rb +0 -9
- data/lib/authentik/api/models/{saml_provider_logout_method_enum.rb → saml_logout_methods.rb} +3 -3
- data/lib/authentik/api/models/saml_provider.rb +1 -1
- data/lib/authentik/api/models/saml_provider_request.rb +1 -1
- data/lib/authentik/api/models/scim_provider.rb +13 -11
- data/lib/authentik/api/models/scim_provider_request.rb +13 -11
- data/lib/authentik/api/models/task.rb +1 -1
- data/lib/authentik/api/models/{state_enum.rb → task_state_enum.rb} +3 -3
- data/lib/authentik/api/models/user_recovery_email_request.rb +187 -0
- data/lib/authentik/api/models/user_recovery_link_request.rb +161 -0
- data/lib/authentik/api/models/vendor_enum.rb +35 -0
- data/lib/authentik/api/models/ws_federation_provider.rb +668 -0
- data/lib/authentik/api/models/ws_federation_provider_request.rb +512 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/core_api_spec.rb +21 -1
- data/spec/api/crypto_api_spec.rb +0 -1
- data/spec/api/endpoints_api_spec.rb +83 -0
- data/spec/api/lifecycle_api_spec.rb +144 -0
- data/spec/api/providers_api_spec.rb +137 -1
- data/spec/api/rbac_api_spec.rb +2 -3
- data/spec/models/bulk_delete_session_response_spec.rb +30 -0
- data/spec/models/content_type_enum_spec.rb +24 -0
- data/spec/models/current_brand_flags_spec.rb +6 -0
- data/spec/models/device_access_group_request_spec.rb +6 -0
- data/spec/models/device_access_group_spec.rb +6 -0
- data/spec/models/device_fact_snapshot_spec.rb +6 -0
- data/spec/models/fleet_connector_request_spec.rb +72 -0
- data/spec/models/fleet_connector_spec.rb +90 -0
- data/spec/models/identification_challenge_spec.rb +6 -0
- data/spec/models/lifecycle_iteration_request_spec.rb +30 -0
- data/spec/models/lifecycle_iteration_spec.rb +108 -0
- data/spec/models/lifecycle_iteration_state_enum_spec.rb +24 -0
- data/spec/models/lifecycle_rule_request_spec.rb +84 -0
- data/spec/models/lifecycle_rule_spec.rb +108 -0
- data/spec/models/paginated_fleet_connector_list_spec.rb +42 -0
- data/spec/models/paginated_lifecycle_iteration_list_spec.rb +42 -0
- data/spec/models/paginated_lifecycle_rule_list_spec.rb +42 -0
- data/spec/models/paginated_ws_federation_provider_list_spec.rb +42 -0
- data/spec/models/patched_device_access_group_request_spec.rb +6 -0
- data/spec/models/patched_fleet_connector_request_spec.rb +72 -0
- data/spec/models/patched_lifecycle_rule_request_spec.rb +84 -0
- data/spec/models/patched_scim_provider_request_spec.rb +3 -3
- data/spec/models/patched_settings_request_flags_spec.rb +6 -0
- data/spec/models/patched_ws_federation_provider_request_spec.rb +138 -0
- data/spec/models/review_request_spec.rb +36 -0
- data/spec/models/review_spec.rb +54 -0
- data/spec/models/reviewer_group_spec.rb +36 -0
- data/spec/models/reviewer_user_spec.rb +48 -0
- data/spec/models/saml_logout_methods_spec.rb +24 -0
- data/spec/models/scim_provider_request_spec.rb +3 -3
- data/spec/models/scim_provider_spec.rb +3 -3
- data/spec/models/task_state_enum_spec.rb +24 -0
- data/spec/models/user_recovery_email_request_spec.rb +36 -0
- data/spec/models/user_recovery_link_request_spec.rb +30 -0
- data/spec/models/{state_enum_spec.rb → vendor_enum_spec.rb} +6 -6
- data/spec/models/ws_federation_provider_request_spec.rb +138 -0
- data/spec/models/ws_federation_provider_spec.rb +204 -0
- metadata +85 -7
- data/spec/models/saml_provider_logout_method_enum_spec.rb +0 -24
|
@@ -0,0 +1,258 @@
|
|
|
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 ReviewerUser < ApiModelBase
|
|
12
|
+
attr_accessor :pk
|
|
13
|
+
|
|
14
|
+
attr_accessor :uuid
|
|
15
|
+
|
|
16
|
+
# Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
|
|
17
|
+
attr_accessor :username
|
|
18
|
+
|
|
19
|
+
# User's display name.
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'pk' => :'pk',
|
|
26
|
+
:'uuid' => :'uuid',
|
|
27
|
+
:'username' => :'username',
|
|
28
|
+
:'name' => :'name'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns attribute mapping this model knows about
|
|
33
|
+
def self.acceptable_attribute_map
|
|
34
|
+
attribute_map
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
acceptable_attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'pk' => :'Integer',
|
|
46
|
+
:'uuid' => :'String',
|
|
47
|
+
:'username' => :'String',
|
|
48
|
+
:'name' => :'String'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::ReviewerUser` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::ReviewerUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'pk')
|
|
75
|
+
self.pk = attributes[:'pk']
|
|
76
|
+
else
|
|
77
|
+
self.pk = nil
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'uuid')
|
|
81
|
+
self.uuid = attributes[:'uuid']
|
|
82
|
+
else
|
|
83
|
+
self.uuid = nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'username')
|
|
87
|
+
self.username = attributes[:'username']
|
|
88
|
+
else
|
|
89
|
+
self.username = nil
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'name')
|
|
93
|
+
self.name = attributes[:'name']
|
|
94
|
+
else
|
|
95
|
+
self.name = nil
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
100
|
+
# @return Array for valid properties with the reasons
|
|
101
|
+
def list_invalid_properties
|
|
102
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
103
|
+
invalid_properties = Array.new
|
|
104
|
+
if @pk.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "pk", pk cannot be nil.')
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if @uuid.nil?
|
|
109
|
+
invalid_properties.push('invalid value for "uuid", uuid cannot be nil.')
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if @username.nil?
|
|
113
|
+
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if @username.to_s.length > 150
|
|
117
|
+
invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 150.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
pattern = Regexp.new(/^[\w.@+-]+$/)
|
|
121
|
+
if @username !~ pattern
|
|
122
|
+
invalid_properties.push("invalid value for \"username\", must conform to the pattern #{pattern}.")
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if @name.nil?
|
|
126
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
invalid_properties
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Check to see if the all the properties in the model are valid
|
|
133
|
+
# @return true if the model is valid
|
|
134
|
+
def valid?
|
|
135
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
136
|
+
return false if @pk.nil?
|
|
137
|
+
return false if @uuid.nil?
|
|
138
|
+
return false if @username.nil?
|
|
139
|
+
return false if @username.to_s.length > 150
|
|
140
|
+
return false if @username !~ Regexp.new(/^[\w.@+-]+$/)
|
|
141
|
+
return false if @name.nil?
|
|
142
|
+
true
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Custom attribute writer method with validation
|
|
146
|
+
# @param [Object] pk Value to be assigned
|
|
147
|
+
def pk=(pk)
|
|
148
|
+
if pk.nil?
|
|
149
|
+
fail ArgumentError, 'pk cannot be nil'
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
@pk = pk
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Custom attribute writer method with validation
|
|
156
|
+
# @param [Object] uuid Value to be assigned
|
|
157
|
+
def uuid=(uuid)
|
|
158
|
+
if uuid.nil?
|
|
159
|
+
fail ArgumentError, 'uuid cannot be nil'
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
@uuid = uuid
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Custom attribute writer method with validation
|
|
166
|
+
# @param [Object] username Value to be assigned
|
|
167
|
+
def username=(username)
|
|
168
|
+
if username.nil?
|
|
169
|
+
fail ArgumentError, 'username cannot be nil'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if username.to_s.length > 150
|
|
173
|
+
fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 150.'
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
pattern = Regexp.new(/^[\w.@+-]+$/)
|
|
177
|
+
if username !~ pattern
|
|
178
|
+
fail ArgumentError, "invalid value for \"username\", must conform to the pattern #{pattern}."
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@username = username
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] name Value to be assigned
|
|
186
|
+
def name=(name)
|
|
187
|
+
if name.nil?
|
|
188
|
+
fail ArgumentError, 'name cannot be nil'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@name = name
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Checks equality by comparing each attribute.
|
|
195
|
+
# @param [Object] Object to be compared
|
|
196
|
+
def ==(o)
|
|
197
|
+
return true if self.equal?(o)
|
|
198
|
+
self.class == o.class &&
|
|
199
|
+
pk == o.pk &&
|
|
200
|
+
uuid == o.uuid &&
|
|
201
|
+
username == o.username &&
|
|
202
|
+
name == o.name
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# @see the `==` method
|
|
206
|
+
# @param [Object] Object to be compared
|
|
207
|
+
def eql?(o)
|
|
208
|
+
self == o
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Calculates hash code according to all attributes.
|
|
212
|
+
# @return [Integer] Hash code
|
|
213
|
+
def hash
|
|
214
|
+
[pk, uuid, username, name].hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Builds the object from hash
|
|
218
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
219
|
+
# @return [Object] Returns the model itself
|
|
220
|
+
def self.build_from_hash(attributes)
|
|
221
|
+
return nil unless attributes.is_a?(Hash)
|
|
222
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
223
|
+
transformed_hash = {}
|
|
224
|
+
openapi_types.each_pair do |key, type|
|
|
225
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
226
|
+
transformed_hash["#{key}"] = nil
|
|
227
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
228
|
+
# check to ensure the input is an array given that the attribute
|
|
229
|
+
# is documented as an array but the input is not
|
|
230
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
231
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
232
|
+
end
|
|
233
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
234
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
new(transformed_hash)
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Returns the object in the form of hash
|
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
|
242
|
+
def to_hash
|
|
243
|
+
hash = {}
|
|
244
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
245
|
+
value = self.send(attr)
|
|
246
|
+
if value.nil?
|
|
247
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
248
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
hash[param] = _to_hash(value)
|
|
252
|
+
end
|
|
253
|
+
hash
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
end
|
|
@@ -88,10 +88,6 @@ module Authentik::Api
|
|
|
88
88
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
-
if @name.to_s.length > 150
|
|
92
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 150.')
|
|
93
|
-
end
|
|
94
|
-
|
|
95
91
|
invalid_properties
|
|
96
92
|
end
|
|
97
93
|
|
|
@@ -101,7 +97,6 @@ module Authentik::Api
|
|
|
101
97
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
98
|
return false if @pk.nil?
|
|
103
99
|
return false if @name.nil?
|
|
104
|
-
return false if @name.to_s.length > 150
|
|
105
100
|
true
|
|
106
101
|
end
|
|
107
102
|
|
|
@@ -122,10 +117,6 @@ module Authentik::Api
|
|
|
122
117
|
fail ArgumentError, 'name cannot be nil'
|
|
123
118
|
end
|
|
124
119
|
|
|
125
|
-
if name.to_s.length > 150
|
|
126
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 150.'
|
|
127
|
-
end
|
|
128
|
-
|
|
129
120
|
@name = name
|
|
130
121
|
end
|
|
131
122
|
|
|
@@ -74,10 +74,6 @@ module Authentik::Api
|
|
|
74
74
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
if @name.to_s.length > 150
|
|
78
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 150.')
|
|
79
|
-
end
|
|
80
|
-
|
|
81
77
|
if @name.to_s.length < 1
|
|
82
78
|
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
|
|
83
79
|
end
|
|
@@ -90,7 +86,6 @@ module Authentik::Api
|
|
|
90
86
|
def valid?
|
|
91
87
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
88
|
return false if @name.nil?
|
|
93
|
-
return false if @name.to_s.length > 150
|
|
94
89
|
return false if @name.to_s.length < 1
|
|
95
90
|
true
|
|
96
91
|
end
|
|
@@ -102,10 +97,6 @@ module Authentik::Api
|
|
|
102
97
|
fail ArgumentError, 'name cannot be nil'
|
|
103
98
|
end
|
|
104
99
|
|
|
105
|
-
if name.to_s.length > 150
|
|
106
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 150.'
|
|
107
|
-
end
|
|
108
|
-
|
|
109
100
|
if name.to_s.length < 1
|
|
110
101
|
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
|
|
111
102
|
end
|
data/lib/authentik/api/models/{saml_provider_logout_method_enum.rb → saml_logout_methods.rb}
RENAMED
|
@@ -8,7 +8,7 @@ require 'date'
|
|
|
8
8
|
require 'time'
|
|
9
9
|
|
|
10
10
|
module Authentik::Api
|
|
11
|
-
class
|
|
11
|
+
class SAMLLogoutMethods
|
|
12
12
|
FRONTCHANNEL_IFRAME = "frontchannel_iframe".freeze
|
|
13
13
|
FRONTCHANNEL_NATIVE = "frontchannel_native".freeze
|
|
14
14
|
BACKCHANNEL = "backchannel".freeze
|
|
@@ -28,8 +28,8 @@ module Authentik::Api
|
|
|
28
28
|
# @param [String] The enum value in the form of the string
|
|
29
29
|
# @return [String] The enum value
|
|
30
30
|
def build_from_hash(value)
|
|
31
|
-
return value if
|
|
32
|
-
raise "Invalid ENUM value #{value} for class #
|
|
31
|
+
return value if SAMLLogoutMethods.all_vars.include?(value)
|
|
32
|
+
raise "Invalid ENUM value #{value} for class #SAMLLogoutMethods"
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
end
|
|
@@ -242,7 +242,7 @@ module Authentik::Api
|
|
|
242
242
|
:'sign_logout_request' => :'Boolean',
|
|
243
243
|
:'sp_binding' => :'SAMLBindingsEnum',
|
|
244
244
|
:'sls_binding' => :'SAMLBindingsEnum',
|
|
245
|
-
:'logout_method' => :'
|
|
245
|
+
:'logout_method' => :'SAMLLogoutMethods',
|
|
246
246
|
:'default_relay_state' => :'String',
|
|
247
247
|
:'default_name_id_policy' => :'SAMLNameIDPolicyEnum',
|
|
248
248
|
:'url_download_metadata' => :'String',
|
|
@@ -174,7 +174,7 @@ module Authentik::Api
|
|
|
174
174
|
:'sign_logout_request' => :'Boolean',
|
|
175
175
|
:'sp_binding' => :'SAMLBindingsEnum',
|
|
176
176
|
:'sls_binding' => :'SAMLBindingsEnum',
|
|
177
|
-
:'logout_method' => :'
|
|
177
|
+
:'logout_method' => :'SAMLLogoutMethods',
|
|
178
178
|
:'default_relay_state' => :'String',
|
|
179
179
|
:'default_name_id_policy' => :'SAMLNameIDPolicyEnum'
|
|
180
180
|
}
|
|
@@ -61,14 +61,15 @@ module Authentik::Api
|
|
|
61
61
|
|
|
62
62
|
attr_accessor :exclude_users_service_account
|
|
63
63
|
|
|
64
|
-
attr_accessor :filter_group
|
|
65
|
-
|
|
66
64
|
# Controls the number of objects synced in a single task
|
|
67
65
|
attr_accessor :sync_page_size
|
|
68
66
|
|
|
69
67
|
# Timeout for synchronization of a single page
|
|
70
68
|
attr_accessor :sync_page_timeout
|
|
71
69
|
|
|
70
|
+
# Group filters used to define sync-scope for groups.
|
|
71
|
+
attr_accessor :group_filters
|
|
72
|
+
|
|
72
73
|
# When enabled, provider will not modify or create objects in the remote system.
|
|
73
74
|
attr_accessor :dry_run
|
|
74
75
|
|
|
@@ -116,9 +117,9 @@ module Authentik::Api
|
|
|
116
117
|
:'compatibility_mode' => :'compatibility_mode',
|
|
117
118
|
:'service_provider_config_cache_timeout' => :'service_provider_config_cache_timeout',
|
|
118
119
|
:'exclude_users_service_account' => :'exclude_users_service_account',
|
|
119
|
-
:'filter_group' => :'filter_group',
|
|
120
120
|
:'sync_page_size' => :'sync_page_size',
|
|
121
121
|
:'sync_page_timeout' => :'sync_page_timeout',
|
|
122
|
+
:'group_filters' => :'group_filters',
|
|
122
123
|
:'dry_run' => :'dry_run'
|
|
123
124
|
}
|
|
124
125
|
end
|
|
@@ -155,9 +156,9 @@ module Authentik::Api
|
|
|
155
156
|
:'compatibility_mode' => :'CompatibilityModeEnum',
|
|
156
157
|
:'service_provider_config_cache_timeout' => :'String',
|
|
157
158
|
:'exclude_users_service_account' => :'Boolean',
|
|
158
|
-
:'filter_group' => :'String',
|
|
159
159
|
:'sync_page_size' => :'Integer',
|
|
160
160
|
:'sync_page_timeout' => :'String',
|
|
161
|
+
:'group_filters' => :'Array<String>',
|
|
161
162
|
:'dry_run' => :'Boolean'
|
|
162
163
|
}
|
|
163
164
|
end
|
|
@@ -168,7 +169,6 @@ module Authentik::Api
|
|
|
168
169
|
:'assigned_backchannel_application_slug',
|
|
169
170
|
:'assigned_backchannel_application_name',
|
|
170
171
|
:'auth_oauth',
|
|
171
|
-
:'filter_group',
|
|
172
172
|
])
|
|
173
173
|
end
|
|
174
174
|
|
|
@@ -288,10 +288,6 @@ module Authentik::Api
|
|
|
288
288
|
self.exclude_users_service_account = attributes[:'exclude_users_service_account']
|
|
289
289
|
end
|
|
290
290
|
|
|
291
|
-
if attributes.key?(:'filter_group')
|
|
292
|
-
self.filter_group = attributes[:'filter_group']
|
|
293
|
-
end
|
|
294
|
-
|
|
295
291
|
if attributes.key?(:'sync_page_size')
|
|
296
292
|
self.sync_page_size = attributes[:'sync_page_size']
|
|
297
293
|
end
|
|
@@ -300,6 +296,12 @@ module Authentik::Api
|
|
|
300
296
|
self.sync_page_timeout = attributes[:'sync_page_timeout']
|
|
301
297
|
end
|
|
302
298
|
|
|
299
|
+
if attributes.key?(:'group_filters')
|
|
300
|
+
if (value = attributes[:'group_filters']).is_a?(Array)
|
|
301
|
+
self.group_filters = value
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
303
305
|
if attributes.key?(:'dry_run')
|
|
304
306
|
self.dry_run = attributes[:'dry_run']
|
|
305
307
|
end
|
|
@@ -477,9 +479,9 @@ module Authentik::Api
|
|
|
477
479
|
compatibility_mode == o.compatibility_mode &&
|
|
478
480
|
service_provider_config_cache_timeout == o.service_provider_config_cache_timeout &&
|
|
479
481
|
exclude_users_service_account == o.exclude_users_service_account &&
|
|
480
|
-
filter_group == o.filter_group &&
|
|
481
482
|
sync_page_size == o.sync_page_size &&
|
|
482
483
|
sync_page_timeout == o.sync_page_timeout &&
|
|
484
|
+
group_filters == o.group_filters &&
|
|
483
485
|
dry_run == o.dry_run
|
|
484
486
|
end
|
|
485
487
|
|
|
@@ -492,7 +494,7 @@ module Authentik::Api
|
|
|
492
494
|
# Calculates hash code according to all attributes.
|
|
493
495
|
# @return [Integer] Hash code
|
|
494
496
|
def hash
|
|
495
|
-
[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,
|
|
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
|
|
496
498
|
end
|
|
497
499
|
|
|
498
500
|
# Builds the object from hash
|
|
@@ -41,14 +41,15 @@ module Authentik::Api
|
|
|
41
41
|
|
|
42
42
|
attr_accessor :exclude_users_service_account
|
|
43
43
|
|
|
44
|
-
attr_accessor :filter_group
|
|
45
|
-
|
|
46
44
|
# Controls the number of objects synced in a single task
|
|
47
45
|
attr_accessor :sync_page_size
|
|
48
46
|
|
|
49
47
|
# Timeout for synchronization of a single page
|
|
50
48
|
attr_accessor :sync_page_timeout
|
|
51
49
|
|
|
50
|
+
# Group filters used to define sync-scope for groups.
|
|
51
|
+
attr_accessor :group_filters
|
|
52
|
+
|
|
52
53
|
# When enabled, provider will not modify or create objects in the remote system.
|
|
53
54
|
attr_accessor :dry_run
|
|
54
55
|
|
|
@@ -89,9 +90,9 @@ module Authentik::Api
|
|
|
89
90
|
:'compatibility_mode' => :'compatibility_mode',
|
|
90
91
|
:'service_provider_config_cache_timeout' => :'service_provider_config_cache_timeout',
|
|
91
92
|
:'exclude_users_service_account' => :'exclude_users_service_account',
|
|
92
|
-
:'filter_group' => :'filter_group',
|
|
93
93
|
:'sync_page_size' => :'sync_page_size',
|
|
94
94
|
:'sync_page_timeout' => :'sync_page_timeout',
|
|
95
|
+
:'group_filters' => :'group_filters',
|
|
95
96
|
:'dry_run' => :'dry_run'
|
|
96
97
|
}
|
|
97
98
|
end
|
|
@@ -121,9 +122,9 @@ module Authentik::Api
|
|
|
121
122
|
:'compatibility_mode' => :'CompatibilityModeEnum',
|
|
122
123
|
:'service_provider_config_cache_timeout' => :'String',
|
|
123
124
|
:'exclude_users_service_account' => :'Boolean',
|
|
124
|
-
:'filter_group' => :'String',
|
|
125
125
|
:'sync_page_size' => :'Integer',
|
|
126
126
|
:'sync_page_timeout' => :'String',
|
|
127
|
+
:'group_filters' => :'Array<String>',
|
|
127
128
|
:'dry_run' => :'Boolean'
|
|
128
129
|
}
|
|
129
130
|
end
|
|
@@ -132,7 +133,6 @@ module Authentik::Api
|
|
|
132
133
|
def self.openapi_nullable
|
|
133
134
|
Set.new([
|
|
134
135
|
:'auth_oauth',
|
|
135
|
-
:'filter_group',
|
|
136
136
|
])
|
|
137
137
|
end
|
|
138
138
|
|
|
@@ -210,10 +210,6 @@ module Authentik::Api
|
|
|
210
210
|
self.exclude_users_service_account = attributes[:'exclude_users_service_account']
|
|
211
211
|
end
|
|
212
212
|
|
|
213
|
-
if attributes.key?(:'filter_group')
|
|
214
|
-
self.filter_group = attributes[:'filter_group']
|
|
215
|
-
end
|
|
216
|
-
|
|
217
213
|
if attributes.key?(:'sync_page_size')
|
|
218
214
|
self.sync_page_size = attributes[:'sync_page_size']
|
|
219
215
|
end
|
|
@@ -222,6 +218,12 @@ module Authentik::Api
|
|
|
222
218
|
self.sync_page_timeout = attributes[:'sync_page_timeout']
|
|
223
219
|
end
|
|
224
220
|
|
|
221
|
+
if attributes.key?(:'group_filters')
|
|
222
|
+
if (value = attributes[:'group_filters']).is_a?(Array)
|
|
223
|
+
self.group_filters = value
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
225
227
|
if attributes.key?(:'dry_run')
|
|
226
228
|
self.dry_run = attributes[:'dry_run']
|
|
227
229
|
end
|
|
@@ -373,9 +375,9 @@ module Authentik::Api
|
|
|
373
375
|
compatibility_mode == o.compatibility_mode &&
|
|
374
376
|
service_provider_config_cache_timeout == o.service_provider_config_cache_timeout &&
|
|
375
377
|
exclude_users_service_account == o.exclude_users_service_account &&
|
|
376
|
-
filter_group == o.filter_group &&
|
|
377
378
|
sync_page_size == o.sync_page_size &&
|
|
378
379
|
sync_page_timeout == o.sync_page_timeout &&
|
|
380
|
+
group_filters == o.group_filters &&
|
|
379
381
|
dry_run == o.dry_run
|
|
380
382
|
end
|
|
381
383
|
|
|
@@ -388,7 +390,7 @@ module Authentik::Api
|
|
|
388
390
|
# Calculates hash code according to all attributes.
|
|
389
391
|
# @return [Integer] Hash code
|
|
390
392
|
def hash
|
|
391
|
-
[name, property_mappings, property_mappings_group, url, verify_certificates, token, auth_mode, auth_oauth, auth_oauth_params, compatibility_mode, service_provider_config_cache_timeout, exclude_users_service_account,
|
|
393
|
+
[name, property_mappings, property_mappings_group, 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
|
|
392
394
|
end
|
|
393
395
|
|
|
394
396
|
# Builds the object from hash
|
|
@@ -104,7 +104,7 @@ module Authentik::Api
|
|
|
104
104
|
:'message_id' => :'String',
|
|
105
105
|
:'queue_name' => :'String',
|
|
106
106
|
:'actor_name' => :'String',
|
|
107
|
-
:'state' => :'
|
|
107
|
+
:'state' => :'TaskStateEnum',
|
|
108
108
|
:'mtime' => :'Time',
|
|
109
109
|
:'retries' => :'Integer',
|
|
110
110
|
:'eta' => :'Time',
|
|
@@ -8,7 +8,7 @@ require 'date'
|
|
|
8
8
|
require 'time'
|
|
9
9
|
|
|
10
10
|
module Authentik::Api
|
|
11
|
-
class
|
|
11
|
+
class TaskStateEnum
|
|
12
12
|
QUEUED = "queued".freeze
|
|
13
13
|
CONSUMED = "consumed".freeze
|
|
14
14
|
PREPROCESS = "preprocess".freeze
|
|
@@ -32,8 +32,8 @@ module Authentik::Api
|
|
|
32
32
|
# @param [String] The enum value in the form of the string
|
|
33
33
|
# @return [String] The enum value
|
|
34
34
|
def build_from_hash(value)
|
|
35
|
-
return value if
|
|
36
|
-
raise "Invalid ENUM value #{value} for class #
|
|
35
|
+
return value if TaskStateEnum.all_vars.include?(value)
|
|
36
|
+
raise "Invalid ENUM value #{value} for class #TaskStateEnum"
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|