authentik-api 2026.2.7 → 2026.5.0.rc1
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.md +3 -3
- data/README_API.md +67 -15
- data/lib/authentik/api/api/admin_api.rb +4 -12
- data/lib/authentik/api/api/core_api.rb +143 -18
- data/lib/authentik/api/api/crypto_api.rb +2 -6
- data/lib/authentik/api/api/endpoints_api.rb +1577 -656
- data/lib/authentik/api/api/events_api.rb +121 -38
- data/lib/authentik/api/api/flows_api.rb +8 -90
- data/lib/authentik/api/api/lifecycle_api.rb +22 -13
- data/lib/authentik/api/api/managed_api.rb +73 -0
- data/lib/authentik/api/api/policies_api.rb +5 -6
- data/lib/authentik/api/api/providers_api.rb +46 -108
- data/lib/authentik/api/api/rbac_api.rb +0 -5
- data/lib/authentik/api/api/schema_api.rb +4 -12
- data/lib/authentik/api/api/sources_api.rb +35 -96
- data/lib/authentik/api/api/ssf_api.rb +63 -6
- data/lib/authentik/api/api/stages_api.rb +581 -102
- data/lib/authentik/api/api/tasks_api.rb +5 -13
- data/lib/authentik/api/models/account_lockdown_stage.rb +372 -0
- data/lib/authentik/api/models/account_lockdown_stage_request.rb +219 -0
- data/lib/authentik/api/models/app_enum.rb +3 -2
- data/lib/authentik/api/models/apple_independent_secure_enclave.rb +246 -0
- data/lib/authentik/api/models/apple_independent_secure_enclave_request.rb +273 -0
- data/lib/authentik/api/models/application.rb +14 -4
- data/lib/authentik/api/models/application_request.rb +14 -4
- data/lib/authentik/api/models/authenticated_session_user_agent_device.rb +2 -30
- data/lib/authentik/api/models/authenticated_session_user_agent_os.rb +4 -60
- data/lib/authentik/api/models/authentication_enum.rb +2 -1
- data/lib/authentik/api/models/authenticator_email_stage.rb +10 -1
- data/lib/authentik/api/models/authenticator_sms_stage.rb +36 -1
- data/lib/authentik/api/models/authenticator_validate_stage.rb +51 -4
- data/lib/authentik/api/models/authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/authenticator_web_authn_stage.rb +23 -2
- data/lib/authentik/api/models/authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/{flow_import_result.rb → blueprint_import_result.rb} +4 -4
- data/lib/authentik/api/models/brand.rb +11 -1
- data/lib/authentik/api/models/brand_request.rb +11 -1
- data/lib/authentik/api/models/certificate_key_pair.rb +1 -1
- data/lib/authentik/api/models/certificate_key_pair_key_type_enum.rb +37 -0
- data/lib/authentik/api/models/compatibility_mode_enum.rb +3 -1
- data/lib/authentik/api/models/{consent_stage_mode_enum.rb → consent_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/consent_stage.rb +1 -1
- data/lib/authentik/api/models/consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/country_code_enum.rb +3 -3
- data/lib/authentik/api/models/current_brand.rb +10 -1
- data/lib/authentik/api/models/current_brand_flags.rb +31 -27
- data/lib/authentik/api/models/delivery_method_enum.rb +3 -1
- data/lib/authentik/api/models/event_matcher_policy.rb +15 -5
- data/lib/authentik/api/models/event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/event_stats.rb +187 -0
- data/lib/authentik/api/models/event_volume.rb +1 -1
- data/lib/authentik/api/models/events_requested_enum.rb +7 -1
- data/lib/authentik/api/models/expiring_base_grant_model.rb +1 -1
- data/lib/authentik/api/models/force_binding_enum.rb +34 -0
- data/lib/authentik/api/models/{resident_key_requirement_enum.rb → format_enum.rb} +6 -7
- data/lib/authentik/api/models/geo_ip_policy.rb +1 -1
- data/lib/authentik/api/models/{detailed_country_field.rb → geo_ip_policy_countries_obj_inner.rb} +22 -26
- data/lib/authentik/api/models/google_chrome_connector.rb +326 -0
- data/lib/authentik/api/models/google_chrome_connector_request.rb +214 -0
- data/lib/authentik/api/models/grant_types_enum.rb +39 -0
- data/lib/authentik/api/models/group_kerberos_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/group_ldap_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_o_auth_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_plex_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_saml_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/group_telegram_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/iframe_logout_challenge.rb +1 -1
- data/lib/authentik/api/models/invitation_send_email_request.rb +213 -0
- data/lib/authentik/api/models/kerberos_source.rb +21 -1
- data/lib/authentik/api/models/key_type_enum.rb +3 -3
- data/lib/authentik/api/models/lang_enum.rb +131 -0
- data/lib/authentik/api/models/lifecycle_iteration.rb +30 -86
- data/lib/authentik/api/models/logout_url.rb +209 -0
- data/lib/authentik/api/models/microsoft_entra_provider.rb +27 -1
- data/lib/authentik/api/models/model_enum.rb +3 -1
- data/lib/authentik/api/models/native_logout_challenge.rb +68 -37
- data/lib/authentik/api/models/notification_transport.rb +13 -2
- data/lib/authentik/api/models/notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/o_auth2_provider.rb +12 -1
- data/lib/authentik/api/models/o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/operating_system.rb +0 -17
- data/lib/authentik/api/models/operating_system_request.rb +2 -9
- data/lib/authentik/api/models/paginated_account_lockdown_stage_list.rb +214 -0
- data/lib/authentik/api/models/paginated_apple_independent_secure_enclave_list.rb +214 -0
- data/lib/authentik/api/models/paginated_extra_role_object_permission_list.rb +32 -4
- data/lib/authentik/api/models/paginated_google_chrome_connector_list.rb +214 -0
- data/lib/authentik/api/models/patched_account_lockdown_stage_request.rb +212 -0
- data/lib/authentik/api/models/patched_apple_independent_secure_enclave_request.rb +235 -0
- data/lib/authentik/api/models/patched_application_request.rb +14 -4
- data/lib/authentik/api/models/patched_authenticator_validate_stage_request.rb +51 -4
- data/lib/authentik/api/models/patched_authenticator_web_authn_stage_request.rb +23 -2
- data/lib/authentik/api/models/patched_brand_request.rb +11 -1
- data/lib/authentik/api/models/patched_consent_stage_request.rb +1 -1
- data/lib/authentik/api/models/patched_event_matcher_policy_request.rb +30 -5
- data/lib/authentik/api/models/patched_google_chrome_connector_request.rb +190 -0
- data/lib/authentik/api/models/patched_group_kerberos_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_ldap_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_o_auth_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_plex_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_saml_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_group_telegram_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_notification_transport_request.rb +13 -2
- data/lib/authentik/api/models/patched_o_auth2_provider_request.rb +12 -1
- data/lib/authentik/api/models/patched_saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/patched_saml_source_request.rb +11 -1
- data/lib/authentik/api/models/patched_settings_request_flags.rb +31 -27
- data/lib/authentik/api/models/patched_ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/patched_user_kerberos_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_ldap_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_o_auth_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_plex_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_saml_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/patched_user_telegram_source_connection_request.rb +10 -1
- data/lib/authentik/api/models/prompt_type_enum.rb +4 -1
- data/lib/authentik/api/models/provider_type_enum.rb +2 -2
- data/lib/authentik/api/models/redirect_challenge.rb +4 -15
- data/lib/authentik/api/models/redirect_uri.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_request.rb +13 -4
- data/lib/authentik/api/models/redirect_uri_type_enum.rb +34 -0
- data/lib/authentik/api/models/related_rule.rb +250 -0
- data/lib/authentik/api/models/saml_provider.rb +98 -8
- data/lib/authentik/api/models/saml_provider_request.rb +17 -27
- data/lib/authentik/api/models/saml_source.rb +11 -1
- data/lib/authentik/api/models/saml_source_request.rb +11 -1
- data/lib/authentik/api/models/scim_provider.rb +11 -1
- data/lib/authentik/api/models/ssf_provider.rb +41 -4
- data/lib/authentik/api/models/ssf_provider_request.rb +13 -4
- data/lib/authentik/api/models/ssf_stream.rb +10 -1
- data/lib/authentik/api/models/ssf_stream_status_enum.rb +36 -0
- data/lib/authentik/api/models/task.rb +1 -1
- data/lib/authentik/api/models/{task_state_enum.rb → task_status_enum.rb} +3 -3
- data/lib/authentik/api/models/token_model.rb +1 -1
- data/lib/authentik/api/models/{notification_transport_mode_enum.rb → transport_mode_enum.rb} +3 -3
- data/lib/authentik/api/models/usage_enum.rb +33 -0
- data/lib/authentik/api/models/user_account_lockdown_request.rb +144 -0
- data/lib/authentik/api/models/user_kerberos_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_ldap_source_connection.rb +30 -4
- data/lib/authentik/api/models/user_ldap_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_o_auth_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_password_hash_set_request.rb +168 -0
- data/lib/authentik/api/models/user_plex_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_saml_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/user_telegram_source_connection_request.rb +27 -1
- data/lib/authentik/api/models/vendor_enum.rb +2 -1
- data/lib/authentik/api/models/web_authn_hint_enum.rb +35 -0
- data/lib/authentik/api/version.rb +1 -1
- data/spec/api/admin_api_spec.rb +2 -2
- data/spec/api/core_api_spec.rb +27 -3
- data/spec/api/crypto_api_spec.rb +1 -1
- data/spec/api/endpoints_api_spec.rb +167 -0
- data/spec/api/events_api_spec.rb +33 -7
- data/spec/api/flows_api_spec.rb +4 -16
- data/spec/api/lifecycle_api_spec.rb +6 -3
- data/spec/api/managed_api_spec.rb +13 -0
- data/spec/api/policies_api_spec.rb +2 -1
- data/spec/api/providers_api_spec.rb +21 -19
- data/spec/api/schema_api_spec.rb +2 -2
- data/spec/api/sources_api_spec.rb +17 -16
- data/spec/api/ssf_api_spec.rb +12 -1
- data/spec/api/stages_api_spec.rb +117 -18
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/models/account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/account_lockdown_stage_spec.rb +96 -0
- data/spec/models/apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/apple_independent_secure_enclave_spec.rb +54 -0
- data/spec/models/application_request_spec.rb +6 -0
- data/spec/models/application_spec.rb +6 -0
- data/spec/models/authenticator_email_stage_spec.rb +6 -0
- data/spec/models/authenticator_sms_stage_spec.rb +12 -0
- data/spec/models/authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/authenticator_validate_stage_spec.rb +30 -0
- data/spec/models/authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/authenticator_web_authn_stage_spec.rb +12 -0
- data/spec/models/{flow_import_result_spec.rb → blueprint_import_result_spec.rb} +6 -6
- data/spec/models/brand_request_spec.rb +6 -0
- data/spec/models/brand_spec.rb +6 -0
- data/spec/models/{notification_transport_mode_enum_spec.rb → certificate_key_pair_key_type_enum_spec.rb} +6 -6
- data/spec/models/{consent_stage_mode_enum_spec.rb → consent_mode_enum_spec.rb} +6 -6
- data/spec/models/current_brand_flags_spec.rb +2 -2
- data/spec/models/current_brand_spec.rb +6 -0
- data/spec/models/event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/event_matcher_policy_spec.rb +6 -0
- data/spec/models/event_stats_spec.rb +36 -0
- data/spec/models/force_binding_enum_spec.rb +24 -0
- data/spec/models/format_enum_spec.rb +24 -0
- data/spec/models/{detailed_country_field_spec.rb → geo_ip_policy_countries_obj_inner_spec.rb} +6 -6
- data/spec/models/google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/google_chrome_connector_spec.rb +78 -0
- data/spec/models/grant_types_enum_spec.rb +24 -0
- data/spec/models/group_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/group_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/group_ldap_source_connection_spec.rb +6 -0
- data/spec/models/group_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/group_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/group_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/group_source_connection_request_spec.rb +6 -0
- data/spec/models/group_telegram_source_connection_request_spec.rb +6 -0
- data/spec/models/invitation_send_email_request_spec.rb +48 -0
- data/spec/models/kerberos_source_spec.rb +12 -0
- data/spec/models/lang_enum_spec.rb +24 -0
- data/spec/models/lifecycle_iteration_spec.rb +2 -14
- data/spec/models/logout_url_spec.rb +60 -0
- data/spec/models/microsoft_entra_provider_spec.rb +6 -0
- data/spec/models/native_logout_challenge_spec.rb +13 -7
- data/spec/models/notification_transport_request_spec.rb +6 -0
- data/spec/models/notification_transport_spec.rb +6 -0
- data/spec/models/o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/o_auth2_provider_spec.rb +6 -0
- data/spec/models/paginated_account_lockdown_stage_list_spec.rb +42 -0
- data/spec/models/paginated_apple_independent_secure_enclave_list_spec.rb +42 -0
- data/spec/models/paginated_extra_role_object_permission_list_spec.rb +6 -0
- data/spec/models/paginated_google_chrome_connector_list_spec.rb +42 -0
- data/spec/models/patched_account_lockdown_stage_request_spec.rb +60 -0
- data/spec/models/patched_apple_independent_secure_enclave_request_spec.rb +54 -0
- data/spec/models/patched_application_request_spec.rb +6 -0
- data/spec/models/patched_authenticator_validate_stage_request_spec.rb +30 -0
- data/spec/models/patched_authenticator_web_authn_stage_request_spec.rb +12 -0
- data/spec/models/patched_brand_request_spec.rb +6 -0
- data/spec/models/patched_event_matcher_policy_request_spec.rb +6 -0
- data/spec/models/patched_google_chrome_connector_request_spec.rb +48 -0
- data/spec/models/patched_group_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_group_telegram_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_notification_transport_request_spec.rb +6 -0
- data/spec/models/patched_o_auth2_provider_request_spec.rb +6 -0
- data/spec/models/patched_saml_provider_request_spec.rb +7 -1
- data/spec/models/patched_saml_source_request_spec.rb +6 -0
- data/spec/models/patched_settings_request_flags_spec.rb +2 -2
- data/spec/models/patched_ssf_provider_request_spec.rb +6 -0
- data/spec/models/patched_user_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_source_connection_request_spec.rb +6 -0
- data/spec/models/patched_user_telegram_source_connection_request_spec.rb +6 -0
- data/spec/models/redirect_challenge_spec.rb +0 -6
- data/spec/models/redirect_uri_request_spec.rb +6 -0
- data/spec/models/redirect_uri_spec.rb +6 -0
- data/spec/models/redirect_uri_type_enum_spec.rb +24 -0
- data/spec/models/related_rule_spec.rb +54 -0
- data/spec/models/saml_provider_request_spec.rb +7 -1
- data/spec/models/saml_provider_spec.rb +25 -1
- data/spec/models/saml_source_request_spec.rb +6 -0
- data/spec/models/saml_source_spec.rb +6 -0
- data/spec/models/scim_provider_spec.rb +6 -0
- data/spec/models/ssf_provider_request_spec.rb +6 -0
- data/spec/models/ssf_provider_spec.rb +12 -0
- data/spec/models/ssf_stream_spec.rb +6 -0
- data/spec/models/ssf_stream_status_enum_spec.rb +24 -0
- data/spec/models/{task_state_enum_spec.rb → task_status_enum_spec.rb} +6 -6
- data/spec/models/transport_mode_enum_spec.rb +24 -0
- data/spec/models/usage_enum_spec.rb +24 -0
- data/spec/models/user_account_lockdown_request_spec.rb +30 -0
- data/spec/models/user_kerberos_source_connection_request_spec.rb +6 -0
- data/spec/models/user_ldap_source_connection_request_spec.rb +6 -0
- data/spec/models/user_ldap_source_connection_spec.rb +6 -0
- data/spec/models/user_o_auth_source_connection_request_spec.rb +6 -0
- data/spec/models/user_password_hash_set_request_spec.rb +30 -0
- data/spec/models/user_plex_source_connection_request_spec.rb +6 -0
- data/spec/models/user_saml_source_connection_request_spec.rb +6 -0
- data/spec/models/user_source_connection_request_spec.rb +6 -0
- data/spec/models/user_telegram_source_connection_request_spec.rb +6 -0
- data/spec/models/web_authn_hint_enum_spec.rb +24 -0
- data/spec/zeitwerk_spec.rb +34 -0
- metadata +113 -32
- data/spec/models/resident_key_requirement_enum_spec.rb +0 -24
|
@@ -24,6 +24,8 @@ module Authentik::Api
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :last_updated
|
|
26
26
|
|
|
27
|
+
attr_accessor :group_obj
|
|
28
|
+
|
|
27
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
30
|
def self.attribute_map
|
|
29
31
|
{
|
|
@@ -33,7 +35,8 @@ module Authentik::Api
|
|
|
33
35
|
:'source_obj' => :'source_obj',
|
|
34
36
|
:'identifier' => :'identifier',
|
|
35
37
|
:'created' => :'created',
|
|
36
|
-
:'last_updated' => :'last_updated'
|
|
38
|
+
:'last_updated' => :'last_updated',
|
|
39
|
+
:'group_obj' => :'group_obj'
|
|
37
40
|
}
|
|
38
41
|
end
|
|
39
42
|
|
|
@@ -56,7 +59,8 @@ module Authentik::Api
|
|
|
56
59
|
:'source_obj' => :'Source',
|
|
57
60
|
:'identifier' => :'String',
|
|
58
61
|
:'created' => :'Time',
|
|
59
|
-
:'last_updated' => :'Time'
|
|
62
|
+
:'last_updated' => :'Time',
|
|
63
|
+
:'group_obj' => :'PartialGroup'
|
|
60
64
|
}
|
|
61
65
|
end
|
|
62
66
|
|
|
@@ -123,6 +127,12 @@ module Authentik::Api
|
|
|
123
127
|
else
|
|
124
128
|
self.last_updated = nil
|
|
125
129
|
end
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'group_obj')
|
|
132
|
+
self.group_obj = attributes[:'group_obj']
|
|
133
|
+
else
|
|
134
|
+
self.group_obj = nil
|
|
135
|
+
end
|
|
126
136
|
end
|
|
127
137
|
|
|
128
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -158,6 +168,10 @@ module Authentik::Api
|
|
|
158
168
|
invalid_properties.push('invalid value for "last_updated", last_updated cannot be nil.')
|
|
159
169
|
end
|
|
160
170
|
|
|
171
|
+
if @group_obj.nil?
|
|
172
|
+
invalid_properties.push('invalid value for "group_obj", group_obj cannot be nil.')
|
|
173
|
+
end
|
|
174
|
+
|
|
161
175
|
invalid_properties
|
|
162
176
|
end
|
|
163
177
|
|
|
@@ -172,6 +186,7 @@ module Authentik::Api
|
|
|
172
186
|
return false if @identifier.nil?
|
|
173
187
|
return false if @created.nil?
|
|
174
188
|
return false if @last_updated.nil?
|
|
189
|
+
return false if @group_obj.nil?
|
|
175
190
|
true
|
|
176
191
|
end
|
|
177
192
|
|
|
@@ -245,6 +260,16 @@ module Authentik::Api
|
|
|
245
260
|
@last_updated = last_updated
|
|
246
261
|
end
|
|
247
262
|
|
|
263
|
+
# Custom attribute writer method with validation
|
|
264
|
+
# @param [Object] group_obj Value to be assigned
|
|
265
|
+
def group_obj=(group_obj)
|
|
266
|
+
if group_obj.nil?
|
|
267
|
+
fail ArgumentError, 'group_obj cannot be nil'
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
@group_obj = group_obj
|
|
271
|
+
end
|
|
272
|
+
|
|
248
273
|
# Checks equality by comparing each attribute.
|
|
249
274
|
# @param [Object] Object to be compared
|
|
250
275
|
def ==(o)
|
|
@@ -256,7 +281,8 @@ module Authentik::Api
|
|
|
256
281
|
source_obj == o.source_obj &&
|
|
257
282
|
identifier == o.identifier &&
|
|
258
283
|
created == o.created &&
|
|
259
|
-
last_updated == o.last_updated
|
|
284
|
+
last_updated == o.last_updated &&
|
|
285
|
+
group_obj == o.group_obj
|
|
260
286
|
end
|
|
261
287
|
|
|
262
288
|
# @see the `==` method
|
|
@@ -268,7 +294,7 @@ module Authentik::Api
|
|
|
268
294
|
# Calculates hash code according to all attributes.
|
|
269
295
|
# @return [Integer] Hash code
|
|
270
296
|
def hash
|
|
271
|
-
[pk, group, source, source_obj, identifier, created, last_updated].hash
|
|
297
|
+
[pk, group, source, source_obj, identifier, created, last_updated, group_obj].hash
|
|
272
298
|
end
|
|
273
299
|
|
|
274
300
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# Group Source Connection
|
|
12
12
|
class GroupLDAPSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :group
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'group' => :'group',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'group' => :'String',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'group')
|
|
70
|
+
self.group = attributes[:'group']
|
|
71
|
+
else
|
|
72
|
+
self.group = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @group.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "group", group cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @group.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] group Value to be assigned
|
|
125
|
+
def group=(group)
|
|
126
|
+
if group.nil?
|
|
127
|
+
fail ArgumentError, 'group cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@group = group
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
group == o.group &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[group, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# Group Source Connection
|
|
12
12
|
class GroupOAuthSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :group
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'group' => :'group',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'group' => :'String',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'group')
|
|
70
|
+
self.group = attributes[:'group']
|
|
71
|
+
else
|
|
72
|
+
self.group = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @group.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "group", group cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @group.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] group Value to be assigned
|
|
125
|
+
def group=(group)
|
|
126
|
+
if group.nil?
|
|
127
|
+
fail ArgumentError, 'group cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@group = group
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
group == o.group &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[group, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# Group Source Connection
|
|
12
12
|
class GroupPlexSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :group
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'group' => :'group',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'group' => :'String',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'group')
|
|
70
|
+
self.group = attributes[:'group']
|
|
71
|
+
else
|
|
72
|
+
self.group = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @group.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "group", group cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @group.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] group Value to be assigned
|
|
125
|
+
def group=(group)
|
|
126
|
+
if group.nil?
|
|
127
|
+
fail ArgumentError, 'group cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@group = group
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
group == o.group &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[group, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# Group Source Connection
|
|
12
12
|
class GroupSAMLSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :group
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'group' => :'group',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'group' => :'String',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'group')
|
|
70
|
+
self.group = attributes[:'group']
|
|
71
|
+
else
|
|
72
|
+
self.group = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @group.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "group", group cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @group.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] group Value to be assigned
|
|
125
|
+
def group=(group)
|
|
126
|
+
if group.nil?
|
|
127
|
+
fail ArgumentError, 'group cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@group = group
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
group == o.group &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[group, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# Group Source Connection
|
|
12
12
|
class GroupSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :group
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'group' => :'group',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'group' => :'String',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'group')
|
|
70
|
+
self.group = attributes[:'group']
|
|
71
|
+
else
|
|
72
|
+
self.group = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @group.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "group", group cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @group.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] group Value to be assigned
|
|
125
|
+
def group=(group)
|
|
126
|
+
if group.nil?
|
|
127
|
+
fail ArgumentError, 'group cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@group = group
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
group == o.group &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[group, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -10,6 +10,8 @@ require 'time'
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
# Group Source Connection
|
|
12
12
|
class GroupTelegramSourceConnectionRequest < ApiModelBase
|
|
13
|
+
attr_accessor :group
|
|
14
|
+
|
|
13
15
|
attr_accessor :source
|
|
14
16
|
|
|
15
17
|
attr_accessor :identifier
|
|
@@ -17,6 +19,7 @@ module Authentik::Api
|
|
|
17
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
20
|
def self.attribute_map
|
|
19
21
|
{
|
|
22
|
+
:'group' => :'group',
|
|
20
23
|
:'source' => :'source',
|
|
21
24
|
:'identifier' => :'identifier'
|
|
22
25
|
}
|
|
@@ -35,6 +38,7 @@ module Authentik::Api
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'group' => :'String',
|
|
38
42
|
:'source' => :'String',
|
|
39
43
|
:'identifier' => :'String'
|
|
40
44
|
}
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
h[k.to_sym] = v
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
if attributes.key?(:'group')
|
|
70
|
+
self.group = attributes[:'group']
|
|
71
|
+
else
|
|
72
|
+
self.group = nil
|
|
73
|
+
end
|
|
74
|
+
|
|
65
75
|
if attributes.key?(:'source')
|
|
66
76
|
self.source = attributes[:'source']
|
|
67
77
|
else
|
|
@@ -80,6 +90,10 @@ module Authentik::Api
|
|
|
80
90
|
def list_invalid_properties
|
|
81
91
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
92
|
invalid_properties = Array.new
|
|
93
|
+
if @group.nil?
|
|
94
|
+
invalid_properties.push('invalid value for "group", group cannot be nil.')
|
|
95
|
+
end
|
|
96
|
+
|
|
83
97
|
if @source.nil?
|
|
84
98
|
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
|
85
99
|
end
|
|
@@ -99,12 +113,23 @@ module Authentik::Api
|
|
|
99
113
|
# @return true if the model is valid
|
|
100
114
|
def valid?
|
|
101
115
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
return false if @group.nil?
|
|
102
117
|
return false if @source.nil?
|
|
103
118
|
return false if @identifier.nil?
|
|
104
119
|
return false if @identifier.to_s.length < 1
|
|
105
120
|
true
|
|
106
121
|
end
|
|
107
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] group Value to be assigned
|
|
125
|
+
def group=(group)
|
|
126
|
+
if group.nil?
|
|
127
|
+
fail ArgumentError, 'group cannot be nil'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
@group = group
|
|
131
|
+
end
|
|
132
|
+
|
|
108
133
|
# Custom attribute writer method with validation
|
|
109
134
|
# @param [Object] source Value to be assigned
|
|
110
135
|
def source=(source)
|
|
@@ -134,6 +159,7 @@ module Authentik::Api
|
|
|
134
159
|
def ==(o)
|
|
135
160
|
return true if self.equal?(o)
|
|
136
161
|
self.class == o.class &&
|
|
162
|
+
group == o.group &&
|
|
137
163
|
source == o.source &&
|
|
138
164
|
identifier == o.identifier
|
|
139
165
|
end
|
|
@@ -147,7 +173,7 @@ module Authentik::Api
|
|
|
147
173
|
# Calculates hash code according to all attributes.
|
|
148
174
|
# @return [Integer] Hash code
|
|
149
175
|
def hash
|
|
150
|
-
[source, identifier].hash
|
|
176
|
+
[group, source, identifier].hash
|
|
151
177
|
end
|
|
152
178
|
|
|
153
179
|
# Builds the object from hash
|
|
@@ -44,7 +44,7 @@ module Authentik::Api
|
|
|
44
44
|
:'flow_info' => :'ContextualFlowInfo',
|
|
45
45
|
:'component' => :'String',
|
|
46
46
|
:'response_errors' => :'Hash<String, Array<ErrorDetail>>',
|
|
47
|
-
:'logout_urls' => :'Array<
|
|
47
|
+
:'logout_urls' => :'Array<LogoutURL>'
|
|
48
48
|
}
|
|
49
49
|
end
|
|
50
50
|
|