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,353 @@
|
|
|
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
|
+
# Mixin to validate that a valid enterprise license exists before allowing to save the object
|
|
12
|
+
class PatchedLifecycleRuleRequest < ApiModelBase
|
|
13
|
+
attr_accessor :name
|
|
14
|
+
|
|
15
|
+
attr_accessor :content_type
|
|
16
|
+
|
|
17
|
+
attr_accessor :obj_id
|
|
18
|
+
|
|
19
|
+
attr_accessor :interval
|
|
20
|
+
|
|
21
|
+
attr_accessor :grace_period
|
|
22
|
+
|
|
23
|
+
attr_accessor :reviewer_groups
|
|
24
|
+
|
|
25
|
+
attr_accessor :min_reviewers
|
|
26
|
+
|
|
27
|
+
attr_accessor :min_reviewers_is_per_group
|
|
28
|
+
|
|
29
|
+
attr_accessor :reviewers
|
|
30
|
+
|
|
31
|
+
# Select which transports should be used to notify the reviewers. If none are selected, the notification will only be shown in the authentik UI.
|
|
32
|
+
attr_accessor :notification_transports
|
|
33
|
+
|
|
34
|
+
class EnumAttributeValidator
|
|
35
|
+
attr_reader :datatype
|
|
36
|
+
attr_reader :allowable_values
|
|
37
|
+
|
|
38
|
+
def initialize(datatype, allowable_values)
|
|
39
|
+
@allowable_values = allowable_values.map do |value|
|
|
40
|
+
case datatype.to_s
|
|
41
|
+
when /Integer/i
|
|
42
|
+
value.to_i
|
|
43
|
+
when /Float/i
|
|
44
|
+
value.to_f
|
|
45
|
+
else
|
|
46
|
+
value
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def valid?(value)
|
|
52
|
+
!value || allowable_values.include?(value)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
|
+
def self.attribute_map
|
|
58
|
+
{
|
|
59
|
+
:'name' => :'name',
|
|
60
|
+
:'content_type' => :'content_type',
|
|
61
|
+
:'obj_id' => :'object_id',
|
|
62
|
+
:'interval' => :'interval',
|
|
63
|
+
:'grace_period' => :'grace_period',
|
|
64
|
+
:'reviewer_groups' => :'reviewer_groups',
|
|
65
|
+
:'min_reviewers' => :'min_reviewers',
|
|
66
|
+
:'min_reviewers_is_per_group' => :'min_reviewers_is_per_group',
|
|
67
|
+
:'reviewers' => :'reviewers',
|
|
68
|
+
:'notification_transports' => :'notification_transports'
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Returns attribute mapping this model knows about
|
|
73
|
+
def self.acceptable_attribute_map
|
|
74
|
+
attribute_map
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns all the JSON keys this model knows about
|
|
78
|
+
def self.acceptable_attributes
|
|
79
|
+
acceptable_attribute_map.values
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Attribute type mapping.
|
|
83
|
+
def self.openapi_types
|
|
84
|
+
{
|
|
85
|
+
:'name' => :'String',
|
|
86
|
+
:'content_type' => :'ContentTypeEnum',
|
|
87
|
+
:'obj_id' => :'String',
|
|
88
|
+
:'interval' => :'String',
|
|
89
|
+
:'grace_period' => :'String',
|
|
90
|
+
:'reviewer_groups' => :'Array<String>',
|
|
91
|
+
:'min_reviewers' => :'Integer',
|
|
92
|
+
:'min_reviewers_is_per_group' => :'Boolean',
|
|
93
|
+
:'reviewers' => :'Array<String>',
|
|
94
|
+
:'notification_transports' => :'Array<String>'
|
|
95
|
+
}
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# List of attributes with nullable: true
|
|
99
|
+
def self.openapi_nullable
|
|
100
|
+
Set.new([
|
|
101
|
+
:'obj_id',
|
|
102
|
+
])
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Initializes the object
|
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
107
|
+
def initialize(attributes = {})
|
|
108
|
+
if (!attributes.is_a?(Hash))
|
|
109
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::PatchedLifecycleRuleRequest` initialize method"
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
113
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
114
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
115
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
116
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::PatchedLifecycleRuleRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
117
|
+
end
|
|
118
|
+
h[k.to_sym] = v
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'name')
|
|
122
|
+
self.name = attributes[:'name']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'content_type')
|
|
126
|
+
self.content_type = attributes[:'content_type']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'obj_id')
|
|
130
|
+
self.obj_id = attributes[:'obj_id']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'interval')
|
|
134
|
+
self.interval = attributes[:'interval']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'grace_period')
|
|
138
|
+
self.grace_period = attributes[:'grace_period']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'reviewer_groups')
|
|
142
|
+
if (value = attributes[:'reviewer_groups']).is_a?(Array)
|
|
143
|
+
self.reviewer_groups = value
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'min_reviewers')
|
|
148
|
+
self.min_reviewers = attributes[:'min_reviewers']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'min_reviewers_is_per_group')
|
|
152
|
+
self.min_reviewers_is_per_group = attributes[:'min_reviewers_is_per_group']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'reviewers')
|
|
156
|
+
if (value = attributes[:'reviewers']).is_a?(Array)
|
|
157
|
+
self.reviewers = value
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'notification_transports')
|
|
162
|
+
if (value = attributes[:'notification_transports']).is_a?(Array)
|
|
163
|
+
self.notification_transports = value
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
169
|
+
# @return Array for valid properties with the reasons
|
|
170
|
+
def list_invalid_properties
|
|
171
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
172
|
+
invalid_properties = Array.new
|
|
173
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
174
|
+
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if !@obj_id.nil? && @obj_id.to_s.length < 1
|
|
178
|
+
invalid_properties.push('invalid value for "obj_id", the character length must be greater than or equal to 1.')
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if !@interval.nil? && @interval.to_s.length < 1
|
|
182
|
+
invalid_properties.push('invalid value for "interval", the character length must be greater than or equal to 1.')
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if !@grace_period.nil? && @grace_period.to_s.length < 1
|
|
186
|
+
invalid_properties.push('invalid value for "grace_period", the character length must be greater than or equal to 1.')
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if !@min_reviewers.nil? && @min_reviewers > 32767
|
|
190
|
+
invalid_properties.push('invalid value for "min_reviewers", must be smaller than or equal to 32767.')
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if !@min_reviewers.nil? && @min_reviewers < 0
|
|
194
|
+
invalid_properties.push('invalid value for "min_reviewers", must be greater than or equal to 0.')
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
invalid_properties
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Check to see if the all the properties in the model are valid
|
|
201
|
+
# @return true if the model is valid
|
|
202
|
+
def valid?
|
|
203
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
204
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
205
|
+
return false if !@obj_id.nil? && @obj_id.to_s.length < 1
|
|
206
|
+
return false if !@interval.nil? && @interval.to_s.length < 1
|
|
207
|
+
return false if !@grace_period.nil? && @grace_period.to_s.length < 1
|
|
208
|
+
return false if !@min_reviewers.nil? && @min_reviewers > 32767
|
|
209
|
+
return false if !@min_reviewers.nil? && @min_reviewers < 0
|
|
210
|
+
true
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Custom attribute writer method with validation
|
|
214
|
+
# @param [Object] name Value to be assigned
|
|
215
|
+
def name=(name)
|
|
216
|
+
if name.nil?
|
|
217
|
+
fail ArgumentError, 'name cannot be nil'
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if name.to_s.length < 1
|
|
221
|
+
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
@name = name
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Custom attribute writer method with validation
|
|
228
|
+
# @param [Object] obj_id Value to be assigned
|
|
229
|
+
def obj_id=(obj_id)
|
|
230
|
+
if !obj_id.nil? && obj_id.to_s.length < 1
|
|
231
|
+
fail ArgumentError, 'invalid value for "obj_id", the character length must be greater than or equal to 1.'
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
@obj_id = obj_id
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Custom attribute writer method with validation
|
|
238
|
+
# @param [Object] interval Value to be assigned
|
|
239
|
+
def interval=(interval)
|
|
240
|
+
if interval.nil?
|
|
241
|
+
fail ArgumentError, 'interval cannot be nil'
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if interval.to_s.length < 1
|
|
245
|
+
fail ArgumentError, 'invalid value for "interval", the character length must be greater than or equal to 1.'
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
@interval = interval
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Custom attribute writer method with validation
|
|
252
|
+
# @param [Object] grace_period Value to be assigned
|
|
253
|
+
def grace_period=(grace_period)
|
|
254
|
+
if grace_period.nil?
|
|
255
|
+
fail ArgumentError, 'grace_period cannot be nil'
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if grace_period.to_s.length < 1
|
|
259
|
+
fail ArgumentError, 'invalid value for "grace_period", the character length must be greater than or equal to 1.'
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
@grace_period = grace_period
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# Custom attribute writer method with validation
|
|
266
|
+
# @param [Object] min_reviewers Value to be assigned
|
|
267
|
+
def min_reviewers=(min_reviewers)
|
|
268
|
+
if min_reviewers.nil?
|
|
269
|
+
fail ArgumentError, 'min_reviewers cannot be nil'
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if min_reviewers > 32767
|
|
273
|
+
fail ArgumentError, 'invalid value for "min_reviewers", must be smaller than or equal to 32767.'
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if min_reviewers < 0
|
|
277
|
+
fail ArgumentError, 'invalid value for "min_reviewers", must be greater than or equal to 0.'
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
@min_reviewers = min_reviewers
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# Checks equality by comparing each attribute.
|
|
284
|
+
# @param [Object] Object to be compared
|
|
285
|
+
def ==(o)
|
|
286
|
+
return true if self.equal?(o)
|
|
287
|
+
self.class == o.class &&
|
|
288
|
+
name == o.name &&
|
|
289
|
+
content_type == o.content_type &&
|
|
290
|
+
obj_id == o.obj_id &&
|
|
291
|
+
interval == o.interval &&
|
|
292
|
+
grace_period == o.grace_period &&
|
|
293
|
+
reviewer_groups == o.reviewer_groups &&
|
|
294
|
+
min_reviewers == o.min_reviewers &&
|
|
295
|
+
min_reviewers_is_per_group == o.min_reviewers_is_per_group &&
|
|
296
|
+
reviewers == o.reviewers &&
|
|
297
|
+
notification_transports == o.notification_transports
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# @see the `==` method
|
|
301
|
+
# @param [Object] Object to be compared
|
|
302
|
+
def eql?(o)
|
|
303
|
+
self == o
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# Calculates hash code according to all attributes.
|
|
307
|
+
# @return [Integer] Hash code
|
|
308
|
+
def hash
|
|
309
|
+
[name, content_type, obj_id, interval, grace_period, reviewer_groups, min_reviewers, min_reviewers_is_per_group, reviewers, notification_transports].hash
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Builds the object from hash
|
|
313
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
314
|
+
# @return [Object] Returns the model itself
|
|
315
|
+
def self.build_from_hash(attributes)
|
|
316
|
+
return nil unless attributes.is_a?(Hash)
|
|
317
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
318
|
+
transformed_hash = {}
|
|
319
|
+
openapi_types.each_pair do |key, type|
|
|
320
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
321
|
+
transformed_hash["#{key}"] = nil
|
|
322
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
323
|
+
# check to ensure the input is an array given that the attribute
|
|
324
|
+
# is documented as an array but the input is not
|
|
325
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
326
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
327
|
+
end
|
|
328
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
329
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
330
|
+
end
|
|
331
|
+
end
|
|
332
|
+
new(transformed_hash)
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Returns the object in the form of hash
|
|
336
|
+
# @return [Hash] Returns the object in the form of hash
|
|
337
|
+
def to_hash
|
|
338
|
+
hash = {}
|
|
339
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
340
|
+
value = self.send(attr)
|
|
341
|
+
if value.nil?
|
|
342
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
343
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
hash[param] = _to_hash(value)
|
|
347
|
+
end
|
|
348
|
+
hash
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
end
|
|
@@ -68,10 +68,6 @@ module Authentik::Api
|
|
|
68
68
|
def list_invalid_properties
|
|
69
69
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
70
70
|
invalid_properties = Array.new
|
|
71
|
-
if !@name.nil? && @name.to_s.length > 150
|
|
72
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 150.')
|
|
73
|
-
end
|
|
74
|
-
|
|
75
71
|
if !@name.nil? && @name.to_s.length < 1
|
|
76
72
|
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
|
|
77
73
|
end
|
|
@@ -83,7 +79,6 @@ module Authentik::Api
|
|
|
83
79
|
# @return true if the model is valid
|
|
84
80
|
def valid?
|
|
85
81
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
86
|
-
return false if !@name.nil? && @name.to_s.length > 150
|
|
87
82
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
88
83
|
true
|
|
89
84
|
end
|
|
@@ -95,10 +90,6 @@ module Authentik::Api
|
|
|
95
90
|
fail ArgumentError, 'name cannot be nil'
|
|
96
91
|
end
|
|
97
92
|
|
|
98
|
-
if name.to_s.length > 150
|
|
99
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 150.'
|
|
100
|
-
end
|
|
101
|
-
|
|
102
93
|
if name.to_s.length < 1
|
|
103
94
|
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
|
|
104
95
|
end
|
|
@@ -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
|
}
|
|
@@ -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
|
|
|
@@ -206,10 +206,6 @@ module Authentik::Api
|
|
|
206
206
|
self.exclude_users_service_account = attributes[:'exclude_users_service_account']
|
|
207
207
|
end
|
|
208
208
|
|
|
209
|
-
if attributes.key?(:'filter_group')
|
|
210
|
-
self.filter_group = attributes[:'filter_group']
|
|
211
|
-
end
|
|
212
|
-
|
|
213
209
|
if attributes.key?(:'sync_page_size')
|
|
214
210
|
self.sync_page_size = attributes[:'sync_page_size']
|
|
215
211
|
end
|
|
@@ -218,6 +214,12 @@ module Authentik::Api
|
|
|
218
214
|
self.sync_page_timeout = attributes[:'sync_page_timeout']
|
|
219
215
|
end
|
|
220
216
|
|
|
217
|
+
if attributes.key?(:'group_filters')
|
|
218
|
+
if (value = attributes[:'group_filters']).is_a?(Array)
|
|
219
|
+
self.group_filters = value
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
221
223
|
if attributes.key?(:'dry_run')
|
|
222
224
|
self.dry_run = attributes[:'dry_run']
|
|
223
225
|
end
|
|
@@ -359,9 +361,9 @@ module Authentik::Api
|
|
|
359
361
|
compatibility_mode == o.compatibility_mode &&
|
|
360
362
|
service_provider_config_cache_timeout == o.service_provider_config_cache_timeout &&
|
|
361
363
|
exclude_users_service_account == o.exclude_users_service_account &&
|
|
362
|
-
filter_group == o.filter_group &&
|
|
363
364
|
sync_page_size == o.sync_page_size &&
|
|
364
365
|
sync_page_timeout == o.sync_page_timeout &&
|
|
366
|
+
group_filters == o.group_filters &&
|
|
365
367
|
dry_run == o.dry_run
|
|
366
368
|
end
|
|
367
369
|
|
|
@@ -374,7 +376,7 @@ module Authentik::Api
|
|
|
374
376
|
# Calculates hash code according to all attributes.
|
|
375
377
|
# @return [Integer] Hash code
|
|
376
378
|
def hash
|
|
377
|
-
[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,
|
|
379
|
+
[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
|
|
378
380
|
end
|
|
379
381
|
|
|
380
382
|
# Builds the object from hash
|
|
@@ -9,6 +9,8 @@ require 'time'
|
|
|
9
9
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
class PatchedSettingsRequestFlags < ApiModelBase
|
|
12
|
+
attr_accessor :enterprise_audit_include_expanded_diff
|
|
13
|
+
|
|
12
14
|
attr_accessor :policies_buffered_access_view
|
|
13
15
|
|
|
14
16
|
attr_accessor :flows_refresh_others
|
|
@@ -16,6 +18,7 @@ module Authentik::Api
|
|
|
16
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
17
19
|
def self.attribute_map
|
|
18
20
|
{
|
|
21
|
+
:'enterprise_audit_include_expanded_diff' => :'enterprise_audit_include_expanded_diff',
|
|
19
22
|
:'policies_buffered_access_view' => :'policies_buffered_access_view',
|
|
20
23
|
:'flows_refresh_others' => :'flows_refresh_others'
|
|
21
24
|
}
|
|
@@ -34,6 +37,7 @@ module Authentik::Api
|
|
|
34
37
|
# Attribute type mapping.
|
|
35
38
|
def self.openapi_types
|
|
36
39
|
{
|
|
40
|
+
:'enterprise_audit_include_expanded_diff' => :'Boolean',
|
|
37
41
|
:'policies_buffered_access_view' => :'Boolean',
|
|
38
42
|
:'flows_refresh_others' => :'Boolean'
|
|
39
43
|
}
|
|
@@ -61,6 +65,12 @@ module Authentik::Api
|
|
|
61
65
|
h[k.to_sym] = v
|
|
62
66
|
}
|
|
63
67
|
|
|
68
|
+
if attributes.key?(:'enterprise_audit_include_expanded_diff')
|
|
69
|
+
self.enterprise_audit_include_expanded_diff = attributes[:'enterprise_audit_include_expanded_diff']
|
|
70
|
+
else
|
|
71
|
+
self.enterprise_audit_include_expanded_diff = nil
|
|
72
|
+
end
|
|
73
|
+
|
|
64
74
|
if attributes.key?(:'policies_buffered_access_view')
|
|
65
75
|
self.policies_buffered_access_view = attributes[:'policies_buffered_access_view']
|
|
66
76
|
else
|
|
@@ -79,6 +89,10 @@ module Authentik::Api
|
|
|
79
89
|
def list_invalid_properties
|
|
80
90
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
81
91
|
invalid_properties = Array.new
|
|
92
|
+
if @enterprise_audit_include_expanded_diff.nil?
|
|
93
|
+
invalid_properties.push('invalid value for "enterprise_audit_include_expanded_diff", enterprise_audit_include_expanded_diff cannot be nil.')
|
|
94
|
+
end
|
|
95
|
+
|
|
82
96
|
if @policies_buffered_access_view.nil?
|
|
83
97
|
invalid_properties.push('invalid value for "policies_buffered_access_view", policies_buffered_access_view cannot be nil.')
|
|
84
98
|
end
|
|
@@ -94,11 +108,22 @@ module Authentik::Api
|
|
|
94
108
|
# @return true if the model is valid
|
|
95
109
|
def valid?
|
|
96
110
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
111
|
+
return false if @enterprise_audit_include_expanded_diff.nil?
|
|
97
112
|
return false if @policies_buffered_access_view.nil?
|
|
98
113
|
return false if @flows_refresh_others.nil?
|
|
99
114
|
true
|
|
100
115
|
end
|
|
101
116
|
|
|
117
|
+
# Custom attribute writer method with validation
|
|
118
|
+
# @param [Object] enterprise_audit_include_expanded_diff Value to be assigned
|
|
119
|
+
def enterprise_audit_include_expanded_diff=(enterprise_audit_include_expanded_diff)
|
|
120
|
+
if enterprise_audit_include_expanded_diff.nil?
|
|
121
|
+
fail ArgumentError, 'enterprise_audit_include_expanded_diff cannot be nil'
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
@enterprise_audit_include_expanded_diff = enterprise_audit_include_expanded_diff
|
|
125
|
+
end
|
|
126
|
+
|
|
102
127
|
# Custom attribute writer method with validation
|
|
103
128
|
# @param [Object] policies_buffered_access_view Value to be assigned
|
|
104
129
|
def policies_buffered_access_view=(policies_buffered_access_view)
|
|
@@ -124,6 +149,7 @@ module Authentik::Api
|
|
|
124
149
|
def ==(o)
|
|
125
150
|
return true if self.equal?(o)
|
|
126
151
|
self.class == o.class &&
|
|
152
|
+
enterprise_audit_include_expanded_diff == o.enterprise_audit_include_expanded_diff &&
|
|
127
153
|
policies_buffered_access_view == o.policies_buffered_access_view &&
|
|
128
154
|
flows_refresh_others == o.flows_refresh_others
|
|
129
155
|
end
|
|
@@ -137,7 +163,7 @@ module Authentik::Api
|
|
|
137
163
|
# Calculates hash code according to all attributes.
|
|
138
164
|
# @return [Integer] Hash code
|
|
139
165
|
def hash
|
|
140
|
-
[policies_buffered_access_view, flows_refresh_others].hash
|
|
166
|
+
[enterprise_audit_include_expanded_diff, policies_buffered_access_view, flows_refresh_others].hash
|
|
141
167
|
end
|
|
142
168
|
|
|
143
169
|
# Builds the object from hash
|