authentik-api 2025.12.4 → 2026.2.2.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_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/application.rb +1 -15
- 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 +53 -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/enrollment_token.rb +1 -15
- 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 +20 -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 +53 -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_metadata.rb +1 -15
- 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 +12 -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 +12 -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 +12 -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
|
@@ -576,7 +576,7 @@ module Authentik::Api
|
|
|
576
576
|
fail ArgumentError, "Missing the required parameter 'model' when calling RbacApi.rbac_permissions_assigned_by_roles_list"
|
|
577
577
|
end
|
|
578
578
|
# verify enum value
|
|
579
|
-
allowable_values = ["authentik_blueprints.blueprintinstance", "authentik_brands.brand", "authentik_core.application", "authentik_core.applicationentitlement", "authentik_core.group", "authentik_core.token", "authentik_core.user", "authentik_crypto.certificatekeypair", "authentik_endpoints.deviceaccessgroup", "authentik_endpoints.deviceuserbinding", "authentik_endpoints.endpointstage", "authentik_endpoints_connectors_agent.agentconnector", "authentik_endpoints_connectors_agent.agentdeviceuserbinding", "authentik_endpoints_connectors_agent.enrollmenttoken", "authentik_enterprise.license", "authentik_events.event", "authentik_events.notification", "authentik_events.notificationrule", "authentik_events.notificationtransport", "authentik_events.notificationwebhookmapping", "authentik_flows.flow", "authentik_flows.flowstagebinding", "authentik_outposts.dockerserviceconnection", "authentik_outposts.kubernetesserviceconnection", "authentik_outposts.outpost", "authentik_policies.policybinding", "authentik_policies_dummy.dummypolicy", "authentik_policies_event_matcher.eventmatcherpolicy", "authentik_policies_expiry.passwordexpirypolicy", "authentik_policies_expression.expressionpolicy", "authentik_policies_geoip.geoippolicy", "authentik_policies_password.passwordpolicy", "authentik_policies_reputation.reputationpolicy", "authentik_policies_unique_password.uniquepasswordpolicy", "authentik_providers_google_workspace.googleworkspaceprovider", "authentik_providers_google_workspace.googleworkspaceprovidermapping", "authentik_providers_ldap.ldapprovider", "authentik_providers_microsoft_entra.microsoftentraprovider", "authentik_providers_microsoft_entra.microsoftentraprovidermapping", "authentik_providers_oauth2.oauth2provider", "authentik_providers_oauth2.scopemapping", "authentik_providers_proxy.proxyprovider", "authentik_providers_rac.endpoint", "authentik_providers_rac.racpropertymapping", "authentik_providers_rac.racprovider", "authentik_providers_radius.radiusprovider", "authentik_providers_radius.radiusproviderpropertymapping", "authentik_providers_saml.samlpropertymapping", "authentik_providers_saml.samlprovider", "authentik_providers_scim.scimmapping", "authentik_providers_scim.scimprovider", "authentik_providers_ssf.ssfprovider", "authentik_rbac.initialpermissions", "authentik_rbac.role", "authentik_reports.dataexport", "authentik_sources_kerberos.groupkerberossourceconnection", "authentik_sources_kerberos.kerberossource", "authentik_sources_kerberos.kerberossourcepropertymapping", "authentik_sources_kerberos.userkerberossourceconnection", "authentik_sources_ldap.groupldapsourceconnection", "authentik_sources_ldap.ldapsource", "authentik_sources_ldap.ldapsourcepropertymapping", "authentik_sources_ldap.userldapsourceconnection", "authentik_sources_oauth.groupoauthsourceconnection", "authentik_sources_oauth.oauthsource", "authentik_sources_oauth.oauthsourcepropertymapping", "authentik_sources_oauth.useroauthsourceconnection", "authentik_sources_plex.groupplexsourceconnection", "authentik_sources_plex.plexsource", "authentik_sources_plex.plexsourcepropertymapping", "authentik_sources_plex.userplexsourceconnection", "authentik_sources_saml.groupsamlsourceconnection", "authentik_sources_saml.samlsource", "authentik_sources_saml.samlsourcepropertymapping", "authentik_sources_saml.usersamlsourceconnection", "authentik_sources_scim.scimsource", "authentik_sources_scim.scimsourcepropertymapping", "authentik_sources_telegram.grouptelegramsourceconnection", "authentik_sources_telegram.telegramsource", "authentik_sources_telegram.telegramsourcepropertymapping", "authentik_sources_telegram.usertelegramsourceconnection", "authentik_stages_authenticator_duo.authenticatorduostage", "authentik_stages_authenticator_duo.duodevice", "authentik_stages_authenticator_email.authenticatoremailstage", "authentik_stages_authenticator_email.emaildevice", "authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage", "authentik_stages_authenticator_sms.authenticatorsmsstage", "authentik_stages_authenticator_sms.smsdevice", "authentik_stages_authenticator_static.authenticatorstaticstage", "authentik_stages_authenticator_static.staticdevice", "authentik_stages_authenticator_totp.authenticatortotpstage", "authentik_stages_authenticator_totp.totpdevice", "authentik_stages_authenticator_validate.authenticatorvalidatestage", "authentik_stages_authenticator_webauthn.authenticatorwebauthnstage", "authentik_stages_authenticator_webauthn.webauthndevice", "authentik_stages_captcha.captchastage", "authentik_stages_consent.consentstage", "authentik_stages_deny.denystage", "authentik_stages_dummy.dummystage", "authentik_stages_email.emailstage", "authentik_stages_identification.identificationstage", "authentik_stages_invitation.invitation", "authentik_stages_invitation.invitationstage", "authentik_stages_mtls.mutualtlsstage", "authentik_stages_password.passwordstage", "authentik_stages_prompt.prompt", "authentik_stages_prompt.promptstage", "authentik_stages_redirect.redirectstage", "authentik_stages_source.sourcestage", "authentik_stages_user_delete.userdeletestage", "authentik_stages_user_login.userloginstage", "authentik_stages_user_logout.userlogoutstage", "authentik_stages_user_write.userwritestage", "authentik_tasks_schedules.schedule", "authentik_tenants.domain"]
|
|
579
|
+
allowable_values = ["authentik_blueprints.blueprintinstance", "authentik_brands.brand", "authentik_core.application", "authentik_core.applicationentitlement", "authentik_core.group", "authentik_core.token", "authentik_core.user", "authentik_crypto.certificatekeypair", "authentik_endpoints.deviceaccessgroup", "authentik_endpoints.deviceuserbinding", "authentik_endpoints.endpointstage", "authentik_endpoints_connectors_agent.agentconnector", "authentik_endpoints_connectors_agent.agentdeviceuserbinding", "authentik_endpoints_connectors_agent.enrollmenttoken", "authentik_endpoints_connectors_fleet.fleetconnector", "authentik_enterprise.license", "authentik_events.event", "authentik_events.notification", "authentik_events.notificationrule", "authentik_events.notificationtransport", "authentik_events.notificationwebhookmapping", "authentik_flows.flow", "authentik_flows.flowstagebinding", "authentik_lifecycle.lifecycleiteration", "authentik_lifecycle.lifecyclerule", "authentik_lifecycle.review", "authentik_outposts.dockerserviceconnection", "authentik_outposts.kubernetesserviceconnection", "authentik_outposts.outpost", "authentik_policies.policybinding", "authentik_policies_dummy.dummypolicy", "authentik_policies_event_matcher.eventmatcherpolicy", "authentik_policies_expiry.passwordexpirypolicy", "authentik_policies_expression.expressionpolicy", "authentik_policies_geoip.geoippolicy", "authentik_policies_password.passwordpolicy", "authentik_policies_reputation.reputationpolicy", "authentik_policies_unique_password.uniquepasswordpolicy", "authentik_providers_google_workspace.googleworkspaceprovider", "authentik_providers_google_workspace.googleworkspaceprovidermapping", "authentik_providers_ldap.ldapprovider", "authentik_providers_microsoft_entra.microsoftentraprovider", "authentik_providers_microsoft_entra.microsoftentraprovidermapping", "authentik_providers_oauth2.oauth2provider", "authentik_providers_oauth2.scopemapping", "authentik_providers_proxy.proxyprovider", "authentik_providers_rac.endpoint", "authentik_providers_rac.racpropertymapping", "authentik_providers_rac.racprovider", "authentik_providers_radius.radiusprovider", "authentik_providers_radius.radiusproviderpropertymapping", "authentik_providers_saml.samlpropertymapping", "authentik_providers_saml.samlprovider", "authentik_providers_scim.scimmapping", "authentik_providers_scim.scimprovider", "authentik_providers_ssf.ssfprovider", "authentik_providers_ws_federation.wsfederationprovider", "authentik_rbac.initialpermissions", "authentik_rbac.role", "authentik_reports.dataexport", "authentik_sources_kerberos.groupkerberossourceconnection", "authentik_sources_kerberos.kerberossource", "authentik_sources_kerberos.kerberossourcepropertymapping", "authentik_sources_kerberos.userkerberossourceconnection", "authentik_sources_ldap.groupldapsourceconnection", "authentik_sources_ldap.ldapsource", "authentik_sources_ldap.ldapsourcepropertymapping", "authentik_sources_ldap.userldapsourceconnection", "authentik_sources_oauth.groupoauthsourceconnection", "authentik_sources_oauth.oauthsource", "authentik_sources_oauth.oauthsourcepropertymapping", "authentik_sources_oauth.useroauthsourceconnection", "authentik_sources_plex.groupplexsourceconnection", "authentik_sources_plex.plexsource", "authentik_sources_plex.plexsourcepropertymapping", "authentik_sources_plex.userplexsourceconnection", "authentik_sources_saml.groupsamlsourceconnection", "authentik_sources_saml.samlsource", "authentik_sources_saml.samlsourcepropertymapping", "authentik_sources_saml.usersamlsourceconnection", "authentik_sources_scim.scimsource", "authentik_sources_scim.scimsourcepropertymapping", "authentik_sources_telegram.grouptelegramsourceconnection", "authentik_sources_telegram.telegramsource", "authentik_sources_telegram.telegramsourcepropertymapping", "authentik_sources_telegram.usertelegramsourceconnection", "authentik_stages_authenticator_duo.authenticatorduostage", "authentik_stages_authenticator_duo.duodevice", "authentik_stages_authenticator_email.authenticatoremailstage", "authentik_stages_authenticator_email.emaildevice", "authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage", "authentik_stages_authenticator_sms.authenticatorsmsstage", "authentik_stages_authenticator_sms.smsdevice", "authentik_stages_authenticator_static.authenticatorstaticstage", "authentik_stages_authenticator_static.staticdevice", "authentik_stages_authenticator_totp.authenticatortotpstage", "authentik_stages_authenticator_totp.totpdevice", "authentik_stages_authenticator_validate.authenticatorvalidatestage", "authentik_stages_authenticator_webauthn.authenticatorwebauthnstage", "authentik_stages_authenticator_webauthn.webauthndevice", "authentik_stages_captcha.captchastage", "authentik_stages_consent.consentstage", "authentik_stages_deny.denystage", "authentik_stages_dummy.dummystage", "authentik_stages_email.emailstage", "authentik_stages_identification.identificationstage", "authentik_stages_invitation.invitation", "authentik_stages_invitation.invitationstage", "authentik_stages_mtls.mutualtlsstage", "authentik_stages_password.passwordstage", "authentik_stages_prompt.prompt", "authentik_stages_prompt.promptstage", "authentik_stages_redirect.redirectstage", "authentik_stages_source.sourcestage", "authentik_stages_user_delete.userdeletestage", "authentik_stages_user_login.userloginstage", "authentik_stages_user_logout.userlogoutstage", "authentik_stages_user_write.userwritestage", "authentik_tasks_schedules.schedule", "authentik_tenants.domain"]
|
|
580
580
|
if @api_client.config.client_side_validation && !allowable_values.include?(model)
|
|
581
581
|
fail ArgumentError, "invalid value for \"model\", must be one of #{allowable_values}"
|
|
582
582
|
end
|
|
@@ -704,7 +704,6 @@ module Authentik::Api
|
|
|
704
704
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
705
705
|
# @option opts [String] :role
|
|
706
706
|
# @option opts [String] :search A search term.
|
|
707
|
-
# @option opts [Integer] :user
|
|
708
707
|
# @return [PaginatedPermissionList]
|
|
709
708
|
def rbac_permissions_list(opts = {})
|
|
710
709
|
data, _status_code, _headers = rbac_permissions_list_with_http_info(opts)
|
|
@@ -721,7 +720,6 @@ module Authentik::Api
|
|
|
721
720
|
# @option opts [Integer] :page_size Number of results to return per page.
|
|
722
721
|
# @option opts [String] :role
|
|
723
722
|
# @option opts [String] :search A search term.
|
|
724
|
-
# @option opts [Integer] :user
|
|
725
723
|
# @return [Array<(PaginatedPermissionList, Integer, Hash)>] PaginatedPermissionList data, response status code and response headers
|
|
726
724
|
def rbac_permissions_list_with_http_info(opts = {})
|
|
727
725
|
if @api_client.config.debugging
|
|
@@ -740,7 +738,6 @@ module Authentik::Api
|
|
|
740
738
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
741
739
|
query_params[:'role'] = opts[:'role'] if !opts[:'role'].nil?
|
|
742
740
|
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
|
743
|
-
query_params[:'user'] = opts[:'user'] if !opts[:'user'].nil?
|
|
744
741
|
|
|
745
742
|
# header parameters
|
|
746
743
|
header_params = opts[:header_params] || {}
|
|
@@ -1108,8 +1105,8 @@ module Authentik::Api
|
|
|
1108
1105
|
|
|
1109
1106
|
# Role viewset
|
|
1110
1107
|
# @param [Hash] opts the optional parameters
|
|
1111
|
-
# @option opts [String] :
|
|
1112
|
-
# @option opts [Boolean] :inherited Include inherited roles (requires users or
|
|
1108
|
+
# @option opts [String] :groups
|
|
1109
|
+
# @option opts [Boolean] :inherited Include inherited roles (requires users or groups filter)
|
|
1113
1110
|
# @option opts [Array<String>] :managed
|
|
1114
1111
|
# @option opts [Boolean] :managed__isnull
|
|
1115
1112
|
# @option opts [String] :name
|
|
@@ -1126,8 +1123,8 @@ module Authentik::Api
|
|
|
1126
1123
|
|
|
1127
1124
|
# Role viewset
|
|
1128
1125
|
# @param [Hash] opts the optional parameters
|
|
1129
|
-
# @option opts [String] :
|
|
1130
|
-
# @option opts [Boolean] :inherited Include inherited roles (requires users or
|
|
1126
|
+
# @option opts [String] :groups
|
|
1127
|
+
# @option opts [Boolean] :inherited Include inherited roles (requires users or groups filter)
|
|
1131
1128
|
# @option opts [Array<String>] :managed
|
|
1132
1129
|
# @option opts [Boolean] :managed__isnull
|
|
1133
1130
|
# @option opts [String] :name
|
|
@@ -1146,7 +1143,7 @@ module Authentik::Api
|
|
|
1146
1143
|
|
|
1147
1144
|
# query parameters
|
|
1148
1145
|
query_params = opts[:query_params] || {}
|
|
1149
|
-
query_params[:'
|
|
1146
|
+
query_params[:'groups'] = opts[:'groups'] if !opts[:'groups'].nil?
|
|
1150
1147
|
query_params[:'inherited'] = opts[:'inherited'] if !opts[:'inherited'].nil?
|
|
1151
1148
|
query_params[:'managed'] = @api_client.build_collection_param(opts[:'managed'], :multi) if !opts[:'managed'].nil?
|
|
1152
1149
|
query_params[:'managed__isnull'] = opts[:'managed__isnull'] if !opts[:'managed__isnull'].nil?
|
|
@@ -545,7 +545,7 @@ module Authentik::Api
|
|
|
545
545
|
return_type = opts[:debug_return_type] || 'DuoDeviceEnrollmentStatus'
|
|
546
546
|
|
|
547
547
|
# auth_names
|
|
548
|
-
auth_names = opts[:debug_auth_names] || [
|
|
548
|
+
auth_names = opts[:debug_auth_names] || []
|
|
549
549
|
|
|
550
550
|
new_options = opts.merge(
|
|
551
551
|
:operation => :"StagesApi.stages_authenticator_duo_enrollment_status_create",
|
|
@@ -11,9 +11,11 @@ module Authentik::Api
|
|
|
11
11
|
class AlgEnum
|
|
12
12
|
RSA = "rsa".freeze
|
|
13
13
|
ECDSA = "ecdsa".freeze
|
|
14
|
+
ED25519 = "ed25519".freeze
|
|
15
|
+
ED448 = "ed448".freeze
|
|
14
16
|
|
|
15
17
|
def self.all_vars
|
|
16
|
-
@all_vars ||= [RSA, ECDSA].freeze
|
|
18
|
+
@all_vars ||= [RSA, ECDSA, ED25519, ED448].freeze
|
|
17
19
|
end
|
|
18
20
|
|
|
19
21
|
# Builds the enum from string
|
|
@@ -74,12 +74,15 @@ module Authentik::Api
|
|
|
74
74
|
AUTHENTIK_BLUEPRINTS = "authentik.blueprints".freeze
|
|
75
75
|
AUTHENTIK_ENTERPRISE_AUDIT = "authentik.enterprise.audit".freeze
|
|
76
76
|
AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_AGENT = "authentik.enterprise.endpoints.connectors.agent".freeze
|
|
77
|
+
AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_FLEET = "authentik.enterprise.endpoints.connectors.fleet".freeze
|
|
78
|
+
AUTHENTIK_ENTERPRISE_LIFECYCLE = "authentik.enterprise.lifecycle".freeze
|
|
77
79
|
AUTHENTIK_ENTERPRISE_POLICIES_UNIQUE_PASSWORD = "authentik.enterprise.policies.unique_password".freeze
|
|
78
80
|
AUTHENTIK_ENTERPRISE_PROVIDERS_GOOGLE_WORKSPACE = "authentik.enterprise.providers.google_workspace".freeze
|
|
79
81
|
AUTHENTIK_ENTERPRISE_PROVIDERS_MICROSOFT_ENTRA = "authentik.enterprise.providers.microsoft_entra".freeze
|
|
80
82
|
AUTHENTIK_ENTERPRISE_PROVIDERS_RADIUS = "authentik.enterprise.providers.radius".freeze
|
|
81
83
|
AUTHENTIK_ENTERPRISE_PROVIDERS_SCIM = "authentik.enterprise.providers.scim".freeze
|
|
82
84
|
AUTHENTIK_ENTERPRISE_PROVIDERS_SSF = "authentik.enterprise.providers.ssf".freeze
|
|
85
|
+
AUTHENTIK_ENTERPRISE_PROVIDERS_WS_FEDERATION = "authentik.enterprise.providers.ws_federation".freeze
|
|
83
86
|
AUTHENTIK_ENTERPRISE_REPORTS = "authentik.enterprise.reports".freeze
|
|
84
87
|
AUTHENTIK_ENTERPRISE_SEARCH = "authentik.enterprise.search".freeze
|
|
85
88
|
AUTHENTIK_ENTERPRISE_STAGES_AUTHENTICATOR_ENDPOINT_GDTC = "authentik.enterprise.stages.authenticator_endpoint_gdtc".freeze
|
|
@@ -87,7 +90,7 @@ module Authentik::Api
|
|
|
87
90
|
AUTHENTIK_ENTERPRISE_STAGES_SOURCE = "authentik.enterprise.stages.source".freeze
|
|
88
91
|
|
|
89
92
|
def self.all_vars
|
|
90
|
-
@all_vars ||= [AUTHENTIK_COMMANDS, AUTHENTIK_TENANTS, AUTHENTIK_TASKS, AUTHENTIK_ADMIN, AUTHENTIK_API, AUTHENTIK_CORE, AUTHENTIK_CRYPTO, AUTHENTIK_ENDPOINTS, AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT, AUTHENTIK_ENTERPRISE, AUTHENTIK_EVENTS, AUTHENTIK_ADMIN_FILES, AUTHENTIK_FLOWS, AUTHENTIK_OUTPOSTS, AUTHENTIK_POLICIES_DUMMY, AUTHENTIK_POLICIES_EVENT_MATCHER, AUTHENTIK_POLICIES_EXPIRY, AUTHENTIK_POLICIES_EXPRESSION, AUTHENTIK_POLICIES_GEOIP, AUTHENTIK_POLICIES_PASSWORD, AUTHENTIK_POLICIES_REPUTATION, AUTHENTIK_POLICIES, AUTHENTIK_PROVIDERS_LDAP, AUTHENTIK_PROVIDERS_OAUTH2, AUTHENTIK_PROVIDERS_PROXY, AUTHENTIK_PROVIDERS_RAC, AUTHENTIK_PROVIDERS_RADIUS, AUTHENTIK_PROVIDERS_SAML, AUTHENTIK_PROVIDERS_SCIM, AUTHENTIK_RBAC, AUTHENTIK_RECOVERY, AUTHENTIK_SOURCES_KERBEROS, AUTHENTIK_SOURCES_LDAP, AUTHENTIK_SOURCES_OAUTH, AUTHENTIK_SOURCES_PLEX, AUTHENTIK_SOURCES_SAML, AUTHENTIK_SOURCES_SCIM, AUTHENTIK_SOURCES_TELEGRAM, AUTHENTIK_STAGES_AUTHENTICATOR, AUTHENTIK_STAGES_AUTHENTICATOR_DUO, AUTHENTIK_STAGES_AUTHENTICATOR_EMAIL, AUTHENTIK_STAGES_AUTHENTICATOR_SMS, AUTHENTIK_STAGES_AUTHENTICATOR_STATIC, AUTHENTIK_STAGES_AUTHENTICATOR_TOTP, AUTHENTIK_STAGES_AUTHENTICATOR_VALIDATE, AUTHENTIK_STAGES_AUTHENTICATOR_WEBAUTHN, AUTHENTIK_STAGES_CAPTCHA, AUTHENTIK_STAGES_CONSENT, AUTHENTIK_STAGES_DENY, AUTHENTIK_STAGES_DUMMY, AUTHENTIK_STAGES_EMAIL, AUTHENTIK_STAGES_IDENTIFICATION, AUTHENTIK_STAGES_INVITATION, AUTHENTIK_STAGES_PASSWORD, AUTHENTIK_STAGES_PROMPT, AUTHENTIK_STAGES_REDIRECT, AUTHENTIK_STAGES_USER_DELETE, AUTHENTIK_STAGES_USER_LOGIN, AUTHENTIK_STAGES_USER_LOGOUT, AUTHENTIK_STAGES_USER_WRITE, AUTHENTIK_TASKS_SCHEDULES, AUTHENTIK_BRANDS, AUTHENTIK_BLUEPRINTS, AUTHENTIK_ENTERPRISE_AUDIT, AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_AGENT, AUTHENTIK_ENTERPRISE_POLICIES_UNIQUE_PASSWORD, AUTHENTIK_ENTERPRISE_PROVIDERS_GOOGLE_WORKSPACE, AUTHENTIK_ENTERPRISE_PROVIDERS_MICROSOFT_ENTRA, AUTHENTIK_ENTERPRISE_PROVIDERS_RADIUS, AUTHENTIK_ENTERPRISE_PROVIDERS_SCIM, AUTHENTIK_ENTERPRISE_PROVIDERS_SSF, AUTHENTIK_ENTERPRISE_REPORTS, AUTHENTIK_ENTERPRISE_SEARCH, AUTHENTIK_ENTERPRISE_STAGES_AUTHENTICATOR_ENDPOINT_GDTC, AUTHENTIK_ENTERPRISE_STAGES_MTLS, AUTHENTIK_ENTERPRISE_STAGES_SOURCE].freeze
|
|
93
|
+
@all_vars ||= [AUTHENTIK_COMMANDS, AUTHENTIK_TENANTS, AUTHENTIK_TASKS, AUTHENTIK_ADMIN, AUTHENTIK_API, AUTHENTIK_CORE, AUTHENTIK_CRYPTO, AUTHENTIK_ENDPOINTS, AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT, AUTHENTIK_ENTERPRISE, AUTHENTIK_EVENTS, AUTHENTIK_ADMIN_FILES, AUTHENTIK_FLOWS, AUTHENTIK_OUTPOSTS, AUTHENTIK_POLICIES_DUMMY, AUTHENTIK_POLICIES_EVENT_MATCHER, AUTHENTIK_POLICIES_EXPIRY, AUTHENTIK_POLICIES_EXPRESSION, AUTHENTIK_POLICIES_GEOIP, AUTHENTIK_POLICIES_PASSWORD, AUTHENTIK_POLICIES_REPUTATION, AUTHENTIK_POLICIES, AUTHENTIK_PROVIDERS_LDAP, AUTHENTIK_PROVIDERS_OAUTH2, AUTHENTIK_PROVIDERS_PROXY, AUTHENTIK_PROVIDERS_RAC, AUTHENTIK_PROVIDERS_RADIUS, AUTHENTIK_PROVIDERS_SAML, AUTHENTIK_PROVIDERS_SCIM, AUTHENTIK_RBAC, AUTHENTIK_RECOVERY, AUTHENTIK_SOURCES_KERBEROS, AUTHENTIK_SOURCES_LDAP, AUTHENTIK_SOURCES_OAUTH, AUTHENTIK_SOURCES_PLEX, AUTHENTIK_SOURCES_SAML, AUTHENTIK_SOURCES_SCIM, AUTHENTIK_SOURCES_TELEGRAM, AUTHENTIK_STAGES_AUTHENTICATOR, AUTHENTIK_STAGES_AUTHENTICATOR_DUO, AUTHENTIK_STAGES_AUTHENTICATOR_EMAIL, AUTHENTIK_STAGES_AUTHENTICATOR_SMS, AUTHENTIK_STAGES_AUTHENTICATOR_STATIC, AUTHENTIK_STAGES_AUTHENTICATOR_TOTP, AUTHENTIK_STAGES_AUTHENTICATOR_VALIDATE, AUTHENTIK_STAGES_AUTHENTICATOR_WEBAUTHN, AUTHENTIK_STAGES_CAPTCHA, AUTHENTIK_STAGES_CONSENT, AUTHENTIK_STAGES_DENY, AUTHENTIK_STAGES_DUMMY, AUTHENTIK_STAGES_EMAIL, AUTHENTIK_STAGES_IDENTIFICATION, AUTHENTIK_STAGES_INVITATION, AUTHENTIK_STAGES_PASSWORD, AUTHENTIK_STAGES_PROMPT, AUTHENTIK_STAGES_REDIRECT, AUTHENTIK_STAGES_USER_DELETE, AUTHENTIK_STAGES_USER_LOGIN, AUTHENTIK_STAGES_USER_LOGOUT, AUTHENTIK_STAGES_USER_WRITE, AUTHENTIK_TASKS_SCHEDULES, AUTHENTIK_BRANDS, AUTHENTIK_BLUEPRINTS, AUTHENTIK_ENTERPRISE_AUDIT, AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_AGENT, AUTHENTIK_ENTERPRISE_ENDPOINTS_CONNECTORS_FLEET, AUTHENTIK_ENTERPRISE_LIFECYCLE, AUTHENTIK_ENTERPRISE_POLICIES_UNIQUE_PASSWORD, AUTHENTIK_ENTERPRISE_PROVIDERS_GOOGLE_WORKSPACE, AUTHENTIK_ENTERPRISE_PROVIDERS_MICROSOFT_ENTRA, AUTHENTIK_ENTERPRISE_PROVIDERS_RADIUS, AUTHENTIK_ENTERPRISE_PROVIDERS_SCIM, AUTHENTIK_ENTERPRISE_PROVIDERS_SSF, AUTHENTIK_ENTERPRISE_PROVIDERS_WS_FEDERATION, AUTHENTIK_ENTERPRISE_REPORTS, AUTHENTIK_ENTERPRISE_SEARCH, AUTHENTIK_ENTERPRISE_STAGES_AUTHENTICATOR_ENDPOINT_GDTC, AUTHENTIK_ENTERPRISE_STAGES_MTLS, AUTHENTIK_ENTERPRISE_STAGES_SOURCE].freeze
|
|
91
94
|
end
|
|
92
95
|
|
|
93
96
|
# Builds the enum from string
|
|
@@ -131,6 +131,7 @@ module Authentik::Api
|
|
|
131
131
|
def self.openapi_nullable
|
|
132
132
|
Set.new([
|
|
133
133
|
:'provider',
|
|
134
|
+
:'provider_obj',
|
|
134
135
|
:'launch_url',
|
|
135
136
|
:'meta_icon_url',
|
|
136
137
|
:'meta_icon_themed_urls',
|
|
@@ -264,10 +265,6 @@ module Authentik::Api
|
|
|
264
265
|
invalid_properties.push("invalid value for \"slug\", must conform to the pattern #{pattern}.")
|
|
265
266
|
end
|
|
266
267
|
|
|
267
|
-
if @provider_obj.nil?
|
|
268
|
-
invalid_properties.push('invalid value for "provider_obj", provider_obj cannot be nil.')
|
|
269
|
-
end
|
|
270
|
-
|
|
271
268
|
if @backchannel_providers_obj.nil?
|
|
272
269
|
invalid_properties.push('invalid value for "backchannel_providers_obj", backchannel_providers_obj cannot be nil.')
|
|
273
270
|
end
|
|
@@ -283,7 +280,6 @@ module Authentik::Api
|
|
|
283
280
|
return false if @name.nil?
|
|
284
281
|
return false if @slug.nil?
|
|
285
282
|
return false if @slug !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
286
|
-
return false if @provider_obj.nil?
|
|
287
283
|
return false if @backchannel_providers_obj.nil?
|
|
288
284
|
true
|
|
289
285
|
end
|
|
@@ -323,16 +319,6 @@ module Authentik::Api
|
|
|
323
319
|
@slug = slug
|
|
324
320
|
end
|
|
325
321
|
|
|
326
|
-
# Custom attribute writer method with validation
|
|
327
|
-
# @param [Object] provider_obj Value to be assigned
|
|
328
|
-
def provider_obj=(provider_obj)
|
|
329
|
-
if provider_obj.nil?
|
|
330
|
-
fail ArgumentError, 'provider_obj cannot be nil'
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
@provider_obj = provider_obj
|
|
334
|
-
end
|
|
335
|
-
|
|
336
322
|
# Custom attribute writer method with validation
|
|
337
323
|
# @param [Object] backchannel_providers_obj Value to be assigned
|
|
338
324
|
def backchannel_providers_obj=(backchannel_providers_obj)
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'date'
|
|
8
|
+
require 'time'
|
|
9
|
+
|
|
10
|
+
module Authentik::Api
|
|
11
|
+
class BulkDeleteSessionResponse < ApiModelBase
|
|
12
|
+
attr_accessor :deleted
|
|
13
|
+
|
|
14
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
15
|
+
def self.attribute_map
|
|
16
|
+
{
|
|
17
|
+
:'deleted' => :'deleted'
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# Returns attribute mapping this model knows about
|
|
22
|
+
def self.acceptable_attribute_map
|
|
23
|
+
attribute_map
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Returns all the JSON keys this model knows about
|
|
27
|
+
def self.acceptable_attributes
|
|
28
|
+
acceptable_attribute_map.values
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Attribute type mapping.
|
|
32
|
+
def self.openapi_types
|
|
33
|
+
{
|
|
34
|
+
:'deleted' => :'Integer'
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# List of attributes with nullable: true
|
|
39
|
+
def self.openapi_nullable
|
|
40
|
+
Set.new([
|
|
41
|
+
])
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Initializes the object
|
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
if (!attributes.is_a?(Hash))
|
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Authentik::Api::BulkDeleteSessionResponse` initialize method"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
52
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
54
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Authentik::Api::BulkDeleteSessionResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
56
|
+
end
|
|
57
|
+
h[k.to_sym] = v
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if attributes.key?(:'deleted')
|
|
61
|
+
self.deleted = attributes[:'deleted']
|
|
62
|
+
else
|
|
63
|
+
self.deleted = nil
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
68
|
+
# @return Array for valid properties with the reasons
|
|
69
|
+
def list_invalid_properties
|
|
70
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
71
|
+
invalid_properties = Array.new
|
|
72
|
+
if @deleted.nil?
|
|
73
|
+
invalid_properties.push('invalid value for "deleted", deleted cannot be nil.')
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
invalid_properties
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Check to see if the all the properties in the model are valid
|
|
80
|
+
# @return true if the model is valid
|
|
81
|
+
def valid?
|
|
82
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
83
|
+
return false if @deleted.nil?
|
|
84
|
+
true
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Custom attribute writer method with validation
|
|
88
|
+
# @param [Object] deleted Value to be assigned
|
|
89
|
+
def deleted=(deleted)
|
|
90
|
+
if deleted.nil?
|
|
91
|
+
fail ArgumentError, 'deleted cannot be nil'
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
@deleted = deleted
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def ==(o)
|
|
100
|
+
return true if self.equal?(o)
|
|
101
|
+
self.class == o.class &&
|
|
102
|
+
deleted == o.deleted
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# @see the `==` method
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def eql?(o)
|
|
108
|
+
self == o
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Calculates hash code according to all attributes.
|
|
112
|
+
# @return [Integer] Hash code
|
|
113
|
+
def hash
|
|
114
|
+
[deleted].hash
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Builds the object from hash
|
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
119
|
+
# @return [Object] Returns the model itself
|
|
120
|
+
def self.build_from_hash(attributes)
|
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
|
122
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
123
|
+
transformed_hash = {}
|
|
124
|
+
openapi_types.each_pair do |key, type|
|
|
125
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = nil
|
|
127
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
128
|
+
# check to ensure the input is an array given that the attribute
|
|
129
|
+
# is documented as an array but the input is not
|
|
130
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
131
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
132
|
+
end
|
|
133
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
134
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
new(transformed_hash)
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Returns the object in the form of hash
|
|
141
|
+
# @return [Hash] Returns the object in the form of hash
|
|
142
|
+
def to_hash
|
|
143
|
+
hash = {}
|
|
144
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
145
|
+
value = self.send(attr)
|
|
146
|
+
if value.nil?
|
|
147
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
148
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
hash[param] = _to_hash(value)
|
|
152
|
+
end
|
|
153
|
+
hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
end
|
|
@@ -14,21 +14,22 @@ module Authentik::Api
|
|
|
14
14
|
|
|
15
15
|
attr_accessor :name
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# SHA256 fingerprint of the certificate
|
|
18
18
|
attr_accessor :fingerprint_sha256
|
|
19
19
|
|
|
20
|
-
#
|
|
20
|
+
# SHA1 fingerprint of the certificate
|
|
21
21
|
attr_accessor :fingerprint_sha1
|
|
22
22
|
|
|
23
|
-
#
|
|
23
|
+
# Certificate expiry date
|
|
24
24
|
attr_accessor :cert_expiry
|
|
25
25
|
|
|
26
|
-
#
|
|
26
|
+
# Certificate subject as RFC4514 string
|
|
27
27
|
attr_accessor :cert_subject
|
|
28
28
|
|
|
29
29
|
# Show if this keypair has a private key configured or not
|
|
30
30
|
attr_accessor :private_key_available
|
|
31
31
|
|
|
32
|
+
# Key algorithm type detected from the certificate's public key
|
|
32
33
|
attr_accessor :key_type
|
|
33
34
|
|
|
34
35
|
# Get URL to download certificate
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
This file is automatically generated by: https://openapi-generator.tech.
|
|
3
|
+
Any manual changes will be lost when the OpenAPI scheme changes.
|
|
4
|
+
|
|
5
|
+
=end
|
|
6
|
+
|
|
7
|
+
require 'date'
|
|
8
|
+
require 'time'
|
|
9
|
+
|
|
10
|
+
module Authentik::Api
|
|
11
|
+
class ContentTypeEnum
|
|
12
|
+
AUTHENTIK_CORE_APPLICATION = "authentik_core.application".freeze
|
|
13
|
+
AUTHENTIK_CORE_GROUP = "authentik_core.group".freeze
|
|
14
|
+
AUTHENTIK_RBAC_ROLE = "authentik_rbac.role".freeze
|
|
15
|
+
|
|
16
|
+
def self.all_vars
|
|
17
|
+
@all_vars ||= [AUTHENTIK_CORE_APPLICATION, AUTHENTIK_CORE_GROUP, AUTHENTIK_RBAC_ROLE].freeze
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# Builds the enum from string
|
|
21
|
+
# @param [String] The enum value in the form of the string
|
|
22
|
+
# @return [String] The enum value
|
|
23
|
+
def self.build_from_hash(value)
|
|
24
|
+
new.build_from_hash(value)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Builds the enum from string
|
|
28
|
+
# @param [String] The enum value in the form of the string
|
|
29
|
+
# @return [String] The enum value
|
|
30
|
+
def build_from_hash(value)
|
|
31
|
+
return value if ContentTypeEnum.all_vars.include?(value)
|
|
32
|
+
raise "Invalid ENUM value #{value} for class #ContentTypeEnum"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -14,9 +14,11 @@ module Authentik::Api
|
|
|
14
14
|
CONTENT_RIGHT = "content_right".freeze
|
|
15
15
|
SIDEBAR_LEFT = "sidebar_left".freeze
|
|
16
16
|
SIDEBAR_RIGHT = "sidebar_right".freeze
|
|
17
|
+
SIDEBAR_LEFT_FRAME_BACKGROUND = "sidebar_left_frame_background".freeze
|
|
18
|
+
SIDEBAR_RIGHT_FRAME_BACKGROUND = "sidebar_right_frame_background".freeze
|
|
17
19
|
|
|
18
20
|
def self.all_vars
|
|
19
|
-
@all_vars ||= [STACKED, CONTENT_LEFT, CONTENT_RIGHT, SIDEBAR_LEFT, SIDEBAR_RIGHT].freeze
|
|
21
|
+
@all_vars ||= [STACKED, CONTENT_LEFT, CONTENT_RIGHT, SIDEBAR_LEFT, SIDEBAR_RIGHT, SIDEBAR_LEFT_FRAME_BACKGROUND, SIDEBAR_RIGHT_FRAME_BACKGROUND].freeze
|
|
20
22
|
end
|
|
21
23
|
|
|
22
24
|
# Builds the enum from string
|
|
@@ -9,14 +9,20 @@ require 'time'
|
|
|
9
9
|
|
|
10
10
|
module Authentik::Api
|
|
11
11
|
class CurrentBrandFlags < ApiModelBase
|
|
12
|
+
attr_accessor :enterprise_audit_include_expanded_diff
|
|
13
|
+
|
|
12
14
|
attr_accessor :policies_buffered_access_view
|
|
13
15
|
|
|
16
|
+
attr_accessor :flows_continuous_login
|
|
17
|
+
|
|
14
18
|
attr_accessor :flows_refresh_others
|
|
15
19
|
|
|
16
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
17
21
|
def self.attribute_map
|
|
18
22
|
{
|
|
23
|
+
:'enterprise_audit_include_expanded_diff' => :'enterprise_audit_include_expanded_diff',
|
|
19
24
|
:'policies_buffered_access_view' => :'policies_buffered_access_view',
|
|
25
|
+
:'flows_continuous_login' => :'flows_continuous_login',
|
|
20
26
|
:'flows_refresh_others' => :'flows_refresh_others'
|
|
21
27
|
}
|
|
22
28
|
end
|
|
@@ -34,7 +40,9 @@ module Authentik::Api
|
|
|
34
40
|
# Attribute type mapping.
|
|
35
41
|
def self.openapi_types
|
|
36
42
|
{
|
|
43
|
+
:'enterprise_audit_include_expanded_diff' => :'Boolean',
|
|
37
44
|
:'policies_buffered_access_view' => :'Boolean',
|
|
45
|
+
:'flows_continuous_login' => :'Boolean',
|
|
38
46
|
:'flows_refresh_others' => :'Boolean'
|
|
39
47
|
}
|
|
40
48
|
end
|
|
@@ -61,12 +69,24 @@ module Authentik::Api
|
|
|
61
69
|
h[k.to_sym] = v
|
|
62
70
|
}
|
|
63
71
|
|
|
72
|
+
if attributes.key?(:'enterprise_audit_include_expanded_diff')
|
|
73
|
+
self.enterprise_audit_include_expanded_diff = attributes[:'enterprise_audit_include_expanded_diff']
|
|
74
|
+
else
|
|
75
|
+
self.enterprise_audit_include_expanded_diff = nil
|
|
76
|
+
end
|
|
77
|
+
|
|
64
78
|
if attributes.key?(:'policies_buffered_access_view')
|
|
65
79
|
self.policies_buffered_access_view = attributes[:'policies_buffered_access_view']
|
|
66
80
|
else
|
|
67
81
|
self.policies_buffered_access_view = nil
|
|
68
82
|
end
|
|
69
83
|
|
|
84
|
+
if attributes.key?(:'flows_continuous_login')
|
|
85
|
+
self.flows_continuous_login = attributes[:'flows_continuous_login']
|
|
86
|
+
else
|
|
87
|
+
self.flows_continuous_login = nil
|
|
88
|
+
end
|
|
89
|
+
|
|
70
90
|
if attributes.key?(:'flows_refresh_others')
|
|
71
91
|
self.flows_refresh_others = attributes[:'flows_refresh_others']
|
|
72
92
|
else
|
|
@@ -79,10 +99,18 @@ module Authentik::Api
|
|
|
79
99
|
def list_invalid_properties
|
|
80
100
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
81
101
|
invalid_properties = Array.new
|
|
102
|
+
if @enterprise_audit_include_expanded_diff.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "enterprise_audit_include_expanded_diff", enterprise_audit_include_expanded_diff cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
82
106
|
if @policies_buffered_access_view.nil?
|
|
83
107
|
invalid_properties.push('invalid value for "policies_buffered_access_view", policies_buffered_access_view cannot be nil.')
|
|
84
108
|
end
|
|
85
109
|
|
|
110
|
+
if @flows_continuous_login.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "flows_continuous_login", flows_continuous_login cannot be nil.')
|
|
112
|
+
end
|
|
113
|
+
|
|
86
114
|
if @flows_refresh_others.nil?
|
|
87
115
|
invalid_properties.push('invalid value for "flows_refresh_others", flows_refresh_others cannot be nil.')
|
|
88
116
|
end
|
|
@@ -94,11 +122,23 @@ module Authentik::Api
|
|
|
94
122
|
# @return true if the model is valid
|
|
95
123
|
def valid?
|
|
96
124
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
125
|
+
return false if @enterprise_audit_include_expanded_diff.nil?
|
|
97
126
|
return false if @policies_buffered_access_view.nil?
|
|
127
|
+
return false if @flows_continuous_login.nil?
|
|
98
128
|
return false if @flows_refresh_others.nil?
|
|
99
129
|
true
|
|
100
130
|
end
|
|
101
131
|
|
|
132
|
+
# Custom attribute writer method with validation
|
|
133
|
+
# @param [Object] enterprise_audit_include_expanded_diff Value to be assigned
|
|
134
|
+
def enterprise_audit_include_expanded_diff=(enterprise_audit_include_expanded_diff)
|
|
135
|
+
if enterprise_audit_include_expanded_diff.nil?
|
|
136
|
+
fail ArgumentError, 'enterprise_audit_include_expanded_diff cannot be nil'
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
@enterprise_audit_include_expanded_diff = enterprise_audit_include_expanded_diff
|
|
140
|
+
end
|
|
141
|
+
|
|
102
142
|
# Custom attribute writer method with validation
|
|
103
143
|
# @param [Object] policies_buffered_access_view Value to be assigned
|
|
104
144
|
def policies_buffered_access_view=(policies_buffered_access_view)
|
|
@@ -109,6 +149,16 @@ module Authentik::Api
|
|
|
109
149
|
@policies_buffered_access_view = policies_buffered_access_view
|
|
110
150
|
end
|
|
111
151
|
|
|
152
|
+
# Custom attribute writer method with validation
|
|
153
|
+
# @param [Object] flows_continuous_login Value to be assigned
|
|
154
|
+
def flows_continuous_login=(flows_continuous_login)
|
|
155
|
+
if flows_continuous_login.nil?
|
|
156
|
+
fail ArgumentError, 'flows_continuous_login cannot be nil'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
@flows_continuous_login = flows_continuous_login
|
|
160
|
+
end
|
|
161
|
+
|
|
112
162
|
# Custom attribute writer method with validation
|
|
113
163
|
# @param [Object] flows_refresh_others Value to be assigned
|
|
114
164
|
def flows_refresh_others=(flows_refresh_others)
|
|
@@ -124,7 +174,9 @@ module Authentik::Api
|
|
|
124
174
|
def ==(o)
|
|
125
175
|
return true if self.equal?(o)
|
|
126
176
|
self.class == o.class &&
|
|
177
|
+
enterprise_audit_include_expanded_diff == o.enterprise_audit_include_expanded_diff &&
|
|
127
178
|
policies_buffered_access_view == o.policies_buffered_access_view &&
|
|
179
|
+
flows_continuous_login == o.flows_continuous_login &&
|
|
128
180
|
flows_refresh_others == o.flows_refresh_others
|
|
129
181
|
end
|
|
130
182
|
|
|
@@ -137,7 +189,7 @@ module Authentik::Api
|
|
|
137
189
|
# Calculates hash code according to all attributes.
|
|
138
190
|
# @return [Integer] Hash code
|
|
139
191
|
def hash
|
|
140
|
-
[policies_buffered_access_view, flows_refresh_others].hash
|
|
192
|
+
[enterprise_audit_include_expanded_diff, policies_buffered_access_view, flows_continuous_login, flows_refresh_others].hash
|
|
141
193
|
end
|
|
142
194
|
|
|
143
195
|
# Builds the object from hash
|
|
@@ -13,11 +13,14 @@ module Authentik::Api
|
|
|
13
13
|
|
|
14
14
|
attr_accessor :name
|
|
15
15
|
|
|
16
|
+
attr_accessor :attributes
|
|
17
|
+
|
|
16
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
17
19
|
def self.attribute_map
|
|
18
20
|
{
|
|
19
21
|
:'pbm_uuid' => :'pbm_uuid',
|
|
20
|
-
:'name' => :'name'
|
|
22
|
+
:'name' => :'name',
|
|
23
|
+
:'attributes' => :'attributes'
|
|
21
24
|
}
|
|
22
25
|
end
|
|
23
26
|
|
|
@@ -35,7 +38,8 @@ module Authentik::Api
|
|
|
35
38
|
def self.openapi_types
|
|
36
39
|
{
|
|
37
40
|
:'pbm_uuid' => :'String',
|
|
38
|
-
:'name' => :'String'
|
|
41
|
+
:'name' => :'String',
|
|
42
|
+
:'attributes' => :'Hash<String, Object>'
|
|
39
43
|
}
|
|
40
44
|
end
|
|
41
45
|
|
|
@@ -72,6 +76,12 @@ module Authentik::Api
|
|
|
72
76
|
else
|
|
73
77
|
self.name = nil
|
|
74
78
|
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'attributes')
|
|
81
|
+
if (value = attributes[:'attributes']).is_a?(Hash)
|
|
82
|
+
self.attributes = value
|
|
83
|
+
end
|
|
84
|
+
end
|
|
75
85
|
end
|
|
76
86
|
|
|
77
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -125,7 +135,8 @@ module Authentik::Api
|
|
|
125
135
|
return true if self.equal?(o)
|
|
126
136
|
self.class == o.class &&
|
|
127
137
|
pbm_uuid == o.pbm_uuid &&
|
|
128
|
-
name == o.name
|
|
138
|
+
name == o.name &&
|
|
139
|
+
attributes == o.attributes
|
|
129
140
|
end
|
|
130
141
|
|
|
131
142
|
# @see the `==` method
|
|
@@ -137,7 +148,7 @@ module Authentik::Api
|
|
|
137
148
|
# Calculates hash code according to all attributes.
|
|
138
149
|
# @return [Integer] Hash code
|
|
139
150
|
def hash
|
|
140
|
-
[pbm_uuid, name].hash
|
|
151
|
+
[pbm_uuid, name, attributes].hash
|
|
141
152
|
end
|
|
142
153
|
|
|
143
154
|
# Builds the object from hash
|
|
@@ -11,10 +11,13 @@ module Authentik::Api
|
|
|
11
11
|
class DeviceAccessGroupRequest < ApiModelBase
|
|
12
12
|
attr_accessor :name
|
|
13
13
|
|
|
14
|
+
attr_accessor :attributes
|
|
15
|
+
|
|
14
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
15
17
|
def self.attribute_map
|
|
16
18
|
{
|
|
17
|
-
:'name' => :'name'
|
|
19
|
+
:'name' => :'name',
|
|
20
|
+
:'attributes' => :'attributes'
|
|
18
21
|
}
|
|
19
22
|
end
|
|
20
23
|
|
|
@@ -31,7 +34,8 @@ module Authentik::Api
|
|
|
31
34
|
# Attribute type mapping.
|
|
32
35
|
def self.openapi_types
|
|
33
36
|
{
|
|
34
|
-
:'name' => :'String'
|
|
37
|
+
:'name' => :'String',
|
|
38
|
+
:'attributes' => :'Hash<String, Object>'
|
|
35
39
|
}
|
|
36
40
|
end
|
|
37
41
|
|
|
@@ -62,6 +66,12 @@ module Authentik::Api
|
|
|
62
66
|
else
|
|
63
67
|
self.name = nil
|
|
64
68
|
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'attributes')
|
|
71
|
+
if (value = attributes[:'attributes']).is_a?(Hash)
|
|
72
|
+
self.attributes = value
|
|
73
|
+
end
|
|
74
|
+
end
|
|
65
75
|
end
|
|
66
76
|
|
|
67
77
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +118,8 @@ module Authentik::Api
|
|
|
108
118
|
def ==(o)
|
|
109
119
|
return true if self.equal?(o)
|
|
110
120
|
self.class == o.class &&
|
|
111
|
-
name == o.name
|
|
121
|
+
name == o.name &&
|
|
122
|
+
attributes == o.attributes
|
|
112
123
|
end
|
|
113
124
|
|
|
114
125
|
# @see the `==` method
|
|
@@ -120,7 +131,7 @@ module Authentik::Api
|
|
|
120
131
|
# Calculates hash code according to all attributes.
|
|
121
132
|
# @return [Integer] Hash code
|
|
122
133
|
def hash
|
|
123
|
-
[name].hash
|
|
134
|
+
[name, attributes].hash
|
|
124
135
|
end
|
|
125
136
|
|
|
126
137
|
# Builds the object from hash
|