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,512 @@
|
|
|
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
|
+
# WSFederationProvider Serializer
|
|
12
|
+
class WSFederationProviderRequest < ApiModelBase
|
|
13
|
+
attr_accessor :name
|
|
14
|
+
|
|
15
|
+
# Flow used for authentication when the associated application is accessed by an un-authenticated user.
|
|
16
|
+
attr_accessor :authentication_flow
|
|
17
|
+
|
|
18
|
+
# Flow used when authorizing this provider.
|
|
19
|
+
attr_accessor :authorization_flow
|
|
20
|
+
|
|
21
|
+
# Flow used ending the session from a provider.
|
|
22
|
+
attr_accessor :invalidation_flow
|
|
23
|
+
|
|
24
|
+
attr_accessor :property_mappings
|
|
25
|
+
|
|
26
|
+
attr_accessor :reply_url
|
|
27
|
+
|
|
28
|
+
attr_accessor :wtrealm
|
|
29
|
+
|
|
30
|
+
# Assertion valid not before current time + this value (Format: hours=-1;minutes=-2;seconds=-3).
|
|
31
|
+
attr_accessor :assertion_valid_not_before
|
|
32
|
+
|
|
33
|
+
# Assertion not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
|
|
34
|
+
attr_accessor :assertion_valid_not_on_or_after
|
|
35
|
+
|
|
36
|
+
# Session not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
|
|
37
|
+
attr_accessor :session_valid_not_on_or_after
|
|
38
|
+
|
|
39
|
+
# Configure how the NameID value will be created. When left empty, the NameIDPolicy of the incoming request will be considered
|
|
40
|
+
attr_accessor :name_id_mapping
|
|
41
|
+
|
|
42
|
+
# Configure how the AuthnContextClassRef value will be created. When left empty, the AuthnContextClassRef will be set based on which authentication methods the user used to authenticate.
|
|
43
|
+
attr_accessor :authn_context_class_ref_mapping
|
|
44
|
+
|
|
45
|
+
attr_accessor :digest_algorithm
|
|
46
|
+
|
|
47
|
+
attr_accessor :signature_algorithm
|
|
48
|
+
|
|
49
|
+
# Keypair used to sign outgoing Responses going to the Service Provider.
|
|
50
|
+
attr_accessor :signing_kp
|
|
51
|
+
|
|
52
|
+
# When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
|
|
53
|
+
attr_accessor :encryption_kp
|
|
54
|
+
|
|
55
|
+
attr_accessor :sign_assertion
|
|
56
|
+
|
|
57
|
+
attr_accessor :sign_logout_request
|
|
58
|
+
|
|
59
|
+
attr_accessor :default_name_id_policy
|
|
60
|
+
|
|
61
|
+
class EnumAttributeValidator
|
|
62
|
+
attr_reader :datatype
|
|
63
|
+
attr_reader :allowable_values
|
|
64
|
+
|
|
65
|
+
def initialize(datatype, allowable_values)
|
|
66
|
+
@allowable_values = allowable_values.map do |value|
|
|
67
|
+
case datatype.to_s
|
|
68
|
+
when /Integer/i
|
|
69
|
+
value.to_i
|
|
70
|
+
when /Float/i
|
|
71
|
+
value.to_f
|
|
72
|
+
else
|
|
73
|
+
value
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
def valid?(value)
|
|
79
|
+
!value || allowable_values.include?(value)
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
|
+
def self.attribute_map
|
|
85
|
+
{
|
|
86
|
+
:'name' => :'name',
|
|
87
|
+
:'authentication_flow' => :'authentication_flow',
|
|
88
|
+
:'authorization_flow' => :'authorization_flow',
|
|
89
|
+
:'invalidation_flow' => :'invalidation_flow',
|
|
90
|
+
:'property_mappings' => :'property_mappings',
|
|
91
|
+
:'reply_url' => :'reply_url',
|
|
92
|
+
:'wtrealm' => :'wtrealm',
|
|
93
|
+
:'assertion_valid_not_before' => :'assertion_valid_not_before',
|
|
94
|
+
:'assertion_valid_not_on_or_after' => :'assertion_valid_not_on_or_after',
|
|
95
|
+
:'session_valid_not_on_or_after' => :'session_valid_not_on_or_after',
|
|
96
|
+
:'name_id_mapping' => :'name_id_mapping',
|
|
97
|
+
:'authn_context_class_ref_mapping' => :'authn_context_class_ref_mapping',
|
|
98
|
+
:'digest_algorithm' => :'digest_algorithm',
|
|
99
|
+
:'signature_algorithm' => :'signature_algorithm',
|
|
100
|
+
:'signing_kp' => :'signing_kp',
|
|
101
|
+
:'encryption_kp' => :'encryption_kp',
|
|
102
|
+
:'sign_assertion' => :'sign_assertion',
|
|
103
|
+
:'sign_logout_request' => :'sign_logout_request',
|
|
104
|
+
:'default_name_id_policy' => :'default_name_id_policy'
|
|
105
|
+
}
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Returns attribute mapping this model knows about
|
|
109
|
+
def self.acceptable_attribute_map
|
|
110
|
+
attribute_map
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Returns all the JSON keys this model knows about
|
|
114
|
+
def self.acceptable_attributes
|
|
115
|
+
acceptable_attribute_map.values
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Attribute type mapping.
|
|
119
|
+
def self.openapi_types
|
|
120
|
+
{
|
|
121
|
+
:'name' => :'String',
|
|
122
|
+
:'authentication_flow' => :'String',
|
|
123
|
+
:'authorization_flow' => :'String',
|
|
124
|
+
:'invalidation_flow' => :'String',
|
|
125
|
+
:'property_mappings' => :'Array<String>',
|
|
126
|
+
:'reply_url' => :'String',
|
|
127
|
+
:'wtrealm' => :'String',
|
|
128
|
+
:'assertion_valid_not_before' => :'String',
|
|
129
|
+
:'assertion_valid_not_on_or_after' => :'String',
|
|
130
|
+
:'session_valid_not_on_or_after' => :'String',
|
|
131
|
+
:'name_id_mapping' => :'String',
|
|
132
|
+
:'authn_context_class_ref_mapping' => :'String',
|
|
133
|
+
:'digest_algorithm' => :'DigestAlgorithmEnum',
|
|
134
|
+
:'signature_algorithm' => :'SignatureAlgorithmEnum',
|
|
135
|
+
:'signing_kp' => :'String',
|
|
136
|
+
:'encryption_kp' => :'String',
|
|
137
|
+
:'sign_assertion' => :'Boolean',
|
|
138
|
+
:'sign_logout_request' => :'Boolean',
|
|
139
|
+
:'default_name_id_policy' => :'SAMLNameIDPolicyEnum'
|
|
140
|
+
}
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# List of attributes with nullable: true
|
|
144
|
+
def self.openapi_nullable
|
|
145
|
+
Set.new([
|
|
146
|
+
:'authentication_flow',
|
|
147
|
+
:'name_id_mapping',
|
|
148
|
+
:'authn_context_class_ref_mapping',
|
|
149
|
+
:'signing_kp',
|
|
150
|
+
:'encryption_kp',
|
|
151
|
+
])
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Initializes the object
|
|
155
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
156
|
+
def initialize(attributes = {})
|
|
157
|
+
if (!attributes.is_a?(Hash))
|
|
158
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::WSFederationProviderRequest` initialize method"
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
162
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
163
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
164
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
165
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::WSFederationProviderRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
166
|
+
end
|
|
167
|
+
h[k.to_sym] = v
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if attributes.key?(:'name')
|
|
171
|
+
self.name = attributes[:'name']
|
|
172
|
+
else
|
|
173
|
+
self.name = nil
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'authentication_flow')
|
|
177
|
+
self.authentication_flow = attributes[:'authentication_flow']
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'authorization_flow')
|
|
181
|
+
self.authorization_flow = attributes[:'authorization_flow']
|
|
182
|
+
else
|
|
183
|
+
self.authorization_flow = nil
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'invalidation_flow')
|
|
187
|
+
self.invalidation_flow = attributes[:'invalidation_flow']
|
|
188
|
+
else
|
|
189
|
+
self.invalidation_flow = nil
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'property_mappings')
|
|
193
|
+
if (value = attributes[:'property_mappings']).is_a?(Array)
|
|
194
|
+
self.property_mappings = value
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'reply_url')
|
|
199
|
+
self.reply_url = attributes[:'reply_url']
|
|
200
|
+
else
|
|
201
|
+
self.reply_url = nil
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'wtrealm')
|
|
205
|
+
self.wtrealm = attributes[:'wtrealm']
|
|
206
|
+
else
|
|
207
|
+
self.wtrealm = nil
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'assertion_valid_not_before')
|
|
211
|
+
self.assertion_valid_not_before = attributes[:'assertion_valid_not_before']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'assertion_valid_not_on_or_after')
|
|
215
|
+
self.assertion_valid_not_on_or_after = attributes[:'assertion_valid_not_on_or_after']
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'session_valid_not_on_or_after')
|
|
219
|
+
self.session_valid_not_on_or_after = attributes[:'session_valid_not_on_or_after']
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.key?(:'name_id_mapping')
|
|
223
|
+
self.name_id_mapping = attributes[:'name_id_mapping']
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'authn_context_class_ref_mapping')
|
|
227
|
+
self.authn_context_class_ref_mapping = attributes[:'authn_context_class_ref_mapping']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'digest_algorithm')
|
|
231
|
+
self.digest_algorithm = attributes[:'digest_algorithm']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'signature_algorithm')
|
|
235
|
+
self.signature_algorithm = attributes[:'signature_algorithm']
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'signing_kp')
|
|
239
|
+
self.signing_kp = attributes[:'signing_kp']
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'encryption_kp')
|
|
243
|
+
self.encryption_kp = attributes[:'encryption_kp']
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'sign_assertion')
|
|
247
|
+
self.sign_assertion = attributes[:'sign_assertion']
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
if attributes.key?(:'sign_logout_request')
|
|
251
|
+
self.sign_logout_request = attributes[:'sign_logout_request']
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
if attributes.key?(:'default_name_id_policy')
|
|
255
|
+
self.default_name_id_policy = attributes[:'default_name_id_policy']
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
260
|
+
# @return Array for valid properties with the reasons
|
|
261
|
+
def list_invalid_properties
|
|
262
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
263
|
+
invalid_properties = Array.new
|
|
264
|
+
if @name.nil?
|
|
265
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
if @name.to_s.length < 1
|
|
269
|
+
invalid_properties.push('invalid value for "name", the character length must be greater than or equal to 1.')
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if @authorization_flow.nil?
|
|
273
|
+
invalid_properties.push('invalid value for "authorization_flow", authorization_flow cannot be nil.')
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if @invalidation_flow.nil?
|
|
277
|
+
invalid_properties.push('invalid value for "invalidation_flow", invalidation_flow cannot be nil.')
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if @reply_url.nil?
|
|
281
|
+
invalid_properties.push('invalid value for "reply_url", reply_url cannot be nil.')
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if @reply_url.to_s.length < 1
|
|
285
|
+
invalid_properties.push('invalid value for "reply_url", the character length must be greater than or equal to 1.')
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if @wtrealm.nil?
|
|
289
|
+
invalid_properties.push('invalid value for "wtrealm", wtrealm cannot be nil.')
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if @wtrealm.to_s.length < 1
|
|
293
|
+
invalid_properties.push('invalid value for "wtrealm", the character length must be greater than or equal to 1.')
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if !@assertion_valid_not_before.nil? && @assertion_valid_not_before.to_s.length < 1
|
|
297
|
+
invalid_properties.push('invalid value for "assertion_valid_not_before", the character length must be greater than or equal to 1.')
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if !@assertion_valid_not_on_or_after.nil? && @assertion_valid_not_on_or_after.to_s.length < 1
|
|
301
|
+
invalid_properties.push('invalid value for "assertion_valid_not_on_or_after", the character length must be greater than or equal to 1.')
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if !@session_valid_not_on_or_after.nil? && @session_valid_not_on_or_after.to_s.length < 1
|
|
305
|
+
invalid_properties.push('invalid value for "session_valid_not_on_or_after", the character length must be greater than or equal to 1.')
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
invalid_properties
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Check to see if the all the properties in the model are valid
|
|
312
|
+
# @return true if the model is valid
|
|
313
|
+
def valid?
|
|
314
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
315
|
+
return false if @name.nil?
|
|
316
|
+
return false if @name.to_s.length < 1
|
|
317
|
+
return false if @authorization_flow.nil?
|
|
318
|
+
return false if @invalidation_flow.nil?
|
|
319
|
+
return false if @reply_url.nil?
|
|
320
|
+
return false if @reply_url.to_s.length < 1
|
|
321
|
+
return false if @wtrealm.nil?
|
|
322
|
+
return false if @wtrealm.to_s.length < 1
|
|
323
|
+
return false if !@assertion_valid_not_before.nil? && @assertion_valid_not_before.to_s.length < 1
|
|
324
|
+
return false if !@assertion_valid_not_on_or_after.nil? && @assertion_valid_not_on_or_after.to_s.length < 1
|
|
325
|
+
return false if !@session_valid_not_on_or_after.nil? && @session_valid_not_on_or_after.to_s.length < 1
|
|
326
|
+
true
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Custom attribute writer method with validation
|
|
330
|
+
# @param [Object] name Value to be assigned
|
|
331
|
+
def name=(name)
|
|
332
|
+
if name.nil?
|
|
333
|
+
fail ArgumentError, 'name cannot be nil'
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if name.to_s.length < 1
|
|
337
|
+
fail ArgumentError, 'invalid value for "name", the character length must be greater than or equal to 1.'
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
@name = name
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Custom attribute writer method with validation
|
|
344
|
+
# @param [Object] authorization_flow Value to be assigned
|
|
345
|
+
def authorization_flow=(authorization_flow)
|
|
346
|
+
if authorization_flow.nil?
|
|
347
|
+
fail ArgumentError, 'authorization_flow cannot be nil'
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
@authorization_flow = authorization_flow
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# Custom attribute writer method with validation
|
|
354
|
+
# @param [Object] invalidation_flow Value to be assigned
|
|
355
|
+
def invalidation_flow=(invalidation_flow)
|
|
356
|
+
if invalidation_flow.nil?
|
|
357
|
+
fail ArgumentError, 'invalidation_flow cannot be nil'
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
@invalidation_flow = invalidation_flow
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Custom attribute writer method with validation
|
|
364
|
+
# @param [Object] reply_url Value to be assigned
|
|
365
|
+
def reply_url=(reply_url)
|
|
366
|
+
if reply_url.nil?
|
|
367
|
+
fail ArgumentError, 'reply_url cannot be nil'
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
if reply_url.to_s.length < 1
|
|
371
|
+
fail ArgumentError, 'invalid value for "reply_url", the character length must be greater than or equal to 1.'
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
@reply_url = reply_url
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Custom attribute writer method with validation
|
|
378
|
+
# @param [Object] wtrealm Value to be assigned
|
|
379
|
+
def wtrealm=(wtrealm)
|
|
380
|
+
if wtrealm.nil?
|
|
381
|
+
fail ArgumentError, 'wtrealm cannot be nil'
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
if wtrealm.to_s.length < 1
|
|
385
|
+
fail ArgumentError, 'invalid value for "wtrealm", the character length must be greater than or equal to 1.'
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
@wtrealm = wtrealm
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# Custom attribute writer method with validation
|
|
392
|
+
# @param [Object] assertion_valid_not_before Value to be assigned
|
|
393
|
+
def assertion_valid_not_before=(assertion_valid_not_before)
|
|
394
|
+
if assertion_valid_not_before.nil?
|
|
395
|
+
fail ArgumentError, 'assertion_valid_not_before cannot be nil'
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
if assertion_valid_not_before.to_s.length < 1
|
|
399
|
+
fail ArgumentError, 'invalid value for "assertion_valid_not_before", the character length must be greater than or equal to 1.'
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
@assertion_valid_not_before = assertion_valid_not_before
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# Custom attribute writer method with validation
|
|
406
|
+
# @param [Object] assertion_valid_not_on_or_after Value to be assigned
|
|
407
|
+
def assertion_valid_not_on_or_after=(assertion_valid_not_on_or_after)
|
|
408
|
+
if assertion_valid_not_on_or_after.nil?
|
|
409
|
+
fail ArgumentError, 'assertion_valid_not_on_or_after cannot be nil'
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if assertion_valid_not_on_or_after.to_s.length < 1
|
|
413
|
+
fail ArgumentError, 'invalid value for "assertion_valid_not_on_or_after", the character length must be greater than or equal to 1.'
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
@assertion_valid_not_on_or_after = assertion_valid_not_on_or_after
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Custom attribute writer method with validation
|
|
420
|
+
# @param [Object] session_valid_not_on_or_after Value to be assigned
|
|
421
|
+
def session_valid_not_on_or_after=(session_valid_not_on_or_after)
|
|
422
|
+
if session_valid_not_on_or_after.nil?
|
|
423
|
+
fail ArgumentError, 'session_valid_not_on_or_after cannot be nil'
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
if session_valid_not_on_or_after.to_s.length < 1
|
|
427
|
+
fail ArgumentError, 'invalid value for "session_valid_not_on_or_after", the character length must be greater than or equal to 1.'
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
@session_valid_not_on_or_after = session_valid_not_on_or_after
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# Checks equality by comparing each attribute.
|
|
434
|
+
# @param [Object] Object to be compared
|
|
435
|
+
def ==(o)
|
|
436
|
+
return true if self.equal?(o)
|
|
437
|
+
self.class == o.class &&
|
|
438
|
+
name == o.name &&
|
|
439
|
+
authentication_flow == o.authentication_flow &&
|
|
440
|
+
authorization_flow == o.authorization_flow &&
|
|
441
|
+
invalidation_flow == o.invalidation_flow &&
|
|
442
|
+
property_mappings == o.property_mappings &&
|
|
443
|
+
reply_url == o.reply_url &&
|
|
444
|
+
wtrealm == o.wtrealm &&
|
|
445
|
+
assertion_valid_not_before == o.assertion_valid_not_before &&
|
|
446
|
+
assertion_valid_not_on_or_after == o.assertion_valid_not_on_or_after &&
|
|
447
|
+
session_valid_not_on_or_after == o.session_valid_not_on_or_after &&
|
|
448
|
+
name_id_mapping == o.name_id_mapping &&
|
|
449
|
+
authn_context_class_ref_mapping == o.authn_context_class_ref_mapping &&
|
|
450
|
+
digest_algorithm == o.digest_algorithm &&
|
|
451
|
+
signature_algorithm == o.signature_algorithm &&
|
|
452
|
+
signing_kp == o.signing_kp &&
|
|
453
|
+
encryption_kp == o.encryption_kp &&
|
|
454
|
+
sign_assertion == o.sign_assertion &&
|
|
455
|
+
sign_logout_request == o.sign_logout_request &&
|
|
456
|
+
default_name_id_policy == o.default_name_id_policy
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# @see the `==` method
|
|
460
|
+
# @param [Object] Object to be compared
|
|
461
|
+
def eql?(o)
|
|
462
|
+
self == o
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
# Calculates hash code according to all attributes.
|
|
466
|
+
# @return [Integer] Hash code
|
|
467
|
+
def hash
|
|
468
|
+
[name, authentication_flow, authorization_flow, invalidation_flow, property_mappings, reply_url, wtrealm, assertion_valid_not_before, assertion_valid_not_on_or_after, session_valid_not_on_or_after, name_id_mapping, authn_context_class_ref_mapping, digest_algorithm, signature_algorithm, signing_kp, encryption_kp, sign_assertion, sign_logout_request, default_name_id_policy].hash
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# Builds the object from hash
|
|
472
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
473
|
+
# @return [Object] Returns the model itself
|
|
474
|
+
def self.build_from_hash(attributes)
|
|
475
|
+
return nil unless attributes.is_a?(Hash)
|
|
476
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
477
|
+
transformed_hash = {}
|
|
478
|
+
openapi_types.each_pair do |key, type|
|
|
479
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
480
|
+
transformed_hash["#{key}"] = nil
|
|
481
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
482
|
+
# check to ensure the input is an array given that the attribute
|
|
483
|
+
# is documented as an array but the input is not
|
|
484
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
485
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
486
|
+
end
|
|
487
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
488
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
489
|
+
end
|
|
490
|
+
end
|
|
491
|
+
new(transformed_hash)
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# Returns the object in the form of hash
|
|
495
|
+
# @return [Hash] Returns the object in the form of hash
|
|
496
|
+
def to_hash
|
|
497
|
+
hash = {}
|
|
498
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
499
|
+
value = self.send(attr)
|
|
500
|
+
if value.nil?
|
|
501
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
502
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
hash[param] = _to_hash(value)
|
|
506
|
+
end
|
|
507
|
+
hash
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
end
|
data/spec/api/core_api_spec.rb
CHANGED
|
@@ -214,6 +214,17 @@ describe 'CoreApi' do
|
|
|
214
214
|
end
|
|
215
215
|
end
|
|
216
216
|
|
|
217
|
+
# unit tests for core_authenticated_sessions_bulk_delete_destroy
|
|
218
|
+
# Bulk revoke all sessions for multiple users
|
|
219
|
+
# @param user_pks List of user IDs to revoke all sessions for
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @return [BulkDeleteSessionResponse]
|
|
222
|
+
describe 'core_authenticated_sessions_bulk_delete_destroy test' do
|
|
223
|
+
it 'should work' do
|
|
224
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
217
228
|
# unit tests for core_authenticated_sessions_destroy
|
|
218
229
|
# AuthenticatedSession Viewset
|
|
219
230
|
# @param uuid
|
|
@@ -696,6 +707,10 @@ describe 'CoreApi' do
|
|
|
696
707
|
# @option opts [Array<String>] :groups_by_pk
|
|
697
708
|
# @option opts [Boolean] :is_active
|
|
698
709
|
# @option opts [Boolean] :is_superuser
|
|
710
|
+
# @option opts [Time] :last_login
|
|
711
|
+
# @option opts [Time] :last_login__gt
|
|
712
|
+
# @option opts [Boolean] :last_login__isnull
|
|
713
|
+
# @option opts [Time] :last_login__lt
|
|
699
714
|
# @option opts [Time] :last_updated
|
|
700
715
|
# @option opts [Time] :last_updated__gt
|
|
701
716
|
# @option opts [Time] :last_updated__lt
|
|
@@ -752,6 +767,10 @@ describe 'CoreApi' do
|
|
|
752
767
|
# @option opts [Boolean] :include_roles
|
|
753
768
|
# @option opts [Boolean] :is_active
|
|
754
769
|
# @option opts [Boolean] :is_superuser
|
|
770
|
+
# @option opts [Time] :last_login
|
|
771
|
+
# @option opts [Time] :last_login__gt
|
|
772
|
+
# @option opts [Boolean] :last_login__isnull
|
|
773
|
+
# @option opts [Time] :last_login__lt
|
|
755
774
|
# @option opts [Time] :last_updated
|
|
756
775
|
# @option opts [Time] :last_updated__gt
|
|
757
776
|
# @option opts [Time] :last_updated__lt
|
|
@@ -811,6 +830,7 @@ describe 'CoreApi' do
|
|
|
811
830
|
# Create a temporary link that a user can use to recover their account
|
|
812
831
|
# @param id A unique integer value identifying this User.
|
|
813
832
|
# @param [Hash] opts the optional parameters
|
|
833
|
+
# @option opts [UserRecoveryLinkRequest] :user_recovery_link_request
|
|
814
834
|
# @return [Link]
|
|
815
835
|
describe 'core_users_recovery_create test' do
|
|
816
836
|
it 'should work' do
|
|
@@ -820,8 +840,8 @@ describe 'CoreApi' do
|
|
|
820
840
|
|
|
821
841
|
# unit tests for core_users_recovery_email_create
|
|
822
842
|
# Send an email with a temporary link that a user can use to recover their account
|
|
823
|
-
# @param email_stage
|
|
824
843
|
# @param id A unique integer value identifying this User.
|
|
844
|
+
# @param user_recovery_email_request
|
|
825
845
|
# @param [Hash] opts the optional parameters
|
|
826
846
|
# @return [nil]
|
|
827
847
|
describe 'core_users_recovery_email_create test' do
|
data/spec/api/crypto_api_spec.rb
CHANGED
|
@@ -63,7 +63,6 @@ describe 'CryptoApi' do
|
|
|
63
63
|
# CertificateKeyPair Viewset
|
|
64
64
|
# @param [Hash] opts the optional parameters
|
|
65
65
|
# @option opts [Boolean] :has_key Only return certificate-key pairs with keys
|
|
66
|
-
# @option opts [Boolean] :include_details
|
|
67
66
|
# @option opts [Array<String>] :key_type Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec')
|
|
68
67
|
# @option opts [String] :managed
|
|
69
68
|
# @option opts [String] :name
|
|
@@ -603,4 +603,87 @@ describe 'EndpointsApi' do
|
|
|
603
603
|
end
|
|
604
604
|
end
|
|
605
605
|
|
|
606
|
+
# unit tests for endpoints_fleet_connectors_create
|
|
607
|
+
# FleetConnector Viewset
|
|
608
|
+
# @param fleet_connector_request
|
|
609
|
+
# @param [Hash] opts the optional parameters
|
|
610
|
+
# @return [FleetConnector]
|
|
611
|
+
describe 'endpoints_fleet_connectors_create test' do
|
|
612
|
+
it 'should work' do
|
|
613
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
614
|
+
end
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# unit tests for endpoints_fleet_connectors_destroy
|
|
618
|
+
# FleetConnector Viewset
|
|
619
|
+
# @param connector_uuid A UUID string identifying this Fleet Connector.
|
|
620
|
+
# @param [Hash] opts the optional parameters
|
|
621
|
+
# @return [nil]
|
|
622
|
+
describe 'endpoints_fleet_connectors_destroy test' do
|
|
623
|
+
it 'should work' do
|
|
624
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
625
|
+
end
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
# unit tests for endpoints_fleet_connectors_list
|
|
629
|
+
# FleetConnector Viewset
|
|
630
|
+
# @param [Hash] opts the optional parameters
|
|
631
|
+
# @option opts [String] :name
|
|
632
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
633
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
634
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
635
|
+
# @option opts [String] :search A search term.
|
|
636
|
+
# @return [PaginatedFleetConnectorList]
|
|
637
|
+
describe 'endpoints_fleet_connectors_list test' do
|
|
638
|
+
it 'should work' do
|
|
639
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
640
|
+
end
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
# unit tests for endpoints_fleet_connectors_partial_update
|
|
644
|
+
# FleetConnector Viewset
|
|
645
|
+
# @param connector_uuid A UUID string identifying this Fleet Connector.
|
|
646
|
+
# @param [Hash] opts the optional parameters
|
|
647
|
+
# @option opts [PatchedFleetConnectorRequest] :patched_fleet_connector_request
|
|
648
|
+
# @return [FleetConnector]
|
|
649
|
+
describe 'endpoints_fleet_connectors_partial_update test' do
|
|
650
|
+
it 'should work' do
|
|
651
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
652
|
+
end
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
# unit tests for endpoints_fleet_connectors_retrieve
|
|
656
|
+
# FleetConnector Viewset
|
|
657
|
+
# @param connector_uuid A UUID string identifying this Fleet Connector.
|
|
658
|
+
# @param [Hash] opts the optional parameters
|
|
659
|
+
# @return [FleetConnector]
|
|
660
|
+
describe 'endpoints_fleet_connectors_retrieve test' do
|
|
661
|
+
it 'should work' do
|
|
662
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
663
|
+
end
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
# unit tests for endpoints_fleet_connectors_update
|
|
667
|
+
# FleetConnector Viewset
|
|
668
|
+
# @param connector_uuid A UUID string identifying this Fleet Connector.
|
|
669
|
+
# @param fleet_connector_request
|
|
670
|
+
# @param [Hash] opts the optional parameters
|
|
671
|
+
# @return [FleetConnector]
|
|
672
|
+
describe 'endpoints_fleet_connectors_update test' do
|
|
673
|
+
it 'should work' do
|
|
674
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
675
|
+
end
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
# unit tests for endpoints_fleet_connectors_used_by_list
|
|
679
|
+
# Get a list of all objects that use this object
|
|
680
|
+
# @param connector_uuid A UUID string identifying this Fleet Connector.
|
|
681
|
+
# @param [Hash] opts the optional parameters
|
|
682
|
+
# @return [Array<UsedBy>]
|
|
683
|
+
describe 'endpoints_fleet_connectors_used_by_list test' do
|
|
684
|
+
it 'should work' do
|
|
685
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
686
|
+
end
|
|
687
|
+
end
|
|
688
|
+
|
|
606
689
|
end
|