diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index debac584d..04e4165d9 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -9,6 +9,7 @@ authentik_client/api/admin_api.py authentik_client/api/authenticators_api.py authentik_client/api/core_api.py authentik_client/api/crypto_api.py +authentik_client/api/endpoints_api.py authentik_client/api/enterprise_api.py authentik_client/api/events_api.py authentik_client/api/flows_api.py @@ -20,6 +21,7 @@ authentik_client/api/propertymappings_api.py authentik_client/api/providers_api.py authentik_client/api/rac_api.py authentik_client/api/rbac_api.py +authentik_client/api/reports_api.py authentik_client/api/root_api.py authentik_client/api/schema_api.py authentik_client/api/sources_api.py @@ -33,6 +35,14 @@ authentik_client/configuration.py authentik_client/exceptions.py authentik_client/models/__init__.py authentik_client/models/access_denied_challenge.py +authentik_client/models/agent_authentication_response.py +authentik_client/models/agent_config.py +authentik_client/models/agent_connector.py +authentik_client/models/agent_connector_request.py +authentik_client/models/agent_psso_device_registration_request.py +authentik_client/models/agent_psso_device_registration_response.py +authentik_client/models/agent_psso_user_registration_request.py +authentik_client/models/agent_token_response.py authentik_client/models/alg_enum.py authentik_client/models/app.py authentik_client/models/app_enum.py @@ -112,17 +122,20 @@ authentik_client/models/compatibility_mode_enum.py authentik_client/models/config.py authentik_client/models/connection_token.py authentik_client/models/connection_token_request.py +authentik_client/models/connector.py authentik_client/models/consent_challenge.py authentik_client/models/consent_challenge_response_request.py authentik_client/models/consent_permission.py authentik_client/models/consent_stage.py authentik_client/models/consent_stage_mode_enum.py authentik_client/models/consent_stage_request.py +authentik_client/models/content_type.py authentik_client/models/contextual_flow_info.py authentik_client/models/contextual_flow_info_layout_enum.py authentik_client/models/country_code_enum.py authentik_client/models/current_brand.py authentik_client/models/current_brand_flags.py +authentik_client/models/data_export.py authentik_client/models/delivery_method_enum.py authentik_client/models/denied_action_enum.py authentik_client/models/deny_stage.py @@ -130,11 +143,27 @@ authentik_client/models/deny_stage_request.py authentik_client/models/detailed_country.py authentik_client/models/detailed_country_field.py authentik_client/models/device.py +authentik_client/models/device_access_group.py +authentik_client/models/device_access_group_request.py authentik_client/models/device_challenge.py authentik_client/models/device_challenge_request.py authentik_client/models/device_classes_enum.py +authentik_client/models/device_connection.py +authentik_client/models/device_fact_snapshot.py +authentik_client/models/device_facts.py +authentik_client/models/device_facts_os_family.py +authentik_client/models/device_facts_request.py +authentik_client/models/device_group.py +authentik_client/models/device_group_request.py +authentik_client/models/device_summary.py +authentik_client/models/device_user.py +authentik_client/models/device_user_binding.py +authentik_client/models/device_user_binding_request.py +authentik_client/models/device_user_request.py authentik_client/models/digest_algorithm_enum.py authentik_client/models/digits_enum.py +authentik_client/models/disk.py +authentik_client/models/disk_request.py authentik_client/models/docker_service_connection.py authentik_client/models/docker_service_connection_request.py authentik_client/models/domain.py @@ -156,10 +185,18 @@ authentik_client/models/email_device_request.py authentik_client/models/email_stage.py authentik_client/models/email_stage_request.py authentik_client/models/endpoint.py +authentik_client/models/endpoint_agent_challenge.py +authentik_client/models/endpoint_agent_challenge_response_request.py authentik_client/models/endpoint_auth_mode_enum.py authentik_client/models/endpoint_device.py +authentik_client/models/endpoint_device_details.py authentik_client/models/endpoint_device_request.py authentik_client/models/endpoint_request.py +authentik_client/models/endpoint_stage.py +authentik_client/models/endpoint_stage_request.py +authentik_client/models/enroll_request.py +authentik_client/models/enrollment_token.py +authentik_client/models/enrollment_token_request.py authentik_client/models/error_detail.py authentik_client/models/error_reporting_config.py authentik_client/models/event.py @@ -174,10 +211,7 @@ authentik_client/models/expiring_base_grant_model.py authentik_client/models/expression_policy.py authentik_client/models/expression_policy_request.py authentik_client/models/extra_role_object_permission.py -authentik_client/models/extra_role_object_permission_request.py -authentik_client/models/extra_user_object_permission.py -authentik_client/models/extra_user_object_permission_request.py -authentik_client/models/file_path_request.py +authentik_client/models/file_list.py authentik_client/models/flow.py authentik_client/models/flow_challenge_response_request.py authentik_client/models/flow_designation_enum.py @@ -189,7 +223,6 @@ authentik_client/models/flow_inspector_plan.py authentik_client/models/flow_layout_enum.py authentik_client/models/flow_request.py authentik_client/models/flow_set.py -authentik_client/models/flow_set_request.py authentik_client/models/flow_stage_binding.py authentik_client/models/flow_stage_binding_request.py authentik_client/models/footer_link.py @@ -200,6 +233,8 @@ authentik_client/models/geo_ip_policy.py authentik_client/models/geo_ip_policy_request.py authentik_client/models/geoip_binding_enum.py authentik_client/models/global_task_status.py +authentik_client/models/google_endpoint_device.py +authentik_client/models/google_endpoint_device_request.py authentik_client/models/google_workspace_provider.py authentik_client/models/google_workspace_provider_group.py authentik_client/models/google_workspace_provider_group_request.py @@ -209,7 +244,6 @@ authentik_client/models/google_workspace_provider_request.py authentik_client/models/google_workspace_provider_user.py authentik_client/models/google_workspace_provider_user_request.py authentik_client/models/group.py -authentik_client/models/group_child.py authentik_client/models/group_kerberos_source_connection.py authentik_client/models/group_kerberos_source_connection_request.py authentik_client/models/group_ldap_source_connection.py @@ -226,6 +260,8 @@ authentik_client/models/group_source_connection.py authentik_client/models/group_source_connection_request.py authentik_client/models/group_telegram_source_connection.py authentik_client/models/group_telegram_source_connection_request.py +authentik_client/models/hardware.py +authentik_client/models/hardware_request.py authentik_client/models/identification_challenge.py authentik_client/models/identification_challenge_response_request.py authentik_client/models/identification_stage.py @@ -234,7 +270,6 @@ authentik_client/models/iframe_logout_challenge.py authentik_client/models/iframe_logout_challenge_response_request.py authentik_client/models/impersonation_request.py authentik_client/models/initial_permissions.py -authentik_client/models/initial_permissions_mode_enum.py authentik_client/models/initial_permissions_request.py authentik_client/models/install_id.py authentik_client/models/intent_enum.py @@ -249,6 +284,7 @@ authentik_client/models/kerberos_source.py authentik_client/models/kerberos_source_property_mapping.py authentik_client/models/kerberos_source_property_mapping_request.py authentik_client/models/kerberos_source_request.py +authentik_client/models/key_type_enum.py authentik_client/models/kubernetes_service_connection.py authentik_client/models/kubernetes_service_connection_request.py authentik_client/models/last_task_status_enum.py @@ -266,6 +302,7 @@ authentik_client/models/license.py authentik_client/models/license_flags_enum.py authentik_client/models/license_forecast.py authentik_client/models/license_request.py +authentik_client/models/license_status_enum.py authentik_client/models/license_summary.py authentik_client/models/license_summary_status_enum.py authentik_client/models/link.py @@ -274,6 +311,8 @@ authentik_client/models/log_level_enum.py authentik_client/models/login_challenge_types.py authentik_client/models/login_source.py authentik_client/models/matching_mode_enum.py +authentik_client/models/mdm_config_request.py +authentik_client/models/mdm_config_response.py authentik_client/models/metadata.py authentik_client/models/microsoft_entra_provider.py authentik_client/models/microsoft_entra_provider_group.py @@ -286,11 +325,14 @@ authentik_client/models/microsoft_entra_provider_user_request.py authentik_client/models/model_enum.py authentik_client/models/model_request.py authentik_client/models/mutual_tls_stage.py -authentik_client/models/mutual_tls_stage_mode_enum.py authentik_client/models/mutual_tls_stage_request.py authentik_client/models/native_logout_challenge.py authentik_client/models/native_logout_challenge_response_request.py +authentik_client/models/network.py authentik_client/models/network_binding_enum.py +authentik_client/models/network_interface.py +authentik_client/models/network_interface_request.py +authentik_client/models/network_request.py authentik_client/models/not_configured_action_enum.py authentik_client/models/notification.py authentik_client/models/notification_request.py @@ -315,12 +357,15 @@ authentik_client/models/o_auth_source_property_mapping.py authentik_client/models/o_auth_source_property_mapping_request.py authentik_client/models/o_auth_source_request.py authentik_client/models/open_id_connect_configuration.py +authentik_client/models/operating_system.py +authentik_client/models/operating_system_request.py authentik_client/models/outgoing_sync_delete_action.py authentik_client/models/outpost.py authentik_client/models/outpost_default_config.py authentik_client/models/outpost_health.py authentik_client/models/outpost_request.py authentik_client/models/outpost_type_enum.py +authentik_client/models/paginated_agent_connector_list.py authentik_client/models/paginated_application_entitlement_list.py authentik_client/models/paginated_application_list.py authentik_client/models/paginated_authenticated_session_list.py @@ -337,8 +382,12 @@ authentik_client/models/paginated_brand_list.py authentik_client/models/paginated_captcha_stage_list.py authentik_client/models/paginated_certificate_key_pair_list.py authentik_client/models/paginated_connection_token_list.py +authentik_client/models/paginated_connector_list.py authentik_client/models/paginated_consent_stage_list.py +authentik_client/models/paginated_data_export_list.py authentik_client/models/paginated_deny_stage_list.py +authentik_client/models/paginated_device_access_group_list.py +authentik_client/models/paginated_device_user_binding_list.py authentik_client/models/paginated_docker_service_connection_list.py authentik_client/models/paginated_domain_list.py authentik_client/models/paginated_dummy_policy_list.py @@ -348,15 +397,17 @@ authentik_client/models/paginated_email_device_list.py authentik_client/models/paginated_email_stage_list.py authentik_client/models/paginated_endpoint_device_list.py authentik_client/models/paginated_endpoint_list.py +authentik_client/models/paginated_endpoint_stage_list.py +authentik_client/models/paginated_enrollment_token_list.py authentik_client/models/paginated_event_list.py authentik_client/models/paginated_event_matcher_policy_list.py authentik_client/models/paginated_expiring_base_grant_model_list.py authentik_client/models/paginated_expression_policy_list.py authentik_client/models/paginated_extra_role_object_permission_list.py -authentik_client/models/paginated_extra_user_object_permission_list.py authentik_client/models/paginated_flow_list.py authentik_client/models/paginated_flow_stage_binding_list.py authentik_client/models/paginated_geo_ip_policy_list.py +authentik_client/models/paginated_google_endpoint_device_list.py authentik_client/models/paginated_google_workspace_provider_group_list.py authentik_client/models/paginated_google_workspace_provider_list.py authentik_client/models/paginated_google_workspace_provider_mapping_list.py @@ -448,7 +499,6 @@ authentik_client/models/paginated_token_list.py authentik_client/models/paginated_token_model_list.py authentik_client/models/paginated_totp_device_list.py authentik_client/models/paginated_unique_password_policy_list.py -authentik_client/models/paginated_user_assigned_object_permission_list.py authentik_client/models/paginated_user_consent_list.py authentik_client/models/paginated_user_delete_stage_list.py authentik_client/models/paginated_user_kerberos_source_connection_list.py @@ -475,6 +525,7 @@ authentik_client/models/password_policy.py authentik_client/models/password_policy_request.py authentik_client/models/password_stage.py authentik_client/models/password_stage_request.py +authentik_client/models/patched_agent_connector_request.py authentik_client/models/patched_application_entitlement_request.py authentik_client/models/patched_application_request.py authentik_client/models/patched_authenticator_duo_stage_request.py @@ -492,6 +543,8 @@ authentik_client/models/patched_certificate_key_pair_request.py authentik_client/models/patched_connection_token_request.py authentik_client/models/patched_consent_stage_request.py authentik_client/models/patched_deny_stage_request.py +authentik_client/models/patched_device_access_group_request.py +authentik_client/models/patched_device_user_binding_request.py authentik_client/models/patched_docker_service_connection_request.py authentik_client/models/patched_domain_request.py authentik_client/models/patched_dummy_policy_request.py @@ -501,14 +554,15 @@ authentik_client/models/patched_email_device_request.py authentik_client/models/patched_email_stage_request.py authentik_client/models/patched_endpoint_device_request.py authentik_client/models/patched_endpoint_request.py +authentik_client/models/patched_endpoint_stage_request.py +authentik_client/models/patched_enrollment_token_request.py authentik_client/models/patched_event_matcher_policy_request.py authentik_client/models/patched_event_request.py authentik_client/models/patched_expression_policy_request.py -authentik_client/models/patched_extra_role_object_permission_request.py -authentik_client/models/patched_extra_user_object_permission_request.py authentik_client/models/patched_flow_request.py authentik_client/models/patched_flow_stage_binding_request.py authentik_client/models/patched_geo_ip_policy_request.py +authentik_client/models/patched_google_endpoint_device_request.py authentik_client/models/patched_google_workspace_provider_mapping_request.py authentik_client/models/patched_google_workspace_provider_request.py authentik_client/models/patched_group_kerberos_source_connection_request.py @@ -598,6 +652,7 @@ authentik_client/models/patched_web_authn_device_request.py authentik_client/models/permission.py authentik_client/models/permission_assign_request.py authentik_client/models/permission_assign_result.py +authentik_client/models/pkce_method_enum.py authentik_client/models/plex_authentication_challenge.py authentik_client/models/plex_authentication_challenge_response_request.py authentik_client/models/plex_source.py @@ -611,9 +666,12 @@ authentik_client/models/policy_binding_request.py authentik_client/models/policy_engine_mode.py authentik_client/models/policy_test_request.py authentik_client/models/policy_test_result.py +authentik_client/models/process.py +authentik_client/models/process_request.py authentik_client/models/prompt.py authentik_client/models/prompt_challenge.py authentik_client/models/prompt_challenge_response_request.py +authentik_client/models/prompt_choice.py authentik_client/models/prompt_request.py authentik_client/models/prompt_stage.py authentik_client/models/prompt_stage_request.py @@ -648,12 +706,14 @@ authentik_client/models/redirect_stage_mode_enum.py authentik_client/models/redirect_stage_request.py authentik_client/models/redirect_uri.py authentik_client/models/redirect_uri_request.py +authentik_client/models/related_group.py authentik_client/models/reputation.py authentik_client/models/reputation_policy.py authentik_client/models/reputation_policy_request.py authentik_client/models/resident_key_requirement_enum.py authentik_client/models/role.py authentik_client/models/role_assigned_object_permission.py +authentik_client/models/role_model_permission.py authentik_client/models/role_object_permission.py authentik_client/models/role_request.py authentik_client/models/saml_bindings_enum.py @@ -701,6 +761,8 @@ authentik_client/models/shell_challenge.py authentik_client/models/signature_algorithm_enum.py authentik_client/models/sms_device.py authentik_client/models/sms_device_request.py +authentik_client/models/software.py +authentik_client/models/software_request.py authentik_client/models/source.py authentik_client/models/source_stage.py authentik_client/models/source_stage_request.py @@ -709,6 +771,7 @@ authentik_client/models/ssf_provider.py authentik_client/models/ssf_provider_request.py authentik_client/models/ssf_stream.py authentik_client/models/stage.py +authentik_client/models/stage_mode_enum.py authentik_client/models/stage_prompt.py authentik_client/models/state_enum.py authentik_client/models/static_device.py @@ -718,11 +781,13 @@ authentik_client/models/sub_mode_enum.py authentik_client/models/sync_object_model_enum.py authentik_client/models/sync_object_request.py authentik_client/models/sync_object_result.py +authentik_client/models/sync_outgoing_trigger_mode_enum.py authentik_client/models/sync_status.py authentik_client/models/system_info.py authentik_client/models/system_info_runtime.py authentik_client/models/task.py authentik_client/models/task_aggregated_status_enum.py +authentik_client/models/telegram_auth_request.py authentik_client/models/telegram_challenge_response_request.py authentik_client/models/telegram_login_challenge.py authentik_client/models/telegram_source.py @@ -734,6 +799,7 @@ authentik_client/models/tenant_admin_group_request_request.py authentik_client/models/tenant_recovery_key_request_request.py authentik_client/models/tenant_recovery_key_response.py authentik_client/models/tenant_request.py +authentik_client/models/themed_urls.py authentik_client/models/token.py authentik_client/models/token_model.py authentik_client/models/token_request.py @@ -752,7 +818,7 @@ authentik_client/models/used_by.py authentik_client/models/used_by_action_enum.py authentik_client/models/user.py authentik_client/models/user_account_request.py -authentik_client/models/user_assigned_object_permission.py +authentik_client/models/user_account_serializer_for_role_request.py authentik_client/models/user_attribute_enum.py authentik_client/models/user_consent.py authentik_client/models/user_creation_mode_enum.py @@ -772,7 +838,6 @@ authentik_client/models/user_logout_stage_request.py authentik_client/models/user_matching_mode_enum.py authentik_client/models/user_o_auth_source_connection.py authentik_client/models/user_o_auth_source_connection_request.py -authentik_client/models/user_object_permission.py authentik_client/models/user_password_set_request.py authentik_client/models/user_path.py authentik_client/models/user_plex_source_connection.py @@ -782,6 +847,7 @@ authentik_client/models/user_saml_source_connection.py authentik_client/models/user_saml_source_connection_request.py authentik_client/models/user_self.py authentik_client/models/user_self_groups.py +authentik_client/models/user_self_roles.py authentik_client/models/user_service_account_request.py authentik_client/models/user_service_account_response.py authentik_client/models/user_setting.py @@ -804,6 +870,14 @@ authentik_client/py.typed authentik_client/rest.py docs/AccessDeniedChallenge.md docs/AdminApi.md +docs/AgentAuthenticationResponse.md +docs/AgentConfig.md +docs/AgentConnector.md +docs/AgentConnectorRequest.md +docs/AgentPSSODeviceRegistrationRequest.md +docs/AgentPSSODeviceRegistrationResponse.md +docs/AgentPSSOUserRegistrationRequest.md +docs/AgentTokenResponse.md docs/AlgEnum.md docs/App.md docs/AppEnum.md @@ -884,12 +958,14 @@ docs/CompatibilityModeEnum.md docs/Config.md docs/ConnectionToken.md docs/ConnectionTokenRequest.md +docs/Connector.md docs/ConsentChallenge.md docs/ConsentChallengeResponseRequest.md docs/ConsentPermission.md docs/ConsentStage.md docs/ConsentStageModeEnum.md docs/ConsentStageRequest.md +docs/ContentType.md docs/ContextualFlowInfo.md docs/ContextualFlowInfoLayoutEnum.md docs/CoreApi.md @@ -897,6 +973,7 @@ docs/CountryCodeEnum.md docs/CryptoApi.md docs/CurrentBrand.md docs/CurrentBrandFlags.md +docs/DataExport.md docs/DeliveryMethodEnum.md docs/DeniedActionEnum.md docs/DenyStage.md @@ -904,11 +981,27 @@ docs/DenyStageRequest.md docs/DetailedCountry.md docs/DetailedCountryField.md docs/Device.md +docs/DeviceAccessGroup.md +docs/DeviceAccessGroupRequest.md docs/DeviceChallenge.md docs/DeviceChallengeRequest.md docs/DeviceClassesEnum.md +docs/DeviceConnection.md +docs/DeviceFactSnapshot.md +docs/DeviceFacts.md +docs/DeviceFactsOSFamily.md +docs/DeviceFactsRequest.md +docs/DeviceGroup.md +docs/DeviceGroupRequest.md +docs/DeviceSummary.md +docs/DeviceUser.md +docs/DeviceUserBinding.md +docs/DeviceUserBindingRequest.md +docs/DeviceUserRequest.md docs/DigestAlgorithmEnum.md docs/DigitsEnum.md +docs/Disk.md +docs/DiskRequest.md docs/DockerServiceConnection.md docs/DockerServiceConnectionRequest.md docs/Domain.md @@ -930,10 +1023,19 @@ docs/EmailDeviceRequest.md docs/EmailStage.md docs/EmailStageRequest.md docs/Endpoint.md +docs/EndpointAgentChallenge.md +docs/EndpointAgentChallengeResponseRequest.md docs/EndpointAuthModeEnum.md docs/EndpointDevice.md +docs/EndpointDeviceDetails.md docs/EndpointDeviceRequest.md docs/EndpointRequest.md +docs/EndpointStage.md +docs/EndpointStageRequest.md +docs/EndpointsApi.md +docs/EnrollRequest.md +docs/EnrollmentToken.md +docs/EnrollmentTokenRequest.md docs/EnterpriseApi.md docs/ErrorDetail.md docs/ErrorReportingConfig.md @@ -950,10 +1052,7 @@ docs/ExpiringBaseGrantModel.md docs/ExpressionPolicy.md docs/ExpressionPolicyRequest.md docs/ExtraRoleObjectPermission.md -docs/ExtraRoleObjectPermissionRequest.md -docs/ExtraUserObjectPermission.md -docs/ExtraUserObjectPermissionRequest.md -docs/FilePathRequest.md +docs/FileList.md docs/Flow.md docs/FlowChallengeResponseRequest.md docs/FlowDesignationEnum.md @@ -965,7 +1064,6 @@ docs/FlowInspectorPlan.md docs/FlowLayoutEnum.md docs/FlowRequest.md docs/FlowSet.md -docs/FlowSetRequest.md docs/FlowStageBinding.md docs/FlowStageBindingRequest.md docs/FlowsApi.md @@ -977,6 +1075,8 @@ docs/GeoIPPolicy.md docs/GeoIPPolicyRequest.md docs/GeoipBindingEnum.md docs/GlobalTaskStatus.md +docs/GoogleEndpointDevice.md +docs/GoogleEndpointDeviceRequest.md docs/GoogleWorkspaceProvider.md docs/GoogleWorkspaceProviderGroup.md docs/GoogleWorkspaceProviderGroupRequest.md @@ -986,7 +1086,6 @@ docs/GoogleWorkspaceProviderRequest.md docs/GoogleWorkspaceProviderUser.md docs/GoogleWorkspaceProviderUserRequest.md docs/Group.md -docs/GroupChild.md docs/GroupKerberosSourceConnection.md docs/GroupKerberosSourceConnectionRequest.md docs/GroupLDAPSourceConnection.md @@ -1003,6 +1102,8 @@ docs/GroupSourceConnection.md docs/GroupSourceConnectionRequest.md docs/GroupTelegramSourceConnection.md docs/GroupTelegramSourceConnectionRequest.md +docs/Hardware.md +docs/HardwareRequest.md docs/IdentificationChallenge.md docs/IdentificationChallengeResponseRequest.md docs/IdentificationStage.md @@ -1011,7 +1112,6 @@ docs/IframeLogoutChallenge.md docs/IframeLogoutChallengeResponseRequest.md docs/ImpersonationRequest.md docs/InitialPermissions.md -docs/InitialPermissionsModeEnum.md docs/InitialPermissionsRequest.md docs/InstallID.md docs/IntentEnum.md @@ -1026,6 +1126,7 @@ docs/KerberosSource.md docs/KerberosSourcePropertyMapping.md docs/KerberosSourcePropertyMappingRequest.md docs/KerberosSourceRequest.md +docs/KeyTypeEnum.md docs/KubernetesServiceConnection.md docs/KubernetesServiceConnectionRequest.md docs/LDAPAPIAccessMode.md @@ -1043,6 +1144,7 @@ docs/License.md docs/LicenseFlagsEnum.md docs/LicenseForecast.md docs/LicenseRequest.md +docs/LicenseStatusEnum.md docs/LicenseSummary.md docs/LicenseSummaryStatusEnum.md docs/Link.md @@ -1050,6 +1152,8 @@ docs/LogEvent.md docs/LogLevelEnum.md docs/LoginChallengeTypes.md docs/LoginSource.md +docs/MDMConfigRequest.md +docs/MDMConfigResponse.md docs/ManagedApi.md docs/MatchingModeEnum.md docs/Metadata.md @@ -1064,11 +1168,14 @@ docs/MicrosoftEntraProviderUserRequest.md docs/ModelEnum.md docs/ModelRequest.md docs/MutualTLSStage.md -docs/MutualTLSStageModeEnum.md docs/MutualTLSStageRequest.md docs/NativeLogoutChallenge.md docs/NativeLogoutChallengeResponseRequest.md +docs/Network.md docs/NetworkBindingEnum.md +docs/NetworkInterface.md +docs/NetworkInterfaceRequest.md +docs/NetworkRequest.md docs/NotConfiguredActionEnum.md docs/Notification.md docs/NotificationRequest.md @@ -1094,6 +1201,8 @@ docs/OAuthSourcePropertyMappingRequest.md docs/OAuthSourceRequest.md docs/Oauth2Api.md docs/OpenIDConnectConfiguration.md +docs/OperatingSystem.md +docs/OperatingSystemRequest.md docs/OutgoingSyncDeleteAction.md docs/Outpost.md docs/OutpostDefaultConfig.md @@ -1101,6 +1210,8 @@ docs/OutpostHealth.md docs/OutpostRequest.md docs/OutpostTypeEnum.md docs/OutpostsApi.md +docs/PKCEMethodEnum.md +docs/PaginatedAgentConnectorList.md docs/PaginatedApplicationEntitlementList.md docs/PaginatedApplicationList.md docs/PaginatedAuthenticatedSessionList.md @@ -1117,8 +1228,12 @@ docs/PaginatedBrandList.md docs/PaginatedCaptchaStageList.md docs/PaginatedCertificateKeyPairList.md docs/PaginatedConnectionTokenList.md +docs/PaginatedConnectorList.md docs/PaginatedConsentStageList.md +docs/PaginatedDataExportList.md docs/PaginatedDenyStageList.md +docs/PaginatedDeviceAccessGroupList.md +docs/PaginatedDeviceUserBindingList.md docs/PaginatedDockerServiceConnectionList.md docs/PaginatedDomainList.md docs/PaginatedDummyPolicyList.md @@ -1128,15 +1243,17 @@ docs/PaginatedEmailDeviceList.md docs/PaginatedEmailStageList.md docs/PaginatedEndpointDeviceList.md docs/PaginatedEndpointList.md +docs/PaginatedEndpointStageList.md +docs/PaginatedEnrollmentTokenList.md docs/PaginatedEventList.md docs/PaginatedEventMatcherPolicyList.md docs/PaginatedExpiringBaseGrantModelList.md docs/PaginatedExpressionPolicyList.md docs/PaginatedExtraRoleObjectPermissionList.md -docs/PaginatedExtraUserObjectPermissionList.md docs/PaginatedFlowList.md docs/PaginatedFlowStageBindingList.md docs/PaginatedGeoIPPolicyList.md +docs/PaginatedGoogleEndpointDeviceList.md docs/PaginatedGoogleWorkspaceProviderGroupList.md docs/PaginatedGoogleWorkspaceProviderList.md docs/PaginatedGoogleWorkspaceProviderMappingList.md @@ -1228,7 +1345,6 @@ docs/PaginatedTenantList.md docs/PaginatedTokenList.md docs/PaginatedTokenModelList.md docs/PaginatedUniquePasswordPolicyList.md -docs/PaginatedUserAssignedObjectPermissionList.md docs/PaginatedUserConsentList.md docs/PaginatedUserDeleteStageList.md docs/PaginatedUserKerberosSourceConnectionList.md @@ -1255,6 +1371,7 @@ docs/PasswordPolicy.md docs/PasswordPolicyRequest.md docs/PasswordStage.md docs/PasswordStageRequest.md +docs/PatchedAgentConnectorRequest.md docs/PatchedApplicationEntitlementRequest.md docs/PatchedApplicationRequest.md docs/PatchedAuthenticatorDuoStageRequest.md @@ -1272,6 +1389,8 @@ docs/PatchedCertificateKeyPairRequest.md docs/PatchedConnectionTokenRequest.md docs/PatchedConsentStageRequest.md docs/PatchedDenyStageRequest.md +docs/PatchedDeviceAccessGroupRequest.md +docs/PatchedDeviceUserBindingRequest.md docs/PatchedDockerServiceConnectionRequest.md docs/PatchedDomainRequest.md docs/PatchedDummyPolicyRequest.md @@ -1281,14 +1400,15 @@ docs/PatchedEmailDeviceRequest.md docs/PatchedEmailStageRequest.md docs/PatchedEndpointDeviceRequest.md docs/PatchedEndpointRequest.md +docs/PatchedEndpointStageRequest.md +docs/PatchedEnrollmentTokenRequest.md docs/PatchedEventMatcherPolicyRequest.md docs/PatchedEventRequest.md docs/PatchedExpressionPolicyRequest.md -docs/PatchedExtraRoleObjectPermissionRequest.md -docs/PatchedExtraUserObjectPermissionRequest.md docs/PatchedFlowRequest.md docs/PatchedFlowStageBindingRequest.md docs/PatchedGeoIPPolicyRequest.md +docs/PatchedGoogleEndpointDeviceRequest.md docs/PatchedGoogleWorkspaceProviderMappingRequest.md docs/PatchedGoogleWorkspaceProviderRequest.md docs/PatchedGroupKerberosSourceConnectionRequest.md @@ -1392,9 +1512,12 @@ docs/PolicyBindingRequest.md docs/PolicyEngineMode.md docs/PolicyTestRequest.md docs/PolicyTestResult.md +docs/Process.md +docs/ProcessRequest.md docs/Prompt.md docs/PromptChallenge.md docs/PromptChallengeResponseRequest.md +docs/PromptChoice.md docs/PromptRequest.md docs/PromptStage.md docs/PromptStageRequest.md @@ -1433,12 +1556,15 @@ docs/RedirectStageModeEnum.md docs/RedirectStageRequest.md docs/RedirectURI.md docs/RedirectURIRequest.md +docs/RelatedGroup.md +docs/ReportsApi.md docs/Reputation.md docs/ReputationPolicy.md docs/ReputationPolicyRequest.md docs/ResidentKeyRequirementEnum.md docs/Role.md docs/RoleAssignedObjectPermission.md +docs/RoleModelPermission.md docs/RoleObjectPermission.md docs/RoleRequest.md docs/RootApi.md @@ -1491,6 +1617,8 @@ docs/SettingsRequest.md docs/SeverityEnum.md docs/ShellChallenge.md docs/SignatureAlgorithmEnum.md +docs/Software.md +docs/SoftwareRequest.md docs/Source.md docs/SourceStage.md docs/SourceStageRequest.md @@ -1498,6 +1626,7 @@ docs/SourceType.md docs/SourcesApi.md docs/SsfApi.md docs/Stage.md +docs/StageModeEnum.md docs/StagePrompt.md docs/StagesApi.md docs/StateEnum.md @@ -1508,6 +1637,7 @@ docs/SubModeEnum.md docs/SyncObjectModelEnum.md docs/SyncObjectRequest.md docs/SyncObjectResult.md +docs/SyncOutgoingTriggerModeEnum.md docs/SyncStatus.md docs/SystemInfo.md docs/SystemInfoRuntime.md @@ -1516,6 +1646,7 @@ docs/TOTPDeviceRequest.md docs/Task.md docs/TaskAggregatedStatusEnum.md docs/TasksApi.md +docs/TelegramAuthRequest.md docs/TelegramChallengeResponseRequest.md docs/TelegramLoginChallenge.md docs/TelegramSource.md @@ -1528,6 +1659,7 @@ docs/TenantRecoveryKeyRequestRequest.md docs/TenantRecoveryKeyResponse.md docs/TenantRequest.md docs/TenantsApi.md +docs/ThemedUrls.md docs/Token.md docs/TokenModel.md docs/TokenRequest.md @@ -1544,7 +1676,7 @@ docs/UsedBy.md docs/UsedByActionEnum.md docs/User.md docs/UserAccountRequest.md -docs/UserAssignedObjectPermission.md +docs/UserAccountSerializerForRoleRequest.md docs/UserAttributeEnum.md docs/UserConsent.md docs/UserCreationModeEnum.md @@ -1564,7 +1696,6 @@ docs/UserLogoutStageRequest.md docs/UserMatchingModeEnum.md docs/UserOAuthSourceConnection.md docs/UserOAuthSourceConnectionRequest.md -docs/UserObjectPermission.md docs/UserPasswordSetRequest.md docs/UserPath.md docs/UserPlexSourceConnection.md @@ -1574,6 +1705,7 @@ docs/UserSAMLSourceConnection.md docs/UserSAMLSourceConnectionRequest.md docs/UserSelf.md docs/UserSelfGroups.md +docs/UserSelfRoles.md docs/UserServiceAccountRequest.md docs/UserServiceAccountResponse.md docs/UserSetting.md @@ -1599,794 +1731,4 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_access_denied_challenge.py -test/test_admin_api.py -test/test_alg_enum.py -test/test_app.py -test/test_app_enum.py -test/test_apple_challenge_response_request.py -test/test_apple_login_challenge.py -test/test_application.py -test/test_application_entitlement.py -test/test_application_entitlement_request.py -test/test_application_request.py -test/test_auth_type_enum.py -test/test_authenticated_session.py -test/test_authenticated_session_asn.py -test/test_authenticated_session_geo_ip.py -test/test_authenticated_session_user_agent.py -test/test_authenticated_session_user_agent_device.py -test/test_authenticated_session_user_agent_os.py -test/test_authenticated_session_user_agent_user_agent.py -test/test_authentication_enum.py -test/test_authenticator_attachment_enum.py -test/test_authenticator_duo_challenge.py -test/test_authenticator_duo_challenge_response_request.py -test/test_authenticator_duo_stage.py -test/test_authenticator_duo_stage_device_import_response.py -test/test_authenticator_duo_stage_manual_device_import_request.py -test/test_authenticator_duo_stage_request.py -test/test_authenticator_email_challenge.py -test/test_authenticator_email_challenge_response_request.py -test/test_authenticator_email_stage.py -test/test_authenticator_email_stage_request.py -test/test_authenticator_endpoint_gdtc_stage.py -test/test_authenticator_endpoint_gdtc_stage_request.py -test/test_authenticator_sms_challenge.py -test/test_authenticator_sms_challenge_response_request.py -test/test_authenticator_sms_stage.py -test/test_authenticator_sms_stage_request.py -test/test_authenticator_static_challenge.py -test/test_authenticator_static_challenge_response_request.py -test/test_authenticator_static_stage.py -test/test_authenticator_static_stage_request.py -test/test_authenticator_totp_challenge.py -test/test_authenticator_totp_challenge_response_request.py -test/test_authenticator_totp_stage.py -test/test_authenticator_totp_stage_request.py -test/test_authenticator_validate_stage.py -test/test_authenticator_validate_stage_request.py -test/test_authenticator_validation_challenge.py -test/test_authenticator_validation_challenge_response_request.py -test/test_authenticator_web_authn_challenge.py -test/test_authenticator_web_authn_challenge_response_request.py -test/test_authenticator_web_authn_stage.py -test/test_authenticator_web_authn_stage_request.py -test/test_authenticators_api.py -test/test_authorization_code_auth_method_enum.py -test/test_auto_submit_challenge_response_request.py -test/test_autosubmit_challenge.py -test/test_backends_enum.py -test/test_binding_type_enum.py -test/test_blueprint_file.py -test/test_blueprint_instance.py -test/test_blueprint_instance_request.py -test/test_blueprint_instance_status_enum.py -test/test_brand.py -test/test_brand_request.py -test/test_cache.py -test/test_capabilities_enum.py -test/test_captcha_challenge.py -test/test_captcha_challenge_response_request.py -test/test_captcha_stage.py -test/test_captcha_stage_request.py -test/test_cert_attribute_enum.py -test/test_certificate_data.py -test/test_certificate_generation_request.py -test/test_certificate_key_pair.py -test/test_certificate_key_pair_request.py -test/test_challenge_types.py -test/test_client_type_enum.py -test/test_compatibility_mode_enum.py -test/test_config.py -test/test_connection_token.py -test/test_connection_token_request.py -test/test_consent_challenge.py -test/test_consent_challenge_response_request.py -test/test_consent_permission.py -test/test_consent_stage.py -test/test_consent_stage_mode_enum.py -test/test_consent_stage_request.py -test/test_contextual_flow_info.py -test/test_contextual_flow_info_layout_enum.py -test/test_core_api.py -test/test_country_code_enum.py -test/test_crypto_api.py -test/test_current_brand.py -test/test_current_brand_flags.py -test/test_delivery_method_enum.py -test/test_denied_action_enum.py -test/test_deny_stage.py -test/test_deny_stage_request.py -test/test_detailed_country.py -test/test_detailed_country_field.py -test/test_device.py -test/test_device_challenge.py -test/test_device_challenge_request.py -test/test_device_classes_enum.py -test/test_digest_algorithm_enum.py -test/test_digits_enum.py -test/test_docker_service_connection.py -test/test_docker_service_connection_request.py -test/test_domain.py -test/test_domain_request.py -test/test_dummy_challenge.py -test/test_dummy_challenge_response_request.py -test/test_dummy_policy.py -test/test_dummy_policy_request.py -test/test_dummy_stage.py -test/test_dummy_stage_request.py -test/test_duo_device.py -test/test_duo_device_enrollment_status.py -test/test_duo_device_request.py -test/test_duo_response_enum.py -test/test_email_challenge.py -test/test_email_challenge_response_request.py -test/test_email_device.py -test/test_email_device_request.py -test/test_email_stage.py -test/test_email_stage_request.py -test/test_endpoint.py -test/test_endpoint_auth_mode_enum.py -test/test_endpoint_device.py -test/test_endpoint_device_request.py -test/test_endpoint_request.py -test/test_enterprise_api.py -test/test_error_detail.py -test/test_error_reporting_config.py -test/test_event.py -test/test_event_actions.py -test/test_event_matcher_policy.py -test/test_event_matcher_policy_request.py -test/test_event_request.py -test/test_event_top_per_user.py -test/test_event_volume.py -test/test_events_api.py -test/test_events_requested_enum.py -test/test_expiring_base_grant_model.py -test/test_expression_policy.py -test/test_expression_policy_request.py -test/test_extra_role_object_permission.py -test/test_extra_role_object_permission_request.py -test/test_extra_user_object_permission.py -test/test_extra_user_object_permission_request.py -test/test_file_path_request.py -test/test_flow.py -test/test_flow_challenge_response_request.py -test/test_flow_designation_enum.py -test/test_flow_diagram.py -test/test_flow_error_challenge.py -test/test_flow_import_result.py -test/test_flow_inspection.py -test/test_flow_inspector_plan.py -test/test_flow_layout_enum.py -test/test_flow_request.py -test/test_flow_set.py -test/test_flow_set_request.py -test/test_flow_stage_binding.py -test/test_flow_stage_binding_request.py -test/test_flows_api.py -test/test_footer_link.py -test/test_frame_challenge.py -test/test_frame_challenge_response_request.py -test/test_generic_error.py -test/test_geo_ip_policy.py -test/test_geo_ip_policy_request.py -test/test_geoip_binding_enum.py -test/test_global_task_status.py -test/test_google_workspace_provider.py -test/test_google_workspace_provider_group.py -test/test_google_workspace_provider_group_request.py -test/test_google_workspace_provider_mapping.py -test/test_google_workspace_provider_mapping_request.py -test/test_google_workspace_provider_request.py -test/test_google_workspace_provider_user.py -test/test_google_workspace_provider_user_request.py -test/test_group.py -test/test_group_child.py -test/test_group_kerberos_source_connection.py -test/test_group_kerberos_source_connection_request.py -test/test_group_ldap_source_connection.py -test/test_group_ldap_source_connection_request.py -test/test_group_matching_mode_enum.py -test/test_group_o_auth_source_connection.py -test/test_group_o_auth_source_connection_request.py -test/test_group_plex_source_connection.py -test/test_group_plex_source_connection_request.py -test/test_group_request.py -test/test_group_saml_source_connection.py -test/test_group_saml_source_connection_request.py -test/test_group_source_connection.py -test/test_group_source_connection_request.py -test/test_group_telegram_source_connection.py -test/test_group_telegram_source_connection_request.py -test/test_identification_challenge.py -test/test_identification_challenge_response_request.py -test/test_identification_stage.py -test/test_identification_stage_request.py -test/test_iframe_logout_challenge.py -test/test_iframe_logout_challenge_response_request.py -test/test_impersonation_request.py -test/test_initial_permissions.py -test/test_initial_permissions_mode_enum.py -test/test_initial_permissions_request.py -test/test_install_id.py -test/test_intent_enum.py -test/test_invalid_response_action_enum.py -test/test_invitation.py -test/test_invitation_request.py -test/test_invitation_stage.py -test/test_invitation_stage_request.py -test/test_issuer_mode_enum.py -test/test_kadmin_type_enum.py -test/test_kerberos_source.py -test/test_kerberos_source_property_mapping.py -test/test_kerberos_source_property_mapping_request.py -test/test_kerberos_source_request.py -test/test_kubernetes_service_connection.py -test/test_kubernetes_service_connection_request.py -test/test_last_task_status_enum.py -test/test_ldap_check_access.py -test/test_ldap_debug.py -test/test_ldap_outpost_config.py -test/test_ldap_provider.py -test/test_ldap_provider_request.py -test/test_ldap_source.py -test/test_ldap_source_property_mapping.py -test/test_ldap_source_property_mapping_request.py -test/test_ldap_source_request.py -test/test_ldapapi_access_mode.py -test/test_license.py -test/test_license_flags_enum.py -test/test_license_forecast.py -test/test_license_request.py -test/test_license_summary.py -test/test_license_summary_status_enum.py -test/test_link.py -test/test_log_event.py -test/test_log_level_enum.py -test/test_login_challenge_types.py -test/test_login_source.py -test/test_managed_api.py -test/test_matching_mode_enum.py -test/test_metadata.py -test/test_microsoft_entra_provider.py -test/test_microsoft_entra_provider_group.py -test/test_microsoft_entra_provider_group_request.py -test/test_microsoft_entra_provider_mapping.py -test/test_microsoft_entra_provider_mapping_request.py -test/test_microsoft_entra_provider_request.py -test/test_microsoft_entra_provider_user.py -test/test_microsoft_entra_provider_user_request.py -test/test_model_enum.py -test/test_model_request.py -test/test_mutual_tls_stage.py -test/test_mutual_tls_stage_mode_enum.py -test/test_mutual_tls_stage_request.py -test/test_native_logout_challenge.py -test/test_native_logout_challenge_response_request.py -test/test_network_binding_enum.py -test/test_not_configured_action_enum.py -test/test_notification.py -test/test_notification_request.py -test/test_notification_rule.py -test/test_notification_rule_request.py -test/test_notification_transport.py -test/test_notification_transport_mode_enum.py -test/test_notification_transport_request.py -test/test_notification_transport_test.py -test/test_notification_webhook_mapping.py -test/test_notification_webhook_mapping_request.py -test/test_o_auth2_provider.py -test/test_o_auth2_provider_logout_method_enum.py -test/test_o_auth2_provider_request.py -test/test_o_auth2_provider_setup_urls.py -test/test_o_auth_device_code_challenge.py -test/test_o_auth_device_code_challenge_response_request.py -test/test_o_auth_device_code_finish_challenge.py -test/test_o_auth_device_code_finish_challenge_response_request.py -test/test_o_auth_source.py -test/test_o_auth_source_property_mapping.py -test/test_o_auth_source_property_mapping_request.py -test/test_o_auth_source_request.py -test/test_oauth2_api.py -test/test_open_id_connect_configuration.py -test/test_outgoing_sync_delete_action.py -test/test_outpost.py -test/test_outpost_default_config.py -test/test_outpost_health.py -test/test_outpost_request.py -test/test_outpost_type_enum.py -test/test_outposts_api.py -test/test_paginated_application_entitlement_list.py -test/test_paginated_application_list.py -test/test_paginated_authenticated_session_list.py -test/test_paginated_authenticator_duo_stage_list.py -test/test_paginated_authenticator_email_stage_list.py -test/test_paginated_authenticator_endpoint_gdtc_stage_list.py -test/test_paginated_authenticator_sms_stage_list.py -test/test_paginated_authenticator_static_stage_list.py -test/test_paginated_authenticator_totp_stage_list.py -test/test_paginated_authenticator_validate_stage_list.py -test/test_paginated_authenticator_web_authn_stage_list.py -test/test_paginated_blueprint_instance_list.py -test/test_paginated_brand_list.py -test/test_paginated_captcha_stage_list.py -test/test_paginated_certificate_key_pair_list.py -test/test_paginated_connection_token_list.py -test/test_paginated_consent_stage_list.py -test/test_paginated_deny_stage_list.py -test/test_paginated_docker_service_connection_list.py -test/test_paginated_domain_list.py -test/test_paginated_dummy_policy_list.py -test/test_paginated_dummy_stage_list.py -test/test_paginated_duo_device_list.py -test/test_paginated_email_device_list.py -test/test_paginated_email_stage_list.py -test/test_paginated_endpoint_device_list.py -test/test_paginated_endpoint_list.py -test/test_paginated_event_list.py -test/test_paginated_event_matcher_policy_list.py -test/test_paginated_expiring_base_grant_model_list.py -test/test_paginated_expression_policy_list.py -test/test_paginated_extra_role_object_permission_list.py -test/test_paginated_extra_user_object_permission_list.py -test/test_paginated_flow_list.py -test/test_paginated_flow_stage_binding_list.py -test/test_paginated_geo_ip_policy_list.py -test/test_paginated_google_workspace_provider_group_list.py -test/test_paginated_google_workspace_provider_list.py -test/test_paginated_google_workspace_provider_mapping_list.py -test/test_paginated_google_workspace_provider_user_list.py -test/test_paginated_group_kerberos_source_connection_list.py -test/test_paginated_group_ldap_source_connection_list.py -test/test_paginated_group_list.py -test/test_paginated_group_o_auth_source_connection_list.py -test/test_paginated_group_plex_source_connection_list.py -test/test_paginated_group_saml_source_connection_list.py -test/test_paginated_group_source_connection_list.py -test/test_paginated_group_telegram_source_connection_list.py -test/test_paginated_identification_stage_list.py -test/test_paginated_initial_permissions_list.py -test/test_paginated_invitation_list.py -test/test_paginated_invitation_stage_list.py -test/test_paginated_kerberos_source_list.py -test/test_paginated_kerberos_source_property_mapping_list.py -test/test_paginated_kubernetes_service_connection_list.py -test/test_paginated_ldap_outpost_config_list.py -test/test_paginated_ldap_provider_list.py -test/test_paginated_ldap_source_list.py -test/test_paginated_ldap_source_property_mapping_list.py -test/test_paginated_license_list.py -test/test_paginated_microsoft_entra_provider_group_list.py -test/test_paginated_microsoft_entra_provider_list.py -test/test_paginated_microsoft_entra_provider_mapping_list.py -test/test_paginated_microsoft_entra_provider_user_list.py -test/test_paginated_mutual_tls_stage_list.py -test/test_paginated_notification_list.py -test/test_paginated_notification_rule_list.py -test/test_paginated_notification_transport_list.py -test/test_paginated_notification_webhook_mapping_list.py -test/test_paginated_o_auth2_provider_list.py -test/test_paginated_o_auth_source_list.py -test/test_paginated_o_auth_source_property_mapping_list.py -test/test_paginated_outpost_list.py -test/test_paginated_password_expiry_policy_list.py -test/test_paginated_password_policy_list.py -test/test_paginated_password_stage_list.py -test/test_paginated_permission_list.py -test/test_paginated_plex_source_list.py -test/test_paginated_plex_source_property_mapping_list.py -test/test_paginated_policy_binding_list.py -test/test_paginated_policy_list.py -test/test_paginated_prompt_list.py -test/test_paginated_prompt_stage_list.py -test/test_paginated_property_mapping_list.py -test/test_paginated_provider_list.py -test/test_paginated_proxy_outpost_config_list.py -test/test_paginated_proxy_provider_list.py -test/test_paginated_rac_property_mapping_list.py -test/test_paginated_rac_provider_list.py -test/test_paginated_radius_outpost_config_list.py -test/test_paginated_radius_provider_list.py -test/test_paginated_radius_provider_property_mapping_list.py -test/test_paginated_redirect_stage_list.py -test/test_paginated_reputation_list.py -test/test_paginated_reputation_policy_list.py -test/test_paginated_role_assigned_object_permission_list.py -test/test_paginated_role_list.py -test/test_paginated_saml_property_mapping_list.py -test/test_paginated_saml_provider_list.py -test/test_paginated_saml_source_list.py -test/test_paginated_saml_source_property_mapping_list.py -test/test_paginated_schedule_list.py -test/test_paginated_scim_mapping_list.py -test/test_paginated_scim_provider_group_list.py -test/test_paginated_scim_provider_list.py -test/test_paginated_scim_provider_user_list.py -test/test_paginated_scim_source_group_list.py -test/test_paginated_scim_source_list.py -test/test_paginated_scim_source_property_mapping_list.py -test/test_paginated_scim_source_user_list.py -test/test_paginated_scope_mapping_list.py -test/test_paginated_service_connection_list.py -test/test_paginated_sms_device_list.py -test/test_paginated_source_list.py -test/test_paginated_source_stage_list.py -test/test_paginated_ssf_provider_list.py -test/test_paginated_ssf_stream_list.py -test/test_paginated_stage_list.py -test/test_paginated_static_device_list.py -test/test_paginated_task_list.py -test/test_paginated_telegram_source_list.py -test/test_paginated_telegram_source_property_mapping_list.py -test/test_paginated_tenant_list.py -test/test_paginated_token_list.py -test/test_paginated_token_model_list.py -test/test_paginated_totp_device_list.py -test/test_paginated_unique_password_policy_list.py -test/test_paginated_user_assigned_object_permission_list.py -test/test_paginated_user_consent_list.py -test/test_paginated_user_delete_stage_list.py -test/test_paginated_user_kerberos_source_connection_list.py -test/test_paginated_user_ldap_source_connection_list.py -test/test_paginated_user_list.py -test/test_paginated_user_login_stage_list.py -test/test_paginated_user_logout_stage_list.py -test/test_paginated_user_o_auth_source_connection_list.py -test/test_paginated_user_plex_source_connection_list.py -test/test_paginated_user_saml_source_connection_list.py -test/test_paginated_user_source_connection_list.py -test/test_paginated_user_telegram_source_connection_list.py -test/test_paginated_user_write_stage_list.py -test/test_paginated_web_authn_device_list.py -test/test_paginated_web_authn_device_type_list.py -test/test_pagination.py -test/test_partial_group.py -test/test_partial_user.py -test/test_password_challenge.py -test/test_password_challenge_response_request.py -test/test_password_expiry_policy.py -test/test_password_expiry_policy_request.py -test/test_password_policy.py -test/test_password_policy_request.py -test/test_password_stage.py -test/test_password_stage_request.py -test/test_patched_application_entitlement_request.py -test/test_patched_application_request.py -test/test_patched_authenticator_duo_stage_request.py -test/test_patched_authenticator_email_stage_request.py -test/test_patched_authenticator_endpoint_gdtc_stage_request.py -test/test_patched_authenticator_sms_stage_request.py -test/test_patched_authenticator_static_stage_request.py -test/test_patched_authenticator_totp_stage_request.py -test/test_patched_authenticator_validate_stage_request.py -test/test_patched_authenticator_web_authn_stage_request.py -test/test_patched_blueprint_instance_request.py -test/test_patched_brand_request.py -test/test_patched_captcha_stage_request.py -test/test_patched_certificate_key_pair_request.py -test/test_patched_connection_token_request.py -test/test_patched_consent_stage_request.py -test/test_patched_deny_stage_request.py -test/test_patched_docker_service_connection_request.py -test/test_patched_domain_request.py -test/test_patched_dummy_policy_request.py -test/test_patched_dummy_stage_request.py -test/test_patched_duo_device_request.py -test/test_patched_email_device_request.py -test/test_patched_email_stage_request.py -test/test_patched_endpoint_device_request.py -test/test_patched_endpoint_request.py -test/test_patched_event_matcher_policy_request.py -test/test_patched_event_request.py -test/test_patched_expression_policy_request.py -test/test_patched_extra_role_object_permission_request.py -test/test_patched_extra_user_object_permission_request.py -test/test_patched_flow_request.py -test/test_patched_flow_stage_binding_request.py -test/test_patched_geo_ip_policy_request.py -test/test_patched_google_workspace_provider_mapping_request.py -test/test_patched_google_workspace_provider_request.py -test/test_patched_group_kerberos_source_connection_request.py -test/test_patched_group_ldap_source_connection_request.py -test/test_patched_group_o_auth_source_connection_request.py -test/test_patched_group_plex_source_connection_request.py -test/test_patched_group_request.py -test/test_patched_group_saml_source_connection_request.py -test/test_patched_group_source_connection_request.py -test/test_patched_group_telegram_source_connection_request.py -test/test_patched_identification_stage_request.py -test/test_patched_initial_permissions_request.py -test/test_patched_invitation_request.py -test/test_patched_invitation_stage_request.py -test/test_patched_kerberos_source_property_mapping_request.py -test/test_patched_kerberos_source_request.py -test/test_patched_kubernetes_service_connection_request.py -test/test_patched_ldap_provider_request.py -test/test_patched_ldap_source_property_mapping_request.py -test/test_patched_ldap_source_request.py -test/test_patched_license_request.py -test/test_patched_microsoft_entra_provider_mapping_request.py -test/test_patched_microsoft_entra_provider_request.py -test/test_patched_mutual_tls_stage_request.py -test/test_patched_notification_request.py -test/test_patched_notification_rule_request.py -test/test_patched_notification_transport_request.py -test/test_patched_notification_webhook_mapping_request.py -test/test_patched_o_auth2_provider_request.py -test/test_patched_o_auth_source_property_mapping_request.py -test/test_patched_o_auth_source_request.py -test/test_patched_outpost_request.py -test/test_patched_password_expiry_policy_request.py -test/test_patched_password_policy_request.py -test/test_patched_password_stage_request.py -test/test_patched_permission_assign_request.py -test/test_patched_plex_source_property_mapping_request.py -test/test_patched_plex_source_request.py -test/test_patched_policy_binding_request.py -test/test_patched_prompt_request.py -test/test_patched_prompt_stage_request.py -test/test_patched_proxy_provider_request.py -test/test_patched_rac_property_mapping_request.py -test/test_patched_rac_provider_request.py -test/test_patched_radius_provider_property_mapping_request.py -test/test_patched_radius_provider_request.py -test/test_patched_redirect_stage_request.py -test/test_patched_reputation_policy_request.py -test/test_patched_role_request.py -test/test_patched_saml_property_mapping_request.py -test/test_patched_saml_provider_request.py -test/test_patched_saml_source_property_mapping_request.py -test/test_patched_saml_source_request.py -test/test_patched_schedule_request.py -test/test_patched_scim_mapping_request.py -test/test_patched_scim_provider_request.py -test/test_patched_scim_source_group_request.py -test/test_patched_scim_source_property_mapping_request.py -test/test_patched_scim_source_request.py -test/test_patched_scim_source_user_request.py -test/test_patched_scope_mapping_request.py -test/test_patched_settings_request.py -test/test_patched_settings_request_flags.py -test/test_patched_sms_device_request.py -test/test_patched_source_stage_request.py -test/test_patched_ssf_provider_request.py -test/test_patched_static_device_request.py -test/test_patched_telegram_source_property_mapping_request.py -test/test_patched_telegram_source_request.py -test/test_patched_tenant_request.py -test/test_patched_token_request.py -test/test_patched_totp_device_request.py -test/test_patched_unique_password_policy_request.py -test/test_patched_user_delete_stage_request.py -test/test_patched_user_kerberos_source_connection_request.py -test/test_patched_user_ldap_source_connection_request.py -test/test_patched_user_login_stage_request.py -test/test_patched_user_logout_stage_request.py -test/test_patched_user_o_auth_source_connection_request.py -test/test_patched_user_plex_source_connection_request.py -test/test_patched_user_request.py -test/test_patched_user_saml_source_connection_request.py -test/test_patched_user_source_connection_request.py -test/test_patched_user_telegram_source_connection_request.py -test/test_patched_user_write_stage_request.py -test/test_patched_web_authn_device_request.py -test/test_permission.py -test/test_permission_assign_request.py -test/test_permission_assign_result.py -test/test_plex_authentication_challenge.py -test/test_plex_authentication_challenge_response_request.py -test/test_plex_source.py -test/test_plex_source_property_mapping.py -test/test_plex_source_property_mapping_request.py -test/test_plex_source_request.py -test/test_plex_token_redeem_request.py -test/test_policies_api.py -test/test_policy.py -test/test_policy_binding.py -test/test_policy_binding_request.py -test/test_policy_engine_mode.py -test/test_policy_test_request.py -test/test_policy_test_result.py -test/test_prompt.py -test/test_prompt_challenge.py -test/test_prompt_challenge_response_request.py -test/test_prompt_request.py -test/test_prompt_stage.py -test/test_prompt_stage_request.py -test/test_prompt_type_enum.py -test/test_property_mapping.py -test/test_property_mapping_preview.py -test/test_property_mapping_test_request.py -test/test_property_mapping_test_result.py -test/test_propertymappings_api.py -test/test_protocol_enum.py -test/test_provider.py -test/test_provider_enum.py -test/test_provider_model_enum.py -test/test_provider_type_enum.py -test/test_providers_api.py -test/test_proxy_mode.py -test/test_proxy_outpost_config.py -test/test_proxy_provider.py -test/test_proxy_provider_request.py -test/test_rac_api.py -test/test_rac_property_mapping.py -test/test_rac_property_mapping_request.py -test/test_rac_provider.py -test/test_rac_provider_request.py -test/test_radius_check_access.py -test/test_radius_outpost_config.py -test/test_radius_provider.py -test/test_radius_provider_property_mapping.py -test/test_radius_provider_property_mapping_request.py -test/test_radius_provider_request.py -test/test_rbac_api.py -test/test_redirect_challenge.py -test/test_redirect_challenge_response_request.py -test/test_redirect_stage.py -test/test_redirect_stage_mode_enum.py -test/test_redirect_stage_request.py -test/test_redirect_uri.py -test/test_redirect_uri_request.py -test/test_reputation.py -test/test_reputation_policy.py -test/test_reputation_policy_request.py -test/test_resident_key_requirement_enum.py -test/test_role.py -test/test_role_assigned_object_permission.py -test/test_role_object_permission.py -test/test_role_request.py -test/test_root_api.py -test/test_saml_bindings_enum.py -test/test_saml_metadata.py -test/test_saml_name_id_policy_enum.py -test/test_saml_property_mapping.py -test/test_saml_property_mapping_request.py -test/test_saml_provider.py -test/test_saml_provider_logout_method_enum.py -test/test_saml_provider_request.py -test/test_saml_source.py -test/test_saml_source_property_mapping.py -test/test_saml_source_property_mapping_request.py -test/test_saml_source_request.py -test/test_schedule.py -test/test_schedule_request.py -test/test_schema_api.py -test/test_scim_authentication_mode_enum.py -test/test_scim_mapping.py -test/test_scim_mapping_request.py -test/test_scim_provider.py -test/test_scim_provider_group.py -test/test_scim_provider_group_request.py -test/test_scim_provider_request.py -test/test_scim_provider_user.py -test/test_scim_provider_user_request.py -test/test_scim_source.py -test/test_scim_source_group.py -test/test_scim_source_group_request.py -test/test_scim_source_property_mapping.py -test/test_scim_source_property_mapping_request.py -test/test_scim_source_request.py -test/test_scim_source_user.py -test/test_scim_source_user_request.py -test/test_scope_mapping.py -test/test_scope_mapping_request.py -test/test_selectable_stage.py -test/test_service_connection.py -test/test_service_connection_state.py -test/test_session_end_challenge.py -test/test_session_user.py -test/test_settings.py -test/test_settings_request.py -test/test_severity_enum.py -test/test_shell_challenge.py -test/test_signature_algorithm_enum.py -test/test_sms_device.py -test/test_sms_device_request.py -test/test_source.py -test/test_source_stage.py -test/test_source_stage_request.py -test/test_source_type.py -test/test_sources_api.py -test/test_ssf_api.py -test/test_ssf_provider.py -test/test_ssf_provider_request.py -test/test_ssf_stream.py -test/test_stage.py -test/test_stage_prompt.py -test/test_stages_api.py -test/test_state_enum.py -test/test_static_device.py -test/test_static_device_request.py -test/test_static_device_token.py -test/test_sub_mode_enum.py -test/test_sync_object_model_enum.py -test/test_sync_object_request.py -test/test_sync_object_result.py -test/test_sync_status.py -test/test_system_info.py -test/test_system_info_runtime.py -test/test_task.py -test/test_task_aggregated_status_enum.py -test/test_tasks_api.py -test/test_telegram_challenge_response_request.py -test/test_telegram_login_challenge.py -test/test_telegram_source.py -test/test_telegram_source_property_mapping.py -test/test_telegram_source_property_mapping_request.py -test/test_telegram_source_request.py -test/test_tenant.py -test/test_tenant_admin_group_request_request.py -test/test_tenant_recovery_key_request_request.py -test/test_tenant_recovery_key_response.py -test/test_tenant_request.py -test/test_tenants_api.py -test/test_token.py -test/test_token_model.py -test/test_token_request.py -test/test_token_set_key_request.py -test/test_token_view.py -test/test_totp_device.py -test/test_totp_device_request.py -test/test_transaction_application_request.py -test/test_transaction_application_response.py -test/test_transaction_policy_binding_request.py -test/test_type_create.py -test/test_ui_theme_enum.py -test/test_unique_password_policy.py -test/test_unique_password_policy_request.py -test/test_used_by.py -test/test_used_by_action_enum.py -test/test_user.py -test/test_user_account_request.py -test/test_user_assigned_object_permission.py -test/test_user_attribute_enum.py -test/test_user_consent.py -test/test_user_creation_mode_enum.py -test/test_user_delete_stage.py -test/test_user_delete_stage_request.py -test/test_user_fields_enum.py -test/test_user_kerberos_source_connection.py -test/test_user_kerberos_source_connection_request.py -test/test_user_ldap_source_connection.py -test/test_user_ldap_source_connection_request.py -test/test_user_login_challenge.py -test/test_user_login_challenge_response_request.py -test/test_user_login_stage.py -test/test_user_login_stage_request.py -test/test_user_logout_stage.py -test/test_user_logout_stage_request.py -test/test_user_matching_mode_enum.py -test/test_user_o_auth_source_connection.py -test/test_user_o_auth_source_connection_request.py -test/test_user_object_permission.py -test/test_user_password_set_request.py -test/test_user_path.py -test/test_user_plex_source_connection.py -test/test_user_plex_source_connection_request.py -test/test_user_request.py -test/test_user_saml_source_connection.py -test/test_user_saml_source_connection_request.py -test/test_user_self.py -test/test_user_self_groups.py -test/test_user_service_account_request.py -test/test_user_service_account_response.py -test/test_user_setting.py -test/test_user_source_connection.py -test/test_user_source_connection_request.py -test/test_user_telegram_source_connection.py -test/test_user_telegram_source_connection_request.py -test/test_user_type_enum.py -test/test_user_verification_enum.py -test/test_user_write_stage.py -test/test_user_write_stage_request.py -test/test_validation_error.py -test/test_version.py -test/test_version_history.py -test/test_web_authn_device.py -test/test_web_authn_device_request.py -test/test_web_authn_device_type.py -test/test_worker.py tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 368fd8fd8..6328c5424 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.15.0 +7.17.0 diff --git a/README.md b/README.md index 4d45e18cc..530761240 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ This repo contains a generated API client to talk with authentik's API from Pyth This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2025.10.0-rc1 -- Package version: 2025.10.0-rc1-1760140185 -- Generator version: 7.15.0 +- API version: 2025.12.5 +- Package version: 2025.12.5 +- Generator version: 7.17.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -105,6 +105,10 @@ All URIs are relative to */api/v3* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AdminApi* | [**admin_apps_list**](docs/AdminApi.md#admin_apps_list) | **GET** /admin/apps/ | +*AdminApi* | [**admin_file_create**](docs/AdminApi.md#admin_file_create) | **POST** /admin/file/ | +*AdminApi* | [**admin_file_destroy**](docs/AdminApi.md#admin_file_destroy) | **DELETE** /admin/file/ | +*AdminApi* | [**admin_file_list**](docs/AdminApi.md#admin_file_list) | **GET** /admin/file/ | +*AdminApi* | [**admin_file_used_by_list**](docs/AdminApi.md#admin_file_used_by_list) | **GET** /admin/file/used_by/ | *AdminApi* | [**admin_models_list**](docs/AdminApi.md#admin_models_list) | **GET** /admin/models/ | *AdminApi* | [**admin_settings_partial_update**](docs/AdminApi.md#admin_settings_partial_update) | **PATCH** /admin/settings/ | *AdminApi* | [**admin_settings_retrieve**](docs/AdminApi.md#admin_settings_retrieve) | **GET** /admin/settings/ | @@ -210,8 +214,6 @@ Class | Method | HTTP request | Description *CoreApi* | [**core_applications_list**](docs/CoreApi.md#core_applications_list) | **GET** /core/applications/ | *CoreApi* | [**core_applications_partial_update**](docs/CoreApi.md#core_applications_partial_update) | **PATCH** /core/applications/{slug}/ | *CoreApi* | [**core_applications_retrieve**](docs/CoreApi.md#core_applications_retrieve) | **GET** /core/applications/{slug}/ | -*CoreApi* | [**core_applications_set_icon_create**](docs/CoreApi.md#core_applications_set_icon_create) | **POST** /core/applications/{slug}/set_icon/ | -*CoreApi* | [**core_applications_set_icon_url_create**](docs/CoreApi.md#core_applications_set_icon_url_create) | **POST** /core/applications/{slug}/set_icon_url/ | *CoreApi* | [**core_applications_update**](docs/CoreApi.md#core_applications_update) | **PUT** /core/applications/{slug}/ | *CoreApi* | [**core_applications_used_by_list**](docs/CoreApi.md#core_applications_used_by_list) | **GET** /core/applications/{slug}/used_by/ | *CoreApi* | [**core_authenticated_sessions_destroy**](docs/CoreApi.md#core_authenticated_sessions_destroy) | **DELETE** /core/authenticated_sessions/{uuid}/ | @@ -251,6 +253,7 @@ Class | Method | HTTP request | Description *CoreApi* | [**core_user_consent_used_by_list**](docs/CoreApi.md#core_user_consent_used_by_list) | **GET** /core/user_consent/{id}/used_by/ | *CoreApi* | [**core_users_create**](docs/CoreApi.md#core_users_create) | **POST** /core/users/ | *CoreApi* | [**core_users_destroy**](docs/CoreApi.md#core_users_destroy) | **DELETE** /core/users/{id}/ | +*CoreApi* | [**core_users_export_create**](docs/CoreApi.md#core_users_export_create) | **POST** /core/users/export/ | *CoreApi* | [**core_users_impersonate_create**](docs/CoreApi.md#core_users_impersonate_create) | **POST** /core/users/{id}/impersonate/ | *CoreApi* | [**core_users_impersonate_end_retrieve**](docs/CoreApi.md#core_users_impersonate_end_retrieve) | **GET** /core/users/impersonate_end/ | *CoreApi* | [**core_users_list**](docs/CoreApi.md#core_users_list) | **GET** /core/users/ | @@ -274,6 +277,55 @@ Class | Method | HTTP request | Description *CryptoApi* | [**crypto_certificatekeypairs_used_by_list**](docs/CryptoApi.md#crypto_certificatekeypairs_used_by_list) | **GET** /crypto/certificatekeypairs/{kp_uuid}/used_by/ | *CryptoApi* | [**crypto_certificatekeypairs_view_certificate_retrieve**](docs/CryptoApi.md#crypto_certificatekeypairs_view_certificate_retrieve) | **GET** /crypto/certificatekeypairs/{kp_uuid}/view_certificate/ | *CryptoApi* | [**crypto_certificatekeypairs_view_private_key_retrieve**](docs/CryptoApi.md#crypto_certificatekeypairs_view_private_key_retrieve) | **GET** /crypto/certificatekeypairs/{kp_uuid}/view_private_key/ | +*EndpointsApi* | [**endpoints_agents_connectors_agent_config_retrieve**](docs/EndpointsApi.md#endpoints_agents_connectors_agent_config_retrieve) | **GET** /endpoints/agents/connectors/agent_config/ | +*EndpointsApi* | [**endpoints_agents_connectors_auth_fed_create**](docs/EndpointsApi.md#endpoints_agents_connectors_auth_fed_create) | **POST** /endpoints/agents/connectors/auth_fed/ | +*EndpointsApi* | [**endpoints_agents_connectors_auth_ia_create**](docs/EndpointsApi.md#endpoints_agents_connectors_auth_ia_create) | **POST** /endpoints/agents/connectors/auth_ia/ | +*EndpointsApi* | [**endpoints_agents_connectors_check_in_create**](docs/EndpointsApi.md#endpoints_agents_connectors_check_in_create) | **POST** /endpoints/agents/connectors/check_in/ | +*EndpointsApi* | [**endpoints_agents_connectors_create**](docs/EndpointsApi.md#endpoints_agents_connectors_create) | **POST** /endpoints/agents/connectors/ | +*EndpointsApi* | [**endpoints_agents_connectors_destroy**](docs/EndpointsApi.md#endpoints_agents_connectors_destroy) | **DELETE** /endpoints/agents/connectors/{connector_uuid}/ | +*EndpointsApi* | [**endpoints_agents_connectors_enroll_create**](docs/EndpointsApi.md#endpoints_agents_connectors_enroll_create) | **POST** /endpoints/agents/connectors/enroll/ | +*EndpointsApi* | [**endpoints_agents_connectors_list**](docs/EndpointsApi.md#endpoints_agents_connectors_list) | **GET** /endpoints/agents/connectors/ | +*EndpointsApi* | [**endpoints_agents_connectors_mdm_config_create**](docs/EndpointsApi.md#endpoints_agents_connectors_mdm_config_create) | **POST** /endpoints/agents/connectors/{connector_uuid}/mdm_config/ | +*EndpointsApi* | [**endpoints_agents_connectors_partial_update**](docs/EndpointsApi.md#endpoints_agents_connectors_partial_update) | **PATCH** /endpoints/agents/connectors/{connector_uuid}/ | +*EndpointsApi* | [**endpoints_agents_connectors_retrieve**](docs/EndpointsApi.md#endpoints_agents_connectors_retrieve) | **GET** /endpoints/agents/connectors/{connector_uuid}/ | +*EndpointsApi* | [**endpoints_agents_connectors_update**](docs/EndpointsApi.md#endpoints_agents_connectors_update) | **PUT** /endpoints/agents/connectors/{connector_uuid}/ | +*EndpointsApi* | [**endpoints_agents_connectors_used_by_list**](docs/EndpointsApi.md#endpoints_agents_connectors_used_by_list) | **GET** /endpoints/agents/connectors/{connector_uuid}/used_by/ | +*EndpointsApi* | [**endpoints_agents_enrollment_tokens_create**](docs/EndpointsApi.md#endpoints_agents_enrollment_tokens_create) | **POST** /endpoints/agents/enrollment_tokens/ | +*EndpointsApi* | [**endpoints_agents_enrollment_tokens_destroy**](docs/EndpointsApi.md#endpoints_agents_enrollment_tokens_destroy) | **DELETE** /endpoints/agents/enrollment_tokens/{token_uuid}/ | +*EndpointsApi* | [**endpoints_agents_enrollment_tokens_list**](docs/EndpointsApi.md#endpoints_agents_enrollment_tokens_list) | **GET** /endpoints/agents/enrollment_tokens/ | +*EndpointsApi* | [**endpoints_agents_enrollment_tokens_partial_update**](docs/EndpointsApi.md#endpoints_agents_enrollment_tokens_partial_update) | **PATCH** /endpoints/agents/enrollment_tokens/{token_uuid}/ | +*EndpointsApi* | [**endpoints_agents_enrollment_tokens_retrieve**](docs/EndpointsApi.md#endpoints_agents_enrollment_tokens_retrieve) | **GET** /endpoints/agents/enrollment_tokens/{token_uuid}/ | +*EndpointsApi* | [**endpoints_agents_enrollment_tokens_update**](docs/EndpointsApi.md#endpoints_agents_enrollment_tokens_update) | **PUT** /endpoints/agents/enrollment_tokens/{token_uuid}/ | +*EndpointsApi* | [**endpoints_agents_enrollment_tokens_used_by_list**](docs/EndpointsApi.md#endpoints_agents_enrollment_tokens_used_by_list) | **GET** /endpoints/agents/enrollment_tokens/{token_uuid}/used_by/ | +*EndpointsApi* | [**endpoints_agents_enrollment_tokens_view_key_retrieve**](docs/EndpointsApi.md#endpoints_agents_enrollment_tokens_view_key_retrieve) | **GET** /endpoints/agents/enrollment_tokens/{token_uuid}/view_key/ | +*EndpointsApi* | [**endpoints_agents_psso_register_device_create**](docs/EndpointsApi.md#endpoints_agents_psso_register_device_create) | **POST** /endpoints/agents/psso/register/device/ | +*EndpointsApi* | [**endpoints_agents_psso_register_user_create**](docs/EndpointsApi.md#endpoints_agents_psso_register_user_create) | **POST** /endpoints/agents/psso/register/user/ | +*EndpointsApi* | [**endpoints_connectors_destroy**](docs/EndpointsApi.md#endpoints_connectors_destroy) | **DELETE** /endpoints/connectors/{connector_uuid}/ | +*EndpointsApi* | [**endpoints_connectors_list**](docs/EndpointsApi.md#endpoints_connectors_list) | **GET** /endpoints/connectors/ | +*EndpointsApi* | [**endpoints_connectors_retrieve**](docs/EndpointsApi.md#endpoints_connectors_retrieve) | **GET** /endpoints/connectors/{connector_uuid}/ | +*EndpointsApi* | [**endpoints_connectors_types_list**](docs/EndpointsApi.md#endpoints_connectors_types_list) | **GET** /endpoints/connectors/types/ | +*EndpointsApi* | [**endpoints_connectors_used_by_list**](docs/EndpointsApi.md#endpoints_connectors_used_by_list) | **GET** /endpoints/connectors/{connector_uuid}/used_by/ | +*EndpointsApi* | [**endpoints_device_access_groups_create**](docs/EndpointsApi.md#endpoints_device_access_groups_create) | **POST** /endpoints/device_access_groups/ | +*EndpointsApi* | [**endpoints_device_access_groups_destroy**](docs/EndpointsApi.md#endpoints_device_access_groups_destroy) | **DELETE** /endpoints/device_access_groups/{pbm_uuid}/ | +*EndpointsApi* | [**endpoints_device_access_groups_list**](docs/EndpointsApi.md#endpoints_device_access_groups_list) | **GET** /endpoints/device_access_groups/ | +*EndpointsApi* | [**endpoints_device_access_groups_partial_update**](docs/EndpointsApi.md#endpoints_device_access_groups_partial_update) | **PATCH** /endpoints/device_access_groups/{pbm_uuid}/ | +*EndpointsApi* | [**endpoints_device_access_groups_retrieve**](docs/EndpointsApi.md#endpoints_device_access_groups_retrieve) | **GET** /endpoints/device_access_groups/{pbm_uuid}/ | +*EndpointsApi* | [**endpoints_device_access_groups_update**](docs/EndpointsApi.md#endpoints_device_access_groups_update) | **PUT** /endpoints/device_access_groups/{pbm_uuid}/ | +*EndpointsApi* | [**endpoints_device_access_groups_used_by_list**](docs/EndpointsApi.md#endpoints_device_access_groups_used_by_list) | **GET** /endpoints/device_access_groups/{pbm_uuid}/used_by/ | +*EndpointsApi* | [**endpoints_device_bindings_create**](docs/EndpointsApi.md#endpoints_device_bindings_create) | **POST** /endpoints/device_bindings/ | +*EndpointsApi* | [**endpoints_device_bindings_destroy**](docs/EndpointsApi.md#endpoints_device_bindings_destroy) | **DELETE** /endpoints/device_bindings/{policy_binding_uuid}/ | +*EndpointsApi* | [**endpoints_device_bindings_list**](docs/EndpointsApi.md#endpoints_device_bindings_list) | **GET** /endpoints/device_bindings/ | +*EndpointsApi* | [**endpoints_device_bindings_partial_update**](docs/EndpointsApi.md#endpoints_device_bindings_partial_update) | **PATCH** /endpoints/device_bindings/{policy_binding_uuid}/ | +*EndpointsApi* | [**endpoints_device_bindings_retrieve**](docs/EndpointsApi.md#endpoints_device_bindings_retrieve) | **GET** /endpoints/device_bindings/{policy_binding_uuid}/ | +*EndpointsApi* | [**endpoints_device_bindings_update**](docs/EndpointsApi.md#endpoints_device_bindings_update) | **PUT** /endpoints/device_bindings/{policy_binding_uuid}/ | +*EndpointsApi* | [**endpoints_device_bindings_used_by_list**](docs/EndpointsApi.md#endpoints_device_bindings_used_by_list) | **GET** /endpoints/device_bindings/{policy_binding_uuid}/used_by/ | +*EndpointsApi* | [**endpoints_devices_destroy**](docs/EndpointsApi.md#endpoints_devices_destroy) | **DELETE** /endpoints/devices/{device_uuid}/ | +*EndpointsApi* | [**endpoints_devices_list**](docs/EndpointsApi.md#endpoints_devices_list) | **GET** /endpoints/devices/ | +*EndpointsApi* | [**endpoints_devices_partial_update**](docs/EndpointsApi.md#endpoints_devices_partial_update) | **PATCH** /endpoints/devices/{device_uuid}/ | +*EndpointsApi* | [**endpoints_devices_retrieve**](docs/EndpointsApi.md#endpoints_devices_retrieve) | **GET** /endpoints/devices/{device_uuid}/ | +*EndpointsApi* | [**endpoints_devices_summary_retrieve**](docs/EndpointsApi.md#endpoints_devices_summary_retrieve) | **GET** /endpoints/devices/summary/ | +*EndpointsApi* | [**endpoints_devices_update**](docs/EndpointsApi.md#endpoints_devices_update) | **PUT** /endpoints/devices/{device_uuid}/ | +*EndpointsApi* | [**endpoints_devices_used_by_list**](docs/EndpointsApi.md#endpoints_devices_used_by_list) | **GET** /endpoints/devices/{device_uuid}/used_by/ | *EnterpriseApi* | [**enterprise_license_create**](docs/EnterpriseApi.md#enterprise_license_create) | **POST** /enterprise/license/ | *EnterpriseApi* | [**enterprise_license_destroy**](docs/EnterpriseApi.md#enterprise_license_destroy) | **DELETE** /enterprise/license/{license_uuid}/ | *EnterpriseApi* | [**enterprise_license_forecast_retrieve**](docs/EnterpriseApi.md#enterprise_license_forecast_retrieve) | **GET** /enterprise/license/forecast/ | @@ -287,6 +339,7 @@ Class | Method | HTTP request | Description *EventsApi* | [**events_events_actions_list**](docs/EventsApi.md#events_events_actions_list) | **GET** /events/events/actions/ | *EventsApi* | [**events_events_create**](docs/EventsApi.md#events_events_create) | **POST** /events/events/ | *EventsApi* | [**events_events_destroy**](docs/EventsApi.md#events_events_destroy) | **DELETE** /events/events/{event_uuid}/ | +*EventsApi* | [**events_events_export_create**](docs/EventsApi.md#events_events_export_create) | **POST** /events/events/export/ | *EventsApi* | [**events_events_list**](docs/EventsApi.md#events_events_list) | **GET** /events/events/ | *EventsApi* | [**events_events_partial_update**](docs/EventsApi.md#events_events_partial_update) | **PATCH** /events/events/{event_uuid}/ | *EventsApi* | [**events_events_retrieve**](docs/EventsApi.md#events_events_retrieve) | **GET** /events/events/{event_uuid}/ | @@ -336,8 +389,6 @@ Class | Method | HTTP request | Description *FlowsApi* | [**flows_instances_list**](docs/FlowsApi.md#flows_instances_list) | **GET** /flows/instances/ | *FlowsApi* | [**flows_instances_partial_update**](docs/FlowsApi.md#flows_instances_partial_update) | **PATCH** /flows/instances/{slug}/ | *FlowsApi* | [**flows_instances_retrieve**](docs/FlowsApi.md#flows_instances_retrieve) | **GET** /flows/instances/{slug}/ | -*FlowsApi* | [**flows_instances_set_background_create**](docs/FlowsApi.md#flows_instances_set_background_create) | **POST** /flows/instances/{slug}/set_background/ | -*FlowsApi* | [**flows_instances_set_background_url_create**](docs/FlowsApi.md#flows_instances_set_background_url_create) | **POST** /flows/instances/{slug}/set_background_url/ | *FlowsApi* | [**flows_instances_update**](docs/FlowsApi.md#flows_instances_update) | **PUT** /flows/instances/{slug}/ | *FlowsApi* | [**flows_instances_used_by_list**](docs/FlowsApi.md#flows_instances_used_by_list) | **GET** /flows/instances/{slug}/used_by/ | *ManagedApi* | [**managed_blueprints_apply_create**](docs/ManagedApi.md#managed_blueprints_apply_create) | **POST** /managed/blueprints/{instance_uuid}/apply/ | @@ -721,35 +772,26 @@ Class | Method | HTTP request | Description *RbacApi* | [**rbac_permissions_assigned_by_roles_assign**](docs/RbacApi.md#rbac_permissions_assigned_by_roles_assign) | **POST** /rbac/permissions/assigned_by_roles/{uuid}/assign/ | *RbacApi* | [**rbac_permissions_assigned_by_roles_list**](docs/RbacApi.md#rbac_permissions_assigned_by_roles_list) | **GET** /rbac/permissions/assigned_by_roles/ | *RbacApi* | [**rbac_permissions_assigned_by_roles_unassign_partial_update**](docs/RbacApi.md#rbac_permissions_assigned_by_roles_unassign_partial_update) | **PATCH** /rbac/permissions/assigned_by_roles/{uuid}/unassign/ | -*RbacApi* | [**rbac_permissions_assigned_by_users_assign**](docs/RbacApi.md#rbac_permissions_assigned_by_users_assign) | **POST** /rbac/permissions/assigned_by_users/{id}/assign/ | -*RbacApi* | [**rbac_permissions_assigned_by_users_list**](docs/RbacApi.md#rbac_permissions_assigned_by_users_list) | **GET** /rbac/permissions/assigned_by_users/ | -*RbacApi* | [**rbac_permissions_assigned_by_users_unassign_partial_update**](docs/RbacApi.md#rbac_permissions_assigned_by_users_unassign_partial_update) | **PATCH** /rbac/permissions/assigned_by_users/{id}/unassign/ | *RbacApi* | [**rbac_permissions_list**](docs/RbacApi.md#rbac_permissions_list) | **GET** /rbac/permissions/ | *RbacApi* | [**rbac_permissions_retrieve**](docs/RbacApi.md#rbac_permissions_retrieve) | **GET** /rbac/permissions/{id}/ | -*RbacApi* | [**rbac_permissions_roles_destroy**](docs/RbacApi.md#rbac_permissions_roles_destroy) | **DELETE** /rbac/permissions/roles/{id}/ | *RbacApi* | [**rbac_permissions_roles_list**](docs/RbacApi.md#rbac_permissions_roles_list) | **GET** /rbac/permissions/roles/ | -*RbacApi* | [**rbac_permissions_roles_partial_update**](docs/RbacApi.md#rbac_permissions_roles_partial_update) | **PATCH** /rbac/permissions/roles/{id}/ | -*RbacApi* | [**rbac_permissions_roles_retrieve**](docs/RbacApi.md#rbac_permissions_roles_retrieve) | **GET** /rbac/permissions/roles/{id}/ | -*RbacApi* | [**rbac_permissions_roles_update**](docs/RbacApi.md#rbac_permissions_roles_update) | **PUT** /rbac/permissions/roles/{id}/ | -*RbacApi* | [**rbac_permissions_users_destroy**](docs/RbacApi.md#rbac_permissions_users_destroy) | **DELETE** /rbac/permissions/users/{id}/ | -*RbacApi* | [**rbac_permissions_users_list**](docs/RbacApi.md#rbac_permissions_users_list) | **GET** /rbac/permissions/users/ | -*RbacApi* | [**rbac_permissions_users_partial_update**](docs/RbacApi.md#rbac_permissions_users_partial_update) | **PATCH** /rbac/permissions/users/{id}/ | -*RbacApi* | [**rbac_permissions_users_retrieve**](docs/RbacApi.md#rbac_permissions_users_retrieve) | **GET** /rbac/permissions/users/{id}/ | -*RbacApi* | [**rbac_permissions_users_update**](docs/RbacApi.md#rbac_permissions_users_update) | **PUT** /rbac/permissions/users/{id}/ | +*RbacApi* | [**rbac_roles_add_user_create**](docs/RbacApi.md#rbac_roles_add_user_create) | **POST** /rbac/roles/{uuid}/add_user/ | *RbacApi* | [**rbac_roles_create**](docs/RbacApi.md#rbac_roles_create) | **POST** /rbac/roles/ | *RbacApi* | [**rbac_roles_destroy**](docs/RbacApi.md#rbac_roles_destroy) | **DELETE** /rbac/roles/{uuid}/ | *RbacApi* | [**rbac_roles_list**](docs/RbacApi.md#rbac_roles_list) | **GET** /rbac/roles/ | *RbacApi* | [**rbac_roles_partial_update**](docs/RbacApi.md#rbac_roles_partial_update) | **PATCH** /rbac/roles/{uuid}/ | +*RbacApi* | [**rbac_roles_remove_user_create**](docs/RbacApi.md#rbac_roles_remove_user_create) | **POST** /rbac/roles/{uuid}/remove_user/ | *RbacApi* | [**rbac_roles_retrieve**](docs/RbacApi.md#rbac_roles_retrieve) | **GET** /rbac/roles/{uuid}/ | *RbacApi* | [**rbac_roles_update**](docs/RbacApi.md#rbac_roles_update) | **PUT** /rbac/roles/{uuid}/ | *RbacApi* | [**rbac_roles_used_by_list**](docs/RbacApi.md#rbac_roles_used_by_list) | **GET** /rbac/roles/{uuid}/used_by/ | +*ReportsApi* | [**reports_exports_destroy**](docs/ReportsApi.md#reports_exports_destroy) | **DELETE** /reports/exports/{id}/ | +*ReportsApi* | [**reports_exports_list**](docs/ReportsApi.md#reports_exports_list) | **GET** /reports/exports/ | +*ReportsApi* | [**reports_exports_retrieve**](docs/ReportsApi.md#reports_exports_retrieve) | **GET** /reports/exports/{id}/ | *RootApi* | [**root_config_retrieve**](docs/RootApi.md#root_config_retrieve) | **GET** /root/config/ | *SchemaApi* | [**schema_retrieve**](docs/SchemaApi.md#schema_retrieve) | **GET** /schema/ | *SourcesApi* | [**sources_all_destroy**](docs/SourcesApi.md#sources_all_destroy) | **DELETE** /sources/all/{slug}/ | *SourcesApi* | [**sources_all_list**](docs/SourcesApi.md#sources_all_list) | **GET** /sources/all/ | *SourcesApi* | [**sources_all_retrieve**](docs/SourcesApi.md#sources_all_retrieve) | **GET** /sources/all/{slug}/ | -*SourcesApi* | [**sources_all_set_icon_create**](docs/SourcesApi.md#sources_all_set_icon_create) | **POST** /sources/all/{slug}/set_icon/ | -*SourcesApi* | [**sources_all_set_icon_url_create**](docs/SourcesApi.md#sources_all_set_icon_url_create) | **POST** /sources/all/{slug}/set_icon_url/ | *SourcesApi* | [**sources_all_types_list**](docs/SourcesApi.md#sources_all_types_list) | **GET** /sources/all/types/ | *SourcesApi* | [**sources_all_used_by_list**](docs/SourcesApi.md#sources_all_used_by_list) | **GET** /sources/all/{slug}/used_by/ | *SourcesApi* | [**sources_all_user_settings_list**](docs/SourcesApi.md#sources_all_user_settings_list) | **GET** /sources/all/user_settings/ | @@ -864,6 +906,7 @@ Class | Method | HTTP request | Description *SourcesApi* | [**sources_scim_users_retrieve**](docs/SourcesApi.md#sources_scim_users_retrieve) | **GET** /sources/scim_users/{id}/ | *SourcesApi* | [**sources_scim_users_update**](docs/SourcesApi.md#sources_scim_users_update) | **PUT** /sources/scim_users/{id}/ | *SourcesApi* | [**sources_scim_users_used_by_list**](docs/SourcesApi.md#sources_scim_users_used_by_list) | **GET** /sources/scim_users/{id}/used_by/ | +*SourcesApi* | [**sources_telegram_connect_user_create**](docs/SourcesApi.md#sources_telegram_connect_user_create) | **POST** /sources/telegram/{slug}/connect_user/ | *SourcesApi* | [**sources_telegram_create**](docs/SourcesApi.md#sources_telegram_create) | **POST** /sources/telegram/ | *SourcesApi* | [**sources_telegram_destroy**](docs/SourcesApi.md#sources_telegram_destroy) | **DELETE** /sources/telegram/{slug}/ | *SourcesApi* | [**sources_telegram_list**](docs/SourcesApi.md#sources_telegram_list) | **GET** /sources/telegram/ | @@ -1024,6 +1067,13 @@ Class | Method | HTTP request | Description *StagesApi* | [**stages_email_templates_list**](docs/StagesApi.md#stages_email_templates_list) | **GET** /stages/email/templates/ | *StagesApi* | [**stages_email_update**](docs/StagesApi.md#stages_email_update) | **PUT** /stages/email/{stage_uuid}/ | *StagesApi* | [**stages_email_used_by_list**](docs/StagesApi.md#stages_email_used_by_list) | **GET** /stages/email/{stage_uuid}/used_by/ | +*StagesApi* | [**stages_endpoints_create**](docs/StagesApi.md#stages_endpoints_create) | **POST** /stages/endpoints/ | +*StagesApi* | [**stages_endpoints_destroy**](docs/StagesApi.md#stages_endpoints_destroy) | **DELETE** /stages/endpoints/{stage_uuid}/ | +*StagesApi* | [**stages_endpoints_list**](docs/StagesApi.md#stages_endpoints_list) | **GET** /stages/endpoints/ | +*StagesApi* | [**stages_endpoints_partial_update**](docs/StagesApi.md#stages_endpoints_partial_update) | **PATCH** /stages/endpoints/{stage_uuid}/ | +*StagesApi* | [**stages_endpoints_retrieve**](docs/StagesApi.md#stages_endpoints_retrieve) | **GET** /stages/endpoints/{stage_uuid}/ | +*StagesApi* | [**stages_endpoints_update**](docs/StagesApi.md#stages_endpoints_update) | **PUT** /stages/endpoints/{stage_uuid}/ | +*StagesApi* | [**stages_endpoints_used_by_list**](docs/StagesApi.md#stages_endpoints_used_by_list) | **GET** /stages/endpoints/{stage_uuid}/used_by/ | *StagesApi* | [**stages_identification_create**](docs/StagesApi.md#stages_identification_create) | **POST** /stages/identification/ | *StagesApi* | [**stages_identification_destroy**](docs/StagesApi.md#stages_identification_destroy) | **DELETE** /stages/identification/{stage_uuid}/ | *StagesApi* | [**stages_identification_list**](docs/StagesApi.md#stages_identification_list) | **GET** /stages/identification/ | @@ -1145,6 +1195,14 @@ Class | Method | HTTP request | Description ## Documentation For Models - [AccessDeniedChallenge](docs/AccessDeniedChallenge.md) + - [AgentAuthenticationResponse](docs/AgentAuthenticationResponse.md) + - [AgentConfig](docs/AgentConfig.md) + - [AgentConnector](docs/AgentConnector.md) + - [AgentConnectorRequest](docs/AgentConnectorRequest.md) + - [AgentPSSODeviceRegistrationRequest](docs/AgentPSSODeviceRegistrationRequest.md) + - [AgentPSSODeviceRegistrationResponse](docs/AgentPSSODeviceRegistrationResponse.md) + - [AgentPSSOUserRegistrationRequest](docs/AgentPSSOUserRegistrationRequest.md) + - [AgentTokenResponse](docs/AgentTokenResponse.md) - [AlgEnum](docs/AlgEnum.md) - [App](docs/App.md) - [AppEnum](docs/AppEnum.md) @@ -1224,17 +1282,20 @@ Class | Method | HTTP request | Description - [Config](docs/Config.md) - [ConnectionToken](docs/ConnectionToken.md) - [ConnectionTokenRequest](docs/ConnectionTokenRequest.md) + - [Connector](docs/Connector.md) - [ConsentChallenge](docs/ConsentChallenge.md) - [ConsentChallengeResponseRequest](docs/ConsentChallengeResponseRequest.md) - [ConsentPermission](docs/ConsentPermission.md) - [ConsentStage](docs/ConsentStage.md) - [ConsentStageModeEnum](docs/ConsentStageModeEnum.md) - [ConsentStageRequest](docs/ConsentStageRequest.md) + - [ContentType](docs/ContentType.md) - [ContextualFlowInfo](docs/ContextualFlowInfo.md) - [ContextualFlowInfoLayoutEnum](docs/ContextualFlowInfoLayoutEnum.md) - [CountryCodeEnum](docs/CountryCodeEnum.md) - [CurrentBrand](docs/CurrentBrand.md) - [CurrentBrandFlags](docs/CurrentBrandFlags.md) + - [DataExport](docs/DataExport.md) - [DeliveryMethodEnum](docs/DeliveryMethodEnum.md) - [DeniedActionEnum](docs/DeniedActionEnum.md) - [DenyStage](docs/DenyStage.md) @@ -1242,11 +1303,27 @@ Class | Method | HTTP request | Description - [DetailedCountry](docs/DetailedCountry.md) - [DetailedCountryField](docs/DetailedCountryField.md) - [Device](docs/Device.md) + - [DeviceAccessGroup](docs/DeviceAccessGroup.md) + - [DeviceAccessGroupRequest](docs/DeviceAccessGroupRequest.md) - [DeviceChallenge](docs/DeviceChallenge.md) - [DeviceChallengeRequest](docs/DeviceChallengeRequest.md) - [DeviceClassesEnum](docs/DeviceClassesEnum.md) + - [DeviceConnection](docs/DeviceConnection.md) + - [DeviceFactSnapshot](docs/DeviceFactSnapshot.md) + - [DeviceFacts](docs/DeviceFacts.md) + - [DeviceFactsOSFamily](docs/DeviceFactsOSFamily.md) + - [DeviceFactsRequest](docs/DeviceFactsRequest.md) + - [DeviceGroup](docs/DeviceGroup.md) + - [DeviceGroupRequest](docs/DeviceGroupRequest.md) + - [DeviceSummary](docs/DeviceSummary.md) + - [DeviceUser](docs/DeviceUser.md) + - [DeviceUserBinding](docs/DeviceUserBinding.md) + - [DeviceUserBindingRequest](docs/DeviceUserBindingRequest.md) + - [DeviceUserRequest](docs/DeviceUserRequest.md) - [DigestAlgorithmEnum](docs/DigestAlgorithmEnum.md) - [DigitsEnum](docs/DigitsEnum.md) + - [Disk](docs/Disk.md) + - [DiskRequest](docs/DiskRequest.md) - [DockerServiceConnection](docs/DockerServiceConnection.md) - [DockerServiceConnectionRequest](docs/DockerServiceConnectionRequest.md) - [Domain](docs/Domain.md) @@ -1268,10 +1345,18 @@ Class | Method | HTTP request | Description - [EmailStage](docs/EmailStage.md) - [EmailStageRequest](docs/EmailStageRequest.md) - [Endpoint](docs/Endpoint.md) + - [EndpointAgentChallenge](docs/EndpointAgentChallenge.md) + - [EndpointAgentChallengeResponseRequest](docs/EndpointAgentChallengeResponseRequest.md) - [EndpointAuthModeEnum](docs/EndpointAuthModeEnum.md) - [EndpointDevice](docs/EndpointDevice.md) + - [EndpointDeviceDetails](docs/EndpointDeviceDetails.md) - [EndpointDeviceRequest](docs/EndpointDeviceRequest.md) - [EndpointRequest](docs/EndpointRequest.md) + - [EndpointStage](docs/EndpointStage.md) + - [EndpointStageRequest](docs/EndpointStageRequest.md) + - [EnrollRequest](docs/EnrollRequest.md) + - [EnrollmentToken](docs/EnrollmentToken.md) + - [EnrollmentTokenRequest](docs/EnrollmentTokenRequest.md) - [ErrorDetail](docs/ErrorDetail.md) - [ErrorReportingConfig](docs/ErrorReportingConfig.md) - [Event](docs/Event.md) @@ -1286,10 +1371,7 @@ Class | Method | HTTP request | Description - [ExpressionPolicy](docs/ExpressionPolicy.md) - [ExpressionPolicyRequest](docs/ExpressionPolicyRequest.md) - [ExtraRoleObjectPermission](docs/ExtraRoleObjectPermission.md) - - [ExtraRoleObjectPermissionRequest](docs/ExtraRoleObjectPermissionRequest.md) - - [ExtraUserObjectPermission](docs/ExtraUserObjectPermission.md) - - [ExtraUserObjectPermissionRequest](docs/ExtraUserObjectPermissionRequest.md) - - [FilePathRequest](docs/FilePathRequest.md) + - [FileList](docs/FileList.md) - [Flow](docs/Flow.md) - [FlowChallengeResponseRequest](docs/FlowChallengeResponseRequest.md) - [FlowDesignationEnum](docs/FlowDesignationEnum.md) @@ -1301,7 +1383,6 @@ Class | Method | HTTP request | Description - [FlowLayoutEnum](docs/FlowLayoutEnum.md) - [FlowRequest](docs/FlowRequest.md) - [FlowSet](docs/FlowSet.md) - - [FlowSetRequest](docs/FlowSetRequest.md) - [FlowStageBinding](docs/FlowStageBinding.md) - [FlowStageBindingRequest](docs/FlowStageBindingRequest.md) - [FooterLink](docs/FooterLink.md) @@ -1312,6 +1393,8 @@ Class | Method | HTTP request | Description - [GeoIPPolicyRequest](docs/GeoIPPolicyRequest.md) - [GeoipBindingEnum](docs/GeoipBindingEnum.md) - [GlobalTaskStatus](docs/GlobalTaskStatus.md) + - [GoogleEndpointDevice](docs/GoogleEndpointDevice.md) + - [GoogleEndpointDeviceRequest](docs/GoogleEndpointDeviceRequest.md) - [GoogleWorkspaceProvider](docs/GoogleWorkspaceProvider.md) - [GoogleWorkspaceProviderGroup](docs/GoogleWorkspaceProviderGroup.md) - [GoogleWorkspaceProviderGroupRequest](docs/GoogleWorkspaceProviderGroupRequest.md) @@ -1321,7 +1404,6 @@ Class | Method | HTTP request | Description - [GoogleWorkspaceProviderUser](docs/GoogleWorkspaceProviderUser.md) - [GoogleWorkspaceProviderUserRequest](docs/GoogleWorkspaceProviderUserRequest.md) - [Group](docs/Group.md) - - [GroupChild](docs/GroupChild.md) - [GroupKerberosSourceConnection](docs/GroupKerberosSourceConnection.md) - [GroupKerberosSourceConnectionRequest](docs/GroupKerberosSourceConnectionRequest.md) - [GroupLDAPSourceConnection](docs/GroupLDAPSourceConnection.md) @@ -1338,6 +1420,8 @@ Class | Method | HTTP request | Description - [GroupSourceConnectionRequest](docs/GroupSourceConnectionRequest.md) - [GroupTelegramSourceConnection](docs/GroupTelegramSourceConnection.md) - [GroupTelegramSourceConnectionRequest](docs/GroupTelegramSourceConnectionRequest.md) + - [Hardware](docs/Hardware.md) + - [HardwareRequest](docs/HardwareRequest.md) - [IdentificationChallenge](docs/IdentificationChallenge.md) - [IdentificationChallengeResponseRequest](docs/IdentificationChallengeResponseRequest.md) - [IdentificationStage](docs/IdentificationStage.md) @@ -1346,7 +1430,6 @@ Class | Method | HTTP request | Description - [IframeLogoutChallengeResponseRequest](docs/IframeLogoutChallengeResponseRequest.md) - [ImpersonationRequest](docs/ImpersonationRequest.md) - [InitialPermissions](docs/InitialPermissions.md) - - [InitialPermissionsModeEnum](docs/InitialPermissionsModeEnum.md) - [InitialPermissionsRequest](docs/InitialPermissionsRequest.md) - [InstallID](docs/InstallID.md) - [IntentEnum](docs/IntentEnum.md) @@ -1361,6 +1444,7 @@ Class | Method | HTTP request | Description - [KerberosSourcePropertyMapping](docs/KerberosSourcePropertyMapping.md) - [KerberosSourcePropertyMappingRequest](docs/KerberosSourcePropertyMappingRequest.md) - [KerberosSourceRequest](docs/KerberosSourceRequest.md) + - [KeyTypeEnum](docs/KeyTypeEnum.md) - [KubernetesServiceConnection](docs/KubernetesServiceConnection.md) - [KubernetesServiceConnectionRequest](docs/KubernetesServiceConnectionRequest.md) - [LDAPAPIAccessMode](docs/LDAPAPIAccessMode.md) @@ -1378,6 +1462,7 @@ Class | Method | HTTP request | Description - [LicenseFlagsEnum](docs/LicenseFlagsEnum.md) - [LicenseForecast](docs/LicenseForecast.md) - [LicenseRequest](docs/LicenseRequest.md) + - [LicenseStatusEnum](docs/LicenseStatusEnum.md) - [LicenseSummary](docs/LicenseSummary.md) - [LicenseSummaryStatusEnum](docs/LicenseSummaryStatusEnum.md) - [Link](docs/Link.md) @@ -1385,6 +1470,8 @@ Class | Method | HTTP request | Description - [LogLevelEnum](docs/LogLevelEnum.md) - [LoginChallengeTypes](docs/LoginChallengeTypes.md) - [LoginSource](docs/LoginSource.md) + - [MDMConfigRequest](docs/MDMConfigRequest.md) + - [MDMConfigResponse](docs/MDMConfigResponse.md) - [MatchingModeEnum](docs/MatchingModeEnum.md) - [Metadata](docs/Metadata.md) - [MicrosoftEntraProvider](docs/MicrosoftEntraProvider.md) @@ -1398,11 +1485,14 @@ Class | Method | HTTP request | Description - [ModelEnum](docs/ModelEnum.md) - [ModelRequest](docs/ModelRequest.md) - [MutualTLSStage](docs/MutualTLSStage.md) - - [MutualTLSStageModeEnum](docs/MutualTLSStageModeEnum.md) - [MutualTLSStageRequest](docs/MutualTLSStageRequest.md) - [NativeLogoutChallenge](docs/NativeLogoutChallenge.md) - [NativeLogoutChallengeResponseRequest](docs/NativeLogoutChallengeResponseRequest.md) + - [Network](docs/Network.md) - [NetworkBindingEnum](docs/NetworkBindingEnum.md) + - [NetworkInterface](docs/NetworkInterface.md) + - [NetworkInterfaceRequest](docs/NetworkInterfaceRequest.md) + - [NetworkRequest](docs/NetworkRequest.md) - [NotConfiguredActionEnum](docs/NotConfiguredActionEnum.md) - [Notification](docs/Notification.md) - [NotificationRequest](docs/NotificationRequest.md) @@ -1427,12 +1517,16 @@ Class | Method | HTTP request | Description - [OAuthSourcePropertyMappingRequest](docs/OAuthSourcePropertyMappingRequest.md) - [OAuthSourceRequest](docs/OAuthSourceRequest.md) - [OpenIDConnectConfiguration](docs/OpenIDConnectConfiguration.md) + - [OperatingSystem](docs/OperatingSystem.md) + - [OperatingSystemRequest](docs/OperatingSystemRequest.md) - [OutgoingSyncDeleteAction](docs/OutgoingSyncDeleteAction.md) - [Outpost](docs/Outpost.md) - [OutpostDefaultConfig](docs/OutpostDefaultConfig.md) - [OutpostHealth](docs/OutpostHealth.md) - [OutpostRequest](docs/OutpostRequest.md) - [OutpostTypeEnum](docs/OutpostTypeEnum.md) + - [PKCEMethodEnum](docs/PKCEMethodEnum.md) + - [PaginatedAgentConnectorList](docs/PaginatedAgentConnectorList.md) - [PaginatedApplicationEntitlementList](docs/PaginatedApplicationEntitlementList.md) - [PaginatedApplicationList](docs/PaginatedApplicationList.md) - [PaginatedAuthenticatedSessionList](docs/PaginatedAuthenticatedSessionList.md) @@ -1449,8 +1543,12 @@ Class | Method | HTTP request | Description - [PaginatedCaptchaStageList](docs/PaginatedCaptchaStageList.md) - [PaginatedCertificateKeyPairList](docs/PaginatedCertificateKeyPairList.md) - [PaginatedConnectionTokenList](docs/PaginatedConnectionTokenList.md) + - [PaginatedConnectorList](docs/PaginatedConnectorList.md) - [PaginatedConsentStageList](docs/PaginatedConsentStageList.md) + - [PaginatedDataExportList](docs/PaginatedDataExportList.md) - [PaginatedDenyStageList](docs/PaginatedDenyStageList.md) + - [PaginatedDeviceAccessGroupList](docs/PaginatedDeviceAccessGroupList.md) + - [PaginatedDeviceUserBindingList](docs/PaginatedDeviceUserBindingList.md) - [PaginatedDockerServiceConnectionList](docs/PaginatedDockerServiceConnectionList.md) - [PaginatedDomainList](docs/PaginatedDomainList.md) - [PaginatedDummyPolicyList](docs/PaginatedDummyPolicyList.md) @@ -1460,15 +1558,17 @@ Class | Method | HTTP request | Description - [PaginatedEmailStageList](docs/PaginatedEmailStageList.md) - [PaginatedEndpointDeviceList](docs/PaginatedEndpointDeviceList.md) - [PaginatedEndpointList](docs/PaginatedEndpointList.md) + - [PaginatedEndpointStageList](docs/PaginatedEndpointStageList.md) + - [PaginatedEnrollmentTokenList](docs/PaginatedEnrollmentTokenList.md) - [PaginatedEventList](docs/PaginatedEventList.md) - [PaginatedEventMatcherPolicyList](docs/PaginatedEventMatcherPolicyList.md) - [PaginatedExpiringBaseGrantModelList](docs/PaginatedExpiringBaseGrantModelList.md) - [PaginatedExpressionPolicyList](docs/PaginatedExpressionPolicyList.md) - [PaginatedExtraRoleObjectPermissionList](docs/PaginatedExtraRoleObjectPermissionList.md) - - [PaginatedExtraUserObjectPermissionList](docs/PaginatedExtraUserObjectPermissionList.md) - [PaginatedFlowList](docs/PaginatedFlowList.md) - [PaginatedFlowStageBindingList](docs/PaginatedFlowStageBindingList.md) - [PaginatedGeoIPPolicyList](docs/PaginatedGeoIPPolicyList.md) + - [PaginatedGoogleEndpointDeviceList](docs/PaginatedGoogleEndpointDeviceList.md) - [PaginatedGoogleWorkspaceProviderGroupList](docs/PaginatedGoogleWorkspaceProviderGroupList.md) - [PaginatedGoogleWorkspaceProviderList](docs/PaginatedGoogleWorkspaceProviderList.md) - [PaginatedGoogleWorkspaceProviderMappingList](docs/PaginatedGoogleWorkspaceProviderMappingList.md) @@ -1560,7 +1660,6 @@ Class | Method | HTTP request | Description - [PaginatedTokenList](docs/PaginatedTokenList.md) - [PaginatedTokenModelList](docs/PaginatedTokenModelList.md) - [PaginatedUniquePasswordPolicyList](docs/PaginatedUniquePasswordPolicyList.md) - - [PaginatedUserAssignedObjectPermissionList](docs/PaginatedUserAssignedObjectPermissionList.md) - [PaginatedUserConsentList](docs/PaginatedUserConsentList.md) - [PaginatedUserDeleteStageList](docs/PaginatedUserDeleteStageList.md) - [PaginatedUserKerberosSourceConnectionList](docs/PaginatedUserKerberosSourceConnectionList.md) @@ -1587,6 +1686,7 @@ Class | Method | HTTP request | Description - [PasswordPolicyRequest](docs/PasswordPolicyRequest.md) - [PasswordStage](docs/PasswordStage.md) - [PasswordStageRequest](docs/PasswordStageRequest.md) + - [PatchedAgentConnectorRequest](docs/PatchedAgentConnectorRequest.md) - [PatchedApplicationEntitlementRequest](docs/PatchedApplicationEntitlementRequest.md) - [PatchedApplicationRequest](docs/PatchedApplicationRequest.md) - [PatchedAuthenticatorDuoStageRequest](docs/PatchedAuthenticatorDuoStageRequest.md) @@ -1604,6 +1704,8 @@ Class | Method | HTTP request | Description - [PatchedConnectionTokenRequest](docs/PatchedConnectionTokenRequest.md) - [PatchedConsentStageRequest](docs/PatchedConsentStageRequest.md) - [PatchedDenyStageRequest](docs/PatchedDenyStageRequest.md) + - [PatchedDeviceAccessGroupRequest](docs/PatchedDeviceAccessGroupRequest.md) + - [PatchedDeviceUserBindingRequest](docs/PatchedDeviceUserBindingRequest.md) - [PatchedDockerServiceConnectionRequest](docs/PatchedDockerServiceConnectionRequest.md) - [PatchedDomainRequest](docs/PatchedDomainRequest.md) - [PatchedDummyPolicyRequest](docs/PatchedDummyPolicyRequest.md) @@ -1613,14 +1715,15 @@ Class | Method | HTTP request | Description - [PatchedEmailStageRequest](docs/PatchedEmailStageRequest.md) - [PatchedEndpointDeviceRequest](docs/PatchedEndpointDeviceRequest.md) - [PatchedEndpointRequest](docs/PatchedEndpointRequest.md) + - [PatchedEndpointStageRequest](docs/PatchedEndpointStageRequest.md) + - [PatchedEnrollmentTokenRequest](docs/PatchedEnrollmentTokenRequest.md) - [PatchedEventMatcherPolicyRequest](docs/PatchedEventMatcherPolicyRequest.md) - [PatchedEventRequest](docs/PatchedEventRequest.md) - [PatchedExpressionPolicyRequest](docs/PatchedExpressionPolicyRequest.md) - - [PatchedExtraRoleObjectPermissionRequest](docs/PatchedExtraRoleObjectPermissionRequest.md) - - [PatchedExtraUserObjectPermissionRequest](docs/PatchedExtraUserObjectPermissionRequest.md) - [PatchedFlowRequest](docs/PatchedFlowRequest.md) - [PatchedFlowStageBindingRequest](docs/PatchedFlowStageBindingRequest.md) - [PatchedGeoIPPolicyRequest](docs/PatchedGeoIPPolicyRequest.md) + - [PatchedGoogleEndpointDeviceRequest](docs/PatchedGoogleEndpointDeviceRequest.md) - [PatchedGoogleWorkspaceProviderMappingRequest](docs/PatchedGoogleWorkspaceProviderMappingRequest.md) - [PatchedGoogleWorkspaceProviderRequest](docs/PatchedGoogleWorkspaceProviderRequest.md) - [PatchedGroupKerberosSourceConnectionRequest](docs/PatchedGroupKerberosSourceConnectionRequest.md) @@ -1723,9 +1826,12 @@ Class | Method | HTTP request | Description - [PolicyEngineMode](docs/PolicyEngineMode.md) - [PolicyTestRequest](docs/PolicyTestRequest.md) - [PolicyTestResult](docs/PolicyTestResult.md) + - [Process](docs/Process.md) + - [ProcessRequest](docs/ProcessRequest.md) - [Prompt](docs/Prompt.md) - [PromptChallenge](docs/PromptChallenge.md) - [PromptChallengeResponseRequest](docs/PromptChallengeResponseRequest.md) + - [PromptChoice](docs/PromptChoice.md) - [PromptRequest](docs/PromptRequest.md) - [PromptStage](docs/PromptStage.md) - [PromptStageRequest](docs/PromptStageRequest.md) @@ -1760,12 +1866,14 @@ Class | Method | HTTP request | Description - [RedirectStageRequest](docs/RedirectStageRequest.md) - [RedirectURI](docs/RedirectURI.md) - [RedirectURIRequest](docs/RedirectURIRequest.md) + - [RelatedGroup](docs/RelatedGroup.md) - [Reputation](docs/Reputation.md) - [ReputationPolicy](docs/ReputationPolicy.md) - [ReputationPolicyRequest](docs/ReputationPolicyRequest.md) - [ResidentKeyRequirementEnum](docs/ResidentKeyRequirementEnum.md) - [Role](docs/Role.md) - [RoleAssignedObjectPermission](docs/RoleAssignedObjectPermission.md) + - [RoleModelPermission](docs/RoleModelPermission.md) - [RoleObjectPermission](docs/RoleObjectPermission.md) - [RoleRequest](docs/RoleRequest.md) - [SAMLBindingsEnum](docs/SAMLBindingsEnum.md) @@ -1816,11 +1924,14 @@ Class | Method | HTTP request | Description - [SeverityEnum](docs/SeverityEnum.md) - [ShellChallenge](docs/ShellChallenge.md) - [SignatureAlgorithmEnum](docs/SignatureAlgorithmEnum.md) + - [Software](docs/Software.md) + - [SoftwareRequest](docs/SoftwareRequest.md) - [Source](docs/Source.md) - [SourceStage](docs/SourceStage.md) - [SourceStageRequest](docs/SourceStageRequest.md) - [SourceType](docs/SourceType.md) - [Stage](docs/Stage.md) + - [StageModeEnum](docs/StageModeEnum.md) - [StagePrompt](docs/StagePrompt.md) - [StateEnum](docs/StateEnum.md) - [StaticDevice](docs/StaticDevice.md) @@ -1830,6 +1941,7 @@ Class | Method | HTTP request | Description - [SyncObjectModelEnum](docs/SyncObjectModelEnum.md) - [SyncObjectRequest](docs/SyncObjectRequest.md) - [SyncObjectResult](docs/SyncObjectResult.md) + - [SyncOutgoingTriggerModeEnum](docs/SyncOutgoingTriggerModeEnum.md) - [SyncStatus](docs/SyncStatus.md) - [SystemInfo](docs/SystemInfo.md) - [SystemInfoRuntime](docs/SystemInfoRuntime.md) @@ -1837,6 +1949,7 @@ Class | Method | HTTP request | Description - [TOTPDeviceRequest](docs/TOTPDeviceRequest.md) - [Task](docs/Task.md) - [TaskAggregatedStatusEnum](docs/TaskAggregatedStatusEnum.md) + - [TelegramAuthRequest](docs/TelegramAuthRequest.md) - [TelegramChallengeResponseRequest](docs/TelegramChallengeResponseRequest.md) - [TelegramLoginChallenge](docs/TelegramLoginChallenge.md) - [TelegramSource](docs/TelegramSource.md) @@ -1848,6 +1961,7 @@ Class | Method | HTTP request | Description - [TenantRecoveryKeyRequestRequest](docs/TenantRecoveryKeyRequestRequest.md) - [TenantRecoveryKeyResponse](docs/TenantRecoveryKeyResponse.md) - [TenantRequest](docs/TenantRequest.md) + - [ThemedUrls](docs/ThemedUrls.md) - [Token](docs/Token.md) - [TokenModel](docs/TokenModel.md) - [TokenRequest](docs/TokenRequest.md) @@ -1864,7 +1978,7 @@ Class | Method | HTTP request | Description - [UsedByActionEnum](docs/UsedByActionEnum.md) - [User](docs/User.md) - [UserAccountRequest](docs/UserAccountRequest.md) - - [UserAssignedObjectPermission](docs/UserAssignedObjectPermission.md) + - [UserAccountSerializerForRoleRequest](docs/UserAccountSerializerForRoleRequest.md) - [UserAttributeEnum](docs/UserAttributeEnum.md) - [UserConsent](docs/UserConsent.md) - [UserCreationModeEnum](docs/UserCreationModeEnum.md) @@ -1884,7 +1998,6 @@ Class | Method | HTTP request | Description - [UserMatchingModeEnum](docs/UserMatchingModeEnum.md) - [UserOAuthSourceConnection](docs/UserOAuthSourceConnection.md) - [UserOAuthSourceConnectionRequest](docs/UserOAuthSourceConnectionRequest.md) - - [UserObjectPermission](docs/UserObjectPermission.md) - [UserPasswordSetRequest](docs/UserPasswordSetRequest.md) - [UserPath](docs/UserPath.md) - [UserPlexSourceConnection](docs/UserPlexSourceConnection.md) @@ -1894,6 +2007,7 @@ Class | Method | HTTP request | Description - [UserSAMLSourceConnectionRequest](docs/UserSAMLSourceConnectionRequest.md) - [UserSelf](docs/UserSelf.md) - [UserSelfGroups](docs/UserSelfGroups.md) + - [UserSelfRoles](docs/UserSelfRoles.md) - [UserServiceAccountRequest](docs/UserServiceAccountRequest.md) - [UserServiceAccountResponse](docs/UserServiceAccountResponse.md) - [UserSetting](docs/UserSetting.md) diff --git a/authentik_client/__init__.py b/authentik_client/__init__.py index 52d2b6e1b..f6fbc49f9 100644 --- a/authentik_client/__init__.py +++ b/authentik_client/__init__.py @@ -7,7 +7,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "2025.10.0-rc1-1760140185" +__version__ = "2025.12.5" # Define package exports __all__ = [ @@ -23,6 +23,7 @@ "AuthenticatorsApi", "CoreApi", "CryptoApi", + "EndpointsApi", "EnterpriseApi", "EventsApi", "FlowsApi", @@ -34,6 +35,7 @@ "ProvidersApi", "RacApi", "RbacApi", + "ReportsApi", "RootApi", "SchemaApi", "SourcesApi", @@ -51,6 +53,14 @@ "ApiAttributeError", "ApiException", "AccessDeniedChallenge", + "AgentAuthenticationResponse", + "AgentConfig", + "AgentConnector", + "AgentConnectorRequest", + "AgentPSSODeviceRegistrationRequest", + "AgentPSSODeviceRegistrationResponse", + "AgentPSSOUserRegistrationRequest", + "AgentTokenResponse", "AlgEnum", "App", "AppEnum", @@ -130,17 +140,20 @@ "Config", "ConnectionToken", "ConnectionTokenRequest", + "Connector", "ConsentChallenge", "ConsentChallengeResponseRequest", "ConsentPermission", "ConsentStage", "ConsentStageModeEnum", "ConsentStageRequest", + "ContentType", "ContextualFlowInfo", "ContextualFlowInfoLayoutEnum", "CountryCodeEnum", "CurrentBrand", "CurrentBrandFlags", + "DataExport", "DeliveryMethodEnum", "DeniedActionEnum", "DenyStage", @@ -148,11 +161,27 @@ "DetailedCountry", "DetailedCountryField", "Device", + "DeviceAccessGroup", + "DeviceAccessGroupRequest", "DeviceChallenge", "DeviceChallengeRequest", "DeviceClassesEnum", + "DeviceConnection", + "DeviceFactSnapshot", + "DeviceFacts", + "DeviceFactsOSFamily", + "DeviceFactsRequest", + "DeviceGroup", + "DeviceGroupRequest", + "DeviceSummary", + "DeviceUser", + "DeviceUserBinding", + "DeviceUserBindingRequest", + "DeviceUserRequest", "DigestAlgorithmEnum", "DigitsEnum", + "Disk", + "DiskRequest", "DockerServiceConnection", "DockerServiceConnectionRequest", "Domain", @@ -174,10 +203,18 @@ "EmailStage", "EmailStageRequest", "Endpoint", + "EndpointAgentChallenge", + "EndpointAgentChallengeResponseRequest", "EndpointAuthModeEnum", "EndpointDevice", + "EndpointDeviceDetails", "EndpointDeviceRequest", "EndpointRequest", + "EndpointStage", + "EndpointStageRequest", + "EnrollRequest", + "EnrollmentToken", + "EnrollmentTokenRequest", "ErrorDetail", "ErrorReportingConfig", "Event", @@ -192,10 +229,7 @@ "ExpressionPolicy", "ExpressionPolicyRequest", "ExtraRoleObjectPermission", - "ExtraRoleObjectPermissionRequest", - "ExtraUserObjectPermission", - "ExtraUserObjectPermissionRequest", - "FilePathRequest", + "FileList", "Flow", "FlowChallengeResponseRequest", "FlowDesignationEnum", @@ -207,7 +241,6 @@ "FlowLayoutEnum", "FlowRequest", "FlowSet", - "FlowSetRequest", "FlowStageBinding", "FlowStageBindingRequest", "FooterLink", @@ -218,6 +251,8 @@ "GeoIPPolicyRequest", "GeoipBindingEnum", "GlobalTaskStatus", + "GoogleEndpointDevice", + "GoogleEndpointDeviceRequest", "GoogleWorkspaceProvider", "GoogleWorkspaceProviderGroup", "GoogleWorkspaceProviderGroupRequest", @@ -227,7 +262,6 @@ "GoogleWorkspaceProviderUser", "GoogleWorkspaceProviderUserRequest", "Group", - "GroupChild", "GroupKerberosSourceConnection", "GroupKerberosSourceConnectionRequest", "GroupLDAPSourceConnection", @@ -244,6 +278,8 @@ "GroupSourceConnectionRequest", "GroupTelegramSourceConnection", "GroupTelegramSourceConnectionRequest", + "Hardware", + "HardwareRequest", "IdentificationChallenge", "IdentificationChallengeResponseRequest", "IdentificationStage", @@ -252,7 +288,6 @@ "IframeLogoutChallengeResponseRequest", "ImpersonationRequest", "InitialPermissions", - "InitialPermissionsModeEnum", "InitialPermissionsRequest", "InstallID", "IntentEnum", @@ -267,6 +302,7 @@ "KerberosSourcePropertyMapping", "KerberosSourcePropertyMappingRequest", "KerberosSourceRequest", + "KeyTypeEnum", "KubernetesServiceConnection", "KubernetesServiceConnectionRequest", "LDAPAPIAccessMode", @@ -284,6 +320,7 @@ "LicenseFlagsEnum", "LicenseForecast", "LicenseRequest", + "LicenseStatusEnum", "LicenseSummary", "LicenseSummaryStatusEnum", "Link", @@ -291,6 +328,8 @@ "LogLevelEnum", "LoginChallengeTypes", "LoginSource", + "MDMConfigRequest", + "MDMConfigResponse", "MatchingModeEnum", "Metadata", "MicrosoftEntraProvider", @@ -304,11 +343,14 @@ "ModelEnum", "ModelRequest", "MutualTLSStage", - "MutualTLSStageModeEnum", "MutualTLSStageRequest", "NativeLogoutChallenge", "NativeLogoutChallengeResponseRequest", + "Network", "NetworkBindingEnum", + "NetworkInterface", + "NetworkInterfaceRequest", + "NetworkRequest", "NotConfiguredActionEnum", "Notification", "NotificationRequest", @@ -333,12 +375,16 @@ "OAuthSourcePropertyMappingRequest", "OAuthSourceRequest", "OpenIDConnectConfiguration", + "OperatingSystem", + "OperatingSystemRequest", "OutgoingSyncDeleteAction", "Outpost", "OutpostDefaultConfig", "OutpostHealth", "OutpostRequest", "OutpostTypeEnum", + "PKCEMethodEnum", + "PaginatedAgentConnectorList", "PaginatedApplicationEntitlementList", "PaginatedApplicationList", "PaginatedAuthenticatedSessionList", @@ -355,8 +401,12 @@ "PaginatedCaptchaStageList", "PaginatedCertificateKeyPairList", "PaginatedConnectionTokenList", + "PaginatedConnectorList", "PaginatedConsentStageList", + "PaginatedDataExportList", "PaginatedDenyStageList", + "PaginatedDeviceAccessGroupList", + "PaginatedDeviceUserBindingList", "PaginatedDockerServiceConnectionList", "PaginatedDomainList", "PaginatedDummyPolicyList", @@ -366,15 +416,17 @@ "PaginatedEmailStageList", "PaginatedEndpointDeviceList", "PaginatedEndpointList", + "PaginatedEndpointStageList", + "PaginatedEnrollmentTokenList", "PaginatedEventList", "PaginatedEventMatcherPolicyList", "PaginatedExpiringBaseGrantModelList", "PaginatedExpressionPolicyList", "PaginatedExtraRoleObjectPermissionList", - "PaginatedExtraUserObjectPermissionList", "PaginatedFlowList", "PaginatedFlowStageBindingList", "PaginatedGeoIPPolicyList", + "PaginatedGoogleEndpointDeviceList", "PaginatedGoogleWorkspaceProviderGroupList", "PaginatedGoogleWorkspaceProviderList", "PaginatedGoogleWorkspaceProviderMappingList", @@ -466,7 +518,6 @@ "PaginatedTokenList", "PaginatedTokenModelList", "PaginatedUniquePasswordPolicyList", - "PaginatedUserAssignedObjectPermissionList", "PaginatedUserConsentList", "PaginatedUserDeleteStageList", "PaginatedUserKerberosSourceConnectionList", @@ -493,6 +544,7 @@ "PasswordPolicyRequest", "PasswordStage", "PasswordStageRequest", + "PatchedAgentConnectorRequest", "PatchedApplicationEntitlementRequest", "PatchedApplicationRequest", "PatchedAuthenticatorDuoStageRequest", @@ -510,6 +562,8 @@ "PatchedConnectionTokenRequest", "PatchedConsentStageRequest", "PatchedDenyStageRequest", + "PatchedDeviceAccessGroupRequest", + "PatchedDeviceUserBindingRequest", "PatchedDockerServiceConnectionRequest", "PatchedDomainRequest", "PatchedDummyPolicyRequest", @@ -519,14 +573,15 @@ "PatchedEmailStageRequest", "PatchedEndpointDeviceRequest", "PatchedEndpointRequest", + "PatchedEndpointStageRequest", + "PatchedEnrollmentTokenRequest", "PatchedEventMatcherPolicyRequest", "PatchedEventRequest", "PatchedExpressionPolicyRequest", - "PatchedExtraRoleObjectPermissionRequest", - "PatchedExtraUserObjectPermissionRequest", "PatchedFlowRequest", "PatchedFlowStageBindingRequest", "PatchedGeoIPPolicyRequest", + "PatchedGoogleEndpointDeviceRequest", "PatchedGoogleWorkspaceProviderMappingRequest", "PatchedGoogleWorkspaceProviderRequest", "PatchedGroupKerberosSourceConnectionRequest", @@ -629,9 +684,12 @@ "PolicyEngineMode", "PolicyTestRequest", "PolicyTestResult", + "Process", + "ProcessRequest", "Prompt", "PromptChallenge", "PromptChallengeResponseRequest", + "PromptChoice", "PromptRequest", "PromptStage", "PromptStageRequest", @@ -666,12 +724,14 @@ "RedirectStageRequest", "RedirectURI", "RedirectURIRequest", + "RelatedGroup", "Reputation", "ReputationPolicy", "ReputationPolicyRequest", "ResidentKeyRequirementEnum", "Role", "RoleAssignedObjectPermission", + "RoleModelPermission", "RoleObjectPermission", "RoleRequest", "SAMLBindingsEnum", @@ -722,11 +782,14 @@ "SeverityEnum", "ShellChallenge", "SignatureAlgorithmEnum", + "Software", + "SoftwareRequest", "Source", "SourceStage", "SourceStageRequest", "SourceType", "Stage", + "StageModeEnum", "StagePrompt", "StateEnum", "StaticDevice", @@ -736,6 +799,7 @@ "SyncObjectModelEnum", "SyncObjectRequest", "SyncObjectResult", + "SyncOutgoingTriggerModeEnum", "SyncStatus", "SystemInfo", "SystemInfoRuntime", @@ -743,6 +807,7 @@ "TOTPDeviceRequest", "Task", "TaskAggregatedStatusEnum", + "TelegramAuthRequest", "TelegramChallengeResponseRequest", "TelegramLoginChallenge", "TelegramSource", @@ -754,6 +819,7 @@ "TenantRecoveryKeyRequestRequest", "TenantRecoveryKeyResponse", "TenantRequest", + "ThemedUrls", "Token", "TokenModel", "TokenRequest", @@ -770,7 +836,7 @@ "UsedByActionEnum", "User", "UserAccountRequest", - "UserAssignedObjectPermission", + "UserAccountSerializerForRoleRequest", "UserAttributeEnum", "UserConsent", "UserCreationModeEnum", @@ -790,7 +856,6 @@ "UserMatchingModeEnum", "UserOAuthSourceConnection", "UserOAuthSourceConnectionRequest", - "UserObjectPermission", "UserPasswordSetRequest", "UserPath", "UserPlexSourceConnection", @@ -800,6 +865,7 @@ "UserSAMLSourceConnectionRequest", "UserSelf", "UserSelfGroups", + "UserSelfRoles", "UserServiceAccountRequest", "UserServiceAccountResponse", "UserSetting", @@ -820,825 +886,12 @@ "Worker", ] -if __import__("typing").TYPE_CHECKING: - # import apis into sdk package - from authentik_client.api.admin_api import AdminApi as AdminApi - from authentik_client.api.authenticators_api import AuthenticatorsApi as AuthenticatorsApi - from authentik_client.api.core_api import CoreApi as CoreApi - from authentik_client.api.crypto_api import CryptoApi as CryptoApi - from authentik_client.api.enterprise_api import EnterpriseApi as EnterpriseApi - from authentik_client.api.events_api import EventsApi as EventsApi - from authentik_client.api.flows_api import FlowsApi as FlowsApi - from authentik_client.api.managed_api import ManagedApi as ManagedApi - from authentik_client.api.oauth2_api import Oauth2Api as Oauth2Api - from authentik_client.api.outposts_api import OutpostsApi as OutpostsApi - from authentik_client.api.policies_api import PoliciesApi as PoliciesApi - from authentik_client.api.propertymappings_api import PropertymappingsApi as PropertymappingsApi - from authentik_client.api.providers_api import ProvidersApi as ProvidersApi - from authentik_client.api.rac_api import RacApi as RacApi - from authentik_client.api.rbac_api import RbacApi as RbacApi - from authentik_client.api.root_api import RootApi as RootApi - from authentik_client.api.schema_api import SchemaApi as SchemaApi - from authentik_client.api.sources_api import SourcesApi as SourcesApi - from authentik_client.api.ssf_api import SsfApi as SsfApi - from authentik_client.api.stages_api import StagesApi as StagesApi - from authentik_client.api.tasks_api import TasksApi as TasksApi - from authentik_client.api.tenants_api import TenantsApi as TenantsApi - - # import ApiClient - from authentik_client.api_response import ApiResponse as ApiResponse - from authentik_client.api_client import ApiClient as ApiClient - from authentik_client.configuration import Configuration as Configuration - from authentik_client.exceptions import OpenApiException as OpenApiException - from authentik_client.exceptions import ApiTypeError as ApiTypeError - from authentik_client.exceptions import ApiValueError as ApiValueError - from authentik_client.exceptions import ApiKeyError as ApiKeyError - from authentik_client.exceptions import ApiAttributeError as ApiAttributeError - from authentik_client.exceptions import ApiException as ApiException - - # import models into sdk package - from authentik_client.models.access_denied_challenge import AccessDeniedChallenge as AccessDeniedChallenge - from authentik_client.models.alg_enum import AlgEnum as AlgEnum - from authentik_client.models.app import App as App - from authentik_client.models.app_enum import AppEnum as AppEnum - from authentik_client.models.apple_challenge_response_request import AppleChallengeResponseRequest as AppleChallengeResponseRequest - from authentik_client.models.apple_login_challenge import AppleLoginChallenge as AppleLoginChallenge - from authentik_client.models.application import Application as Application - from authentik_client.models.application_entitlement import ApplicationEntitlement as ApplicationEntitlement - from authentik_client.models.application_entitlement_request import ApplicationEntitlementRequest as ApplicationEntitlementRequest - from authentik_client.models.application_request import ApplicationRequest as ApplicationRequest - from authentik_client.models.auth_type_enum import AuthTypeEnum as AuthTypeEnum - from authentik_client.models.authenticated_session import AuthenticatedSession as AuthenticatedSession - from authentik_client.models.authenticated_session_asn import AuthenticatedSessionAsn as AuthenticatedSessionAsn - from authentik_client.models.authenticated_session_geo_ip import AuthenticatedSessionGeoIp as AuthenticatedSessionGeoIp - from authentik_client.models.authenticated_session_user_agent import AuthenticatedSessionUserAgent as AuthenticatedSessionUserAgent - from authentik_client.models.authenticated_session_user_agent_device import AuthenticatedSessionUserAgentDevice as AuthenticatedSessionUserAgentDevice - from authentik_client.models.authenticated_session_user_agent_os import AuthenticatedSessionUserAgentOs as AuthenticatedSessionUserAgentOs - from authentik_client.models.authenticated_session_user_agent_user_agent import AuthenticatedSessionUserAgentUserAgent as AuthenticatedSessionUserAgentUserAgent - from authentik_client.models.authentication_enum import AuthenticationEnum as AuthenticationEnum - from authentik_client.models.authenticator_attachment_enum import AuthenticatorAttachmentEnum as AuthenticatorAttachmentEnum - from authentik_client.models.authenticator_duo_challenge import AuthenticatorDuoChallenge as AuthenticatorDuoChallenge - from authentik_client.models.authenticator_duo_challenge_response_request import AuthenticatorDuoChallengeResponseRequest as AuthenticatorDuoChallengeResponseRequest - from authentik_client.models.authenticator_duo_stage import AuthenticatorDuoStage as AuthenticatorDuoStage - from authentik_client.models.authenticator_duo_stage_device_import_response import AuthenticatorDuoStageDeviceImportResponse as AuthenticatorDuoStageDeviceImportResponse - from authentik_client.models.authenticator_duo_stage_manual_device_import_request import AuthenticatorDuoStageManualDeviceImportRequest as AuthenticatorDuoStageManualDeviceImportRequest - from authentik_client.models.authenticator_duo_stage_request import AuthenticatorDuoStageRequest as AuthenticatorDuoStageRequest - from authentik_client.models.authenticator_email_challenge import AuthenticatorEmailChallenge as AuthenticatorEmailChallenge - from authentik_client.models.authenticator_email_challenge_response_request import AuthenticatorEmailChallengeResponseRequest as AuthenticatorEmailChallengeResponseRequest - from authentik_client.models.authenticator_email_stage import AuthenticatorEmailStage as AuthenticatorEmailStage - from authentik_client.models.authenticator_email_stage_request import AuthenticatorEmailStageRequest as AuthenticatorEmailStageRequest - from authentik_client.models.authenticator_endpoint_gdtc_stage import AuthenticatorEndpointGDTCStage as AuthenticatorEndpointGDTCStage - from authentik_client.models.authenticator_endpoint_gdtc_stage_request import AuthenticatorEndpointGDTCStageRequest as AuthenticatorEndpointGDTCStageRequest - from authentik_client.models.authenticator_sms_challenge import AuthenticatorSMSChallenge as AuthenticatorSMSChallenge - from authentik_client.models.authenticator_sms_challenge_response_request import AuthenticatorSMSChallengeResponseRequest as AuthenticatorSMSChallengeResponseRequest - from authentik_client.models.authenticator_sms_stage import AuthenticatorSMSStage as AuthenticatorSMSStage - from authentik_client.models.authenticator_sms_stage_request import AuthenticatorSMSStageRequest as AuthenticatorSMSStageRequest - from authentik_client.models.authenticator_static_challenge import AuthenticatorStaticChallenge as AuthenticatorStaticChallenge - from authentik_client.models.authenticator_static_challenge_response_request import AuthenticatorStaticChallengeResponseRequest as AuthenticatorStaticChallengeResponseRequest - from authentik_client.models.authenticator_static_stage import AuthenticatorStaticStage as AuthenticatorStaticStage - from authentik_client.models.authenticator_static_stage_request import AuthenticatorStaticStageRequest as AuthenticatorStaticStageRequest - from authentik_client.models.authenticator_totp_challenge import AuthenticatorTOTPChallenge as AuthenticatorTOTPChallenge - from authentik_client.models.authenticator_totp_challenge_response_request import AuthenticatorTOTPChallengeResponseRequest as AuthenticatorTOTPChallengeResponseRequest - from authentik_client.models.authenticator_totp_stage import AuthenticatorTOTPStage as AuthenticatorTOTPStage - from authentik_client.models.authenticator_totp_stage_request import AuthenticatorTOTPStageRequest as AuthenticatorTOTPStageRequest - from authentik_client.models.authenticator_validate_stage import AuthenticatorValidateStage as AuthenticatorValidateStage - from authentik_client.models.authenticator_validate_stage_request import AuthenticatorValidateStageRequest as AuthenticatorValidateStageRequest - from authentik_client.models.authenticator_validation_challenge import AuthenticatorValidationChallenge as AuthenticatorValidationChallenge - from authentik_client.models.authenticator_validation_challenge_response_request import AuthenticatorValidationChallengeResponseRequest as AuthenticatorValidationChallengeResponseRequest - from authentik_client.models.authenticator_web_authn_challenge import AuthenticatorWebAuthnChallenge as AuthenticatorWebAuthnChallenge - from authentik_client.models.authenticator_web_authn_challenge_response_request import AuthenticatorWebAuthnChallengeResponseRequest as AuthenticatorWebAuthnChallengeResponseRequest - from authentik_client.models.authenticator_web_authn_stage import AuthenticatorWebAuthnStage as AuthenticatorWebAuthnStage - from authentik_client.models.authenticator_web_authn_stage_request import AuthenticatorWebAuthnStageRequest as AuthenticatorWebAuthnStageRequest - from authentik_client.models.authorization_code_auth_method_enum import AuthorizationCodeAuthMethodEnum as AuthorizationCodeAuthMethodEnum - from authentik_client.models.auto_submit_challenge_response_request import AutoSubmitChallengeResponseRequest as AutoSubmitChallengeResponseRequest - from authentik_client.models.autosubmit_challenge import AutosubmitChallenge as AutosubmitChallenge - from authentik_client.models.backends_enum import BackendsEnum as BackendsEnum - from authentik_client.models.binding_type_enum import BindingTypeEnum as BindingTypeEnum - from authentik_client.models.blueprint_file import BlueprintFile as BlueprintFile - from authentik_client.models.blueprint_instance import BlueprintInstance as BlueprintInstance - from authentik_client.models.blueprint_instance_request import BlueprintInstanceRequest as BlueprintInstanceRequest - from authentik_client.models.blueprint_instance_status_enum import BlueprintInstanceStatusEnum as BlueprintInstanceStatusEnum - from authentik_client.models.brand import Brand as Brand - from authentik_client.models.brand_request import BrandRequest as BrandRequest - from authentik_client.models.cache import Cache as Cache - from authentik_client.models.capabilities_enum import CapabilitiesEnum as CapabilitiesEnum - from authentik_client.models.captcha_challenge import CaptchaChallenge as CaptchaChallenge - from authentik_client.models.captcha_challenge_response_request import CaptchaChallengeResponseRequest as CaptchaChallengeResponseRequest - from authentik_client.models.captcha_stage import CaptchaStage as CaptchaStage - from authentik_client.models.captcha_stage_request import CaptchaStageRequest as CaptchaStageRequest - from authentik_client.models.cert_attribute_enum import CertAttributeEnum as CertAttributeEnum - from authentik_client.models.certificate_data import CertificateData as CertificateData - from authentik_client.models.certificate_generation_request import CertificateGenerationRequest as CertificateGenerationRequest - from authentik_client.models.certificate_key_pair import CertificateKeyPair as CertificateKeyPair - from authentik_client.models.certificate_key_pair_request import CertificateKeyPairRequest as CertificateKeyPairRequest - from authentik_client.models.challenge_types import ChallengeTypes as ChallengeTypes - from authentik_client.models.client_type_enum import ClientTypeEnum as ClientTypeEnum - from authentik_client.models.compatibility_mode_enum import CompatibilityModeEnum as CompatibilityModeEnum - from authentik_client.models.config import Config as Config - from authentik_client.models.connection_token import ConnectionToken as ConnectionToken - from authentik_client.models.connection_token_request import ConnectionTokenRequest as ConnectionTokenRequest - from authentik_client.models.consent_challenge import ConsentChallenge as ConsentChallenge - from authentik_client.models.consent_challenge_response_request import ConsentChallengeResponseRequest as ConsentChallengeResponseRequest - from authentik_client.models.consent_permission import ConsentPermission as ConsentPermission - from authentik_client.models.consent_stage import ConsentStage as ConsentStage - from authentik_client.models.consent_stage_mode_enum import ConsentStageModeEnum as ConsentStageModeEnum - from authentik_client.models.consent_stage_request import ConsentStageRequest as ConsentStageRequest - from authentik_client.models.contextual_flow_info import ContextualFlowInfo as ContextualFlowInfo - from authentik_client.models.contextual_flow_info_layout_enum import ContextualFlowInfoLayoutEnum as ContextualFlowInfoLayoutEnum - from authentik_client.models.country_code_enum import CountryCodeEnum as CountryCodeEnum - from authentik_client.models.current_brand import CurrentBrand as CurrentBrand - from authentik_client.models.current_brand_flags import CurrentBrandFlags as CurrentBrandFlags - from authentik_client.models.delivery_method_enum import DeliveryMethodEnum as DeliveryMethodEnum - from authentik_client.models.denied_action_enum import DeniedActionEnum as DeniedActionEnum - from authentik_client.models.deny_stage import DenyStage as DenyStage - from authentik_client.models.deny_stage_request import DenyStageRequest as DenyStageRequest - from authentik_client.models.detailed_country import DetailedCountry as DetailedCountry - from authentik_client.models.detailed_country_field import DetailedCountryField as DetailedCountryField - from authentik_client.models.device import Device as Device - from authentik_client.models.device_challenge import DeviceChallenge as DeviceChallenge - from authentik_client.models.device_challenge_request import DeviceChallengeRequest as DeviceChallengeRequest - from authentik_client.models.device_classes_enum import DeviceClassesEnum as DeviceClassesEnum - from authentik_client.models.digest_algorithm_enum import DigestAlgorithmEnum as DigestAlgorithmEnum - from authentik_client.models.digits_enum import DigitsEnum as DigitsEnum - from authentik_client.models.docker_service_connection import DockerServiceConnection as DockerServiceConnection - from authentik_client.models.docker_service_connection_request import DockerServiceConnectionRequest as DockerServiceConnectionRequest - from authentik_client.models.domain import Domain as Domain - from authentik_client.models.domain_request import DomainRequest as DomainRequest - from authentik_client.models.dummy_challenge import DummyChallenge as DummyChallenge - from authentik_client.models.dummy_challenge_response_request import DummyChallengeResponseRequest as DummyChallengeResponseRequest - from authentik_client.models.dummy_policy import DummyPolicy as DummyPolicy - from authentik_client.models.dummy_policy_request import DummyPolicyRequest as DummyPolicyRequest - from authentik_client.models.dummy_stage import DummyStage as DummyStage - from authentik_client.models.dummy_stage_request import DummyStageRequest as DummyStageRequest - from authentik_client.models.duo_device import DuoDevice as DuoDevice - from authentik_client.models.duo_device_enrollment_status import DuoDeviceEnrollmentStatus as DuoDeviceEnrollmentStatus - from authentik_client.models.duo_device_request import DuoDeviceRequest as DuoDeviceRequest - from authentik_client.models.duo_response_enum import DuoResponseEnum as DuoResponseEnum - from authentik_client.models.email_challenge import EmailChallenge as EmailChallenge - from authentik_client.models.email_challenge_response_request import EmailChallengeResponseRequest as EmailChallengeResponseRequest - from authentik_client.models.email_device import EmailDevice as EmailDevice - from authentik_client.models.email_device_request import EmailDeviceRequest as EmailDeviceRequest - from authentik_client.models.email_stage import EmailStage as EmailStage - from authentik_client.models.email_stage_request import EmailStageRequest as EmailStageRequest - from authentik_client.models.endpoint import Endpoint as Endpoint - from authentik_client.models.endpoint_auth_mode_enum import EndpointAuthModeEnum as EndpointAuthModeEnum - from authentik_client.models.endpoint_device import EndpointDevice as EndpointDevice - from authentik_client.models.endpoint_device_request import EndpointDeviceRequest as EndpointDeviceRequest - from authentik_client.models.endpoint_request import EndpointRequest as EndpointRequest - from authentik_client.models.error_detail import ErrorDetail as ErrorDetail - from authentik_client.models.error_reporting_config import ErrorReportingConfig as ErrorReportingConfig - from authentik_client.models.event import Event as Event - from authentik_client.models.event_actions import EventActions as EventActions - from authentik_client.models.event_matcher_policy import EventMatcherPolicy as EventMatcherPolicy - from authentik_client.models.event_matcher_policy_request import EventMatcherPolicyRequest as EventMatcherPolicyRequest - from authentik_client.models.event_request import EventRequest as EventRequest - from authentik_client.models.event_top_per_user import EventTopPerUser as EventTopPerUser - from authentik_client.models.event_volume import EventVolume as EventVolume - from authentik_client.models.events_requested_enum import EventsRequestedEnum as EventsRequestedEnum - from authentik_client.models.expiring_base_grant_model import ExpiringBaseGrantModel as ExpiringBaseGrantModel - from authentik_client.models.expression_policy import ExpressionPolicy as ExpressionPolicy - from authentik_client.models.expression_policy_request import ExpressionPolicyRequest as ExpressionPolicyRequest - from authentik_client.models.extra_role_object_permission import ExtraRoleObjectPermission as ExtraRoleObjectPermission - from authentik_client.models.extra_role_object_permission_request import ExtraRoleObjectPermissionRequest as ExtraRoleObjectPermissionRequest - from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission as ExtraUserObjectPermission - from authentik_client.models.extra_user_object_permission_request import ExtraUserObjectPermissionRequest as ExtraUserObjectPermissionRequest - from authentik_client.models.file_path_request import FilePathRequest as FilePathRequest - from authentik_client.models.flow import Flow as Flow - from authentik_client.models.flow_challenge_response_request import FlowChallengeResponseRequest as FlowChallengeResponseRequest - from authentik_client.models.flow_designation_enum import FlowDesignationEnum as FlowDesignationEnum - from authentik_client.models.flow_diagram import FlowDiagram as FlowDiagram - from authentik_client.models.flow_error_challenge import FlowErrorChallenge as FlowErrorChallenge - from authentik_client.models.flow_import_result import FlowImportResult as FlowImportResult - from authentik_client.models.flow_inspection import FlowInspection as FlowInspection - from authentik_client.models.flow_inspector_plan import FlowInspectorPlan as FlowInspectorPlan - from authentik_client.models.flow_layout_enum import FlowLayoutEnum as FlowLayoutEnum - from authentik_client.models.flow_request import FlowRequest as FlowRequest - from authentik_client.models.flow_set import FlowSet as FlowSet - from authentik_client.models.flow_set_request import FlowSetRequest as FlowSetRequest - from authentik_client.models.flow_stage_binding import FlowStageBinding as FlowStageBinding - from authentik_client.models.flow_stage_binding_request import FlowStageBindingRequest as FlowStageBindingRequest - from authentik_client.models.footer_link import FooterLink as FooterLink - from authentik_client.models.frame_challenge import FrameChallenge as FrameChallenge - from authentik_client.models.frame_challenge_response_request import FrameChallengeResponseRequest as FrameChallengeResponseRequest - from authentik_client.models.generic_error import GenericError as GenericError - from authentik_client.models.geo_ip_policy import GeoIPPolicy as GeoIPPolicy - from authentik_client.models.geo_ip_policy_request import GeoIPPolicyRequest as GeoIPPolicyRequest - from authentik_client.models.geoip_binding_enum import GeoipBindingEnum as GeoipBindingEnum - from authentik_client.models.global_task_status import GlobalTaskStatus as GlobalTaskStatus - from authentik_client.models.google_workspace_provider import GoogleWorkspaceProvider as GoogleWorkspaceProvider - from authentik_client.models.google_workspace_provider_group import GoogleWorkspaceProviderGroup as GoogleWorkspaceProviderGroup - from authentik_client.models.google_workspace_provider_group_request import GoogleWorkspaceProviderGroupRequest as GoogleWorkspaceProviderGroupRequest - from authentik_client.models.google_workspace_provider_mapping import GoogleWorkspaceProviderMapping as GoogleWorkspaceProviderMapping - from authentik_client.models.google_workspace_provider_mapping_request import GoogleWorkspaceProviderMappingRequest as GoogleWorkspaceProviderMappingRequest - from authentik_client.models.google_workspace_provider_request import GoogleWorkspaceProviderRequest as GoogleWorkspaceProviderRequest - from authentik_client.models.google_workspace_provider_user import GoogleWorkspaceProviderUser as GoogleWorkspaceProviderUser - from authentik_client.models.google_workspace_provider_user_request import GoogleWorkspaceProviderUserRequest as GoogleWorkspaceProviderUserRequest - from authentik_client.models.group import Group as Group - from authentik_client.models.group_child import GroupChild as GroupChild - from authentik_client.models.group_kerberos_source_connection import GroupKerberosSourceConnection as GroupKerberosSourceConnection - from authentik_client.models.group_kerberos_source_connection_request import GroupKerberosSourceConnectionRequest as GroupKerberosSourceConnectionRequest - from authentik_client.models.group_ldap_source_connection import GroupLDAPSourceConnection as GroupLDAPSourceConnection - from authentik_client.models.group_ldap_source_connection_request import GroupLDAPSourceConnectionRequest as GroupLDAPSourceConnectionRequest - from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum as GroupMatchingModeEnum - from authentik_client.models.group_o_auth_source_connection import GroupOAuthSourceConnection as GroupOAuthSourceConnection - from authentik_client.models.group_o_auth_source_connection_request import GroupOAuthSourceConnectionRequest as GroupOAuthSourceConnectionRequest - from authentik_client.models.group_plex_source_connection import GroupPlexSourceConnection as GroupPlexSourceConnection - from authentik_client.models.group_plex_source_connection_request import GroupPlexSourceConnectionRequest as GroupPlexSourceConnectionRequest - from authentik_client.models.group_request import GroupRequest as GroupRequest - from authentik_client.models.group_saml_source_connection import GroupSAMLSourceConnection as GroupSAMLSourceConnection - from authentik_client.models.group_saml_source_connection_request import GroupSAMLSourceConnectionRequest as GroupSAMLSourceConnectionRequest - from authentik_client.models.group_source_connection import GroupSourceConnection as GroupSourceConnection - from authentik_client.models.group_source_connection_request import GroupSourceConnectionRequest as GroupSourceConnectionRequest - from authentik_client.models.group_telegram_source_connection import GroupTelegramSourceConnection as GroupTelegramSourceConnection - from authentik_client.models.group_telegram_source_connection_request import GroupTelegramSourceConnectionRequest as GroupTelegramSourceConnectionRequest - from authentik_client.models.identification_challenge import IdentificationChallenge as IdentificationChallenge - from authentik_client.models.identification_challenge_response_request import IdentificationChallengeResponseRequest as IdentificationChallengeResponseRequest - from authentik_client.models.identification_stage import IdentificationStage as IdentificationStage - from authentik_client.models.identification_stage_request import IdentificationStageRequest as IdentificationStageRequest - from authentik_client.models.iframe_logout_challenge import IframeLogoutChallenge as IframeLogoutChallenge - from authentik_client.models.iframe_logout_challenge_response_request import IframeLogoutChallengeResponseRequest as IframeLogoutChallengeResponseRequest - from authentik_client.models.impersonation_request import ImpersonationRequest as ImpersonationRequest - from authentik_client.models.initial_permissions import InitialPermissions as InitialPermissions - from authentik_client.models.initial_permissions_mode_enum import InitialPermissionsModeEnum as InitialPermissionsModeEnum - from authentik_client.models.initial_permissions_request import InitialPermissionsRequest as InitialPermissionsRequest - from authentik_client.models.install_id import InstallID as InstallID - from authentik_client.models.intent_enum import IntentEnum as IntentEnum - from authentik_client.models.invalid_response_action_enum import InvalidResponseActionEnum as InvalidResponseActionEnum - from authentik_client.models.invitation import Invitation as Invitation - from authentik_client.models.invitation_request import InvitationRequest as InvitationRequest - from authentik_client.models.invitation_stage import InvitationStage as InvitationStage - from authentik_client.models.invitation_stage_request import InvitationStageRequest as InvitationStageRequest - from authentik_client.models.issuer_mode_enum import IssuerModeEnum as IssuerModeEnum - from authentik_client.models.kadmin_type_enum import KadminTypeEnum as KadminTypeEnum - from authentik_client.models.kerberos_source import KerberosSource as KerberosSource - from authentik_client.models.kerberos_source_property_mapping import KerberosSourcePropertyMapping as KerberosSourcePropertyMapping - from authentik_client.models.kerberos_source_property_mapping_request import KerberosSourcePropertyMappingRequest as KerberosSourcePropertyMappingRequest - from authentik_client.models.kerberos_source_request import KerberosSourceRequest as KerberosSourceRequest - from authentik_client.models.kubernetes_service_connection import KubernetesServiceConnection as KubernetesServiceConnection - from authentik_client.models.kubernetes_service_connection_request import KubernetesServiceConnectionRequest as KubernetesServiceConnectionRequest - from authentik_client.models.ldapapi_access_mode import LDAPAPIAccessMode as LDAPAPIAccessMode - from authentik_client.models.ldap_check_access import LDAPCheckAccess as LDAPCheckAccess - from authentik_client.models.ldap_debug import LDAPDebug as LDAPDebug - from authentik_client.models.ldap_outpost_config import LDAPOutpostConfig as LDAPOutpostConfig - from authentik_client.models.ldap_provider import LDAPProvider as LDAPProvider - from authentik_client.models.ldap_provider_request import LDAPProviderRequest as LDAPProviderRequest - from authentik_client.models.ldap_source import LDAPSource as LDAPSource - from authentik_client.models.ldap_source_property_mapping import LDAPSourcePropertyMapping as LDAPSourcePropertyMapping - from authentik_client.models.ldap_source_property_mapping_request import LDAPSourcePropertyMappingRequest as LDAPSourcePropertyMappingRequest - from authentik_client.models.ldap_source_request import LDAPSourceRequest as LDAPSourceRequest - from authentik_client.models.last_task_status_enum import LastTaskStatusEnum as LastTaskStatusEnum - from authentik_client.models.license import License as License - from authentik_client.models.license_flags_enum import LicenseFlagsEnum as LicenseFlagsEnum - from authentik_client.models.license_forecast import LicenseForecast as LicenseForecast - from authentik_client.models.license_request import LicenseRequest as LicenseRequest - from authentik_client.models.license_summary import LicenseSummary as LicenseSummary - from authentik_client.models.license_summary_status_enum import LicenseSummaryStatusEnum as LicenseSummaryStatusEnum - from authentik_client.models.link import Link as Link - from authentik_client.models.log_event import LogEvent as LogEvent - from authentik_client.models.log_level_enum import LogLevelEnum as LogLevelEnum - from authentik_client.models.login_challenge_types import LoginChallengeTypes as LoginChallengeTypes - from authentik_client.models.login_source import LoginSource as LoginSource - from authentik_client.models.matching_mode_enum import MatchingModeEnum as MatchingModeEnum - from authentik_client.models.metadata import Metadata as Metadata - from authentik_client.models.microsoft_entra_provider import MicrosoftEntraProvider as MicrosoftEntraProvider - from authentik_client.models.microsoft_entra_provider_group import MicrosoftEntraProviderGroup as MicrosoftEntraProviderGroup - from authentik_client.models.microsoft_entra_provider_group_request import MicrosoftEntraProviderGroupRequest as MicrosoftEntraProviderGroupRequest - from authentik_client.models.microsoft_entra_provider_mapping import MicrosoftEntraProviderMapping as MicrosoftEntraProviderMapping - from authentik_client.models.microsoft_entra_provider_mapping_request import MicrosoftEntraProviderMappingRequest as MicrosoftEntraProviderMappingRequest - from authentik_client.models.microsoft_entra_provider_request import MicrosoftEntraProviderRequest as MicrosoftEntraProviderRequest - from authentik_client.models.microsoft_entra_provider_user import MicrosoftEntraProviderUser as MicrosoftEntraProviderUser - from authentik_client.models.microsoft_entra_provider_user_request import MicrosoftEntraProviderUserRequest as MicrosoftEntraProviderUserRequest - from authentik_client.models.model_enum import ModelEnum as ModelEnum - from authentik_client.models.model_request import ModelRequest as ModelRequest - from authentik_client.models.mutual_tls_stage import MutualTLSStage as MutualTLSStage - from authentik_client.models.mutual_tls_stage_mode_enum import MutualTLSStageModeEnum as MutualTLSStageModeEnum - from authentik_client.models.mutual_tls_stage_request import MutualTLSStageRequest as MutualTLSStageRequest - from authentik_client.models.native_logout_challenge import NativeLogoutChallenge as NativeLogoutChallenge - from authentik_client.models.native_logout_challenge_response_request import NativeLogoutChallengeResponseRequest as NativeLogoutChallengeResponseRequest - from authentik_client.models.network_binding_enum import NetworkBindingEnum as NetworkBindingEnum - from authentik_client.models.not_configured_action_enum import NotConfiguredActionEnum as NotConfiguredActionEnum - from authentik_client.models.notification import Notification as Notification - from authentik_client.models.notification_request import NotificationRequest as NotificationRequest - from authentik_client.models.notification_rule import NotificationRule as NotificationRule - from authentik_client.models.notification_rule_request import NotificationRuleRequest as NotificationRuleRequest - from authentik_client.models.notification_transport import NotificationTransport as NotificationTransport - from authentik_client.models.notification_transport_mode_enum import NotificationTransportModeEnum as NotificationTransportModeEnum - from authentik_client.models.notification_transport_request import NotificationTransportRequest as NotificationTransportRequest - from authentik_client.models.notification_transport_test import NotificationTransportTest as NotificationTransportTest - from authentik_client.models.notification_webhook_mapping import NotificationWebhookMapping as NotificationWebhookMapping - from authentik_client.models.notification_webhook_mapping_request import NotificationWebhookMappingRequest as NotificationWebhookMappingRequest - from authentik_client.models.o_auth2_provider import OAuth2Provider as OAuth2Provider - from authentik_client.models.o_auth2_provider_logout_method_enum import OAuth2ProviderLogoutMethodEnum as OAuth2ProviderLogoutMethodEnum - from authentik_client.models.o_auth2_provider_request import OAuth2ProviderRequest as OAuth2ProviderRequest - from authentik_client.models.o_auth2_provider_setup_urls import OAuth2ProviderSetupURLs as OAuth2ProviderSetupURLs - from authentik_client.models.o_auth_device_code_challenge import OAuthDeviceCodeChallenge as OAuthDeviceCodeChallenge - from authentik_client.models.o_auth_device_code_challenge_response_request import OAuthDeviceCodeChallengeResponseRequest as OAuthDeviceCodeChallengeResponseRequest - from authentik_client.models.o_auth_device_code_finish_challenge import OAuthDeviceCodeFinishChallenge as OAuthDeviceCodeFinishChallenge - from authentik_client.models.o_auth_device_code_finish_challenge_response_request import OAuthDeviceCodeFinishChallengeResponseRequest as OAuthDeviceCodeFinishChallengeResponseRequest - from authentik_client.models.o_auth_source import OAuthSource as OAuthSource - from authentik_client.models.o_auth_source_property_mapping import OAuthSourcePropertyMapping as OAuthSourcePropertyMapping - from authentik_client.models.o_auth_source_property_mapping_request import OAuthSourcePropertyMappingRequest as OAuthSourcePropertyMappingRequest - from authentik_client.models.o_auth_source_request import OAuthSourceRequest as OAuthSourceRequest - from authentik_client.models.open_id_connect_configuration import OpenIDConnectConfiguration as OpenIDConnectConfiguration - from authentik_client.models.outgoing_sync_delete_action import OutgoingSyncDeleteAction as OutgoingSyncDeleteAction - from authentik_client.models.outpost import Outpost as Outpost - from authentik_client.models.outpost_default_config import OutpostDefaultConfig as OutpostDefaultConfig - from authentik_client.models.outpost_health import OutpostHealth as OutpostHealth - from authentik_client.models.outpost_request import OutpostRequest as OutpostRequest - from authentik_client.models.outpost_type_enum import OutpostTypeEnum as OutpostTypeEnum - from authentik_client.models.paginated_application_entitlement_list import PaginatedApplicationEntitlementList as PaginatedApplicationEntitlementList - from authentik_client.models.paginated_application_list import PaginatedApplicationList as PaginatedApplicationList - from authentik_client.models.paginated_authenticated_session_list import PaginatedAuthenticatedSessionList as PaginatedAuthenticatedSessionList - from authentik_client.models.paginated_authenticator_duo_stage_list import PaginatedAuthenticatorDuoStageList as PaginatedAuthenticatorDuoStageList - from authentik_client.models.paginated_authenticator_email_stage_list import PaginatedAuthenticatorEmailStageList as PaginatedAuthenticatorEmailStageList - from authentik_client.models.paginated_authenticator_endpoint_gdtc_stage_list import PaginatedAuthenticatorEndpointGDTCStageList as PaginatedAuthenticatorEndpointGDTCStageList - from authentik_client.models.paginated_authenticator_sms_stage_list import PaginatedAuthenticatorSMSStageList as PaginatedAuthenticatorSMSStageList - from authentik_client.models.paginated_authenticator_static_stage_list import PaginatedAuthenticatorStaticStageList as PaginatedAuthenticatorStaticStageList - from authentik_client.models.paginated_authenticator_totp_stage_list import PaginatedAuthenticatorTOTPStageList as PaginatedAuthenticatorTOTPStageList - from authentik_client.models.paginated_authenticator_validate_stage_list import PaginatedAuthenticatorValidateStageList as PaginatedAuthenticatorValidateStageList - from authentik_client.models.paginated_authenticator_web_authn_stage_list import PaginatedAuthenticatorWebAuthnStageList as PaginatedAuthenticatorWebAuthnStageList - from authentik_client.models.paginated_blueprint_instance_list import PaginatedBlueprintInstanceList as PaginatedBlueprintInstanceList - from authentik_client.models.paginated_brand_list import PaginatedBrandList as PaginatedBrandList - from authentik_client.models.paginated_captcha_stage_list import PaginatedCaptchaStageList as PaginatedCaptchaStageList - from authentik_client.models.paginated_certificate_key_pair_list import PaginatedCertificateKeyPairList as PaginatedCertificateKeyPairList - from authentik_client.models.paginated_connection_token_list import PaginatedConnectionTokenList as PaginatedConnectionTokenList - from authentik_client.models.paginated_consent_stage_list import PaginatedConsentStageList as PaginatedConsentStageList - from authentik_client.models.paginated_deny_stage_list import PaginatedDenyStageList as PaginatedDenyStageList - from authentik_client.models.paginated_docker_service_connection_list import PaginatedDockerServiceConnectionList as PaginatedDockerServiceConnectionList - from authentik_client.models.paginated_domain_list import PaginatedDomainList as PaginatedDomainList - from authentik_client.models.paginated_dummy_policy_list import PaginatedDummyPolicyList as PaginatedDummyPolicyList - from authentik_client.models.paginated_dummy_stage_list import PaginatedDummyStageList as PaginatedDummyStageList - from authentik_client.models.paginated_duo_device_list import PaginatedDuoDeviceList as PaginatedDuoDeviceList - from authentik_client.models.paginated_email_device_list import PaginatedEmailDeviceList as PaginatedEmailDeviceList - from authentik_client.models.paginated_email_stage_list import PaginatedEmailStageList as PaginatedEmailStageList - from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList as PaginatedEndpointDeviceList - from authentik_client.models.paginated_endpoint_list import PaginatedEndpointList as PaginatedEndpointList - from authentik_client.models.paginated_event_list import PaginatedEventList as PaginatedEventList - from authentik_client.models.paginated_event_matcher_policy_list import PaginatedEventMatcherPolicyList as PaginatedEventMatcherPolicyList - from authentik_client.models.paginated_expiring_base_grant_model_list import PaginatedExpiringBaseGrantModelList as PaginatedExpiringBaseGrantModelList - from authentik_client.models.paginated_expression_policy_list import PaginatedExpressionPolicyList as PaginatedExpressionPolicyList - from authentik_client.models.paginated_extra_role_object_permission_list import PaginatedExtraRoleObjectPermissionList as PaginatedExtraRoleObjectPermissionList - from authentik_client.models.paginated_extra_user_object_permission_list import PaginatedExtraUserObjectPermissionList as PaginatedExtraUserObjectPermissionList - from authentik_client.models.paginated_flow_list import PaginatedFlowList as PaginatedFlowList - from authentik_client.models.paginated_flow_stage_binding_list import PaginatedFlowStageBindingList as PaginatedFlowStageBindingList - from authentik_client.models.paginated_geo_ip_policy_list import PaginatedGeoIPPolicyList as PaginatedGeoIPPolicyList - from authentik_client.models.paginated_google_workspace_provider_group_list import PaginatedGoogleWorkspaceProviderGroupList as PaginatedGoogleWorkspaceProviderGroupList - from authentik_client.models.paginated_google_workspace_provider_list import PaginatedGoogleWorkspaceProviderList as PaginatedGoogleWorkspaceProviderList - from authentik_client.models.paginated_google_workspace_provider_mapping_list import PaginatedGoogleWorkspaceProviderMappingList as PaginatedGoogleWorkspaceProviderMappingList - from authentik_client.models.paginated_google_workspace_provider_user_list import PaginatedGoogleWorkspaceProviderUserList as PaginatedGoogleWorkspaceProviderUserList - from authentik_client.models.paginated_group_kerberos_source_connection_list import PaginatedGroupKerberosSourceConnectionList as PaginatedGroupKerberosSourceConnectionList - from authentik_client.models.paginated_group_ldap_source_connection_list import PaginatedGroupLDAPSourceConnectionList as PaginatedGroupLDAPSourceConnectionList - from authentik_client.models.paginated_group_list import PaginatedGroupList as PaginatedGroupList - from authentik_client.models.paginated_group_o_auth_source_connection_list import PaginatedGroupOAuthSourceConnectionList as PaginatedGroupOAuthSourceConnectionList - from authentik_client.models.paginated_group_plex_source_connection_list import PaginatedGroupPlexSourceConnectionList as PaginatedGroupPlexSourceConnectionList - from authentik_client.models.paginated_group_saml_source_connection_list import PaginatedGroupSAMLSourceConnectionList as PaginatedGroupSAMLSourceConnectionList - from authentik_client.models.paginated_group_source_connection_list import PaginatedGroupSourceConnectionList as PaginatedGroupSourceConnectionList - from authentik_client.models.paginated_group_telegram_source_connection_list import PaginatedGroupTelegramSourceConnectionList as PaginatedGroupTelegramSourceConnectionList - from authentik_client.models.paginated_identification_stage_list import PaginatedIdentificationStageList as PaginatedIdentificationStageList - from authentik_client.models.paginated_initial_permissions_list import PaginatedInitialPermissionsList as PaginatedInitialPermissionsList - from authentik_client.models.paginated_invitation_list import PaginatedInvitationList as PaginatedInvitationList - from authentik_client.models.paginated_invitation_stage_list import PaginatedInvitationStageList as PaginatedInvitationStageList - from authentik_client.models.paginated_kerberos_source_list import PaginatedKerberosSourceList as PaginatedKerberosSourceList - from authentik_client.models.paginated_kerberos_source_property_mapping_list import PaginatedKerberosSourcePropertyMappingList as PaginatedKerberosSourcePropertyMappingList - from authentik_client.models.paginated_kubernetes_service_connection_list import PaginatedKubernetesServiceConnectionList as PaginatedKubernetesServiceConnectionList - from authentik_client.models.paginated_ldap_outpost_config_list import PaginatedLDAPOutpostConfigList as PaginatedLDAPOutpostConfigList - from authentik_client.models.paginated_ldap_provider_list import PaginatedLDAPProviderList as PaginatedLDAPProviderList - from authentik_client.models.paginated_ldap_source_list import PaginatedLDAPSourceList as PaginatedLDAPSourceList - from authentik_client.models.paginated_ldap_source_property_mapping_list import PaginatedLDAPSourcePropertyMappingList as PaginatedLDAPSourcePropertyMappingList - from authentik_client.models.paginated_license_list import PaginatedLicenseList as PaginatedLicenseList - from authentik_client.models.paginated_microsoft_entra_provider_group_list import PaginatedMicrosoftEntraProviderGroupList as PaginatedMicrosoftEntraProviderGroupList - from authentik_client.models.paginated_microsoft_entra_provider_list import PaginatedMicrosoftEntraProviderList as PaginatedMicrosoftEntraProviderList - from authentik_client.models.paginated_microsoft_entra_provider_mapping_list import PaginatedMicrosoftEntraProviderMappingList as PaginatedMicrosoftEntraProviderMappingList - from authentik_client.models.paginated_microsoft_entra_provider_user_list import PaginatedMicrosoftEntraProviderUserList as PaginatedMicrosoftEntraProviderUserList - from authentik_client.models.paginated_mutual_tls_stage_list import PaginatedMutualTLSStageList as PaginatedMutualTLSStageList - from authentik_client.models.paginated_notification_list import PaginatedNotificationList as PaginatedNotificationList - from authentik_client.models.paginated_notification_rule_list import PaginatedNotificationRuleList as PaginatedNotificationRuleList - from authentik_client.models.paginated_notification_transport_list import PaginatedNotificationTransportList as PaginatedNotificationTransportList - from authentik_client.models.paginated_notification_webhook_mapping_list import PaginatedNotificationWebhookMappingList as PaginatedNotificationWebhookMappingList - from authentik_client.models.paginated_o_auth2_provider_list import PaginatedOAuth2ProviderList as PaginatedOAuth2ProviderList - from authentik_client.models.paginated_o_auth_source_list import PaginatedOAuthSourceList as PaginatedOAuthSourceList - from authentik_client.models.paginated_o_auth_source_property_mapping_list import PaginatedOAuthSourcePropertyMappingList as PaginatedOAuthSourcePropertyMappingList - from authentik_client.models.paginated_outpost_list import PaginatedOutpostList as PaginatedOutpostList - from authentik_client.models.paginated_password_expiry_policy_list import PaginatedPasswordExpiryPolicyList as PaginatedPasswordExpiryPolicyList - from authentik_client.models.paginated_password_policy_list import PaginatedPasswordPolicyList as PaginatedPasswordPolicyList - from authentik_client.models.paginated_password_stage_list import PaginatedPasswordStageList as PaginatedPasswordStageList - from authentik_client.models.paginated_permission_list import PaginatedPermissionList as PaginatedPermissionList - from authentik_client.models.paginated_plex_source_list import PaginatedPlexSourceList as PaginatedPlexSourceList - from authentik_client.models.paginated_plex_source_property_mapping_list import PaginatedPlexSourcePropertyMappingList as PaginatedPlexSourcePropertyMappingList - from authentik_client.models.paginated_policy_binding_list import PaginatedPolicyBindingList as PaginatedPolicyBindingList - from authentik_client.models.paginated_policy_list import PaginatedPolicyList as PaginatedPolicyList - from authentik_client.models.paginated_prompt_list import PaginatedPromptList as PaginatedPromptList - from authentik_client.models.paginated_prompt_stage_list import PaginatedPromptStageList as PaginatedPromptStageList - from authentik_client.models.paginated_property_mapping_list import PaginatedPropertyMappingList as PaginatedPropertyMappingList - from authentik_client.models.paginated_provider_list import PaginatedProviderList as PaginatedProviderList - from authentik_client.models.paginated_proxy_outpost_config_list import PaginatedProxyOutpostConfigList as PaginatedProxyOutpostConfigList - from authentik_client.models.paginated_proxy_provider_list import PaginatedProxyProviderList as PaginatedProxyProviderList - from authentik_client.models.paginated_rac_property_mapping_list import PaginatedRACPropertyMappingList as PaginatedRACPropertyMappingList - from authentik_client.models.paginated_rac_provider_list import PaginatedRACProviderList as PaginatedRACProviderList - from authentik_client.models.paginated_radius_outpost_config_list import PaginatedRadiusOutpostConfigList as PaginatedRadiusOutpostConfigList - from authentik_client.models.paginated_radius_provider_list import PaginatedRadiusProviderList as PaginatedRadiusProviderList - from authentik_client.models.paginated_radius_provider_property_mapping_list import PaginatedRadiusProviderPropertyMappingList as PaginatedRadiusProviderPropertyMappingList - from authentik_client.models.paginated_redirect_stage_list import PaginatedRedirectStageList as PaginatedRedirectStageList - from authentik_client.models.paginated_reputation_list import PaginatedReputationList as PaginatedReputationList - from authentik_client.models.paginated_reputation_policy_list import PaginatedReputationPolicyList as PaginatedReputationPolicyList - from authentik_client.models.paginated_role_assigned_object_permission_list import PaginatedRoleAssignedObjectPermissionList as PaginatedRoleAssignedObjectPermissionList - from authentik_client.models.paginated_role_list import PaginatedRoleList as PaginatedRoleList - from authentik_client.models.paginated_saml_property_mapping_list import PaginatedSAMLPropertyMappingList as PaginatedSAMLPropertyMappingList - from authentik_client.models.paginated_saml_provider_list import PaginatedSAMLProviderList as PaginatedSAMLProviderList - from authentik_client.models.paginated_saml_source_list import PaginatedSAMLSourceList as PaginatedSAMLSourceList - from authentik_client.models.paginated_saml_source_property_mapping_list import PaginatedSAMLSourcePropertyMappingList as PaginatedSAMLSourcePropertyMappingList - from authentik_client.models.paginated_scim_mapping_list import PaginatedSCIMMappingList as PaginatedSCIMMappingList - from authentik_client.models.paginated_scim_provider_group_list import PaginatedSCIMProviderGroupList as PaginatedSCIMProviderGroupList - from authentik_client.models.paginated_scim_provider_list import PaginatedSCIMProviderList as PaginatedSCIMProviderList - from authentik_client.models.paginated_scim_provider_user_list import PaginatedSCIMProviderUserList as PaginatedSCIMProviderUserList - from authentik_client.models.paginated_scim_source_group_list import PaginatedSCIMSourceGroupList as PaginatedSCIMSourceGroupList - from authentik_client.models.paginated_scim_source_list import PaginatedSCIMSourceList as PaginatedSCIMSourceList - from authentik_client.models.paginated_scim_source_property_mapping_list import PaginatedSCIMSourcePropertyMappingList as PaginatedSCIMSourcePropertyMappingList - from authentik_client.models.paginated_scim_source_user_list import PaginatedSCIMSourceUserList as PaginatedSCIMSourceUserList - from authentik_client.models.paginated_sms_device_list import PaginatedSMSDeviceList as PaginatedSMSDeviceList - from authentik_client.models.paginated_ssf_provider_list import PaginatedSSFProviderList as PaginatedSSFProviderList - from authentik_client.models.paginated_ssf_stream_list import PaginatedSSFStreamList as PaginatedSSFStreamList - from authentik_client.models.paginated_schedule_list import PaginatedScheduleList as PaginatedScheduleList - from authentik_client.models.paginated_scope_mapping_list import PaginatedScopeMappingList as PaginatedScopeMappingList - from authentik_client.models.paginated_service_connection_list import PaginatedServiceConnectionList as PaginatedServiceConnectionList - from authentik_client.models.paginated_source_list import PaginatedSourceList as PaginatedSourceList - from authentik_client.models.paginated_source_stage_list import PaginatedSourceStageList as PaginatedSourceStageList - from authentik_client.models.paginated_stage_list import PaginatedStageList as PaginatedStageList - from authentik_client.models.paginated_static_device_list import PaginatedStaticDeviceList as PaginatedStaticDeviceList - from authentik_client.models.paginated_totp_device_list import PaginatedTOTPDeviceList as PaginatedTOTPDeviceList - from authentik_client.models.paginated_task_list import PaginatedTaskList as PaginatedTaskList - from authentik_client.models.paginated_telegram_source_list import PaginatedTelegramSourceList as PaginatedTelegramSourceList - from authentik_client.models.paginated_telegram_source_property_mapping_list import PaginatedTelegramSourcePropertyMappingList as PaginatedTelegramSourcePropertyMappingList - from authentik_client.models.paginated_tenant_list import PaginatedTenantList as PaginatedTenantList - from authentik_client.models.paginated_token_list import PaginatedTokenList as PaginatedTokenList - from authentik_client.models.paginated_token_model_list import PaginatedTokenModelList as PaginatedTokenModelList - from authentik_client.models.paginated_unique_password_policy_list import PaginatedUniquePasswordPolicyList as PaginatedUniquePasswordPolicyList - from authentik_client.models.paginated_user_assigned_object_permission_list import PaginatedUserAssignedObjectPermissionList as PaginatedUserAssignedObjectPermissionList - from authentik_client.models.paginated_user_consent_list import PaginatedUserConsentList as PaginatedUserConsentList - from authentik_client.models.paginated_user_delete_stage_list import PaginatedUserDeleteStageList as PaginatedUserDeleteStageList - from authentik_client.models.paginated_user_kerberos_source_connection_list import PaginatedUserKerberosSourceConnectionList as PaginatedUserKerberosSourceConnectionList - from authentik_client.models.paginated_user_ldap_source_connection_list import PaginatedUserLDAPSourceConnectionList as PaginatedUserLDAPSourceConnectionList - from authentik_client.models.paginated_user_list import PaginatedUserList as PaginatedUserList - from authentik_client.models.paginated_user_login_stage_list import PaginatedUserLoginStageList as PaginatedUserLoginStageList - from authentik_client.models.paginated_user_logout_stage_list import PaginatedUserLogoutStageList as PaginatedUserLogoutStageList - from authentik_client.models.paginated_user_o_auth_source_connection_list import PaginatedUserOAuthSourceConnectionList as PaginatedUserOAuthSourceConnectionList - from authentik_client.models.paginated_user_plex_source_connection_list import PaginatedUserPlexSourceConnectionList as PaginatedUserPlexSourceConnectionList - from authentik_client.models.paginated_user_saml_source_connection_list import PaginatedUserSAMLSourceConnectionList as PaginatedUserSAMLSourceConnectionList - from authentik_client.models.paginated_user_source_connection_list import PaginatedUserSourceConnectionList as PaginatedUserSourceConnectionList - from authentik_client.models.paginated_user_telegram_source_connection_list import PaginatedUserTelegramSourceConnectionList as PaginatedUserTelegramSourceConnectionList - from authentik_client.models.paginated_user_write_stage_list import PaginatedUserWriteStageList as PaginatedUserWriteStageList - from authentik_client.models.paginated_web_authn_device_list import PaginatedWebAuthnDeviceList as PaginatedWebAuthnDeviceList - from authentik_client.models.paginated_web_authn_device_type_list import PaginatedWebAuthnDeviceTypeList as PaginatedWebAuthnDeviceTypeList - from authentik_client.models.pagination import Pagination as Pagination - from authentik_client.models.partial_group import PartialGroup as PartialGroup - from authentik_client.models.partial_user import PartialUser as PartialUser - from authentik_client.models.password_challenge import PasswordChallenge as PasswordChallenge - from authentik_client.models.password_challenge_response_request import PasswordChallengeResponseRequest as PasswordChallengeResponseRequest - from authentik_client.models.password_expiry_policy import PasswordExpiryPolicy as PasswordExpiryPolicy - from authentik_client.models.password_expiry_policy_request import PasswordExpiryPolicyRequest as PasswordExpiryPolicyRequest - from authentik_client.models.password_policy import PasswordPolicy as PasswordPolicy - from authentik_client.models.password_policy_request import PasswordPolicyRequest as PasswordPolicyRequest - from authentik_client.models.password_stage import PasswordStage as PasswordStage - from authentik_client.models.password_stage_request import PasswordStageRequest as PasswordStageRequest - from authentik_client.models.patched_application_entitlement_request import PatchedApplicationEntitlementRequest as PatchedApplicationEntitlementRequest - from authentik_client.models.patched_application_request import PatchedApplicationRequest as PatchedApplicationRequest - from authentik_client.models.patched_authenticator_duo_stage_request import PatchedAuthenticatorDuoStageRequest as PatchedAuthenticatorDuoStageRequest - from authentik_client.models.patched_authenticator_email_stage_request import PatchedAuthenticatorEmailStageRequest as PatchedAuthenticatorEmailStageRequest - from authentik_client.models.patched_authenticator_endpoint_gdtc_stage_request import PatchedAuthenticatorEndpointGDTCStageRequest as PatchedAuthenticatorEndpointGDTCStageRequest - from authentik_client.models.patched_authenticator_sms_stage_request import PatchedAuthenticatorSMSStageRequest as PatchedAuthenticatorSMSStageRequest - from authentik_client.models.patched_authenticator_static_stage_request import PatchedAuthenticatorStaticStageRequest as PatchedAuthenticatorStaticStageRequest - from authentik_client.models.patched_authenticator_totp_stage_request import PatchedAuthenticatorTOTPStageRequest as PatchedAuthenticatorTOTPStageRequest - from authentik_client.models.patched_authenticator_validate_stage_request import PatchedAuthenticatorValidateStageRequest as PatchedAuthenticatorValidateStageRequest - from authentik_client.models.patched_authenticator_web_authn_stage_request import PatchedAuthenticatorWebAuthnStageRequest as PatchedAuthenticatorWebAuthnStageRequest - from authentik_client.models.patched_blueprint_instance_request import PatchedBlueprintInstanceRequest as PatchedBlueprintInstanceRequest - from authentik_client.models.patched_brand_request import PatchedBrandRequest as PatchedBrandRequest - from authentik_client.models.patched_captcha_stage_request import PatchedCaptchaStageRequest as PatchedCaptchaStageRequest - from authentik_client.models.patched_certificate_key_pair_request import PatchedCertificateKeyPairRequest as PatchedCertificateKeyPairRequest - from authentik_client.models.patched_connection_token_request import PatchedConnectionTokenRequest as PatchedConnectionTokenRequest - from authentik_client.models.patched_consent_stage_request import PatchedConsentStageRequest as PatchedConsentStageRequest - from authentik_client.models.patched_deny_stage_request import PatchedDenyStageRequest as PatchedDenyStageRequest - from authentik_client.models.patched_docker_service_connection_request import PatchedDockerServiceConnectionRequest as PatchedDockerServiceConnectionRequest - from authentik_client.models.patched_domain_request import PatchedDomainRequest as PatchedDomainRequest - from authentik_client.models.patched_dummy_policy_request import PatchedDummyPolicyRequest as PatchedDummyPolicyRequest - from authentik_client.models.patched_dummy_stage_request import PatchedDummyStageRequest as PatchedDummyStageRequest - from authentik_client.models.patched_duo_device_request import PatchedDuoDeviceRequest as PatchedDuoDeviceRequest - from authentik_client.models.patched_email_device_request import PatchedEmailDeviceRequest as PatchedEmailDeviceRequest - from authentik_client.models.patched_email_stage_request import PatchedEmailStageRequest as PatchedEmailStageRequest - from authentik_client.models.patched_endpoint_device_request import PatchedEndpointDeviceRequest as PatchedEndpointDeviceRequest - from authentik_client.models.patched_endpoint_request import PatchedEndpointRequest as PatchedEndpointRequest - from authentik_client.models.patched_event_matcher_policy_request import PatchedEventMatcherPolicyRequest as PatchedEventMatcherPolicyRequest - from authentik_client.models.patched_event_request import PatchedEventRequest as PatchedEventRequest - from authentik_client.models.patched_expression_policy_request import PatchedExpressionPolicyRequest as PatchedExpressionPolicyRequest - from authentik_client.models.patched_extra_role_object_permission_request import PatchedExtraRoleObjectPermissionRequest as PatchedExtraRoleObjectPermissionRequest - from authentik_client.models.patched_extra_user_object_permission_request import PatchedExtraUserObjectPermissionRequest as PatchedExtraUserObjectPermissionRequest - from authentik_client.models.patched_flow_request import PatchedFlowRequest as PatchedFlowRequest - from authentik_client.models.patched_flow_stage_binding_request import PatchedFlowStageBindingRequest as PatchedFlowStageBindingRequest - from authentik_client.models.patched_geo_ip_policy_request import PatchedGeoIPPolicyRequest as PatchedGeoIPPolicyRequest - from authentik_client.models.patched_google_workspace_provider_mapping_request import PatchedGoogleWorkspaceProviderMappingRequest as PatchedGoogleWorkspaceProviderMappingRequest - from authentik_client.models.patched_google_workspace_provider_request import PatchedGoogleWorkspaceProviderRequest as PatchedGoogleWorkspaceProviderRequest - from authentik_client.models.patched_group_kerberos_source_connection_request import PatchedGroupKerberosSourceConnectionRequest as PatchedGroupKerberosSourceConnectionRequest - from authentik_client.models.patched_group_ldap_source_connection_request import PatchedGroupLDAPSourceConnectionRequest as PatchedGroupLDAPSourceConnectionRequest - from authentik_client.models.patched_group_o_auth_source_connection_request import PatchedGroupOAuthSourceConnectionRequest as PatchedGroupOAuthSourceConnectionRequest - from authentik_client.models.patched_group_plex_source_connection_request import PatchedGroupPlexSourceConnectionRequest as PatchedGroupPlexSourceConnectionRequest - from authentik_client.models.patched_group_request import PatchedGroupRequest as PatchedGroupRequest - from authentik_client.models.patched_group_saml_source_connection_request import PatchedGroupSAMLSourceConnectionRequest as PatchedGroupSAMLSourceConnectionRequest - from authentik_client.models.patched_group_source_connection_request import PatchedGroupSourceConnectionRequest as PatchedGroupSourceConnectionRequest - from authentik_client.models.patched_group_telegram_source_connection_request import PatchedGroupTelegramSourceConnectionRequest as PatchedGroupTelegramSourceConnectionRequest - from authentik_client.models.patched_identification_stage_request import PatchedIdentificationStageRequest as PatchedIdentificationStageRequest - from authentik_client.models.patched_initial_permissions_request import PatchedInitialPermissionsRequest as PatchedInitialPermissionsRequest - from authentik_client.models.patched_invitation_request import PatchedInvitationRequest as PatchedInvitationRequest - from authentik_client.models.patched_invitation_stage_request import PatchedInvitationStageRequest as PatchedInvitationStageRequest - from authentik_client.models.patched_kerberos_source_property_mapping_request import PatchedKerberosSourcePropertyMappingRequest as PatchedKerberosSourcePropertyMappingRequest - from authentik_client.models.patched_kerberos_source_request import PatchedKerberosSourceRequest as PatchedKerberosSourceRequest - from authentik_client.models.patched_kubernetes_service_connection_request import PatchedKubernetesServiceConnectionRequest as PatchedKubernetesServiceConnectionRequest - from authentik_client.models.patched_ldap_provider_request import PatchedLDAPProviderRequest as PatchedLDAPProviderRequest - from authentik_client.models.patched_ldap_source_property_mapping_request import PatchedLDAPSourcePropertyMappingRequest as PatchedLDAPSourcePropertyMappingRequest - from authentik_client.models.patched_ldap_source_request import PatchedLDAPSourceRequest as PatchedLDAPSourceRequest - from authentik_client.models.patched_license_request import PatchedLicenseRequest as PatchedLicenseRequest - from authentik_client.models.patched_microsoft_entra_provider_mapping_request import PatchedMicrosoftEntraProviderMappingRequest as PatchedMicrosoftEntraProviderMappingRequest - from authentik_client.models.patched_microsoft_entra_provider_request import PatchedMicrosoftEntraProviderRequest as PatchedMicrosoftEntraProviderRequest - from authentik_client.models.patched_mutual_tls_stage_request import PatchedMutualTLSStageRequest as PatchedMutualTLSStageRequest - from authentik_client.models.patched_notification_request import PatchedNotificationRequest as PatchedNotificationRequest - from authentik_client.models.patched_notification_rule_request import PatchedNotificationRuleRequest as PatchedNotificationRuleRequest - from authentik_client.models.patched_notification_transport_request import PatchedNotificationTransportRequest as PatchedNotificationTransportRequest - from authentik_client.models.patched_notification_webhook_mapping_request import PatchedNotificationWebhookMappingRequest as PatchedNotificationWebhookMappingRequest - from authentik_client.models.patched_o_auth2_provider_request import PatchedOAuth2ProviderRequest as PatchedOAuth2ProviderRequest - from authentik_client.models.patched_o_auth_source_property_mapping_request import PatchedOAuthSourcePropertyMappingRequest as PatchedOAuthSourcePropertyMappingRequest - from authentik_client.models.patched_o_auth_source_request import PatchedOAuthSourceRequest as PatchedOAuthSourceRequest - from authentik_client.models.patched_outpost_request import PatchedOutpostRequest as PatchedOutpostRequest - from authentik_client.models.patched_password_expiry_policy_request import PatchedPasswordExpiryPolicyRequest as PatchedPasswordExpiryPolicyRequest - from authentik_client.models.patched_password_policy_request import PatchedPasswordPolicyRequest as PatchedPasswordPolicyRequest - from authentik_client.models.patched_password_stage_request import PatchedPasswordStageRequest as PatchedPasswordStageRequest - from authentik_client.models.patched_permission_assign_request import PatchedPermissionAssignRequest as PatchedPermissionAssignRequest - from authentik_client.models.patched_plex_source_property_mapping_request import PatchedPlexSourcePropertyMappingRequest as PatchedPlexSourcePropertyMappingRequest - from authentik_client.models.patched_plex_source_request import PatchedPlexSourceRequest as PatchedPlexSourceRequest - from authentik_client.models.patched_policy_binding_request import PatchedPolicyBindingRequest as PatchedPolicyBindingRequest - from authentik_client.models.patched_prompt_request import PatchedPromptRequest as PatchedPromptRequest - from authentik_client.models.patched_prompt_stage_request import PatchedPromptStageRequest as PatchedPromptStageRequest - from authentik_client.models.patched_proxy_provider_request import PatchedProxyProviderRequest as PatchedProxyProviderRequest - from authentik_client.models.patched_rac_property_mapping_request import PatchedRACPropertyMappingRequest as PatchedRACPropertyMappingRequest - from authentik_client.models.patched_rac_provider_request import PatchedRACProviderRequest as PatchedRACProviderRequest - from authentik_client.models.patched_radius_provider_property_mapping_request import PatchedRadiusProviderPropertyMappingRequest as PatchedRadiusProviderPropertyMappingRequest - from authentik_client.models.patched_radius_provider_request import PatchedRadiusProviderRequest as PatchedRadiusProviderRequest - from authentik_client.models.patched_redirect_stage_request import PatchedRedirectStageRequest as PatchedRedirectStageRequest - from authentik_client.models.patched_reputation_policy_request import PatchedReputationPolicyRequest as PatchedReputationPolicyRequest - from authentik_client.models.patched_role_request import PatchedRoleRequest as PatchedRoleRequest - from authentik_client.models.patched_saml_property_mapping_request import PatchedSAMLPropertyMappingRequest as PatchedSAMLPropertyMappingRequest - from authentik_client.models.patched_saml_provider_request import PatchedSAMLProviderRequest as PatchedSAMLProviderRequest - from authentik_client.models.patched_saml_source_property_mapping_request import PatchedSAMLSourcePropertyMappingRequest as PatchedSAMLSourcePropertyMappingRequest - from authentik_client.models.patched_saml_source_request import PatchedSAMLSourceRequest as PatchedSAMLSourceRequest - from authentik_client.models.patched_scim_mapping_request import PatchedSCIMMappingRequest as PatchedSCIMMappingRequest - from authentik_client.models.patched_scim_provider_request import PatchedSCIMProviderRequest as PatchedSCIMProviderRequest - from authentik_client.models.patched_scim_source_group_request import PatchedSCIMSourceGroupRequest as PatchedSCIMSourceGroupRequest - from authentik_client.models.patched_scim_source_property_mapping_request import PatchedSCIMSourcePropertyMappingRequest as PatchedSCIMSourcePropertyMappingRequest - from authentik_client.models.patched_scim_source_request import PatchedSCIMSourceRequest as PatchedSCIMSourceRequest - from authentik_client.models.patched_scim_source_user_request import PatchedSCIMSourceUserRequest as PatchedSCIMSourceUserRequest - from authentik_client.models.patched_sms_device_request import PatchedSMSDeviceRequest as PatchedSMSDeviceRequest - from authentik_client.models.patched_ssf_provider_request import PatchedSSFProviderRequest as PatchedSSFProviderRequest - from authentik_client.models.patched_schedule_request import PatchedScheduleRequest as PatchedScheduleRequest - from authentik_client.models.patched_scope_mapping_request import PatchedScopeMappingRequest as PatchedScopeMappingRequest - from authentik_client.models.patched_settings_request import PatchedSettingsRequest as PatchedSettingsRequest - from authentik_client.models.patched_settings_request_flags import PatchedSettingsRequestFlags as PatchedSettingsRequestFlags - from authentik_client.models.patched_source_stage_request import PatchedSourceStageRequest as PatchedSourceStageRequest - from authentik_client.models.patched_static_device_request import PatchedStaticDeviceRequest as PatchedStaticDeviceRequest - from authentik_client.models.patched_totp_device_request import PatchedTOTPDeviceRequest as PatchedTOTPDeviceRequest - from authentik_client.models.patched_telegram_source_property_mapping_request import PatchedTelegramSourcePropertyMappingRequest as PatchedTelegramSourcePropertyMappingRequest - from authentik_client.models.patched_telegram_source_request import PatchedTelegramSourceRequest as PatchedTelegramSourceRequest - from authentik_client.models.patched_tenant_request import PatchedTenantRequest as PatchedTenantRequest - from authentik_client.models.patched_token_request import PatchedTokenRequest as PatchedTokenRequest - from authentik_client.models.patched_unique_password_policy_request import PatchedUniquePasswordPolicyRequest as PatchedUniquePasswordPolicyRequest - from authentik_client.models.patched_user_delete_stage_request import PatchedUserDeleteStageRequest as PatchedUserDeleteStageRequest - from authentik_client.models.patched_user_kerberos_source_connection_request import PatchedUserKerberosSourceConnectionRequest as PatchedUserKerberosSourceConnectionRequest - from authentik_client.models.patched_user_ldap_source_connection_request import PatchedUserLDAPSourceConnectionRequest as PatchedUserLDAPSourceConnectionRequest - from authentik_client.models.patched_user_login_stage_request import PatchedUserLoginStageRequest as PatchedUserLoginStageRequest - from authentik_client.models.patched_user_logout_stage_request import PatchedUserLogoutStageRequest as PatchedUserLogoutStageRequest - from authentik_client.models.patched_user_o_auth_source_connection_request import PatchedUserOAuthSourceConnectionRequest as PatchedUserOAuthSourceConnectionRequest - from authentik_client.models.patched_user_plex_source_connection_request import PatchedUserPlexSourceConnectionRequest as PatchedUserPlexSourceConnectionRequest - from authentik_client.models.patched_user_request import PatchedUserRequest as PatchedUserRequest - from authentik_client.models.patched_user_saml_source_connection_request import PatchedUserSAMLSourceConnectionRequest as PatchedUserSAMLSourceConnectionRequest - from authentik_client.models.patched_user_source_connection_request import PatchedUserSourceConnectionRequest as PatchedUserSourceConnectionRequest - from authentik_client.models.patched_user_telegram_source_connection_request import PatchedUserTelegramSourceConnectionRequest as PatchedUserTelegramSourceConnectionRequest - from authentik_client.models.patched_user_write_stage_request import PatchedUserWriteStageRequest as PatchedUserWriteStageRequest - from authentik_client.models.patched_web_authn_device_request import PatchedWebAuthnDeviceRequest as PatchedWebAuthnDeviceRequest - from authentik_client.models.permission import Permission as Permission - from authentik_client.models.permission_assign_request import PermissionAssignRequest as PermissionAssignRequest - from authentik_client.models.permission_assign_result import PermissionAssignResult as PermissionAssignResult - from authentik_client.models.plex_authentication_challenge import PlexAuthenticationChallenge as PlexAuthenticationChallenge - from authentik_client.models.plex_authentication_challenge_response_request import PlexAuthenticationChallengeResponseRequest as PlexAuthenticationChallengeResponseRequest - from authentik_client.models.plex_source import PlexSource as PlexSource - from authentik_client.models.plex_source_property_mapping import PlexSourcePropertyMapping as PlexSourcePropertyMapping - from authentik_client.models.plex_source_property_mapping_request import PlexSourcePropertyMappingRequest as PlexSourcePropertyMappingRequest - from authentik_client.models.plex_source_request import PlexSourceRequest as PlexSourceRequest - from authentik_client.models.plex_token_redeem_request import PlexTokenRedeemRequest as PlexTokenRedeemRequest - from authentik_client.models.policy import Policy as Policy - from authentik_client.models.policy_binding import PolicyBinding as PolicyBinding - from authentik_client.models.policy_binding_request import PolicyBindingRequest as PolicyBindingRequest - from authentik_client.models.policy_engine_mode import PolicyEngineMode as PolicyEngineMode - from authentik_client.models.policy_test_request import PolicyTestRequest as PolicyTestRequest - from authentik_client.models.policy_test_result import PolicyTestResult as PolicyTestResult - from authentik_client.models.prompt import Prompt as Prompt - from authentik_client.models.prompt_challenge import PromptChallenge as PromptChallenge - from authentik_client.models.prompt_challenge_response_request import PromptChallengeResponseRequest as PromptChallengeResponseRequest - from authentik_client.models.prompt_request import PromptRequest as PromptRequest - from authentik_client.models.prompt_stage import PromptStage as PromptStage - from authentik_client.models.prompt_stage_request import PromptStageRequest as PromptStageRequest - from authentik_client.models.prompt_type_enum import PromptTypeEnum as PromptTypeEnum - from authentik_client.models.property_mapping import PropertyMapping as PropertyMapping - from authentik_client.models.property_mapping_preview import PropertyMappingPreview as PropertyMappingPreview - from authentik_client.models.property_mapping_test_request import PropertyMappingTestRequest as PropertyMappingTestRequest - from authentik_client.models.property_mapping_test_result import PropertyMappingTestResult as PropertyMappingTestResult - from authentik_client.models.protocol_enum import ProtocolEnum as ProtocolEnum - from authentik_client.models.provider import Provider as Provider - from authentik_client.models.provider_enum import ProviderEnum as ProviderEnum - from authentik_client.models.provider_model_enum import ProviderModelEnum as ProviderModelEnum - from authentik_client.models.provider_type_enum import ProviderTypeEnum as ProviderTypeEnum - from authentik_client.models.proxy_mode import ProxyMode as ProxyMode - from authentik_client.models.proxy_outpost_config import ProxyOutpostConfig as ProxyOutpostConfig - from authentik_client.models.proxy_provider import ProxyProvider as ProxyProvider - from authentik_client.models.proxy_provider_request import ProxyProviderRequest as ProxyProviderRequest - from authentik_client.models.rac_property_mapping import RACPropertyMapping as RACPropertyMapping - from authentik_client.models.rac_property_mapping_request import RACPropertyMappingRequest as RACPropertyMappingRequest - from authentik_client.models.rac_provider import RACProvider as RACProvider - from authentik_client.models.rac_provider_request import RACProviderRequest as RACProviderRequest - from authentik_client.models.radius_check_access import RadiusCheckAccess as RadiusCheckAccess - from authentik_client.models.radius_outpost_config import RadiusOutpostConfig as RadiusOutpostConfig - from authentik_client.models.radius_provider import RadiusProvider as RadiusProvider - from authentik_client.models.radius_provider_property_mapping import RadiusProviderPropertyMapping as RadiusProviderPropertyMapping - from authentik_client.models.radius_provider_property_mapping_request import RadiusProviderPropertyMappingRequest as RadiusProviderPropertyMappingRequest - from authentik_client.models.radius_provider_request import RadiusProviderRequest as RadiusProviderRequest - from authentik_client.models.redirect_challenge import RedirectChallenge as RedirectChallenge - from authentik_client.models.redirect_challenge_response_request import RedirectChallengeResponseRequest as RedirectChallengeResponseRequest - from authentik_client.models.redirect_stage import RedirectStage as RedirectStage - from authentik_client.models.redirect_stage_mode_enum import RedirectStageModeEnum as RedirectStageModeEnum - from authentik_client.models.redirect_stage_request import RedirectStageRequest as RedirectStageRequest - from authentik_client.models.redirect_uri import RedirectURI as RedirectURI - from authentik_client.models.redirect_uri_request import RedirectURIRequest as RedirectURIRequest - from authentik_client.models.reputation import Reputation as Reputation - from authentik_client.models.reputation_policy import ReputationPolicy as ReputationPolicy - from authentik_client.models.reputation_policy_request import ReputationPolicyRequest as ReputationPolicyRequest - from authentik_client.models.resident_key_requirement_enum import ResidentKeyRequirementEnum as ResidentKeyRequirementEnum - from authentik_client.models.role import Role as Role - from authentik_client.models.role_assigned_object_permission import RoleAssignedObjectPermission as RoleAssignedObjectPermission - from authentik_client.models.role_object_permission import RoleObjectPermission as RoleObjectPermission - from authentik_client.models.role_request import RoleRequest as RoleRequest - from authentik_client.models.saml_bindings_enum import SAMLBindingsEnum as SAMLBindingsEnum - from authentik_client.models.saml_metadata import SAMLMetadata as SAMLMetadata - from authentik_client.models.saml_name_id_policy_enum import SAMLNameIDPolicyEnum as SAMLNameIDPolicyEnum - from authentik_client.models.saml_property_mapping import SAMLPropertyMapping as SAMLPropertyMapping - from authentik_client.models.saml_property_mapping_request import SAMLPropertyMappingRequest as SAMLPropertyMappingRequest - from authentik_client.models.saml_provider import SAMLProvider as SAMLProvider - from authentik_client.models.saml_provider_logout_method_enum import SAMLProviderLogoutMethodEnum as SAMLProviderLogoutMethodEnum - from authentik_client.models.saml_provider_request import SAMLProviderRequest as SAMLProviderRequest - from authentik_client.models.saml_source import SAMLSource as SAMLSource - from authentik_client.models.saml_source_property_mapping import SAMLSourcePropertyMapping as SAMLSourcePropertyMapping - from authentik_client.models.saml_source_property_mapping_request import SAMLSourcePropertyMappingRequest as SAMLSourcePropertyMappingRequest - from authentik_client.models.saml_source_request import SAMLSourceRequest as SAMLSourceRequest - from authentik_client.models.scim_authentication_mode_enum import SCIMAuthenticationModeEnum as SCIMAuthenticationModeEnum - from authentik_client.models.scim_mapping import SCIMMapping as SCIMMapping - from authentik_client.models.scim_mapping_request import SCIMMappingRequest as SCIMMappingRequest - from authentik_client.models.scim_provider import SCIMProvider as SCIMProvider - from authentik_client.models.scim_provider_group import SCIMProviderGroup as SCIMProviderGroup - from authentik_client.models.scim_provider_group_request import SCIMProviderGroupRequest as SCIMProviderGroupRequest - from authentik_client.models.scim_provider_request import SCIMProviderRequest as SCIMProviderRequest - from authentik_client.models.scim_provider_user import SCIMProviderUser as SCIMProviderUser - from authentik_client.models.scim_provider_user_request import SCIMProviderUserRequest as SCIMProviderUserRequest - from authentik_client.models.scim_source import SCIMSource as SCIMSource - from authentik_client.models.scim_source_group import SCIMSourceGroup as SCIMSourceGroup - from authentik_client.models.scim_source_group_request import SCIMSourceGroupRequest as SCIMSourceGroupRequest - from authentik_client.models.scim_source_property_mapping import SCIMSourcePropertyMapping as SCIMSourcePropertyMapping - from authentik_client.models.scim_source_property_mapping_request import SCIMSourcePropertyMappingRequest as SCIMSourcePropertyMappingRequest - from authentik_client.models.scim_source_request import SCIMSourceRequest as SCIMSourceRequest - from authentik_client.models.scim_source_user import SCIMSourceUser as SCIMSourceUser - from authentik_client.models.scim_source_user_request import SCIMSourceUserRequest as SCIMSourceUserRequest - from authentik_client.models.sms_device import SMSDevice as SMSDevice - from authentik_client.models.sms_device_request import SMSDeviceRequest as SMSDeviceRequest - from authentik_client.models.ssf_provider import SSFProvider as SSFProvider - from authentik_client.models.ssf_provider_request import SSFProviderRequest as SSFProviderRequest - from authentik_client.models.ssf_stream import SSFStream as SSFStream - from authentik_client.models.schedule import Schedule as Schedule - from authentik_client.models.schedule_request import ScheduleRequest as ScheduleRequest - from authentik_client.models.scope_mapping import ScopeMapping as ScopeMapping - from authentik_client.models.scope_mapping_request import ScopeMappingRequest as ScopeMappingRequest - from authentik_client.models.selectable_stage import SelectableStage as SelectableStage - from authentik_client.models.service_connection import ServiceConnection as ServiceConnection - from authentik_client.models.service_connection_state import ServiceConnectionState as ServiceConnectionState - from authentik_client.models.session_end_challenge import SessionEndChallenge as SessionEndChallenge - from authentik_client.models.session_user import SessionUser as SessionUser - from authentik_client.models.settings import Settings as Settings - from authentik_client.models.settings_request import SettingsRequest as SettingsRequest - from authentik_client.models.severity_enum import SeverityEnum as SeverityEnum - from authentik_client.models.shell_challenge import ShellChallenge as ShellChallenge - from authentik_client.models.signature_algorithm_enum import SignatureAlgorithmEnum as SignatureAlgorithmEnum - from authentik_client.models.source import Source as Source - from authentik_client.models.source_stage import SourceStage as SourceStage - from authentik_client.models.source_stage_request import SourceStageRequest as SourceStageRequest - from authentik_client.models.source_type import SourceType as SourceType - from authentik_client.models.stage import Stage as Stage - from authentik_client.models.stage_prompt import StagePrompt as StagePrompt - from authentik_client.models.state_enum import StateEnum as StateEnum - from authentik_client.models.static_device import StaticDevice as StaticDevice - from authentik_client.models.static_device_request import StaticDeviceRequest as StaticDeviceRequest - from authentik_client.models.static_device_token import StaticDeviceToken as StaticDeviceToken - from authentik_client.models.sub_mode_enum import SubModeEnum as SubModeEnum - from authentik_client.models.sync_object_model_enum import SyncObjectModelEnum as SyncObjectModelEnum - from authentik_client.models.sync_object_request import SyncObjectRequest as SyncObjectRequest - from authentik_client.models.sync_object_result import SyncObjectResult as SyncObjectResult - from authentik_client.models.sync_status import SyncStatus as SyncStatus - from authentik_client.models.system_info import SystemInfo as SystemInfo - from authentik_client.models.system_info_runtime import SystemInfoRuntime as SystemInfoRuntime - from authentik_client.models.totp_device import TOTPDevice as TOTPDevice - from authentik_client.models.totp_device_request import TOTPDeviceRequest as TOTPDeviceRequest - from authentik_client.models.task import Task as Task - from authentik_client.models.task_aggregated_status_enum import TaskAggregatedStatusEnum as TaskAggregatedStatusEnum - from authentik_client.models.telegram_challenge_response_request import TelegramChallengeResponseRequest as TelegramChallengeResponseRequest - from authentik_client.models.telegram_login_challenge import TelegramLoginChallenge as TelegramLoginChallenge - from authentik_client.models.telegram_source import TelegramSource as TelegramSource - from authentik_client.models.telegram_source_property_mapping import TelegramSourcePropertyMapping as TelegramSourcePropertyMapping - from authentik_client.models.telegram_source_property_mapping_request import TelegramSourcePropertyMappingRequest as TelegramSourcePropertyMappingRequest - from authentik_client.models.telegram_source_request import TelegramSourceRequest as TelegramSourceRequest - from authentik_client.models.tenant import Tenant as Tenant - from authentik_client.models.tenant_admin_group_request_request import TenantAdminGroupRequestRequest as TenantAdminGroupRequestRequest - from authentik_client.models.tenant_recovery_key_request_request import TenantRecoveryKeyRequestRequest as TenantRecoveryKeyRequestRequest - from authentik_client.models.tenant_recovery_key_response import TenantRecoveryKeyResponse as TenantRecoveryKeyResponse - from authentik_client.models.tenant_request import TenantRequest as TenantRequest - from authentik_client.models.token import Token as Token - from authentik_client.models.token_model import TokenModel as TokenModel - from authentik_client.models.token_request import TokenRequest as TokenRequest - from authentik_client.models.token_set_key_request import TokenSetKeyRequest as TokenSetKeyRequest - from authentik_client.models.token_view import TokenView as TokenView - from authentik_client.models.transaction_application_request import TransactionApplicationRequest as TransactionApplicationRequest - from authentik_client.models.transaction_application_response import TransactionApplicationResponse as TransactionApplicationResponse - from authentik_client.models.transaction_policy_binding_request import TransactionPolicyBindingRequest as TransactionPolicyBindingRequest - from authentik_client.models.type_create import TypeCreate as TypeCreate - from authentik_client.models.ui_theme_enum import UiThemeEnum as UiThemeEnum - from authentik_client.models.unique_password_policy import UniquePasswordPolicy as UniquePasswordPolicy - from authentik_client.models.unique_password_policy_request import UniquePasswordPolicyRequest as UniquePasswordPolicyRequest - from authentik_client.models.used_by import UsedBy as UsedBy - from authentik_client.models.used_by_action_enum import UsedByActionEnum as UsedByActionEnum - from authentik_client.models.user import User as User - from authentik_client.models.user_account_request import UserAccountRequest as UserAccountRequest - from authentik_client.models.user_assigned_object_permission import UserAssignedObjectPermission as UserAssignedObjectPermission - from authentik_client.models.user_attribute_enum import UserAttributeEnum as UserAttributeEnum - from authentik_client.models.user_consent import UserConsent as UserConsent - from authentik_client.models.user_creation_mode_enum import UserCreationModeEnum as UserCreationModeEnum - from authentik_client.models.user_delete_stage import UserDeleteStage as UserDeleteStage - from authentik_client.models.user_delete_stage_request import UserDeleteStageRequest as UserDeleteStageRequest - from authentik_client.models.user_fields_enum import UserFieldsEnum as UserFieldsEnum - from authentik_client.models.user_kerberos_source_connection import UserKerberosSourceConnection as UserKerberosSourceConnection - from authentik_client.models.user_kerberos_source_connection_request import UserKerberosSourceConnectionRequest as UserKerberosSourceConnectionRequest - from authentik_client.models.user_ldap_source_connection import UserLDAPSourceConnection as UserLDAPSourceConnection - from authentik_client.models.user_ldap_source_connection_request import UserLDAPSourceConnectionRequest as UserLDAPSourceConnectionRequest - from authentik_client.models.user_login_challenge import UserLoginChallenge as UserLoginChallenge - from authentik_client.models.user_login_challenge_response_request import UserLoginChallengeResponseRequest as UserLoginChallengeResponseRequest - from authentik_client.models.user_login_stage import UserLoginStage as UserLoginStage - from authentik_client.models.user_login_stage_request import UserLoginStageRequest as UserLoginStageRequest - from authentik_client.models.user_logout_stage import UserLogoutStage as UserLogoutStage - from authentik_client.models.user_logout_stage_request import UserLogoutStageRequest as UserLogoutStageRequest - from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum as UserMatchingModeEnum - from authentik_client.models.user_o_auth_source_connection import UserOAuthSourceConnection as UserOAuthSourceConnection - from authentik_client.models.user_o_auth_source_connection_request import UserOAuthSourceConnectionRequest as UserOAuthSourceConnectionRequest - from authentik_client.models.user_object_permission import UserObjectPermission as UserObjectPermission - from authentik_client.models.user_password_set_request import UserPasswordSetRequest as UserPasswordSetRequest - from authentik_client.models.user_path import UserPath as UserPath - from authentik_client.models.user_plex_source_connection import UserPlexSourceConnection as UserPlexSourceConnection - from authentik_client.models.user_plex_source_connection_request import UserPlexSourceConnectionRequest as UserPlexSourceConnectionRequest - from authentik_client.models.user_request import UserRequest as UserRequest - from authentik_client.models.user_saml_source_connection import UserSAMLSourceConnection as UserSAMLSourceConnection - from authentik_client.models.user_saml_source_connection_request import UserSAMLSourceConnectionRequest as UserSAMLSourceConnectionRequest - from authentik_client.models.user_self import UserSelf as UserSelf - from authentik_client.models.user_self_groups import UserSelfGroups as UserSelfGroups - from authentik_client.models.user_service_account_request import UserServiceAccountRequest as UserServiceAccountRequest - from authentik_client.models.user_service_account_response import UserServiceAccountResponse as UserServiceAccountResponse - from authentik_client.models.user_setting import UserSetting as UserSetting - from authentik_client.models.user_source_connection import UserSourceConnection as UserSourceConnection - from authentik_client.models.user_source_connection_request import UserSourceConnectionRequest as UserSourceConnectionRequest - from authentik_client.models.user_telegram_source_connection import UserTelegramSourceConnection as UserTelegramSourceConnection - from authentik_client.models.user_telegram_source_connection_request import UserTelegramSourceConnectionRequest as UserTelegramSourceConnectionRequest - from authentik_client.models.user_type_enum import UserTypeEnum as UserTypeEnum - from authentik_client.models.user_verification_enum import UserVerificationEnum as UserVerificationEnum - from authentik_client.models.user_write_stage import UserWriteStage as UserWriteStage - from authentik_client.models.user_write_stage_request import UserWriteStageRequest as UserWriteStageRequest - from authentik_client.models.validation_error import ValidationError as ValidationError - from authentik_client.models.version import Version as Version - from authentik_client.models.version_history import VersionHistory as VersionHistory - from authentik_client.models.web_authn_device import WebAuthnDevice as WebAuthnDevice - from authentik_client.models.web_authn_device_request import WebAuthnDeviceRequest as WebAuthnDeviceRequest - from authentik_client.models.web_authn_device_type import WebAuthnDeviceType as WebAuthnDeviceType - from authentik_client.models.worker import Worker as Worker - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - ("__version__", __version__), - ("__all__", __all__), - """# import apis into sdk package +# import apis into sdk package from authentik_client.api.admin_api import AdminApi as AdminApi from authentik_client.api.authenticators_api import AuthenticatorsApi as AuthenticatorsApi from authentik_client.api.core_api import CoreApi as CoreApi from authentik_client.api.crypto_api import CryptoApi as CryptoApi +from authentik_client.api.endpoints_api import EndpointsApi as EndpointsApi from authentik_client.api.enterprise_api import EnterpriseApi as EnterpriseApi from authentik_client.api.events_api import EventsApi as EventsApi from authentik_client.api.flows_api import FlowsApi as FlowsApi @@ -1650,6 +903,7 @@ from authentik_client.api.providers_api import ProvidersApi as ProvidersApi from authentik_client.api.rac_api import RacApi as RacApi from authentik_client.api.rbac_api import RbacApi as RbacApi +from authentik_client.api.reports_api import ReportsApi as ReportsApi from authentik_client.api.root_api import RootApi as RootApi from authentik_client.api.schema_api import SchemaApi as SchemaApi from authentik_client.api.sources_api import SourcesApi as SourcesApi @@ -1671,6 +925,14 @@ # import models into sdk package from authentik_client.models.access_denied_challenge import AccessDeniedChallenge as AccessDeniedChallenge +from authentik_client.models.agent_authentication_response import AgentAuthenticationResponse as AgentAuthenticationResponse +from authentik_client.models.agent_config import AgentConfig as AgentConfig +from authentik_client.models.agent_connector import AgentConnector as AgentConnector +from authentik_client.models.agent_connector_request import AgentConnectorRequest as AgentConnectorRequest +from authentik_client.models.agent_psso_device_registration_request import AgentPSSODeviceRegistrationRequest as AgentPSSODeviceRegistrationRequest +from authentik_client.models.agent_psso_device_registration_response import AgentPSSODeviceRegistrationResponse as AgentPSSODeviceRegistrationResponse +from authentik_client.models.agent_psso_user_registration_request import AgentPSSOUserRegistrationRequest as AgentPSSOUserRegistrationRequest +from authentik_client.models.agent_token_response import AgentTokenResponse as AgentTokenResponse from authentik_client.models.alg_enum import AlgEnum as AlgEnum from authentik_client.models.app import App as App from authentik_client.models.app_enum import AppEnum as AppEnum @@ -1750,17 +1012,20 @@ from authentik_client.models.config import Config as Config from authentik_client.models.connection_token import ConnectionToken as ConnectionToken from authentik_client.models.connection_token_request import ConnectionTokenRequest as ConnectionTokenRequest +from authentik_client.models.connector import Connector as Connector from authentik_client.models.consent_challenge import ConsentChallenge as ConsentChallenge from authentik_client.models.consent_challenge_response_request import ConsentChallengeResponseRequest as ConsentChallengeResponseRequest from authentik_client.models.consent_permission import ConsentPermission as ConsentPermission from authentik_client.models.consent_stage import ConsentStage as ConsentStage from authentik_client.models.consent_stage_mode_enum import ConsentStageModeEnum as ConsentStageModeEnum from authentik_client.models.consent_stage_request import ConsentStageRequest as ConsentStageRequest +from authentik_client.models.content_type import ContentType as ContentType from authentik_client.models.contextual_flow_info import ContextualFlowInfo as ContextualFlowInfo from authentik_client.models.contextual_flow_info_layout_enum import ContextualFlowInfoLayoutEnum as ContextualFlowInfoLayoutEnum from authentik_client.models.country_code_enum import CountryCodeEnum as CountryCodeEnum from authentik_client.models.current_brand import CurrentBrand as CurrentBrand from authentik_client.models.current_brand_flags import CurrentBrandFlags as CurrentBrandFlags +from authentik_client.models.data_export import DataExport as DataExport from authentik_client.models.delivery_method_enum import DeliveryMethodEnum as DeliveryMethodEnum from authentik_client.models.denied_action_enum import DeniedActionEnum as DeniedActionEnum from authentik_client.models.deny_stage import DenyStage as DenyStage @@ -1768,11 +1033,27 @@ from authentik_client.models.detailed_country import DetailedCountry as DetailedCountry from authentik_client.models.detailed_country_field import DetailedCountryField as DetailedCountryField from authentik_client.models.device import Device as Device +from authentik_client.models.device_access_group import DeviceAccessGroup as DeviceAccessGroup +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest as DeviceAccessGroupRequest from authentik_client.models.device_challenge import DeviceChallenge as DeviceChallenge from authentik_client.models.device_challenge_request import DeviceChallengeRequest as DeviceChallengeRequest from authentik_client.models.device_classes_enum import DeviceClassesEnum as DeviceClassesEnum +from authentik_client.models.device_connection import DeviceConnection as DeviceConnection +from authentik_client.models.device_fact_snapshot import DeviceFactSnapshot as DeviceFactSnapshot +from authentik_client.models.device_facts import DeviceFacts as DeviceFacts +from authentik_client.models.device_facts_os_family import DeviceFactsOSFamily as DeviceFactsOSFamily +from authentik_client.models.device_facts_request import DeviceFactsRequest as DeviceFactsRequest +from authentik_client.models.device_group import DeviceGroup as DeviceGroup +from authentik_client.models.device_group_request import DeviceGroupRequest as DeviceGroupRequest +from authentik_client.models.device_summary import DeviceSummary as DeviceSummary +from authentik_client.models.device_user import DeviceUser as DeviceUser +from authentik_client.models.device_user_binding import DeviceUserBinding as DeviceUserBinding +from authentik_client.models.device_user_binding_request import DeviceUserBindingRequest as DeviceUserBindingRequest +from authentik_client.models.device_user_request import DeviceUserRequest as DeviceUserRequest from authentik_client.models.digest_algorithm_enum import DigestAlgorithmEnum as DigestAlgorithmEnum from authentik_client.models.digits_enum import DigitsEnum as DigitsEnum +from authentik_client.models.disk import Disk as Disk +from authentik_client.models.disk_request import DiskRequest as DiskRequest from authentik_client.models.docker_service_connection import DockerServiceConnection as DockerServiceConnection from authentik_client.models.docker_service_connection_request import DockerServiceConnectionRequest as DockerServiceConnectionRequest from authentik_client.models.domain import Domain as Domain @@ -1794,10 +1075,18 @@ from authentik_client.models.email_stage import EmailStage as EmailStage from authentik_client.models.email_stage_request import EmailStageRequest as EmailStageRequest from authentik_client.models.endpoint import Endpoint as Endpoint +from authentik_client.models.endpoint_agent_challenge import EndpointAgentChallenge as EndpointAgentChallenge +from authentik_client.models.endpoint_agent_challenge_response_request import EndpointAgentChallengeResponseRequest as EndpointAgentChallengeResponseRequest from authentik_client.models.endpoint_auth_mode_enum import EndpointAuthModeEnum as EndpointAuthModeEnum from authentik_client.models.endpoint_device import EndpointDevice as EndpointDevice +from authentik_client.models.endpoint_device_details import EndpointDeviceDetails as EndpointDeviceDetails from authentik_client.models.endpoint_device_request import EndpointDeviceRequest as EndpointDeviceRequest from authentik_client.models.endpoint_request import EndpointRequest as EndpointRequest +from authentik_client.models.endpoint_stage import EndpointStage as EndpointStage +from authentik_client.models.endpoint_stage_request import EndpointStageRequest as EndpointStageRequest +from authentik_client.models.enroll_request import EnrollRequest as EnrollRequest +from authentik_client.models.enrollment_token import EnrollmentToken as EnrollmentToken +from authentik_client.models.enrollment_token_request import EnrollmentTokenRequest as EnrollmentTokenRequest from authentik_client.models.error_detail import ErrorDetail as ErrorDetail from authentik_client.models.error_reporting_config import ErrorReportingConfig as ErrorReportingConfig from authentik_client.models.event import Event as Event @@ -1812,10 +1101,7 @@ from authentik_client.models.expression_policy import ExpressionPolicy as ExpressionPolicy from authentik_client.models.expression_policy_request import ExpressionPolicyRequest as ExpressionPolicyRequest from authentik_client.models.extra_role_object_permission import ExtraRoleObjectPermission as ExtraRoleObjectPermission -from authentik_client.models.extra_role_object_permission_request import ExtraRoleObjectPermissionRequest as ExtraRoleObjectPermissionRequest -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission as ExtraUserObjectPermission -from authentik_client.models.extra_user_object_permission_request import ExtraUserObjectPermissionRequest as ExtraUserObjectPermissionRequest -from authentik_client.models.file_path_request import FilePathRequest as FilePathRequest +from authentik_client.models.file_list import FileList as FileList from authentik_client.models.flow import Flow as Flow from authentik_client.models.flow_challenge_response_request import FlowChallengeResponseRequest as FlowChallengeResponseRequest from authentik_client.models.flow_designation_enum import FlowDesignationEnum as FlowDesignationEnum @@ -1827,7 +1113,6 @@ from authentik_client.models.flow_layout_enum import FlowLayoutEnum as FlowLayoutEnum from authentik_client.models.flow_request import FlowRequest as FlowRequest from authentik_client.models.flow_set import FlowSet as FlowSet -from authentik_client.models.flow_set_request import FlowSetRequest as FlowSetRequest from authentik_client.models.flow_stage_binding import FlowStageBinding as FlowStageBinding from authentik_client.models.flow_stage_binding_request import FlowStageBindingRequest as FlowStageBindingRequest from authentik_client.models.footer_link import FooterLink as FooterLink @@ -1838,6 +1123,8 @@ from authentik_client.models.geo_ip_policy_request import GeoIPPolicyRequest as GeoIPPolicyRequest from authentik_client.models.geoip_binding_enum import GeoipBindingEnum as GeoipBindingEnum from authentik_client.models.global_task_status import GlobalTaskStatus as GlobalTaskStatus +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice as GoogleEndpointDevice +from authentik_client.models.google_endpoint_device_request import GoogleEndpointDeviceRequest as GoogleEndpointDeviceRequest from authentik_client.models.google_workspace_provider import GoogleWorkspaceProvider as GoogleWorkspaceProvider from authentik_client.models.google_workspace_provider_group import GoogleWorkspaceProviderGroup as GoogleWorkspaceProviderGroup from authentik_client.models.google_workspace_provider_group_request import GoogleWorkspaceProviderGroupRequest as GoogleWorkspaceProviderGroupRequest @@ -1847,7 +1134,6 @@ from authentik_client.models.google_workspace_provider_user import GoogleWorkspaceProviderUser as GoogleWorkspaceProviderUser from authentik_client.models.google_workspace_provider_user_request import GoogleWorkspaceProviderUserRequest as GoogleWorkspaceProviderUserRequest from authentik_client.models.group import Group as Group -from authentik_client.models.group_child import GroupChild as GroupChild from authentik_client.models.group_kerberos_source_connection import GroupKerberosSourceConnection as GroupKerberosSourceConnection from authentik_client.models.group_kerberos_source_connection_request import GroupKerberosSourceConnectionRequest as GroupKerberosSourceConnectionRequest from authentik_client.models.group_ldap_source_connection import GroupLDAPSourceConnection as GroupLDAPSourceConnection @@ -1864,6 +1150,8 @@ from authentik_client.models.group_source_connection_request import GroupSourceConnectionRequest as GroupSourceConnectionRequest from authentik_client.models.group_telegram_source_connection import GroupTelegramSourceConnection as GroupTelegramSourceConnection from authentik_client.models.group_telegram_source_connection_request import GroupTelegramSourceConnectionRequest as GroupTelegramSourceConnectionRequest +from authentik_client.models.hardware import Hardware as Hardware +from authentik_client.models.hardware_request import HardwareRequest as HardwareRequest from authentik_client.models.identification_challenge import IdentificationChallenge as IdentificationChallenge from authentik_client.models.identification_challenge_response_request import IdentificationChallengeResponseRequest as IdentificationChallengeResponseRequest from authentik_client.models.identification_stage import IdentificationStage as IdentificationStage @@ -1872,7 +1160,6 @@ from authentik_client.models.iframe_logout_challenge_response_request import IframeLogoutChallengeResponseRequest as IframeLogoutChallengeResponseRequest from authentik_client.models.impersonation_request import ImpersonationRequest as ImpersonationRequest from authentik_client.models.initial_permissions import InitialPermissions as InitialPermissions -from authentik_client.models.initial_permissions_mode_enum import InitialPermissionsModeEnum as InitialPermissionsModeEnum from authentik_client.models.initial_permissions_request import InitialPermissionsRequest as InitialPermissionsRequest from authentik_client.models.install_id import InstallID as InstallID from authentik_client.models.intent_enum import IntentEnum as IntentEnum @@ -1887,6 +1174,7 @@ from authentik_client.models.kerberos_source_property_mapping import KerberosSourcePropertyMapping as KerberosSourcePropertyMapping from authentik_client.models.kerberos_source_property_mapping_request import KerberosSourcePropertyMappingRequest as KerberosSourcePropertyMappingRequest from authentik_client.models.kerberos_source_request import KerberosSourceRequest as KerberosSourceRequest +from authentik_client.models.key_type_enum import KeyTypeEnum as KeyTypeEnum from authentik_client.models.kubernetes_service_connection import KubernetesServiceConnection as KubernetesServiceConnection from authentik_client.models.kubernetes_service_connection_request import KubernetesServiceConnectionRequest as KubernetesServiceConnectionRequest from authentik_client.models.ldapapi_access_mode import LDAPAPIAccessMode as LDAPAPIAccessMode @@ -1904,6 +1192,7 @@ from authentik_client.models.license_flags_enum import LicenseFlagsEnum as LicenseFlagsEnum from authentik_client.models.license_forecast import LicenseForecast as LicenseForecast from authentik_client.models.license_request import LicenseRequest as LicenseRequest +from authentik_client.models.license_status_enum import LicenseStatusEnum as LicenseStatusEnum from authentik_client.models.license_summary import LicenseSummary as LicenseSummary from authentik_client.models.license_summary_status_enum import LicenseSummaryStatusEnum as LicenseSummaryStatusEnum from authentik_client.models.link import Link as Link @@ -1911,6 +1200,8 @@ from authentik_client.models.log_level_enum import LogLevelEnum as LogLevelEnum from authentik_client.models.login_challenge_types import LoginChallengeTypes as LoginChallengeTypes from authentik_client.models.login_source import LoginSource as LoginSource +from authentik_client.models.mdm_config_request import MDMConfigRequest as MDMConfigRequest +from authentik_client.models.mdm_config_response import MDMConfigResponse as MDMConfigResponse from authentik_client.models.matching_mode_enum import MatchingModeEnum as MatchingModeEnum from authentik_client.models.metadata import Metadata as Metadata from authentik_client.models.microsoft_entra_provider import MicrosoftEntraProvider as MicrosoftEntraProvider @@ -1924,11 +1215,14 @@ from authentik_client.models.model_enum import ModelEnum as ModelEnum from authentik_client.models.model_request import ModelRequest as ModelRequest from authentik_client.models.mutual_tls_stage import MutualTLSStage as MutualTLSStage -from authentik_client.models.mutual_tls_stage_mode_enum import MutualTLSStageModeEnum as MutualTLSStageModeEnum from authentik_client.models.mutual_tls_stage_request import MutualTLSStageRequest as MutualTLSStageRequest from authentik_client.models.native_logout_challenge import NativeLogoutChallenge as NativeLogoutChallenge from authentik_client.models.native_logout_challenge_response_request import NativeLogoutChallengeResponseRequest as NativeLogoutChallengeResponseRequest +from authentik_client.models.network import Network as Network from authentik_client.models.network_binding_enum import NetworkBindingEnum as NetworkBindingEnum +from authentik_client.models.network_interface import NetworkInterface as NetworkInterface +from authentik_client.models.network_interface_request import NetworkInterfaceRequest as NetworkInterfaceRequest +from authentik_client.models.network_request import NetworkRequest as NetworkRequest from authentik_client.models.not_configured_action_enum import NotConfiguredActionEnum as NotConfiguredActionEnum from authentik_client.models.notification import Notification as Notification from authentik_client.models.notification_request import NotificationRequest as NotificationRequest @@ -1953,12 +1247,16 @@ from authentik_client.models.o_auth_source_property_mapping_request import OAuthSourcePropertyMappingRequest as OAuthSourcePropertyMappingRequest from authentik_client.models.o_auth_source_request import OAuthSourceRequest as OAuthSourceRequest from authentik_client.models.open_id_connect_configuration import OpenIDConnectConfiguration as OpenIDConnectConfiguration +from authentik_client.models.operating_system import OperatingSystem as OperatingSystem +from authentik_client.models.operating_system_request import OperatingSystemRequest as OperatingSystemRequest from authentik_client.models.outgoing_sync_delete_action import OutgoingSyncDeleteAction as OutgoingSyncDeleteAction from authentik_client.models.outpost import Outpost as Outpost from authentik_client.models.outpost_default_config import OutpostDefaultConfig as OutpostDefaultConfig from authentik_client.models.outpost_health import OutpostHealth as OutpostHealth from authentik_client.models.outpost_request import OutpostRequest as OutpostRequest from authentik_client.models.outpost_type_enum import OutpostTypeEnum as OutpostTypeEnum +from authentik_client.models.pkce_method_enum import PKCEMethodEnum as PKCEMethodEnum +from authentik_client.models.paginated_agent_connector_list import PaginatedAgentConnectorList as PaginatedAgentConnectorList from authentik_client.models.paginated_application_entitlement_list import PaginatedApplicationEntitlementList as PaginatedApplicationEntitlementList from authentik_client.models.paginated_application_list import PaginatedApplicationList as PaginatedApplicationList from authentik_client.models.paginated_authenticated_session_list import PaginatedAuthenticatedSessionList as PaginatedAuthenticatedSessionList @@ -1975,8 +1273,12 @@ from authentik_client.models.paginated_captcha_stage_list import PaginatedCaptchaStageList as PaginatedCaptchaStageList from authentik_client.models.paginated_certificate_key_pair_list import PaginatedCertificateKeyPairList as PaginatedCertificateKeyPairList from authentik_client.models.paginated_connection_token_list import PaginatedConnectionTokenList as PaginatedConnectionTokenList +from authentik_client.models.paginated_connector_list import PaginatedConnectorList as PaginatedConnectorList from authentik_client.models.paginated_consent_stage_list import PaginatedConsentStageList as PaginatedConsentStageList +from authentik_client.models.paginated_data_export_list import PaginatedDataExportList as PaginatedDataExportList from authentik_client.models.paginated_deny_stage_list import PaginatedDenyStageList as PaginatedDenyStageList +from authentik_client.models.paginated_device_access_group_list import PaginatedDeviceAccessGroupList as PaginatedDeviceAccessGroupList +from authentik_client.models.paginated_device_user_binding_list import PaginatedDeviceUserBindingList as PaginatedDeviceUserBindingList from authentik_client.models.paginated_docker_service_connection_list import PaginatedDockerServiceConnectionList as PaginatedDockerServiceConnectionList from authentik_client.models.paginated_domain_list import PaginatedDomainList as PaginatedDomainList from authentik_client.models.paginated_dummy_policy_list import PaginatedDummyPolicyList as PaginatedDummyPolicyList @@ -1986,15 +1288,17 @@ from authentik_client.models.paginated_email_stage_list import PaginatedEmailStageList as PaginatedEmailStageList from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList as PaginatedEndpointDeviceList from authentik_client.models.paginated_endpoint_list import PaginatedEndpointList as PaginatedEndpointList +from authentik_client.models.paginated_endpoint_stage_list import PaginatedEndpointStageList as PaginatedEndpointStageList +from authentik_client.models.paginated_enrollment_token_list import PaginatedEnrollmentTokenList as PaginatedEnrollmentTokenList from authentik_client.models.paginated_event_list import PaginatedEventList as PaginatedEventList from authentik_client.models.paginated_event_matcher_policy_list import PaginatedEventMatcherPolicyList as PaginatedEventMatcherPolicyList from authentik_client.models.paginated_expiring_base_grant_model_list import PaginatedExpiringBaseGrantModelList as PaginatedExpiringBaseGrantModelList from authentik_client.models.paginated_expression_policy_list import PaginatedExpressionPolicyList as PaginatedExpressionPolicyList from authentik_client.models.paginated_extra_role_object_permission_list import PaginatedExtraRoleObjectPermissionList as PaginatedExtraRoleObjectPermissionList -from authentik_client.models.paginated_extra_user_object_permission_list import PaginatedExtraUserObjectPermissionList as PaginatedExtraUserObjectPermissionList from authentik_client.models.paginated_flow_list import PaginatedFlowList as PaginatedFlowList from authentik_client.models.paginated_flow_stage_binding_list import PaginatedFlowStageBindingList as PaginatedFlowStageBindingList from authentik_client.models.paginated_geo_ip_policy_list import PaginatedGeoIPPolicyList as PaginatedGeoIPPolicyList +from authentik_client.models.paginated_google_endpoint_device_list import PaginatedGoogleEndpointDeviceList as PaginatedGoogleEndpointDeviceList from authentik_client.models.paginated_google_workspace_provider_group_list import PaginatedGoogleWorkspaceProviderGroupList as PaginatedGoogleWorkspaceProviderGroupList from authentik_client.models.paginated_google_workspace_provider_list import PaginatedGoogleWorkspaceProviderList as PaginatedGoogleWorkspaceProviderList from authentik_client.models.paginated_google_workspace_provider_mapping_list import PaginatedGoogleWorkspaceProviderMappingList as PaginatedGoogleWorkspaceProviderMappingList @@ -2086,7 +1390,6 @@ from authentik_client.models.paginated_token_list import PaginatedTokenList as PaginatedTokenList from authentik_client.models.paginated_token_model_list import PaginatedTokenModelList as PaginatedTokenModelList from authentik_client.models.paginated_unique_password_policy_list import PaginatedUniquePasswordPolicyList as PaginatedUniquePasswordPolicyList -from authentik_client.models.paginated_user_assigned_object_permission_list import PaginatedUserAssignedObjectPermissionList as PaginatedUserAssignedObjectPermissionList from authentik_client.models.paginated_user_consent_list import PaginatedUserConsentList as PaginatedUserConsentList from authentik_client.models.paginated_user_delete_stage_list import PaginatedUserDeleteStageList as PaginatedUserDeleteStageList from authentik_client.models.paginated_user_kerberos_source_connection_list import PaginatedUserKerberosSourceConnectionList as PaginatedUserKerberosSourceConnectionList @@ -2113,6 +1416,7 @@ from authentik_client.models.password_policy_request import PasswordPolicyRequest as PasswordPolicyRequest from authentik_client.models.password_stage import PasswordStage as PasswordStage from authentik_client.models.password_stage_request import PasswordStageRequest as PasswordStageRequest +from authentik_client.models.patched_agent_connector_request import PatchedAgentConnectorRequest as PatchedAgentConnectorRequest from authentik_client.models.patched_application_entitlement_request import PatchedApplicationEntitlementRequest as PatchedApplicationEntitlementRequest from authentik_client.models.patched_application_request import PatchedApplicationRequest as PatchedApplicationRequest from authentik_client.models.patched_authenticator_duo_stage_request import PatchedAuthenticatorDuoStageRequest as PatchedAuthenticatorDuoStageRequest @@ -2130,6 +1434,8 @@ from authentik_client.models.patched_connection_token_request import PatchedConnectionTokenRequest as PatchedConnectionTokenRequest from authentik_client.models.patched_consent_stage_request import PatchedConsentStageRequest as PatchedConsentStageRequest from authentik_client.models.patched_deny_stage_request import PatchedDenyStageRequest as PatchedDenyStageRequest +from authentik_client.models.patched_device_access_group_request import PatchedDeviceAccessGroupRequest as PatchedDeviceAccessGroupRequest +from authentik_client.models.patched_device_user_binding_request import PatchedDeviceUserBindingRequest as PatchedDeviceUserBindingRequest from authentik_client.models.patched_docker_service_connection_request import PatchedDockerServiceConnectionRequest as PatchedDockerServiceConnectionRequest from authentik_client.models.patched_domain_request import PatchedDomainRequest as PatchedDomainRequest from authentik_client.models.patched_dummy_policy_request import PatchedDummyPolicyRequest as PatchedDummyPolicyRequest @@ -2139,14 +1445,15 @@ from authentik_client.models.patched_email_stage_request import PatchedEmailStageRequest as PatchedEmailStageRequest from authentik_client.models.patched_endpoint_device_request import PatchedEndpointDeviceRequest as PatchedEndpointDeviceRequest from authentik_client.models.patched_endpoint_request import PatchedEndpointRequest as PatchedEndpointRequest +from authentik_client.models.patched_endpoint_stage_request import PatchedEndpointStageRequest as PatchedEndpointStageRequest +from authentik_client.models.patched_enrollment_token_request import PatchedEnrollmentTokenRequest as PatchedEnrollmentTokenRequest from authentik_client.models.patched_event_matcher_policy_request import PatchedEventMatcherPolicyRequest as PatchedEventMatcherPolicyRequest from authentik_client.models.patched_event_request import PatchedEventRequest as PatchedEventRequest from authentik_client.models.patched_expression_policy_request import PatchedExpressionPolicyRequest as PatchedExpressionPolicyRequest -from authentik_client.models.patched_extra_role_object_permission_request import PatchedExtraRoleObjectPermissionRequest as PatchedExtraRoleObjectPermissionRequest -from authentik_client.models.patched_extra_user_object_permission_request import PatchedExtraUserObjectPermissionRequest as PatchedExtraUserObjectPermissionRequest from authentik_client.models.patched_flow_request import PatchedFlowRequest as PatchedFlowRequest from authentik_client.models.patched_flow_stage_binding_request import PatchedFlowStageBindingRequest as PatchedFlowStageBindingRequest from authentik_client.models.patched_geo_ip_policy_request import PatchedGeoIPPolicyRequest as PatchedGeoIPPolicyRequest +from authentik_client.models.patched_google_endpoint_device_request import PatchedGoogleEndpointDeviceRequest as PatchedGoogleEndpointDeviceRequest from authentik_client.models.patched_google_workspace_provider_mapping_request import PatchedGoogleWorkspaceProviderMappingRequest as PatchedGoogleWorkspaceProviderMappingRequest from authentik_client.models.patched_google_workspace_provider_request import PatchedGoogleWorkspaceProviderRequest as PatchedGoogleWorkspaceProviderRequest from authentik_client.models.patched_group_kerberos_source_connection_request import PatchedGroupKerberosSourceConnectionRequest as PatchedGroupKerberosSourceConnectionRequest @@ -2249,9 +1556,12 @@ from authentik_client.models.policy_engine_mode import PolicyEngineMode as PolicyEngineMode from authentik_client.models.policy_test_request import PolicyTestRequest as PolicyTestRequest from authentik_client.models.policy_test_result import PolicyTestResult as PolicyTestResult +from authentik_client.models.process import Process as Process +from authentik_client.models.process_request import ProcessRequest as ProcessRequest from authentik_client.models.prompt import Prompt as Prompt from authentik_client.models.prompt_challenge import PromptChallenge as PromptChallenge from authentik_client.models.prompt_challenge_response_request import PromptChallengeResponseRequest as PromptChallengeResponseRequest +from authentik_client.models.prompt_choice import PromptChoice as PromptChoice from authentik_client.models.prompt_request import PromptRequest as PromptRequest from authentik_client.models.prompt_stage import PromptStage as PromptStage from authentik_client.models.prompt_stage_request import PromptStageRequest as PromptStageRequest @@ -2286,12 +1596,14 @@ from authentik_client.models.redirect_stage_request import RedirectStageRequest as RedirectStageRequest from authentik_client.models.redirect_uri import RedirectURI as RedirectURI from authentik_client.models.redirect_uri_request import RedirectURIRequest as RedirectURIRequest +from authentik_client.models.related_group import RelatedGroup as RelatedGroup from authentik_client.models.reputation import Reputation as Reputation from authentik_client.models.reputation_policy import ReputationPolicy as ReputationPolicy from authentik_client.models.reputation_policy_request import ReputationPolicyRequest as ReputationPolicyRequest from authentik_client.models.resident_key_requirement_enum import ResidentKeyRequirementEnum as ResidentKeyRequirementEnum from authentik_client.models.role import Role as Role from authentik_client.models.role_assigned_object_permission import RoleAssignedObjectPermission as RoleAssignedObjectPermission +from authentik_client.models.role_model_permission import RoleModelPermission as RoleModelPermission from authentik_client.models.role_object_permission import RoleObjectPermission as RoleObjectPermission from authentik_client.models.role_request import RoleRequest as RoleRequest from authentik_client.models.saml_bindings_enum import SAMLBindingsEnum as SAMLBindingsEnum @@ -2342,11 +1654,14 @@ from authentik_client.models.severity_enum import SeverityEnum as SeverityEnum from authentik_client.models.shell_challenge import ShellChallenge as ShellChallenge from authentik_client.models.signature_algorithm_enum import SignatureAlgorithmEnum as SignatureAlgorithmEnum +from authentik_client.models.software import Software as Software +from authentik_client.models.software_request import SoftwareRequest as SoftwareRequest from authentik_client.models.source import Source as Source from authentik_client.models.source_stage import SourceStage as SourceStage from authentik_client.models.source_stage_request import SourceStageRequest as SourceStageRequest from authentik_client.models.source_type import SourceType as SourceType from authentik_client.models.stage import Stage as Stage +from authentik_client.models.stage_mode_enum import StageModeEnum as StageModeEnum from authentik_client.models.stage_prompt import StagePrompt as StagePrompt from authentik_client.models.state_enum import StateEnum as StateEnum from authentik_client.models.static_device import StaticDevice as StaticDevice @@ -2356,6 +1671,7 @@ from authentik_client.models.sync_object_model_enum import SyncObjectModelEnum as SyncObjectModelEnum from authentik_client.models.sync_object_request import SyncObjectRequest as SyncObjectRequest from authentik_client.models.sync_object_result import SyncObjectResult as SyncObjectResult +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum as SyncOutgoingTriggerModeEnum from authentik_client.models.sync_status import SyncStatus as SyncStatus from authentik_client.models.system_info import SystemInfo as SystemInfo from authentik_client.models.system_info_runtime import SystemInfoRuntime as SystemInfoRuntime @@ -2363,6 +1679,7 @@ from authentik_client.models.totp_device_request import TOTPDeviceRequest as TOTPDeviceRequest from authentik_client.models.task import Task as Task from authentik_client.models.task_aggregated_status_enum import TaskAggregatedStatusEnum as TaskAggregatedStatusEnum +from authentik_client.models.telegram_auth_request import TelegramAuthRequest as TelegramAuthRequest from authentik_client.models.telegram_challenge_response_request import TelegramChallengeResponseRequest as TelegramChallengeResponseRequest from authentik_client.models.telegram_login_challenge import TelegramLoginChallenge as TelegramLoginChallenge from authentik_client.models.telegram_source import TelegramSource as TelegramSource @@ -2374,6 +1691,7 @@ from authentik_client.models.tenant_recovery_key_request_request import TenantRecoveryKeyRequestRequest as TenantRecoveryKeyRequestRequest from authentik_client.models.tenant_recovery_key_response import TenantRecoveryKeyResponse as TenantRecoveryKeyResponse from authentik_client.models.tenant_request import TenantRequest as TenantRequest +from authentik_client.models.themed_urls import ThemedUrls as ThemedUrls from authentik_client.models.token import Token as Token from authentik_client.models.token_model import TokenModel as TokenModel from authentik_client.models.token_request import TokenRequest as TokenRequest @@ -2390,7 +1708,7 @@ from authentik_client.models.used_by_action_enum import UsedByActionEnum as UsedByActionEnum from authentik_client.models.user import User as User from authentik_client.models.user_account_request import UserAccountRequest as UserAccountRequest -from authentik_client.models.user_assigned_object_permission import UserAssignedObjectPermission as UserAssignedObjectPermission +from authentik_client.models.user_account_serializer_for_role_request import UserAccountSerializerForRoleRequest as UserAccountSerializerForRoleRequest from authentik_client.models.user_attribute_enum import UserAttributeEnum as UserAttributeEnum from authentik_client.models.user_consent import UserConsent as UserConsent from authentik_client.models.user_creation_mode_enum import UserCreationModeEnum as UserCreationModeEnum @@ -2410,7 +1728,6 @@ from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum as UserMatchingModeEnum from authentik_client.models.user_o_auth_source_connection import UserOAuthSourceConnection as UserOAuthSourceConnection from authentik_client.models.user_o_auth_source_connection_request import UserOAuthSourceConnectionRequest as UserOAuthSourceConnectionRequest -from authentik_client.models.user_object_permission import UserObjectPermission as UserObjectPermission from authentik_client.models.user_password_set_request import UserPasswordSetRequest as UserPasswordSetRequest from authentik_client.models.user_path import UserPath as UserPath from authentik_client.models.user_plex_source_connection import UserPlexSourceConnection as UserPlexSourceConnection @@ -2420,6 +1737,7 @@ from authentik_client.models.user_saml_source_connection_request import UserSAMLSourceConnectionRequest as UserSAMLSourceConnectionRequest from authentik_client.models.user_self import UserSelf as UserSelf from authentik_client.models.user_self_groups import UserSelfGroups as UserSelfGroups +from authentik_client.models.user_self_roles import UserSelfRoles as UserSelfRoles from authentik_client.models.user_service_account_request import UserServiceAccountRequest as UserServiceAccountRequest from authentik_client.models.user_service_account_response import UserServiceAccountResponse as UserServiceAccountResponse from authentik_client.models.user_setting import UserSetting as UserSetting @@ -2439,8 +1757,3 @@ from authentik_client.models.web_authn_device_type import WebAuthnDeviceType as WebAuthnDeviceType from authentik_client.models.worker import Worker as Worker -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/authentik_client/api/__init__.py b/authentik_client/api/__init__.py index a389311f6..4cf4f024e 100644 --- a/authentik_client/api/__init__.py +++ b/authentik_client/api/__init__.py @@ -1,41 +1,11 @@ # flake8: noqa -if __import__("typing").TYPE_CHECKING: - # import apis into api package - from authentik_client.api.admin_api import AdminApi - from authentik_client.api.authenticators_api import AuthenticatorsApi - from authentik_client.api.core_api import CoreApi - from authentik_client.api.crypto_api import CryptoApi - from authentik_client.api.enterprise_api import EnterpriseApi - from authentik_client.api.events_api import EventsApi - from authentik_client.api.flows_api import FlowsApi - from authentik_client.api.managed_api import ManagedApi - from authentik_client.api.oauth2_api import Oauth2Api - from authentik_client.api.outposts_api import OutpostsApi - from authentik_client.api.policies_api import PoliciesApi - from authentik_client.api.propertymappings_api import PropertymappingsApi - from authentik_client.api.providers_api import ProvidersApi - from authentik_client.api.rac_api import RacApi - from authentik_client.api.rbac_api import RbacApi - from authentik_client.api.root_api import RootApi - from authentik_client.api.schema_api import SchemaApi - from authentik_client.api.sources_api import SourcesApi - from authentik_client.api.ssf_api import SsfApi - from authentik_client.api.stages_api import StagesApi - from authentik_client.api.tasks_api import TasksApi - from authentik_client.api.tenants_api import TenantsApi - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - """# import apis into api package +# import apis into api package from authentik_client.api.admin_api import AdminApi from authentik_client.api.authenticators_api import AuthenticatorsApi from authentik_client.api.core_api import CoreApi from authentik_client.api.crypto_api import CryptoApi +from authentik_client.api.endpoints_api import EndpointsApi from authentik_client.api.enterprise_api import EnterpriseApi from authentik_client.api.events_api import EventsApi from authentik_client.api.flows_api import FlowsApi @@ -47,6 +17,7 @@ from authentik_client.api.providers_api import ProvidersApi from authentik_client.api.rac_api import RacApi from authentik_client.api.rbac_api import RbacApi +from authentik_client.api.reports_api import ReportsApi from authentik_client.api.root_api import RootApi from authentik_client.api.schema_api import SchemaApi from authentik_client.api.sources_api import SourcesApi @@ -55,8 +26,3 @@ from authentik_client.api.tasks_api import TasksApi from authentik_client.api.tenants_api import TenantsApi -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/authentik_client/api/admin_api.py b/authentik_client/api/admin_api.py index aab190510..09f1afb81 100644 --- a/authentik_client/api/admin_api.py +++ b/authentik_client/api/admin_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,14 +17,16 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt, StrictStr -from typing import List, Optional +from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator +from typing import List, Optional, Tuple, Union from typing_extensions import Annotated from authentik_client.models.app import App +from authentik_client.models.file_list import FileList from authentik_client.models.patched_settings_request import PatchedSettingsRequest from authentik_client.models.settings import Settings from authentik_client.models.settings_request import SettingsRequest from authentik_client.models.system_info import SystemInfo +from authentik_client.models.used_by import UsedBy from authentik_client.models.version import Version from authentik_client.models.version_history import VersionHistory @@ -298,6 +300,1171 @@ def _admin_apps_list_serialize( + @validate_call + def admin_file_create( + self, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + name: Optional[StrictStr] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """admin_file_create + + Upload file to storage backend. + + :param file: (required) + :type file: bytearray + :param name: + :type name: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_create_serialize( + file=file, + name=name, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_file_create_with_http_info( + self, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + name: Optional[StrictStr] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """admin_file_create + + Upload file to storage backend. + + :param file: (required) + :type file: bytearray + :param name: + :type name: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_create_serialize( + file=file, + name=name, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_file_create_without_preload_content( + self, + file: Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]], + name: Optional[StrictStr] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """admin_file_create + + Upload file to storage backend. + + :param file: (required) + :type file: bytearray + :param name: + :type name: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_create_serialize( + file=file, + name=name, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_file_create_serialize( + self, + file, + name, + usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + if file is not None: + _files['file'] = file + if name is not None: + _form_params.append(('name', name)) + if usage is not None: + _form_params.append(('usage', usage)) + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'multipart/form-data' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/admin/file/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_file_destroy( + self, + name: Optional[StrictStr] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """admin_file_destroy + + Delete file from storage backend. + + :param name: + :type name: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_destroy_serialize( + name=name, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_file_destroy_with_http_info( + self, + name: Optional[StrictStr] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """admin_file_destroy + + Delete file from storage backend. + + :param name: + :type name: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_destroy_serialize( + name=name, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_file_destroy_without_preload_content( + self, + name: Optional[StrictStr] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """admin_file_destroy + + Delete file from storage backend. + + :param name: + :type name: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_destroy_serialize( + name=name, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_file_destroy_serialize( + self, + name, + usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if name is not None: + + _query_params.append(('name', name)) + + if usage is not None: + + _query_params.append(('usage', usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/admin/file/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_file_list( + self, + manageable_only: Optional[StrictBool] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[FileList]: + """admin_file_list + + List files from storage backend. + + :param manageable_only: + :type manageable_only: bool + :param search: A search term. + :type search: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_list_serialize( + manageable_only=manageable_only, + search=search, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FileList]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_file_list_with_http_info( + self, + manageable_only: Optional[StrictBool] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[FileList]]: + """admin_file_list + + List files from storage backend. + + :param manageable_only: + :type manageable_only: bool + :param search: A search term. + :type search: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_list_serialize( + manageable_only=manageable_only, + search=search, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FileList]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_file_list_without_preload_content( + self, + manageable_only: Optional[StrictBool] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + usage: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """admin_file_list + + List files from storage backend. + + :param manageable_only: + :type manageable_only: bool + :param search: A search term. + :type search: str + :param usage: + :type usage: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_list_serialize( + manageable_only=manageable_only, + search=search, + usage=usage, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[FileList]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_file_list_serialize( + self, + manageable_only, + search, + usage, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if manageable_only is not None: + + _query_params.append(('manageable_only', manageable_only)) + + if search is not None: + + _query_params.append(('search', search)) + + if usage is not None: + + _query_params.append(('usage', usage)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/admin/file/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def admin_file_used_by_list( + self, + name: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UsedBy]: + """admin_file_used_by_list + + + :param name: + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_used_by_list_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def admin_file_used_by_list_with_http_info( + self, + name: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UsedBy]]: + """admin_file_used_by_list + + + :param name: + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_used_by_list_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def admin_file_used_by_list_without_preload_content( + self, + name: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """admin_file_used_by_list + + + :param name: + :type name: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._admin_file_used_by_list_serialize( + name=name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _admin_file_used_by_list_serialize( + self, + name, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if name is not None: + + _query_params.append(('name', name)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/admin/file/used_by/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def admin_models_list( self, diff --git a/authentik_client/api/authenticators_api.py b/authentik_client/api/authenticators_api.py index ec993b668..6b31e7f49 100644 --- a/authentik_client/api/authenticators_api.py +++ b/authentik_client/api/authenticators_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,18 +26,18 @@ from authentik_client.models.duo_device_request import DuoDeviceRequest from authentik_client.models.email_device import EmailDevice from authentik_client.models.email_device_request import EmailDeviceRequest -from authentik_client.models.endpoint_device import EndpointDevice -from authentik_client.models.endpoint_device_request import EndpointDeviceRequest +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice +from authentik_client.models.google_endpoint_device_request import GoogleEndpointDeviceRequest from authentik_client.models.paginated_duo_device_list import PaginatedDuoDeviceList from authentik_client.models.paginated_email_device_list import PaginatedEmailDeviceList -from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList +from authentik_client.models.paginated_google_endpoint_device_list import PaginatedGoogleEndpointDeviceList from authentik_client.models.paginated_sms_device_list import PaginatedSMSDeviceList from authentik_client.models.paginated_static_device_list import PaginatedStaticDeviceList from authentik_client.models.paginated_totp_device_list import PaginatedTOTPDeviceList from authentik_client.models.paginated_web_authn_device_list import PaginatedWebAuthnDeviceList from authentik_client.models.patched_duo_device_request import PatchedDuoDeviceRequest from authentik_client.models.patched_email_device_request import PatchedEmailDeviceRequest -from authentik_client.models.patched_endpoint_device_request import PatchedEndpointDeviceRequest +from authentik_client.models.patched_google_endpoint_device_request import PatchedGoogleEndpointDeviceRequest from authentik_client.models.patched_sms_device_request import PatchedSMSDeviceRequest from authentik_client.models.patched_static_device_request import PatchedStaticDeviceRequest from authentik_client.models.patched_totp_device_request import PatchedTOTPDeviceRequest @@ -3824,7 +3824,7 @@ def _authenticators_admin_email_update_serialize( @validate_call def authenticators_admin_endpoint_create( self, - endpoint_device_request: EndpointDeviceRequest, + google_endpoint_device_request: GoogleEndpointDeviceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3837,13 +3837,13 @@ def authenticators_admin_endpoint_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EndpointDevice: + ) -> GoogleEndpointDevice: """authenticators_admin_endpoint_create Viewset for Endpoint authenticator devices (for admins) - :param endpoint_device_request: (required) - :type endpoint_device_request: EndpointDeviceRequest + :param google_endpoint_device_request: (required) + :type google_endpoint_device_request: GoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3867,7 +3867,7 @@ def authenticators_admin_endpoint_create( """ # noqa: E501 _param = self._authenticators_admin_endpoint_create_serialize( - endpoint_device_request=endpoint_device_request, + google_endpoint_device_request=google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3875,7 +3875,7 @@ def authenticators_admin_endpoint_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "EndpointDevice", + '201': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -3893,7 +3893,7 @@ def authenticators_admin_endpoint_create( @validate_call def authenticators_admin_endpoint_create_with_http_info( self, - endpoint_device_request: EndpointDeviceRequest, + google_endpoint_device_request: GoogleEndpointDeviceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3906,13 +3906,13 @@ def authenticators_admin_endpoint_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EndpointDevice]: + ) -> ApiResponse[GoogleEndpointDevice]: """authenticators_admin_endpoint_create Viewset for Endpoint authenticator devices (for admins) - :param endpoint_device_request: (required) - :type endpoint_device_request: EndpointDeviceRequest + :param google_endpoint_device_request: (required) + :type google_endpoint_device_request: GoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3936,7 +3936,7 @@ def authenticators_admin_endpoint_create_with_http_info( """ # noqa: E501 _param = self._authenticators_admin_endpoint_create_serialize( - endpoint_device_request=endpoint_device_request, + google_endpoint_device_request=google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3944,7 +3944,7 @@ def authenticators_admin_endpoint_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "EndpointDevice", + '201': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -3962,7 +3962,7 @@ def authenticators_admin_endpoint_create_with_http_info( @validate_call def authenticators_admin_endpoint_create_without_preload_content( self, - endpoint_device_request: EndpointDeviceRequest, + google_endpoint_device_request: GoogleEndpointDeviceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3980,8 +3980,8 @@ def authenticators_admin_endpoint_create_without_preload_content( Viewset for Endpoint authenticator devices (for admins) - :param endpoint_device_request: (required) - :type endpoint_device_request: EndpointDeviceRequest + :param google_endpoint_device_request: (required) + :type google_endpoint_device_request: GoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4005,7 +4005,7 @@ def authenticators_admin_endpoint_create_without_preload_content( """ # noqa: E501 _param = self._authenticators_admin_endpoint_create_serialize( - endpoint_device_request=endpoint_device_request, + google_endpoint_device_request=google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4013,7 +4013,7 @@ def authenticators_admin_endpoint_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "EndpointDevice", + '201': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -4026,7 +4026,7 @@ def authenticators_admin_endpoint_create_without_preload_content( def _authenticators_admin_endpoint_create_serialize( self, - endpoint_device_request, + google_endpoint_device_request, _request_auth, _content_type, _headers, @@ -4052,8 +4052,8 @@ def _authenticators_admin_endpoint_create_serialize( # process the header parameters # process the form parameters # process the body parameter - if endpoint_device_request is not None: - _body_params = endpoint_device_request + if google_endpoint_device_request is not None: + _body_params = google_endpoint_device_request # set the HTTP header `Accept` @@ -4388,7 +4388,7 @@ def authenticators_admin_endpoint_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedEndpointDeviceList: + ) -> PaginatedGoogleEndpointDeviceList: """authenticators_admin_endpoint_list Viewset for Endpoint authenticator devices (for admins) @@ -4438,7 +4438,7 @@ def authenticators_admin_endpoint_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedEndpointDeviceList", + '200': "PaginatedGoogleEndpointDeviceList", '400': "ValidationError", '403': "GenericError", } @@ -4473,7 +4473,7 @@ def authenticators_admin_endpoint_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedEndpointDeviceList]: + ) -> ApiResponse[PaginatedGoogleEndpointDeviceList]: """authenticators_admin_endpoint_list Viewset for Endpoint authenticator devices (for admins) @@ -4523,7 +4523,7 @@ def authenticators_admin_endpoint_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedEndpointDeviceList", + '200': "PaginatedGoogleEndpointDeviceList", '400': "ValidationError", '403': "GenericError", } @@ -4608,7 +4608,7 @@ def authenticators_admin_endpoint_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedEndpointDeviceList", + '200': "PaginatedGoogleEndpointDeviceList", '400': "ValidationError", '403': "GenericError", } @@ -4709,7 +4709,7 @@ def _authenticators_admin_endpoint_list_serialize( def authenticators_admin_endpoint_partial_update( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Device.")], - patched_endpoint_device_request: Optional[PatchedEndpointDeviceRequest] = None, + patched_google_endpoint_device_request: Optional[PatchedGoogleEndpointDeviceRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4722,15 +4722,15 @@ def authenticators_admin_endpoint_partial_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EndpointDevice: + ) -> GoogleEndpointDevice: """authenticators_admin_endpoint_partial_update Viewset for Endpoint authenticator devices (for admins) :param uuid: A UUID string identifying this Endpoint Device. (required) :type uuid: str - :param patched_endpoint_device_request: - :type patched_endpoint_device_request: PatchedEndpointDeviceRequest + :param patched_google_endpoint_device_request: + :type patched_google_endpoint_device_request: PatchedGoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4755,7 +4755,7 @@ def authenticators_admin_endpoint_partial_update( _param = self._authenticators_admin_endpoint_partial_update_serialize( uuid=uuid, - patched_endpoint_device_request=patched_endpoint_device_request, + patched_google_endpoint_device_request=patched_google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4763,7 +4763,7 @@ def authenticators_admin_endpoint_partial_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -4782,7 +4782,7 @@ def authenticators_admin_endpoint_partial_update( def authenticators_admin_endpoint_partial_update_with_http_info( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Device.")], - patched_endpoint_device_request: Optional[PatchedEndpointDeviceRequest] = None, + patched_google_endpoint_device_request: Optional[PatchedGoogleEndpointDeviceRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4795,15 +4795,15 @@ def authenticators_admin_endpoint_partial_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EndpointDevice]: + ) -> ApiResponse[GoogleEndpointDevice]: """authenticators_admin_endpoint_partial_update Viewset for Endpoint authenticator devices (for admins) :param uuid: A UUID string identifying this Endpoint Device. (required) :type uuid: str - :param patched_endpoint_device_request: - :type patched_endpoint_device_request: PatchedEndpointDeviceRequest + :param patched_google_endpoint_device_request: + :type patched_google_endpoint_device_request: PatchedGoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4828,7 +4828,7 @@ def authenticators_admin_endpoint_partial_update_with_http_info( _param = self._authenticators_admin_endpoint_partial_update_serialize( uuid=uuid, - patched_endpoint_device_request=patched_endpoint_device_request, + patched_google_endpoint_device_request=patched_google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4836,7 +4836,7 @@ def authenticators_admin_endpoint_partial_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -4855,7 +4855,7 @@ def authenticators_admin_endpoint_partial_update_with_http_info( def authenticators_admin_endpoint_partial_update_without_preload_content( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Device.")], - patched_endpoint_device_request: Optional[PatchedEndpointDeviceRequest] = None, + patched_google_endpoint_device_request: Optional[PatchedGoogleEndpointDeviceRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4875,8 +4875,8 @@ def authenticators_admin_endpoint_partial_update_without_preload_content( :param uuid: A UUID string identifying this Endpoint Device. (required) :type uuid: str - :param patched_endpoint_device_request: - :type patched_endpoint_device_request: PatchedEndpointDeviceRequest + :param patched_google_endpoint_device_request: + :type patched_google_endpoint_device_request: PatchedGoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4901,7 +4901,7 @@ def authenticators_admin_endpoint_partial_update_without_preload_content( _param = self._authenticators_admin_endpoint_partial_update_serialize( uuid=uuid, - patched_endpoint_device_request=patched_endpoint_device_request, + patched_google_endpoint_device_request=patched_google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4909,7 +4909,7 @@ def authenticators_admin_endpoint_partial_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -4923,7 +4923,7 @@ def authenticators_admin_endpoint_partial_update_without_preload_content( def _authenticators_admin_endpoint_partial_update_serialize( self, uuid, - patched_endpoint_device_request, + patched_google_endpoint_device_request, _request_auth, _content_type, _headers, @@ -4951,8 +4951,8 @@ def _authenticators_admin_endpoint_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_endpoint_device_request is not None: - _body_params = patched_endpoint_device_request + if patched_google_endpoint_device_request is not None: + _body_params = patched_google_endpoint_device_request # set the HTTP header `Accept` @@ -5016,7 +5016,7 @@ def authenticators_admin_endpoint_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EndpointDevice: + ) -> GoogleEndpointDevice: """authenticators_admin_endpoint_retrieve Viewset for Endpoint authenticator devices (for admins) @@ -5054,7 +5054,7 @@ def authenticators_admin_endpoint_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -5085,7 +5085,7 @@ def authenticators_admin_endpoint_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EndpointDevice]: + ) -> ApiResponse[GoogleEndpointDevice]: """authenticators_admin_endpoint_retrieve Viewset for Endpoint authenticator devices (for admins) @@ -5123,7 +5123,7 @@ def authenticators_admin_endpoint_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -5192,7 +5192,7 @@ def authenticators_admin_endpoint_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -5271,7 +5271,7 @@ def _authenticators_admin_endpoint_retrieve_serialize( def authenticators_admin_endpoint_update( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Device.")], - endpoint_device_request: EndpointDeviceRequest, + google_endpoint_device_request: GoogleEndpointDeviceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5284,15 +5284,15 @@ def authenticators_admin_endpoint_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EndpointDevice: + ) -> GoogleEndpointDevice: """authenticators_admin_endpoint_update Viewset for Endpoint authenticator devices (for admins) :param uuid: A UUID string identifying this Endpoint Device. (required) :type uuid: str - :param endpoint_device_request: (required) - :type endpoint_device_request: EndpointDeviceRequest + :param google_endpoint_device_request: (required) + :type google_endpoint_device_request: GoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5317,7 +5317,7 @@ def authenticators_admin_endpoint_update( _param = self._authenticators_admin_endpoint_update_serialize( uuid=uuid, - endpoint_device_request=endpoint_device_request, + google_endpoint_device_request=google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5325,7 +5325,7 @@ def authenticators_admin_endpoint_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -5344,7 +5344,7 @@ def authenticators_admin_endpoint_update( def authenticators_admin_endpoint_update_with_http_info( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Device.")], - endpoint_device_request: EndpointDeviceRequest, + google_endpoint_device_request: GoogleEndpointDeviceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5357,15 +5357,15 @@ def authenticators_admin_endpoint_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EndpointDevice]: + ) -> ApiResponse[GoogleEndpointDevice]: """authenticators_admin_endpoint_update Viewset for Endpoint authenticator devices (for admins) :param uuid: A UUID string identifying this Endpoint Device. (required) :type uuid: str - :param endpoint_device_request: (required) - :type endpoint_device_request: EndpointDeviceRequest + :param google_endpoint_device_request: (required) + :type google_endpoint_device_request: GoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5390,7 +5390,7 @@ def authenticators_admin_endpoint_update_with_http_info( _param = self._authenticators_admin_endpoint_update_serialize( uuid=uuid, - endpoint_device_request=endpoint_device_request, + google_endpoint_device_request=google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5398,7 +5398,7 @@ def authenticators_admin_endpoint_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -5417,7 +5417,7 @@ def authenticators_admin_endpoint_update_with_http_info( def authenticators_admin_endpoint_update_without_preload_content( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Device.")], - endpoint_device_request: EndpointDeviceRequest, + google_endpoint_device_request: GoogleEndpointDeviceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5437,8 +5437,8 @@ def authenticators_admin_endpoint_update_without_preload_content( :param uuid: A UUID string identifying this Endpoint Device. (required) :type uuid: str - :param endpoint_device_request: (required) - :type endpoint_device_request: EndpointDeviceRequest + :param google_endpoint_device_request: (required) + :type google_endpoint_device_request: GoogleEndpointDeviceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5463,7 +5463,7 @@ def authenticators_admin_endpoint_update_without_preload_content( _param = self._authenticators_admin_endpoint_update_serialize( uuid=uuid, - endpoint_device_request=endpoint_device_request, + google_endpoint_device_request=google_endpoint_device_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5471,7 +5471,7 @@ def authenticators_admin_endpoint_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -5485,7 +5485,7 @@ def authenticators_admin_endpoint_update_without_preload_content( def _authenticators_admin_endpoint_update_serialize( self, uuid, - endpoint_device_request, + google_endpoint_device_request, _request_auth, _content_type, _headers, @@ -5513,8 +5513,8 @@ def _authenticators_admin_endpoint_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if endpoint_device_request is not None: - _body_params = endpoint_device_request + if google_endpoint_device_request is not None: + _body_params = google_endpoint_device_request # set the HTTP header `Accept` @@ -16254,7 +16254,7 @@ def authenticators_endpoint_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedEndpointDeviceList: + ) -> PaginatedGoogleEndpointDeviceList: """authenticators_endpoint_list Viewset for Endpoint authenticator devices @@ -16304,7 +16304,7 @@ def authenticators_endpoint_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedEndpointDeviceList", + '200': "PaginatedGoogleEndpointDeviceList", '400': "ValidationError", '403': "GenericError", } @@ -16339,7 +16339,7 @@ def authenticators_endpoint_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedEndpointDeviceList]: + ) -> ApiResponse[PaginatedGoogleEndpointDeviceList]: """authenticators_endpoint_list Viewset for Endpoint authenticator devices @@ -16389,7 +16389,7 @@ def authenticators_endpoint_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedEndpointDeviceList", + '200': "PaginatedGoogleEndpointDeviceList", '400': "ValidationError", '403': "GenericError", } @@ -16474,7 +16474,7 @@ def authenticators_endpoint_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedEndpointDeviceList", + '200': "PaginatedGoogleEndpointDeviceList", '400': "ValidationError", '403': "GenericError", } @@ -16587,7 +16587,7 @@ def authenticators_endpoint_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EndpointDevice: + ) -> GoogleEndpointDevice: """authenticators_endpoint_retrieve Viewset for Endpoint authenticator devices @@ -16625,7 +16625,7 @@ def authenticators_endpoint_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -16656,7 +16656,7 @@ def authenticators_endpoint_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EndpointDevice]: + ) -> ApiResponse[GoogleEndpointDevice]: """authenticators_endpoint_retrieve Viewset for Endpoint authenticator devices @@ -16694,7 +16694,7 @@ def authenticators_endpoint_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } @@ -16763,7 +16763,7 @@ def authenticators_endpoint_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndpointDevice", + '200': "GoogleEndpointDevice", '400': "ValidationError", '403': "GenericError", } diff --git a/authentik_client/api/core_api.py b/authentik_client/api/core_api.py index bb338dc48..7f0e56bec 100644 --- a/authentik_client/api/core_api.py +++ b/authentik_client/api/core_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,8 @@ from typing_extensions import Annotated from datetime import datetime -from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator -from typing import List, Optional, Tuple, Union +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import List, Optional from typing_extensions import Annotated from uuid import UUID from authentik_client.models.application import Application @@ -30,7 +30,7 @@ from authentik_client.models.brand import Brand from authentik_client.models.brand_request import BrandRequest from authentik_client.models.current_brand import CurrentBrand -from authentik_client.models.file_path_request import FilePathRequest +from authentik_client.models.data_export import DataExport from authentik_client.models.group import Group from authentik_client.models.group_request import GroupRequest from authentik_client.models.impersonation_request import ImpersonationRequest @@ -3994,11 +3994,10 @@ def _core_applications_retrieve_serialize( @validate_call - def core_applications_set_icon_create( + def core_applications_update( self, slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, + application_request: ApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4011,17 +4010,15 @@ def core_applications_set_icon_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_applications_set_icon_create + ) -> Application: + """core_applications_update - Set application icon + Application Viewset :param slug: (required) :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool + :param application_request: (required) + :type application_request: ApplicationRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4044,10 +4041,9 @@ def core_applications_set_icon_create( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_set_icon_create_serialize( + _param = self._core_applications_update_serialize( slug=slug, - file=file, - clear=clear, + application_request=application_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4055,8 +4051,8 @@ def core_applications_set_icon_create( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "Application", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -4071,11 +4067,10 @@ def core_applications_set_icon_create( @validate_call - def core_applications_set_icon_create_with_http_info( + def core_applications_update_with_http_info( self, slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, + application_request: ApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4088,17 +4083,15 @@ def core_applications_set_icon_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_applications_set_icon_create + ) -> ApiResponse[Application]: + """core_applications_update - Set application icon + Application Viewset :param slug: (required) :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool + :param application_request: (required) + :type application_request: ApplicationRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4121,10 +4114,9 @@ def core_applications_set_icon_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_set_icon_create_serialize( + _param = self._core_applications_update_serialize( slug=slug, - file=file, - clear=clear, + application_request=application_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4132,8 +4124,8 @@ def core_applications_set_icon_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "Application", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -4148,11 +4140,10 @@ def core_applications_set_icon_create_with_http_info( @validate_call - def core_applications_set_icon_create_without_preload_content( + def core_applications_update_without_preload_content( self, slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, + application_request: ApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4166,16 +4157,14 @@ def core_applications_set_icon_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_applications_set_icon_create + """core_applications_update - Set application icon + Application Viewset :param slug: (required) :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool + :param application_request: (required) + :type application_request: ApplicationRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4198,10 +4187,9 @@ def core_applications_set_icon_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_set_icon_create_serialize( + _param = self._core_applications_update_serialize( slug=slug, - file=file, - clear=clear, + application_request=application_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4209,8 +4197,8 @@ def core_applications_set_icon_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "Application", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -4220,11 +4208,10 @@ def core_applications_set_icon_create_without_preload_content( return response_data.response - def _core_applications_set_icon_create_serialize( + def _core_applications_update_serialize( self, slug, - file, - clear, + application_request, _request_auth, _content_type, _headers, @@ -4251,11 +4238,9 @@ def _core_applications_set_icon_create_serialize( # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file - if clear is not None: - _form_params.append(('clear', clear)) # process the body parameter + if application_request is not None: + _body_params = application_request # set the HTTP header `Accept` @@ -4273,7 +4258,7 @@ def _core_applications_set_icon_create_serialize( _default_content_type = ( self.api_client.select_header_content_type( [ - 'multipart/form-data' + 'application/json' ] ) ) @@ -4286,8 +4271,8 @@ def _core_applications_set_icon_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/core/applications/{slug}/set_icon/', + method='PUT', + resource_path='/core/applications/{slug}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4304,10 +4289,9 @@ def _core_applications_set_icon_create_serialize( @validate_call - def core_applications_set_icon_url_create( + def core_applications_used_by_list( self, slug: StrictStr, - file_path_request: FilePathRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4320,15 +4304,13 @@ def core_applications_set_icon_url_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_applications_set_icon_url_create + ) -> List[UsedBy]: + """core_applications_used_by_list - Set application icon (as URL) + Get a list of all objects that use this object :param slug: (required) :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4351,9 +4333,8 @@ def core_applications_set_icon_url_create( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_set_icon_url_create_serialize( + _param = self._core_applications_used_by_list_serialize( slug=slug, - file_path_request=file_path_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4361,8 +4342,8 @@ def core_applications_set_icon_url_create( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[UsedBy]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -4377,10 +4358,9 @@ def core_applications_set_icon_url_create( @validate_call - def core_applications_set_icon_url_create_with_http_info( + def core_applications_used_by_list_with_http_info( self, slug: StrictStr, - file_path_request: FilePathRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4393,15 +4373,13 @@ def core_applications_set_icon_url_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_applications_set_icon_url_create + ) -> ApiResponse[List[UsedBy]]: + """core_applications_used_by_list - Set application icon (as URL) + Get a list of all objects that use this object :param slug: (required) :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4424,9 +4402,8 @@ def core_applications_set_icon_url_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_set_icon_url_create_serialize( + _param = self._core_applications_used_by_list_serialize( slug=slug, - file_path_request=file_path_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4434,8 +4411,8 @@ def core_applications_set_icon_url_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[UsedBy]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -4450,10 +4427,9 @@ def core_applications_set_icon_url_create_with_http_info( @validate_call - def core_applications_set_icon_url_create_without_preload_content( + def core_applications_used_by_list_without_preload_content( self, slug: StrictStr, - file_path_request: FilePathRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4467,14 +4443,12 @@ def core_applications_set_icon_url_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_applications_set_icon_url_create + """core_applications_used_by_list - Set application icon (as URL) + Get a list of all objects that use this object :param slug: (required) :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4497,9 +4471,8 @@ def core_applications_set_icon_url_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_set_icon_url_create_serialize( + _param = self._core_applications_used_by_list_serialize( slug=slug, - file_path_request=file_path_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4507,8 +4480,8 @@ def core_applications_set_icon_url_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[UsedBy]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -4518,10 +4491,9 @@ def core_applications_set_icon_url_create_without_preload_content( return response_data.response - def _core_applications_set_icon_url_create_serialize( + def _core_applications_used_by_list_serialize( self, slug, - file_path_request, _request_auth, _content_type, _headers, @@ -4549,8 +4521,6 @@ def _core_applications_set_icon_url_create_serialize( # process the header parameters # process the form parameters # process the body parameter - if file_path_request is not None: - _body_params = file_path_request # set the HTTP header `Accept` @@ -4561,19 +4531,6 @@ def _core_applications_set_icon_url_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4581,8 +4538,8 @@ def _core_applications_set_icon_url_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/core/applications/{slug}/set_icon_url/', + method='GET', + resource_path='/core/applications/{slug}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4599,10 +4556,9 @@ def _core_applications_set_icon_url_create_serialize( @validate_call - def core_applications_update( + def core_authenticated_sessions_destroy( self, - slug: StrictStr, - application_request: ApplicationRequest, + uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4615,15 +4571,13 @@ def core_applications_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Application: - """core_applications_update + ) -> None: + """core_authenticated_sessions_destroy - Application Viewset + AuthenticatedSession Viewset - :param slug: (required) - :type slug: str - :param application_request: (required) - :type application_request: ApplicationRequest + :param uuid: (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4646,9 +4600,8 @@ def core_applications_update( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_update_serialize( - slug=slug, - application_request=application_request, + _param = self._core_authenticated_sessions_destroy_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4656,7 +4609,7 @@ def core_applications_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Application", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -4672,10 +4625,9 @@ def core_applications_update( @validate_call - def core_applications_update_with_http_info( + def core_authenticated_sessions_destroy_with_http_info( self, - slug: StrictStr, - application_request: ApplicationRequest, + uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4688,15 +4640,13 @@ def core_applications_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Application]: - """core_applications_update + ) -> ApiResponse[None]: + """core_authenticated_sessions_destroy - Application Viewset + AuthenticatedSession Viewset - :param slug: (required) - :type slug: str - :param application_request: (required) - :type application_request: ApplicationRequest + :param uuid: (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4719,9 +4669,8 @@ def core_applications_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_update_serialize( - slug=slug, - application_request=application_request, + _param = self._core_authenticated_sessions_destroy_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4729,7 +4678,7 @@ def core_applications_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Application", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -4745,10 +4694,9 @@ def core_applications_update_with_http_info( @validate_call - def core_applications_update_without_preload_content( + def core_authenticated_sessions_destroy_without_preload_content( self, - slug: StrictStr, - application_request: ApplicationRequest, + uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4762,14 +4710,12 @@ def core_applications_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_applications_update + """core_authenticated_sessions_destroy - Application Viewset + AuthenticatedSession Viewset - :param slug: (required) - :type slug: str - :param application_request: (required) - :type application_request: ApplicationRequest + :param uuid: (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4792,9 +4738,8 @@ def core_applications_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_update_serialize( - slug=slug, - application_request=application_request, + _param = self._core_authenticated_sessions_destroy_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4802,7 +4747,7 @@ def core_applications_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Application", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -4813,10 +4758,9 @@ def core_applications_update_without_preload_content( return response_data.response - def _core_applications_update_serialize( + def _core_authenticated_sessions_destroy_serialize( self, - slug, - application_request, + uuid, _request_auth, _content_type, _headers, @@ -4838,14 +4782,12 @@ def _core_applications_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if slug is not None: - _path_params['slug'] = slug + if uuid is not None: + _path_params['uuid'] = uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if application_request is not None: - _body_params = application_request # set the HTTP header `Accept` @@ -4856,19 +4798,6 @@ def _core_applications_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4876,8 +4805,8 @@ def _core_applications_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/core/applications/{slug}/', + method='DELETE', + resource_path='/core/authenticated_sessions/{uuid}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4894,9 +4823,15 @@ def _core_applications_update_serialize( @validate_call - def core_applications_used_by_list( + def core_authenticated_sessions_list( self, - slug: StrictStr, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + session__last_ip: Optional[StrictStr] = None, + session__last_user_agent: Optional[StrictStr] = None, + user__username: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4909,13 +4844,25 @@ def core_applications_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """core_applications_used_by_list + ) -> PaginatedAuthenticatedSessionList: + """core_authenticated_sessions_list - Get a list of all objects that use this object + AuthenticatedSession Viewset - :param slug: (required) - :type slug: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param session__last_ip: + :type session__last_ip: str + :param session__last_user_agent: + :type session__last_user_agent: str + :param user__username: + :type user__username: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4938,8 +4885,14 @@ def core_applications_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_used_by_list_serialize( - slug=slug, + _param = self._core_authenticated_sessions_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + session__last_ip=session__last_ip, + session__last_user_agent=session__last_user_agent, + user__username=user__username, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4947,7 +4900,7 @@ def core_applications_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "PaginatedAuthenticatedSessionList", '400': "ValidationError", '403': "GenericError", } @@ -4963,9 +4916,15 @@ def core_applications_used_by_list( @validate_call - def core_applications_used_by_list_with_http_info( + def core_authenticated_sessions_list_with_http_info( self, - slug: StrictStr, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + session__last_ip: Optional[StrictStr] = None, + session__last_user_agent: Optional[StrictStr] = None, + user__username: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4978,22 +4937,34 @@ def core_applications_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """core_applications_used_by_list + ) -> ApiResponse[PaginatedAuthenticatedSessionList]: + """core_authenticated_sessions_list - Get a list of all objects that use this object + AuthenticatedSession Viewset - :param slug: (required) - :type slug: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param session__last_ip: + :type session__last_ip: str + :param session__last_user_agent: + :type session__last_user_agent: str + :param user__username: + :type user__username: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional :param _content_type: force content-type for the request. :type _content_type: str, Optional :param _headers: set to override the headers for a single @@ -5007,8 +4978,14 @@ def core_applications_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_used_by_list_serialize( - slug=slug, + _param = self._core_authenticated_sessions_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + session__last_ip=session__last_ip, + session__last_user_agent=session__last_user_agent, + user__username=user__username, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5016,7 +4993,7 @@ def core_applications_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "PaginatedAuthenticatedSessionList", '400': "ValidationError", '403': "GenericError", } @@ -5032,9 +5009,15 @@ def core_applications_used_by_list_with_http_info( @validate_call - def core_applications_used_by_list_without_preload_content( + def core_authenticated_sessions_list_without_preload_content( self, - slug: StrictStr, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + session__last_ip: Optional[StrictStr] = None, + session__last_user_agent: Optional[StrictStr] = None, + user__username: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5048,12 +5031,24 @@ def core_applications_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_applications_used_by_list + """core_authenticated_sessions_list - Get a list of all objects that use this object + AuthenticatedSession Viewset - :param slug: (required) - :type slug: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param session__last_ip: + :type session__last_ip: str + :param session__last_user_agent: + :type session__last_user_agent: str + :param user__username: + :type user__username: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5076,8 +5071,14 @@ def core_applications_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_applications_used_by_list_serialize( - slug=slug, + _param = self._core_authenticated_sessions_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + session__last_ip=session__last_ip, + session__last_user_agent=session__last_user_agent, + user__username=user__username, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5085,7 +5086,7 @@ def core_applications_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "PaginatedAuthenticatedSessionList", '400': "ValidationError", '403': "GenericError", } @@ -5096,9 +5097,15 @@ def core_applications_used_by_list_without_preload_content( return response_data.response - def _core_applications_used_by_list_serialize( + def _core_authenticated_sessions_list_serialize( self, - slug, + ordering, + page, + page_size, + search, + session__last_ip, + session__last_user_agent, + user__username, _request_auth, _content_type, _headers, @@ -5120,9 +5127,35 @@ def _core_applications_used_by_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - if slug is not None: - _path_params['slug'] = slug # process the query parameters + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if session__last_ip is not None: + + _query_params.append(('session__last_ip', session__last_ip)) + + if session__last_user_agent is not None: + + _query_params.append(('session__last_user_agent', session__last_user_agent)) + + if user__username is not None: + + _query_params.append(('user__username', user__username)) + # process the header parameters # process the form parameters # process the body parameter @@ -5144,7 +5177,7 @@ def _core_applications_used_by_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/core/applications/{slug}/used_by/', + resource_path='/core/authenticated_sessions/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5161,7 +5194,7 @@ def _core_applications_used_by_list_serialize( @validate_call - def core_authenticated_sessions_destroy( + def core_authenticated_sessions_retrieve( self, uuid: UUID, _request_timeout: Union[ @@ -5176,8 +5209,8 @@ def core_authenticated_sessions_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_authenticated_sessions_destroy + ) -> AuthenticatedSession: + """core_authenticated_sessions_retrieve AuthenticatedSession Viewset @@ -5205,7 +5238,7 @@ def core_authenticated_sessions_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_destroy_serialize( + _param = self._core_authenticated_sessions_retrieve_serialize( uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, @@ -5214,7 +5247,7 @@ def core_authenticated_sessions_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "AuthenticatedSession", '400': "ValidationError", '403': "GenericError", } @@ -5230,7 +5263,7 @@ def core_authenticated_sessions_destroy( @validate_call - def core_authenticated_sessions_destroy_with_http_info( + def core_authenticated_sessions_retrieve_with_http_info( self, uuid: UUID, _request_timeout: Union[ @@ -5245,8 +5278,8 @@ def core_authenticated_sessions_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_authenticated_sessions_destroy + ) -> ApiResponse[AuthenticatedSession]: + """core_authenticated_sessions_retrieve AuthenticatedSession Viewset @@ -5274,7 +5307,7 @@ def core_authenticated_sessions_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_destroy_serialize( + _param = self._core_authenticated_sessions_retrieve_serialize( uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, @@ -5283,7 +5316,7 @@ def core_authenticated_sessions_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "AuthenticatedSession", '400': "ValidationError", '403': "GenericError", } @@ -5299,7 +5332,7 @@ def core_authenticated_sessions_destroy_with_http_info( @validate_call - def core_authenticated_sessions_destroy_without_preload_content( + def core_authenticated_sessions_retrieve_without_preload_content( self, uuid: UUID, _request_timeout: Union[ @@ -5315,7 +5348,7 @@ def core_authenticated_sessions_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_authenticated_sessions_destroy + """core_authenticated_sessions_retrieve AuthenticatedSession Viewset @@ -5343,7 +5376,7 @@ def core_authenticated_sessions_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_destroy_serialize( + _param = self._core_authenticated_sessions_retrieve_serialize( uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, @@ -5352,7 +5385,7 @@ def core_authenticated_sessions_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "AuthenticatedSession", '400': "ValidationError", '403': "GenericError", } @@ -5363,7 +5396,7 @@ def core_authenticated_sessions_destroy_without_preload_content( return response_data.response - def _core_authenticated_sessions_destroy_serialize( + def _core_authenticated_sessions_retrieve_serialize( self, uuid, _request_auth, @@ -5410,7 +5443,7 @@ def _core_authenticated_sessions_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='GET', resource_path='/core/authenticated_sessions/{uuid}/', path_params=_path_params, query_params=_query_params, @@ -5428,15 +5461,9 @@ def _core_authenticated_sessions_destroy_serialize( @validate_call - def core_authenticated_sessions_list( + def core_authenticated_sessions_used_by_list( self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - session__last_ip: Optional[StrictStr] = None, - session__last_user_agent: Optional[StrictStr] = None, - user__username: Optional[StrictStr] = None, + uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5449,25 +5476,13 @@ def core_authenticated_sessions_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedAuthenticatedSessionList: - """core_authenticated_sessions_list + ) -> List[UsedBy]: + """core_authenticated_sessions_used_by_list - AuthenticatedSession Viewset + Get a list of all objects that use this object - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param session__last_ip: - :type session__last_ip: str - :param session__last_user_agent: - :type session__last_user_agent: str - :param user__username: - :type user__username: str + :param uuid: (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5490,14 +5505,8 @@ def core_authenticated_sessions_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - session__last_ip=session__last_ip, - session__last_user_agent=session__last_user_agent, - user__username=user__username, + _param = self._core_authenticated_sessions_used_by_list_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5505,7 +5514,7 @@ def core_authenticated_sessions_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedAuthenticatedSessionList", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -5521,15 +5530,9 @@ def core_authenticated_sessions_list( @validate_call - def core_authenticated_sessions_list_with_http_info( + def core_authenticated_sessions_used_by_list_with_http_info( self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - session__last_ip: Optional[StrictStr] = None, - session__last_user_agent: Optional[StrictStr] = None, - user__username: Optional[StrictStr] = None, + uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5542,25 +5545,13 @@ def core_authenticated_sessions_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedAuthenticatedSessionList]: - """core_authenticated_sessions_list + ) -> ApiResponse[List[UsedBy]]: + """core_authenticated_sessions_used_by_list - AuthenticatedSession Viewset + Get a list of all objects that use this object - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param session__last_ip: - :type session__last_ip: str - :param session__last_user_agent: - :type session__last_user_agent: str - :param user__username: - :type user__username: str + :param uuid: (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5583,14 +5574,8 @@ def core_authenticated_sessions_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - session__last_ip=session__last_ip, - session__last_user_agent=session__last_user_agent, - user__username=user__username, + _param = self._core_authenticated_sessions_used_by_list_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5598,7 +5583,7 @@ def core_authenticated_sessions_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedAuthenticatedSessionList", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -5614,15 +5599,9 @@ def core_authenticated_sessions_list_with_http_info( @validate_call - def core_authenticated_sessions_list_without_preload_content( + def core_authenticated_sessions_used_by_list_without_preload_content( self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - session__last_ip: Optional[StrictStr] = None, - session__last_user_agent: Optional[StrictStr] = None, - user__username: Optional[StrictStr] = None, + uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5636,24 +5615,12 @@ def core_authenticated_sessions_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_authenticated_sessions_list + """core_authenticated_sessions_used_by_list - AuthenticatedSession Viewset + Get a list of all objects that use this object - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param session__last_ip: - :type session__last_ip: str - :param session__last_user_agent: - :type session__last_user_agent: str - :param user__username: - :type user__username: str + :param uuid: (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5676,14 +5643,8 @@ def core_authenticated_sessions_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - session__last_ip=session__last_ip, - session__last_user_agent=session__last_user_agent, - user__username=user__username, + _param = self._core_authenticated_sessions_used_by_list_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5691,7 +5652,7 @@ def core_authenticated_sessions_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedAuthenticatedSessionList", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -5702,15 +5663,9 @@ def core_authenticated_sessions_list_without_preload_content( return response_data.response - def _core_authenticated_sessions_list_serialize( + def _core_authenticated_sessions_used_by_list_serialize( self, - ordering, - page, - page_size, - search, - session__last_ip, - session__last_user_agent, - user__username, + uuid, _request_auth, _content_type, _headers, @@ -5732,35 +5687,9 @@ def _core_authenticated_sessions_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if uuid is not None: + _path_params['uuid'] = uuid # process the query parameters - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if session__last_ip is not None: - - _query_params.append(('session__last_ip', session__last_ip)) - - if session__last_user_agent is not None: - - _query_params.append(('session__last_user_agent', session__last_user_agent)) - - if user__username is not None: - - _query_params.append(('user__username', user__username)) - # process the header parameters # process the form parameters # process the body parameter @@ -5782,7 +5711,7 @@ def _core_authenticated_sessions_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/core/authenticated_sessions/', + resource_path='/core/authenticated_sessions/{uuid}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5799,9 +5728,9 @@ def _core_authenticated_sessions_list_serialize( @validate_call - def core_authenticated_sessions_retrieve( + def core_brands_create( self, - uuid: UUID, + brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5814,13 +5743,13 @@ def core_authenticated_sessions_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AuthenticatedSession: - """core_authenticated_sessions_retrieve + ) -> Brand: + """core_brands_create - AuthenticatedSession Viewset + Brand Viewset - :param uuid: (required) - :type uuid: str + :param brand_request: (required) + :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5843,8 +5772,8 @@ def core_authenticated_sessions_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_retrieve_serialize( - uuid=uuid, + _param = self._core_brands_create_serialize( + brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5852,7 +5781,7 @@ def core_authenticated_sessions_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthenticatedSession", + '201': "Brand", '400': "ValidationError", '403': "GenericError", } @@ -5868,9 +5797,9 @@ def core_authenticated_sessions_retrieve( @validate_call - def core_authenticated_sessions_retrieve_with_http_info( + def core_brands_create_with_http_info( self, - uuid: UUID, + brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5883,13 +5812,13 @@ def core_authenticated_sessions_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AuthenticatedSession]: - """core_authenticated_sessions_retrieve + ) -> ApiResponse[Brand]: + """core_brands_create - AuthenticatedSession Viewset + Brand Viewset - :param uuid: (required) - :type uuid: str + :param brand_request: (required) + :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5912,8 +5841,8 @@ def core_authenticated_sessions_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_retrieve_serialize( - uuid=uuid, + _param = self._core_brands_create_serialize( + brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5921,7 +5850,7 @@ def core_authenticated_sessions_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthenticatedSession", + '201': "Brand", '400': "ValidationError", '403': "GenericError", } @@ -5937,9 +5866,9 @@ def core_authenticated_sessions_retrieve_with_http_info( @validate_call - def core_authenticated_sessions_retrieve_without_preload_content( + def core_brands_create_without_preload_content( self, - uuid: UUID, + brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5953,12 +5882,12 @@ def core_authenticated_sessions_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_authenticated_sessions_retrieve + """core_brands_create - AuthenticatedSession Viewset + Brand Viewset - :param uuid: (required) - :type uuid: str + :param brand_request: (required) + :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5981,8 +5910,8 @@ def core_authenticated_sessions_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_retrieve_serialize( - uuid=uuid, + _param = self._core_brands_create_serialize( + brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5990,7 +5919,7 @@ def core_authenticated_sessions_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AuthenticatedSession", + '201': "Brand", '400': "ValidationError", '403': "GenericError", } @@ -6001,9 +5930,9 @@ def core_authenticated_sessions_retrieve_without_preload_content( return response_data.response - def _core_authenticated_sessions_retrieve_serialize( + def _core_brands_create_serialize( self, - uuid, + brand_request, _request_auth, _content_type, _headers, @@ -6025,12 +5954,12 @@ def _core_authenticated_sessions_retrieve_serialize( _body_params: Optional[bytes] = None # process the path parameters - if uuid is not None: - _path_params['uuid'] = uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if brand_request is not None: + _body_params = brand_request # set the HTTP header `Accept` @@ -6041,6 +5970,19 @@ def _core_authenticated_sessions_retrieve_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6048,8 +5990,8 @@ def _core_authenticated_sessions_retrieve_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/authenticated_sessions/{uuid}/', + method='POST', + resource_path='/core/brands/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6066,9 +6008,8 @@ def _core_authenticated_sessions_retrieve_serialize( @validate_call - def core_authenticated_sessions_used_by_list( + def core_brands_current_retrieve( self, - uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6081,13 +6022,11 @@ def core_authenticated_sessions_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """core_authenticated_sessions_used_by_list + ) -> CurrentBrand: + """core_brands_current_retrieve - Get a list of all objects that use this object + Get current brand - :param uuid: (required) - :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6110,8 +6049,7 @@ def core_authenticated_sessions_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_used_by_list_serialize( - uuid=uuid, + _param = self._core_brands_current_retrieve_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6119,7 +6057,7 @@ def core_authenticated_sessions_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "CurrentBrand", '400': "ValidationError", '403': "GenericError", } @@ -6135,9 +6073,8 @@ def core_authenticated_sessions_used_by_list( @validate_call - def core_authenticated_sessions_used_by_list_with_http_info( + def core_brands_current_retrieve_with_http_info( self, - uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6150,13 +6087,11 @@ def core_authenticated_sessions_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """core_authenticated_sessions_used_by_list + ) -> ApiResponse[CurrentBrand]: + """core_brands_current_retrieve - Get a list of all objects that use this object + Get current brand - :param uuid: (required) - :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6179,8 +6114,7 @@ def core_authenticated_sessions_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_used_by_list_serialize( - uuid=uuid, + _param = self._core_brands_current_retrieve_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6188,7 +6122,7 @@ def core_authenticated_sessions_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "CurrentBrand", '400': "ValidationError", '403': "GenericError", } @@ -6204,9 +6138,8 @@ def core_authenticated_sessions_used_by_list_with_http_info( @validate_call - def core_authenticated_sessions_used_by_list_without_preload_content( + def core_brands_current_retrieve_without_preload_content( self, - uuid: UUID, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6220,12 +6153,10 @@ def core_authenticated_sessions_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_authenticated_sessions_used_by_list + """core_brands_current_retrieve - Get a list of all objects that use this object + Get current brand - :param uuid: (required) - :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6248,8 +6179,7 @@ def core_authenticated_sessions_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_authenticated_sessions_used_by_list_serialize( - uuid=uuid, + _param = self._core_brands_current_retrieve_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6257,7 +6187,7 @@ def core_authenticated_sessions_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "CurrentBrand", '400': "ValidationError", '403': "GenericError", } @@ -6268,9 +6198,8 @@ def core_authenticated_sessions_used_by_list_without_preload_content( return response_data.response - def _core_authenticated_sessions_used_by_list_serialize( + def _core_brands_current_retrieve_serialize( self, - uuid, _request_auth, _content_type, _headers, @@ -6292,8 +6221,6 @@ def _core_authenticated_sessions_used_by_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - if uuid is not None: - _path_params['uuid'] = uuid # process the query parameters # process the header parameters # process the form parameters @@ -6316,7 +6243,7 @@ def _core_authenticated_sessions_used_by_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/core/authenticated_sessions/{uuid}/used_by/', + resource_path='/core/brands/current/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6333,9 +6260,9 @@ def _core_authenticated_sessions_used_by_list_serialize( @validate_call - def core_brands_create( + def core_brands_destroy( self, - brand_request: BrandRequest, + brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6348,13 +6275,13 @@ def core_brands_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Brand: - """core_brands_create + ) -> None: + """core_brands_destroy Brand Viewset - :param brand_request: (required) - :type brand_request: BrandRequest + :param brand_uuid: A UUID string identifying this Brand. (required) + :type brand_uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6377,8 +6304,8 @@ def core_brands_create( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_create_serialize( - brand_request=brand_request, + _param = self._core_brands_destroy_serialize( + brand_uuid=brand_uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6386,7 +6313,7 @@ def core_brands_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Brand", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -6402,9 +6329,9 @@ def core_brands_create( @validate_call - def core_brands_create_with_http_info( + def core_brands_destroy_with_http_info( self, - brand_request: BrandRequest, + brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6417,13 +6344,13 @@ def core_brands_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Brand]: - """core_brands_create + ) -> ApiResponse[None]: + """core_brands_destroy Brand Viewset - :param brand_request: (required) - :type brand_request: BrandRequest + :param brand_uuid: A UUID string identifying this Brand. (required) + :type brand_uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6446,8 +6373,8 @@ def core_brands_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_create_serialize( - brand_request=brand_request, + _param = self._core_brands_destroy_serialize( + brand_uuid=brand_uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6455,7 +6382,7 @@ def core_brands_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Brand", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -6471,9 +6398,9 @@ def core_brands_create_with_http_info( @validate_call - def core_brands_create_without_preload_content( + def core_brands_destroy_without_preload_content( self, - brand_request: BrandRequest, + brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6487,12 +6414,12 @@ def core_brands_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_brands_create + """core_brands_destroy Brand Viewset - :param brand_request: (required) - :type brand_request: BrandRequest + :param brand_uuid: A UUID string identifying this Brand. (required) + :type brand_uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6515,8 +6442,8 @@ def core_brands_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_create_serialize( - brand_request=brand_request, + _param = self._core_brands_destroy_serialize( + brand_uuid=brand_uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6524,7 +6451,7 @@ def core_brands_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Brand", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -6535,9 +6462,9 @@ def core_brands_create_without_preload_content( return response_data.response - def _core_brands_create_serialize( + def _core_brands_destroy_serialize( self, - brand_request, + brand_uuid, _request_auth, _content_type, _headers, @@ -6559,12 +6486,12 @@ def _core_brands_create_serialize( _body_params: Optional[bytes] = None # process the path parameters + if brand_uuid is not None: + _path_params['brand_uuid'] = brand_uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if brand_request is not None: - _body_params = brand_request # set the HTTP header `Accept` @@ -6575,19 +6502,6 @@ def _core_brands_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6595,8 +6509,8 @@ def _core_brands_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/core/brands/', + method='DELETE', + resource_path='/core/brands/{brand_uuid}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6613,8 +6527,27 @@ def _core_brands_create_serialize( @validate_call - def core_brands_current_retrieve( + def core_brands_list( self, + brand_uuid: Optional[UUID] = None, + branding_default_flow_background: Optional[StrictStr] = None, + branding_favicon: Optional[StrictStr] = None, + branding_logo: Optional[StrictStr] = None, + branding_title: Optional[StrictStr] = None, + client_certificates: Optional[List[UUID]] = None, + default: Optional[StrictBool] = None, + domain: Optional[StrictStr] = None, + flow_authentication: Optional[UUID] = None, + flow_device_code: Optional[UUID] = None, + flow_invalidation: Optional[UUID] = None, + flow_recovery: Optional[UUID] = None, + flow_unenrollment: Optional[UUID] = None, + flow_user_settings: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + web_certificate: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6627,11 +6560,49 @@ def core_brands_current_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CurrentBrand: - """core_brands_current_retrieve + ) -> PaginatedBrandList: + """core_brands_list - Get current brand + Brand Viewset + :param brand_uuid: + :type brand_uuid: str + :param branding_default_flow_background: + :type branding_default_flow_background: str + :param branding_favicon: + :type branding_favicon: str + :param branding_logo: + :type branding_logo: str + :param branding_title: + :type branding_title: str + :param client_certificates: + :type client_certificates: List[str] + :param default: + :type default: bool + :param domain: + :type domain: str + :param flow_authentication: + :type flow_authentication: str + :param flow_device_code: + :type flow_device_code: str + :param flow_invalidation: + :type flow_invalidation: str + :param flow_recovery: + :type flow_recovery: str + :param flow_unenrollment: + :type flow_unenrollment: str + :param flow_user_settings: + :type flow_user_settings: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param web_certificate: + :type web_certificate: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6654,7 +6625,26 @@ def core_brands_current_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_current_retrieve_serialize( + _param = self._core_brands_list_serialize( + brand_uuid=brand_uuid, + branding_default_flow_background=branding_default_flow_background, + branding_favicon=branding_favicon, + branding_logo=branding_logo, + branding_title=branding_title, + client_certificates=client_certificates, + default=default, + domain=domain, + flow_authentication=flow_authentication, + flow_device_code=flow_device_code, + flow_invalidation=flow_invalidation, + flow_recovery=flow_recovery, + flow_unenrollment=flow_unenrollment, + flow_user_settings=flow_user_settings, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + web_certificate=web_certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6662,7 +6652,7 @@ def core_brands_current_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrentBrand", + '200': "PaginatedBrandList", '400': "ValidationError", '403': "GenericError", } @@ -6678,8 +6668,27 @@ def core_brands_current_retrieve( @validate_call - def core_brands_current_retrieve_with_http_info( + def core_brands_list_with_http_info( self, + brand_uuid: Optional[UUID] = None, + branding_default_flow_background: Optional[StrictStr] = None, + branding_favicon: Optional[StrictStr] = None, + branding_logo: Optional[StrictStr] = None, + branding_title: Optional[StrictStr] = None, + client_certificates: Optional[List[UUID]] = None, + default: Optional[StrictBool] = None, + domain: Optional[StrictStr] = None, + flow_authentication: Optional[UUID] = None, + flow_device_code: Optional[UUID] = None, + flow_invalidation: Optional[UUID] = None, + flow_recovery: Optional[UUID] = None, + flow_unenrollment: Optional[UUID] = None, + flow_user_settings: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + web_certificate: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6692,11 +6701,49 @@ def core_brands_current_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CurrentBrand]: - """core_brands_current_retrieve + ) -> ApiResponse[PaginatedBrandList]: + """core_brands_list - Get current brand + Brand Viewset + :param brand_uuid: + :type brand_uuid: str + :param branding_default_flow_background: + :type branding_default_flow_background: str + :param branding_favicon: + :type branding_favicon: str + :param branding_logo: + :type branding_logo: str + :param branding_title: + :type branding_title: str + :param client_certificates: + :type client_certificates: List[str] + :param default: + :type default: bool + :param domain: + :type domain: str + :param flow_authentication: + :type flow_authentication: str + :param flow_device_code: + :type flow_device_code: str + :param flow_invalidation: + :type flow_invalidation: str + :param flow_recovery: + :type flow_recovery: str + :param flow_unenrollment: + :type flow_unenrollment: str + :param flow_user_settings: + :type flow_user_settings: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param web_certificate: + :type web_certificate: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6719,7 +6766,26 @@ def core_brands_current_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_current_retrieve_serialize( + _param = self._core_brands_list_serialize( + brand_uuid=brand_uuid, + branding_default_flow_background=branding_default_flow_background, + branding_favicon=branding_favicon, + branding_logo=branding_logo, + branding_title=branding_title, + client_certificates=client_certificates, + default=default, + domain=domain, + flow_authentication=flow_authentication, + flow_device_code=flow_device_code, + flow_invalidation=flow_invalidation, + flow_recovery=flow_recovery, + flow_unenrollment=flow_unenrollment, + flow_user_settings=flow_user_settings, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + web_certificate=web_certificate, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6727,7 +6793,7 @@ def core_brands_current_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrentBrand", + '200': "PaginatedBrandList", '400': "ValidationError", '403': "GenericError", } @@ -6743,8 +6809,27 @@ def core_brands_current_retrieve_with_http_info( @validate_call - def core_brands_current_retrieve_without_preload_content( + def core_brands_list_without_preload_content( self, + brand_uuid: Optional[UUID] = None, + branding_default_flow_background: Optional[StrictStr] = None, + branding_favicon: Optional[StrictStr] = None, + branding_logo: Optional[StrictStr] = None, + branding_title: Optional[StrictStr] = None, + client_certificates: Optional[List[UUID]] = None, + default: Optional[StrictBool] = None, + domain: Optional[StrictStr] = None, + flow_authentication: Optional[UUID] = None, + flow_device_code: Optional[UUID] = None, + flow_invalidation: Optional[UUID] = None, + flow_recovery: Optional[UUID] = None, + flow_unenrollment: Optional[UUID] = None, + flow_user_settings: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + web_certificate: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6758,41 +6843,98 @@ def core_brands_current_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_brands_current_retrieve - - Get current brand - - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 + """core_brands_list - _param = self._core_brands_current_retrieve_serialize( - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) + Brand Viewset - _response_types_map: Dict[str, Optional[str]] = { - '200': "CurrentBrand", + :param brand_uuid: + :type brand_uuid: str + :param branding_default_flow_background: + :type branding_default_flow_background: str + :param branding_favicon: + :type branding_favicon: str + :param branding_logo: + :type branding_logo: str + :param branding_title: + :type branding_title: str + :param client_certificates: + :type client_certificates: List[str] + :param default: + :type default: bool + :param domain: + :type domain: str + :param flow_authentication: + :type flow_authentication: str + :param flow_device_code: + :type flow_device_code: str + :param flow_invalidation: + :type flow_invalidation: str + :param flow_recovery: + :type flow_recovery: str + :param flow_unenrollment: + :type flow_unenrollment: str + :param flow_user_settings: + :type flow_user_settings: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param web_certificate: + :type web_certificate: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._core_brands_list_serialize( + brand_uuid=brand_uuid, + branding_default_flow_background=branding_default_flow_background, + branding_favicon=branding_favicon, + branding_logo=branding_logo, + branding_title=branding_title, + client_certificates=client_certificates, + default=default, + domain=domain, + flow_authentication=flow_authentication, + flow_device_code=flow_device_code, + flow_invalidation=flow_invalidation, + flow_recovery=flow_recovery, + flow_unenrollment=flow_unenrollment, + flow_user_settings=flow_user_settings, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + web_certificate=web_certificate, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedBrandList", '400': "ValidationError", '403': "GenericError", } @@ -6803,8 +6945,27 @@ def core_brands_current_retrieve_without_preload_content( return response_data.response - def _core_brands_current_retrieve_serialize( + def _core_brands_list_serialize( self, + brand_uuid, + branding_default_flow_background, + branding_favicon, + branding_logo, + branding_title, + client_certificates, + default, + domain, + flow_authentication, + flow_device_code, + flow_invalidation, + flow_recovery, + flow_unenrollment, + flow_user_settings, + ordering, + page, + page_size, + search, + web_certificate, _request_auth, _content_type, _headers, @@ -6814,6 +6975,7 @@ def _core_brands_current_retrieve_serialize( _host = None _collection_formats: Dict[str, str] = { + 'client_certificates': 'multi', } _path_params: Dict[str, str] = {} @@ -6827,6 +6989,82 @@ def _core_brands_current_retrieve_serialize( # process the path parameters # process the query parameters + if brand_uuid is not None: + + _query_params.append(('brand_uuid', brand_uuid)) + + if branding_default_flow_background is not None: + + _query_params.append(('branding_default_flow_background', branding_default_flow_background)) + + if branding_favicon is not None: + + _query_params.append(('branding_favicon', branding_favicon)) + + if branding_logo is not None: + + _query_params.append(('branding_logo', branding_logo)) + + if branding_title is not None: + + _query_params.append(('branding_title', branding_title)) + + if client_certificates is not None: + + _query_params.append(('client_certificates', client_certificates)) + + if default is not None: + + _query_params.append(('default', default)) + + if domain is not None: + + _query_params.append(('domain', domain)) + + if flow_authentication is not None: + + _query_params.append(('flow_authentication', flow_authentication)) + + if flow_device_code is not None: + + _query_params.append(('flow_device_code', flow_device_code)) + + if flow_invalidation is not None: + + _query_params.append(('flow_invalidation', flow_invalidation)) + + if flow_recovery is not None: + + _query_params.append(('flow_recovery', flow_recovery)) + + if flow_unenrollment is not None: + + _query_params.append(('flow_unenrollment', flow_unenrollment)) + + if flow_user_settings is not None: + + _query_params.append(('flow_user_settings', flow_user_settings)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if web_certificate is not None: + + _query_params.append(('web_certificate', web_certificate)) + # process the header parameters # process the form parameters # process the body parameter @@ -6848,7 +7086,7 @@ def _core_brands_current_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/core/brands/current/', + resource_path='/core/brands/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6865,9 +7103,10 @@ def _core_brands_current_retrieve_serialize( @validate_call - def core_brands_destroy( + def core_brands_partial_update( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + patched_brand_request: Optional[PatchedBrandRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6880,13 +7119,15 @@ def core_brands_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_brands_destroy + ) -> Brand: + """core_brands_partial_update Brand Viewset :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str + :param patched_brand_request: + :type patched_brand_request: PatchedBrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6909,8 +7150,9 @@ def core_brands_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_destroy_serialize( + _param = self._core_brands_partial_update_serialize( brand_uuid=brand_uuid, + patched_brand_request=patched_brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6918,7 +7160,7 @@ def core_brands_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "Brand", '400': "ValidationError", '403': "GenericError", } @@ -6934,9 +7176,10 @@ def core_brands_destroy( @validate_call - def core_brands_destroy_with_http_info( + def core_brands_partial_update_with_http_info( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + patched_brand_request: Optional[PatchedBrandRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6949,13 +7192,15 @@ def core_brands_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_brands_destroy + ) -> ApiResponse[Brand]: + """core_brands_partial_update Brand Viewset :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str + :param patched_brand_request: + :type patched_brand_request: PatchedBrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6969,428 +7214,18 @@ def core_brands_destroy_with_http_info( :type _content_type: str, Optional :param _headers: set to override the headers for a single request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._core_brands_destroy_serialize( - brand_uuid=brand_uuid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def core_brands_destroy_without_preload_content( - self, - brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """core_brands_destroy - - Brand Viewset - - :param brand_uuid: A UUID string identifying this Brand. (required) - :type brand_uuid: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._core_brands_destroy_serialize( - brand_uuid=brand_uuid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _core_brands_destroy_serialize( - self, - brand_uuid, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if brand_uuid is not None: - _path_params['brand_uuid'] = brand_uuid - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/core/brands/{brand_uuid}/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def core_brands_list( - self, - brand_uuid: Optional[UUID] = None, - branding_default_flow_background: Optional[StrictStr] = None, - branding_favicon: Optional[StrictStr] = None, - branding_logo: Optional[StrictStr] = None, - branding_title: Optional[StrictStr] = None, - client_certificates: Optional[List[UUID]] = None, - default: Optional[StrictBool] = None, - domain: Optional[StrictStr] = None, - flow_authentication: Optional[UUID] = None, - flow_device_code: Optional[UUID] = None, - flow_invalidation: Optional[UUID] = None, - flow_recovery: Optional[UUID] = None, - flow_unenrollment: Optional[UUID] = None, - flow_user_settings: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - web_certificate: Optional[UUID] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedBrandList: - """core_brands_list - - Brand Viewset - - :param brand_uuid: - :type brand_uuid: str - :param branding_default_flow_background: - :type branding_default_flow_background: str - :param branding_favicon: - :type branding_favicon: str - :param branding_logo: - :type branding_logo: str - :param branding_title: - :type branding_title: str - :param client_certificates: - :type client_certificates: List[str] - :param default: - :type default: bool - :param domain: - :type domain: str - :param flow_authentication: - :type flow_authentication: str - :param flow_device_code: - :type flow_device_code: str - :param flow_invalidation: - :type flow_invalidation: str - :param flow_recovery: - :type flow_recovery: str - :param flow_unenrollment: - :type flow_unenrollment: str - :param flow_user_settings: - :type flow_user_settings: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param web_certificate: - :type web_certificate: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._core_brands_list_serialize( - brand_uuid=brand_uuid, - branding_default_flow_background=branding_default_flow_background, - branding_favicon=branding_favicon, - branding_logo=branding_logo, - branding_title=branding_title, - client_certificates=client_certificates, - default=default, - domain=domain, - flow_authentication=flow_authentication, - flow_device_code=flow_device_code, - flow_invalidation=flow_invalidation, - flow_recovery=flow_recovery, - flow_unenrollment=flow_unenrollment, - flow_user_settings=flow_user_settings, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - web_certificate=web_certificate, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedBrandList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def core_brands_list_with_http_info( - self, - brand_uuid: Optional[UUID] = None, - branding_default_flow_background: Optional[StrictStr] = None, - branding_favicon: Optional[StrictStr] = None, - branding_logo: Optional[StrictStr] = None, - branding_title: Optional[StrictStr] = None, - client_certificates: Optional[List[UUID]] = None, - default: Optional[StrictBool] = None, - domain: Optional[StrictStr] = None, - flow_authentication: Optional[UUID] = None, - flow_device_code: Optional[UUID] = None, - flow_invalidation: Optional[UUID] = None, - flow_recovery: Optional[UUID] = None, - flow_unenrollment: Optional[UUID] = None, - flow_user_settings: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - web_certificate: Optional[UUID] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedBrandList]: - """core_brands_list - - Brand Viewset - - :param brand_uuid: - :type brand_uuid: str - :param branding_default_flow_background: - :type branding_default_flow_background: str - :param branding_favicon: - :type branding_favicon: str - :param branding_logo: - :type branding_logo: str - :param branding_title: - :type branding_title: str - :param client_certificates: - :type client_certificates: List[str] - :param default: - :type default: bool - :param domain: - :type domain: str - :param flow_authentication: - :type flow_authentication: str - :param flow_device_code: - :type flow_device_code: str - :param flow_invalidation: - :type flow_invalidation: str - :param flow_recovery: - :type flow_recovery: str - :param flow_unenrollment: - :type flow_unenrollment: str - :param flow_user_settings: - :type flow_user_settings: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param web_certificate: - :type web_certificate: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._core_brands_list_serialize( - brand_uuid=brand_uuid, - branding_default_flow_background=branding_default_flow_background, - branding_favicon=branding_favicon, - branding_logo=branding_logo, - branding_title=branding_title, - client_certificates=client_certificates, - default=default, - domain=domain, - flow_authentication=flow_authentication, - flow_device_code=flow_device_code, - flow_invalidation=flow_invalidation, - flow_recovery=flow_recovery, - flow_unenrollment=flow_unenrollment, - flow_user_settings=flow_user_settings, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - web_certificate=web_certificate, + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._core_brands_partial_update_serialize( + brand_uuid=brand_uuid, + patched_brand_request=patched_brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7398,7 +7233,7 @@ def core_brands_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedBrandList", + '200': "Brand", '400': "ValidationError", '403': "GenericError", } @@ -7414,27 +7249,10 @@ def core_brands_list_with_http_info( @validate_call - def core_brands_list_without_preload_content( + def core_brands_partial_update_without_preload_content( self, - brand_uuid: Optional[UUID] = None, - branding_default_flow_background: Optional[StrictStr] = None, - branding_favicon: Optional[StrictStr] = None, - branding_logo: Optional[StrictStr] = None, - branding_title: Optional[StrictStr] = None, - client_certificates: Optional[List[UUID]] = None, - default: Optional[StrictBool] = None, - domain: Optional[StrictStr] = None, - flow_authentication: Optional[UUID] = None, - flow_device_code: Optional[UUID] = None, - flow_invalidation: Optional[UUID] = None, - flow_recovery: Optional[UUID] = None, - flow_unenrollment: Optional[UUID] = None, - flow_user_settings: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - web_certificate: Optional[UUID] = None, + brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + patched_brand_request: Optional[PatchedBrandRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7448,48 +7266,14 @@ def core_brands_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_brands_list + """core_brands_partial_update Brand Viewset - :param brand_uuid: + :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str - :param branding_default_flow_background: - :type branding_default_flow_background: str - :param branding_favicon: - :type branding_favicon: str - :param branding_logo: - :type branding_logo: str - :param branding_title: - :type branding_title: str - :param client_certificates: - :type client_certificates: List[str] - :param default: - :type default: bool - :param domain: - :type domain: str - :param flow_authentication: - :type flow_authentication: str - :param flow_device_code: - :type flow_device_code: str - :param flow_invalidation: - :type flow_invalidation: str - :param flow_recovery: - :type flow_recovery: str - :param flow_unenrollment: - :type flow_unenrollment: str - :param flow_user_settings: - :type flow_user_settings: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param web_certificate: - :type web_certificate: str + :param patched_brand_request: + :type patched_brand_request: PatchedBrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7512,26 +7296,9 @@ def core_brands_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_list_serialize( + _param = self._core_brands_partial_update_serialize( brand_uuid=brand_uuid, - branding_default_flow_background=branding_default_flow_background, - branding_favicon=branding_favicon, - branding_logo=branding_logo, - branding_title=branding_title, - client_certificates=client_certificates, - default=default, - domain=domain, - flow_authentication=flow_authentication, - flow_device_code=flow_device_code, - flow_invalidation=flow_invalidation, - flow_recovery=flow_recovery, - flow_unenrollment=flow_unenrollment, - flow_user_settings=flow_user_settings, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - web_certificate=web_certificate, + patched_brand_request=patched_brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7539,7 +7306,7 @@ def core_brands_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedBrandList", + '200': "Brand", '400': "ValidationError", '403': "GenericError", } @@ -7550,27 +7317,10 @@ def core_brands_list_without_preload_content( return response_data.response - def _core_brands_list_serialize( + def _core_brands_partial_update_serialize( self, brand_uuid, - branding_default_flow_background, - branding_favicon, - branding_logo, - branding_title, - client_certificates, - default, - domain, - flow_authentication, - flow_device_code, - flow_invalidation, - flow_recovery, - flow_unenrollment, - flow_user_settings, - ordering, - page, - page_size, - search, - web_certificate, + patched_brand_request, _request_auth, _content_type, _headers, @@ -7580,7 +7330,6 @@ def _core_brands_list_serialize( _host = None _collection_formats: Dict[str, str] = { - 'client_certificates': 'multi', } _path_params: Dict[str, str] = {} @@ -7593,86 +7342,14 @@ def _core_brands_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if brand_uuid is not None: - - _query_params.append(('brand_uuid', brand_uuid)) - - if branding_default_flow_background is not None: - - _query_params.append(('branding_default_flow_background', branding_default_flow_background)) - - if branding_favicon is not None: - - _query_params.append(('branding_favicon', branding_favicon)) - - if branding_logo is not None: - - _query_params.append(('branding_logo', branding_logo)) - - if branding_title is not None: - - _query_params.append(('branding_title', branding_title)) - - if client_certificates is not None: - - _query_params.append(('client_certificates', client_certificates)) - - if default is not None: - - _query_params.append(('default', default)) - - if domain is not None: - - _query_params.append(('domain', domain)) - - if flow_authentication is not None: - - _query_params.append(('flow_authentication', flow_authentication)) - - if flow_device_code is not None: - - _query_params.append(('flow_device_code', flow_device_code)) - - if flow_invalidation is not None: - - _query_params.append(('flow_invalidation', flow_invalidation)) - - if flow_recovery is not None: - - _query_params.append(('flow_recovery', flow_recovery)) - - if flow_unenrollment is not None: - - _query_params.append(('flow_unenrollment', flow_unenrollment)) - - if flow_user_settings is not None: - - _query_params.append(('flow_user_settings', flow_user_settings)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if web_certificate is not None: - - _query_params.append(('web_certificate', web_certificate)) - + _path_params['brand_uuid'] = brand_uuid + # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if patched_brand_request is not None: + _body_params = patched_brand_request # set the HTTP header `Accept` @@ -7683,6 +7360,19 @@ def _core_brands_list_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7690,8 +7380,8 @@ def _core_brands_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/brands/', + method='PATCH', + resource_path='/core/brands/{brand_uuid}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7708,10 +7398,9 @@ def _core_brands_list_serialize( @validate_call - def core_brands_partial_update( + def core_brands_retrieve( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], - patched_brand_request: Optional[PatchedBrandRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7725,14 +7414,12 @@ def core_brands_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Brand: - """core_brands_partial_update + """core_brands_retrieve Brand Viewset :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str - :param patched_brand_request: - :type patched_brand_request: PatchedBrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7755,9 +7442,8 @@ def core_brands_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_partial_update_serialize( + _param = self._core_brands_retrieve_serialize( brand_uuid=brand_uuid, - patched_brand_request=patched_brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7781,10 +7467,9 @@ def core_brands_partial_update( @validate_call - def core_brands_partial_update_with_http_info( + def core_brands_retrieve_with_http_info( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], - patched_brand_request: Optional[PatchedBrandRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7798,14 +7483,12 @@ def core_brands_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Brand]: - """core_brands_partial_update + """core_brands_retrieve Brand Viewset :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str - :param patched_brand_request: - :type patched_brand_request: PatchedBrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7828,9 +7511,8 @@ def core_brands_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_partial_update_serialize( + _param = self._core_brands_retrieve_serialize( brand_uuid=brand_uuid, - patched_brand_request=patched_brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7854,10 +7536,9 @@ def core_brands_partial_update_with_http_info( @validate_call - def core_brands_partial_update_without_preload_content( + def core_brands_retrieve_without_preload_content( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], - patched_brand_request: Optional[PatchedBrandRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7871,14 +7552,12 @@ def core_brands_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_brands_partial_update + """core_brands_retrieve Brand Viewset :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str - :param patched_brand_request: - :type patched_brand_request: PatchedBrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7901,9 +7580,8 @@ def core_brands_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_partial_update_serialize( + _param = self._core_brands_retrieve_serialize( brand_uuid=brand_uuid, - patched_brand_request=patched_brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7922,10 +7600,9 @@ def core_brands_partial_update_without_preload_content( return response_data.response - def _core_brands_partial_update_serialize( + def _core_brands_retrieve_serialize( self, brand_uuid, - patched_brand_request, _request_auth, _content_type, _headers, @@ -7953,8 +7630,6 @@ def _core_brands_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_brand_request is not None: - _body_params = patched_brand_request # set the HTTP header `Accept` @@ -7965,19 +7640,6 @@ def _core_brands_partial_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7985,7 +7647,7 @@ def _core_brands_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='GET', resource_path='/core/brands/{brand_uuid}/', path_params=_path_params, query_params=_query_params, @@ -8003,9 +7665,10 @@ def _core_brands_partial_update_serialize( @validate_call - def core_brands_retrieve( + def core_brands_update( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8019,12 +7682,14 @@ def core_brands_retrieve( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Brand: - """core_brands_retrieve + """core_brands_update Brand Viewset :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str + :param brand_request: (required) + :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8047,8 +7712,9 @@ def core_brands_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_retrieve_serialize( + _param = self._core_brands_update_serialize( brand_uuid=brand_uuid, + brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8072,9 +7738,10 @@ def core_brands_retrieve( @validate_call - def core_brands_retrieve_with_http_info( + def core_brands_update_with_http_info( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8088,12 +7755,14 @@ def core_brands_retrieve_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Brand]: - """core_brands_retrieve + """core_brands_update Brand Viewset :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str + :param brand_request: (required) + :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8116,8 +7785,9 @@ def core_brands_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_retrieve_serialize( + _param = self._core_brands_update_serialize( brand_uuid=brand_uuid, + brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8141,9 +7811,10 @@ def core_brands_retrieve_with_http_info( @validate_call - def core_brands_retrieve_without_preload_content( + def core_brands_update_without_preload_content( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8157,12 +7828,14 @@ def core_brands_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_brands_retrieve + """core_brands_update Brand Viewset :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str + :param brand_request: (required) + :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8185,8 +7858,9 @@ def core_brands_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_retrieve_serialize( + _param = self._core_brands_update_serialize( brand_uuid=brand_uuid, + brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8205,9 +7879,10 @@ def core_brands_retrieve_without_preload_content( return response_data.response - def _core_brands_retrieve_serialize( + def _core_brands_update_serialize( self, brand_uuid, + brand_request, _request_auth, _content_type, _headers, @@ -8235,6 +7910,8 @@ def _core_brands_retrieve_serialize( # process the header parameters # process the form parameters # process the body parameter + if brand_request is not None: + _body_params = brand_request # set the HTTP header `Accept` @@ -8245,6 +7922,19 @@ def _core_brands_retrieve_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8252,7 +7942,7 @@ def _core_brands_retrieve_serialize( ] return self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/core/brands/{brand_uuid}/', path_params=_path_params, query_params=_query_params, @@ -8270,10 +7960,9 @@ def _core_brands_retrieve_serialize( @validate_call - def core_brands_update( + def core_brands_used_by_list( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], - brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8286,15 +7975,13 @@ def core_brands_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Brand: - """core_brands_update + ) -> List[UsedBy]: + """core_brands_used_by_list - Brand Viewset + Get a list of all objects that use this object :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str - :param brand_request: (required) - :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8317,9 +8004,8 @@ def core_brands_update( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_update_serialize( + _param = self._core_brands_used_by_list_serialize( brand_uuid=brand_uuid, - brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8327,7 +8013,7 @@ def core_brands_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Brand", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -8343,10 +8029,9 @@ def core_brands_update( @validate_call - def core_brands_update_with_http_info( + def core_brands_used_by_list_with_http_info( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], - brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8359,15 +8044,13 @@ def core_brands_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Brand]: - """core_brands_update + ) -> ApiResponse[List[UsedBy]]: + """core_brands_used_by_list - Brand Viewset + Get a list of all objects that use this object :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str - :param brand_request: (required) - :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8390,9 +8073,8 @@ def core_brands_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_update_serialize( + _param = self._core_brands_used_by_list_serialize( brand_uuid=brand_uuid, - brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8400,7 +8082,7 @@ def core_brands_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Brand", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -8416,10 +8098,9 @@ def core_brands_update_with_http_info( @validate_call - def core_brands_update_without_preload_content( + def core_brands_used_by_list_without_preload_content( self, brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], - brand_request: BrandRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8433,14 +8114,12 @@ def core_brands_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_brands_update + """core_brands_used_by_list - Brand Viewset + Get a list of all objects that use this object :param brand_uuid: A UUID string identifying this Brand. (required) :type brand_uuid: str - :param brand_request: (required) - :type brand_request: BrandRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8463,9 +8142,8 @@ def core_brands_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_update_serialize( + _param = self._core_brands_used_by_list_serialize( brand_uuid=brand_uuid, - brand_request=brand_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8473,7 +8151,7 @@ def core_brands_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Brand", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -8484,10 +8162,9 @@ def core_brands_update_without_preload_content( return response_data.response - def _core_brands_update_serialize( + def _core_brands_used_by_list_serialize( self, brand_uuid, - brand_request, _request_auth, _content_type, _headers, @@ -8515,8 +8192,6 @@ def _core_brands_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if brand_request is not None: - _body_params = brand_request # set the HTTP header `Accept` @@ -8527,19 +8202,6 @@ def _core_brands_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8547,8 +8209,8 @@ def _core_brands_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/core/brands/{brand_uuid}/', + method='GET', + resource_path='/core/brands/{brand_uuid}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8565,9 +8227,10 @@ def _core_brands_update_serialize( @validate_call - def core_brands_used_by_list( + def core_groups_add_user_create( self, - brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + user_account_request: UserAccountRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8580,13 +8243,15 @@ def core_brands_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """core_brands_used_by_list + ) -> None: + """core_groups_add_user_create - Get a list of all objects that use this object + Add user to group - :param brand_uuid: A UUID string identifying this Brand. (required) - :type brand_uuid: str + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str + :param user_account_request: (required) + :type user_account_request: UserAccountRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8609,8 +8274,9 @@ def core_brands_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_used_by_list_serialize( - brand_uuid=brand_uuid, + _param = self._core_groups_add_user_create_serialize( + group_uuid=group_uuid, + user_account_request=user_account_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8618,7 +8284,8 @@ def core_brands_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -8634,9 +8301,10 @@ def core_brands_used_by_list( @validate_call - def core_brands_used_by_list_with_http_info( + def core_groups_add_user_create_with_http_info( self, - brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + user_account_request: UserAccountRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8649,13 +8317,15 @@ def core_brands_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """core_brands_used_by_list + ) -> ApiResponse[None]: + """core_groups_add_user_create - Get a list of all objects that use this object + Add user to group - :param brand_uuid: A UUID string identifying this Brand. (required) - :type brand_uuid: str + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str + :param user_account_request: (required) + :type user_account_request: UserAccountRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8678,8 +8348,9 @@ def core_brands_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_used_by_list_serialize( - brand_uuid=brand_uuid, + _param = self._core_groups_add_user_create_serialize( + group_uuid=group_uuid, + user_account_request=user_account_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8687,7 +8358,8 @@ def core_brands_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -8703,9 +8375,10 @@ def core_brands_used_by_list_with_http_info( @validate_call - def core_brands_used_by_list_without_preload_content( + def core_groups_add_user_create_without_preload_content( self, - brand_uuid: Annotated[UUID, Field(description="A UUID string identifying this Brand.")], + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + user_account_request: UserAccountRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8719,12 +8392,14 @@ def core_brands_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_brands_used_by_list + """core_groups_add_user_create - Get a list of all objects that use this object + Add user to group - :param brand_uuid: A UUID string identifying this Brand. (required) - :type brand_uuid: str + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str + :param user_account_request: (required) + :type user_account_request: UserAccountRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8747,8 +8422,9 @@ def core_brands_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_brands_used_by_list_serialize( - brand_uuid=brand_uuid, + _param = self._core_groups_add_user_create_serialize( + group_uuid=group_uuid, + user_account_request=user_account_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8756,7 +8432,8 @@ def core_brands_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -8767,9 +8444,10 @@ def core_brands_used_by_list_without_preload_content( return response_data.response - def _core_brands_used_by_list_serialize( + def _core_groups_add_user_create_serialize( self, - brand_uuid, + group_uuid, + user_account_request, _request_auth, _content_type, _headers, @@ -8791,12 +8469,14 @@ def _core_brands_used_by_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - if brand_uuid is not None: - _path_params['brand_uuid'] = brand_uuid + if group_uuid is not None: + _path_params['group_uuid'] = group_uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if user_account_request is not None: + _body_params = user_account_request # set the HTTP header `Accept` @@ -8807,6 +8487,19 @@ def _core_brands_used_by_list_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8814,8 +8507,8 @@ def _core_brands_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/brands/{brand_uuid}/used_by/', + method='POST', + resource_path='/core/groups/{group_uuid}/add_user/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8832,10 +8525,9 @@ def _core_brands_used_by_list_serialize( @validate_call - def core_groups_add_user_create( + def core_groups_create( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - user_account_request: UserAccountRequest, + group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8848,15 +8540,13 @@ def core_groups_add_user_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_groups_add_user_create + ) -> Group: + """core_groups_create - Add user to group + Group Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str - :param user_account_request: (required) - :type user_account_request: UserAccountRequest + :param group_request: (required) + :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8877,11 +8567,10 @@ def core_groups_add_user_create( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 - - _param = self._core_groups_add_user_create_serialize( - group_uuid=group_uuid, - user_account_request=user_account_request, + """ # noqa: E501 + + _param = self._core_groups_create_serialize( + group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8889,8 +8578,7 @@ def core_groups_add_user_create( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': None, + '201': "Group", '400': "ValidationError", '403': "GenericError", } @@ -8906,10 +8594,9 @@ def core_groups_add_user_create( @validate_call - def core_groups_add_user_create_with_http_info( + def core_groups_create_with_http_info( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - user_account_request: UserAccountRequest, + group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8922,15 +8609,13 @@ def core_groups_add_user_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_groups_add_user_create + ) -> ApiResponse[Group]: + """core_groups_create - Add user to group + Group Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str - :param user_account_request: (required) - :type user_account_request: UserAccountRequest + :param group_request: (required) + :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8953,9 +8638,8 @@ def core_groups_add_user_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_add_user_create_serialize( - group_uuid=group_uuid, - user_account_request=user_account_request, + _param = self._core_groups_create_serialize( + group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8963,8 +8647,7 @@ def core_groups_add_user_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': None, + '201': "Group", '400': "ValidationError", '403': "GenericError", } @@ -8980,10 +8663,9 @@ def core_groups_add_user_create_with_http_info( @validate_call - def core_groups_add_user_create_without_preload_content( + def core_groups_create_without_preload_content( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - user_account_request: UserAccountRequest, + group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8997,14 +8679,12 @@ def core_groups_add_user_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_add_user_create + """core_groups_create - Add user to group + Group Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str - :param user_account_request: (required) - :type user_account_request: UserAccountRequest + :param group_request: (required) + :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9027,9 +8707,8 @@ def core_groups_add_user_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_add_user_create_serialize( - group_uuid=group_uuid, - user_account_request=user_account_request, + _param = self._core_groups_create_serialize( + group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9037,8 +8716,7 @@ def core_groups_add_user_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': None, + '201': "Group", '400': "ValidationError", '403': "GenericError", } @@ -9049,10 +8727,9 @@ def core_groups_add_user_create_without_preload_content( return response_data.response - def _core_groups_add_user_create_serialize( + def _core_groups_create_serialize( self, - group_uuid, - user_account_request, + group_request, _request_auth, _content_type, _headers, @@ -9074,14 +8751,12 @@ def _core_groups_add_user_create_serialize( _body_params: Optional[bytes] = None # process the path parameters - if group_uuid is not None: - _path_params['group_uuid'] = group_uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if user_account_request is not None: - _body_params = user_account_request + if group_request is not None: + _body_params = group_request # set the HTTP header `Accept` @@ -9113,7 +8788,7 @@ def _core_groups_add_user_create_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/core/groups/{group_uuid}/add_user/', + resource_path='/core/groups/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9130,9 +8805,9 @@ def _core_groups_add_user_create_serialize( @validate_call - def core_groups_create( + def core_groups_destroy( self, - group_request: GroupRequest, + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9145,13 +8820,13 @@ def core_groups_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Group: - """core_groups_create + ) -> None: + """core_groups_destroy Group Viewset - :param group_request: (required) - :type group_request: GroupRequest + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9174,8 +8849,8 @@ def core_groups_create( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_create_serialize( - group_request=group_request, + _param = self._core_groups_destroy_serialize( + group_uuid=group_uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9183,7 +8858,7 @@ def core_groups_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Group", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -9199,9 +8874,9 @@ def core_groups_create( @validate_call - def core_groups_create_with_http_info( + def core_groups_destroy_with_http_info( self, - group_request: GroupRequest, + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9214,13 +8889,13 @@ def core_groups_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Group]: - """core_groups_create + ) -> ApiResponse[None]: + """core_groups_destroy Group Viewset - :param group_request: (required) - :type group_request: GroupRequest + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9243,8 +8918,8 @@ def core_groups_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_create_serialize( - group_request=group_request, + _param = self._core_groups_destroy_serialize( + group_uuid=group_uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9252,7 +8927,7 @@ def core_groups_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Group", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -9268,9 +8943,9 @@ def core_groups_create_with_http_info( @validate_call - def core_groups_create_without_preload_content( + def core_groups_destroy_without_preload_content( self, - group_request: GroupRequest, + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9284,12 +8959,12 @@ def core_groups_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_create + """core_groups_destroy Group Viewset - :param group_request: (required) - :type group_request: GroupRequest + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9312,8 +8987,8 @@ def core_groups_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_create_serialize( - group_request=group_request, + _param = self._core_groups_destroy_serialize( + group_uuid=group_uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9321,7 +8996,7 @@ def core_groups_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Group", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -9332,9 +9007,9 @@ def core_groups_create_without_preload_content( return response_data.response - def _core_groups_create_serialize( + def _core_groups_destroy_serialize( self, - group_request, + group_uuid, _request_auth, _content_type, _headers, @@ -9356,12 +9031,12 @@ def _core_groups_create_serialize( _body_params: Optional[bytes] = None # process the path parameters + if group_uuid is not None: + _path_params['group_uuid'] = group_uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if group_request is not None: - _body_params = group_request # set the HTTP header `Accept` @@ -9372,19 +9047,6 @@ def _core_groups_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -9392,8 +9054,8 @@ def _core_groups_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/core/groups/', + method='DELETE', + resource_path='/core/groups/{group_uuid}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9410,9 +9072,21 @@ def _core_groups_create_serialize( @validate_call - def core_groups_destroy( + def core_groups_list( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, + include_children: Optional[StrictBool] = None, + include_inherited_roles: Optional[StrictBool] = None, + include_parents: Optional[StrictBool] = None, + include_users: Optional[StrictBool] = None, + is_superuser: Optional[StrictBool] = None, + members_by_pk: Optional[List[StrictInt]] = None, + members_by_username: Annotated[Optional[List[StrictStr]], Field(description="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.")] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9425,13 +9099,37 @@ def core_groups_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_groups_destroy + ) -> PaginatedGroupList: + """core_groups_list Group Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str + :param attributes: Attributes + :type attributes: str + :param include_children: + :type include_children: bool + :param include_inherited_roles: + :type include_inherited_roles: bool + :param include_parents: + :type include_parents: bool + :param include_users: + :type include_users: bool + :param is_superuser: + :type is_superuser: bool + :param members_by_pk: + :type members_by_pk: List[int] + :param members_by_username: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + :type members_by_username: List[str] + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9454,8 +9152,20 @@ def core_groups_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_destroy_serialize( - group_uuid=group_uuid, + _param = self._core_groups_list_serialize( + attributes=attributes, + include_children=include_children, + include_inherited_roles=include_inherited_roles, + include_parents=include_parents, + include_users=include_users, + is_superuser=is_superuser, + members_by_pk=members_by_pk, + members_by_username=members_by_username, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9463,7 +9173,7 @@ def core_groups_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedGroupList", '400': "ValidationError", '403': "GenericError", } @@ -9479,9 +9189,21 @@ def core_groups_destroy( @validate_call - def core_groups_destroy_with_http_info( + def core_groups_list_with_http_info( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, + include_children: Optional[StrictBool] = None, + include_inherited_roles: Optional[StrictBool] = None, + include_parents: Optional[StrictBool] = None, + include_users: Optional[StrictBool] = None, + is_superuser: Optional[StrictBool] = None, + members_by_pk: Optional[List[StrictInt]] = None, + members_by_username: Annotated[Optional[List[StrictStr]], Field(description="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.")] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9494,13 +9216,37 @@ def core_groups_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_groups_destroy + ) -> ApiResponse[PaginatedGroupList]: + """core_groups_list Group Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str + :param attributes: Attributes + :type attributes: str + :param include_children: + :type include_children: bool + :param include_inherited_roles: + :type include_inherited_roles: bool + :param include_parents: + :type include_parents: bool + :param include_users: + :type include_users: bool + :param is_superuser: + :type is_superuser: bool + :param members_by_pk: + :type members_by_pk: List[int] + :param members_by_username: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + :type members_by_username: List[str] + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9523,8 +9269,20 @@ def core_groups_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_destroy_serialize( - group_uuid=group_uuid, + _param = self._core_groups_list_serialize( + attributes=attributes, + include_children=include_children, + include_inherited_roles=include_inherited_roles, + include_parents=include_parents, + include_users=include_users, + is_superuser=is_superuser, + members_by_pk=members_by_pk, + members_by_username=members_by_username, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9532,7 +9290,7 @@ def core_groups_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedGroupList", '400': "ValidationError", '403': "GenericError", } @@ -9548,9 +9306,21 @@ def core_groups_destroy_with_http_info( @validate_call - def core_groups_destroy_without_preload_content( + def core_groups_list_without_preload_content( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, + include_children: Optional[StrictBool] = None, + include_inherited_roles: Optional[StrictBool] = None, + include_parents: Optional[StrictBool] = None, + include_users: Optional[StrictBool] = None, + is_superuser: Optional[StrictBool] = None, + members_by_pk: Optional[List[StrictInt]] = None, + members_by_username: Annotated[Optional[List[StrictStr]], Field(description="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.")] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9564,12 +9334,36 @@ def core_groups_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_destroy + """core_groups_list Group Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str + :param attributes: Attributes + :type attributes: str + :param include_children: + :type include_children: bool + :param include_inherited_roles: + :type include_inherited_roles: bool + :param include_parents: + :type include_parents: bool + :param include_users: + :type include_users: bool + :param is_superuser: + :type is_superuser: bool + :param members_by_pk: + :type members_by_pk: List[int] + :param members_by_username: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + :type members_by_username: List[str] + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9592,8 +9386,20 @@ def core_groups_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_destroy_serialize( - group_uuid=group_uuid, + _param = self._core_groups_list_serialize( + attributes=attributes, + include_children=include_children, + include_inherited_roles=include_inherited_roles, + include_parents=include_parents, + include_users=include_users, + is_superuser=is_superuser, + members_by_pk=members_by_pk, + members_by_username=members_by_username, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9601,7 +9407,7 @@ def core_groups_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedGroupList", '400': "ValidationError", '403': "GenericError", } @@ -9612,9 +9418,21 @@ def core_groups_destroy_without_preload_content( return response_data.response - def _core_groups_destroy_serialize( + def _core_groups_list_serialize( self, - group_uuid, + attributes, + include_children, + include_inherited_roles, + include_parents, + include_users, + is_superuser, + members_by_pk, + members_by_username, + name, + ordering, + page, + page_size, + search, _request_auth, _content_type, _headers, @@ -9624,6 +9442,8 @@ def _core_groups_destroy_serialize( _host = None _collection_formats: Dict[str, str] = { + 'members_by_pk': 'multi', + 'members_by_username': 'multi', } _path_params: Dict[str, str] = {} @@ -9636,9 +9456,59 @@ def _core_groups_destroy_serialize( _body_params: Optional[bytes] = None # process the path parameters - if group_uuid is not None: - _path_params['group_uuid'] = group_uuid # process the query parameters + if attributes is not None: + + _query_params.append(('attributes', attributes)) + + if include_children is not None: + + _query_params.append(('include_children', include_children)) + + if include_inherited_roles is not None: + + _query_params.append(('include_inherited_roles', include_inherited_roles)) + + if include_parents is not None: + + _query_params.append(('include_parents', include_parents)) + + if include_users is not None: + + _query_params.append(('include_users', include_users)) + + if is_superuser is not None: + + _query_params.append(('is_superuser', is_superuser)) + + if members_by_pk is not None: + + _query_params.append(('members_by_pk', members_by_pk)) + + if members_by_username is not None: + + _query_params.append(('members_by_username', members_by_username)) + + if name is not None: + + _query_params.append(('name', name)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + # process the header parameters # process the form parameters # process the body parameter @@ -9659,8 +9529,8 @@ def _core_groups_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/core/groups/{group_uuid}/', + method='GET', + resource_path='/core/groups/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9677,19 +9547,10 @@ def _core_groups_destroy_serialize( @validate_call - def core_groups_list( + def core_groups_partial_update( self, - attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, - include_children: Optional[StrictBool] = None, - include_users: Optional[StrictBool] = None, - is_superuser: Optional[StrictBool] = None, - members_by_pk: Optional[List[StrictInt]] = None, - members_by_username: Annotated[Optional[List[StrictStr]], Field(description="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.")] = None, - name: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + patched_group_request: Optional[PatchedGroupRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9702,33 +9563,15 @@ def core_groups_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedGroupList: - """core_groups_list + ) -> Group: + """core_groups_partial_update Group Viewset - :param attributes: Attributes - :type attributes: str - :param include_children: - :type include_children: bool - :param include_users: - :type include_users: bool - :param is_superuser: - :type is_superuser: bool - :param members_by_pk: - :type members_by_pk: List[int] - :param members_by_username: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - :type members_by_username: List[str] - :param name: - :type name: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str + :param patched_group_request: + :type patched_group_request: PatchedGroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9751,18 +9594,9 @@ def core_groups_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_list_serialize( - attributes=attributes, - include_children=include_children, - include_users=include_users, - is_superuser=is_superuser, - members_by_pk=members_by_pk, - members_by_username=members_by_username, - name=name, - ordering=ordering, - page=page, - page_size=page_size, - search=search, + _param = self._core_groups_partial_update_serialize( + group_uuid=group_uuid, + patched_group_request=patched_group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9770,7 +9604,7 @@ def core_groups_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupList", + '200': "Group", '400': "ValidationError", '403': "GenericError", } @@ -9786,19 +9620,10 @@ def core_groups_list( @validate_call - def core_groups_list_with_http_info( + def core_groups_partial_update_with_http_info( self, - attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, - include_children: Optional[StrictBool] = None, - include_users: Optional[StrictBool] = None, - is_superuser: Optional[StrictBool] = None, - members_by_pk: Optional[List[StrictInt]] = None, - members_by_username: Annotated[Optional[List[StrictStr]], Field(description="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.")] = None, - name: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + patched_group_request: Optional[PatchedGroupRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9811,33 +9636,15 @@ def core_groups_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedGroupList]: - """core_groups_list + ) -> ApiResponse[Group]: + """core_groups_partial_update Group Viewset - :param attributes: Attributes - :type attributes: str - :param include_children: - :type include_children: bool - :param include_users: - :type include_users: bool - :param is_superuser: - :type is_superuser: bool - :param members_by_pk: - :type members_by_pk: List[int] - :param members_by_username: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - :type members_by_username: List[str] - :param name: - :type name: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str + :param patched_group_request: + :type patched_group_request: PatchedGroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9860,18 +9667,9 @@ def core_groups_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_list_serialize( - attributes=attributes, - include_children=include_children, - include_users=include_users, - is_superuser=is_superuser, - members_by_pk=members_by_pk, - members_by_username=members_by_username, - name=name, - ordering=ordering, - page=page, - page_size=page_size, - search=search, + _param = self._core_groups_partial_update_serialize( + group_uuid=group_uuid, + patched_group_request=patched_group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9879,7 +9677,7 @@ def core_groups_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupList", + '200': "Group", '400': "ValidationError", '403': "GenericError", } @@ -9895,19 +9693,10 @@ def core_groups_list_with_http_info( @validate_call - def core_groups_list_without_preload_content( + def core_groups_partial_update_without_preload_content( self, - attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, - include_children: Optional[StrictBool] = None, - include_users: Optional[StrictBool] = None, - is_superuser: Optional[StrictBool] = None, - members_by_pk: Optional[List[StrictInt]] = None, - members_by_username: Annotated[Optional[List[StrictStr]], Field(description="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.")] = None, - name: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + patched_group_request: Optional[PatchedGroupRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9921,32 +9710,14 @@ def core_groups_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_list + """core_groups_partial_update Group Viewset - :param attributes: Attributes - :type attributes: str - :param include_children: - :type include_children: bool - :param include_users: - :type include_users: bool - :param is_superuser: - :type is_superuser: bool - :param members_by_pk: - :type members_by_pk: List[int] - :param members_by_username: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - :type members_by_username: List[str] - :param name: - :type name: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str + :param group_uuid: A UUID string identifying this Group. (required) + :type group_uuid: str + :param patched_group_request: + :type patched_group_request: PatchedGroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9969,18 +9740,9 @@ def core_groups_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_list_serialize( - attributes=attributes, - include_children=include_children, - include_users=include_users, - is_superuser=is_superuser, - members_by_pk=members_by_pk, - members_by_username=members_by_username, - name=name, - ordering=ordering, - page=page, - page_size=page_size, - search=search, + _param = self._core_groups_partial_update_serialize( + group_uuid=group_uuid, + patched_group_request=patched_group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9988,7 +9750,7 @@ def core_groups_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupList", + '200': "Group", '400': "ValidationError", '403': "GenericError", } @@ -9999,19 +9761,10 @@ def core_groups_list_without_preload_content( return response_data.response - def _core_groups_list_serialize( + def _core_groups_partial_update_serialize( self, - attributes, - include_children, - include_users, - is_superuser, - members_by_pk, - members_by_username, - name, - ordering, - page, - page_size, - search, + group_uuid, + patched_group_request, _request_auth, _content_type, _headers, @@ -10021,8 +9774,6 @@ def _core_groups_list_serialize( _host = None _collection_formats: Dict[str, str] = { - 'members_by_pk': 'multi', - 'members_by_username': 'multi', } _path_params: Dict[str, str] = {} @@ -10035,54 +9786,14 @@ def _core_groups_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if group_uuid is not None: + _path_params['group_uuid'] = group_uuid # process the query parameters - if attributes is not None: - - _query_params.append(('attributes', attributes)) - - if include_children is not None: - - _query_params.append(('include_children', include_children)) - - if include_users is not None: - - _query_params.append(('include_users', include_users)) - - if is_superuser is not None: - - _query_params.append(('is_superuser', is_superuser)) - - if members_by_pk is not None: - - _query_params.append(('members_by_pk', members_by_pk)) - - if members_by_username is not None: - - _query_params.append(('members_by_username', members_by_username)) - - if name is not None: - - _query_params.append(('name', name)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - # process the header parameters # process the form parameters # process the body parameter + if patched_group_request is not None: + _body_params = patched_group_request # set the HTTP header `Accept` @@ -10093,6 +9804,19 @@ def _core_groups_list_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10100,8 +9824,8 @@ def _core_groups_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/groups/', + method='PATCH', + resource_path='/core/groups/{group_uuid}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10118,10 +9842,10 @@ def _core_groups_list_serialize( @validate_call - def core_groups_partial_update( + def core_groups_remove_user_create( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - patched_group_request: Optional[PatchedGroupRequest] = None, + user_account_request: UserAccountRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10134,15 +9858,15 @@ def core_groups_partial_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Group: - """core_groups_partial_update + ) -> None: + """core_groups_remove_user_create - Group Viewset + Remove user from group :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param patched_group_request: - :type patched_group_request: PatchedGroupRequest + :param user_account_request: (required) + :type user_account_request: UserAccountRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10165,9 +9889,9 @@ def core_groups_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_partial_update_serialize( + _param = self._core_groups_remove_user_create_serialize( group_uuid=group_uuid, - patched_group_request=patched_group_request, + user_account_request=user_account_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10175,7 +9899,8 @@ def core_groups_partial_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Group", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -10191,10 +9916,10 @@ def core_groups_partial_update( @validate_call - def core_groups_partial_update_with_http_info( + def core_groups_remove_user_create_with_http_info( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - patched_group_request: Optional[PatchedGroupRequest] = None, + user_account_request: UserAccountRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10207,15 +9932,15 @@ def core_groups_partial_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Group]: - """core_groups_partial_update + ) -> ApiResponse[None]: + """core_groups_remove_user_create - Group Viewset + Remove user from group :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param patched_group_request: - :type patched_group_request: PatchedGroupRequest + :param user_account_request: (required) + :type user_account_request: UserAccountRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10238,9 +9963,9 @@ def core_groups_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_partial_update_serialize( + _param = self._core_groups_remove_user_create_serialize( group_uuid=group_uuid, - patched_group_request=patched_group_request, + user_account_request=user_account_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10248,7 +9973,8 @@ def core_groups_partial_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Group", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -10264,10 +9990,10 @@ def core_groups_partial_update_with_http_info( @validate_call - def core_groups_partial_update_without_preload_content( + def core_groups_remove_user_create_without_preload_content( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - patched_group_request: Optional[PatchedGroupRequest] = None, + user_account_request: UserAccountRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10281,14 +10007,14 @@ def core_groups_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_partial_update + """core_groups_remove_user_create - Group Viewset + Remove user from group :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param patched_group_request: - :type patched_group_request: PatchedGroupRequest + :param user_account_request: (required) + :type user_account_request: UserAccountRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10311,9 +10037,9 @@ def core_groups_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_partial_update_serialize( + _param = self._core_groups_remove_user_create_serialize( group_uuid=group_uuid, - patched_group_request=patched_group_request, + user_account_request=user_account_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10321,7 +10047,8 @@ def core_groups_partial_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Group", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -10332,10 +10059,10 @@ def core_groups_partial_update_without_preload_content( return response_data.response - def _core_groups_partial_update_serialize( + def _core_groups_remove_user_create_serialize( self, group_uuid, - patched_group_request, + user_account_request, _request_auth, _content_type, _headers, @@ -10363,8 +10090,8 @@ def _core_groups_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_group_request is not None: - _body_params = patched_group_request + if user_account_request is not None: + _body_params = user_account_request # set the HTTP header `Accept` @@ -10395,8 +10122,8 @@ def _core_groups_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/core/groups/{group_uuid}/', + method='POST', + resource_path='/core/groups/{group_uuid}/remove_user/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10413,10 +10140,13 @@ def _core_groups_partial_update_serialize( @validate_call - def core_groups_remove_user_create( + def core_groups_retrieve( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - user_account_request: UserAccountRequest, + include_children: Optional[StrictBool] = None, + include_inherited_roles: Optional[StrictBool] = None, + include_parents: Optional[StrictBool] = None, + include_users: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10429,15 +10159,21 @@ def core_groups_remove_user_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_groups_remove_user_create + ) -> Group: + """core_groups_retrieve - Remove user from group + Group Viewset :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param user_account_request: (required) - :type user_account_request: UserAccountRequest + :param include_children: + :type include_children: bool + :param include_inherited_roles: + :type include_inherited_roles: bool + :param include_parents: + :type include_parents: bool + :param include_users: + :type include_users: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10460,9 +10196,12 @@ def core_groups_remove_user_create( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_remove_user_create_serialize( + _param = self._core_groups_retrieve_serialize( group_uuid=group_uuid, - user_account_request=user_account_request, + include_children=include_children, + include_inherited_roles=include_inherited_roles, + include_parents=include_parents, + include_users=include_users, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10470,8 +10209,7 @@ def core_groups_remove_user_create( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': None, + '200': "Group", '400': "ValidationError", '403': "GenericError", } @@ -10487,10 +10225,13 @@ def core_groups_remove_user_create( @validate_call - def core_groups_remove_user_create_with_http_info( + def core_groups_retrieve_with_http_info( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - user_account_request: UserAccountRequest, + include_children: Optional[StrictBool] = None, + include_inherited_roles: Optional[StrictBool] = None, + include_parents: Optional[StrictBool] = None, + include_users: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10503,15 +10244,21 @@ def core_groups_remove_user_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_groups_remove_user_create + ) -> ApiResponse[Group]: + """core_groups_retrieve - Remove user from group + Group Viewset :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param user_account_request: (required) - :type user_account_request: UserAccountRequest + :param include_children: + :type include_children: bool + :param include_inherited_roles: + :type include_inherited_roles: bool + :param include_parents: + :type include_parents: bool + :param include_users: + :type include_users: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10534,9 +10281,12 @@ def core_groups_remove_user_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_remove_user_create_serialize( + _param = self._core_groups_retrieve_serialize( group_uuid=group_uuid, - user_account_request=user_account_request, + include_children=include_children, + include_inherited_roles=include_inherited_roles, + include_parents=include_parents, + include_users=include_users, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10544,8 +10294,7 @@ def core_groups_remove_user_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': None, + '200': "Group", '400': "ValidationError", '403': "GenericError", } @@ -10561,10 +10310,13 @@ def core_groups_remove_user_create_with_http_info( @validate_call - def core_groups_remove_user_create_without_preload_content( + def core_groups_retrieve_without_preload_content( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - user_account_request: UserAccountRequest, + include_children: Optional[StrictBool] = None, + include_inherited_roles: Optional[StrictBool] = None, + include_parents: Optional[StrictBool] = None, + include_users: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10578,14 +10330,20 @@ def core_groups_remove_user_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_remove_user_create + """core_groups_retrieve - Remove user from group + Group Viewset :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param user_account_request: (required) - :type user_account_request: UserAccountRequest + :param include_children: + :type include_children: bool + :param include_inherited_roles: + :type include_inherited_roles: bool + :param include_parents: + :type include_parents: bool + :param include_users: + :type include_users: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10608,9 +10366,12 @@ def core_groups_remove_user_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_remove_user_create_serialize( + _param = self._core_groups_retrieve_serialize( group_uuid=group_uuid, - user_account_request=user_account_request, + include_children=include_children, + include_inherited_roles=include_inherited_roles, + include_parents=include_parents, + include_users=include_users, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10618,8 +10379,7 @@ def core_groups_remove_user_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '404': None, + '200': "Group", '400': "ValidationError", '403': "GenericError", } @@ -10630,10 +10390,13 @@ def core_groups_remove_user_create_without_preload_content( return response_data.response - def _core_groups_remove_user_create_serialize( + def _core_groups_retrieve_serialize( self, group_uuid, - user_account_request, + include_children, + include_inherited_roles, + include_parents, + include_users, _request_auth, _content_type, _headers, @@ -10658,11 +10421,25 @@ def _core_groups_remove_user_create_serialize( if group_uuid is not None: _path_params['group_uuid'] = group_uuid # process the query parameters + if include_children is not None: + + _query_params.append(('include_children', include_children)) + + if include_inherited_roles is not None: + + _query_params.append(('include_inherited_roles', include_inherited_roles)) + + if include_parents is not None: + + _query_params.append(('include_parents', include_parents)) + + if include_users is not None: + + _query_params.append(('include_users', include_users)) + # process the header parameters # process the form parameters # process the body parameter - if user_account_request is not None: - _body_params = user_account_request # set the HTTP header `Accept` @@ -10673,19 +10450,6 @@ def _core_groups_remove_user_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10693,8 +10457,8 @@ def _core_groups_remove_user_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/core/groups/{group_uuid}/remove_user/', + method='GET', + resource_path='/core/groups/{group_uuid}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10711,11 +10475,10 @@ def _core_groups_remove_user_create_serialize( @validate_call - def core_groups_retrieve( + def core_groups_update( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - include_children: Optional[StrictBool] = None, - include_users: Optional[StrictBool] = None, + group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10729,16 +10492,14 @@ def core_groups_retrieve( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Group: - """core_groups_retrieve + """core_groups_update Group Viewset :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param include_children: - :type include_children: bool - :param include_users: - :type include_users: bool + :param group_request: (required) + :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10761,10 +10522,9 @@ def core_groups_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_retrieve_serialize( + _param = self._core_groups_update_serialize( group_uuid=group_uuid, - include_children=include_children, - include_users=include_users, + group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10788,11 +10548,10 @@ def core_groups_retrieve( @validate_call - def core_groups_retrieve_with_http_info( + def core_groups_update_with_http_info( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - include_children: Optional[StrictBool] = None, - include_users: Optional[StrictBool] = None, + group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10806,16 +10565,14 @@ def core_groups_retrieve_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Group]: - """core_groups_retrieve + """core_groups_update Group Viewset :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param include_children: - :type include_children: bool - :param include_users: - :type include_users: bool + :param group_request: (required) + :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10838,10 +10595,9 @@ def core_groups_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_retrieve_serialize( + _param = self._core_groups_update_serialize( group_uuid=group_uuid, - include_children=include_children, - include_users=include_users, + group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10865,11 +10621,10 @@ def core_groups_retrieve_with_http_info( @validate_call - def core_groups_retrieve_without_preload_content( + def core_groups_update_without_preload_content( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - include_children: Optional[StrictBool] = None, - include_users: Optional[StrictBool] = None, + group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10883,16 +10638,14 @@ def core_groups_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_retrieve + """core_groups_update Group Viewset :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param include_children: - :type include_children: bool - :param include_users: - :type include_users: bool + :param group_request: (required) + :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10915,10 +10668,9 @@ def core_groups_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_retrieve_serialize( + _param = self._core_groups_update_serialize( group_uuid=group_uuid, - include_children=include_children, - include_users=include_users, + group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10937,11 +10689,10 @@ def core_groups_retrieve_without_preload_content( return response_data.response - def _core_groups_retrieve_serialize( + def _core_groups_update_serialize( self, group_uuid, - include_children, - include_users, + group_request, _request_auth, _content_type, _headers, @@ -10966,17 +10717,11 @@ def _core_groups_retrieve_serialize( if group_uuid is not None: _path_params['group_uuid'] = group_uuid # process the query parameters - if include_children is not None: - - _query_params.append(('include_children', include_children)) - - if include_users is not None: - - _query_params.append(('include_users', include_users)) - # process the header parameters # process the form parameters # process the body parameter + if group_request is not None: + _body_params = group_request # set the HTTP header `Accept` @@ -10987,6 +10732,19 @@ def _core_groups_retrieve_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10994,7 +10752,7 @@ def _core_groups_retrieve_serialize( ] return self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/core/groups/{group_uuid}/', path_params=_path_params, query_params=_query_params, @@ -11012,10 +10770,9 @@ def _core_groups_retrieve_serialize( @validate_call - def core_groups_update( + def core_groups_used_by_list( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11028,15 +10785,13 @@ def core_groups_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Group: - """core_groups_update + ) -> List[UsedBy]: + """core_groups_used_by_list - Group Viewset + Get a list of all objects that use this object :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param group_request: (required) - :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11059,9 +10814,8 @@ def core_groups_update( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_update_serialize( + _param = self._core_groups_used_by_list_serialize( group_uuid=group_uuid, - group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11069,7 +10823,7 @@ def core_groups_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Group", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -11085,10 +10839,9 @@ def core_groups_update( @validate_call - def core_groups_update_with_http_info( + def core_groups_used_by_list_with_http_info( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11101,15 +10854,13 @@ def core_groups_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Group]: - """core_groups_update + ) -> ApiResponse[List[UsedBy]]: + """core_groups_used_by_list - Group Viewset + Get a list of all objects that use this object :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param group_request: (required) - :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11132,9 +10883,8 @@ def core_groups_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_update_serialize( + _param = self._core_groups_used_by_list_serialize( group_uuid=group_uuid, - group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11142,7 +10892,7 @@ def core_groups_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Group", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -11158,10 +10908,9 @@ def core_groups_update_with_http_info( @validate_call - def core_groups_update_without_preload_content( + def core_groups_used_by_list_without_preload_content( self, group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], - group_request: GroupRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11175,14 +10924,12 @@ def core_groups_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_update + """core_groups_used_by_list - Group Viewset + Get a list of all objects that use this object :param group_uuid: A UUID string identifying this Group. (required) :type group_uuid: str - :param group_request: (required) - :type group_request: GroupRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11205,9 +10952,8 @@ def core_groups_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_update_serialize( + _param = self._core_groups_used_by_list_serialize( group_uuid=group_uuid, - group_request=group_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11215,7 +10961,7 @@ def core_groups_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Group", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -11226,10 +10972,9 @@ def core_groups_update_without_preload_content( return response_data.response - def _core_groups_update_serialize( + def _core_groups_used_by_list_serialize( self, group_uuid, - group_request, _request_auth, _content_type, _headers, @@ -11257,8 +11002,6 @@ def _core_groups_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if group_request is not None: - _body_params = group_request # set the HTTP header `Accept` @@ -11269,19 +11012,6 @@ def _core_groups_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -11289,8 +11019,8 @@ def _core_groups_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/core/groups/{group_uuid}/', + method='GET', + resource_path='/core/groups/{group_uuid}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11307,9 +11037,9 @@ def _core_groups_update_serialize( @validate_call - def core_groups_used_by_list( + def core_tokens_create( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11322,13 +11052,13 @@ def core_groups_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """core_groups_used_by_list + ) -> Token: + """core_tokens_create - Get a list of all objects that use this object + Token Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str + :param token_request: (required) + :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11351,8 +11081,8 @@ def core_groups_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_used_by_list_serialize( - group_uuid=group_uuid, + _param = self._core_tokens_create_serialize( + token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11360,7 +11090,7 @@ def core_groups_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "Token", '400': "ValidationError", '403': "GenericError", } @@ -11376,9 +11106,9 @@ def core_groups_used_by_list( @validate_call - def core_groups_used_by_list_with_http_info( + def core_tokens_create_with_http_info( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11391,13 +11121,13 @@ def core_groups_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """core_groups_used_by_list + ) -> ApiResponse[Token]: + """core_tokens_create - Get a list of all objects that use this object + Token Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str + :param token_request: (required) + :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11419,9 +11149,9 @@ def core_groups_used_by_list_with_http_info( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - - _param = self._core_groups_used_by_list_serialize( - group_uuid=group_uuid, + + _param = self._core_tokens_create_serialize( + token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11429,7 +11159,7 @@ def core_groups_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "Token", '400': "ValidationError", '403': "GenericError", } @@ -11445,9 +11175,9 @@ def core_groups_used_by_list_with_http_info( @validate_call - def core_groups_used_by_list_without_preload_content( + def core_tokens_create_without_preload_content( self, - group_uuid: Annotated[UUID, Field(description="A UUID string identifying this Group.")], + token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11461,12 +11191,12 @@ def core_groups_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_groups_used_by_list + """core_tokens_create - Get a list of all objects that use this object + Token Viewset - :param group_uuid: A UUID string identifying this Group. (required) - :type group_uuid: str + :param token_request: (required) + :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11489,8 +11219,8 @@ def core_groups_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_groups_used_by_list_serialize( - group_uuid=group_uuid, + _param = self._core_tokens_create_serialize( + token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11498,7 +11228,7 @@ def core_groups_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "Token", '400': "ValidationError", '403': "GenericError", } @@ -11509,9 +11239,9 @@ def core_groups_used_by_list_without_preload_content( return response_data.response - def _core_groups_used_by_list_serialize( + def _core_tokens_create_serialize( self, - group_uuid, + token_request, _request_auth, _content_type, _headers, @@ -11533,12 +11263,12 @@ def _core_groups_used_by_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - if group_uuid is not None: - _path_params['group_uuid'] = group_uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if token_request is not None: + _body_params = token_request # set the HTTP header `Accept` @@ -11549,6 +11279,19 @@ def _core_groups_used_by_list_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -11556,8 +11299,8 @@ def _core_groups_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/groups/{group_uuid}/used_by/', + method='POST', + resource_path='/core/tokens/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11574,9 +11317,9 @@ def _core_groups_used_by_list_serialize( @validate_call - def core_tokens_create( + def core_tokens_destroy( self, - token_request: TokenRequest, + identifier: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11589,13 +11332,13 @@ def core_tokens_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Token: - """core_tokens_create + ) -> None: + """core_tokens_destroy Token Viewset - :param token_request: (required) - :type token_request: TokenRequest + :param identifier: (required) + :type identifier: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11618,8 +11361,8 @@ def core_tokens_create( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_create_serialize( - token_request=token_request, + _param = self._core_tokens_destroy_serialize( + identifier=identifier, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11627,7 +11370,7 @@ def core_tokens_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Token", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -11643,9 +11386,9 @@ def core_tokens_create( @validate_call - def core_tokens_create_with_http_info( + def core_tokens_destroy_with_http_info( self, - token_request: TokenRequest, + identifier: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11658,13 +11401,13 @@ def core_tokens_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Token]: - """core_tokens_create + ) -> ApiResponse[None]: + """core_tokens_destroy Token Viewset - :param token_request: (required) - :type token_request: TokenRequest + :param identifier: (required) + :type identifier: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11687,8 +11430,8 @@ def core_tokens_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_create_serialize( - token_request=token_request, + _param = self._core_tokens_destroy_serialize( + identifier=identifier, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11696,7 +11439,7 @@ def core_tokens_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Token", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -11712,9 +11455,9 @@ def core_tokens_create_with_http_info( @validate_call - def core_tokens_create_without_preload_content( + def core_tokens_destroy_without_preload_content( self, - token_request: TokenRequest, + identifier: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11728,12 +11471,12 @@ def core_tokens_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_create + """core_tokens_destroy Token Viewset - :param token_request: (required) - :type token_request: TokenRequest + :param identifier: (required) + :type identifier: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11756,8 +11499,8 @@ def core_tokens_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_create_serialize( - token_request=token_request, + _param = self._core_tokens_destroy_serialize( + identifier=identifier, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11765,7 +11508,7 @@ def core_tokens_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Token", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -11776,9 +11519,9 @@ def core_tokens_create_without_preload_content( return response_data.response - def _core_tokens_create_serialize( + def _core_tokens_destroy_serialize( self, - token_request, + identifier, _request_auth, _content_type, _headers, @@ -11800,12 +11543,12 @@ def _core_tokens_create_serialize( _body_params: Optional[bytes] = None # process the path parameters + if identifier is not None: + _path_params['identifier'] = identifier # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if token_request is not None: - _body_params = token_request # set the HTTP header `Accept` @@ -11816,19 +11559,6 @@ def _core_tokens_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -11836,8 +11566,8 @@ def _core_tokens_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/core/tokens/', + method='DELETE', + resource_path='/core/tokens/{identifier}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11854,9 +11584,19 @@ def _core_tokens_create_serialize( @validate_call - def core_tokens_destroy( + def core_tokens_list( self, - identifier: StrictStr, + description: Optional[StrictStr] = None, + expires: Optional[datetime] = None, + expiring: Optional[StrictBool] = None, + identifier: Optional[StrictStr] = None, + intent: Optional[StrictStr] = None, + managed: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user__username: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11869,13 +11609,33 @@ def core_tokens_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_tokens_destroy + ) -> PaginatedTokenList: + """core_tokens_list Token Viewset - :param identifier: (required) + :param description: + :type description: str + :param expires: + :type expires: datetime + :param expiring: + :type expiring: bool + :param identifier: :type identifier: str + :param intent: + :type intent: str + :param managed: + :type managed: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param user__username: + :type user__username: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11898,8 +11658,18 @@ def core_tokens_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_destroy_serialize( + _param = self._core_tokens_list_serialize( + description=description, + expires=expires, + expiring=expiring, identifier=identifier, + intent=intent, + managed=managed, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + user__username=user__username, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11907,7 +11677,7 @@ def core_tokens_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedTokenList", '400': "ValidationError", '403': "GenericError", } @@ -11923,9 +11693,19 @@ def core_tokens_destroy( @validate_call - def core_tokens_destroy_with_http_info( + def core_tokens_list_with_http_info( self, - identifier: StrictStr, + description: Optional[StrictStr] = None, + expires: Optional[datetime] = None, + expiring: Optional[StrictBool] = None, + identifier: Optional[StrictStr] = None, + intent: Optional[StrictStr] = None, + managed: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user__username: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11938,13 +11718,33 @@ def core_tokens_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_tokens_destroy + ) -> ApiResponse[PaginatedTokenList]: + """core_tokens_list Token Viewset - :param identifier: (required) + :param description: + :type description: str + :param expires: + :type expires: datetime + :param expiring: + :type expiring: bool + :param identifier: :type identifier: str + :param intent: + :type intent: str + :param managed: + :type managed: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param user__username: + :type user__username: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11967,8 +11767,18 @@ def core_tokens_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_destroy_serialize( + _param = self._core_tokens_list_serialize( + description=description, + expires=expires, + expiring=expiring, identifier=identifier, + intent=intent, + managed=managed, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + user__username=user__username, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11976,7 +11786,7 @@ def core_tokens_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedTokenList", '400': "ValidationError", '403': "GenericError", } @@ -11992,9 +11802,19 @@ def core_tokens_destroy_with_http_info( @validate_call - def core_tokens_destroy_without_preload_content( + def core_tokens_list_without_preload_content( self, - identifier: StrictStr, + description: Optional[StrictStr] = None, + expires: Optional[datetime] = None, + expiring: Optional[StrictBool] = None, + identifier: Optional[StrictStr] = None, + intent: Optional[StrictStr] = None, + managed: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user__username: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12008,12 +11828,32 @@ def core_tokens_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_destroy + """core_tokens_list Token Viewset - :param identifier: (required) + :param description: + :type description: str + :param expires: + :type expires: datetime + :param expiring: + :type expiring: bool + :param identifier: :type identifier: str + :param intent: + :type intent: str + :param managed: + :type managed: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param user__username: + :type user__username: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12036,8 +11876,18 @@ def core_tokens_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_destroy_serialize( + _param = self._core_tokens_list_serialize( + description=description, + expires=expires, + expiring=expiring, identifier=identifier, + intent=intent, + managed=managed, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + user__username=user__username, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12045,7 +11895,7 @@ def core_tokens_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedTokenList", '400': "ValidationError", '403': "GenericError", } @@ -12056,9 +11906,19 @@ def core_tokens_destroy_without_preload_content( return response_data.response - def _core_tokens_destroy_serialize( + def _core_tokens_list_serialize( self, + description, + expires, + expiring, identifier, + intent, + managed, + ordering, + page, + page_size, + search, + user__username, _request_auth, _content_type, _headers, @@ -12080,9 +11940,60 @@ def _core_tokens_destroy_serialize( _body_params: Optional[bytes] = None # process the path parameters - if identifier is not None: - _path_params['identifier'] = identifier # process the query parameters + if description is not None: + + _query_params.append(('description', description)) + + if expires is not None: + if isinstance(expires, datetime): + _query_params.append( + ( + 'expires', + expires.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('expires', expires)) + + if expiring is not None: + + _query_params.append(('expiring', expiring)) + + if identifier is not None: + + _query_params.append(('identifier', identifier)) + + if intent is not None: + + _query_params.append(('intent', intent)) + + if managed is not None: + + _query_params.append(('managed', managed)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if user__username is not None: + + _query_params.append(('user__username', user__username)) + # process the header parameters # process the form parameters # process the body parameter @@ -12103,8 +12014,8 @@ def _core_tokens_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/core/tokens/{identifier}/', + method='GET', + resource_path='/core/tokens/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12121,19 +12032,10 @@ def _core_tokens_destroy_serialize( @validate_call - def core_tokens_list( + def core_tokens_partial_update( self, - description: Optional[StrictStr] = None, - expires: Optional[datetime] = None, - expiring: Optional[StrictBool] = None, - identifier: Optional[StrictStr] = None, - intent: Optional[StrictStr] = None, - managed: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user__username: Optional[StrictStr] = None, + identifier: StrictStr, + patched_token_request: Optional[PatchedTokenRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12146,33 +12048,15 @@ def core_tokens_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedTokenList: - """core_tokens_list + ) -> Token: + """core_tokens_partial_update Token Viewset - :param description: - :type description: str - :param expires: - :type expires: datetime - :param expiring: - :type expiring: bool - :param identifier: + :param identifier: (required) :type identifier: str - :param intent: - :type intent: str - :param managed: - :type managed: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user__username: - :type user__username: str + :param patched_token_request: + :type patched_token_request: PatchedTokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12195,18 +12079,9 @@ def core_tokens_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_list_serialize( - description=description, - expires=expires, - expiring=expiring, + _param = self._core_tokens_partial_update_serialize( identifier=identifier, - intent=intent, - managed=managed, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user__username=user__username, + patched_token_request=patched_token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12214,7 +12089,7 @@ def core_tokens_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedTokenList", + '200': "Token", '400': "ValidationError", '403': "GenericError", } @@ -12230,19 +12105,10 @@ def core_tokens_list( @validate_call - def core_tokens_list_with_http_info( + def core_tokens_partial_update_with_http_info( self, - description: Optional[StrictStr] = None, - expires: Optional[datetime] = None, - expiring: Optional[StrictBool] = None, - identifier: Optional[StrictStr] = None, - intent: Optional[StrictStr] = None, - managed: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user__username: Optional[StrictStr] = None, + identifier: StrictStr, + patched_token_request: Optional[PatchedTokenRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12255,33 +12121,15 @@ def core_tokens_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedTokenList]: - """core_tokens_list + ) -> ApiResponse[Token]: + """core_tokens_partial_update Token Viewset - :param description: - :type description: str - :param expires: - :type expires: datetime - :param expiring: - :type expiring: bool - :param identifier: + :param identifier: (required) :type identifier: str - :param intent: - :type intent: str - :param managed: - :type managed: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user__username: - :type user__username: str + :param patched_token_request: + :type patched_token_request: PatchedTokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12304,18 +12152,9 @@ def core_tokens_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_list_serialize( - description=description, - expires=expires, - expiring=expiring, + _param = self._core_tokens_partial_update_serialize( identifier=identifier, - intent=intent, - managed=managed, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user__username=user__username, + patched_token_request=patched_token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12323,7 +12162,7 @@ def core_tokens_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedTokenList", + '200': "Token", '400': "ValidationError", '403': "GenericError", } @@ -12339,19 +12178,10 @@ def core_tokens_list_with_http_info( @validate_call - def core_tokens_list_without_preload_content( + def core_tokens_partial_update_without_preload_content( self, - description: Optional[StrictStr] = None, - expires: Optional[datetime] = None, - expiring: Optional[StrictBool] = None, - identifier: Optional[StrictStr] = None, - intent: Optional[StrictStr] = None, - managed: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user__username: Optional[StrictStr] = None, + identifier: StrictStr, + patched_token_request: Optional[PatchedTokenRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12365,32 +12195,14 @@ def core_tokens_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_list + """core_tokens_partial_update Token Viewset - :param description: - :type description: str - :param expires: - :type expires: datetime - :param expiring: - :type expiring: bool - :param identifier: - :type identifier: str - :param intent: - :type intent: str - :param managed: - :type managed: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user__username: - :type user__username: str + :param identifier: (required) + :type identifier: str + :param patched_token_request: + :type patched_token_request: PatchedTokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12413,18 +12225,9 @@ def core_tokens_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_list_serialize( - description=description, - expires=expires, - expiring=expiring, + _param = self._core_tokens_partial_update_serialize( identifier=identifier, - intent=intent, - managed=managed, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user__username=user__username, + patched_token_request=patched_token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12432,7 +12235,7 @@ def core_tokens_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedTokenList", + '200': "Token", '400': "ValidationError", '403': "GenericError", } @@ -12443,19 +12246,10 @@ def core_tokens_list_without_preload_content( return response_data.response - def _core_tokens_list_serialize( + def _core_tokens_partial_update_serialize( self, - description, - expires, - expiring, identifier, - intent, - managed, - ordering, - page, - page_size, - search, - user__username, + patched_token_request, _request_auth, _content_type, _headers, @@ -12477,63 +12271,14 @@ def _core_tokens_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters - if description is not None: - - _query_params.append(('description', description)) - - if expires is not None: - if isinstance(expires, datetime): - _query_params.append( - ( - 'expires', - expires.strftime( - self.api_client.configuration.datetime_format - ) - ) - ) - else: - _query_params.append(('expires', expires)) - - if expiring is not None: - - _query_params.append(('expiring', expiring)) - if identifier is not None: - - _query_params.append(('identifier', identifier)) - - if intent is not None: - - _query_params.append(('intent', intent)) - - if managed is not None: - - _query_params.append(('managed', managed)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if user__username is not None: - - _query_params.append(('user__username', user__username)) - + _path_params['identifier'] = identifier + # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if patched_token_request is not None: + _body_params = patched_token_request # set the HTTP header `Accept` @@ -12544,6 +12289,19 @@ def _core_tokens_list_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -12551,8 +12309,8 @@ def _core_tokens_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/tokens/', + method='PATCH', + resource_path='/core/tokens/{identifier}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12569,10 +12327,9 @@ def _core_tokens_list_serialize( @validate_call - def core_tokens_partial_update( + def core_tokens_retrieve( self, identifier: StrictStr, - patched_token_request: Optional[PatchedTokenRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12586,14 +12343,12 @@ def core_tokens_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> Token: - """core_tokens_partial_update + """core_tokens_retrieve Token Viewset :param identifier: (required) :type identifier: str - :param patched_token_request: - :type patched_token_request: PatchedTokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12616,9 +12371,8 @@ def core_tokens_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_partial_update_serialize( + _param = self._core_tokens_retrieve_serialize( identifier=identifier, - patched_token_request=patched_token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12642,10 +12396,9 @@ def core_tokens_partial_update( @validate_call - def core_tokens_partial_update_with_http_info( + def core_tokens_retrieve_with_http_info( self, identifier: StrictStr, - patched_token_request: Optional[PatchedTokenRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12659,14 +12412,12 @@ def core_tokens_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[Token]: - """core_tokens_partial_update + """core_tokens_retrieve Token Viewset :param identifier: (required) :type identifier: str - :param patched_token_request: - :type patched_token_request: PatchedTokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12689,9 +12440,8 @@ def core_tokens_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_partial_update_serialize( + _param = self._core_tokens_retrieve_serialize( identifier=identifier, - patched_token_request=patched_token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12715,10 +12465,9 @@ def core_tokens_partial_update_with_http_info( @validate_call - def core_tokens_partial_update_without_preload_content( + def core_tokens_retrieve_without_preload_content( self, identifier: StrictStr, - patched_token_request: Optional[PatchedTokenRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12732,14 +12481,12 @@ def core_tokens_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_partial_update + """core_tokens_retrieve Token Viewset :param identifier: (required) :type identifier: str - :param patched_token_request: - :type patched_token_request: PatchedTokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12762,9 +12509,8 @@ def core_tokens_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_partial_update_serialize( + _param = self._core_tokens_retrieve_serialize( identifier=identifier, - patched_token_request=patched_token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12783,10 +12529,9 @@ def core_tokens_partial_update_without_preload_content( return response_data.response - def _core_tokens_partial_update_serialize( + def _core_tokens_retrieve_serialize( self, identifier, - patched_token_request, _request_auth, _content_type, _headers, @@ -12814,8 +12559,6 @@ def _core_tokens_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_token_request is not None: - _body_params = patched_token_request # set the HTTP header `Accept` @@ -12826,19 +12569,6 @@ def _core_tokens_partial_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -12846,7 +12576,7 @@ def _core_tokens_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='GET', resource_path='/core/tokens/{identifier}/', path_params=_path_params, query_params=_query_params, @@ -12864,9 +12594,10 @@ def _core_tokens_partial_update_serialize( @validate_call - def core_tokens_retrieve( + def core_tokens_set_key_create( self, identifier: StrictStr, + token_set_key_request: TokenSetKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12879,13 +12610,15 @@ def core_tokens_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Token: - """core_tokens_retrieve + ) -> None: + """core_tokens_set_key_create - Token Viewset + Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required. :param identifier: (required) :type identifier: str + :param token_set_key_request: (required) + :type token_set_key_request: TokenSetKeyRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12908,8 +12641,9 @@ def core_tokens_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_retrieve_serialize( + _param = self._core_tokens_set_key_create_serialize( identifier=identifier, + token_set_key_request=token_set_key_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12917,8 +12651,9 @@ def core_tokens_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Token", - '400': "ValidationError", + '204': None, + '400': None, + '404': None, '403': "GenericError", } response_data = self.api_client.call_api( @@ -12933,9 +12668,10 @@ def core_tokens_retrieve( @validate_call - def core_tokens_retrieve_with_http_info( + def core_tokens_set_key_create_with_http_info( self, identifier: StrictStr, + token_set_key_request: TokenSetKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12948,13 +12684,15 @@ def core_tokens_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Token]: - """core_tokens_retrieve + ) -> ApiResponse[None]: + """core_tokens_set_key_create - Token Viewset + Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required. :param identifier: (required) :type identifier: str + :param token_set_key_request: (required) + :type token_set_key_request: TokenSetKeyRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12977,8 +12715,9 @@ def core_tokens_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_retrieve_serialize( + _param = self._core_tokens_set_key_create_serialize( identifier=identifier, + token_set_key_request=token_set_key_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12986,8 +12725,9 @@ def core_tokens_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Token", - '400': "ValidationError", + '204': None, + '400': None, + '404': None, '403': "GenericError", } response_data = self.api_client.call_api( @@ -13002,9 +12742,10 @@ def core_tokens_retrieve_with_http_info( @validate_call - def core_tokens_retrieve_without_preload_content( + def core_tokens_set_key_create_without_preload_content( self, identifier: StrictStr, + token_set_key_request: TokenSetKeyRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13018,12 +12759,14 @@ def core_tokens_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_retrieve + """core_tokens_set_key_create - Token Viewset + Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required. :param identifier: (required) :type identifier: str + :param token_set_key_request: (required) + :type token_set_key_request: TokenSetKeyRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13046,8 +12789,9 @@ def core_tokens_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_retrieve_serialize( + _param = self._core_tokens_set_key_create_serialize( identifier=identifier, + token_set_key_request=token_set_key_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13055,8 +12799,9 @@ def core_tokens_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Token", - '400': "ValidationError", + '204': None, + '400': None, + '404': None, '403': "GenericError", } response_data = self.api_client.call_api( @@ -13066,9 +12811,10 @@ def core_tokens_retrieve_without_preload_content( return response_data.response - def _core_tokens_retrieve_serialize( + def _core_tokens_set_key_create_serialize( self, identifier, + token_set_key_request, _request_auth, _content_type, _headers, @@ -13096,6 +12842,8 @@ def _core_tokens_retrieve_serialize( # process the header parameters # process the form parameters # process the body parameter + if token_set_key_request is not None: + _body_params = token_set_key_request # set the HTTP header `Accept` @@ -13106,6 +12854,19 @@ def _core_tokens_retrieve_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -13113,8 +12874,8 @@ def _core_tokens_retrieve_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/tokens/{identifier}/', + method='POST', + resource_path='/core/tokens/{identifier}/set_key/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13131,10 +12892,10 @@ def _core_tokens_retrieve_serialize( @validate_call - def core_tokens_set_key_create( + def core_tokens_update( self, identifier: StrictStr, - token_set_key_request: TokenSetKeyRequest, + token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13147,15 +12908,15 @@ def core_tokens_set_key_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_tokens_set_key_create + ) -> Token: + """core_tokens_update - Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required. + Token Viewset :param identifier: (required) :type identifier: str - :param token_set_key_request: (required) - :type token_set_key_request: TokenSetKeyRequest + :param token_request: (required) + :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13178,9 +12939,9 @@ def core_tokens_set_key_create( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_set_key_create_serialize( + _param = self._core_tokens_update_serialize( identifier=identifier, - token_set_key_request=token_set_key_request, + token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13188,9 +12949,8 @@ def core_tokens_set_key_create( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '404': None, + '200': "Token", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -13205,10 +12965,10 @@ def core_tokens_set_key_create( @validate_call - def core_tokens_set_key_create_with_http_info( + def core_tokens_update_with_http_info( self, identifier: StrictStr, - token_set_key_request: TokenSetKeyRequest, + token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13221,15 +12981,15 @@ def core_tokens_set_key_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_tokens_set_key_create + ) -> ApiResponse[Token]: + """core_tokens_update - Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required. + Token Viewset :param identifier: (required) :type identifier: str - :param token_set_key_request: (required) - :type token_set_key_request: TokenSetKeyRequest + :param token_request: (required) + :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13252,9 +13012,9 @@ def core_tokens_set_key_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_set_key_create_serialize( + _param = self._core_tokens_update_serialize( identifier=identifier, - token_set_key_request=token_set_key_request, + token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13262,9 +13022,8 @@ def core_tokens_set_key_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '404': None, + '200': "Token", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -13279,10 +13038,10 @@ def core_tokens_set_key_create_with_http_info( @validate_call - def core_tokens_set_key_create_without_preload_content( + def core_tokens_update_without_preload_content( self, identifier: StrictStr, - token_set_key_request: TokenSetKeyRequest, + token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13296,14 +13055,14 @@ def core_tokens_set_key_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_set_key_create + """core_tokens_update - Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required. + Token Viewset :param identifier: (required) :type identifier: str - :param token_set_key_request: (required) - :type token_set_key_request: TokenSetKeyRequest + :param token_request: (required) + :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13326,9 +13085,9 @@ def core_tokens_set_key_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_set_key_create_serialize( + _param = self._core_tokens_update_serialize( identifier=identifier, - token_set_key_request=token_set_key_request, + token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13336,9 +13095,8 @@ def core_tokens_set_key_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '404': None, + '200': "Token", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -13348,10 +13106,10 @@ def core_tokens_set_key_create_without_preload_content( return response_data.response - def _core_tokens_set_key_create_serialize( + def _core_tokens_update_serialize( self, identifier, - token_set_key_request, + token_request, _request_auth, _content_type, _headers, @@ -13379,8 +13137,8 @@ def _core_tokens_set_key_create_serialize( # process the header parameters # process the form parameters # process the body parameter - if token_set_key_request is not None: - _body_params = token_set_key_request + if token_request is not None: + _body_params = token_request # set the HTTP header `Accept` @@ -13411,8 +13169,8 @@ def _core_tokens_set_key_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/core/tokens/{identifier}/set_key/', + method='PUT', + resource_path='/core/tokens/{identifier}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13429,10 +13187,9 @@ def _core_tokens_set_key_create_serialize( @validate_call - def core_tokens_update( + def core_tokens_used_by_list( self, identifier: StrictStr, - token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13445,15 +13202,13 @@ def core_tokens_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Token: - """core_tokens_update + ) -> List[UsedBy]: + """core_tokens_used_by_list - Token Viewset + Get a list of all objects that use this object :param identifier: (required) :type identifier: str - :param token_request: (required) - :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13476,9 +13231,8 @@ def core_tokens_update( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_update_serialize( + _param = self._core_tokens_used_by_list_serialize( identifier=identifier, - token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13486,7 +13240,7 @@ def core_tokens_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Token", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -13502,10 +13256,9 @@ def core_tokens_update( @validate_call - def core_tokens_update_with_http_info( + def core_tokens_used_by_list_with_http_info( self, identifier: StrictStr, - token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13518,15 +13271,13 @@ def core_tokens_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Token]: - """core_tokens_update + ) -> ApiResponse[List[UsedBy]]: + """core_tokens_used_by_list - Token Viewset + Get a list of all objects that use this object :param identifier: (required) :type identifier: str - :param token_request: (required) - :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13549,9 +13300,8 @@ def core_tokens_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_update_serialize( + _param = self._core_tokens_used_by_list_serialize( identifier=identifier, - token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13559,7 +13309,7 @@ def core_tokens_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Token", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -13575,10 +13325,9 @@ def core_tokens_update_with_http_info( @validate_call - def core_tokens_update_without_preload_content( + def core_tokens_used_by_list_without_preload_content( self, identifier: StrictStr, - token_request: TokenRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13592,14 +13341,12 @@ def core_tokens_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_update + """core_tokens_used_by_list - Token Viewset + Get a list of all objects that use this object :param identifier: (required) :type identifier: str - :param token_request: (required) - :type token_request: TokenRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13622,9 +13369,8 @@ def core_tokens_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_update_serialize( + _param = self._core_tokens_used_by_list_serialize( identifier=identifier, - token_request=token_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13632,7 +13378,7 @@ def core_tokens_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Token", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -13643,10 +13389,9 @@ def core_tokens_update_without_preload_content( return response_data.response - def _core_tokens_update_serialize( + def _core_tokens_used_by_list_serialize( self, identifier, - token_request, _request_auth, _content_type, _headers, @@ -13674,8 +13419,6 @@ def _core_tokens_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if token_request is not None: - _body_params = token_request # set the HTTP header `Accept` @@ -13686,19 +13429,6 @@ def _core_tokens_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -13706,8 +13436,8 @@ def _core_tokens_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/core/tokens/{identifier}/', + method='GET', + resource_path='/core/tokens/{identifier}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13724,7 +13454,7 @@ def _core_tokens_update_serialize( @validate_call - def core_tokens_used_by_list( + def core_tokens_view_key_retrieve( self, identifier: StrictStr, _request_timeout: Union[ @@ -13739,10 +13469,10 @@ def core_tokens_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """core_tokens_used_by_list + ) -> TokenView: + """core_tokens_view_key_retrieve - Get a list of all objects that use this object + Return token key and log access :param identifier: (required) :type identifier: str @@ -13768,7 +13498,7 @@ def core_tokens_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_used_by_list_serialize( + _param = self._core_tokens_view_key_retrieve_serialize( identifier=identifier, _request_auth=_request_auth, _content_type=_content_type, @@ -13777,7 +13507,8 @@ def core_tokens_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "TokenView", + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -13793,7 +13524,7 @@ def core_tokens_used_by_list( @validate_call - def core_tokens_used_by_list_with_http_info( + def core_tokens_view_key_retrieve_with_http_info( self, identifier: StrictStr, _request_timeout: Union[ @@ -13808,10 +13539,10 @@ def core_tokens_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """core_tokens_used_by_list + ) -> ApiResponse[TokenView]: + """core_tokens_view_key_retrieve - Get a list of all objects that use this object + Return token key and log access :param identifier: (required) :type identifier: str @@ -13837,7 +13568,7 @@ def core_tokens_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_used_by_list_serialize( + _param = self._core_tokens_view_key_retrieve_serialize( identifier=identifier, _request_auth=_request_auth, _content_type=_content_type, @@ -13846,7 +13577,8 @@ def core_tokens_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "TokenView", + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -13862,7 +13594,7 @@ def core_tokens_used_by_list_with_http_info( @validate_call - def core_tokens_used_by_list_without_preload_content( + def core_tokens_view_key_retrieve_without_preload_content( self, identifier: StrictStr, _request_timeout: Union[ @@ -13878,9 +13610,9 @@ def core_tokens_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_used_by_list + """core_tokens_view_key_retrieve - Get a list of all objects that use this object + Return token key and log access :param identifier: (required) :type identifier: str @@ -13906,7 +13638,7 @@ def core_tokens_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_used_by_list_serialize( + _param = self._core_tokens_view_key_retrieve_serialize( identifier=identifier, _request_auth=_request_auth, _content_type=_content_type, @@ -13915,7 +13647,8 @@ def core_tokens_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '200': "TokenView", + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -13926,7 +13659,7 @@ def core_tokens_used_by_list_without_preload_content( return response_data.response - def _core_tokens_used_by_list_serialize( + def _core_tokens_view_key_retrieve_serialize( self, identifier, _request_auth, @@ -13974,7 +13707,7 @@ def _core_tokens_used_by_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/core/tokens/{identifier}/used_by/', + resource_path='/core/tokens/{identifier}/view_key/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13991,9 +13724,9 @@ def _core_tokens_used_by_list_serialize( @validate_call - def core_tokens_view_key_retrieve( + def core_transactional_applications_update( self, - identifier: StrictStr, + transaction_application_request: TransactionApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14006,13 +13739,13 @@ def core_tokens_view_key_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TokenView: - """core_tokens_view_key_retrieve + ) -> TransactionApplicationResponse: + """core_transactional_applications_update - Return token key and log access + Convert data into a blueprint, validate it and apply it - :param identifier: (required) - :type identifier: str + :param transaction_application_request: (required) + :type transaction_application_request: TransactionApplicationRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14035,8 +13768,8 @@ def core_tokens_view_key_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_view_key_retrieve_serialize( - identifier=identifier, + _param = self._core_transactional_applications_update_serialize( + transaction_application_request=transaction_application_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14044,8 +13777,7 @@ def core_tokens_view_key_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TokenView", - '404': None, + '200': "TransactionApplicationResponse", '400': "ValidationError", '403': "GenericError", } @@ -14061,9 +13793,9 @@ def core_tokens_view_key_retrieve( @validate_call - def core_tokens_view_key_retrieve_with_http_info( + def core_transactional_applications_update_with_http_info( self, - identifier: StrictStr, + transaction_application_request: TransactionApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14076,13 +13808,13 @@ def core_tokens_view_key_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TokenView]: - """core_tokens_view_key_retrieve + ) -> ApiResponse[TransactionApplicationResponse]: + """core_transactional_applications_update - Return token key and log access + Convert data into a blueprint, validate it and apply it - :param identifier: (required) - :type identifier: str + :param transaction_application_request: (required) + :type transaction_application_request: TransactionApplicationRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14105,8 +13837,8 @@ def core_tokens_view_key_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_view_key_retrieve_serialize( - identifier=identifier, + _param = self._core_transactional_applications_update_serialize( + transaction_application_request=transaction_application_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14114,8 +13846,7 @@ def core_tokens_view_key_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TokenView", - '404': None, + '200': "TransactionApplicationResponse", '400': "ValidationError", '403': "GenericError", } @@ -14131,9 +13862,9 @@ def core_tokens_view_key_retrieve_with_http_info( @validate_call - def core_tokens_view_key_retrieve_without_preload_content( + def core_transactional_applications_update_without_preload_content( self, - identifier: StrictStr, + transaction_application_request: TransactionApplicationRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14147,12 +13878,12 @@ def core_tokens_view_key_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_tokens_view_key_retrieve + """core_transactional_applications_update - Return token key and log access + Convert data into a blueprint, validate it and apply it - :param identifier: (required) - :type identifier: str + :param transaction_application_request: (required) + :type transaction_application_request: TransactionApplicationRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14175,8 +13906,8 @@ def core_tokens_view_key_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_tokens_view_key_retrieve_serialize( - identifier=identifier, + _param = self._core_transactional_applications_update_serialize( + transaction_application_request=transaction_application_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14184,8 +13915,7 @@ def core_tokens_view_key_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TokenView", - '404': None, + '200': "TransactionApplicationResponse", '400': "ValidationError", '403': "GenericError", } @@ -14196,9 +13926,9 @@ def core_tokens_view_key_retrieve_without_preload_content( return response_data.response - def _core_tokens_view_key_retrieve_serialize( + def _core_transactional_applications_update_serialize( self, - identifier, + transaction_application_request, _request_auth, _content_type, _headers, @@ -14220,12 +13950,12 @@ def _core_tokens_view_key_retrieve_serialize( _body_params: Optional[bytes] = None # process the path parameters - if identifier is not None: - _path_params['identifier'] = identifier # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if transaction_application_request is not None: + _body_params = transaction_application_request # set the HTTP header `Accept` @@ -14236,6 +13966,19 @@ def _core_tokens_view_key_retrieve_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -14243,8 +13986,8 @@ def _core_tokens_view_key_retrieve_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/tokens/{identifier}/view_key/', + method='PUT', + resource_path='/core/transactional/applications/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14261,9 +14004,9 @@ def _core_tokens_view_key_retrieve_serialize( @validate_call - def core_transactional_applications_update( + def core_user_consent_destroy( self, - transaction_application_request: TransactionApplicationRequest, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14276,13 +14019,13 @@ def core_transactional_applications_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> TransactionApplicationResponse: - """core_transactional_applications_update + ) -> None: + """core_user_consent_destroy - Convert data into a blueprint, validate it and apply it + UserConsent Viewset - :param transaction_application_request: (required) - :type transaction_application_request: TransactionApplicationRequest + :param id: A unique integer value identifying this User Consent. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14305,8 +14048,8 @@ def core_transactional_applications_update( :return: Returns the result object. """ # noqa: E501 - _param = self._core_transactional_applications_update_serialize( - transaction_application_request=transaction_application_request, + _param = self._core_user_consent_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14314,7 +14057,7 @@ def core_transactional_applications_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TransactionApplicationResponse", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -14330,9 +14073,9 @@ def core_transactional_applications_update( @validate_call - def core_transactional_applications_update_with_http_info( + def core_user_consent_destroy_with_http_info( self, - transaction_application_request: TransactionApplicationRequest, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14345,13 +14088,13 @@ def core_transactional_applications_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[TransactionApplicationResponse]: - """core_transactional_applications_update + ) -> ApiResponse[None]: + """core_user_consent_destroy - Convert data into a blueprint, validate it and apply it + UserConsent Viewset - :param transaction_application_request: (required) - :type transaction_application_request: TransactionApplicationRequest + :param id: A unique integer value identifying this User Consent. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14374,8 +14117,8 @@ def core_transactional_applications_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_transactional_applications_update_serialize( - transaction_application_request=transaction_application_request, + _param = self._core_user_consent_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14383,7 +14126,7 @@ def core_transactional_applications_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TransactionApplicationResponse", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -14399,9 +14142,9 @@ def core_transactional_applications_update_with_http_info( @validate_call - def core_transactional_applications_update_without_preload_content( + def core_user_consent_destroy_without_preload_content( self, - transaction_application_request: TransactionApplicationRequest, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14415,12 +14158,12 @@ def core_transactional_applications_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_transactional_applications_update + """core_user_consent_destroy - Convert data into a blueprint, validate it and apply it + UserConsent Viewset - :param transaction_application_request: (required) - :type transaction_application_request: TransactionApplicationRequest + :param id: A unique integer value identifying this User Consent. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14443,8 +14186,8 @@ def core_transactional_applications_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_transactional_applications_update_serialize( - transaction_application_request=transaction_application_request, + _param = self._core_user_consent_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14452,7 +14195,7 @@ def core_transactional_applications_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "TransactionApplicationResponse", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -14463,9 +14206,9 @@ def core_transactional_applications_update_without_preload_content( return response_data.response - def _core_transactional_applications_update_serialize( + def _core_user_consent_destroy_serialize( self, - transaction_application_request, + id, _request_auth, _content_type, _headers, @@ -14487,12 +14230,12 @@ def _core_transactional_applications_update_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if transaction_application_request is not None: - _body_params = transaction_application_request # set the HTTP header `Accept` @@ -14503,19 +14246,6 @@ def _core_transactional_applications_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -14523,8 +14253,8 @@ def _core_transactional_applications_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/core/transactional/applications/', + method='DELETE', + resource_path='/core/user_consent/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14541,9 +14271,14 @@ def _core_transactional_applications_update_serialize( @validate_call - def core_user_consent_destroy( + def core_user_consent_list( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], + application: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14556,13 +14291,23 @@ def core_user_consent_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_user_consent_destroy + ) -> PaginatedUserConsentList: + """core_user_consent_list UserConsent Viewset - :param id: A unique integer value identifying this User Consent. (required) - :type id: int + :param application: + :type application: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param user: + :type user: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14585,8 +14330,13 @@ def core_user_consent_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_destroy_serialize( - id=id, + _param = self._core_user_consent_list_serialize( + application=application, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + user=user, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14594,7 +14344,7 @@ def core_user_consent_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedUserConsentList", '400': "ValidationError", '403': "GenericError", } @@ -14610,9 +14360,14 @@ def core_user_consent_destroy( @validate_call - def core_user_consent_destroy_with_http_info( + def core_user_consent_list_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], + application: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14625,13 +14380,23 @@ def core_user_consent_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_user_consent_destroy + ) -> ApiResponse[PaginatedUserConsentList]: + """core_user_consent_list UserConsent Viewset - :param id: A unique integer value identifying this User Consent. (required) - :type id: int + :param application: + :type application: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param user: + :type user: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14654,8 +14419,13 @@ def core_user_consent_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_destroy_serialize( - id=id, + _param = self._core_user_consent_list_serialize( + application=application, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + user=user, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14663,7 +14433,7 @@ def core_user_consent_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedUserConsentList", '400': "ValidationError", '403': "GenericError", } @@ -14679,9 +14449,14 @@ def core_user_consent_destroy_with_http_info( @validate_call - def core_user_consent_destroy_without_preload_content( + def core_user_consent_list_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], + application: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14695,12 +14470,22 @@ def core_user_consent_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_user_consent_destroy + """core_user_consent_list UserConsent Viewset - :param id: A unique integer value identifying this User Consent. (required) - :type id: int + :param application: + :type application: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param user: + :type user: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14723,8 +14508,13 @@ def core_user_consent_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_destroy_serialize( - id=id, + _param = self._core_user_consent_list_serialize( + application=application, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + user=user, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14732,7 +14522,7 @@ def core_user_consent_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedUserConsentList", '400': "ValidationError", '403': "GenericError", } @@ -14743,9 +14533,14 @@ def core_user_consent_destroy_without_preload_content( return response_data.response - def _core_user_consent_destroy_serialize( + def _core_user_consent_list_serialize( self, - id, + application, + ordering, + page, + page_size, + search, + user, _request_auth, _content_type, _headers, @@ -14767,9 +14562,31 @@ def _core_user_consent_destroy_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if application is not None: + + _query_params.append(('application', application)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if user is not None: + + _query_params.append(('user', user)) + # process the header parameters # process the form parameters # process the body parameter @@ -14790,8 +14607,8 @@ def _core_user_consent_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/core/user_consent/{id}/', + method='GET', + resource_path='/core/user_consent/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14808,14 +14625,9 @@ def _core_user_consent_destroy_serialize( @validate_call - def core_user_consent_list( + def core_user_consent_retrieve( self, - application: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14828,23 +14640,13 @@ def core_user_consent_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedUserConsentList: - """core_user_consent_list - - UserConsent Viewset - - :param application: - :type application: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user: - :type user: int + ) -> UserConsent: + """core_user_consent_retrieve + + UserConsent Viewset + + :param id: A unique integer value identifying this User Consent. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14867,13 +14669,8 @@ def core_user_consent_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_list_serialize( - application=application, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user=user, + _param = self._core_user_consent_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14881,7 +14678,7 @@ def core_user_consent_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedUserConsentList", + '200': "UserConsent", '400': "ValidationError", '403': "GenericError", } @@ -14897,14 +14694,9 @@ def core_user_consent_list( @validate_call - def core_user_consent_list_with_http_info( + def core_user_consent_retrieve_with_http_info( self, - application: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14917,23 +14709,13 @@ def core_user_consent_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedUserConsentList]: - """core_user_consent_list + ) -> ApiResponse[UserConsent]: + """core_user_consent_retrieve UserConsent Viewset - :param application: - :type application: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user: - :type user: int + :param id: A unique integer value identifying this User Consent. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14956,13 +14738,8 @@ def core_user_consent_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_list_serialize( - application=application, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user=user, + _param = self._core_user_consent_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14970,7 +14747,7 @@ def core_user_consent_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedUserConsentList", + '200': "UserConsent", '400': "ValidationError", '403': "GenericError", } @@ -14986,14 +14763,9 @@ def core_user_consent_list_with_http_info( @validate_call - def core_user_consent_list_without_preload_content( + def core_user_consent_retrieve_without_preload_content( self, - application: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15007,22 +14779,12 @@ def core_user_consent_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_user_consent_list + """core_user_consent_retrieve UserConsent Viewset - :param application: - :type application: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user: - :type user: int + :param id: A unique integer value identifying this User Consent. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15045,13 +14807,8 @@ def core_user_consent_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_list_serialize( - application=application, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user=user, + _param = self._core_user_consent_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15059,7 +14816,7 @@ def core_user_consent_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedUserConsentList", + '200': "UserConsent", '400': "ValidationError", '403': "GenericError", } @@ -15070,14 +14827,9 @@ def core_user_consent_list_without_preload_content( return response_data.response - def _core_user_consent_list_serialize( + def _core_user_consent_retrieve_serialize( self, - application, - ordering, - page, - page_size, - search, - user, + id, _request_auth, _content_type, _headers, @@ -15099,31 +14851,9 @@ def _core_user_consent_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if application is not None: - - _query_params.append(('application', application)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if user is not None: - - _query_params.append(('user', user)) - # process the header parameters # process the form parameters # process the body parameter @@ -15145,7 +14875,7 @@ def _core_user_consent_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/core/user_consent/', + resource_path='/core/user_consent/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15162,7 +14892,7 @@ def _core_user_consent_list_serialize( @validate_call - def core_user_consent_retrieve( + def core_user_consent_used_by_list( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ @@ -15177,10 +14907,10 @@ def core_user_consent_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UserConsent: - """core_user_consent_retrieve + ) -> List[UsedBy]: + """core_user_consent_used_by_list - UserConsent Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this User Consent. (required) :type id: int @@ -15206,7 +14936,7 @@ def core_user_consent_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_retrieve_serialize( + _param = self._core_user_consent_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -15215,7 +14945,7 @@ def core_user_consent_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserConsent", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -15231,7 +14961,7 @@ def core_user_consent_retrieve( @validate_call - def core_user_consent_retrieve_with_http_info( + def core_user_consent_used_by_list_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ @@ -15246,10 +14976,10 @@ def core_user_consent_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UserConsent]: - """core_user_consent_retrieve + ) -> ApiResponse[List[UsedBy]]: + """core_user_consent_used_by_list - UserConsent Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this User Consent. (required) :type id: int @@ -15275,7 +15005,7 @@ def core_user_consent_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_retrieve_serialize( + _param = self._core_user_consent_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -15284,7 +15014,7 @@ def core_user_consent_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserConsent", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -15300,7 +15030,7 @@ def core_user_consent_retrieve_with_http_info( @validate_call - def core_user_consent_retrieve_without_preload_content( + def core_user_consent_used_by_list_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], _request_timeout: Union[ @@ -15316,9 +15046,9 @@ def core_user_consent_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_user_consent_retrieve + """core_user_consent_used_by_list - UserConsent Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this User Consent. (required) :type id: int @@ -15344,7 +15074,7 @@ def core_user_consent_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_retrieve_serialize( + _param = self._core_user_consent_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -15353,7 +15083,7 @@ def core_user_consent_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserConsent", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -15364,7 +15094,7 @@ def core_user_consent_retrieve_without_preload_content( return response_data.response - def _core_user_consent_retrieve_serialize( + def _core_user_consent_used_by_list_serialize( self, id, _request_auth, @@ -15412,7 +15142,7 @@ def _core_user_consent_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/core/user_consent/{id}/', + resource_path='/core/user_consent/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15429,9 +15159,9 @@ def _core_user_consent_retrieve_serialize( @validate_call - def core_user_consent_used_by_list( + def core_users_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], + user_request: UserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15444,13 +15174,13 @@ def core_user_consent_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """core_user_consent_used_by_list + ) -> User: + """core_users_create - Get a list of all objects that use this object + User Viewset - :param id: A unique integer value identifying this User Consent. (required) - :type id: int + :param user_request: (required) + :type user_request: UserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15473,8 +15203,8 @@ def core_user_consent_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_used_by_list_serialize( - id=id, + _param = self._core_users_create_serialize( + user_request=user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15482,7 +15212,7 @@ def core_user_consent_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "User", '400': "ValidationError", '403': "GenericError", } @@ -15498,9 +15228,9 @@ def core_user_consent_used_by_list( @validate_call - def core_user_consent_used_by_list_with_http_info( + def core_users_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], + user_request: UserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15513,13 +15243,13 @@ def core_user_consent_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """core_user_consent_used_by_list + ) -> ApiResponse[User]: + """core_users_create - Get a list of all objects that use this object + User Viewset - :param id: A unique integer value identifying this User Consent. (required) - :type id: int + :param user_request: (required) + :type user_request: UserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15542,8 +15272,8 @@ def core_user_consent_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_used_by_list_serialize( - id=id, + _param = self._core_users_create_serialize( + user_request=user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15551,7 +15281,7 @@ def core_user_consent_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "User", '400': "ValidationError", '403': "GenericError", } @@ -15567,9 +15297,9 @@ def core_user_consent_used_by_list_with_http_info( @validate_call - def core_user_consent_used_by_list_without_preload_content( + def core_users_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User Consent.")], + user_request: UserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15583,12 +15313,12 @@ def core_user_consent_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_user_consent_used_by_list + """core_users_create - Get a list of all objects that use this object + User Viewset - :param id: A unique integer value identifying this User Consent. (required) - :type id: int + :param user_request: (required) + :type user_request: UserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15611,8 +15341,8 @@ def core_user_consent_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_user_consent_used_by_list_serialize( - id=id, + _param = self._core_users_create_serialize( + user_request=user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15620,7 +15350,7 @@ def core_user_consent_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "User", '400': "ValidationError", '403': "GenericError", } @@ -15631,9 +15361,9 @@ def core_user_consent_used_by_list_without_preload_content( return response_data.response - def _core_user_consent_used_by_list_serialize( + def _core_users_create_serialize( self, - id, + user_request, _request_auth, _content_type, _headers, @@ -15655,12 +15385,12 @@ def _core_user_consent_used_by_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if user_request is not None: + _body_params = user_request # set the HTTP header `Accept` @@ -15671,6 +15401,19 @@ def _core_user_consent_used_by_list_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -15678,8 +15421,8 @@ def _core_user_consent_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/core/user_consent/{id}/used_by/', + method='POST', + resource_path='/core/users/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15696,9 +15439,9 @@ def _core_user_consent_used_by_list_serialize( @validate_call - def core_users_create( + def core_users_destroy( self, - user_request: UserRequest, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15711,13 +15454,13 @@ def core_users_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> User: - """core_users_create + ) -> None: + """core_users_destroy User Viewset - :param user_request: (required) - :type user_request: UserRequest + :param id: A unique integer value identifying this User. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15740,8 +15483,8 @@ def core_users_create( :return: Returns the result object. """ # noqa: E501 - _param = self._core_users_create_serialize( - user_request=user_request, + _param = self._core_users_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15749,7 +15492,7 @@ def core_users_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "User", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -15765,9 +15508,9 @@ def core_users_create( @validate_call - def core_users_create_with_http_info( + def core_users_destroy_with_http_info( self, - user_request: UserRequest, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15780,13 +15523,13 @@ def core_users_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[User]: - """core_users_create + ) -> ApiResponse[None]: + """core_users_destroy User Viewset - :param user_request: (required) - :type user_request: UserRequest + :param id: A unique integer value identifying this User. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15809,8 +15552,8 @@ def core_users_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_users_create_serialize( - user_request=user_request, + _param = self._core_users_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15818,7 +15561,7 @@ def core_users_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "User", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -15834,9 +15577,9 @@ def core_users_create_with_http_info( @validate_call - def core_users_create_without_preload_content( + def core_users_destroy_without_preload_content( self, - user_request: UserRequest, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15850,12 +15593,12 @@ def core_users_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_users_create + """core_users_destroy User Viewset - :param user_request: (required) - :type user_request: UserRequest + :param id: A unique integer value identifying this User. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15878,8 +15621,8 @@ def core_users_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_users_create_serialize( - user_request=user_request, + _param = self._core_users_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15887,7 +15630,7 @@ def core_users_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "User", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -15898,9 +15641,9 @@ def core_users_create_without_preload_content( return response_data.response - def _core_users_create_serialize( + def _core_users_destroy_serialize( self, - user_request, + id, _request_auth, _content_type, _headers, @@ -15922,12 +15665,12 @@ def _core_users_create_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if user_request is not None: - _body_params = user_request # set the HTTP header `Accept` @@ -15938,19 +15681,6 @@ def _core_users_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -15958,8 +15688,8 @@ def _core_users_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/core/users/', + method='DELETE', + resource_path='/core/users/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15976,9 +15706,30 @@ def _core_users_create_serialize( @validate_call - def core_users_destroy( + def core_users_export_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], + attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, + date_joined: Optional[datetime] = None, + date_joined__gt: Optional[datetime] = None, + date_joined__lt: Optional[datetime] = None, + email: Optional[StrictStr] = None, + groups_by_name: Optional[List[StrictStr]] = None, + groups_by_pk: Optional[List[UUID]] = None, + is_active: Optional[StrictBool] = None, + is_superuser: Optional[StrictBool] = None, + last_updated: Optional[datetime] = None, + last_updated__gt: Optional[datetime] = None, + last_updated__lt: Optional[datetime] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + path: Optional[StrictStr] = None, + path_startswith: Optional[StrictStr] = None, + roles_by_name: Optional[List[StrictStr]] = None, + roles_by_pk: Optional[List[UUID]] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + type: Optional[List[StrictStr]] = None, + username: Optional[StrictStr] = None, + uuid: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15991,13 +15742,55 @@ def core_users_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """core_users_destroy + ) -> DataExport: + """core_users_export_create - User Viewset + Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download - :param id: A unique integer value identifying this User. (required) - :type id: int + :param attributes: Attributes + :type attributes: str + :param date_joined: + :type date_joined: datetime + :param date_joined__gt: + :type date_joined__gt: datetime + :param date_joined__lt: + :type date_joined__lt: datetime + :param email: + :type email: str + :param groups_by_name: + :type groups_by_name: List[str] + :param groups_by_pk: + :type groups_by_pk: List[str] + :param is_active: + :type is_active: bool + :param is_superuser: + :type is_superuser: bool + :param last_updated: + :type last_updated: datetime + :param last_updated__gt: + :type last_updated__gt: datetime + :param last_updated__lt: + :type last_updated__lt: datetime + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param path: + :type path: str + :param path_startswith: + :type path_startswith: str + :param roles_by_name: + :type roles_by_name: List[str] + :param roles_by_pk: + :type roles_by_pk: List[str] + :param search: A search term. + :type search: str + :param type: + :type type: List[str] + :param username: + :type username: str + :param uuid: + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16020,8 +15813,29 @@ def core_users_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._core_users_destroy_serialize( - id=id, + _param = self._core_users_export_create_serialize( + attributes=attributes, + date_joined=date_joined, + date_joined__gt=date_joined__gt, + date_joined__lt=date_joined__lt, + email=email, + groups_by_name=groups_by_name, + groups_by_pk=groups_by_pk, + is_active=is_active, + is_superuser=is_superuser, + last_updated=last_updated, + last_updated__gt=last_updated__gt, + last_updated__lt=last_updated__lt, + name=name, + ordering=ordering, + path=path, + path_startswith=path_startswith, + roles_by_name=roles_by_name, + roles_by_pk=roles_by_pk, + search=search, + type=type, + username=username, + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16029,7 +15843,7 @@ def core_users_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "DataExport", '400': "ValidationError", '403': "GenericError", } @@ -16045,9 +15859,30 @@ def core_users_destroy( @validate_call - def core_users_destroy_with_http_info( + def core_users_export_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], + attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, + date_joined: Optional[datetime] = None, + date_joined__gt: Optional[datetime] = None, + date_joined__lt: Optional[datetime] = None, + email: Optional[StrictStr] = None, + groups_by_name: Optional[List[StrictStr]] = None, + groups_by_pk: Optional[List[UUID]] = None, + is_active: Optional[StrictBool] = None, + is_superuser: Optional[StrictBool] = None, + last_updated: Optional[datetime] = None, + last_updated__gt: Optional[datetime] = None, + last_updated__lt: Optional[datetime] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + path: Optional[StrictStr] = None, + path_startswith: Optional[StrictStr] = None, + roles_by_name: Optional[List[StrictStr]] = None, + roles_by_pk: Optional[List[UUID]] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + type: Optional[List[StrictStr]] = None, + username: Optional[StrictStr] = None, + uuid: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16060,13 +15895,55 @@ def core_users_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """core_users_destroy + ) -> ApiResponse[DataExport]: + """core_users_export_create - User Viewset + Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download - :param id: A unique integer value identifying this User. (required) - :type id: int + :param attributes: Attributes + :type attributes: str + :param date_joined: + :type date_joined: datetime + :param date_joined__gt: + :type date_joined__gt: datetime + :param date_joined__lt: + :type date_joined__lt: datetime + :param email: + :type email: str + :param groups_by_name: + :type groups_by_name: List[str] + :param groups_by_pk: + :type groups_by_pk: List[str] + :param is_active: + :type is_active: bool + :param is_superuser: + :type is_superuser: bool + :param last_updated: + :type last_updated: datetime + :param last_updated__gt: + :type last_updated__gt: datetime + :param last_updated__lt: + :type last_updated__lt: datetime + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param path: + :type path: str + :param path_startswith: + :type path_startswith: str + :param roles_by_name: + :type roles_by_name: List[str] + :param roles_by_pk: + :type roles_by_pk: List[str] + :param search: A search term. + :type search: str + :param type: + :type type: List[str] + :param username: + :type username: str + :param uuid: + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16089,8 +15966,29 @@ def core_users_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._core_users_destroy_serialize( - id=id, + _param = self._core_users_export_create_serialize( + attributes=attributes, + date_joined=date_joined, + date_joined__gt=date_joined__gt, + date_joined__lt=date_joined__lt, + email=email, + groups_by_name=groups_by_name, + groups_by_pk=groups_by_pk, + is_active=is_active, + is_superuser=is_superuser, + last_updated=last_updated, + last_updated__gt=last_updated__gt, + last_updated__lt=last_updated__lt, + name=name, + ordering=ordering, + path=path, + path_startswith=path_startswith, + roles_by_name=roles_by_name, + roles_by_pk=roles_by_pk, + search=search, + type=type, + username=username, + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16098,7 +15996,7 @@ def core_users_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "DataExport", '400': "ValidationError", '403': "GenericError", } @@ -16114,9 +16012,30 @@ def core_users_destroy_with_http_info( @validate_call - def core_users_destroy_without_preload_content( + def core_users_export_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], + attributes: Annotated[Optional[StrictStr], Field(description="Attributes")] = None, + date_joined: Optional[datetime] = None, + date_joined__gt: Optional[datetime] = None, + date_joined__lt: Optional[datetime] = None, + email: Optional[StrictStr] = None, + groups_by_name: Optional[List[StrictStr]] = None, + groups_by_pk: Optional[List[UUID]] = None, + is_active: Optional[StrictBool] = None, + is_superuser: Optional[StrictBool] = None, + last_updated: Optional[datetime] = None, + last_updated__gt: Optional[datetime] = None, + last_updated__lt: Optional[datetime] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + path: Optional[StrictStr] = None, + path_startswith: Optional[StrictStr] = None, + roles_by_name: Optional[List[StrictStr]] = None, + roles_by_pk: Optional[List[UUID]] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + type: Optional[List[StrictStr]] = None, + username: Optional[StrictStr] = None, + uuid: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16130,12 +16049,54 @@ def core_users_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """core_users_destroy + """core_users_export_create - User Viewset + Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download - :param id: A unique integer value identifying this User. (required) - :type id: int + :param attributes: Attributes + :type attributes: str + :param date_joined: + :type date_joined: datetime + :param date_joined__gt: + :type date_joined__gt: datetime + :param date_joined__lt: + :type date_joined__lt: datetime + :param email: + :type email: str + :param groups_by_name: + :type groups_by_name: List[str] + :param groups_by_pk: + :type groups_by_pk: List[str] + :param is_active: + :type is_active: bool + :param is_superuser: + :type is_superuser: bool + :param last_updated: + :type last_updated: datetime + :param last_updated__gt: + :type last_updated__gt: datetime + :param last_updated__lt: + :type last_updated__lt: datetime + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param path: + :type path: str + :param path_startswith: + :type path_startswith: str + :param roles_by_name: + :type roles_by_name: List[str] + :param roles_by_pk: + :type roles_by_pk: List[str] + :param search: A search term. + :type search: str + :param type: + :type type: List[str] + :param username: + :type username: str + :param uuid: + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16158,8 +16119,29 @@ def core_users_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._core_users_destroy_serialize( - id=id, + _param = self._core_users_export_create_serialize( + attributes=attributes, + date_joined=date_joined, + date_joined__gt=date_joined__gt, + date_joined__lt=date_joined__lt, + email=email, + groups_by_name=groups_by_name, + groups_by_pk=groups_by_pk, + is_active=is_active, + is_superuser=is_superuser, + last_updated=last_updated, + last_updated__gt=last_updated__gt, + last_updated__lt=last_updated__lt, + name=name, + ordering=ordering, + path=path, + path_startswith=path_startswith, + roles_by_name=roles_by_name, + roles_by_pk=roles_by_pk, + search=search, + type=type, + username=username, + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16167,7 +16149,7 @@ def core_users_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "DataExport", '400': "ValidationError", '403': "GenericError", } @@ -16178,9 +16160,30 @@ def core_users_destroy_without_preload_content( return response_data.response - def _core_users_destroy_serialize( + def _core_users_export_create_serialize( self, - id, + attributes, + date_joined, + date_joined__gt, + date_joined__lt, + email, + groups_by_name, + groups_by_pk, + is_active, + is_superuser, + last_updated, + last_updated__gt, + last_updated__lt, + name, + ordering, + path, + path_startswith, + roles_by_name, + roles_by_pk, + search, + type, + username, + uuid, _request_auth, _content_type, _headers, @@ -16190,6 +16193,11 @@ def _core_users_destroy_serialize( _host = None _collection_formats: Dict[str, str] = { + 'groups_by_name': 'multi', + 'groups_by_pk': 'multi', + 'roles_by_name': 'multi', + 'roles_by_pk': 'multi', + 'type': 'multi', } _path_params: Dict[str, str] = {} @@ -16202,9 +16210,149 @@ def _core_users_destroy_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if attributes is not None: + + _query_params.append(('attributes', attributes)) + + if date_joined is not None: + if isinstance(date_joined, datetime): + _query_params.append( + ( + 'date_joined', + date_joined.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('date_joined', date_joined)) + + if date_joined__gt is not None: + if isinstance(date_joined__gt, datetime): + _query_params.append( + ( + 'date_joined__gt', + date_joined__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('date_joined__gt', date_joined__gt)) + + if date_joined__lt is not None: + if isinstance(date_joined__lt, datetime): + _query_params.append( + ( + 'date_joined__lt', + date_joined__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('date_joined__lt', date_joined__lt)) + + if email is not None: + + _query_params.append(('email', email)) + + if groups_by_name is not None: + + _query_params.append(('groups_by_name', groups_by_name)) + + if groups_by_pk is not None: + + _query_params.append(('groups_by_pk', groups_by_pk)) + + if is_active is not None: + + _query_params.append(('is_active', is_active)) + + if is_superuser is not None: + + _query_params.append(('is_superuser', is_superuser)) + + if last_updated is not None: + if isinstance(last_updated, datetime): + _query_params.append( + ( + 'last_updated', + last_updated.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_updated', last_updated)) + + if last_updated__gt is not None: + if isinstance(last_updated__gt, datetime): + _query_params.append( + ( + 'last_updated__gt', + last_updated__gt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_updated__gt', last_updated__gt)) + + if last_updated__lt is not None: + if isinstance(last_updated__lt, datetime): + _query_params.append( + ( + 'last_updated__lt', + last_updated__lt.strftime( + self.api_client.configuration.datetime_format + ) + ) + ) + else: + _query_params.append(('last_updated__lt', last_updated__lt)) + + if name is not None: + + _query_params.append(('name', name)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if path is not None: + + _query_params.append(('path', path)) + + if path_startswith is not None: + + _query_params.append(('path_startswith', path_startswith)) + + if roles_by_name is not None: + + _query_params.append(('roles_by_name', roles_by_name)) + + if roles_by_pk is not None: + + _query_params.append(('roles_by_pk', roles_by_pk)) + + if search is not None: + + _query_params.append(('search', search)) + + if type is not None: + + _query_params.append(('type', type)) + + if username is not None: + + _query_params.append(('username', username)) + + if uuid is not None: + + _query_params.append(('uuid', uuid)) + # process the header parameters # process the form parameters # process the body parameter @@ -16225,8 +16373,8 @@ def _core_users_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/core/users/{id}/', + method='POST', + resource_path='/core/users/export/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16800,6 +16948,7 @@ def core_users_list( groups_by_name: Optional[List[StrictStr]] = None, groups_by_pk: Optional[List[UUID]] = None, include_groups: Optional[StrictBool] = None, + include_roles: Optional[StrictBool] = None, is_active: Optional[StrictBool] = None, is_superuser: Optional[StrictBool] = None, last_updated: Optional[datetime] = None, @@ -16811,6 +16960,8 @@ def core_users_list( page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, path: Optional[StrictStr] = None, path_startswith: Optional[StrictStr] = None, + roles_by_name: Optional[List[StrictStr]] = None, + roles_by_pk: Optional[List[UUID]] = None, search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, type: Optional[List[StrictStr]] = None, username: Optional[StrictStr] = None, @@ -16848,6 +16999,8 @@ def core_users_list( :type groups_by_pk: List[str] :param include_groups: :type include_groups: bool + :param include_roles: + :type include_roles: bool :param is_active: :type is_active: bool :param is_superuser: @@ -16870,6 +17023,10 @@ def core_users_list( :type path: str :param path_startswith: :type path_startswith: str + :param roles_by_name: + :type roles_by_name: List[str] + :param roles_by_pk: + :type roles_by_pk: List[str] :param search: A search term. :type search: str :param type: @@ -16909,6 +17066,7 @@ def core_users_list( groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, include_groups=include_groups, + include_roles=include_roles, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, @@ -16920,6 +17078,8 @@ def core_users_list( page_size=page_size, path=path, path_startswith=path_startswith, + roles_by_name=roles_by_name, + roles_by_pk=roles_by_pk, search=search, type=type, username=username, @@ -16957,6 +17117,7 @@ def core_users_list_with_http_info( groups_by_name: Optional[List[StrictStr]] = None, groups_by_pk: Optional[List[UUID]] = None, include_groups: Optional[StrictBool] = None, + include_roles: Optional[StrictBool] = None, is_active: Optional[StrictBool] = None, is_superuser: Optional[StrictBool] = None, last_updated: Optional[datetime] = None, @@ -16968,6 +17129,8 @@ def core_users_list_with_http_info( page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, path: Optional[StrictStr] = None, path_startswith: Optional[StrictStr] = None, + roles_by_name: Optional[List[StrictStr]] = None, + roles_by_pk: Optional[List[UUID]] = None, search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, type: Optional[List[StrictStr]] = None, username: Optional[StrictStr] = None, @@ -17005,6 +17168,8 @@ def core_users_list_with_http_info( :type groups_by_pk: List[str] :param include_groups: :type include_groups: bool + :param include_roles: + :type include_roles: bool :param is_active: :type is_active: bool :param is_superuser: @@ -17027,6 +17192,10 @@ def core_users_list_with_http_info( :type path: str :param path_startswith: :type path_startswith: str + :param roles_by_name: + :type roles_by_name: List[str] + :param roles_by_pk: + :type roles_by_pk: List[str] :param search: A search term. :type search: str :param type: @@ -17066,6 +17235,7 @@ def core_users_list_with_http_info( groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, include_groups=include_groups, + include_roles=include_roles, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, @@ -17077,6 +17247,8 @@ def core_users_list_with_http_info( page_size=page_size, path=path, path_startswith=path_startswith, + roles_by_name=roles_by_name, + roles_by_pk=roles_by_pk, search=search, type=type, username=username, @@ -17114,6 +17286,7 @@ def core_users_list_without_preload_content( groups_by_name: Optional[List[StrictStr]] = None, groups_by_pk: Optional[List[UUID]] = None, include_groups: Optional[StrictBool] = None, + include_roles: Optional[StrictBool] = None, is_active: Optional[StrictBool] = None, is_superuser: Optional[StrictBool] = None, last_updated: Optional[datetime] = None, @@ -17125,6 +17298,8 @@ def core_users_list_without_preload_content( page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, path: Optional[StrictStr] = None, path_startswith: Optional[StrictStr] = None, + roles_by_name: Optional[List[StrictStr]] = None, + roles_by_pk: Optional[List[UUID]] = None, search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, type: Optional[List[StrictStr]] = None, username: Optional[StrictStr] = None, @@ -17162,6 +17337,8 @@ def core_users_list_without_preload_content( :type groups_by_pk: List[str] :param include_groups: :type include_groups: bool + :param include_roles: + :type include_roles: bool :param is_active: :type is_active: bool :param is_superuser: @@ -17184,6 +17361,10 @@ def core_users_list_without_preload_content( :type path: str :param path_startswith: :type path_startswith: str + :param roles_by_name: + :type roles_by_name: List[str] + :param roles_by_pk: + :type roles_by_pk: List[str] :param search: A search term. :type search: str :param type: @@ -17223,6 +17404,7 @@ def core_users_list_without_preload_content( groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, include_groups=include_groups, + include_roles=include_roles, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, @@ -17234,6 +17416,8 @@ def core_users_list_without_preload_content( page_size=page_size, path=path, path_startswith=path_startswith, + roles_by_name=roles_by_name, + roles_by_pk=roles_by_pk, search=search, type=type, username=username, @@ -17266,6 +17450,7 @@ def _core_users_list_serialize( groups_by_name, groups_by_pk, include_groups, + include_roles, is_active, is_superuser, last_updated, @@ -17277,6 +17462,8 @@ def _core_users_list_serialize( page_size, path, path_startswith, + roles_by_name, + roles_by_pk, search, type, username, @@ -17292,6 +17479,8 @@ def _core_users_list_serialize( _collection_formats: Dict[str, str] = { 'groups_by_name': 'multi', 'groups_by_pk': 'multi', + 'roles_by_name': 'multi', + 'roles_by_pk': 'multi', 'type': 'multi', } @@ -17365,6 +17554,10 @@ def _core_users_list_serialize( _query_params.append(('include_groups', include_groups)) + if include_roles is not None: + + _query_params.append(('include_roles', include_roles)) + if is_active is not None: _query_params.append(('is_active', is_active)) @@ -17436,6 +17629,14 @@ def _core_users_list_serialize( _query_params.append(('path_startswith', path_startswith)) + if roles_by_name is not None: + + _query_params.append(('roles_by_name', roles_by_name)) + + if roles_by_pk is not None: + + _query_params.append(('roles_by_pk', roles_by_pk)) + if search is not None: _query_params.append(('search', search)) diff --git a/authentik_client/api/crypto_api.py b/authentik_client/api/crypto_api.py index cd36a5364..a343ffd9b 100644 --- a/authentik_client/api/crypto_api.py +++ b/authentik_client/api/crypto_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictInt, StrictStr +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated from uuid import UUID @@ -879,6 +879,7 @@ def crypto_certificatekeypairs_list( self, has_key: Annotated[Optional[StrictBool], Field(description="Only return certificate-key pairs with keys")] = None, include_details: Optional[StrictBool] = None, + key_type: Annotated[Optional[List[StrictStr]], Field(description="Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec')")] = None, managed: Optional[StrictStr] = None, name: Optional[StrictStr] = None, ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, @@ -906,6 +907,8 @@ def crypto_certificatekeypairs_list( :type has_key: bool :param include_details: :type include_details: bool + :param key_type: Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec') + :type key_type: List[str] :param managed: :type managed: str :param name: @@ -943,6 +946,7 @@ def crypto_certificatekeypairs_list( _param = self._crypto_certificatekeypairs_list_serialize( has_key=has_key, include_details=include_details, + key_type=key_type, managed=managed, name=name, ordering=ordering, @@ -976,6 +980,7 @@ def crypto_certificatekeypairs_list_with_http_info( self, has_key: Annotated[Optional[StrictBool], Field(description="Only return certificate-key pairs with keys")] = None, include_details: Optional[StrictBool] = None, + key_type: Annotated[Optional[List[StrictStr]], Field(description="Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec')")] = None, managed: Optional[StrictStr] = None, name: Optional[StrictStr] = None, ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, @@ -1003,6 +1008,8 @@ def crypto_certificatekeypairs_list_with_http_info( :type has_key: bool :param include_details: :type include_details: bool + :param key_type: Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec') + :type key_type: List[str] :param managed: :type managed: str :param name: @@ -1040,6 +1047,7 @@ def crypto_certificatekeypairs_list_with_http_info( _param = self._crypto_certificatekeypairs_list_serialize( has_key=has_key, include_details=include_details, + key_type=key_type, managed=managed, name=name, ordering=ordering, @@ -1073,6 +1081,7 @@ def crypto_certificatekeypairs_list_without_preload_content( self, has_key: Annotated[Optional[StrictBool], Field(description="Only return certificate-key pairs with keys")] = None, include_details: Optional[StrictBool] = None, + key_type: Annotated[Optional[List[StrictStr]], Field(description="Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec')")] = None, managed: Optional[StrictStr] = None, name: Optional[StrictStr] = None, ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, @@ -1100,6 +1109,8 @@ def crypto_certificatekeypairs_list_without_preload_content( :type has_key: bool :param include_details: :type include_details: bool + :param key_type: Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec') + :type key_type: List[str] :param managed: :type managed: str :param name: @@ -1137,6 +1148,7 @@ def crypto_certificatekeypairs_list_without_preload_content( _param = self._crypto_certificatekeypairs_list_serialize( has_key=has_key, include_details=include_details, + key_type=key_type, managed=managed, name=name, ordering=ordering, @@ -1165,6 +1177,7 @@ def _crypto_certificatekeypairs_list_serialize( self, has_key, include_details, + key_type, managed, name, ordering, @@ -1180,6 +1193,7 @@ def _crypto_certificatekeypairs_list_serialize( _host = None _collection_formats: Dict[str, str] = { + 'key_type': 'multi', } _path_params: Dict[str, str] = {} @@ -1201,6 +1215,10 @@ def _crypto_certificatekeypairs_list_serialize( _query_params.append(('include_details', include_details)) + if key_type is not None: + + _query_params.append(('key_type', key_type)) + if managed is not None: _query_params.append(('managed', managed)) diff --git a/authentik_client/api/endpoints_api.py b/authentik_client/api/endpoints_api.py new file mode 100644 index 000000000..f00feef3c --- /dev/null +++ b/authentik_client/api/endpoints_api.py @@ -0,0 +1,14082 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictBool, StrictInt, StrictStr +from typing import List, Optional +from typing_extensions import Annotated +from uuid import UUID +from authentik_client.models.agent_authentication_response import AgentAuthenticationResponse +from authentik_client.models.agent_config import AgentConfig +from authentik_client.models.agent_connector import AgentConnector +from authentik_client.models.agent_connector_request import AgentConnectorRequest +from authentik_client.models.agent_psso_device_registration_request import AgentPSSODeviceRegistrationRequest +from authentik_client.models.agent_psso_device_registration_response import AgentPSSODeviceRegistrationResponse +from authentik_client.models.agent_psso_user_registration_request import AgentPSSOUserRegistrationRequest +from authentik_client.models.agent_token_response import AgentTokenResponse +from authentik_client.models.connector import Connector +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest +from authentik_client.models.device_facts_request import DeviceFactsRequest +from authentik_client.models.device_summary import DeviceSummary +from authentik_client.models.device_user_binding import DeviceUserBinding +from authentik_client.models.device_user_binding_request import DeviceUserBindingRequest +from authentik_client.models.endpoint_device import EndpointDevice +from authentik_client.models.endpoint_device_details import EndpointDeviceDetails +from authentik_client.models.endpoint_device_request import EndpointDeviceRequest +from authentik_client.models.enroll_request import EnrollRequest +from authentik_client.models.enrollment_token import EnrollmentToken +from authentik_client.models.enrollment_token_request import EnrollmentTokenRequest +from authentik_client.models.mdm_config_request import MDMConfigRequest +from authentik_client.models.mdm_config_response import MDMConfigResponse +from authentik_client.models.paginated_agent_connector_list import PaginatedAgentConnectorList +from authentik_client.models.paginated_connector_list import PaginatedConnectorList +from authentik_client.models.paginated_device_access_group_list import PaginatedDeviceAccessGroupList +from authentik_client.models.paginated_device_user_binding_list import PaginatedDeviceUserBindingList +from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList +from authentik_client.models.paginated_enrollment_token_list import PaginatedEnrollmentTokenList +from authentik_client.models.patched_agent_connector_request import PatchedAgentConnectorRequest +from authentik_client.models.patched_device_access_group_request import PatchedDeviceAccessGroupRequest +from authentik_client.models.patched_device_user_binding_request import PatchedDeviceUserBindingRequest +from authentik_client.models.patched_endpoint_device_request import PatchedEndpointDeviceRequest +from authentik_client.models.patched_enrollment_token_request import PatchedEnrollmentTokenRequest +from authentik_client.models.token_view import TokenView +from authentik_client.models.type_create import TypeCreate +from authentik_client.models.used_by import UsedBy +from authentik_client.models.user_self import UserSelf + +from authentik_client.api_client import ApiClient, RequestSerialized +from authentik_client.api_response import ApiResponse +from authentik_client.rest import RESTResponseType + + +class EndpointsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def endpoints_agents_connectors_agent_config_retrieve( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentConfig: + """endpoints_agents_connectors_agent_config_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_agent_config_retrieve_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConfig", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_agent_config_retrieve_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentConfig]: + """endpoints_agents_connectors_agent_config_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_agent_config_retrieve_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConfig", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_agent_config_retrieve_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_agent_config_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_agent_config_retrieve_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConfig", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_agent_config_retrieve_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/agents/connectors/agent_config/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_auth_fed_create( + self, + device: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentTokenResponse: + """endpoints_agents_connectors_auth_fed_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device: (required) + :type device: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_auth_fed_create_serialize( + device=device, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentTokenResponse", + '404': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_auth_fed_create_with_http_info( + self, + device: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentTokenResponse]: + """endpoints_agents_connectors_auth_fed_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device: (required) + :type device: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_auth_fed_create_serialize( + device=device, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentTokenResponse", + '404': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_auth_fed_create_without_preload_content( + self, + device: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_auth_fed_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device: (required) + :type device: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_auth_fed_create_serialize( + device=device, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentTokenResponse", + '404': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_auth_fed_create_serialize( + self, + device, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if device is not None: + + _query_params.append(('device', device)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/connectors/auth_fed/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_auth_ia_create( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentAuthenticationResponse: + """endpoints_agents_connectors_auth_ia_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_auth_ia_create_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentAuthenticationResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_auth_ia_create_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentAuthenticationResponse]: + """endpoints_agents_connectors_auth_ia_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_auth_ia_create_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentAuthenticationResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_auth_ia_create_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_auth_ia_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_auth_ia_create_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentAuthenticationResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_auth_ia_create_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/connectors/auth_ia/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_check_in_create( + self, + device_facts_request: Optional[DeviceFactsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """endpoints_agents_connectors_check_in_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_facts_request: + :type device_facts_request: DeviceFactsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_check_in_create_serialize( + device_facts_request=device_facts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_check_in_create_with_http_info( + self, + device_facts_request: Optional[DeviceFactsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """endpoints_agents_connectors_check_in_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_facts_request: + :type device_facts_request: DeviceFactsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_check_in_create_serialize( + device_facts_request=device_facts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_check_in_create_without_preload_content( + self, + device_facts_request: Optional[DeviceFactsRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_check_in_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_facts_request: + :type device_facts_request: DeviceFactsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_check_in_create_serialize( + device_facts_request=device_facts_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_check_in_create_serialize( + self, + device_facts_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if device_facts_request is not None: + _body_params = device_facts_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/connectors/check_in/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_create( + self, + agent_connector_request: AgentConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentConnector: + """endpoints_agents_connectors_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param agent_connector_request: (required) + :type agent_connector_request: AgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_create_serialize( + agent_connector_request=agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_create_with_http_info( + self, + agent_connector_request: AgentConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentConnector]: + """endpoints_agents_connectors_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param agent_connector_request: (required) + :type agent_connector_request: AgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_create_serialize( + agent_connector_request=agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_create_without_preload_content( + self, + agent_connector_request: AgentConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param agent_connector_request: (required) + :type agent_connector_request: AgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_create_serialize( + agent_connector_request=agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_create_serialize( + self, + agent_connector_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if agent_connector_request is not None: + _body_params = agent_connector_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/connectors/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_destroy( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """endpoints_agents_connectors_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_destroy_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_destroy_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """endpoints_agents_connectors_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_destroy_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_destroy_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_destroy_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_destroy_serialize( + self, + connector_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/endpoints/agents/connectors/{connector_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_enroll_create( + self, + enroll_request: EnrollRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentTokenResponse: + """endpoints_agents_connectors_enroll_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enroll_request: (required) + :type enroll_request: EnrollRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_enroll_create_serialize( + enroll_request=enroll_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentTokenResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_enroll_create_with_http_info( + self, + enroll_request: EnrollRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentTokenResponse]: + """endpoints_agents_connectors_enroll_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enroll_request: (required) + :type enroll_request: EnrollRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_enroll_create_serialize( + enroll_request=enroll_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentTokenResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_enroll_create_without_preload_content( + self, + enroll_request: EnrollRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_enroll_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enroll_request: (required) + :type enroll_request: EnrollRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_enroll_create_serialize( + enroll_request=enroll_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentTokenResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_enroll_create_serialize( + self, + enroll_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if enroll_request is not None: + _body_params = enroll_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/connectors/enroll/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_list( + self, + enabled: Optional[StrictBool] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedAgentConnectorList: + """endpoints_agents_connectors_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enabled: + :type enabled: bool + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_list_serialize( + enabled=enabled, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAgentConnectorList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_list_with_http_info( + self, + enabled: Optional[StrictBool] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedAgentConnectorList]: + """endpoints_agents_connectors_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enabled: + :type enabled: bool + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_list_serialize( + enabled=enabled, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAgentConnectorList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_list_without_preload_content( + self, + enabled: Optional[StrictBool] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enabled: + :type enabled: bool + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_list_serialize( + enabled=enabled, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedAgentConnectorList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_list_serialize( + self, + enabled, + name, + ordering, + page, + page_size, + search, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if enabled is not None: + + _query_params.append(('enabled', enabled)) + + if name is not None: + + _query_params.append(('name', name)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/agents/connectors/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_mdm_config_create( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + mdm_config_request: MDMConfigRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> MDMConfigResponse: + """endpoints_agents_connectors_mdm_config_create + + Generate configuration for MDM systems to deploy authentik Agent + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param mdm_config_request: (required) + :type mdm_config_request: MDMConfigRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_mdm_config_create_serialize( + connector_uuid=connector_uuid, + mdm_config_request=mdm_config_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "MDMConfigResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_mdm_config_create_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + mdm_config_request: MDMConfigRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[MDMConfigResponse]: + """endpoints_agents_connectors_mdm_config_create + + Generate configuration for MDM systems to deploy authentik Agent + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param mdm_config_request: (required) + :type mdm_config_request: MDMConfigRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_mdm_config_create_serialize( + connector_uuid=connector_uuid, + mdm_config_request=mdm_config_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "MDMConfigResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_mdm_config_create_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + mdm_config_request: MDMConfigRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_mdm_config_create + + Generate configuration for MDM systems to deploy authentik Agent + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param mdm_config_request: (required) + :type mdm_config_request: MDMConfigRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_mdm_config_create_serialize( + connector_uuid=connector_uuid, + mdm_config_request=mdm_config_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "MDMConfigResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_mdm_config_create_serialize( + self, + connector_uuid, + mdm_config_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if mdm_config_request is not None: + _body_params = mdm_config_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/connectors/{connector_uuid}/mdm_config/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_partial_update( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + patched_agent_connector_request: Optional[PatchedAgentConnectorRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentConnector: + """endpoints_agents_connectors_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param patched_agent_connector_request: + :type patched_agent_connector_request: PatchedAgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_partial_update_serialize( + connector_uuid=connector_uuid, + patched_agent_connector_request=patched_agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_partial_update_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + patched_agent_connector_request: Optional[PatchedAgentConnectorRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentConnector]: + """endpoints_agents_connectors_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param patched_agent_connector_request: + :type patched_agent_connector_request: PatchedAgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_partial_update_serialize( + connector_uuid=connector_uuid, + patched_agent_connector_request=patched_agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_partial_update_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + patched_agent_connector_request: Optional[PatchedAgentConnectorRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param patched_agent_connector_request: + :type patched_agent_connector_request: PatchedAgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_partial_update_serialize( + connector_uuid=connector_uuid, + patched_agent_connector_request=patched_agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_partial_update_serialize( + self, + connector_uuid, + patched_agent_connector_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if patched_agent_connector_request is not None: + _body_params = patched_agent_connector_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/endpoints/agents/connectors/{connector_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_retrieve( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentConnector: + """endpoints_agents_connectors_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_retrieve_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_retrieve_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentConnector]: + """endpoints_agents_connectors_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_retrieve_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_retrieve_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_retrieve_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_retrieve_serialize( + self, + connector_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/agents/connectors/{connector_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_update( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + agent_connector_request: AgentConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentConnector: + """endpoints_agents_connectors_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param agent_connector_request: (required) + :type agent_connector_request: AgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_update_serialize( + connector_uuid=connector_uuid, + agent_connector_request=agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_update_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + agent_connector_request: AgentConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentConnector]: + """endpoints_agents_connectors_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param agent_connector_request: (required) + :type agent_connector_request: AgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_update_serialize( + connector_uuid=connector_uuid, + agent_connector_request=agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_update_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + agent_connector_request: AgentConnectorRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param agent_connector_request: (required) + :type agent_connector_request: AgentConnectorRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_update_serialize( + connector_uuid=connector_uuid, + agent_connector_request=agent_connector_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentConnector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_update_serialize( + self, + connector_uuid, + agent_connector_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if agent_connector_request is not None: + _body_params = agent_connector_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/endpoints/agents/connectors/{connector_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_connectors_used_by_list( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UsedBy]: + """endpoints_agents_connectors_used_by_list + + Get a list of all objects that use this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_used_by_list_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_connectors_used_by_list_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UsedBy]]: + """endpoints_agents_connectors_used_by_list + + Get a list of all objects that use this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_used_by_list_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_connectors_used_by_list_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this Agent Connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_connectors_used_by_list + + Get a list of all objects that use this object + + :param connector_uuid: A UUID string identifying this Agent Connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_connectors_used_by_list_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_connectors_used_by_list_serialize( + self, + connector_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/agents/connectors/{connector_uuid}/used_by/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_enrollment_tokens_create( + self, + enrollment_token_request: EnrollmentTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EnrollmentToken: + """endpoints_agents_enrollment_tokens_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enrollment_token_request: (required) + :type enrollment_token_request: EnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_create_serialize( + enrollment_token_request=enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_enrollment_tokens_create_with_http_info( + self, + enrollment_token_request: EnrollmentTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EnrollmentToken]: + """endpoints_agents_enrollment_tokens_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enrollment_token_request: (required) + :type enrollment_token_request: EnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_create_serialize( + enrollment_token_request=enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_enrollment_tokens_create_without_preload_content( + self, + enrollment_token_request: EnrollmentTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_enrollment_tokens_create + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param enrollment_token_request: (required) + :type enrollment_token_request: EnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_create_serialize( + enrollment_token_request=enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_enrollment_tokens_create_serialize( + self, + enrollment_token_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if enrollment_token_request is not None: + _body_params = enrollment_token_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/enrollment_tokens/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_enrollment_tokens_destroy( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """endpoints_agents_enrollment_tokens_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_destroy_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_enrollment_tokens_destroy_with_http_info( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """endpoints_agents_enrollment_tokens_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_destroy_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_enrollment_tokens_destroy_without_preload_content( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_enrollment_tokens_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_destroy_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_enrollment_tokens_destroy_serialize( + self, + token_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if token_uuid is not None: + _path_params['token_uuid'] = token_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/endpoints/agents/enrollment_tokens/{token_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_enrollment_tokens_list( + self, + connector: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + token_uuid: Optional[UUID] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedEnrollmentTokenList: + """endpoints_agents_enrollment_tokens_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector: + :type connector: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param token_uuid: + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_list_serialize( + connector=connector, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEnrollmentTokenList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_enrollment_tokens_list_with_http_info( + self, + connector: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + token_uuid: Optional[UUID] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedEnrollmentTokenList]: + """endpoints_agents_enrollment_tokens_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector: + :type connector: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param token_uuid: + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_list_serialize( + connector=connector, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEnrollmentTokenList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_enrollment_tokens_list_without_preload_content( + self, + connector: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + token_uuid: Optional[UUID] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_enrollment_tokens_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param connector: + :type connector: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param token_uuid: + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_list_serialize( + connector=connector, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEnrollmentTokenList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_enrollment_tokens_list_serialize( + self, + connector, + ordering, + page, + page_size, + search, + token_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if connector is not None: + + _query_params.append(('connector', connector)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if token_uuid is not None: + + _query_params.append(('token_uuid', token_uuid)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/agents/enrollment_tokens/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_enrollment_tokens_partial_update( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + patched_enrollment_token_request: Optional[PatchedEnrollmentTokenRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EnrollmentToken: + """endpoints_agents_enrollment_tokens_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param patched_enrollment_token_request: + :type patched_enrollment_token_request: PatchedEnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_partial_update_serialize( + token_uuid=token_uuid, + patched_enrollment_token_request=patched_enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_enrollment_tokens_partial_update_with_http_info( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + patched_enrollment_token_request: Optional[PatchedEnrollmentTokenRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EnrollmentToken]: + """endpoints_agents_enrollment_tokens_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param patched_enrollment_token_request: + :type patched_enrollment_token_request: PatchedEnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_partial_update_serialize( + token_uuid=token_uuid, + patched_enrollment_token_request=patched_enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_enrollment_tokens_partial_update_without_preload_content( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + patched_enrollment_token_request: Optional[PatchedEnrollmentTokenRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_enrollment_tokens_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param patched_enrollment_token_request: + :type patched_enrollment_token_request: PatchedEnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_partial_update_serialize( + token_uuid=token_uuid, + patched_enrollment_token_request=patched_enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_enrollment_tokens_partial_update_serialize( + self, + token_uuid, + patched_enrollment_token_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if token_uuid is not None: + _path_params['token_uuid'] = token_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if patched_enrollment_token_request is not None: + _body_params = patched_enrollment_token_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/endpoints/agents/enrollment_tokens/{token_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_enrollment_tokens_retrieve( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EnrollmentToken: + """endpoints_agents_enrollment_tokens_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_retrieve_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_enrollment_tokens_retrieve_with_http_info( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EnrollmentToken]: + """endpoints_agents_enrollment_tokens_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_retrieve_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_enrollment_tokens_retrieve_without_preload_content( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_enrollment_tokens_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_retrieve_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_enrollment_tokens_retrieve_serialize( + self, + token_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if token_uuid is not None: + _path_params['token_uuid'] = token_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/agents/enrollment_tokens/{token_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_enrollment_tokens_update( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + enrollment_token_request: EnrollmentTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EnrollmentToken: + """endpoints_agents_enrollment_tokens_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param enrollment_token_request: (required) + :type enrollment_token_request: EnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_update_serialize( + token_uuid=token_uuid, + enrollment_token_request=enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_enrollment_tokens_update_with_http_info( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + enrollment_token_request: EnrollmentTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EnrollmentToken]: + """endpoints_agents_enrollment_tokens_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param enrollment_token_request: (required) + :type enrollment_token_request: EnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_update_serialize( + token_uuid=token_uuid, + enrollment_token_request=enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_enrollment_tokens_update_without_preload_content( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + enrollment_token_request: EnrollmentTokenRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_enrollment_tokens_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param enrollment_token_request: (required) + :type enrollment_token_request: EnrollmentTokenRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_update_serialize( + token_uuid=token_uuid, + enrollment_token_request=enrollment_token_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EnrollmentToken", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_enrollment_tokens_update_serialize( + self, + token_uuid, + enrollment_token_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if token_uuid is not None: + _path_params['token_uuid'] = token_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if enrollment_token_request is not None: + _body_params = enrollment_token_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/endpoints/agents/enrollment_tokens/{token_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_enrollment_tokens_used_by_list( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UsedBy]: + """endpoints_agents_enrollment_tokens_used_by_list + + Get a list of all objects that use this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_used_by_list_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_enrollment_tokens_used_by_list_with_http_info( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UsedBy]]: + """endpoints_agents_enrollment_tokens_used_by_list + + Get a list of all objects that use this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_used_by_list_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_enrollment_tokens_used_by_list_without_preload_content( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_enrollment_tokens_used_by_list + + Get a list of all objects that use this object + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_used_by_list_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_enrollment_tokens_used_by_list_serialize( + self, + token_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if token_uuid is not None: + _path_params['token_uuid'] = token_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/agents/enrollment_tokens/{token_uuid}/used_by/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_enrollment_tokens_view_key_retrieve( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> TokenView: + """endpoints_agents_enrollment_tokens_view_key_retrieve + + Return token key and log access + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_view_key_retrieve_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenView", + '404': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_enrollment_tokens_view_key_retrieve_with_http_info( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[TokenView]: + """endpoints_agents_enrollment_tokens_view_key_retrieve + + Return token key and log access + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_view_key_retrieve_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenView", + '404': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_enrollment_tokens_view_key_retrieve_without_preload_content( + self, + token_uuid: Annotated[UUID, Field(description="A UUID string identifying this Enrollment Token.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_enrollment_tokens_view_key_retrieve + + Return token key and log access + + :param token_uuid: A UUID string identifying this Enrollment Token. (required) + :type token_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_enrollment_tokens_view_key_retrieve_serialize( + token_uuid=token_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "TokenView", + '404': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_enrollment_tokens_view_key_retrieve_serialize( + self, + token_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if token_uuid is not None: + _path_params['token_uuid'] = token_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/agents/enrollment_tokens/{token_uuid}/view_key/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_psso_register_device_create( + self, + agent_psso_device_registration_request: AgentPSSODeviceRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AgentPSSODeviceRegistrationResponse: + """endpoints_agents_psso_register_device_create + + + :param agent_psso_device_registration_request: (required) + :type agent_psso_device_registration_request: AgentPSSODeviceRegistrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_psso_register_device_create_serialize( + agent_psso_device_registration_request=agent_psso_device_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentPSSODeviceRegistrationResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_psso_register_device_create_with_http_info( + self, + agent_psso_device_registration_request: AgentPSSODeviceRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AgentPSSODeviceRegistrationResponse]: + """endpoints_agents_psso_register_device_create + + + :param agent_psso_device_registration_request: (required) + :type agent_psso_device_registration_request: AgentPSSODeviceRegistrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_psso_register_device_create_serialize( + agent_psso_device_registration_request=agent_psso_device_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentPSSODeviceRegistrationResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_psso_register_device_create_without_preload_content( + self, + agent_psso_device_registration_request: AgentPSSODeviceRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_psso_register_device_create + + + :param agent_psso_device_registration_request: (required) + :type agent_psso_device_registration_request: AgentPSSODeviceRegistrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_psso_register_device_create_serialize( + agent_psso_device_registration_request=agent_psso_device_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AgentPSSODeviceRegistrationResponse", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_psso_register_device_create_serialize( + self, + agent_psso_device_registration_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if agent_psso_device_registration_request is not None: + _body_params = agent_psso_device_registration_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/psso/register/device/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_agents_psso_register_user_create( + self, + agent_psso_user_registration_request: AgentPSSOUserRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UserSelf: + """endpoints_agents_psso_register_user_create + + + :param agent_psso_user_registration_request: (required) + :type agent_psso_user_registration_request: AgentPSSOUserRegistrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_psso_register_user_create_serialize( + agent_psso_user_registration_request=agent_psso_user_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserSelf", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_agents_psso_register_user_create_with_http_info( + self, + agent_psso_user_registration_request: AgentPSSOUserRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[UserSelf]: + """endpoints_agents_psso_register_user_create + + + :param agent_psso_user_registration_request: (required) + :type agent_psso_user_registration_request: AgentPSSOUserRegistrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_psso_register_user_create_serialize( + agent_psso_user_registration_request=agent_psso_user_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserSelf", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_agents_psso_register_user_create_without_preload_content( + self, + agent_psso_user_registration_request: AgentPSSOUserRegistrationRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_agents_psso_register_user_create + + + :param agent_psso_user_registration_request: (required) + :type agent_psso_user_registration_request: AgentPSSOUserRegistrationRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_agents_psso_register_user_create_serialize( + agent_psso_user_registration_request=agent_psso_user_registration_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "UserSelf", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_agents_psso_register_user_create_serialize( + self, + agent_psso_user_registration_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if agent_psso_user_registration_request is not None: + _body_params = agent_psso_user_registration_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/agents/psso/register/user/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_connectors_destroy( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """endpoints_connectors_destroy + + Connector Viewset + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_destroy_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_connectors_destroy_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """endpoints_connectors_destroy + + Connector Viewset + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_destroy_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_connectors_destroy_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_connectors_destroy + + Connector Viewset + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_destroy_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_connectors_destroy_serialize( + self, + connector_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/endpoints/connectors/{connector_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_connectors_list( + self, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedConnectorList: + """endpoints_connectors_list + + Connector Viewset + + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedConnectorList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_connectors_list_with_http_info( + self, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedConnectorList]: + """endpoints_connectors_list + + Connector Viewset + + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedConnectorList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_connectors_list_without_preload_content( + self, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_connectors_list + + Connector Viewset + + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedConnectorList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_connectors_list_serialize( + self, + ordering, + page, + page_size, + search, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/connectors/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_connectors_retrieve( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> Connector: + """endpoints_connectors_retrieve + + Connector Viewset + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_retrieve_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Connector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_connectors_retrieve_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[Connector]: + """endpoints_connectors_retrieve + + Connector Viewset + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_retrieve_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Connector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_connectors_retrieve_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_connectors_retrieve + + Connector Viewset + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_retrieve_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "Connector", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_connectors_retrieve_serialize( + self, + connector_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/connectors/{connector_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_connectors_types_list( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[TypeCreate]: + """endpoints_connectors_types_list + + Get all creatable types + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_types_list_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TypeCreate]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_connectors_types_list_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[TypeCreate]]: + """endpoints_connectors_types_list + + Get all creatable types + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_types_list_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TypeCreate]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_connectors_types_list_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_connectors_types_list + + Get all creatable types + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_types_list_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[TypeCreate]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_connectors_types_list_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/connectors/types/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_connectors_used_by_list( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UsedBy]: + """endpoints_connectors_used_by_list + + Get a list of all objects that use this object + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_used_by_list_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_connectors_used_by_list_with_http_info( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UsedBy]]: + """endpoints_connectors_used_by_list + + Get a list of all objects that use this object + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_used_by_list_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_connectors_used_by_list_without_preload_content( + self, + connector_uuid: Annotated[UUID, Field(description="A UUID string identifying this connector.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_connectors_used_by_list + + Get a list of all objects that use this object + + :param connector_uuid: A UUID string identifying this connector. (required) + :type connector_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_connectors_used_by_list_serialize( + connector_uuid=connector_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_connectors_used_by_list_serialize( + self, + connector_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if connector_uuid is not None: + _path_params['connector_uuid'] = connector_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/connectors/{connector_uuid}/used_by/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_access_groups_create( + self, + device_access_group_request: DeviceAccessGroupRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceAccessGroup: + """endpoints_device_access_groups_create + + DeviceAccessGroup Viewset + + :param device_access_group_request: (required) + :type device_access_group_request: DeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_create_serialize( + device_access_group_request=device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_access_groups_create_with_http_info( + self, + device_access_group_request: DeviceAccessGroupRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceAccessGroup]: + """endpoints_device_access_groups_create + + DeviceAccessGroup Viewset + + :param device_access_group_request: (required) + :type device_access_group_request: DeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_create_serialize( + device_access_group_request=device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_access_groups_create_without_preload_content( + self, + device_access_group_request: DeviceAccessGroupRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_access_groups_create + + DeviceAccessGroup Viewset + + :param device_access_group_request: (required) + :type device_access_group_request: DeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_create_serialize( + device_access_group_request=device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_access_groups_create_serialize( + self, + device_access_group_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if device_access_group_request is not None: + _body_params = device_access_group_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/device_access_groups/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_access_groups_destroy( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """endpoints_device_access_groups_destroy + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_destroy_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_access_groups_destroy_with_http_info( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """endpoints_device_access_groups_destroy + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_destroy_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_access_groups_destroy_without_preload_content( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_access_groups_destroy + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_destroy_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_access_groups_destroy_serialize( + self, + pbm_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if pbm_uuid is not None: + _path_params['pbm_uuid'] = pbm_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/endpoints/device_access_groups/{pbm_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_access_groups_list( + self, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + pbm_uuid: Optional[UUID] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedDeviceAccessGroupList: + """endpoints_device_access_groups_list + + DeviceAccessGroup Viewset + + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param pbm_uuid: + :type pbm_uuid: str + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_list_serialize( + name=name, + ordering=ordering, + page=page, + page_size=page_size, + pbm_uuid=pbm_uuid, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDeviceAccessGroupList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_access_groups_list_with_http_info( + self, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + pbm_uuid: Optional[UUID] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedDeviceAccessGroupList]: + """endpoints_device_access_groups_list + + DeviceAccessGroup Viewset + + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param pbm_uuid: + :type pbm_uuid: str + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_list_serialize( + name=name, + ordering=ordering, + page=page, + page_size=page_size, + pbm_uuid=pbm_uuid, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDeviceAccessGroupList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_access_groups_list_without_preload_content( + self, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + pbm_uuid: Optional[UUID] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_access_groups_list + + DeviceAccessGroup Viewset + + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param pbm_uuid: + :type pbm_uuid: str + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_list_serialize( + name=name, + ordering=ordering, + page=page, + page_size=page_size, + pbm_uuid=pbm_uuid, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDeviceAccessGroupList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_access_groups_list_serialize( + self, + name, + ordering, + page, + page_size, + pbm_uuid, + search, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if name is not None: + + _query_params.append(('name', name)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if pbm_uuid is not None: + + _query_params.append(('pbm_uuid', pbm_uuid)) + + if search is not None: + + _query_params.append(('search', search)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/device_access_groups/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_access_groups_partial_update( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + patched_device_access_group_request: Optional[PatchedDeviceAccessGroupRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceAccessGroup: + """endpoints_device_access_groups_partial_update + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param patched_device_access_group_request: + :type patched_device_access_group_request: PatchedDeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_partial_update_serialize( + pbm_uuid=pbm_uuid, + patched_device_access_group_request=patched_device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_access_groups_partial_update_with_http_info( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + patched_device_access_group_request: Optional[PatchedDeviceAccessGroupRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceAccessGroup]: + """endpoints_device_access_groups_partial_update + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param patched_device_access_group_request: + :type patched_device_access_group_request: PatchedDeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_partial_update_serialize( + pbm_uuid=pbm_uuid, + patched_device_access_group_request=patched_device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_access_groups_partial_update_without_preload_content( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + patched_device_access_group_request: Optional[PatchedDeviceAccessGroupRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_access_groups_partial_update + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param patched_device_access_group_request: + :type patched_device_access_group_request: PatchedDeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_partial_update_serialize( + pbm_uuid=pbm_uuid, + patched_device_access_group_request=patched_device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_access_groups_partial_update_serialize( + self, + pbm_uuid, + patched_device_access_group_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if pbm_uuid is not None: + _path_params['pbm_uuid'] = pbm_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if patched_device_access_group_request is not None: + _body_params = patched_device_access_group_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/endpoints/device_access_groups/{pbm_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_access_groups_retrieve( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceAccessGroup: + """endpoints_device_access_groups_retrieve + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_retrieve_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_access_groups_retrieve_with_http_info( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceAccessGroup]: + """endpoints_device_access_groups_retrieve + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_retrieve_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_access_groups_retrieve_without_preload_content( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_access_groups_retrieve + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_retrieve_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_access_groups_retrieve_serialize( + self, + pbm_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if pbm_uuid is not None: + _path_params['pbm_uuid'] = pbm_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/device_access_groups/{pbm_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_access_groups_update( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + device_access_group_request: DeviceAccessGroupRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceAccessGroup: + """endpoints_device_access_groups_update + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param device_access_group_request: (required) + :type device_access_group_request: DeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_update_serialize( + pbm_uuid=pbm_uuid, + device_access_group_request=device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_access_groups_update_with_http_info( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + device_access_group_request: DeviceAccessGroupRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceAccessGroup]: + """endpoints_device_access_groups_update + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param device_access_group_request: (required) + :type device_access_group_request: DeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_update_serialize( + pbm_uuid=pbm_uuid, + device_access_group_request=device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_access_groups_update_without_preload_content( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + device_access_group_request: DeviceAccessGroupRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_access_groups_update + + DeviceAccessGroup Viewset + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param device_access_group_request: (required) + :type device_access_group_request: DeviceAccessGroupRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_update_serialize( + pbm_uuid=pbm_uuid, + device_access_group_request=device_access_group_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceAccessGroup", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_access_groups_update_serialize( + self, + pbm_uuid, + device_access_group_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if pbm_uuid is not None: + _path_params['pbm_uuid'] = pbm_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if device_access_group_request is not None: + _body_params = device_access_group_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/endpoints/device_access_groups/{pbm_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_access_groups_used_by_list( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UsedBy]: + """endpoints_device_access_groups_used_by_list + + Get a list of all objects that use this object + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_used_by_list_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_access_groups_used_by_list_with_http_info( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UsedBy]]: + """endpoints_device_access_groups_used_by_list + + Get a list of all objects that use this object + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_used_by_list_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_access_groups_used_by_list_without_preload_content( + self, + pbm_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device access group.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_access_groups_used_by_list + + Get a list of all objects that use this object + + :param pbm_uuid: A UUID string identifying this Device access group. (required) + :type pbm_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_access_groups_used_by_list_serialize( + pbm_uuid=pbm_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_access_groups_used_by_list_serialize( + self, + pbm_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if pbm_uuid is not None: + _path_params['pbm_uuid'] = pbm_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/device_access_groups/{pbm_uuid}/used_by/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_bindings_create( + self, + device_user_binding_request: DeviceUserBindingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceUserBinding: + """endpoints_device_bindings_create + + PolicyBinding Viewset + + :param device_user_binding_request: (required) + :type device_user_binding_request: DeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_create_serialize( + device_user_binding_request=device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_bindings_create_with_http_info( + self, + device_user_binding_request: DeviceUserBindingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceUserBinding]: + """endpoints_device_bindings_create + + PolicyBinding Viewset + + :param device_user_binding_request: (required) + :type device_user_binding_request: DeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_create_serialize( + device_user_binding_request=device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_bindings_create_without_preload_content( + self, + device_user_binding_request: DeviceUserBindingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_bindings_create + + PolicyBinding Viewset + + :param device_user_binding_request: (required) + :type device_user_binding_request: DeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_create_serialize( + device_user_binding_request=device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_bindings_create_serialize( + self, + device_user_binding_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if device_user_binding_request is not None: + _body_params = device_user_binding_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/endpoints/device_bindings/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_bindings_destroy( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """endpoints_device_bindings_destroy + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_destroy_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_bindings_destroy_with_http_info( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """endpoints_device_bindings_destroy + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_destroy_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_bindings_destroy_without_preload_content( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_bindings_destroy + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_destroy_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_bindings_destroy_serialize( + self, + policy_binding_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if policy_binding_uuid is not None: + _path_params['policy_binding_uuid'] = policy_binding_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/endpoints/device_bindings/{policy_binding_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_bindings_list( + self, + enabled: Optional[StrictBool] = None, + order: Optional[StrictInt] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + policy: Optional[UUID] = None, + policy__isnull: Optional[StrictBool] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + target: Optional[UUID] = None, + target_in: Optional[List[UUID]] = None, + timeout: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedDeviceUserBindingList: + """endpoints_device_bindings_list + + PolicyBinding Viewset + + :param enabled: + :type enabled: bool + :param order: + :type order: int + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param policy: + :type policy: str + :param policy__isnull: + :type policy__isnull: bool + :param search: A search term. + :type search: str + :param target: + :type target: str + :param target_in: + :type target_in: List[str] + :param timeout: + :type timeout: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_list_serialize( + enabled=enabled, + order=order, + ordering=ordering, + page=page, + page_size=page_size, + policy=policy, + policy__isnull=policy__isnull, + search=search, + target=target, + target_in=target_in, + timeout=timeout, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDeviceUserBindingList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_bindings_list_with_http_info( + self, + enabled: Optional[StrictBool] = None, + order: Optional[StrictInt] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + policy: Optional[UUID] = None, + policy__isnull: Optional[StrictBool] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + target: Optional[UUID] = None, + target_in: Optional[List[UUID]] = None, + timeout: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedDeviceUserBindingList]: + """endpoints_device_bindings_list + + PolicyBinding Viewset + + :param enabled: + :type enabled: bool + :param order: + :type order: int + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param policy: + :type policy: str + :param policy__isnull: + :type policy__isnull: bool + :param search: A search term. + :type search: str + :param target: + :type target: str + :param target_in: + :type target_in: List[str] + :param timeout: + :type timeout: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_list_serialize( + enabled=enabled, + order=order, + ordering=ordering, + page=page, + page_size=page_size, + policy=policy, + policy__isnull=policy__isnull, + search=search, + target=target, + target_in=target_in, + timeout=timeout, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDeviceUserBindingList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_bindings_list_without_preload_content( + self, + enabled: Optional[StrictBool] = None, + order: Optional[StrictInt] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + policy: Optional[UUID] = None, + policy__isnull: Optional[StrictBool] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + target: Optional[UUID] = None, + target_in: Optional[List[UUID]] = None, + timeout: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_bindings_list + + PolicyBinding Viewset + + :param enabled: + :type enabled: bool + :param order: + :type order: int + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param policy: + :type policy: str + :param policy__isnull: + :type policy__isnull: bool + :param search: A search term. + :type search: str + :param target: + :type target: str + :param target_in: + :type target_in: List[str] + :param timeout: + :type timeout: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_list_serialize( + enabled=enabled, + order=order, + ordering=ordering, + page=page, + page_size=page_size, + policy=policy, + policy__isnull=policy__isnull, + search=search, + target=target, + target_in=target_in, + timeout=timeout, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDeviceUserBindingList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_bindings_list_serialize( + self, + enabled, + order, + ordering, + page, + page_size, + policy, + policy__isnull, + search, + target, + target_in, + timeout, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'target_in': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if enabled is not None: + + _query_params.append(('enabled', enabled)) + + if order is not None: + + _query_params.append(('order', order)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if policy is not None: + + _query_params.append(('policy', policy)) + + if policy__isnull is not None: + + _query_params.append(('policy__isnull', policy__isnull)) + + if search is not None: + + _query_params.append(('search', search)) + + if target is not None: + + _query_params.append(('target', target)) + + if target_in is not None: + + _query_params.append(('target_in', target_in)) + + if timeout is not None: + + _query_params.append(('timeout', timeout)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/device_bindings/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_bindings_partial_update( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + patched_device_user_binding_request: Optional[PatchedDeviceUserBindingRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceUserBinding: + """endpoints_device_bindings_partial_update + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param patched_device_user_binding_request: + :type patched_device_user_binding_request: PatchedDeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_partial_update_serialize( + policy_binding_uuid=policy_binding_uuid, + patched_device_user_binding_request=patched_device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_bindings_partial_update_with_http_info( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + patched_device_user_binding_request: Optional[PatchedDeviceUserBindingRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceUserBinding]: + """endpoints_device_bindings_partial_update + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param patched_device_user_binding_request: + :type patched_device_user_binding_request: PatchedDeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_partial_update_serialize( + policy_binding_uuid=policy_binding_uuid, + patched_device_user_binding_request=patched_device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_bindings_partial_update_without_preload_content( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + patched_device_user_binding_request: Optional[PatchedDeviceUserBindingRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_bindings_partial_update + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param patched_device_user_binding_request: + :type patched_device_user_binding_request: PatchedDeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_partial_update_serialize( + policy_binding_uuid=policy_binding_uuid, + patched_device_user_binding_request=patched_device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_bindings_partial_update_serialize( + self, + policy_binding_uuid, + patched_device_user_binding_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if policy_binding_uuid is not None: + _path_params['policy_binding_uuid'] = policy_binding_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if patched_device_user_binding_request is not None: + _body_params = patched_device_user_binding_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/endpoints/device_bindings/{policy_binding_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_bindings_retrieve( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceUserBinding: + """endpoints_device_bindings_retrieve + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_retrieve_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_bindings_retrieve_with_http_info( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceUserBinding]: + """endpoints_device_bindings_retrieve + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_retrieve_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_bindings_retrieve_without_preload_content( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_bindings_retrieve + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_retrieve_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_bindings_retrieve_serialize( + self, + policy_binding_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if policy_binding_uuid is not None: + _path_params['policy_binding_uuid'] = policy_binding_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/device_bindings/{policy_binding_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_bindings_update( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + device_user_binding_request: DeviceUserBindingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceUserBinding: + """endpoints_device_bindings_update + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param device_user_binding_request: (required) + :type device_user_binding_request: DeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_update_serialize( + policy_binding_uuid=policy_binding_uuid, + device_user_binding_request=device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_bindings_update_with_http_info( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + device_user_binding_request: DeviceUserBindingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceUserBinding]: + """endpoints_device_bindings_update + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param device_user_binding_request: (required) + :type device_user_binding_request: DeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_update_serialize( + policy_binding_uuid=policy_binding_uuid, + device_user_binding_request=device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_bindings_update_without_preload_content( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + device_user_binding_request: DeviceUserBindingRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_bindings_update + + PolicyBinding Viewset + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param device_user_binding_request: (required) + :type device_user_binding_request: DeviceUserBindingRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_update_serialize( + policy_binding_uuid=policy_binding_uuid, + device_user_binding_request=device_user_binding_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceUserBinding", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_bindings_update_serialize( + self, + policy_binding_uuid, + device_user_binding_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if policy_binding_uuid is not None: + _path_params['policy_binding_uuid'] = policy_binding_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if device_user_binding_request is not None: + _body_params = device_user_binding_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/endpoints/device_bindings/{policy_binding_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_device_bindings_used_by_list( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UsedBy]: + """endpoints_device_bindings_used_by_list + + Get a list of all objects that use this object + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_used_by_list_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_device_bindings_used_by_list_with_http_info( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UsedBy]]: + """endpoints_device_bindings_used_by_list + + Get a list of all objects that use this object + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_used_by_list_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_device_bindings_used_by_list_without_preload_content( + self, + policy_binding_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device User binding.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_device_bindings_used_by_list + + Get a list of all objects that use this object + + :param policy_binding_uuid: A UUID string identifying this Device User binding. (required) + :type policy_binding_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_device_bindings_used_by_list_serialize( + policy_binding_uuid=policy_binding_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_device_bindings_used_by_list_serialize( + self, + policy_binding_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if policy_binding_uuid is not None: + _path_params['policy_binding_uuid'] = policy_binding_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/device_bindings/{policy_binding_uuid}/used_by/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_devices_destroy( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """endpoints_devices_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_destroy_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_devices_destroy_with_http_info( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """endpoints_devices_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_destroy_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_devices_destroy_without_preload_content( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_devices_destroy + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_destroy_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_devices_destroy_serialize( + self, + device_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if device_uuid is not None: + _path_params['device_uuid'] = device_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/endpoints/devices/{device_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_devices_list( + self, + identifier: Optional[StrictStr] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedEndpointDeviceList: + """endpoints_devices_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param identifier: + :type identifier: str + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_list_serialize( + identifier=identifier, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEndpointDeviceList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_devices_list_with_http_info( + self, + identifier: Optional[StrictStr] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedEndpointDeviceList]: + """endpoints_devices_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param identifier: + :type identifier: str + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_list_serialize( + identifier=identifier, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEndpointDeviceList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_devices_list_without_preload_content( + self, + identifier: Optional[StrictStr] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_devices_list + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param identifier: + :type identifier: str + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_list_serialize( + identifier=identifier, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEndpointDeviceList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_devices_list_serialize( + self, + identifier, + name, + ordering, + page, + page_size, + search, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if identifier is not None: + + _query_params.append(('identifier', identifier)) + + if name is not None: + + _query_params.append(('name', name)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/devices/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_devices_partial_update( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + patched_endpoint_device_request: Optional[PatchedEndpointDeviceRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EndpointDevice: + """endpoints_devices_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param patched_endpoint_device_request: + :type patched_endpoint_device_request: PatchedEndpointDeviceRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_partial_update_serialize( + device_uuid=device_uuid, + patched_endpoint_device_request=patched_endpoint_device_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDevice", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_devices_partial_update_with_http_info( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + patched_endpoint_device_request: Optional[PatchedEndpointDeviceRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EndpointDevice]: + """endpoints_devices_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param patched_endpoint_device_request: + :type patched_endpoint_device_request: PatchedEndpointDeviceRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_partial_update_serialize( + device_uuid=device_uuid, + patched_endpoint_device_request=patched_endpoint_device_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDevice", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_devices_partial_update_without_preload_content( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + patched_endpoint_device_request: Optional[PatchedEndpointDeviceRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_devices_partial_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param patched_endpoint_device_request: + :type patched_endpoint_device_request: PatchedEndpointDeviceRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_partial_update_serialize( + device_uuid=device_uuid, + patched_endpoint_device_request=patched_endpoint_device_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDevice", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_devices_partial_update_serialize( + self, + device_uuid, + patched_endpoint_device_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if device_uuid is not None: + _path_params['device_uuid'] = device_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if patched_endpoint_device_request is not None: + _body_params = patched_endpoint_device_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/endpoints/devices/{device_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_devices_retrieve( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EndpointDeviceDetails: + """endpoints_devices_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_retrieve_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDeviceDetails", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_devices_retrieve_with_http_info( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EndpointDeviceDetails]: + """endpoints_devices_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_retrieve_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDeviceDetails", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_devices_retrieve_without_preload_content( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_devices_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_retrieve_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDeviceDetails", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_devices_retrieve_serialize( + self, + device_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if device_uuid is not None: + _path_params['device_uuid'] = device_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/devices/{device_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_devices_summary_retrieve( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DeviceSummary: + """endpoints_devices_summary_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_summary_retrieve_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceSummary", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_devices_summary_retrieve_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DeviceSummary]: + """endpoints_devices_summary_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_summary_retrieve_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceSummary", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_devices_summary_retrieve_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_devices_summary_retrieve + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_summary_retrieve_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DeviceSummary", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_devices_summary_retrieve_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/devices/summary/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_devices_update( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + endpoint_device_request: EndpointDeviceRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EndpointDevice: + """endpoints_devices_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param endpoint_device_request: (required) + :type endpoint_device_request: EndpointDeviceRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_update_serialize( + device_uuid=device_uuid, + endpoint_device_request=endpoint_device_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDevice", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_devices_update_with_http_info( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + endpoint_device_request: EndpointDeviceRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EndpointDevice]: + """endpoints_devices_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param endpoint_device_request: (required) + :type endpoint_device_request: EndpointDeviceRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_update_serialize( + device_uuid=device_uuid, + endpoint_device_request=endpoint_device_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDevice", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_devices_update_without_preload_content( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + endpoint_device_request: EndpointDeviceRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_devices_update + + Mixin to add a used_by endpoint to return a list of all objects using this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param endpoint_device_request: (required) + :type endpoint_device_request: EndpointDeviceRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_update_serialize( + device_uuid=device_uuid, + endpoint_device_request=endpoint_device_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointDevice", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_devices_update_serialize( + self, + device_uuid, + endpoint_device_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if device_uuid is not None: + _path_params['device_uuid'] = device_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if endpoint_device_request is not None: + _body_params = endpoint_device_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/endpoints/devices/{device_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def endpoints_devices_used_by_list( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UsedBy]: + """endpoints_devices_used_by_list + + Get a list of all objects that use this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_used_by_list_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def endpoints_devices_used_by_list_with_http_info( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UsedBy]]: + """endpoints_devices_used_by_list + + Get a list of all objects that use this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_used_by_list_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def endpoints_devices_used_by_list_without_preload_content( + self, + device_uuid: Annotated[UUID, Field(description="A UUID string identifying this Device.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """endpoints_devices_used_by_list + + Get a list of all objects that use this object + + :param device_uuid: A UUID string identifying this Device. (required) + :type device_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._endpoints_devices_used_by_list_serialize( + device_uuid=device_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _endpoints_devices_used_by_list_serialize( + self, + device_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if device_uuid is not None: + _path_params['device_uuid'] = device_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/endpoints/devices/{device_uuid}/used_by/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/authentik_client/api/enterprise_api.py b/authentik_client/api/enterprise_api.py index 86885fa5c..4e29b1f01 100644 --- a/authentik_client/api/enterprise_api.py +++ b/authentik_client/api/enterprise_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/events_api.py b/authentik_client/api/events_api.py index f333b746e..784a7cbfa 100644 --- a/authentik_client/api/events_api.py +++ b/authentik_client/api/events_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import List, Optional, Union from typing_extensions import Annotated from uuid import UUID +from authentik_client.models.data_export import DataExport from authentik_client.models.event import Event from authentik_client.models.event_request import EventRequest from authentik_client.models.event_top_per_user import EventTopPerUser @@ -861,6 +862,446 @@ def _events_events_destroy_serialize( + @validate_call + def events_events_export_create( + self, + action: Optional[StrictStr] = None, + actions: Optional[List[StrictStr]] = None, + brand_name: Annotated[Optional[StrictStr], Field(description="Brand name")] = None, + client_ip: Optional[StrictStr] = None, + context_authorized_app: Annotated[Optional[StrictStr], Field(description="Context Authorized application")] = None, + context_model_app: Annotated[Optional[StrictStr], Field(description="Context Model App")] = None, + context_model_name: Annotated[Optional[StrictStr], Field(description="Context Model Name")] = None, + context_model_pk: Annotated[Optional[StrictStr], Field(description="Context Model Primary Key")] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + username: Annotated[Optional[StrictStr], Field(description="Username")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataExport: + """events_events_export_create + + Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download + + :param action: + :type action: str + :param actions: + :type actions: List[str] + :param brand_name: Brand name + :type brand_name: str + :param client_ip: + :type client_ip: str + :param context_authorized_app: Context Authorized application + :type context_authorized_app: str + :param context_model_app: Context Model App + :type context_model_app: str + :param context_model_name: Context Model Name + :type context_model_name: str + :param context_model_pk: Context Model Primary Key + :type context_model_pk: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param search: A search term. + :type search: str + :param username: Username + :type username: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._events_events_export_create_serialize( + action=action, + actions=actions, + brand_name=brand_name, + client_ip=client_ip, + context_authorized_app=context_authorized_app, + context_model_app=context_model_app, + context_model_name=context_model_name, + context_model_pk=context_model_pk, + ordering=ordering, + search=search, + username=username, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DataExport", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def events_events_export_create_with_http_info( + self, + action: Optional[StrictStr] = None, + actions: Optional[List[StrictStr]] = None, + brand_name: Annotated[Optional[StrictStr], Field(description="Brand name")] = None, + client_ip: Optional[StrictStr] = None, + context_authorized_app: Annotated[Optional[StrictStr], Field(description="Context Authorized application")] = None, + context_model_app: Annotated[Optional[StrictStr], Field(description="Context Model App")] = None, + context_model_name: Annotated[Optional[StrictStr], Field(description="Context Model Name")] = None, + context_model_pk: Annotated[Optional[StrictStr], Field(description="Context Model Primary Key")] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + username: Annotated[Optional[StrictStr], Field(description="Username")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataExport]: + """events_events_export_create + + Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download + + :param action: + :type action: str + :param actions: + :type actions: List[str] + :param brand_name: Brand name + :type brand_name: str + :param client_ip: + :type client_ip: str + :param context_authorized_app: Context Authorized application + :type context_authorized_app: str + :param context_model_app: Context Model App + :type context_model_app: str + :param context_model_name: Context Model Name + :type context_model_name: str + :param context_model_pk: Context Model Primary Key + :type context_model_pk: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param search: A search term. + :type search: str + :param username: Username + :type username: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._events_events_export_create_serialize( + action=action, + actions=actions, + brand_name=brand_name, + client_ip=client_ip, + context_authorized_app=context_authorized_app, + context_model_app=context_model_app, + context_model_name=context_model_name, + context_model_pk=context_model_pk, + ordering=ordering, + search=search, + username=username, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DataExport", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def events_events_export_create_without_preload_content( + self, + action: Optional[StrictStr] = None, + actions: Optional[List[StrictStr]] = None, + brand_name: Annotated[Optional[StrictStr], Field(description="Brand name")] = None, + client_ip: Optional[StrictStr] = None, + context_authorized_app: Annotated[Optional[StrictStr], Field(description="Context Authorized application")] = None, + context_model_app: Annotated[Optional[StrictStr], Field(description="Context Model App")] = None, + context_model_name: Annotated[Optional[StrictStr], Field(description="Context Model Name")] = None, + context_model_pk: Annotated[Optional[StrictStr], Field(description="Context Model Primary Key")] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + username: Annotated[Optional[StrictStr], Field(description="Username")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """events_events_export_create + + Create a data export for this data type. Note that the export is generated asynchronously: this method returns a `DataExport` object that will initially have `completed=false` as well as the permanent URL to that object in the `Location` header. You can poll that URL until `completed=true`, at which point the `file_url` property will contain a URL to download + + :param action: + :type action: str + :param actions: + :type actions: List[str] + :param brand_name: Brand name + :type brand_name: str + :param client_ip: + :type client_ip: str + :param context_authorized_app: Context Authorized application + :type context_authorized_app: str + :param context_model_app: Context Model App + :type context_model_app: str + :param context_model_name: Context Model Name + :type context_model_name: str + :param context_model_pk: Context Model Primary Key + :type context_model_pk: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param search: A search term. + :type search: str + :param username: Username + :type username: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._events_events_export_create_serialize( + action=action, + actions=actions, + brand_name=brand_name, + client_ip=client_ip, + context_authorized_app=context_authorized_app, + context_model_app=context_model_app, + context_model_name=context_model_name, + context_model_pk=context_model_pk, + ordering=ordering, + search=search, + username=username, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "DataExport", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _events_events_export_create_serialize( + self, + action, + actions, + brand_name, + client_ip, + context_authorized_app, + context_model_app, + context_model_name, + context_model_pk, + ordering, + search, + username, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'actions': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if action is not None: + + _query_params.append(('action', action)) + + if actions is not None: + + _query_params.append(('actions', actions)) + + if brand_name is not None: + + _query_params.append(('brand_name', brand_name)) + + if client_ip is not None: + + _query_params.append(('client_ip', client_ip)) + + if context_authorized_app is not None: + + _query_params.append(('context_authorized_app', context_authorized_app)) + + if context_model_app is not None: + + _query_params.append(('context_model_app', context_model_app)) + + if context_model_name is not None: + + _query_params.append(('context_model_name', context_model_name)) + + if context_model_pk is not None: + + _query_params.append(('context_model_pk', context_model_pk)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if search is not None: + + _query_params.append(('search', search)) + + if username is not None: + + _query_params.append(('username', username)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/events/events/export/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def events_events_list( self, diff --git a/authentik_client/api/flows_api.py b/authentik_client/api/flows_api.py index b51093925..d687d85a3 100644 --- a/authentik_client/api/flows_api.py +++ b/authentik_client/api/flows_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from uuid import UUID from authentik_client.models.cache import Cache from authentik_client.models.challenge_types import ChallengeTypes -from authentik_client.models.file_path_request import FilePathRequest from authentik_client.models.flow import Flow from authentik_client.models.flow_challenge_response_request import FlowChallengeResponseRequest from authentik_client.models.flow_diagram import FlowDiagram @@ -6196,611 +6195,6 @@ def _flows_instances_retrieve_serialize( - @validate_call - def flows_instances_set_background_create( - self, - slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """flows_instances_set_background_create - - Set Flow background - - :param slug: (required) - :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._flows_instances_set_background_create_serialize( - slug=slug, - file=file, - clear=clear, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def flows_instances_set_background_create_with_http_info( - self, - slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """flows_instances_set_background_create - - Set Flow background - - :param slug: (required) - :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._flows_instances_set_background_create_serialize( - slug=slug, - file=file, - clear=clear, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def flows_instances_set_background_create_without_preload_content( - self, - slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """flows_instances_set_background_create - - Set Flow background - - :param slug: (required) - :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._flows_instances_set_background_create_serialize( - slug=slug, - file=file, - clear=clear, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _flows_instances_set_background_create_serialize( - self, - slug, - file, - clear, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if slug is not None: - _path_params['slug'] = slug - # process the query parameters - # process the header parameters - # process the form parameters - if file is not None: - _files['file'] = file - if clear is not None: - _form_params.append(('clear', clear)) - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/flows/instances/{slug}/set_background/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def flows_instances_set_background_url_create( - self, - slug: StrictStr, - file_path_request: FilePathRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """flows_instances_set_background_url_create - - Set Flow background (as URL) - - :param slug: (required) - :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._flows_instances_set_background_url_create_serialize( - slug=slug, - file_path_request=file_path_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def flows_instances_set_background_url_create_with_http_info( - self, - slug: StrictStr, - file_path_request: FilePathRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """flows_instances_set_background_url_create - - Set Flow background (as URL) - - :param slug: (required) - :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._flows_instances_set_background_url_create_serialize( - slug=slug, - file_path_request=file_path_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def flows_instances_set_background_url_create_without_preload_content( - self, - slug: StrictStr, - file_path_request: FilePathRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """flows_instances_set_background_url_create - - Set Flow background (as URL) - - :param slug: (required) - :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._flows_instances_set_background_url_create_serialize( - slug=slug, - file_path_request=file_path_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _flows_instances_set_background_url_create_serialize( - self, - slug, - file_path_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if slug is not None: - _path_params['slug'] = slug - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if file_path_request is not None: - _body_params = file_path_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/flows/instances/{slug}/set_background_url/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - @validate_call def flows_instances_update( self, diff --git a/authentik_client/api/managed_api.py b/authentik_client/api/managed_api.py index 86d0813f2..4fb06777a 100644 --- a/authentik_client/api/managed_api.py +++ b/authentik_client/api/managed_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/oauth2_api.py b/authentik_client/api/oauth2_api.py index d4b0bbfbc..5aae4d41a 100644 --- a/authentik_client/api/oauth2_api.py +++ b/authentik_client/api/oauth2_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/outposts_api.py b/authentik_client/api/outposts_api.py index 835ac0730..562f68aee 100644 --- a/authentik_client/api/outposts_api.py +++ b/authentik_client/api/outposts_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/policies_api.py b/authentik_client/api/policies_api.py index 3ecda4e67..885f3b9fd 100644 --- a/authentik_client/api/policies_api.py +++ b/authentik_client/api/policies_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/propertymappings_api.py b/authentik_client/api/propertymappings_api.py index e4ea8fd5a..9b1aa9ac1 100644 --- a/authentik_client/api/propertymappings_api.py +++ b/authentik_client/api/propertymappings_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/providers_api.py b/authentik_client/api/providers_api.py index 679dfe704..570ba5b84 100644 --- a/authentik_client/api/providers_api.py +++ b/authentik_client/api/providers_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24356,7 +24356,7 @@ def providers_saml_import_metadata_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: + ) -> SAMLProvider: """providers_saml_import_metadata_create Create provider from SAML Metadata @@ -24403,7 +24403,7 @@ def providers_saml_import_metadata_create( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "SAMLProvider", '400': None, '403': "GenericError", } @@ -24437,7 +24437,7 @@ def providers_saml_import_metadata_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: + ) -> ApiResponse[SAMLProvider]: """providers_saml_import_metadata_create Create provider from SAML Metadata @@ -24484,7 +24484,7 @@ def providers_saml_import_metadata_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "SAMLProvider", '400': None, '403': "GenericError", } @@ -24565,7 +24565,7 @@ def providers_saml_import_metadata_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "SAMLProvider", '400': None, '403': "GenericError", } diff --git a/authentik_client/api/rac_api.py b/authentik_client/api/rac_api.py index e02a5dffc..6c14b5611 100644 --- a/authentik_client/api/rac_api.py +++ b/authentik_client/api/rac_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/rbac_api.py b/authentik_client/api/rbac_api.py index bf5180873..f36c8cee1 100644 --- a/authentik_client/api/rbac_api.py +++ b/authentik_client/api/rbac_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,25 +17,17 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.extra_role_object_permission import ExtraRoleObjectPermission -from authentik_client.models.extra_role_object_permission_request import ExtraRoleObjectPermissionRequest -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission -from authentik_client.models.extra_user_object_permission_request import ExtraUserObjectPermissionRequest from authentik_client.models.initial_permissions import InitialPermissions from authentik_client.models.initial_permissions_request import InitialPermissionsRequest from authentik_client.models.paginated_extra_role_object_permission_list import PaginatedExtraRoleObjectPermissionList -from authentik_client.models.paginated_extra_user_object_permission_list import PaginatedExtraUserObjectPermissionList from authentik_client.models.paginated_initial_permissions_list import PaginatedInitialPermissionsList from authentik_client.models.paginated_permission_list import PaginatedPermissionList from authentik_client.models.paginated_role_assigned_object_permission_list import PaginatedRoleAssignedObjectPermissionList from authentik_client.models.paginated_role_list import PaginatedRoleList -from authentik_client.models.paginated_user_assigned_object_permission_list import PaginatedUserAssignedObjectPermissionList -from authentik_client.models.patched_extra_role_object_permission_request import PatchedExtraRoleObjectPermissionRequest -from authentik_client.models.patched_extra_user_object_permission_request import PatchedExtraUserObjectPermissionRequest from authentik_client.models.patched_initial_permissions_request import PatchedInitialPermissionsRequest from authentik_client.models.patched_permission_assign_request import PatchedPermissionAssignRequest from authentik_client.models.patched_role_request import PatchedRoleRequest @@ -45,6 +37,7 @@ from authentik_client.models.role import Role from authentik_client.models.role_request import RoleRequest from authentik_client.models.used_by import UsedBy +from authentik_client.models.user_account_serializer_for_role_request import UserAccountSerializerForRoleRequest from authentik_client.api_client import ApiClient, RequestSerialized from authentik_client.api_response import ApiResponse @@ -3017,3086 +3010,17 @@ def _rbac_permissions_assigned_by_roles_unassign_partial_update_serialize( @validate_call - def rbac_permissions_assigned_by_users_assign( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], - permission_assign_request: PermissionAssignRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[PermissionAssignResult]: - """rbac_permissions_assigned_by_users_assign - - Assign permission(s) to user - - :param id: A unique integer value identifying this User. (required) - :type id: int - :param permission_assign_request: (required) - :type permission_assign_request: PermissionAssignRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_assign_serialize( - id=id, - permission_assign_request=permission_assign_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[PermissionAssignResult]", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_assigned_by_users_assign_with_http_info( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], - permission_assign_request: PermissionAssignRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[PermissionAssignResult]]: - """rbac_permissions_assigned_by_users_assign - - Assign permission(s) to user - - :param id: A unique integer value identifying this User. (required) - :type id: int - :param permission_assign_request: (required) - :type permission_assign_request: PermissionAssignRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_assign_serialize( - id=id, - permission_assign_request=permission_assign_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[PermissionAssignResult]", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_assigned_by_users_assign_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], - permission_assign_request: PermissionAssignRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_assigned_by_users_assign - - Assign permission(s) to user - - :param id: A unique integer value identifying this User. (required) - :type id: int - :param permission_assign_request: (required) - :type permission_assign_request: PermissionAssignRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_assign_serialize( - id=id, - permission_assign_request=permission_assign_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[PermissionAssignResult]", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_assigned_by_users_assign_serialize( - self, - id, - permission_assign_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if permission_assign_request is not None: - _body_params = permission_assign_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='POST', - resource_path='/rbac/permissions/assigned_by_users/{id}/assign/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_assigned_by_users_list( - self, - model: StrictStr, - object_pk: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedUserAssignedObjectPermissionList: - """rbac_permissions_assigned_by_users_list - - Get assigned object permissions for a single object - - :param model: (required) - :type model: str - :param object_pk: - :type object_pk: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_list_serialize( - model=model, - object_pk=object_pk, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedUserAssignedObjectPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_assigned_by_users_list_with_http_info( - self, - model: StrictStr, - object_pk: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedUserAssignedObjectPermissionList]: - """rbac_permissions_assigned_by_users_list - - Get assigned object permissions for a single object - - :param model: (required) - :type model: str - :param object_pk: - :type object_pk: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_list_serialize( - model=model, - object_pk=object_pk, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedUserAssignedObjectPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_assigned_by_users_list_without_preload_content( - self, - model: StrictStr, - object_pk: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_assigned_by_users_list - - Get assigned object permissions for a single object - - :param model: (required) - :type model: str - :param object_pk: - :type object_pk: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_list_serialize( - model=model, - object_pk=object_pk, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedUserAssignedObjectPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_assigned_by_users_list_serialize( - self, - model, - object_pk, - ordering, - page, - page_size, - search, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if model is not None: - - _query_params.append(('model', model)) - - if object_pk is not None: - - _query_params.append(('object_pk', object_pk)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/rbac/permissions/assigned_by_users/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_assigned_by_users_unassign_partial_update( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], - patched_permission_assign_request: Optional[PatchedPermissionAssignRequest] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """rbac_permissions_assigned_by_users_unassign_partial_update - - Unassign permission(s) to user. When `object_pk` is set, the permissions are only assigned to the specific object, otherwise they are assigned globally. - - :param id: A unique integer value identifying this User. (required) - :type id: int - :param patched_permission_assign_request: - :type patched_permission_assign_request: PatchedPermissionAssignRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_unassign_partial_update_serialize( - id=id, - patched_permission_assign_request=patched_permission_assign_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_assigned_by_users_unassign_partial_update_with_http_info( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], - patched_permission_assign_request: Optional[PatchedPermissionAssignRequest] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """rbac_permissions_assigned_by_users_unassign_partial_update - - Unassign permission(s) to user. When `object_pk` is set, the permissions are only assigned to the specific object, otherwise they are assigned globally. - - :param id: A unique integer value identifying this User. (required) - :type id: int - :param patched_permission_assign_request: - :type patched_permission_assign_request: PatchedPermissionAssignRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_unassign_partial_update_serialize( - id=id, - patched_permission_assign_request=patched_permission_assign_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_assigned_by_users_unassign_partial_update_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this User.")], - patched_permission_assign_request: Optional[PatchedPermissionAssignRequest] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_assigned_by_users_unassign_partial_update - - Unassign permission(s) to user. When `object_pk` is set, the permissions are only assigned to the specific object, otherwise they are assigned globally. - - :param id: A unique integer value identifying this User. (required) - :type id: int - :param patched_permission_assign_request: - :type patched_permission_assign_request: PatchedPermissionAssignRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_assigned_by_users_unassign_partial_update_serialize( - id=id, - patched_permission_assign_request=patched_permission_assign_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_assigned_by_users_unassign_partial_update_serialize( - self, - id, - patched_permission_assign_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if patched_permission_assign_request is not None: - _body_params = patched_permission_assign_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/rbac/permissions/assigned_by_users/{id}/unassign/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_list( - self, - codename: Optional[StrictStr] = None, - content_type__app_label: Optional[StrictStr] = None, - content_type__model: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - role: Optional[StrictStr] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user: Optional[StrictInt] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedPermissionList: - """rbac_permissions_list - - Read-only list of all permissions, filterable by model and app - - :param codename: - :type codename: str - :param content_type__app_label: - :type content_type__app_label: str - :param content_type__model: - :type content_type__model: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param role: - :type role: str - :param search: A search term. - :type search: str - :param user: - :type user: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_list_serialize( - codename=codename, - content_type__app_label=content_type__app_label, - content_type__model=content_type__model, - ordering=ordering, - page=page, - page_size=page_size, - role=role, - search=search, - user=user, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_list_with_http_info( - self, - codename: Optional[StrictStr] = None, - content_type__app_label: Optional[StrictStr] = None, - content_type__model: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - role: Optional[StrictStr] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user: Optional[StrictInt] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedPermissionList]: - """rbac_permissions_list - - Read-only list of all permissions, filterable by model and app - - :param codename: - :type codename: str - :param content_type__app_label: - :type content_type__app_label: str - :param content_type__model: - :type content_type__model: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param role: - :type role: str - :param search: A search term. - :type search: str - :param user: - :type user: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_list_serialize( - codename=codename, - content_type__app_label=content_type__app_label, - content_type__model=content_type__model, - ordering=ordering, - page=page, - page_size=page_size, - role=role, - search=search, - user=user, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_list_without_preload_content( - self, - codename: Optional[StrictStr] = None, - content_type__app_label: Optional[StrictStr] = None, - content_type__model: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - role: Optional[StrictStr] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user: Optional[StrictInt] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_list - - Read-only list of all permissions, filterable by model and app - - :param codename: - :type codename: str - :param content_type__app_label: - :type content_type__app_label: str - :param content_type__model: - :type content_type__model: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param role: - :type role: str - :param search: A search term. - :type search: str - :param user: - :type user: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_list_serialize( - codename=codename, - content_type__app_label=content_type__app_label, - content_type__model=content_type__model, - ordering=ordering, - page=page, - page_size=page_size, - role=role, - search=search, - user=user, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_list_serialize( - self, - codename, - content_type__app_label, - content_type__model, - ordering, - page, - page_size, - role, - search, - user, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if codename is not None: - - _query_params.append(('codename', codename)) - - if content_type__app_label is not None: - - _query_params.append(('content_type__app_label', content_type__app_label)) - - if content_type__model is not None: - - _query_params.append(('content_type__model', content_type__model)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if role is not None: - - _query_params.append(('role', role)) - - if search is not None: - - _query_params.append(('search', search)) - - if user is not None: - - _query_params.append(('user', user)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/rbac/permissions/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_retrieve( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Permission: - """rbac_permissions_retrieve - - Read-only list of all permissions, filterable by model and app - - :param id: A unique integer value identifying this permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_retrieve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Permission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_retrieve_with_http_info( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Permission]: - """rbac_permissions_retrieve - - Read-only list of all permissions, filterable by model and app - - :param id: A unique integer value identifying this permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_retrieve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Permission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_retrieve_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_retrieve - - Read-only list of all permissions, filterable by model and app - - :param id: A unique integer value identifying this permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_retrieve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "Permission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_retrieve_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/rbac/permissions/{id}/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_roles_destroy( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """rbac_permissions_roles_destroy - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_destroy_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_roles_destroy_with_http_info( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """rbac_permissions_roles_destroy - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_destroy_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_roles_destroy_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_roles_destroy - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_destroy_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_roles_destroy_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='DELETE', - resource_path='/rbac/permissions/roles/{id}/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_roles_list( - self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - uuid: Optional[UUID] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedExtraRoleObjectPermissionList: - """rbac_permissions_roles_list - - Get a role's assigned object permissions - - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param uuid: - :type uuid: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - uuid=uuid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedExtraRoleObjectPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_roles_list_with_http_info( - self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - uuid: Optional[UUID] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedExtraRoleObjectPermissionList]: - """rbac_permissions_roles_list - - Get a role's assigned object permissions - - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param uuid: - :type uuid: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - uuid=uuid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedExtraRoleObjectPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_roles_list_without_preload_content( - self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - uuid: Optional[UUID] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_roles_list - - Get a role's assigned object permissions - - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param uuid: - :type uuid: str - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - uuid=uuid, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedExtraRoleObjectPermissionList", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_roles_list_serialize( - self, - ordering, - page, - page_size, - search, - uuid, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - # process the query parameters - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if uuid is not None: - - _query_params.append(('uuid', uuid)) - - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/rbac/permissions/roles/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_roles_partial_update( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - patched_extra_role_object_permission_request: Optional[PatchedExtraRoleObjectPermissionRequest] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtraRoleObjectPermission: - """rbac_permissions_roles_partial_update - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param patched_extra_role_object_permission_request: - :type patched_extra_role_object_permission_request: PatchedExtraRoleObjectPermissionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_partial_update_serialize( - id=id, - patched_extra_role_object_permission_request=patched_extra_role_object_permission_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_roles_partial_update_with_http_info( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - patched_extra_role_object_permission_request: Optional[PatchedExtraRoleObjectPermissionRequest] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtraRoleObjectPermission]: - """rbac_permissions_roles_partial_update - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param patched_extra_role_object_permission_request: - :type patched_extra_role_object_permission_request: PatchedExtraRoleObjectPermissionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_partial_update_serialize( - id=id, - patched_extra_role_object_permission_request=patched_extra_role_object_permission_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_roles_partial_update_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - patched_extra_role_object_permission_request: Optional[PatchedExtraRoleObjectPermissionRequest] = None, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_roles_partial_update - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param patched_extra_role_object_permission_request: - :type patched_extra_role_object_permission_request: PatchedExtraRoleObjectPermissionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_partial_update_serialize( - id=id, - patched_extra_role_object_permission_request=patched_extra_role_object_permission_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_roles_partial_update_serialize( - self, - id, - patched_extra_role_object_permission_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if patched_extra_role_object_permission_request is not None: - _body_params = patched_extra_role_object_permission_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='PATCH', - resource_path='/rbac/permissions/roles/{id}/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_roles_retrieve( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtraRoleObjectPermission: - """rbac_permissions_roles_retrieve - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_retrieve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_roles_retrieve_with_http_info( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtraRoleObjectPermission]: - """rbac_permissions_roles_retrieve - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_retrieve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_roles_retrieve_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_roles_retrieve - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_retrieve_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_roles_retrieve_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/rbac/permissions/roles/{id}/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_roles_update( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - extra_role_object_permission_request: ExtraRoleObjectPermissionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtraRoleObjectPermission: - """rbac_permissions_roles_update - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param extra_role_object_permission_request: (required) - :type extra_role_object_permission_request: ExtraRoleObjectPermissionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_update_serialize( - id=id, - extra_role_object_permission_request=extra_role_object_permission_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def rbac_permissions_roles_update_with_http_info( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - extra_role_object_permission_request: ExtraRoleObjectPermissionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtraRoleObjectPermission]: - """rbac_permissions_roles_update - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param extra_role_object_permission_request: (required) - :type extra_role_object_permission_request: ExtraRoleObjectPermissionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_update_serialize( - id=id, - extra_role_object_permission_request=extra_role_object_permission_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def rbac_permissions_roles_update_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group object permission.")], - extra_role_object_permission_request: ExtraRoleObjectPermissionRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """rbac_permissions_roles_update - - Get a role's assigned object permissions - - :param id: A unique integer value identifying this group object permission. (required) - :type id: int - :param extra_role_object_permission_request: (required) - :type extra_role_object_permission_request: ExtraRoleObjectPermissionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._rbac_permissions_roles_update_serialize( - id=id, - extra_role_object_permission_request=extra_role_object_permission_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraRoleObjectPermission", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _rbac_permissions_roles_update_serialize( - self, - id, - extra_role_object_permission_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if extra_role_object_permission_request is not None: - _body_params = extra_role_object_permission_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='PUT', - resource_path='/rbac/permissions/roles/{id}/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def rbac_permissions_users_destroy( + def rbac_permissions_list( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], + codename: Optional[StrictStr] = None, + content_type__app_label: Optional[StrictStr] = None, + content_type__model: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + role: Optional[StrictStr] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6109,13 +3033,29 @@ def rbac_permissions_users_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """rbac_permissions_users_destroy + ) -> PaginatedPermissionList: + """rbac_permissions_list - Get a users's assigned object permissions + Read-only list of all permissions, filterable by model and app - :param id: A unique integer value identifying this user object permission. (required) - :type id: int + :param codename: + :type codename: str + :param content_type__app_label: + :type content_type__app_label: str + :param content_type__model: + :type content_type__model: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param role: + :type role: str + :param search: A search term. + :type search: str + :param user: + :type user: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6138,8 +3078,16 @@ def rbac_permissions_users_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_destroy_serialize( - id=id, + _param = self._rbac_permissions_list_serialize( + codename=codename, + content_type__app_label=content_type__app_label, + content_type__model=content_type__model, + ordering=ordering, + page=page, + page_size=page_size, + role=role, + search=search, + user=user, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6147,7 +3095,7 @@ def rbac_permissions_users_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedPermissionList", '400': "ValidationError", '403': "GenericError", } @@ -6163,9 +3111,17 @@ def rbac_permissions_users_destroy( @validate_call - def rbac_permissions_users_destroy_with_http_info( + def rbac_permissions_list_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], + codename: Optional[StrictStr] = None, + content_type__app_label: Optional[StrictStr] = None, + content_type__model: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + role: Optional[StrictStr] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6178,13 +3134,29 @@ def rbac_permissions_users_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """rbac_permissions_users_destroy + ) -> ApiResponse[PaginatedPermissionList]: + """rbac_permissions_list - Get a users's assigned object permissions + Read-only list of all permissions, filterable by model and app - :param id: A unique integer value identifying this user object permission. (required) - :type id: int + :param codename: + :type codename: str + :param content_type__app_label: + :type content_type__app_label: str + :param content_type__model: + :type content_type__model: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param role: + :type role: str + :param search: A search term. + :type search: str + :param user: + :type user: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6207,8 +3179,16 @@ def rbac_permissions_users_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_destroy_serialize( - id=id, + _param = self._rbac_permissions_list_serialize( + codename=codename, + content_type__app_label=content_type__app_label, + content_type__model=content_type__model, + ordering=ordering, + page=page, + page_size=page_size, + role=role, + search=search, + user=user, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6216,7 +3196,7 @@ def rbac_permissions_users_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedPermissionList", '400': "ValidationError", '403': "GenericError", } @@ -6232,9 +3212,17 @@ def rbac_permissions_users_destroy_with_http_info( @validate_call - def rbac_permissions_users_destroy_without_preload_content( + def rbac_permissions_list_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], + codename: Optional[StrictStr] = None, + content_type__app_label: Optional[StrictStr] = None, + content_type__model: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + role: Optional[StrictStr] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + user: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6248,12 +3236,28 @@ def rbac_permissions_users_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_permissions_users_destroy + """rbac_permissions_list - Get a users's assigned object permissions + Read-only list of all permissions, filterable by model and app - :param id: A unique integer value identifying this user object permission. (required) - :type id: int + :param codename: + :type codename: str + :param content_type__app_label: + :type content_type__app_label: str + :param content_type__model: + :type content_type__model: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param role: + :type role: str + :param search: A search term. + :type search: str + :param user: + :type user: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6276,8 +3280,16 @@ def rbac_permissions_users_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_destroy_serialize( - id=id, + _param = self._rbac_permissions_list_serialize( + codename=codename, + content_type__app_label=content_type__app_label, + content_type__model=content_type__model, + ordering=ordering, + page=page, + page_size=page_size, + role=role, + search=search, + user=user, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6285,7 +3297,7 @@ def rbac_permissions_users_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedPermissionList", '400': "ValidationError", '403': "GenericError", } @@ -6296,9 +3308,17 @@ def rbac_permissions_users_destroy_without_preload_content( return response_data.response - def _rbac_permissions_users_destroy_serialize( + def _rbac_permissions_list_serialize( self, - id, + codename, + content_type__app_label, + content_type__model, + ordering, + page, + page_size, + role, + search, + user, _request_auth, _content_type, _headers, @@ -6320,9 +3340,43 @@ def _rbac_permissions_users_destroy_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if codename is not None: + + _query_params.append(('codename', codename)) + + if content_type__app_label is not None: + + _query_params.append(('content_type__app_label', content_type__app_label)) + + if content_type__model is not None: + + _query_params.append(('content_type__model', content_type__model)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if role is not None: + + _query_params.append(('role', role)) + + if search is not None: + + _query_params.append(('search', search)) + + if user is not None: + + _query_params.append(('user', user)) + # process the header parameters # process the form parameters # process the body parameter @@ -6343,8 +3397,8 @@ def _rbac_permissions_users_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/rbac/permissions/users/{id}/', + method='GET', + resource_path='/rbac/permissions/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6361,13 +3415,9 @@ def _rbac_permissions_users_destroy_serialize( @validate_call - def rbac_permissions_users_list( + def rbac_permissions_retrieve( self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user_id: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this permission.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6380,21 +3430,13 @@ def rbac_permissions_users_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedExtraUserObjectPermissionList: - """rbac_permissions_users_list + ) -> Permission: + """rbac_permissions_retrieve - Get a users's assigned object permissions + Read-only list of all permissions, filterable by model and app - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user_id: - :type user_id: int + :param id: A unique integer value identifying this permission. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6417,12 +3459,8 @@ def rbac_permissions_users_list( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user_id=user_id, + _param = self._rbac_permissions_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6430,7 +3468,7 @@ def rbac_permissions_users_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedExtraUserObjectPermissionList", + '200': "Permission", '400': "ValidationError", '403': "GenericError", } @@ -6446,13 +3484,9 @@ def rbac_permissions_users_list( @validate_call - def rbac_permissions_users_list_with_http_info( + def rbac_permissions_retrieve_with_http_info( self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user_id: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this permission.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6465,21 +3499,13 @@ def rbac_permissions_users_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedExtraUserObjectPermissionList]: - """rbac_permissions_users_list + ) -> ApiResponse[Permission]: + """rbac_permissions_retrieve - Get a users's assigned object permissions + Read-only list of all permissions, filterable by model and app - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user_id: - :type user_id: int + :param id: A unique integer value identifying this permission. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6502,12 +3528,8 @@ def rbac_permissions_users_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user_id=user_id, + _param = self._rbac_permissions_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6515,7 +3537,7 @@ def rbac_permissions_users_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedExtraUserObjectPermissionList", + '200': "Permission", '400': "ValidationError", '403': "GenericError", } @@ -6531,13 +3553,9 @@ def rbac_permissions_users_list_with_http_info( @validate_call - def rbac_permissions_users_list_without_preload_content( + def rbac_permissions_retrieve_without_preload_content( self, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - user_id: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this permission.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6551,20 +3569,12 @@ def rbac_permissions_users_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_permissions_users_list + """rbac_permissions_retrieve - Get a users's assigned object permissions + Read-only list of all permissions, filterable by model and app - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param user_id: - :type user_id: int + :param id: A unique integer value identifying this permission. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6587,12 +3597,8 @@ def rbac_permissions_users_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_list_serialize( - ordering=ordering, - page=page, - page_size=page_size, - search=search, - user_id=user_id, + _param = self._rbac_permissions_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6600,7 +3606,7 @@ def rbac_permissions_users_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedExtraUserObjectPermissionList", + '200': "Permission", '400': "ValidationError", '403': "GenericError", } @@ -6611,13 +3617,9 @@ def rbac_permissions_users_list_without_preload_content( return response_data.response - def _rbac_permissions_users_list_serialize( + def _rbac_permissions_retrieve_serialize( self, - ordering, - page, - page_size, - search, - user_id, + id, _request_auth, _content_type, _headers, @@ -6639,27 +3641,9 @@ def _rbac_permissions_users_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if user_id is not None: - - _query_params.append(('user_id', user_id)) - # process the header parameters # process the form parameters # process the body parameter @@ -6681,7 +3665,7 @@ def _rbac_permissions_users_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/rbac/permissions/users/', + resource_path='/rbac/permissions/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6698,10 +3682,13 @@ def _rbac_permissions_users_list_serialize( @validate_call - def rbac_permissions_users_partial_update( + def rbac_permissions_roles_list( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], - patched_extra_user_object_permission_request: Optional[PatchedExtraUserObjectPermissionRequest] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + uuid: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6714,15 +3701,21 @@ def rbac_permissions_users_partial_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtraUserObjectPermission: - """rbac_permissions_users_partial_update + ) -> PaginatedExtraRoleObjectPermissionList: + """rbac_permissions_roles_list - Get a users's assigned object permissions + Get a role's assigned object permissions - :param id: A unique integer value identifying this user object permission. (required) - :type id: int - :param patched_extra_user_object_permission_request: - :type patched_extra_user_object_permission_request: PatchedExtraUserObjectPermissionRequest + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param uuid: + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6745,9 +3738,12 @@ def rbac_permissions_users_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_partial_update_serialize( - id=id, - patched_extra_user_object_permission_request=patched_extra_user_object_permission_request, + _param = self._rbac_permissions_roles_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6755,7 +3751,7 @@ def rbac_permissions_users_partial_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '200': "PaginatedExtraRoleObjectPermissionList", '400': "ValidationError", '403': "GenericError", } @@ -6771,10 +3767,13 @@ def rbac_permissions_users_partial_update( @validate_call - def rbac_permissions_users_partial_update_with_http_info( + def rbac_permissions_roles_list_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], - patched_extra_user_object_permission_request: Optional[PatchedExtraUserObjectPermissionRequest] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + uuid: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6787,15 +3786,21 @@ def rbac_permissions_users_partial_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtraUserObjectPermission]: - """rbac_permissions_users_partial_update + ) -> ApiResponse[PaginatedExtraRoleObjectPermissionList]: + """rbac_permissions_roles_list - Get a users's assigned object permissions + Get a role's assigned object permissions - :param id: A unique integer value identifying this user object permission. (required) - :type id: int - :param patched_extra_user_object_permission_request: - :type patched_extra_user_object_permission_request: PatchedExtraUserObjectPermissionRequest + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param uuid: + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6818,9 +3823,12 @@ def rbac_permissions_users_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_partial_update_serialize( - id=id, - patched_extra_user_object_permission_request=patched_extra_user_object_permission_request, + _param = self._rbac_permissions_roles_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6828,7 +3836,7 @@ def rbac_permissions_users_partial_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '200': "PaginatedExtraRoleObjectPermissionList", '400': "ValidationError", '403': "GenericError", } @@ -6844,10 +3852,13 @@ def rbac_permissions_users_partial_update_with_http_info( @validate_call - def rbac_permissions_users_partial_update_without_preload_content( + def rbac_permissions_roles_list_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], - patched_extra_user_object_permission_request: Optional[PatchedExtraUserObjectPermissionRequest] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + uuid: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6861,14 +3872,20 @@ def rbac_permissions_users_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_permissions_users_partial_update + """rbac_permissions_roles_list - Get a users's assigned object permissions + Get a role's assigned object permissions - :param id: A unique integer value identifying this user object permission. (required) - :type id: int - :param patched_extra_user_object_permission_request: - :type patched_extra_user_object_permission_request: PatchedExtraUserObjectPermissionRequest + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param uuid: + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6891,9 +3908,12 @@ def rbac_permissions_users_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_partial_update_serialize( - id=id, - patched_extra_user_object_permission_request=patched_extra_user_object_permission_request, + _param = self._rbac_permissions_roles_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6901,7 +3921,7 @@ def rbac_permissions_users_partial_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '200': "PaginatedExtraRoleObjectPermissionList", '400': "ValidationError", '403': "GenericError", } @@ -6912,10 +3932,13 @@ def rbac_permissions_users_partial_update_without_preload_content( return response_data.response - def _rbac_permissions_users_partial_update_serialize( + def _rbac_permissions_roles_list_serialize( self, - id, - patched_extra_user_object_permission_request, + ordering, + page, + page_size, + search, + uuid, _request_auth, _content_type, _headers, @@ -6937,14 +3960,30 @@ def _rbac_permissions_users_partial_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if uuid is not None: + + _query_params.append(('uuid', uuid)) + # process the header parameters # process the form parameters # process the body parameter - if patched_extra_user_object_permission_request is not None: - _body_params = patched_extra_user_object_permission_request # set the HTTP header `Accept` @@ -6955,19 +3994,6 @@ def _rbac_permissions_users_partial_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6975,8 +4001,8 @@ def _rbac_permissions_users_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/rbac/permissions/users/{id}/', + method='GET', + resource_path='/rbac/permissions/roles/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6993,9 +4019,10 @@ def _rbac_permissions_users_partial_update_serialize( @validate_call - def rbac_permissions_users_retrieve( + def rbac_roles_add_user_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7008,13 +4035,15 @@ def rbac_permissions_users_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtraUserObjectPermission: - """rbac_permissions_users_retrieve + ) -> None: + """rbac_roles_add_user_create - Get a users's assigned object permissions + Add user to role - :param id: A unique integer value identifying this user object permission. (required) - :type id: int + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str + :param user_account_serializer_for_role_request: (required) + :type user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7037,8 +4066,9 @@ def rbac_permissions_users_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_retrieve_serialize( - id=id, + _param = self._rbac_roles_add_user_create_serialize( + uuid=uuid, + user_account_serializer_for_role_request=user_account_serializer_for_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7046,7 +4076,8 @@ def rbac_permissions_users_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -7062,9 +4093,10 @@ def rbac_permissions_users_retrieve( @validate_call - def rbac_permissions_users_retrieve_with_http_info( + def rbac_roles_add_user_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7077,13 +4109,15 @@ def rbac_permissions_users_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtraUserObjectPermission]: - """rbac_permissions_users_retrieve + ) -> ApiResponse[None]: + """rbac_roles_add_user_create - Get a users's assigned object permissions + Add user to role - :param id: A unique integer value identifying this user object permission. (required) - :type id: int + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str + :param user_account_serializer_for_role_request: (required) + :type user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7106,8 +4140,9 @@ def rbac_permissions_users_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_retrieve_serialize( - id=id, + _param = self._rbac_roles_add_user_create_serialize( + uuid=uuid, + user_account_serializer_for_role_request=user_account_serializer_for_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7115,7 +4150,8 @@ def rbac_permissions_users_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -7131,9 +4167,10 @@ def rbac_permissions_users_retrieve_with_http_info( @validate_call - def rbac_permissions_users_retrieve_without_preload_content( + def rbac_roles_add_user_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7147,12 +4184,14 @@ def rbac_permissions_users_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_permissions_users_retrieve + """rbac_roles_add_user_create - Get a users's assigned object permissions + Add user to role - :param id: A unique integer value identifying this user object permission. (required) - :type id: int + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str + :param user_account_serializer_for_role_request: (required) + :type user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7175,8 +4214,9 @@ def rbac_permissions_users_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_retrieve_serialize( - id=id, + _param = self._rbac_roles_add_user_create_serialize( + uuid=uuid, + user_account_serializer_for_role_request=user_account_serializer_for_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7184,7 +4224,8 @@ def rbac_permissions_users_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -7195,9 +4236,10 @@ def rbac_permissions_users_retrieve_without_preload_content( return response_data.response - def _rbac_permissions_users_retrieve_serialize( + def _rbac_roles_add_user_create_serialize( self, - id, + uuid, + user_account_serializer_for_role_request, _request_auth, _content_type, _headers, @@ -7219,12 +4261,14 @@ def _rbac_permissions_users_retrieve_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if uuid is not None: + _path_params['uuid'] = uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if user_account_serializer_for_role_request is not None: + _body_params = user_account_serializer_for_role_request # set the HTTP header `Accept` @@ -7235,6 +4279,19 @@ def _rbac_permissions_users_retrieve_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7242,8 +4299,8 @@ def _rbac_permissions_users_retrieve_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/rbac/permissions/users/{id}/', + method='POST', + resource_path='/rbac/roles/{uuid}/add_user/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7260,10 +4317,9 @@ def _rbac_permissions_users_retrieve_serialize( @validate_call - def rbac_permissions_users_update( + def rbac_roles_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], - extra_user_object_permission_request: ExtraUserObjectPermissionRequest, + role_request: RoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7276,15 +4332,13 @@ def rbac_permissions_users_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ExtraUserObjectPermission: - """rbac_permissions_users_update + ) -> Role: + """rbac_roles_create - Get a users's assigned object permissions + Role viewset - :param id: A unique integer value identifying this user object permission. (required) - :type id: int - :param extra_user_object_permission_request: (required) - :type extra_user_object_permission_request: ExtraUserObjectPermissionRequest + :param role_request: (required) + :type role_request: RoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7307,9 +4361,8 @@ def rbac_permissions_users_update( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_update_serialize( - id=id, - extra_user_object_permission_request=extra_user_object_permission_request, + _param = self._rbac_roles_create_serialize( + role_request=role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7317,7 +4370,7 @@ def rbac_permissions_users_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '201': "Role", '400': "ValidationError", '403': "GenericError", } @@ -7333,10 +4386,9 @@ def rbac_permissions_users_update( @validate_call - def rbac_permissions_users_update_with_http_info( + def rbac_roles_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], - extra_user_object_permission_request: ExtraUserObjectPermissionRequest, + role_request: RoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7349,15 +4401,13 @@ def rbac_permissions_users_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ExtraUserObjectPermission]: - """rbac_permissions_users_update + ) -> ApiResponse[Role]: + """rbac_roles_create - Get a users's assigned object permissions + Role viewset - :param id: A unique integer value identifying this user object permission. (required) - :type id: int - :param extra_user_object_permission_request: (required) - :type extra_user_object_permission_request: ExtraUserObjectPermissionRequest + :param role_request: (required) + :type role_request: RoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7380,9 +4430,8 @@ def rbac_permissions_users_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_update_serialize( - id=id, - extra_user_object_permission_request=extra_user_object_permission_request, + _param = self._rbac_roles_create_serialize( + role_request=role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7390,7 +4439,7 @@ def rbac_permissions_users_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '201': "Role", '400': "ValidationError", '403': "GenericError", } @@ -7406,10 +4455,9 @@ def rbac_permissions_users_update_with_http_info( @validate_call - def rbac_permissions_users_update_without_preload_content( + def rbac_roles_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this user object permission.")], - extra_user_object_permission_request: ExtraUserObjectPermissionRequest, + role_request: RoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7423,14 +4471,12 @@ def rbac_permissions_users_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_permissions_users_update + """rbac_roles_create - Get a users's assigned object permissions + Role viewset - :param id: A unique integer value identifying this user object permission. (required) - :type id: int - :param extra_user_object_permission_request: (required) - :type extra_user_object_permission_request: ExtraUserObjectPermissionRequest + :param role_request: (required) + :type role_request: RoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7453,9 +4499,8 @@ def rbac_permissions_users_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_permissions_users_update_serialize( - id=id, - extra_user_object_permission_request=extra_user_object_permission_request, + _param = self._rbac_roles_create_serialize( + role_request=role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7463,7 +4508,7 @@ def rbac_permissions_users_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ExtraUserObjectPermission", + '201': "Role", '400': "ValidationError", '403': "GenericError", } @@ -7474,10 +4519,9 @@ def rbac_permissions_users_update_without_preload_content( return response_data.response - def _rbac_permissions_users_update_serialize( + def _rbac_roles_create_serialize( self, - id, - extra_user_object_permission_request, + role_request, _request_auth, _content_type, _headers, @@ -7499,14 +4543,12 @@ def _rbac_permissions_users_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if extra_user_object_permission_request is not None: - _body_params = extra_user_object_permission_request + if role_request is not None: + _body_params = role_request # set the HTTP header `Accept` @@ -7537,8 +4579,8 @@ def _rbac_permissions_users_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/rbac/permissions/users/{id}/', + method='POST', + resource_path='/rbac/roles/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7555,9 +4597,9 @@ def _rbac_permissions_users_update_serialize( @validate_call - def rbac_roles_create( + def rbac_roles_destroy( self, - role_request: RoleRequest, + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7570,13 +4612,13 @@ def rbac_roles_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Role: - """rbac_roles_create + ) -> None: + """rbac_roles_destroy Role viewset - :param role_request: (required) - :type role_request: RoleRequest + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7599,8 +4641,8 @@ def rbac_roles_create( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_create_serialize( - role_request=role_request, + _param = self._rbac_roles_destroy_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7608,7 +4650,7 @@ def rbac_roles_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Role", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -7624,9 +4666,9 @@ def rbac_roles_create( @validate_call - def rbac_roles_create_with_http_info( + def rbac_roles_destroy_with_http_info( self, - role_request: RoleRequest, + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7639,13 +4681,13 @@ def rbac_roles_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Role]: - """rbac_roles_create + ) -> ApiResponse[None]: + """rbac_roles_destroy Role viewset - :param role_request: (required) - :type role_request: RoleRequest + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7668,8 +4710,8 @@ def rbac_roles_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_create_serialize( - role_request=role_request, + _param = self._rbac_roles_destroy_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7677,7 +4719,7 @@ def rbac_roles_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Role", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -7693,9 +4735,9 @@ def rbac_roles_create_with_http_info( @validate_call - def rbac_roles_create_without_preload_content( + def rbac_roles_destroy_without_preload_content( self, - role_request: RoleRequest, + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7709,12 +4751,12 @@ def rbac_roles_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_roles_create + """rbac_roles_destroy Role viewset - :param role_request: (required) - :type role_request: RoleRequest + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7737,8 +4779,8 @@ def rbac_roles_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_create_serialize( - role_request=role_request, + _param = self._rbac_roles_destroy_serialize( + uuid=uuid, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7746,7 +4788,7 @@ def rbac_roles_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "Role", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -7757,9 +4799,9 @@ def rbac_roles_create_without_preload_content( return response_data.response - def _rbac_roles_create_serialize( + def _rbac_roles_destroy_serialize( self, - role_request, + uuid, _request_auth, _content_type, _headers, @@ -7781,12 +4823,12 @@ def _rbac_roles_create_serialize( _body_params: Optional[bytes] = None # process the path parameters + if uuid is not None: + _path_params['uuid'] = uuid # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if role_request is not None: - _body_params = role_request # set the HTTP header `Accept` @@ -7797,19 +4839,6 @@ def _rbac_roles_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7817,8 +4846,8 @@ def _rbac_roles_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/rbac/roles/', + method='DELETE', + resource_path='/rbac/roles/{uuid}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7835,9 +4864,18 @@ def _rbac_roles_create_serialize( @validate_call - def rbac_roles_destroy( + def rbac_roles_list( self, - uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + ak_groups: Optional[UUID] = None, + inherited: Annotated[Optional[StrictBool], Field(description="Include inherited roles (requires users or ak_groups filter)")] = None, + managed: Optional[List[StrictStr]] = None, + managed__isnull: Optional[StrictBool] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + users: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7850,13 +4888,31 @@ def rbac_roles_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """rbac_roles_destroy + ) -> PaginatedRoleList: + """rbac_roles_list Role viewset - :param uuid: A UUID string identifying this Role. (required) - :type uuid: str + :param ak_groups: + :type ak_groups: str + :param inherited: Include inherited roles (requires users or ak_groups filter) + :type inherited: bool + :param managed: + :type managed: List[str] + :param managed__isnull: + :type managed__isnull: bool + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param users: + :type users: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7879,8 +4935,17 @@ def rbac_roles_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_destroy_serialize( - uuid=uuid, + _param = self._rbac_roles_list_serialize( + ak_groups=ak_groups, + inherited=inherited, + managed=managed, + managed__isnull=managed__isnull, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + users=users, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7888,7 +4953,7 @@ def rbac_roles_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedRoleList", '400': "ValidationError", '403': "GenericError", } @@ -7904,9 +4969,18 @@ def rbac_roles_destroy( @validate_call - def rbac_roles_destroy_with_http_info( + def rbac_roles_list_with_http_info( self, - uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + ak_groups: Optional[UUID] = None, + inherited: Annotated[Optional[StrictBool], Field(description="Include inherited roles (requires users or ak_groups filter)")] = None, + managed: Optional[List[StrictStr]] = None, + managed__isnull: Optional[StrictBool] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + users: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7919,13 +4993,31 @@ def rbac_roles_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """rbac_roles_destroy + ) -> ApiResponse[PaginatedRoleList]: + """rbac_roles_list Role viewset - :param uuid: A UUID string identifying this Role. (required) - :type uuid: str + :param ak_groups: + :type ak_groups: str + :param inherited: Include inherited roles (requires users or ak_groups filter) + :type inherited: bool + :param managed: + :type managed: List[str] + :param managed__isnull: + :type managed__isnull: bool + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param users: + :type users: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7948,8 +5040,17 @@ def rbac_roles_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_destroy_serialize( - uuid=uuid, + _param = self._rbac_roles_list_serialize( + ak_groups=ak_groups, + inherited=inherited, + managed=managed, + managed__isnull=managed__isnull, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + users=users, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7957,7 +5058,7 @@ def rbac_roles_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedRoleList", '400': "ValidationError", '403': "GenericError", } @@ -7973,9 +5074,18 @@ def rbac_roles_destroy_with_http_info( @validate_call - def rbac_roles_destroy_without_preload_content( + def rbac_roles_list_without_preload_content( self, - uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + ak_groups: Optional[UUID] = None, + inherited: Annotated[Optional[StrictBool], Field(description="Include inherited roles (requires users or ak_groups filter)")] = None, + managed: Optional[List[StrictStr]] = None, + managed__isnull: Optional[StrictBool] = None, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + users: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7989,12 +5099,30 @@ def rbac_roles_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_roles_destroy + """rbac_roles_list Role viewset - :param uuid: A UUID string identifying this Role. (required) - :type uuid: str + :param ak_groups: + :type ak_groups: str + :param inherited: Include inherited roles (requires users or ak_groups filter) + :type inherited: bool + :param managed: + :type managed: List[str] + :param managed__isnull: + :type managed__isnull: bool + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param users: + :type users: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8016,9 +5144,18 @@ def rbac_roles_destroy_without_preload_content( :type _host_index: int, optional :return: Returns the result object. """ # noqa: E501 - - _param = self._rbac_roles_destroy_serialize( - uuid=uuid, + + _param = self._rbac_roles_list_serialize( + ak_groups=ak_groups, + inherited=inherited, + managed=managed, + managed__isnull=managed__isnull, + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + users=users, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8026,7 +5163,7 @@ def rbac_roles_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "PaginatedRoleList", '400': "ValidationError", '403': "GenericError", } @@ -8037,9 +5174,18 @@ def rbac_roles_destroy_without_preload_content( return response_data.response - def _rbac_roles_destroy_serialize( + def _rbac_roles_list_serialize( self, - uuid, + ak_groups, + inherited, + managed, + managed__isnull, + name, + ordering, + page, + page_size, + search, + users, _request_auth, _content_type, _headers, @@ -8049,6 +5195,7 @@ def _rbac_roles_destroy_serialize( _host = None _collection_formats: Dict[str, str] = { + 'managed': 'multi', } _path_params: Dict[str, str] = {} @@ -8061,9 +5208,47 @@ def _rbac_roles_destroy_serialize( _body_params: Optional[bytes] = None # process the path parameters - if uuid is not None: - _path_params['uuid'] = uuid # process the query parameters + if ak_groups is not None: + + _query_params.append(('ak_groups', ak_groups)) + + if inherited is not None: + + _query_params.append(('inherited', inherited)) + + if managed is not None: + + _query_params.append(('managed', managed)) + + if managed__isnull is not None: + + _query_params.append(('managed__isnull', managed__isnull)) + + if name is not None: + + _query_params.append(('name', name)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if users is not None: + + _query_params.append(('users', users)) + # process the header parameters # process the form parameters # process the body parameter @@ -8084,8 +5269,8 @@ def _rbac_roles_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/rbac/roles/{uuid}/', + method='GET', + resource_path='/rbac/roles/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8102,13 +5287,10 @@ def _rbac_roles_destroy_serialize( @validate_call - def rbac_roles_list( + def rbac_roles_partial_update( self, - name: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + patched_role_request: Optional[PatchedRoleRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8121,21 +5303,15 @@ def rbac_roles_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedRoleList: - """rbac_roles_list + ) -> Role: + """rbac_roles_partial_update Role viewset - :param name: - :type name: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str + :param patched_role_request: + :type patched_role_request: PatchedRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8158,12 +5334,9 @@ def rbac_roles_list( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_list_serialize( - name=name, - ordering=ordering, - page=page, - page_size=page_size, - search=search, + _param = self._rbac_roles_partial_update_serialize( + uuid=uuid, + patched_role_request=patched_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8171,7 +5344,7 @@ def rbac_roles_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedRoleList", + '200': "Role", '400': "ValidationError", '403': "GenericError", } @@ -8187,13 +5360,10 @@ def rbac_roles_list( @validate_call - def rbac_roles_list_with_http_info( + def rbac_roles_partial_update_with_http_info( self, - name: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + patched_role_request: Optional[PatchedRoleRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8206,21 +5376,15 @@ def rbac_roles_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedRoleList]: - """rbac_roles_list + ) -> ApiResponse[Role]: + """rbac_roles_partial_update Role viewset - :param name: - :type name: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str + :param patched_role_request: + :type patched_role_request: PatchedRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8243,12 +5407,9 @@ def rbac_roles_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_list_serialize( - name=name, - ordering=ordering, - page=page, - page_size=page_size, - search=search, + _param = self._rbac_roles_partial_update_serialize( + uuid=uuid, + patched_role_request=patched_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8256,7 +5417,7 @@ def rbac_roles_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedRoleList", + '200': "Role", '400': "ValidationError", '403': "GenericError", } @@ -8272,13 +5433,10 @@ def rbac_roles_list_with_http_info( @validate_call - def rbac_roles_list_without_preload_content( + def rbac_roles_partial_update_without_preload_content( self, - name: Optional[StrictStr] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], + patched_role_request: Optional[PatchedRoleRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8292,20 +5450,14 @@ def rbac_roles_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_roles_list + """rbac_roles_partial_update Role viewset - :param name: - :type name: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str + :param uuid: A UUID string identifying this Role. (required) + :type uuid: str + :param patched_role_request: + :type patched_role_request: PatchedRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8328,12 +5480,9 @@ def rbac_roles_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_list_serialize( - name=name, - ordering=ordering, - page=page, - page_size=page_size, - search=search, + _param = self._rbac_roles_partial_update_serialize( + uuid=uuid, + patched_role_request=patched_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8341,7 +5490,7 @@ def rbac_roles_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedRoleList", + '200': "Role", '400': "ValidationError", '403': "GenericError", } @@ -8352,13 +5501,10 @@ def rbac_roles_list_without_preload_content( return response_data.response - def _rbac_roles_list_serialize( + def _rbac_roles_partial_update_serialize( self, - name, - ordering, - page, - page_size, - search, + uuid, + patched_role_request, _request_auth, _content_type, _headers, @@ -8380,30 +5526,14 @@ def _rbac_roles_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if uuid is not None: + _path_params['uuid'] = uuid # process the query parameters - if name is not None: - - _query_params.append(('name', name)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - # process the header parameters # process the form parameters # process the body parameter + if patched_role_request is not None: + _body_params = patched_role_request # set the HTTP header `Accept` @@ -8414,6 +5544,19 @@ def _rbac_roles_list_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8421,8 +5564,8 @@ def _rbac_roles_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/rbac/roles/', + method='PATCH', + resource_path='/rbac/roles/{uuid}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8439,10 +5582,10 @@ def _rbac_roles_list_serialize( @validate_call - def rbac_roles_partial_update( + def rbac_roles_remove_user_create( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], - patched_role_request: Optional[PatchedRoleRequest] = None, + user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8455,15 +5598,15 @@ def rbac_roles_partial_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> Role: - """rbac_roles_partial_update + ) -> None: + """rbac_roles_remove_user_create - Role viewset + Remove user from role :param uuid: A UUID string identifying this Role. (required) :type uuid: str - :param patched_role_request: - :type patched_role_request: PatchedRoleRequest + :param user_account_serializer_for_role_request: (required) + :type user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8486,9 +5629,9 @@ def rbac_roles_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_partial_update_serialize( + _param = self._rbac_roles_remove_user_create_serialize( uuid=uuid, - patched_role_request=patched_role_request, + user_account_serializer_for_role_request=user_account_serializer_for_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8496,7 +5639,8 @@ def rbac_roles_partial_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Role", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -8512,10 +5656,10 @@ def rbac_roles_partial_update( @validate_call - def rbac_roles_partial_update_with_http_info( + def rbac_roles_remove_user_create_with_http_info( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], - patched_role_request: Optional[PatchedRoleRequest] = None, + user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8528,15 +5672,15 @@ def rbac_roles_partial_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[Role]: - """rbac_roles_partial_update + ) -> ApiResponse[None]: + """rbac_roles_remove_user_create - Role viewset + Remove user from role :param uuid: A UUID string identifying this Role. (required) :type uuid: str - :param patched_role_request: - :type patched_role_request: PatchedRoleRequest + :param user_account_serializer_for_role_request: (required) + :type user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8559,9 +5703,9 @@ def rbac_roles_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_partial_update_serialize( + _param = self._rbac_roles_remove_user_create_serialize( uuid=uuid, - patched_role_request=patched_role_request, + user_account_serializer_for_role_request=user_account_serializer_for_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8569,7 +5713,8 @@ def rbac_roles_partial_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Role", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -8585,10 +5730,10 @@ def rbac_roles_partial_update_with_http_info( @validate_call - def rbac_roles_partial_update_without_preload_content( + def rbac_roles_remove_user_create_without_preload_content( self, uuid: Annotated[UUID, Field(description="A UUID string identifying this Role.")], - patched_role_request: Optional[PatchedRoleRequest] = None, + user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8602,14 +5747,14 @@ def rbac_roles_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """rbac_roles_partial_update + """rbac_roles_remove_user_create - Role viewset + Remove user from role :param uuid: A UUID string identifying this Role. (required) :type uuid: str - :param patched_role_request: - :type patched_role_request: PatchedRoleRequest + :param user_account_serializer_for_role_request: (required) + :type user_account_serializer_for_role_request: UserAccountSerializerForRoleRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8632,9 +5777,9 @@ def rbac_roles_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._rbac_roles_partial_update_serialize( + _param = self._rbac_roles_remove_user_create_serialize( uuid=uuid, - patched_role_request=patched_role_request, + user_account_serializer_for_role_request=user_account_serializer_for_role_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8642,7 +5787,8 @@ def rbac_roles_partial_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "Role", + '204': None, + '404': None, '400': "ValidationError", '403': "GenericError", } @@ -8653,10 +5799,10 @@ def rbac_roles_partial_update_without_preload_content( return response_data.response - def _rbac_roles_partial_update_serialize( + def _rbac_roles_remove_user_create_serialize( self, uuid, - patched_role_request, + user_account_serializer_for_role_request, _request_auth, _content_type, _headers, @@ -8684,8 +5830,8 @@ def _rbac_roles_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_role_request is not None: - _body_params = patched_role_request + if user_account_serializer_for_role_request is not None: + _body_params = user_account_serializer_for_role_request # set the HTTP header `Accept` @@ -8716,8 +5862,8 @@ def _rbac_roles_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/rbac/roles/{uuid}/', + method='POST', + resource_path='/rbac/roles/{uuid}/remove_user/', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/authentik_client/api/reports_api.py b/authentik_client/api/reports_api.py new file mode 100644 index 000000000..09b6e6af4 --- /dev/null +++ b/authentik_client/api/reports_api.py @@ -0,0 +1,887 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import Field, StrictInt, StrictStr +from typing import Optional +from typing_extensions import Annotated +from uuid import UUID +from authentik_client.models.data_export import DataExport +from authentik_client.models.paginated_data_export_list import PaginatedDataExportList + +from authentik_client.api_client import ApiClient, RequestSerialized +from authentik_client.api_response import ApiResponse +from authentik_client.rest import RESTResponseType + + +class ReportsApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def reports_exports_destroy( + self, + id: Annotated[UUID, Field(description="A UUID string identifying this Data Export.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """reports_exports_destroy + + + :param id: A UUID string identifying this Data Export. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_destroy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def reports_exports_destroy_with_http_info( + self, + id: Annotated[UUID, Field(description="A UUID string identifying this Data Export.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """reports_exports_destroy + + + :param id: A UUID string identifying this Data Export. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_destroy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def reports_exports_destroy_without_preload_content( + self, + id: Annotated[UUID, Field(description="A UUID string identifying this Data Export.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """reports_exports_destroy + + + :param id: A UUID string identifying this Data Export. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_destroy_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _reports_exports_destroy_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/reports/exports/{id}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def reports_exports_list( + self, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedDataExportList: + """reports_exports_list + + + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDataExportList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def reports_exports_list_with_http_info( + self, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedDataExportList]: + """reports_exports_list + + + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDataExportList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def reports_exports_list_without_preload_content( + self, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """reports_exports_list + + + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_list_serialize( + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedDataExportList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _reports_exports_list_serialize( + self, + ordering, + page, + page_size, + search, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/reports/exports/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def reports_exports_retrieve( + self, + id: Annotated[UUID, Field(description="A UUID string identifying this Data Export.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> DataExport: + """reports_exports_retrieve + + + :param id: A UUID string identifying this Data Export. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_retrieve_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataExport", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def reports_exports_retrieve_with_http_info( + self, + id: Annotated[UUID, Field(description="A UUID string identifying this Data Export.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[DataExport]: + """reports_exports_retrieve + + + :param id: A UUID string identifying this Data Export. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_retrieve_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataExport", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def reports_exports_retrieve_without_preload_content( + self, + id: Annotated[UUID, Field(description="A UUID string identifying this Data Export.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """reports_exports_retrieve + + + :param id: A UUID string identifying this Data Export. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._reports_exports_retrieve_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataExport", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _reports_exports_retrieve_serialize( + self, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/reports/exports/{id}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/authentik_client/api/root_api.py b/authentik_client/api/root_api.py index b37d3e522..8d5d9c3af 100644 --- a/authentik_client/api/root_api.py +++ b/authentik_client/api/root_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/schema_api.py b/authentik_client/api/schema_api.py index 69e123958..e8ae415f4 100644 --- a/authentik_client/api/schema_api.py +++ b/authentik_client/api/schema_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/sources_api.py b/authentik_client/api/sources_api.py index 42d099db2..5cc979dbf 100644 --- a/authentik_client/api/sources_api.py +++ b/authentik_client/api/sources_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -17,11 +17,10 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator -from typing import List, Optional, Tuple, Union +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator +from typing import List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.file_path_request import FilePathRequest from authentik_client.models.group_kerberos_source_connection import GroupKerberosSourceConnection from authentik_client.models.group_kerberos_source_connection_request import GroupKerberosSourceConnectionRequest from authentik_client.models.group_ldap_source_connection import GroupLDAPSourceConnection @@ -106,6 +105,7 @@ from authentik_client.models.source import Source from authentik_client.models.source_type import SourceType from authentik_client.models.sync_status import SyncStatus +from authentik_client.models.telegram_auth_request import TelegramAuthRequest from authentik_client.models.telegram_source import TelegramSource from authentik_client.models.telegram_source_request import TelegramSourceRequest from authentik_client.models.type_create import TypeCreate @@ -1067,11 +1067,8 @@ def _sources_all_retrieve_serialize( @validate_call - def sources_all_set_icon_create( + def sources_all_types_list( self, - slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1084,17 +1081,11 @@ def sources_all_set_icon_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_all_set_icon_create + ) -> List[TypeCreate]: + """sources_all_types_list - Set source icon + Get all creatable types - :param slug: (required) - :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1117,10 +1108,7 @@ def sources_all_set_icon_create( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_set_icon_create_serialize( - slug=slug, - file=file, - clear=clear, + _param = self._sources_all_types_list_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1128,8 +1116,8 @@ def sources_all_set_icon_create( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[TypeCreate]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -1144,11 +1132,8 @@ def sources_all_set_icon_create( @validate_call - def sources_all_set_icon_create_with_http_info( + def sources_all_types_list_with_http_info( self, - slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1161,17 +1146,11 @@ def sources_all_set_icon_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_all_set_icon_create + ) -> ApiResponse[List[TypeCreate]]: + """sources_all_types_list - Set source icon + Get all creatable types - :param slug: (required) - :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1194,10 +1173,7 @@ def sources_all_set_icon_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_set_icon_create_serialize( - slug=slug, - file=file, - clear=clear, + _param = self._sources_all_types_list_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1205,8 +1181,8 @@ def sources_all_set_icon_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[TypeCreate]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -1221,11 +1197,8 @@ def sources_all_set_icon_create_with_http_info( @validate_call - def sources_all_set_icon_create_without_preload_content( + def sources_all_types_list_without_preload_content( self, - slug: StrictStr, - file: Optional[Union[StrictBytes, StrictStr, Tuple[StrictStr, StrictBytes]]] = None, - clear: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1239,16 +1212,10 @@ def sources_all_set_icon_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_all_set_icon_create + """sources_all_types_list - Set source icon + Get all creatable types - :param slug: (required) - :type slug: str - :param file: - :type file: bytearray - :param clear: - :type clear: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1271,10 +1238,7 @@ def sources_all_set_icon_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_set_icon_create_serialize( - slug=slug, - file=file, - clear=clear, + _param = self._sources_all_types_list_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1282,8 +1246,8 @@ def sources_all_set_icon_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[TypeCreate]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -1293,11 +1257,8 @@ def sources_all_set_icon_create_without_preload_content( return response_data.response - def _sources_all_set_icon_create_serialize( + def _sources_all_types_list_serialize( self, - slug, - file, - clear, _request_auth, _content_type, _headers, @@ -1319,15 +1280,9 @@ def _sources_all_set_icon_create_serialize( _body_params: Optional[bytes] = None # process the path parameters - if slug is not None: - _path_params['slug'] = slug # process the query parameters # process the header parameters # process the form parameters - if file is not None: - _files['file'] = file - if clear is not None: - _form_params.append(('clear', clear)) # process the body parameter @@ -1339,19 +1294,6 @@ def _sources_all_set_icon_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'multipart/form-data' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1359,8 +1301,8 @@ def _sources_all_set_icon_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/sources/all/{slug}/set_icon/', + method='GET', + resource_path='/sources/all/types/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1377,10 +1319,9 @@ def _sources_all_set_icon_create_serialize( @validate_call - def sources_all_set_icon_url_create( + def sources_all_used_by_list( self, slug: StrictStr, - file_path_request: FilePathRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1393,15 +1334,13 @@ def sources_all_set_icon_url_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_all_set_icon_url_create + ) -> List[UsedBy]: + """sources_all_used_by_list - Set source icon (as URL) + Get a list of all objects that use this object :param slug: (required) :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1424,9 +1363,8 @@ def sources_all_set_icon_url_create( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_set_icon_url_create_serialize( + _param = self._sources_all_used_by_list_serialize( slug=slug, - file_path_request=file_path_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1434,8 +1372,8 @@ def sources_all_set_icon_url_create( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[UsedBy]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -1450,10 +1388,9 @@ def sources_all_set_icon_url_create( @validate_call - def sources_all_set_icon_url_create_with_http_info( + def sources_all_used_by_list_with_http_info( self, slug: StrictStr, - file_path_request: FilePathRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1466,15 +1403,13 @@ def sources_all_set_icon_url_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_all_set_icon_url_create + ) -> ApiResponse[List[UsedBy]]: + """sources_all_used_by_list - Set source icon (as URL) + Get a list of all objects that use this object :param slug: (required) :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1497,9 +1432,8 @@ def sources_all_set_icon_url_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_set_icon_url_create_serialize( + _param = self._sources_all_used_by_list_serialize( slug=slug, - file_path_request=file_path_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1507,8 +1441,8 @@ def sources_all_set_icon_url_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[UsedBy]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -1523,10 +1457,9 @@ def sources_all_set_icon_url_create_with_http_info( @validate_call - def sources_all_set_icon_url_create_without_preload_content( + def sources_all_used_by_list_without_preload_content( self, slug: StrictStr, - file_path_request: FilePathRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1540,14 +1473,12 @@ def sources_all_set_icon_url_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_all_set_icon_url_create + """sources_all_used_by_list - Set source icon (as URL) + Get a list of all objects that use this object :param slug: (required) :type slug: str - :param file_path_request: (required) - :type file_path_request: FilePathRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1570,9 +1501,8 @@ def sources_all_set_icon_url_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_set_icon_url_create_serialize( + _param = self._sources_all_used_by_list_serialize( slug=slug, - file_path_request=file_path_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1580,8 +1510,8 @@ def sources_all_set_icon_url_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, + '200': "List[UsedBy]", + '400': "ValidationError", '403': "GenericError", } response_data = self.api_client.call_api( @@ -1591,10 +1521,9 @@ def sources_all_set_icon_url_create_without_preload_content( return response_data.response - def _sources_all_set_icon_url_create_serialize( + def _sources_all_used_by_list_serialize( self, slug, - file_path_request, _request_auth, _content_type, _headers, @@ -1622,8 +1551,6 @@ def _sources_all_set_icon_url_create_serialize( # process the header parameters # process the form parameters # process the body parameter - if file_path_request is not None: - _body_params = file_path_request # set the HTTP header `Accept` @@ -1634,19 +1561,6 @@ def _sources_all_set_icon_url_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1654,8 +1568,8 @@ def _sources_all_set_icon_url_create_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/sources/all/{slug}/set_icon_url/', + method='GET', + resource_path='/sources/all/{slug}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1672,7 +1586,7 @@ def _sources_all_set_icon_url_create_serialize( @validate_call - def sources_all_types_list( + def sources_all_user_settings_list( self, _request_timeout: Union[ None, @@ -1686,10 +1600,10 @@ def sources_all_types_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[TypeCreate]: - """sources_all_types_list + ) -> List[UserSetting]: + """sources_all_user_settings_list - Get all creatable types + Get all sources the user can configure :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1713,7 +1627,7 @@ def sources_all_types_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_types_list_serialize( + _param = self._sources_all_user_settings_list_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1721,7 +1635,7 @@ def sources_all_types_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[TypeCreate]", + '200': "List[UserSetting]", '400': "ValidationError", '403': "GenericError", } @@ -1737,7 +1651,7 @@ def sources_all_types_list( @validate_call - def sources_all_types_list_with_http_info( + def sources_all_user_settings_list_with_http_info( self, _request_timeout: Union[ None, @@ -1751,10 +1665,10 @@ def sources_all_types_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[TypeCreate]]: - """sources_all_types_list + ) -> ApiResponse[List[UserSetting]]: + """sources_all_user_settings_list - Get all creatable types + Get all sources the user can configure :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1778,7 +1692,7 @@ def sources_all_types_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_types_list_serialize( + _param = self._sources_all_user_settings_list_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1786,7 +1700,7 @@ def sources_all_types_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[TypeCreate]", + '200': "List[UserSetting]", '400': "ValidationError", '403': "GenericError", } @@ -1802,7 +1716,7 @@ def sources_all_types_list_with_http_info( @validate_call - def sources_all_types_list_without_preload_content( + def sources_all_user_settings_list_without_preload_content( self, _request_timeout: Union[ None, @@ -1817,9 +1731,9 @@ def sources_all_types_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_all_types_list + """sources_all_user_settings_list - Get all creatable types + Get all sources the user can configure :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -1843,7 +1757,7 @@ def sources_all_types_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_types_list_serialize( + _param = self._sources_all_user_settings_list_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1851,7 +1765,7 @@ def sources_all_types_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[TypeCreate]", + '200': "List[UserSetting]", '400': "ValidationError", '403': "GenericError", } @@ -1862,7 +1776,7 @@ def sources_all_types_list_without_preload_content( return response_data.response - def _sources_all_types_list_serialize( + def _sources_all_user_settings_list_serialize( self, _request_auth, _content_type, @@ -1907,7 +1821,7 @@ def _sources_all_types_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/all/types/', + resource_path='/sources/all/user_settings/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1924,9 +1838,9 @@ def _sources_all_types_list_serialize( @validate_call - def sources_all_used_by_list( + def sources_group_connections_all_destroy( self, - slug: StrictStr, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1939,13 +1853,13 @@ def sources_all_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_all_used_by_list + ) -> None: + """sources_group_connections_all_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param slug: (required) - :type slug: str + :param id: A unique integer value identifying this group source connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1968,8 +1882,8 @@ def sources_all_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_used_by_list_serialize( - slug=slug, + _param = self._sources_group_connections_all_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1977,7 +1891,7 @@ def sources_all_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -1993,9 +1907,9 @@ def sources_all_used_by_list( @validate_call - def sources_all_used_by_list_with_http_info( + def sources_group_connections_all_destroy_with_http_info( self, - slug: StrictStr, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2008,13 +1922,13 @@ def sources_all_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_all_used_by_list + ) -> ApiResponse[None]: + """sources_group_connections_all_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param slug: (required) - :type slug: str + :param id: A unique integer value identifying this group source connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2037,8 +1951,8 @@ def sources_all_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_used_by_list_serialize( - slug=slug, + _param = self._sources_group_connections_all_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2046,7 +1960,7 @@ def sources_all_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -2062,9 +1976,9 @@ def sources_all_used_by_list_with_http_info( @validate_call - def sources_all_used_by_list_without_preload_content( + def sources_group_connections_all_destroy_without_preload_content( self, - slug: StrictStr, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2078,12 +1992,12 @@ def sources_all_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_all_used_by_list + """sources_group_connections_all_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param slug: (required) - :type slug: str + :param id: A unique integer value identifying this group source connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2106,8 +2020,8 @@ def sources_all_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_used_by_list_serialize( - slug=slug, + _param = self._sources_group_connections_all_destroy_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2115,7 +2029,7 @@ def sources_all_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -2126,9 +2040,9 @@ def sources_all_used_by_list_without_preload_content( return response_data.response - def _sources_all_used_by_list_serialize( + def _sources_group_connections_all_destroy_serialize( self, - slug, + id, _request_auth, _content_type, _headers, @@ -2150,8 +2064,8 @@ def _sources_all_used_by_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - if slug is not None: - _path_params['slug'] = slug + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters @@ -2173,8 +2087,8 @@ def _sources_all_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/sources/all/{slug}/used_by/', + method='DELETE', + resource_path='/sources/group_connections/all/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2191,8 +2105,14 @@ def _sources_all_used_by_list_serialize( @validate_call - def sources_all_user_settings_list( + def sources_group_connections_all_list( self, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2205,11 +2125,23 @@ def sources_all_user_settings_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UserSetting]: - """sources_all_user_settings_list + ) -> PaginatedGroupSourceConnectionList: + """sources_group_connections_all_list - Get all sources the user can configure + Group-source connection Viewset + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2232,7 +2164,13 @@ def sources_all_user_settings_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_user_settings_list_serialize( + _param = self._sources_group_connections_all_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2240,7 +2178,7 @@ def sources_all_user_settings_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UserSetting]", + '200': "PaginatedGroupSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -2256,8 +2194,14 @@ def sources_all_user_settings_list( @validate_call - def sources_all_user_settings_list_with_http_info( + def sources_group_connections_all_list_with_http_info( self, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2270,11 +2214,23 @@ def sources_all_user_settings_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UserSetting]]: - """sources_all_user_settings_list + ) -> ApiResponse[PaginatedGroupSourceConnectionList]: + """sources_group_connections_all_list - Get all sources the user can configure + Group-source connection Viewset + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2297,7 +2253,13 @@ def sources_all_user_settings_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_user_settings_list_serialize( + _param = self._sources_group_connections_all_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2305,7 +2267,7 @@ def sources_all_user_settings_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UserSetting]", + '200': "PaginatedGroupSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -2321,8 +2283,14 @@ def sources_all_user_settings_list_with_http_info( @validate_call - def sources_all_user_settings_list_without_preload_content( + def sources_group_connections_all_list_without_preload_content( self, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2336,10 +2304,22 @@ def sources_all_user_settings_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_all_user_settings_list + """sources_group_connections_all_list - Get all sources the user can configure + Group-source connection Viewset + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2362,7 +2342,13 @@ def sources_all_user_settings_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_all_user_settings_list_serialize( + _param = self._sources_group_connections_all_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2370,7 +2356,7 @@ def sources_all_user_settings_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UserSetting]", + '200': "PaginatedGroupSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -2381,8 +2367,14 @@ def sources_all_user_settings_list_without_preload_content( return response_data.response - def _sources_all_user_settings_list_serialize( + def _sources_group_connections_all_list_serialize( self, + group, + ordering, + page, + page_size, + search, + source__slug, _request_auth, _content_type, _headers, @@ -2405,6 +2397,30 @@ def _sources_all_user_settings_list_serialize( # process the path parameters # process the query parameters + if group is not None: + + _query_params.append(('group', group)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if source__slug is not None: + + _query_params.append(('source__slug', source__slug)) + # process the header parameters # process the form parameters # process the body parameter @@ -2426,7 +2442,7 @@ def _sources_all_user_settings_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/all/user_settings/', + resource_path='/sources/group_connections/all/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2443,9 +2459,10 @@ def _sources_all_user_settings_list_serialize( @validate_call - def sources_group_connections_all_destroy( + def sources_group_connections_all_partial_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], + patched_group_source_connection_request: Optional[PatchedGroupSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2458,13 +2475,15 @@ def sources_group_connections_all_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_group_connections_all_destroy + ) -> GroupSourceConnection: + """sources_group_connections_all_partial_update Group-source connection Viewset :param id: A unique integer value identifying this group source connection. (required) :type id: int + :param patched_group_source_connection_request: + :type patched_group_source_connection_request: PatchedGroupSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2487,8 +2506,9 @@ def sources_group_connections_all_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_destroy_serialize( + _param = self._sources_group_connections_all_partial_update_serialize( id=id, + patched_group_source_connection_request=patched_group_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2496,7 +2516,7 @@ def sources_group_connections_all_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -2512,9 +2532,10 @@ def sources_group_connections_all_destroy( @validate_call - def sources_group_connections_all_destroy_with_http_info( + def sources_group_connections_all_partial_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], + patched_group_source_connection_request: Optional[PatchedGroupSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2527,13 +2548,15 @@ def sources_group_connections_all_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_group_connections_all_destroy + ) -> ApiResponse[GroupSourceConnection]: + """sources_group_connections_all_partial_update Group-source connection Viewset :param id: A unique integer value identifying this group source connection. (required) :type id: int + :param patched_group_source_connection_request: + :type patched_group_source_connection_request: PatchedGroupSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2556,8 +2579,9 @@ def sources_group_connections_all_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_destroy_serialize( + _param = self._sources_group_connections_all_partial_update_serialize( id=id, + patched_group_source_connection_request=patched_group_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2565,7 +2589,7 @@ def sources_group_connections_all_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -2581,9 +2605,10 @@ def sources_group_connections_all_destroy_with_http_info( @validate_call - def sources_group_connections_all_destroy_without_preload_content( + def sources_group_connections_all_partial_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], + patched_group_source_connection_request: Optional[PatchedGroupSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2597,12 +2622,14 @@ def sources_group_connections_all_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_all_destroy + """sources_group_connections_all_partial_update Group-source connection Viewset :param id: A unique integer value identifying this group source connection. (required) :type id: int + :param patched_group_source_connection_request: + :type patched_group_source_connection_request: PatchedGroupSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2625,8 +2652,9 @@ def sources_group_connections_all_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_destroy_serialize( + _param = self._sources_group_connections_all_partial_update_serialize( id=id, + patched_group_source_connection_request=patched_group_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2634,7 +2662,7 @@ def sources_group_connections_all_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -2645,9 +2673,10 @@ def sources_group_connections_all_destroy_without_preload_content( return response_data.response - def _sources_group_connections_all_destroy_serialize( + def _sources_group_connections_all_partial_update_serialize( self, id, + patched_group_source_connection_request, _request_auth, _content_type, _headers, @@ -2675,6 +2704,8 @@ def _sources_group_connections_all_destroy_serialize( # process the header parameters # process the form parameters # process the body parameter + if patched_group_source_connection_request is not None: + _body_params = patched_group_source_connection_request # set the HTTP header `Accept` @@ -2685,6 +2716,19 @@ def _sources_group_connections_all_destroy_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2692,7 +2736,7 @@ def _sources_group_connections_all_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='PATCH', resource_path='/sources/group_connections/all/{id}/', path_params=_path_params, query_params=_query_params, @@ -2710,14 +2754,9 @@ def _sources_group_connections_all_destroy_serialize( @validate_call - def sources_group_connections_all_list( + def sources_group_connections_all_retrieve( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2730,23 +2769,13 @@ def sources_group_connections_all_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedGroupSourceConnectionList: - """sources_group_connections_all_list + ) -> GroupSourceConnection: + """sources_group_connections_all_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this group source connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2769,13 +2798,8 @@ def sources_group_connections_all_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_all_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2783,7 +2807,7 @@ def sources_group_connections_all_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupSourceConnectionList", + '200': "GroupSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -2799,14 +2823,9 @@ def sources_group_connections_all_list( @validate_call - def sources_group_connections_all_list_with_http_info( + def sources_group_connections_all_retrieve_with_http_info( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2819,23 +2838,13 @@ def sources_group_connections_all_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedGroupSourceConnectionList]: - """sources_group_connections_all_list + ) -> ApiResponse[GroupSourceConnection]: + """sources_group_connections_all_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this group source connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2858,13 +2867,8 @@ def sources_group_connections_all_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_all_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2872,7 +2876,7 @@ def sources_group_connections_all_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupSourceConnectionList", + '200': "GroupSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -2888,14 +2892,9 @@ def sources_group_connections_all_list_with_http_info( @validate_call - def sources_group_connections_all_list_without_preload_content( + def sources_group_connections_all_retrieve_without_preload_content( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2909,22 +2908,12 @@ def sources_group_connections_all_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_all_list + """sources_group_connections_all_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this group source connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2947,13 +2936,8 @@ def sources_group_connections_all_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_all_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2961,7 +2945,7 @@ def sources_group_connections_all_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupSourceConnectionList", + '200': "GroupSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -2972,14 +2956,9 @@ def sources_group_connections_all_list_without_preload_content( return response_data.response - def _sources_group_connections_all_list_serialize( + def _sources_group_connections_all_retrieve_serialize( self, - group, - ordering, - page, - page_size, - search, - source__slug, + id, _request_auth, _content_type, _headers, @@ -3001,31 +2980,9 @@ def _sources_group_connections_all_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if group is not None: - - _query_params.append(('group', group)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if source__slug is not None: - - _query_params.append(('source__slug', source__slug)) - # process the header parameters # process the form parameters # process the body parameter @@ -3047,7 +3004,7 @@ def _sources_group_connections_all_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/all/', + resource_path='/sources/group_connections/all/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3064,10 +3021,10 @@ def _sources_group_connections_all_list_serialize( @validate_call - def sources_group_connections_all_partial_update( + def sources_group_connections_all_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], - patched_group_source_connection_request: Optional[PatchedGroupSourceConnectionRequest] = None, + group_source_connection_request: GroupSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3081,14 +3038,14 @@ def sources_group_connections_all_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GroupSourceConnection: - """sources_group_connections_all_partial_update + """sources_group_connections_all_update Group-source connection Viewset :param id: A unique integer value identifying this group source connection. (required) :type id: int - :param patched_group_source_connection_request: - :type patched_group_source_connection_request: PatchedGroupSourceConnectionRequest + :param group_source_connection_request: (required) + :type group_source_connection_request: GroupSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3111,9 +3068,9 @@ def sources_group_connections_all_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_partial_update_serialize( + _param = self._sources_group_connections_all_update_serialize( id=id, - patched_group_source_connection_request=patched_group_source_connection_request, + group_source_connection_request=group_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3137,10 +3094,10 @@ def sources_group_connections_all_partial_update( @validate_call - def sources_group_connections_all_partial_update_with_http_info( + def sources_group_connections_all_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], - patched_group_source_connection_request: Optional[PatchedGroupSourceConnectionRequest] = None, + group_source_connection_request: GroupSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3154,14 +3111,14 @@ def sources_group_connections_all_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GroupSourceConnection]: - """sources_group_connections_all_partial_update + """sources_group_connections_all_update Group-source connection Viewset :param id: A unique integer value identifying this group source connection. (required) :type id: int - :param patched_group_source_connection_request: - :type patched_group_source_connection_request: PatchedGroupSourceConnectionRequest + :param group_source_connection_request: (required) + :type group_source_connection_request: GroupSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3184,9 +3141,9 @@ def sources_group_connections_all_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_partial_update_serialize( + _param = self._sources_group_connections_all_update_serialize( id=id, - patched_group_source_connection_request=patched_group_source_connection_request, + group_source_connection_request=group_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3210,10 +3167,10 @@ def sources_group_connections_all_partial_update_with_http_info( @validate_call - def sources_group_connections_all_partial_update_without_preload_content( + def sources_group_connections_all_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], - patched_group_source_connection_request: Optional[PatchedGroupSourceConnectionRequest] = None, + group_source_connection_request: GroupSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3227,14 +3184,14 @@ def sources_group_connections_all_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_all_partial_update + """sources_group_connections_all_update Group-source connection Viewset :param id: A unique integer value identifying this group source connection. (required) :type id: int - :param patched_group_source_connection_request: - :type patched_group_source_connection_request: PatchedGroupSourceConnectionRequest + :param group_source_connection_request: (required) + :type group_source_connection_request: GroupSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3257,9 +3214,9 @@ def sources_group_connections_all_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_partial_update_serialize( + _param = self._sources_group_connections_all_update_serialize( id=id, - patched_group_source_connection_request=patched_group_source_connection_request, + group_source_connection_request=group_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3278,10 +3235,10 @@ def sources_group_connections_all_partial_update_without_preload_content( return response_data.response - def _sources_group_connections_all_partial_update_serialize( + def _sources_group_connections_all_update_serialize( self, id, - patched_group_source_connection_request, + group_source_connection_request, _request_auth, _content_type, _headers, @@ -3309,8 +3266,8 @@ def _sources_group_connections_all_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_group_source_connection_request is not None: - _body_params = patched_group_source_connection_request + if group_source_connection_request is not None: + _body_params = group_source_connection_request # set the HTTP header `Accept` @@ -3341,7 +3298,7 @@ def _sources_group_connections_all_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='PUT', resource_path='/sources/group_connections/all/{id}/', path_params=_path_params, query_params=_query_params, @@ -3359,7 +3316,7 @@ def _sources_group_connections_all_partial_update_serialize( @validate_call - def sources_group_connections_all_retrieve( + def sources_group_connections_all_used_by_list( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ @@ -3374,10 +3331,10 @@ def sources_group_connections_all_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupSourceConnection: - """sources_group_connections_all_retrieve + ) -> List[UsedBy]: + """sources_group_connections_all_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this group source connection. (required) :type id: int @@ -3403,7 +3360,7 @@ def sources_group_connections_all_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_retrieve_serialize( + _param = self._sources_group_connections_all_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -3412,7 +3369,7 @@ def sources_group_connections_all_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -3428,7 +3385,7 @@ def sources_group_connections_all_retrieve( @validate_call - def sources_group_connections_all_retrieve_with_http_info( + def sources_group_connections_all_used_by_list_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ @@ -3443,10 +3400,10 @@ def sources_group_connections_all_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupSourceConnection]: - """sources_group_connections_all_retrieve + ) -> ApiResponse[List[UsedBy]]: + """sources_group_connections_all_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this group source connection. (required) :type id: int @@ -3472,7 +3429,7 @@ def sources_group_connections_all_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_retrieve_serialize( + _param = self._sources_group_connections_all_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -3481,7 +3438,7 @@ def sources_group_connections_all_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -3497,7 +3454,7 @@ def sources_group_connections_all_retrieve_with_http_info( @validate_call - def sources_group_connections_all_retrieve_without_preload_content( + def sources_group_connections_all_used_by_list_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], _request_timeout: Union[ @@ -3513,9 +3470,9 @@ def sources_group_connections_all_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_all_retrieve + """sources_group_connections_all_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this group source connection. (required) :type id: int @@ -3541,7 +3498,7 @@ def sources_group_connections_all_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_retrieve_serialize( + _param = self._sources_group_connections_all_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -3550,7 +3507,7 @@ def sources_group_connections_all_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -3561,7 +3518,7 @@ def sources_group_connections_all_retrieve_without_preload_content( return response_data.response - def _sources_group_connections_all_retrieve_serialize( + def _sources_group_connections_all_used_by_list_serialize( self, id, _request_auth, @@ -3609,7 +3566,7 @@ def _sources_group_connections_all_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/all/{id}/', + resource_path='/sources/group_connections/all/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3626,10 +3583,9 @@ def _sources_group_connections_all_retrieve_serialize( @validate_call - def sources_group_connections_all_update( + def sources_group_connections_kerberos_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], - group_source_connection_request: GroupSourceConnectionRequest, + group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3642,15 +3598,13 @@ def sources_group_connections_all_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupSourceConnection: - """sources_group_connections_all_update + ) -> GroupKerberosSourceConnection: + """sources_group_connections_kerberos_create Group-source connection Viewset - :param id: A unique integer value identifying this group source connection. (required) - :type id: int - :param group_source_connection_request: (required) - :type group_source_connection_request: GroupSourceConnectionRequest + :param group_kerberos_source_connection_request: (required) + :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3673,9 +3627,8 @@ def sources_group_connections_all_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_update_serialize( - id=id, - group_source_connection_request=group_source_connection_request, + _param = self._sources_group_connections_kerberos_create_serialize( + group_kerberos_source_connection_request=group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3683,7 +3636,7 @@ def sources_group_connections_all_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSourceConnection", + '201': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -3699,10 +3652,9 @@ def sources_group_connections_all_update( @validate_call - def sources_group_connections_all_update_with_http_info( + def sources_group_connections_kerberos_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], - group_source_connection_request: GroupSourceConnectionRequest, + group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3715,15 +3667,13 @@ def sources_group_connections_all_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupSourceConnection]: - """sources_group_connections_all_update + ) -> ApiResponse[GroupKerberosSourceConnection]: + """sources_group_connections_kerberos_create Group-source connection Viewset - :param id: A unique integer value identifying this group source connection. (required) - :type id: int - :param group_source_connection_request: (required) - :type group_source_connection_request: GroupSourceConnectionRequest + :param group_kerberos_source_connection_request: (required) + :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3746,9 +3696,8 @@ def sources_group_connections_all_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_update_serialize( - id=id, - group_source_connection_request=group_source_connection_request, + _param = self._sources_group_connections_kerberos_create_serialize( + group_kerberos_source_connection_request=group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3756,7 +3705,7 @@ def sources_group_connections_all_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSourceConnection", + '201': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -3772,10 +3721,9 @@ def sources_group_connections_all_update_with_http_info( @validate_call - def sources_group_connections_all_update_without_preload_content( + def sources_group_connections_kerberos_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], - group_source_connection_request: GroupSourceConnectionRequest, + group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3789,14 +3737,12 @@ def sources_group_connections_all_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_all_update + """sources_group_connections_kerberos_create Group-source connection Viewset - :param id: A unique integer value identifying this group source connection. (required) - :type id: int - :param group_source_connection_request: (required) - :type group_source_connection_request: GroupSourceConnectionRequest + :param group_kerberos_source_connection_request: (required) + :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3819,9 +3765,8 @@ def sources_group_connections_all_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_update_serialize( - id=id, - group_source_connection_request=group_source_connection_request, + _param = self._sources_group_connections_kerberos_create_serialize( + group_kerberos_source_connection_request=group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3829,7 +3774,7 @@ def sources_group_connections_all_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSourceConnection", + '201': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -3840,10 +3785,9 @@ def sources_group_connections_all_update_without_preload_content( return response_data.response - def _sources_group_connections_all_update_serialize( + def _sources_group_connections_kerberos_create_serialize( self, - id, - group_source_connection_request, + group_kerberos_source_connection_request, _request_auth, _content_type, _headers, @@ -3865,14 +3809,12 @@ def _sources_group_connections_all_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if group_source_connection_request is not None: - _body_params = group_source_connection_request + if group_kerberos_source_connection_request is not None: + _body_params = group_kerberos_source_connection_request # set the HTTP header `Accept` @@ -3903,8 +3845,8 @@ def _sources_group_connections_all_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/sources/group_connections/all/{id}/', + method='POST', + resource_path='/sources/group_connections/kerberos/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3921,9 +3863,9 @@ def _sources_group_connections_all_update_serialize( @validate_call - def sources_group_connections_all_used_by_list( + def sources_group_connections_kerberos_destroy( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3936,12 +3878,12 @@ def sources_group_connections_all_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_group_connections_all_used_by_list + ) -> None: + """sources_group_connections_kerberos_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this group source connection. (required) + :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -3965,7 +3907,7 @@ def sources_group_connections_all_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_used_by_list_serialize( + _param = self._sources_group_connections_kerberos_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -3974,7 +3916,7 @@ def sources_group_connections_all_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -3990,9 +3932,9 @@ def sources_group_connections_all_used_by_list( @validate_call - def sources_group_connections_all_used_by_list_with_http_info( + def sources_group_connections_kerberos_destroy_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4005,12 +3947,12 @@ def sources_group_connections_all_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_group_connections_all_used_by_list + ) -> ApiResponse[None]: + """sources_group_connections_kerberos_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this group source connection. (required) + :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -4034,7 +3976,7 @@ def sources_group_connections_all_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_used_by_list_serialize( + _param = self._sources_group_connections_kerberos_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -4043,7 +3985,7 @@ def sources_group_connections_all_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -4059,9 +4001,9 @@ def sources_group_connections_all_used_by_list_with_http_info( @validate_call - def sources_group_connections_all_used_by_list_without_preload_content( + def sources_group_connections_kerberos_destroy_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this group source connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4075,11 +4017,11 @@ def sources_group_connections_all_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_all_used_by_list + """sources_group_connections_kerberos_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this group source connection. (required) + :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -4103,7 +4045,7 @@ def sources_group_connections_all_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_all_used_by_list_serialize( + _param = self._sources_group_connections_kerberos_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -4112,7 +4054,7 @@ def sources_group_connections_all_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -4123,7 +4065,7 @@ def sources_group_connections_all_used_by_list_without_preload_content( return response_data.response - def _sources_group_connections_all_used_by_list_serialize( + def _sources_group_connections_kerberos_destroy_serialize( self, id, _request_auth, @@ -4170,8 +4112,8 @@ def _sources_group_connections_all_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/sources/group_connections/all/{id}/used_by/', + method='DELETE', + resource_path='/sources/group_connections/kerberos/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4188,9 +4130,14 @@ def _sources_group_connections_all_used_by_list_serialize( @validate_call - def sources_group_connections_kerberos_create( + def sources_group_connections_kerberos_list( self, - group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4203,13 +4150,23 @@ def sources_group_connections_kerberos_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupKerberosSourceConnection: - """sources_group_connections_kerberos_create + ) -> PaginatedGroupKerberosSourceConnectionList: + """sources_group_connections_kerberos_list Group-source connection Viewset - :param group_kerberos_source_connection_request: (required) - :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4232,8 +4189,13 @@ def sources_group_connections_kerberos_create( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_create_serialize( - group_kerberos_source_connection_request=group_kerberos_source_connection_request, + _param = self._sources_group_connections_kerberos_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4241,7 +4203,7 @@ def sources_group_connections_kerberos_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupKerberosSourceConnection", + '200': "PaginatedGroupKerberosSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -4257,9 +4219,14 @@ def sources_group_connections_kerberos_create( @validate_call - def sources_group_connections_kerberos_create_with_http_info( + def sources_group_connections_kerberos_list_with_http_info( self, - group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4272,13 +4239,23 @@ def sources_group_connections_kerberos_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupKerberosSourceConnection]: - """sources_group_connections_kerberos_create + ) -> ApiResponse[PaginatedGroupKerberosSourceConnectionList]: + """sources_group_connections_kerberos_list Group-source connection Viewset - :param group_kerberos_source_connection_request: (required) - :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4301,8 +4278,13 @@ def sources_group_connections_kerberos_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_create_serialize( - group_kerberos_source_connection_request=group_kerberos_source_connection_request, + _param = self._sources_group_connections_kerberos_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4310,7 +4292,7 @@ def sources_group_connections_kerberos_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupKerberosSourceConnection", + '200': "PaginatedGroupKerberosSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -4326,9 +4308,14 @@ def sources_group_connections_kerberos_create_with_http_info( @validate_call - def sources_group_connections_kerberos_create_without_preload_content( + def sources_group_connections_kerberos_list_without_preload_content( self, - group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4342,12 +4329,22 @@ def sources_group_connections_kerberos_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_kerberos_create + """sources_group_connections_kerberos_list Group-source connection Viewset - :param group_kerberos_source_connection_request: (required) - :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4370,8 +4367,13 @@ def sources_group_connections_kerberos_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_create_serialize( - group_kerberos_source_connection_request=group_kerberos_source_connection_request, + _param = self._sources_group_connections_kerberos_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4379,7 +4381,7 @@ def sources_group_connections_kerberos_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupKerberosSourceConnection", + '200': "PaginatedGroupKerberosSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -4390,9 +4392,14 @@ def sources_group_connections_kerberos_create_without_preload_content( return response_data.response - def _sources_group_connections_kerberos_create_serialize( + def _sources_group_connections_kerberos_list_serialize( self, - group_kerberos_source_connection_request, + group, + ordering, + page, + page_size, + search, + source__slug, _request_auth, _content_type, _headers, @@ -4415,11 +4422,33 @@ def _sources_group_connections_kerberos_create_serialize( # process the path parameters # process the query parameters + if group is not None: + + _query_params.append(('group', group)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if source__slug is not None: + + _query_params.append(('source__slug', source__slug)) + # process the header parameters # process the form parameters # process the body parameter - if group_kerberos_source_connection_request is not None: - _body_params = group_kerberos_source_connection_request # set the HTTP header `Accept` @@ -4430,19 +4459,6 @@ def _sources_group_connections_kerberos_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4450,7 +4466,7 @@ def _sources_group_connections_kerberos_create_serialize( ] return self.api_client.param_serialize( - method='POST', + method='GET', resource_path='/sources/group_connections/kerberos/', path_params=_path_params, query_params=_query_params, @@ -4468,9 +4484,10 @@ def _sources_group_connections_kerberos_create_serialize( @validate_call - def sources_group_connections_kerberos_destroy( + def sources_group_connections_kerberos_partial_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], + patched_group_kerberos_source_connection_request: Optional[PatchedGroupKerberosSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4483,13 +4500,15 @@ def sources_group_connections_kerberos_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_group_connections_kerberos_destroy + ) -> GroupKerberosSourceConnection: + """sources_group_connections_kerberos_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int + :param patched_group_kerberos_source_connection_request: + :type patched_group_kerberos_source_connection_request: PatchedGroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4512,8 +4531,9 @@ def sources_group_connections_kerberos_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_destroy_serialize( + _param = self._sources_group_connections_kerberos_partial_update_serialize( id=id, + patched_group_kerberos_source_connection_request=patched_group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4521,7 +4541,7 @@ def sources_group_connections_kerberos_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -4537,9 +4557,10 @@ def sources_group_connections_kerberos_destroy( @validate_call - def sources_group_connections_kerberos_destroy_with_http_info( + def sources_group_connections_kerberos_partial_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], + patched_group_kerberos_source_connection_request: Optional[PatchedGroupKerberosSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4552,13 +4573,15 @@ def sources_group_connections_kerberos_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_group_connections_kerberos_destroy + ) -> ApiResponse[GroupKerberosSourceConnection]: + """sources_group_connections_kerberos_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int + :param patched_group_kerberos_source_connection_request: + :type patched_group_kerberos_source_connection_request: PatchedGroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4581,8 +4604,9 @@ def sources_group_connections_kerberos_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_destroy_serialize( + _param = self._sources_group_connections_kerberos_partial_update_serialize( id=id, + patched_group_kerberos_source_connection_request=patched_group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4590,7 +4614,7 @@ def sources_group_connections_kerberos_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -4606,9 +4630,10 @@ def sources_group_connections_kerberos_destroy_with_http_info( @validate_call - def sources_group_connections_kerberos_destroy_without_preload_content( + def sources_group_connections_kerberos_partial_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], + patched_group_kerberos_source_connection_request: Optional[PatchedGroupKerberosSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4622,12 +4647,14 @@ def sources_group_connections_kerberos_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_kerberos_destroy + """sources_group_connections_kerberos_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int + :param patched_group_kerberos_source_connection_request: + :type patched_group_kerberos_source_connection_request: PatchedGroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4650,8 +4677,9 @@ def sources_group_connections_kerberos_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_destroy_serialize( + _param = self._sources_group_connections_kerberos_partial_update_serialize( id=id, + patched_group_kerberos_source_connection_request=patched_group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4659,7 +4687,7 @@ def sources_group_connections_kerberos_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -4670,9 +4698,10 @@ def sources_group_connections_kerberos_destroy_without_preload_content( return response_data.response - def _sources_group_connections_kerberos_destroy_serialize( + def _sources_group_connections_kerberos_partial_update_serialize( self, id, + patched_group_kerberos_source_connection_request, _request_auth, _content_type, _headers, @@ -4700,6 +4729,8 @@ def _sources_group_connections_kerberos_destroy_serialize( # process the header parameters # process the form parameters # process the body parameter + if patched_group_kerberos_source_connection_request is not None: + _body_params = patched_group_kerberos_source_connection_request # set the HTTP header `Accept` @@ -4710,6 +4741,19 @@ def _sources_group_connections_kerberos_destroy_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -4717,7 +4761,7 @@ def _sources_group_connections_kerberos_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='PATCH', resource_path='/sources/group_connections/kerberos/{id}/', path_params=_path_params, query_params=_query_params, @@ -4735,14 +4779,9 @@ def _sources_group_connections_kerberos_destroy_serialize( @validate_call - def sources_group_connections_kerberos_list( + def sources_group_connections_kerberos_retrieve( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4755,23 +4794,13 @@ def sources_group_connections_kerberos_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedGroupKerberosSourceConnectionList: - """sources_group_connections_kerberos_list + ) -> GroupKerberosSourceConnection: + """sources_group_connections_kerberos_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4794,13 +4823,8 @@ def sources_group_connections_kerberos_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_kerberos_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4808,7 +4832,7 @@ def sources_group_connections_kerberos_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupKerberosSourceConnectionList", + '200': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -4824,14 +4848,9 @@ def sources_group_connections_kerberos_list( @validate_call - def sources_group_connections_kerberos_list_with_http_info( + def sources_group_connections_kerberos_retrieve_with_http_info( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4844,23 +4863,13 @@ def sources_group_connections_kerberos_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedGroupKerberosSourceConnectionList]: - """sources_group_connections_kerberos_list + ) -> ApiResponse[GroupKerberosSourceConnection]: + """sources_group_connections_kerberos_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4883,13 +4892,8 @@ def sources_group_connections_kerberos_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_kerberos_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4897,7 +4901,7 @@ def sources_group_connections_kerberos_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupKerberosSourceConnectionList", + '200': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -4913,14 +4917,9 @@ def sources_group_connections_kerberos_list_with_http_info( @validate_call - def sources_group_connections_kerberos_list_without_preload_content( + def sources_group_connections_kerberos_retrieve_without_preload_content( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4934,22 +4933,12 @@ def sources_group_connections_kerberos_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_kerberos_list + """sources_group_connections_kerberos_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4972,13 +4961,8 @@ def sources_group_connections_kerberos_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_kerberos_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4986,7 +4970,7 @@ def sources_group_connections_kerberos_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupKerberosSourceConnectionList", + '200': "GroupKerberosSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -4997,14 +4981,9 @@ def sources_group_connections_kerberos_list_without_preload_content( return response_data.response - def _sources_group_connections_kerberos_list_serialize( + def _sources_group_connections_kerberos_retrieve_serialize( self, - group, - ordering, - page, - page_size, - search, - source__slug, + id, _request_auth, _content_type, _headers, @@ -5026,31 +5005,9 @@ def _sources_group_connections_kerberos_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if group is not None: - - _query_params.append(('group', group)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if source__slug is not None: - - _query_params.append(('source__slug', source__slug)) - # process the header parameters # process the form parameters # process the body parameter @@ -5072,7 +5029,7 @@ def _sources_group_connections_kerberos_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/kerberos/', + resource_path='/sources/group_connections/kerberos/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5089,10 +5046,10 @@ def _sources_group_connections_kerberos_list_serialize( @validate_call - def sources_group_connections_kerberos_partial_update( + def sources_group_connections_kerberos_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], - patched_group_kerberos_source_connection_request: Optional[PatchedGroupKerberosSourceConnectionRequest] = None, + group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5106,14 +5063,14 @@ def sources_group_connections_kerberos_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GroupKerberosSourceConnection: - """sources_group_connections_kerberos_partial_update + """sources_group_connections_kerberos_update Group-source connection Viewset :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int - :param patched_group_kerberos_source_connection_request: - :type patched_group_kerberos_source_connection_request: PatchedGroupKerberosSourceConnectionRequest + :param group_kerberos_source_connection_request: (required) + :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5136,9 +5093,9 @@ def sources_group_connections_kerberos_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_partial_update_serialize( + _param = self._sources_group_connections_kerberos_update_serialize( id=id, - patched_group_kerberos_source_connection_request=patched_group_kerberos_source_connection_request, + group_kerberos_source_connection_request=group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5162,10 +5119,10 @@ def sources_group_connections_kerberos_partial_update( @validate_call - def sources_group_connections_kerberos_partial_update_with_http_info( + def sources_group_connections_kerberos_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], - patched_group_kerberos_source_connection_request: Optional[PatchedGroupKerberosSourceConnectionRequest] = None, + group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5179,14 +5136,14 @@ def sources_group_connections_kerberos_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GroupKerberosSourceConnection]: - """sources_group_connections_kerberos_partial_update + """sources_group_connections_kerberos_update Group-source connection Viewset :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int - :param patched_group_kerberos_source_connection_request: - :type patched_group_kerberos_source_connection_request: PatchedGroupKerberosSourceConnectionRequest + :param group_kerberos_source_connection_request: (required) + :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5209,9 +5166,9 @@ def sources_group_connections_kerberos_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_partial_update_serialize( + _param = self._sources_group_connections_kerberos_update_serialize( id=id, - patched_group_kerberos_source_connection_request=patched_group_kerberos_source_connection_request, + group_kerberos_source_connection_request=group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5235,10 +5192,10 @@ def sources_group_connections_kerberos_partial_update_with_http_info( @validate_call - def sources_group_connections_kerberos_partial_update_without_preload_content( + def sources_group_connections_kerberos_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], - patched_group_kerberos_source_connection_request: Optional[PatchedGroupKerberosSourceConnectionRequest] = None, + group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5252,14 +5209,14 @@ def sources_group_connections_kerberos_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_kerberos_partial_update + """sources_group_connections_kerberos_update Group-source connection Viewset :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int - :param patched_group_kerberos_source_connection_request: - :type patched_group_kerberos_source_connection_request: PatchedGroupKerberosSourceConnectionRequest + :param group_kerberos_source_connection_request: (required) + :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5282,9 +5239,9 @@ def sources_group_connections_kerberos_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_partial_update_serialize( + _param = self._sources_group_connections_kerberos_update_serialize( id=id, - patched_group_kerberos_source_connection_request=patched_group_kerberos_source_connection_request, + group_kerberos_source_connection_request=group_kerberos_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5303,10 +5260,10 @@ def sources_group_connections_kerberos_partial_update_without_preload_content( return response_data.response - def _sources_group_connections_kerberos_partial_update_serialize( + def _sources_group_connections_kerberos_update_serialize( self, id, - patched_group_kerberos_source_connection_request, + group_kerberos_source_connection_request, _request_auth, _content_type, _headers, @@ -5334,8 +5291,8 @@ def _sources_group_connections_kerberos_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_group_kerberos_source_connection_request is not None: - _body_params = patched_group_kerberos_source_connection_request + if group_kerberos_source_connection_request is not None: + _body_params = group_kerberos_source_connection_request # set the HTTP header `Accept` @@ -5366,7 +5323,7 @@ def _sources_group_connections_kerberos_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='PUT', resource_path='/sources/group_connections/kerberos/{id}/', path_params=_path_params, query_params=_query_params, @@ -5384,7 +5341,7 @@ def _sources_group_connections_kerberos_partial_update_serialize( @validate_call - def sources_group_connections_kerberos_retrieve( + def sources_group_connections_kerberos_used_by_list( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ @@ -5399,10 +5356,10 @@ def sources_group_connections_kerberos_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupKerberosSourceConnection: - """sources_group_connections_kerberos_retrieve + ) -> List[UsedBy]: + """sources_group_connections_kerberos_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int @@ -5428,7 +5385,7 @@ def sources_group_connections_kerberos_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_retrieve_serialize( + _param = self._sources_group_connections_kerberos_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -5437,7 +5394,7 @@ def sources_group_connections_kerberos_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupKerberosSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -5453,7 +5410,7 @@ def sources_group_connections_kerberos_retrieve( @validate_call - def sources_group_connections_kerberos_retrieve_with_http_info( + def sources_group_connections_kerberos_used_by_list_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ @@ -5468,10 +5425,10 @@ def sources_group_connections_kerberos_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupKerberosSourceConnection]: - """sources_group_connections_kerberos_retrieve + ) -> ApiResponse[List[UsedBy]]: + """sources_group_connections_kerberos_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int @@ -5497,7 +5454,7 @@ def sources_group_connections_kerberos_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_retrieve_serialize( + _param = self._sources_group_connections_kerberos_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -5506,7 +5463,7 @@ def sources_group_connections_kerberos_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupKerberosSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -5522,7 +5479,7 @@ def sources_group_connections_kerberos_retrieve_with_http_info( @validate_call - def sources_group_connections_kerberos_retrieve_without_preload_content( + def sources_group_connections_kerberos_used_by_list_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], _request_timeout: Union[ @@ -5538,9 +5495,9 @@ def sources_group_connections_kerberos_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_kerberos_retrieve + """sources_group_connections_kerberos_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) :type id: int @@ -5566,7 +5523,7 @@ def sources_group_connections_kerberos_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_retrieve_serialize( + _param = self._sources_group_connections_kerberos_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -5575,7 +5532,7 @@ def sources_group_connections_kerberos_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupKerberosSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -5586,7 +5543,7 @@ def sources_group_connections_kerberos_retrieve_without_preload_content( return response_data.response - def _sources_group_connections_kerberos_retrieve_serialize( + def _sources_group_connections_kerberos_used_by_list_serialize( self, id, _request_auth, @@ -5634,7 +5591,7 @@ def _sources_group_connections_kerberos_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/kerberos/{id}/', + resource_path='/sources/group_connections/kerberos/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5651,10 +5608,9 @@ def _sources_group_connections_kerberos_retrieve_serialize( @validate_call - def sources_group_connections_kerberos_update( + def sources_group_connections_ldap_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], - group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, + group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5667,15 +5623,13 @@ def sources_group_connections_kerberos_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupKerberosSourceConnection: - """sources_group_connections_kerberos_update + ) -> GroupLDAPSourceConnection: + """sources_group_connections_ldap_create Group-source connection Viewset - :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) - :type id: int - :param group_kerberos_source_connection_request: (required) - :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest + :param group_ldap_source_connection_request: (required) + :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5698,9 +5652,8 @@ def sources_group_connections_kerberos_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_update_serialize( - id=id, - group_kerberos_source_connection_request=group_kerberos_source_connection_request, + _param = self._sources_group_connections_ldap_create_serialize( + group_ldap_source_connection_request=group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5708,7 +5661,7 @@ def sources_group_connections_kerberos_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupKerberosSourceConnection", + '201': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -5724,10 +5677,9 @@ def sources_group_connections_kerberos_update( @validate_call - def sources_group_connections_kerberos_update_with_http_info( + def sources_group_connections_ldap_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], - group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, + group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5740,15 +5692,13 @@ def sources_group_connections_kerberos_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupKerberosSourceConnection]: - """sources_group_connections_kerberos_update + ) -> ApiResponse[GroupLDAPSourceConnection]: + """sources_group_connections_ldap_create Group-source connection Viewset - :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) - :type id: int - :param group_kerberos_source_connection_request: (required) - :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest + :param group_ldap_source_connection_request: (required) + :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5771,9 +5721,8 @@ def sources_group_connections_kerberos_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_update_serialize( - id=id, - group_kerberos_source_connection_request=group_kerberos_source_connection_request, + _param = self._sources_group_connections_ldap_create_serialize( + group_ldap_source_connection_request=group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5781,7 +5730,7 @@ def sources_group_connections_kerberos_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupKerberosSourceConnection", + '201': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -5797,10 +5746,9 @@ def sources_group_connections_kerberos_update_with_http_info( @validate_call - def sources_group_connections_kerberos_update_without_preload_content( + def sources_group_connections_ldap_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], - group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest, + group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5814,14 +5762,12 @@ def sources_group_connections_kerberos_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_kerberos_update + """sources_group_connections_ldap_create Group-source connection Viewset - :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) - :type id: int - :param group_kerberos_source_connection_request: (required) - :type group_kerberos_source_connection_request: GroupKerberosSourceConnectionRequest + :param group_ldap_source_connection_request: (required) + :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5844,9 +5790,8 @@ def sources_group_connections_kerberos_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_update_serialize( - id=id, - group_kerberos_source_connection_request=group_kerberos_source_connection_request, + _param = self._sources_group_connections_ldap_create_serialize( + group_ldap_source_connection_request=group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5854,7 +5799,7 @@ def sources_group_connections_kerberos_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupKerberosSourceConnection", + '201': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -5865,10 +5810,9 @@ def sources_group_connections_kerberos_update_without_preload_content( return response_data.response - def _sources_group_connections_kerberos_update_serialize( + def _sources_group_connections_ldap_create_serialize( self, - id, - group_kerberos_source_connection_request, + group_ldap_source_connection_request, _request_auth, _content_type, _headers, @@ -5890,14 +5834,12 @@ def _sources_group_connections_kerberos_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if group_kerberos_source_connection_request is not None: - _body_params = group_kerberos_source_connection_request + if group_ldap_source_connection_request is not None: + _body_params = group_ldap_source_connection_request # set the HTTP header `Accept` @@ -5928,8 +5870,8 @@ def _sources_group_connections_kerberos_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/sources/group_connections/kerberos/{id}/', + method='POST', + resource_path='/sources/group_connections/ldap/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5946,9 +5888,9 @@ def _sources_group_connections_kerberos_update_serialize( @validate_call - def sources_group_connections_kerberos_used_by_list( + def sources_group_connections_ldap_destroy( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5961,12 +5903,12 @@ def sources_group_connections_kerberos_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_group_connections_kerberos_used_by_list + ) -> None: + """sources_group_connections_ldap_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) + :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -5990,7 +5932,7 @@ def sources_group_connections_kerberos_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_used_by_list_serialize( + _param = self._sources_group_connections_ldap_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -5999,7 +5941,7 @@ def sources_group_connections_kerberos_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -6015,9 +5957,9 @@ def sources_group_connections_kerberos_used_by_list( @validate_call - def sources_group_connections_kerberos_used_by_list_with_http_info( + def sources_group_connections_ldap_destroy_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6030,12 +5972,12 @@ def sources_group_connections_kerberos_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_group_connections_kerberos_used_by_list + ) -> ApiResponse[None]: + """sources_group_connections_ldap_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) + :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -6059,7 +6001,7 @@ def sources_group_connections_kerberos_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_used_by_list_serialize( + _param = self._sources_group_connections_ldap_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -6068,7 +6010,7 @@ def sources_group_connections_kerberos_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -6084,9 +6026,9 @@ def sources_group_connections_kerberos_used_by_list_with_http_info( @validate_call - def sources_group_connections_kerberos_used_by_list_without_preload_content( + def sources_group_connections_ldap_destroy_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Kerberos Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6100,11 +6042,11 @@ def sources_group_connections_kerberos_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_kerberos_used_by_list + """sources_group_connections_ldap_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group Kerberos Source Connection. (required) + :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -6128,7 +6070,7 @@ def sources_group_connections_kerberos_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_kerberos_used_by_list_serialize( + _param = self._sources_group_connections_ldap_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -6137,7 +6079,7 @@ def sources_group_connections_kerberos_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -6148,7 +6090,7 @@ def sources_group_connections_kerberos_used_by_list_without_preload_content( return response_data.response - def _sources_group_connections_kerberos_used_by_list_serialize( + def _sources_group_connections_ldap_destroy_serialize( self, id, _request_auth, @@ -6195,8 +6137,8 @@ def _sources_group_connections_kerberos_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/sources/group_connections/kerberos/{id}/used_by/', + method='DELETE', + resource_path='/sources/group_connections/ldap/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6213,9 +6155,14 @@ def _sources_group_connections_kerberos_used_by_list_serialize( @validate_call - def sources_group_connections_ldap_create( + def sources_group_connections_ldap_list( self, - group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6228,13 +6175,23 @@ def sources_group_connections_ldap_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupLDAPSourceConnection: - """sources_group_connections_ldap_create + ) -> PaginatedGroupLDAPSourceConnectionList: + """sources_group_connections_ldap_list Group-source connection Viewset - :param group_ldap_source_connection_request: (required) - :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6257,8 +6214,13 @@ def sources_group_connections_ldap_create( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_create_serialize( - group_ldap_source_connection_request=group_ldap_source_connection_request, + _param = self._sources_group_connections_ldap_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6266,7 +6228,7 @@ def sources_group_connections_ldap_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupLDAPSourceConnection", + '200': "PaginatedGroupLDAPSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -6282,9 +6244,14 @@ def sources_group_connections_ldap_create( @validate_call - def sources_group_connections_ldap_create_with_http_info( + def sources_group_connections_ldap_list_with_http_info( self, - group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6297,13 +6264,23 @@ def sources_group_connections_ldap_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupLDAPSourceConnection]: - """sources_group_connections_ldap_create + ) -> ApiResponse[PaginatedGroupLDAPSourceConnectionList]: + """sources_group_connections_ldap_list Group-source connection Viewset - :param group_ldap_source_connection_request: (required) - :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6326,8 +6303,13 @@ def sources_group_connections_ldap_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_create_serialize( - group_ldap_source_connection_request=group_ldap_source_connection_request, + _param = self._sources_group_connections_ldap_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6335,7 +6317,7 @@ def sources_group_connections_ldap_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupLDAPSourceConnection", + '200': "PaginatedGroupLDAPSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -6351,9 +6333,14 @@ def sources_group_connections_ldap_create_with_http_info( @validate_call - def sources_group_connections_ldap_create_without_preload_content( + def sources_group_connections_ldap_list_without_preload_content( self, - group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6367,12 +6354,22 @@ def sources_group_connections_ldap_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_ldap_create + """sources_group_connections_ldap_list Group-source connection Viewset - :param group_ldap_source_connection_request: (required) - :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6395,8 +6392,13 @@ def sources_group_connections_ldap_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_create_serialize( - group_ldap_source_connection_request=group_ldap_source_connection_request, + _param = self._sources_group_connections_ldap_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6404,7 +6406,7 @@ def sources_group_connections_ldap_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupLDAPSourceConnection", + '200': "PaginatedGroupLDAPSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -6415,9 +6417,14 @@ def sources_group_connections_ldap_create_without_preload_content( return response_data.response - def _sources_group_connections_ldap_create_serialize( + def _sources_group_connections_ldap_list_serialize( self, - group_ldap_source_connection_request, + group, + ordering, + page, + page_size, + search, + source__slug, _request_auth, _content_type, _headers, @@ -6440,11 +6447,33 @@ def _sources_group_connections_ldap_create_serialize( # process the path parameters # process the query parameters + if group is not None: + + _query_params.append(('group', group)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if source__slug is not None: + + _query_params.append(('source__slug', source__slug)) + # process the header parameters # process the form parameters # process the body parameter - if group_ldap_source_connection_request is not None: - _body_params = group_ldap_source_connection_request # set the HTTP header `Accept` @@ -6455,19 +6484,6 @@ def _sources_group_connections_ldap_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6475,7 +6491,7 @@ def _sources_group_connections_ldap_create_serialize( ] return self.api_client.param_serialize( - method='POST', + method='GET', resource_path='/sources/group_connections/ldap/', path_params=_path_params, query_params=_query_params, @@ -6493,9 +6509,10 @@ def _sources_group_connections_ldap_create_serialize( @validate_call - def sources_group_connections_ldap_destroy( + def sources_group_connections_ldap_partial_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], + patched_group_ldap_source_connection_request: Optional[PatchedGroupLDAPSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6508,13 +6525,15 @@ def sources_group_connections_ldap_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_group_connections_ldap_destroy + ) -> GroupLDAPSourceConnection: + """sources_group_connections_ldap_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int + :param patched_group_ldap_source_connection_request: + :type patched_group_ldap_source_connection_request: PatchedGroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6537,8 +6556,9 @@ def sources_group_connections_ldap_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_destroy_serialize( + _param = self._sources_group_connections_ldap_partial_update_serialize( id=id, + patched_group_ldap_source_connection_request=patched_group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6546,7 +6566,7 @@ def sources_group_connections_ldap_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -6562,9 +6582,10 @@ def sources_group_connections_ldap_destroy( @validate_call - def sources_group_connections_ldap_destroy_with_http_info( + def sources_group_connections_ldap_partial_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], + patched_group_ldap_source_connection_request: Optional[PatchedGroupLDAPSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6577,13 +6598,15 @@ def sources_group_connections_ldap_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_group_connections_ldap_destroy + ) -> ApiResponse[GroupLDAPSourceConnection]: + """sources_group_connections_ldap_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int + :param patched_group_ldap_source_connection_request: + :type patched_group_ldap_source_connection_request: PatchedGroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6606,8 +6629,9 @@ def sources_group_connections_ldap_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_destroy_serialize( + _param = self._sources_group_connections_ldap_partial_update_serialize( id=id, + patched_group_ldap_source_connection_request=patched_group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6615,7 +6639,7 @@ def sources_group_connections_ldap_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -6631,9 +6655,10 @@ def sources_group_connections_ldap_destroy_with_http_info( @validate_call - def sources_group_connections_ldap_destroy_without_preload_content( + def sources_group_connections_ldap_partial_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], + patched_group_ldap_source_connection_request: Optional[PatchedGroupLDAPSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6647,12 +6672,14 @@ def sources_group_connections_ldap_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_ldap_destroy + """sources_group_connections_ldap_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int + :param patched_group_ldap_source_connection_request: + :type patched_group_ldap_source_connection_request: PatchedGroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6675,8 +6702,9 @@ def sources_group_connections_ldap_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_destroy_serialize( + _param = self._sources_group_connections_ldap_partial_update_serialize( id=id, + patched_group_ldap_source_connection_request=patched_group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6684,7 +6712,7 @@ def sources_group_connections_ldap_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -6695,9 +6723,10 @@ def sources_group_connections_ldap_destroy_without_preload_content( return response_data.response - def _sources_group_connections_ldap_destroy_serialize( + def _sources_group_connections_ldap_partial_update_serialize( self, id, + patched_group_ldap_source_connection_request, _request_auth, _content_type, _headers, @@ -6725,6 +6754,8 @@ def _sources_group_connections_ldap_destroy_serialize( # process the header parameters # process the form parameters # process the body parameter + if patched_group_ldap_source_connection_request is not None: + _body_params = patched_group_ldap_source_connection_request # set the HTTP header `Accept` @@ -6735,6 +6766,19 @@ def _sources_group_connections_ldap_destroy_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -6742,7 +6786,7 @@ def _sources_group_connections_ldap_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='PATCH', resource_path='/sources/group_connections/ldap/{id}/', path_params=_path_params, query_params=_query_params, @@ -6760,14 +6804,9 @@ def _sources_group_connections_ldap_destroy_serialize( @validate_call - def sources_group_connections_ldap_list( + def sources_group_connections_ldap_retrieve( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6780,23 +6819,13 @@ def sources_group_connections_ldap_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedGroupLDAPSourceConnectionList: - """sources_group_connections_ldap_list + ) -> GroupLDAPSourceConnection: + """sources_group_connections_ldap_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group LDAP Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6819,13 +6848,8 @@ def sources_group_connections_ldap_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_ldap_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6833,7 +6857,7 @@ def sources_group_connections_ldap_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupLDAPSourceConnectionList", + '200': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -6849,14 +6873,9 @@ def sources_group_connections_ldap_list( @validate_call - def sources_group_connections_ldap_list_with_http_info( + def sources_group_connections_ldap_retrieve_with_http_info( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6869,23 +6888,13 @@ def sources_group_connections_ldap_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedGroupLDAPSourceConnectionList]: - """sources_group_connections_ldap_list + ) -> ApiResponse[GroupLDAPSourceConnection]: + """sources_group_connections_ldap_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group LDAP Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6908,13 +6917,8 @@ def sources_group_connections_ldap_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_ldap_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6922,7 +6926,7 @@ def sources_group_connections_ldap_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupLDAPSourceConnectionList", + '200': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -6938,14 +6942,9 @@ def sources_group_connections_ldap_list_with_http_info( @validate_call - def sources_group_connections_ldap_list_without_preload_content( + def sources_group_connections_ldap_retrieve_without_preload_content( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6959,22 +6958,12 @@ def sources_group_connections_ldap_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_ldap_list + """sources_group_connections_ldap_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group LDAP Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6997,13 +6986,8 @@ def sources_group_connections_ldap_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_ldap_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7011,7 +6995,7 @@ def sources_group_connections_ldap_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupLDAPSourceConnectionList", + '200': "GroupLDAPSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -7022,14 +7006,9 @@ def sources_group_connections_ldap_list_without_preload_content( return response_data.response - def _sources_group_connections_ldap_list_serialize( + def _sources_group_connections_ldap_retrieve_serialize( self, - group, - ordering, - page, - page_size, - search, - source__slug, + id, _request_auth, _content_type, _headers, @@ -7051,31 +7030,9 @@ def _sources_group_connections_ldap_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if group is not None: - - _query_params.append(('group', group)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if source__slug is not None: - - _query_params.append(('source__slug', source__slug)) - # process the header parameters # process the form parameters # process the body parameter @@ -7097,7 +7054,7 @@ def _sources_group_connections_ldap_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/ldap/', + resource_path='/sources/group_connections/ldap/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7114,10 +7071,10 @@ def _sources_group_connections_ldap_list_serialize( @validate_call - def sources_group_connections_ldap_partial_update( + def sources_group_connections_ldap_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], - patched_group_ldap_source_connection_request: Optional[PatchedGroupLDAPSourceConnectionRequest] = None, + group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7131,14 +7088,14 @@ def sources_group_connections_ldap_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GroupLDAPSourceConnection: - """sources_group_connections_ldap_partial_update + """sources_group_connections_ldap_update Group-source connection Viewset :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int - :param patched_group_ldap_source_connection_request: - :type patched_group_ldap_source_connection_request: PatchedGroupLDAPSourceConnectionRequest + :param group_ldap_source_connection_request: (required) + :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7161,9 +7118,9 @@ def sources_group_connections_ldap_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_partial_update_serialize( + _param = self._sources_group_connections_ldap_update_serialize( id=id, - patched_group_ldap_source_connection_request=patched_group_ldap_source_connection_request, + group_ldap_source_connection_request=group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7187,10 +7144,10 @@ def sources_group_connections_ldap_partial_update( @validate_call - def sources_group_connections_ldap_partial_update_with_http_info( + def sources_group_connections_ldap_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], - patched_group_ldap_source_connection_request: Optional[PatchedGroupLDAPSourceConnectionRequest] = None, + group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7204,14 +7161,14 @@ def sources_group_connections_ldap_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GroupLDAPSourceConnection]: - """sources_group_connections_ldap_partial_update + """sources_group_connections_ldap_update Group-source connection Viewset :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int - :param patched_group_ldap_source_connection_request: - :type patched_group_ldap_source_connection_request: PatchedGroupLDAPSourceConnectionRequest + :param group_ldap_source_connection_request: (required) + :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7234,9 +7191,9 @@ def sources_group_connections_ldap_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_partial_update_serialize( + _param = self._sources_group_connections_ldap_update_serialize( id=id, - patched_group_ldap_source_connection_request=patched_group_ldap_source_connection_request, + group_ldap_source_connection_request=group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7260,10 +7217,10 @@ def sources_group_connections_ldap_partial_update_with_http_info( @validate_call - def sources_group_connections_ldap_partial_update_without_preload_content( + def sources_group_connections_ldap_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], - patched_group_ldap_source_connection_request: Optional[PatchedGroupLDAPSourceConnectionRequest] = None, + group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7277,14 +7234,14 @@ def sources_group_connections_ldap_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_ldap_partial_update + """sources_group_connections_ldap_update Group-source connection Viewset :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int - :param patched_group_ldap_source_connection_request: - :type patched_group_ldap_source_connection_request: PatchedGroupLDAPSourceConnectionRequest + :param group_ldap_source_connection_request: (required) + :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7307,9 +7264,9 @@ def sources_group_connections_ldap_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_partial_update_serialize( + _param = self._sources_group_connections_ldap_update_serialize( id=id, - patched_group_ldap_source_connection_request=patched_group_ldap_source_connection_request, + group_ldap_source_connection_request=group_ldap_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7328,10 +7285,10 @@ def sources_group_connections_ldap_partial_update_without_preload_content( return response_data.response - def _sources_group_connections_ldap_partial_update_serialize( + def _sources_group_connections_ldap_update_serialize( self, id, - patched_group_ldap_source_connection_request, + group_ldap_source_connection_request, _request_auth, _content_type, _headers, @@ -7359,8 +7316,8 @@ def _sources_group_connections_ldap_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_group_ldap_source_connection_request is not None: - _body_params = patched_group_ldap_source_connection_request + if group_ldap_source_connection_request is not None: + _body_params = group_ldap_source_connection_request # set the HTTP header `Accept` @@ -7391,7 +7348,7 @@ def _sources_group_connections_ldap_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='PUT', resource_path='/sources/group_connections/ldap/{id}/', path_params=_path_params, query_params=_query_params, @@ -7409,7 +7366,7 @@ def _sources_group_connections_ldap_partial_update_serialize( @validate_call - def sources_group_connections_ldap_retrieve( + def sources_group_connections_ldap_used_by_list( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ @@ -7424,10 +7381,10 @@ def sources_group_connections_ldap_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupLDAPSourceConnection: - """sources_group_connections_ldap_retrieve + ) -> List[UsedBy]: + """sources_group_connections_ldap_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int @@ -7453,7 +7410,7 @@ def sources_group_connections_ldap_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_retrieve_serialize( + _param = self._sources_group_connections_ldap_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -7462,7 +7419,7 @@ def sources_group_connections_ldap_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupLDAPSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -7478,7 +7435,7 @@ def sources_group_connections_ldap_retrieve( @validate_call - def sources_group_connections_ldap_retrieve_with_http_info( + def sources_group_connections_ldap_used_by_list_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ @@ -7493,10 +7450,10 @@ def sources_group_connections_ldap_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupLDAPSourceConnection]: - """sources_group_connections_ldap_retrieve + ) -> ApiResponse[List[UsedBy]]: + """sources_group_connections_ldap_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int @@ -7522,7 +7479,7 @@ def sources_group_connections_ldap_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_retrieve_serialize( + _param = self._sources_group_connections_ldap_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -7531,7 +7488,7 @@ def sources_group_connections_ldap_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupLDAPSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -7547,7 +7504,7 @@ def sources_group_connections_ldap_retrieve_with_http_info( @validate_call - def sources_group_connections_ldap_retrieve_without_preload_content( + def sources_group_connections_ldap_used_by_list_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], _request_timeout: Union[ @@ -7563,9 +7520,9 @@ def sources_group_connections_ldap_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_ldap_retrieve + """sources_group_connections_ldap_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group LDAP Source Connection. (required) :type id: int @@ -7591,7 +7548,7 @@ def sources_group_connections_ldap_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_retrieve_serialize( + _param = self._sources_group_connections_ldap_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -7600,7 +7557,7 @@ def sources_group_connections_ldap_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupLDAPSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -7611,7 +7568,7 @@ def sources_group_connections_ldap_retrieve_without_preload_content( return response_data.response - def _sources_group_connections_ldap_retrieve_serialize( + def _sources_group_connections_ldap_used_by_list_serialize( self, id, _request_auth, @@ -7659,7 +7616,7 @@ def _sources_group_connections_ldap_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/ldap/{id}/', + resource_path='/sources/group_connections/ldap/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7676,10 +7633,9 @@ def _sources_group_connections_ldap_retrieve_serialize( @validate_call - def sources_group_connections_ldap_update( + def sources_group_connections_oauth_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], - group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, + group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7692,15 +7648,13 @@ def sources_group_connections_ldap_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupLDAPSourceConnection: - """sources_group_connections_ldap_update + ) -> GroupOAuthSourceConnection: + """sources_group_connections_oauth_create Group-source connection Viewset - :param id: A unique integer value identifying this Group LDAP Source Connection. (required) - :type id: int - :param group_ldap_source_connection_request: (required) - :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest + :param group_o_auth_source_connection_request: (required) + :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7723,9 +7677,8 @@ def sources_group_connections_ldap_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_update_serialize( - id=id, - group_ldap_source_connection_request=group_ldap_source_connection_request, + _param = self._sources_group_connections_oauth_create_serialize( + group_o_auth_source_connection_request=group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7733,7 +7686,7 @@ def sources_group_connections_ldap_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupLDAPSourceConnection", + '201': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -7749,10 +7702,9 @@ def sources_group_connections_ldap_update( @validate_call - def sources_group_connections_ldap_update_with_http_info( + def sources_group_connections_oauth_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], - group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, + group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7765,15 +7717,13 @@ def sources_group_connections_ldap_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupLDAPSourceConnection]: - """sources_group_connections_ldap_update + ) -> ApiResponse[GroupOAuthSourceConnection]: + """sources_group_connections_oauth_create Group-source connection Viewset - :param id: A unique integer value identifying this Group LDAP Source Connection. (required) - :type id: int - :param group_ldap_source_connection_request: (required) - :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest + :param group_o_auth_source_connection_request: (required) + :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7796,9 +7746,8 @@ def sources_group_connections_ldap_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_update_serialize( - id=id, - group_ldap_source_connection_request=group_ldap_source_connection_request, + _param = self._sources_group_connections_oauth_create_serialize( + group_o_auth_source_connection_request=group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7806,7 +7755,7 @@ def sources_group_connections_ldap_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupLDAPSourceConnection", + '201': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -7822,10 +7771,9 @@ def sources_group_connections_ldap_update_with_http_info( @validate_call - def sources_group_connections_ldap_update_without_preload_content( + def sources_group_connections_oauth_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], - group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest, + group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7839,14 +7787,12 @@ def sources_group_connections_ldap_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_ldap_update + """sources_group_connections_oauth_create Group-source connection Viewset - :param id: A unique integer value identifying this Group LDAP Source Connection. (required) - :type id: int - :param group_ldap_source_connection_request: (required) - :type group_ldap_source_connection_request: GroupLDAPSourceConnectionRequest + :param group_o_auth_source_connection_request: (required) + :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7869,9 +7815,8 @@ def sources_group_connections_ldap_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_update_serialize( - id=id, - group_ldap_source_connection_request=group_ldap_source_connection_request, + _param = self._sources_group_connections_oauth_create_serialize( + group_o_auth_source_connection_request=group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7879,7 +7824,7 @@ def sources_group_connections_ldap_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupLDAPSourceConnection", + '201': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -7890,10 +7835,9 @@ def sources_group_connections_ldap_update_without_preload_content( return response_data.response - def _sources_group_connections_ldap_update_serialize( + def _sources_group_connections_oauth_create_serialize( self, - id, - group_ldap_source_connection_request, + group_o_auth_source_connection_request, _request_auth, _content_type, _headers, @@ -7915,14 +7859,12 @@ def _sources_group_connections_ldap_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if group_ldap_source_connection_request is not None: - _body_params = group_ldap_source_connection_request + if group_o_auth_source_connection_request is not None: + _body_params = group_o_auth_source_connection_request # set the HTTP header `Accept` @@ -7953,8 +7895,8 @@ def _sources_group_connections_ldap_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/sources/group_connections/ldap/{id}/', + method='POST', + resource_path='/sources/group_connections/oauth/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7971,9 +7913,9 @@ def _sources_group_connections_ldap_update_serialize( @validate_call - def sources_group_connections_ldap_used_by_list( + def sources_group_connections_oauth_destroy( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7986,12 +7928,12 @@ def sources_group_connections_ldap_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_group_connections_ldap_used_by_list + ) -> None: + """sources_group_connections_oauth_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group LDAP Source Connection. (required) + :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -8015,7 +7957,7 @@ def sources_group_connections_ldap_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_used_by_list_serialize( + _param = self._sources_group_connections_oauth_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -8024,7 +7966,7 @@ def sources_group_connections_ldap_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -8040,9 +7982,9 @@ def sources_group_connections_ldap_used_by_list( @validate_call - def sources_group_connections_ldap_used_by_list_with_http_info( + def sources_group_connections_oauth_destroy_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8055,12 +7997,12 @@ def sources_group_connections_ldap_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_group_connections_ldap_used_by_list + ) -> ApiResponse[None]: + """sources_group_connections_oauth_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group LDAP Source Connection. (required) + :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -8084,7 +8026,7 @@ def sources_group_connections_ldap_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_used_by_list_serialize( + _param = self._sources_group_connections_oauth_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -8093,7 +8035,7 @@ def sources_group_connections_ldap_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -8109,9 +8051,9 @@ def sources_group_connections_ldap_used_by_list_with_http_info( @validate_call - def sources_group_connections_ldap_used_by_list_without_preload_content( + def sources_group_connections_oauth_destroy_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group LDAP Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8125,11 +8067,11 @@ def sources_group_connections_ldap_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_ldap_used_by_list + """sources_group_connections_oauth_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group LDAP Source Connection. (required) + :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -8153,7 +8095,7 @@ def sources_group_connections_ldap_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_ldap_used_by_list_serialize( + _param = self._sources_group_connections_oauth_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -8162,7 +8104,7 @@ def sources_group_connections_ldap_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -8173,7 +8115,7 @@ def sources_group_connections_ldap_used_by_list_without_preload_content( return response_data.response - def _sources_group_connections_ldap_used_by_list_serialize( + def _sources_group_connections_oauth_destroy_serialize( self, id, _request_auth, @@ -8220,8 +8162,8 @@ def _sources_group_connections_ldap_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/sources/group_connections/ldap/{id}/used_by/', + method='DELETE', + resource_path='/sources/group_connections/oauth/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8238,9 +8180,14 @@ def _sources_group_connections_ldap_used_by_list_serialize( @validate_call - def sources_group_connections_oauth_create( + def sources_group_connections_oauth_list( self, - group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8253,13 +8200,23 @@ def sources_group_connections_oauth_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupOAuthSourceConnection: - """sources_group_connections_oauth_create + ) -> PaginatedGroupOAuthSourceConnectionList: + """sources_group_connections_oauth_list Group-source connection Viewset - :param group_o_auth_source_connection_request: (required) - :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8282,8 +8239,13 @@ def sources_group_connections_oauth_create( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_create_serialize( - group_o_auth_source_connection_request=group_o_auth_source_connection_request, + _param = self._sources_group_connections_oauth_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8291,7 +8253,7 @@ def sources_group_connections_oauth_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupOAuthSourceConnection", + '200': "PaginatedGroupOAuthSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -8307,9 +8269,14 @@ def sources_group_connections_oauth_create( @validate_call - def sources_group_connections_oauth_create_with_http_info( + def sources_group_connections_oauth_list_with_http_info( self, - group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8322,13 +8289,23 @@ def sources_group_connections_oauth_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupOAuthSourceConnection]: - """sources_group_connections_oauth_create + ) -> ApiResponse[PaginatedGroupOAuthSourceConnectionList]: + """sources_group_connections_oauth_list Group-source connection Viewset - :param group_o_auth_source_connection_request: (required) - :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8351,8 +8328,13 @@ def sources_group_connections_oauth_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_create_serialize( - group_o_auth_source_connection_request=group_o_auth_source_connection_request, + _param = self._sources_group_connections_oauth_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8360,7 +8342,7 @@ def sources_group_connections_oauth_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupOAuthSourceConnection", + '200': "PaginatedGroupOAuthSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -8376,9 +8358,14 @@ def sources_group_connections_oauth_create_with_http_info( @validate_call - def sources_group_connections_oauth_create_without_preload_content( + def sources_group_connections_oauth_list_without_preload_content( self, - group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8392,12 +8379,22 @@ def sources_group_connections_oauth_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_oauth_create + """sources_group_connections_oauth_list Group-source connection Viewset - :param group_o_auth_source_connection_request: (required) - :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8420,8 +8417,13 @@ def sources_group_connections_oauth_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_create_serialize( - group_o_auth_source_connection_request=group_o_auth_source_connection_request, + _param = self._sources_group_connections_oauth_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8429,7 +8431,7 @@ def sources_group_connections_oauth_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupOAuthSourceConnection", + '200': "PaginatedGroupOAuthSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -8440,9 +8442,14 @@ def sources_group_connections_oauth_create_without_preload_content( return response_data.response - def _sources_group_connections_oauth_create_serialize( + def _sources_group_connections_oauth_list_serialize( self, - group_o_auth_source_connection_request, + group, + ordering, + page, + page_size, + search, + source__slug, _request_auth, _content_type, _headers, @@ -8465,11 +8472,33 @@ def _sources_group_connections_oauth_create_serialize( # process the path parameters # process the query parameters + if group is not None: + + _query_params.append(('group', group)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if source__slug is not None: + + _query_params.append(('source__slug', source__slug)) + # process the header parameters # process the form parameters # process the body parameter - if group_o_auth_source_connection_request is not None: - _body_params = group_o_auth_source_connection_request # set the HTTP header `Accept` @@ -8480,19 +8509,6 @@ def _sources_group_connections_oauth_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8500,7 +8516,7 @@ def _sources_group_connections_oauth_create_serialize( ] return self.api_client.param_serialize( - method='POST', + method='GET', resource_path='/sources/group_connections/oauth/', path_params=_path_params, query_params=_query_params, @@ -8518,9 +8534,10 @@ def _sources_group_connections_oauth_create_serialize( @validate_call - def sources_group_connections_oauth_destroy( + def sources_group_connections_oauth_partial_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], + patched_group_o_auth_source_connection_request: Optional[PatchedGroupOAuthSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8533,13 +8550,15 @@ def sources_group_connections_oauth_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_group_connections_oauth_destroy + ) -> GroupOAuthSourceConnection: + """sources_group_connections_oauth_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int + :param patched_group_o_auth_source_connection_request: + :type patched_group_o_auth_source_connection_request: PatchedGroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8562,8 +8581,9 @@ def sources_group_connections_oauth_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_destroy_serialize( + _param = self._sources_group_connections_oauth_partial_update_serialize( id=id, + patched_group_o_auth_source_connection_request=patched_group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8571,7 +8591,7 @@ def sources_group_connections_oauth_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -8587,9 +8607,10 @@ def sources_group_connections_oauth_destroy( @validate_call - def sources_group_connections_oauth_destroy_with_http_info( + def sources_group_connections_oauth_partial_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], + patched_group_o_auth_source_connection_request: Optional[PatchedGroupOAuthSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8602,13 +8623,15 @@ def sources_group_connections_oauth_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_group_connections_oauth_destroy + ) -> ApiResponse[GroupOAuthSourceConnection]: + """sources_group_connections_oauth_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int + :param patched_group_o_auth_source_connection_request: + :type patched_group_o_auth_source_connection_request: PatchedGroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8631,8 +8654,9 @@ def sources_group_connections_oauth_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_destroy_serialize( + _param = self._sources_group_connections_oauth_partial_update_serialize( id=id, + patched_group_o_auth_source_connection_request=patched_group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8640,7 +8664,7 @@ def sources_group_connections_oauth_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -8656,9 +8680,10 @@ def sources_group_connections_oauth_destroy_with_http_info( @validate_call - def sources_group_connections_oauth_destroy_without_preload_content( + def sources_group_connections_oauth_partial_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], + patched_group_o_auth_source_connection_request: Optional[PatchedGroupOAuthSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8672,12 +8697,14 @@ def sources_group_connections_oauth_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_oauth_destroy + """sources_group_connections_oauth_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int + :param patched_group_o_auth_source_connection_request: + :type patched_group_o_auth_source_connection_request: PatchedGroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8700,8 +8727,9 @@ def sources_group_connections_oauth_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_destroy_serialize( + _param = self._sources_group_connections_oauth_partial_update_serialize( id=id, + patched_group_o_auth_source_connection_request=patched_group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8709,7 +8737,7 @@ def sources_group_connections_oauth_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -8720,9 +8748,10 @@ def sources_group_connections_oauth_destroy_without_preload_content( return response_data.response - def _sources_group_connections_oauth_destroy_serialize( + def _sources_group_connections_oauth_partial_update_serialize( self, id, + patched_group_o_auth_source_connection_request, _request_auth, _content_type, _headers, @@ -8750,6 +8779,8 @@ def _sources_group_connections_oauth_destroy_serialize( # process the header parameters # process the form parameters # process the body parameter + if patched_group_o_auth_source_connection_request is not None: + _body_params = patched_group_o_auth_source_connection_request # set the HTTP header `Accept` @@ -8760,6 +8791,19 @@ def _sources_group_connections_oauth_destroy_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -8767,7 +8811,7 @@ def _sources_group_connections_oauth_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='PATCH', resource_path='/sources/group_connections/oauth/{id}/', path_params=_path_params, query_params=_query_params, @@ -8785,14 +8829,9 @@ def _sources_group_connections_oauth_destroy_serialize( @validate_call - def sources_group_connections_oauth_list( + def sources_group_connections_oauth_retrieve( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8805,23 +8844,13 @@ def sources_group_connections_oauth_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedGroupOAuthSourceConnectionList: - """sources_group_connections_oauth_list + ) -> GroupOAuthSourceConnection: + """sources_group_connections_oauth_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group OAuth Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8844,13 +8873,8 @@ def sources_group_connections_oauth_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_oauth_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8858,7 +8882,7 @@ def sources_group_connections_oauth_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupOAuthSourceConnectionList", + '200': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -8874,14 +8898,9 @@ def sources_group_connections_oauth_list( @validate_call - def sources_group_connections_oauth_list_with_http_info( + def sources_group_connections_oauth_retrieve_with_http_info( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8894,23 +8913,13 @@ def sources_group_connections_oauth_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedGroupOAuthSourceConnectionList]: - """sources_group_connections_oauth_list + ) -> ApiResponse[GroupOAuthSourceConnection]: + """sources_group_connections_oauth_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group OAuth Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8933,13 +8942,8 @@ def sources_group_connections_oauth_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_oauth_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8947,7 +8951,7 @@ def sources_group_connections_oauth_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupOAuthSourceConnectionList", + '200': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -8963,14 +8967,9 @@ def sources_group_connections_oauth_list_with_http_info( @validate_call - def sources_group_connections_oauth_list_without_preload_content( + def sources_group_connections_oauth_retrieve_without_preload_content( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8984,22 +8983,12 @@ def sources_group_connections_oauth_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_oauth_list + """sources_group_connections_oauth_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group OAuth Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9022,13 +9011,8 @@ def sources_group_connections_oauth_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_oauth_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9036,7 +9020,7 @@ def sources_group_connections_oauth_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupOAuthSourceConnectionList", + '200': "GroupOAuthSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -9047,14 +9031,9 @@ def sources_group_connections_oauth_list_without_preload_content( return response_data.response - def _sources_group_connections_oauth_list_serialize( + def _sources_group_connections_oauth_retrieve_serialize( self, - group, - ordering, - page, - page_size, - search, - source__slug, + id, _request_auth, _content_type, _headers, @@ -9076,31 +9055,9 @@ def _sources_group_connections_oauth_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if group is not None: - - _query_params.append(('group', group)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if source__slug is not None: - - _query_params.append(('source__slug', source__slug)) - # process the header parameters # process the form parameters # process the body parameter @@ -9122,7 +9079,7 @@ def _sources_group_connections_oauth_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/oauth/', + resource_path='/sources/group_connections/oauth/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9139,10 +9096,10 @@ def _sources_group_connections_oauth_list_serialize( @validate_call - def sources_group_connections_oauth_partial_update( + def sources_group_connections_oauth_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], - patched_group_o_auth_source_connection_request: Optional[PatchedGroupOAuthSourceConnectionRequest] = None, + group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9156,14 +9113,14 @@ def sources_group_connections_oauth_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GroupOAuthSourceConnection: - """sources_group_connections_oauth_partial_update + """sources_group_connections_oauth_update Group-source connection Viewset :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int - :param patched_group_o_auth_source_connection_request: - :type patched_group_o_auth_source_connection_request: PatchedGroupOAuthSourceConnectionRequest + :param group_o_auth_source_connection_request: (required) + :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9186,9 +9143,9 @@ def sources_group_connections_oauth_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_partial_update_serialize( + _param = self._sources_group_connections_oauth_update_serialize( id=id, - patched_group_o_auth_source_connection_request=patched_group_o_auth_source_connection_request, + group_o_auth_source_connection_request=group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9212,10 +9169,10 @@ def sources_group_connections_oauth_partial_update( @validate_call - def sources_group_connections_oauth_partial_update_with_http_info( + def sources_group_connections_oauth_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], - patched_group_o_auth_source_connection_request: Optional[PatchedGroupOAuthSourceConnectionRequest] = None, + group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9229,14 +9186,14 @@ def sources_group_connections_oauth_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GroupOAuthSourceConnection]: - """sources_group_connections_oauth_partial_update + """sources_group_connections_oauth_update Group-source connection Viewset :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int - :param patched_group_o_auth_source_connection_request: - :type patched_group_o_auth_source_connection_request: PatchedGroupOAuthSourceConnectionRequest + :param group_o_auth_source_connection_request: (required) + :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9259,9 +9216,9 @@ def sources_group_connections_oauth_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_partial_update_serialize( + _param = self._sources_group_connections_oauth_update_serialize( id=id, - patched_group_o_auth_source_connection_request=patched_group_o_auth_source_connection_request, + group_o_auth_source_connection_request=group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9285,10 +9242,10 @@ def sources_group_connections_oauth_partial_update_with_http_info( @validate_call - def sources_group_connections_oauth_partial_update_without_preload_content( + def sources_group_connections_oauth_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], - patched_group_o_auth_source_connection_request: Optional[PatchedGroupOAuthSourceConnectionRequest] = None, + group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9302,14 +9259,14 @@ def sources_group_connections_oauth_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_oauth_partial_update + """sources_group_connections_oauth_update Group-source connection Viewset :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int - :param patched_group_o_auth_source_connection_request: - :type patched_group_o_auth_source_connection_request: PatchedGroupOAuthSourceConnectionRequest + :param group_o_auth_source_connection_request: (required) + :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9332,9 +9289,9 @@ def sources_group_connections_oauth_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_partial_update_serialize( + _param = self._sources_group_connections_oauth_update_serialize( id=id, - patched_group_o_auth_source_connection_request=patched_group_o_auth_source_connection_request, + group_o_auth_source_connection_request=group_o_auth_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9353,10 +9310,10 @@ def sources_group_connections_oauth_partial_update_without_preload_content( return response_data.response - def _sources_group_connections_oauth_partial_update_serialize( + def _sources_group_connections_oauth_update_serialize( self, id, - patched_group_o_auth_source_connection_request, + group_o_auth_source_connection_request, _request_auth, _content_type, _headers, @@ -9384,8 +9341,8 @@ def _sources_group_connections_oauth_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_group_o_auth_source_connection_request is not None: - _body_params = patched_group_o_auth_source_connection_request + if group_o_auth_source_connection_request is not None: + _body_params = group_o_auth_source_connection_request # set the HTTP header `Accept` @@ -9416,7 +9373,7 @@ def _sources_group_connections_oauth_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='PUT', resource_path='/sources/group_connections/oauth/{id}/', path_params=_path_params, query_params=_query_params, @@ -9434,7 +9391,7 @@ def _sources_group_connections_oauth_partial_update_serialize( @validate_call - def sources_group_connections_oauth_retrieve( + def sources_group_connections_oauth_used_by_list( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ @@ -9449,10 +9406,10 @@ def sources_group_connections_oauth_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupOAuthSourceConnection: - """sources_group_connections_oauth_retrieve + ) -> List[UsedBy]: + """sources_group_connections_oauth_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int @@ -9478,7 +9435,7 @@ def sources_group_connections_oauth_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_retrieve_serialize( + _param = self._sources_group_connections_oauth_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -9487,7 +9444,7 @@ def sources_group_connections_oauth_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupOAuthSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -9503,7 +9460,7 @@ def sources_group_connections_oauth_retrieve( @validate_call - def sources_group_connections_oauth_retrieve_with_http_info( + def sources_group_connections_oauth_used_by_list_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ @@ -9518,10 +9475,10 @@ def sources_group_connections_oauth_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupOAuthSourceConnection]: - """sources_group_connections_oauth_retrieve + ) -> ApiResponse[List[UsedBy]]: + """sources_group_connections_oauth_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int @@ -9547,7 +9504,7 @@ def sources_group_connections_oauth_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_retrieve_serialize( + _param = self._sources_group_connections_oauth_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -9556,7 +9513,7 @@ def sources_group_connections_oauth_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupOAuthSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -9572,7 +9529,7 @@ def sources_group_connections_oauth_retrieve_with_http_info( @validate_call - def sources_group_connections_oauth_retrieve_without_preload_content( + def sources_group_connections_oauth_used_by_list_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], _request_timeout: Union[ @@ -9588,9 +9545,9 @@ def sources_group_connections_oauth_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_oauth_retrieve + """sources_group_connections_oauth_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group OAuth Source Connection. (required) :type id: int @@ -9616,7 +9573,7 @@ def sources_group_connections_oauth_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_retrieve_serialize( + _param = self._sources_group_connections_oauth_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -9625,7 +9582,7 @@ def sources_group_connections_oauth_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupOAuthSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -9636,7 +9593,7 @@ def sources_group_connections_oauth_retrieve_without_preload_content( return response_data.response - def _sources_group_connections_oauth_retrieve_serialize( + def _sources_group_connections_oauth_used_by_list_serialize( self, id, _request_auth, @@ -9684,7 +9641,7 @@ def _sources_group_connections_oauth_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/oauth/{id}/', + resource_path='/sources/group_connections/oauth/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9701,10 +9658,9 @@ def _sources_group_connections_oauth_retrieve_serialize( @validate_call - def sources_group_connections_oauth_update( + def sources_group_connections_plex_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], - group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, + group_plex_source_connection_request: GroupPlexSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9717,15 +9673,13 @@ def sources_group_connections_oauth_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupOAuthSourceConnection: - """sources_group_connections_oauth_update + ) -> GroupPlexSourceConnection: + """sources_group_connections_plex_create Group-source connection Viewset - :param id: A unique integer value identifying this Group OAuth Source Connection. (required) - :type id: int - :param group_o_auth_source_connection_request: (required) - :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest + :param group_plex_source_connection_request: (required) + :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9748,9 +9702,8 @@ def sources_group_connections_oauth_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_update_serialize( - id=id, - group_o_auth_source_connection_request=group_o_auth_source_connection_request, + _param = self._sources_group_connections_plex_create_serialize( + group_plex_source_connection_request=group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9758,7 +9711,7 @@ def sources_group_connections_oauth_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupOAuthSourceConnection", + '201': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -9774,10 +9727,9 @@ def sources_group_connections_oauth_update( @validate_call - def sources_group_connections_oauth_update_with_http_info( + def sources_group_connections_plex_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], - group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, + group_plex_source_connection_request: GroupPlexSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9790,15 +9742,13 @@ def sources_group_connections_oauth_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupOAuthSourceConnection]: - """sources_group_connections_oauth_update + ) -> ApiResponse[GroupPlexSourceConnection]: + """sources_group_connections_plex_create Group-source connection Viewset - :param id: A unique integer value identifying this Group OAuth Source Connection. (required) - :type id: int - :param group_o_auth_source_connection_request: (required) - :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest + :param group_plex_source_connection_request: (required) + :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9821,9 +9771,8 @@ def sources_group_connections_oauth_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_update_serialize( - id=id, - group_o_auth_source_connection_request=group_o_auth_source_connection_request, + _param = self._sources_group_connections_plex_create_serialize( + group_plex_source_connection_request=group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9831,7 +9780,7 @@ def sources_group_connections_oauth_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupOAuthSourceConnection", + '201': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -9847,10 +9796,9 @@ def sources_group_connections_oauth_update_with_http_info( @validate_call - def sources_group_connections_oauth_update_without_preload_content( + def sources_group_connections_plex_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], - group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest, + group_plex_source_connection_request: GroupPlexSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9864,14 +9812,12 @@ def sources_group_connections_oauth_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_oauth_update + """sources_group_connections_plex_create Group-source connection Viewset - :param id: A unique integer value identifying this Group OAuth Source Connection. (required) - :type id: int - :param group_o_auth_source_connection_request: (required) - :type group_o_auth_source_connection_request: GroupOAuthSourceConnectionRequest + :param group_plex_source_connection_request: (required) + :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9894,9 +9840,8 @@ def sources_group_connections_oauth_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_update_serialize( - id=id, - group_o_auth_source_connection_request=group_o_auth_source_connection_request, + _param = self._sources_group_connections_plex_create_serialize( + group_plex_source_connection_request=group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9904,7 +9849,7 @@ def sources_group_connections_oauth_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupOAuthSourceConnection", + '201': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -9915,10 +9860,9 @@ def sources_group_connections_oauth_update_without_preload_content( return response_data.response - def _sources_group_connections_oauth_update_serialize( + def _sources_group_connections_plex_create_serialize( self, - id, - group_o_auth_source_connection_request, + group_plex_source_connection_request, _request_auth, _content_type, _headers, @@ -9940,14 +9884,12 @@ def _sources_group_connections_oauth_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if group_o_auth_source_connection_request is not None: - _body_params = group_o_auth_source_connection_request + if group_plex_source_connection_request is not None: + _body_params = group_plex_source_connection_request # set the HTTP header `Accept` @@ -9978,8 +9920,8 @@ def _sources_group_connections_oauth_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/sources/group_connections/oauth/{id}/', + method='POST', + resource_path='/sources/group_connections/plex/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9996,9 +9938,9 @@ def _sources_group_connections_oauth_update_serialize( @validate_call - def sources_group_connections_oauth_used_by_list( + def sources_group_connections_plex_destroy( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10011,12 +9953,12 @@ def sources_group_connections_oauth_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_group_connections_oauth_used_by_list + ) -> None: + """sources_group_connections_plex_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group OAuth Source Connection. (required) + :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -10040,7 +9982,7 @@ def sources_group_connections_oauth_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_used_by_list_serialize( + _param = self._sources_group_connections_plex_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -10049,7 +9991,7 @@ def sources_group_connections_oauth_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -10065,9 +10007,9 @@ def sources_group_connections_oauth_used_by_list( @validate_call - def sources_group_connections_oauth_used_by_list_with_http_info( + def sources_group_connections_plex_destroy_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10080,12 +10022,12 @@ def sources_group_connections_oauth_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_group_connections_oauth_used_by_list + ) -> ApiResponse[None]: + """sources_group_connections_plex_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group OAuth Source Connection. (required) + :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -10109,7 +10051,7 @@ def sources_group_connections_oauth_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_used_by_list_serialize( + _param = self._sources_group_connections_plex_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -10118,7 +10060,7 @@ def sources_group_connections_oauth_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -10134,9 +10076,9 @@ def sources_group_connections_oauth_used_by_list_with_http_info( @validate_call - def sources_group_connections_oauth_used_by_list_without_preload_content( + def sources_group_connections_plex_destroy_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group OAuth Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10150,11 +10092,11 @@ def sources_group_connections_oauth_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_oauth_used_by_list + """sources_group_connections_plex_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group OAuth Source Connection. (required) + :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -10178,7 +10120,7 @@ def sources_group_connections_oauth_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_oauth_used_by_list_serialize( + _param = self._sources_group_connections_plex_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -10187,7 +10129,7 @@ def sources_group_connections_oauth_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -10198,7 +10140,7 @@ def sources_group_connections_oauth_used_by_list_without_preload_content( return response_data.response - def _sources_group_connections_oauth_used_by_list_serialize( + def _sources_group_connections_plex_destroy_serialize( self, id, _request_auth, @@ -10245,8 +10187,8 @@ def _sources_group_connections_oauth_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/sources/group_connections/oauth/{id}/used_by/', + method='DELETE', + resource_path='/sources/group_connections/plex/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10263,9 +10205,14 @@ def _sources_group_connections_oauth_used_by_list_serialize( @validate_call - def sources_group_connections_plex_create( + def sources_group_connections_plex_list( self, - group_plex_source_connection_request: GroupPlexSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10278,13 +10225,23 @@ def sources_group_connections_plex_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupPlexSourceConnection: - """sources_group_connections_plex_create + ) -> PaginatedGroupPlexSourceConnectionList: + """sources_group_connections_plex_list Group-source connection Viewset - :param group_plex_source_connection_request: (required) - :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10307,8 +10264,13 @@ def sources_group_connections_plex_create( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_create_serialize( - group_plex_source_connection_request=group_plex_source_connection_request, + _param = self._sources_group_connections_plex_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10316,7 +10278,7 @@ def sources_group_connections_plex_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupPlexSourceConnection", + '200': "PaginatedGroupPlexSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -10332,9 +10294,14 @@ def sources_group_connections_plex_create( @validate_call - def sources_group_connections_plex_create_with_http_info( + def sources_group_connections_plex_list_with_http_info( self, - group_plex_source_connection_request: GroupPlexSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10347,13 +10314,23 @@ def sources_group_connections_plex_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupPlexSourceConnection]: - """sources_group_connections_plex_create + ) -> ApiResponse[PaginatedGroupPlexSourceConnectionList]: + """sources_group_connections_plex_list Group-source connection Viewset - :param group_plex_source_connection_request: (required) - :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10376,8 +10353,13 @@ def sources_group_connections_plex_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_create_serialize( - group_plex_source_connection_request=group_plex_source_connection_request, + _param = self._sources_group_connections_plex_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10385,7 +10367,7 @@ def sources_group_connections_plex_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupPlexSourceConnection", + '200': "PaginatedGroupPlexSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -10401,9 +10383,14 @@ def sources_group_connections_plex_create_with_http_info( @validate_call - def sources_group_connections_plex_create_without_preload_content( + def sources_group_connections_plex_list_without_preload_content( self, - group_plex_source_connection_request: GroupPlexSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10417,12 +10404,22 @@ def sources_group_connections_plex_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_plex_create + """sources_group_connections_plex_list Group-source connection Viewset - :param group_plex_source_connection_request: (required) - :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10445,8 +10442,13 @@ def sources_group_connections_plex_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_create_serialize( - group_plex_source_connection_request=group_plex_source_connection_request, + _param = self._sources_group_connections_plex_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10454,7 +10456,7 @@ def sources_group_connections_plex_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupPlexSourceConnection", + '200': "PaginatedGroupPlexSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -10465,9 +10467,14 @@ def sources_group_connections_plex_create_without_preload_content( return response_data.response - def _sources_group_connections_plex_create_serialize( + def _sources_group_connections_plex_list_serialize( self, - group_plex_source_connection_request, + group, + ordering, + page, + page_size, + search, + source__slug, _request_auth, _content_type, _headers, @@ -10490,11 +10497,33 @@ def _sources_group_connections_plex_create_serialize( # process the path parameters # process the query parameters + if group is not None: + + _query_params.append(('group', group)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if source__slug is not None: + + _query_params.append(('source__slug', source__slug)) + # process the header parameters # process the form parameters # process the body parameter - if group_plex_source_connection_request is not None: - _body_params = group_plex_source_connection_request # set the HTTP header `Accept` @@ -10505,19 +10534,6 @@ def _sources_group_connections_plex_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10525,7 +10541,7 @@ def _sources_group_connections_plex_create_serialize( ] return self.api_client.param_serialize( - method='POST', + method='GET', resource_path='/sources/group_connections/plex/', path_params=_path_params, query_params=_query_params, @@ -10543,9 +10559,10 @@ def _sources_group_connections_plex_create_serialize( @validate_call - def sources_group_connections_plex_destroy( + def sources_group_connections_plex_partial_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], + patched_group_plex_source_connection_request: Optional[PatchedGroupPlexSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10558,13 +10575,15 @@ def sources_group_connections_plex_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_group_connections_plex_destroy + ) -> GroupPlexSourceConnection: + """sources_group_connections_plex_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int + :param patched_group_plex_source_connection_request: + :type patched_group_plex_source_connection_request: PatchedGroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10587,8 +10606,9 @@ def sources_group_connections_plex_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_destroy_serialize( + _param = self._sources_group_connections_plex_partial_update_serialize( id=id, + patched_group_plex_source_connection_request=patched_group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10596,7 +10616,7 @@ def sources_group_connections_plex_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -10612,9 +10632,10 @@ def sources_group_connections_plex_destroy( @validate_call - def sources_group_connections_plex_destroy_with_http_info( + def sources_group_connections_plex_partial_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], + patched_group_plex_source_connection_request: Optional[PatchedGroupPlexSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10627,13 +10648,15 @@ def sources_group_connections_plex_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_group_connections_plex_destroy + ) -> ApiResponse[GroupPlexSourceConnection]: + """sources_group_connections_plex_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int + :param patched_group_plex_source_connection_request: + :type patched_group_plex_source_connection_request: PatchedGroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10656,8 +10679,9 @@ def sources_group_connections_plex_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_destroy_serialize( + _param = self._sources_group_connections_plex_partial_update_serialize( id=id, + patched_group_plex_source_connection_request=patched_group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10665,7 +10689,7 @@ def sources_group_connections_plex_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -10681,9 +10705,10 @@ def sources_group_connections_plex_destroy_with_http_info( @validate_call - def sources_group_connections_plex_destroy_without_preload_content( + def sources_group_connections_plex_partial_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], + patched_group_plex_source_connection_request: Optional[PatchedGroupPlexSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10697,12 +10722,14 @@ def sources_group_connections_plex_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_plex_destroy + """sources_group_connections_plex_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int + :param patched_group_plex_source_connection_request: + :type patched_group_plex_source_connection_request: PatchedGroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10725,8 +10752,9 @@ def sources_group_connections_plex_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_destroy_serialize( + _param = self._sources_group_connections_plex_partial_update_serialize( id=id, + patched_group_plex_source_connection_request=patched_group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10734,7 +10762,7 @@ def sources_group_connections_plex_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -10745,9 +10773,10 @@ def sources_group_connections_plex_destroy_without_preload_content( return response_data.response - def _sources_group_connections_plex_destroy_serialize( + def _sources_group_connections_plex_partial_update_serialize( self, id, + patched_group_plex_source_connection_request, _request_auth, _content_type, _headers, @@ -10775,6 +10804,8 @@ def _sources_group_connections_plex_destroy_serialize( # process the header parameters # process the form parameters # process the body parameter + if patched_group_plex_source_connection_request is not None: + _body_params = patched_group_plex_source_connection_request # set the HTTP header `Accept` @@ -10785,6 +10816,19 @@ def _sources_group_connections_plex_destroy_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -10792,7 +10836,7 @@ def _sources_group_connections_plex_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='PATCH', resource_path='/sources/group_connections/plex/{id}/', path_params=_path_params, query_params=_query_params, @@ -10810,14 +10854,9 @@ def _sources_group_connections_plex_destroy_serialize( @validate_call - def sources_group_connections_plex_list( + def sources_group_connections_plex_retrieve( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10830,23 +10869,13 @@ def sources_group_connections_plex_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedGroupPlexSourceConnectionList: - """sources_group_connections_plex_list + ) -> GroupPlexSourceConnection: + """sources_group_connections_plex_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Plex Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10869,13 +10898,8 @@ def sources_group_connections_plex_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_plex_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10883,7 +10907,7 @@ def sources_group_connections_plex_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupPlexSourceConnectionList", + '200': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -10899,14 +10923,9 @@ def sources_group_connections_plex_list( @validate_call - def sources_group_connections_plex_list_with_http_info( + def sources_group_connections_plex_retrieve_with_http_info( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10919,23 +10938,13 @@ def sources_group_connections_plex_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedGroupPlexSourceConnectionList]: - """sources_group_connections_plex_list + ) -> ApiResponse[GroupPlexSourceConnection]: + """sources_group_connections_plex_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Plex Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10958,13 +10967,8 @@ def sources_group_connections_plex_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_plex_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10972,7 +10976,7 @@ def sources_group_connections_plex_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupPlexSourceConnectionList", + '200': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -10988,14 +10992,9 @@ def sources_group_connections_plex_list_with_http_info( @validate_call - def sources_group_connections_plex_list_without_preload_content( + def sources_group_connections_plex_retrieve_without_preload_content( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11009,22 +11008,12 @@ def sources_group_connections_plex_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_plex_list + """sources_group_connections_plex_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Plex Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11047,13 +11036,8 @@ def sources_group_connections_plex_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_plex_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11061,7 +11045,7 @@ def sources_group_connections_plex_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupPlexSourceConnectionList", + '200': "GroupPlexSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -11072,14 +11056,9 @@ def sources_group_connections_plex_list_without_preload_content( return response_data.response - def _sources_group_connections_plex_list_serialize( + def _sources_group_connections_plex_retrieve_serialize( self, - group, - ordering, - page, - page_size, - search, - source__slug, + id, _request_auth, _content_type, _headers, @@ -11101,31 +11080,9 @@ def _sources_group_connections_plex_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if group is not None: - - _query_params.append(('group', group)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if source__slug is not None: - - _query_params.append(('source__slug', source__slug)) - # process the header parameters # process the form parameters # process the body parameter @@ -11147,7 +11104,7 @@ def _sources_group_connections_plex_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/plex/', + resource_path='/sources/group_connections/plex/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11164,10 +11121,10 @@ def _sources_group_connections_plex_list_serialize( @validate_call - def sources_group_connections_plex_partial_update( + def sources_group_connections_plex_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], - patched_group_plex_source_connection_request: Optional[PatchedGroupPlexSourceConnectionRequest] = None, + group_plex_source_connection_request: GroupPlexSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11181,14 +11138,14 @@ def sources_group_connections_plex_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GroupPlexSourceConnection: - """sources_group_connections_plex_partial_update + """sources_group_connections_plex_update Group-source connection Viewset :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int - :param patched_group_plex_source_connection_request: - :type patched_group_plex_source_connection_request: PatchedGroupPlexSourceConnectionRequest + :param group_plex_source_connection_request: (required) + :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11211,9 +11168,9 @@ def sources_group_connections_plex_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_partial_update_serialize( + _param = self._sources_group_connections_plex_update_serialize( id=id, - patched_group_plex_source_connection_request=patched_group_plex_source_connection_request, + group_plex_source_connection_request=group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11237,10 +11194,10 @@ def sources_group_connections_plex_partial_update( @validate_call - def sources_group_connections_plex_partial_update_with_http_info( + def sources_group_connections_plex_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], - patched_group_plex_source_connection_request: Optional[PatchedGroupPlexSourceConnectionRequest] = None, + group_plex_source_connection_request: GroupPlexSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11254,14 +11211,14 @@ def sources_group_connections_plex_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GroupPlexSourceConnection]: - """sources_group_connections_plex_partial_update + """sources_group_connections_plex_update Group-source connection Viewset :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int - :param patched_group_plex_source_connection_request: - :type patched_group_plex_source_connection_request: PatchedGroupPlexSourceConnectionRequest + :param group_plex_source_connection_request: (required) + :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11284,9 +11241,9 @@ def sources_group_connections_plex_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_partial_update_serialize( + _param = self._sources_group_connections_plex_update_serialize( id=id, - patched_group_plex_source_connection_request=patched_group_plex_source_connection_request, + group_plex_source_connection_request=group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11310,10 +11267,10 @@ def sources_group_connections_plex_partial_update_with_http_info( @validate_call - def sources_group_connections_plex_partial_update_without_preload_content( + def sources_group_connections_plex_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], - patched_group_plex_source_connection_request: Optional[PatchedGroupPlexSourceConnectionRequest] = None, + group_plex_source_connection_request: GroupPlexSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11327,14 +11284,14 @@ def sources_group_connections_plex_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_plex_partial_update + """sources_group_connections_plex_update Group-source connection Viewset :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int - :param patched_group_plex_source_connection_request: - :type patched_group_plex_source_connection_request: PatchedGroupPlexSourceConnectionRequest + :param group_plex_source_connection_request: (required) + :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11357,9 +11314,9 @@ def sources_group_connections_plex_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_partial_update_serialize( + _param = self._sources_group_connections_plex_update_serialize( id=id, - patched_group_plex_source_connection_request=patched_group_plex_source_connection_request, + group_plex_source_connection_request=group_plex_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11378,10 +11335,10 @@ def sources_group_connections_plex_partial_update_without_preload_content( return response_data.response - def _sources_group_connections_plex_partial_update_serialize( + def _sources_group_connections_plex_update_serialize( self, id, - patched_group_plex_source_connection_request, + group_plex_source_connection_request, _request_auth, _content_type, _headers, @@ -11409,8 +11366,8 @@ def _sources_group_connections_plex_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_group_plex_source_connection_request is not None: - _body_params = patched_group_plex_source_connection_request + if group_plex_source_connection_request is not None: + _body_params = group_plex_source_connection_request # set the HTTP header `Accept` @@ -11441,7 +11398,7 @@ def _sources_group_connections_plex_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='PUT', resource_path='/sources/group_connections/plex/{id}/', path_params=_path_params, query_params=_query_params, @@ -11459,7 +11416,7 @@ def _sources_group_connections_plex_partial_update_serialize( @validate_call - def sources_group_connections_plex_retrieve( + def sources_group_connections_plex_used_by_list( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ @@ -11474,10 +11431,10 @@ def sources_group_connections_plex_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupPlexSourceConnection: - """sources_group_connections_plex_retrieve + ) -> List[UsedBy]: + """sources_group_connections_plex_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int @@ -11503,7 +11460,7 @@ def sources_group_connections_plex_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_retrieve_serialize( + _param = self._sources_group_connections_plex_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -11512,7 +11469,7 @@ def sources_group_connections_plex_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupPlexSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -11528,7 +11485,7 @@ def sources_group_connections_plex_retrieve( @validate_call - def sources_group_connections_plex_retrieve_with_http_info( + def sources_group_connections_plex_used_by_list_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ @@ -11543,10 +11500,10 @@ def sources_group_connections_plex_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupPlexSourceConnection]: - """sources_group_connections_plex_retrieve + ) -> ApiResponse[List[UsedBy]]: + """sources_group_connections_plex_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int @@ -11572,7 +11529,7 @@ def sources_group_connections_plex_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_retrieve_serialize( + _param = self._sources_group_connections_plex_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -11581,7 +11538,7 @@ def sources_group_connections_plex_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupPlexSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -11597,7 +11554,7 @@ def sources_group_connections_plex_retrieve_with_http_info( @validate_call - def sources_group_connections_plex_retrieve_without_preload_content( + def sources_group_connections_plex_used_by_list_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], _request_timeout: Union[ @@ -11613,9 +11570,9 @@ def sources_group_connections_plex_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_plex_retrieve + """sources_group_connections_plex_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Plex Source Connection. (required) :type id: int @@ -11641,7 +11598,7 @@ def sources_group_connections_plex_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_retrieve_serialize( + _param = self._sources_group_connections_plex_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -11650,7 +11607,7 @@ def sources_group_connections_plex_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupPlexSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -11661,7 +11618,7 @@ def sources_group_connections_plex_retrieve_without_preload_content( return response_data.response - def _sources_group_connections_plex_retrieve_serialize( + def _sources_group_connections_plex_used_by_list_serialize( self, id, _request_auth, @@ -11709,7 +11666,7 @@ def _sources_group_connections_plex_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/plex/{id}/', + resource_path='/sources/group_connections/plex/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11726,10 +11683,9 @@ def _sources_group_connections_plex_retrieve_serialize( @validate_call - def sources_group_connections_plex_update( + def sources_group_connections_saml_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], - group_plex_source_connection_request: GroupPlexSourceConnectionRequest, + group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11742,15 +11698,13 @@ def sources_group_connections_plex_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupPlexSourceConnection: - """sources_group_connections_plex_update + ) -> GroupSAMLSourceConnection: + """sources_group_connections_saml_create Group-source connection Viewset - :param id: A unique integer value identifying this Group Plex Source Connection. (required) - :type id: int - :param group_plex_source_connection_request: (required) - :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest + :param group_saml_source_connection_request: (required) + :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11773,9 +11727,8 @@ def sources_group_connections_plex_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_update_serialize( - id=id, - group_plex_source_connection_request=group_plex_source_connection_request, + _param = self._sources_group_connections_saml_create_serialize( + group_saml_source_connection_request=group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11783,7 +11736,7 @@ def sources_group_connections_plex_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupPlexSourceConnection", + '201': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -11799,10 +11752,9 @@ def sources_group_connections_plex_update( @validate_call - def sources_group_connections_plex_update_with_http_info( + def sources_group_connections_saml_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], - group_plex_source_connection_request: GroupPlexSourceConnectionRequest, + group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11815,15 +11767,13 @@ def sources_group_connections_plex_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupPlexSourceConnection]: - """sources_group_connections_plex_update + ) -> ApiResponse[GroupSAMLSourceConnection]: + """sources_group_connections_saml_create Group-source connection Viewset - :param id: A unique integer value identifying this Group Plex Source Connection. (required) - :type id: int - :param group_plex_source_connection_request: (required) - :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest + :param group_saml_source_connection_request: (required) + :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11846,9 +11796,8 @@ def sources_group_connections_plex_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_update_serialize( - id=id, - group_plex_source_connection_request=group_plex_source_connection_request, + _param = self._sources_group_connections_saml_create_serialize( + group_saml_source_connection_request=group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11856,7 +11805,7 @@ def sources_group_connections_plex_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupPlexSourceConnection", + '201': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -11872,10 +11821,9 @@ def sources_group_connections_plex_update_with_http_info( @validate_call - def sources_group_connections_plex_update_without_preload_content( + def sources_group_connections_saml_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], - group_plex_source_connection_request: GroupPlexSourceConnectionRequest, + group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11889,14 +11837,12 @@ def sources_group_connections_plex_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_plex_update + """sources_group_connections_saml_create Group-source connection Viewset - :param id: A unique integer value identifying this Group Plex Source Connection. (required) - :type id: int - :param group_plex_source_connection_request: (required) - :type group_plex_source_connection_request: GroupPlexSourceConnectionRequest + :param group_saml_source_connection_request: (required) + :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11919,9 +11865,8 @@ def sources_group_connections_plex_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_update_serialize( - id=id, - group_plex_source_connection_request=group_plex_source_connection_request, + _param = self._sources_group_connections_saml_create_serialize( + group_saml_source_connection_request=group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11929,7 +11874,7 @@ def sources_group_connections_plex_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupPlexSourceConnection", + '201': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -11940,10 +11885,9 @@ def sources_group_connections_plex_update_without_preload_content( return response_data.response - def _sources_group_connections_plex_update_serialize( + def _sources_group_connections_saml_create_serialize( self, - id, - group_plex_source_connection_request, + group_saml_source_connection_request, _request_auth, _content_type, _headers, @@ -11965,14 +11909,12 @@ def _sources_group_connections_plex_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if group_plex_source_connection_request is not None: - _body_params = group_plex_source_connection_request + if group_saml_source_connection_request is not None: + _body_params = group_saml_source_connection_request # set the HTTP header `Accept` @@ -12003,8 +11945,8 @@ def _sources_group_connections_plex_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/sources/group_connections/plex/{id}/', + method='POST', + resource_path='/sources/group_connections/saml/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12021,9 +11963,9 @@ def _sources_group_connections_plex_update_serialize( @validate_call - def sources_group_connections_plex_used_by_list( + def sources_group_connections_saml_destroy( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12036,12 +11978,12 @@ def sources_group_connections_plex_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_group_connections_plex_used_by_list + ) -> None: + """sources_group_connections_saml_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group Plex Source Connection. (required) + :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -12065,7 +12007,7 @@ def sources_group_connections_plex_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_used_by_list_serialize( + _param = self._sources_group_connections_saml_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -12074,7 +12016,7 @@ def sources_group_connections_plex_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -12090,9 +12032,9 @@ def sources_group_connections_plex_used_by_list( @validate_call - def sources_group_connections_plex_used_by_list_with_http_info( + def sources_group_connections_saml_destroy_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12105,12 +12047,12 @@ def sources_group_connections_plex_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_group_connections_plex_used_by_list + ) -> ApiResponse[None]: + """sources_group_connections_saml_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group Plex Source Connection. (required) + :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -12134,7 +12076,7 @@ def sources_group_connections_plex_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_used_by_list_serialize( + _param = self._sources_group_connections_saml_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -12143,7 +12085,7 @@ def sources_group_connections_plex_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -12159,9 +12101,9 @@ def sources_group_connections_plex_used_by_list_with_http_info( @validate_call - def sources_group_connections_plex_used_by_list_without_preload_content( + def sources_group_connections_saml_destroy_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Plex Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12175,11 +12117,11 @@ def sources_group_connections_plex_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_plex_used_by_list + """sources_group_connections_saml_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group Plex Source Connection. (required) + :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -12203,7 +12145,7 @@ def sources_group_connections_plex_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_plex_used_by_list_serialize( + _param = self._sources_group_connections_saml_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -12212,7 +12154,7 @@ def sources_group_connections_plex_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -12223,7 +12165,7 @@ def sources_group_connections_plex_used_by_list_without_preload_content( return response_data.response - def _sources_group_connections_plex_used_by_list_serialize( + def _sources_group_connections_saml_destroy_serialize( self, id, _request_auth, @@ -12270,8 +12212,8 @@ def _sources_group_connections_plex_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/sources/group_connections/plex/{id}/used_by/', + method='DELETE', + resource_path='/sources/group_connections/saml/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12288,9 +12230,14 @@ def _sources_group_connections_plex_used_by_list_serialize( @validate_call - def sources_group_connections_saml_create( + def sources_group_connections_saml_list( self, - group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12303,13 +12250,23 @@ def sources_group_connections_saml_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupSAMLSourceConnection: - """sources_group_connections_saml_create + ) -> PaginatedGroupSAMLSourceConnectionList: + """sources_group_connections_saml_list Group-source connection Viewset - :param group_saml_source_connection_request: (required) - :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12332,8 +12289,13 @@ def sources_group_connections_saml_create( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_create_serialize( - group_saml_source_connection_request=group_saml_source_connection_request, + _param = self._sources_group_connections_saml_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12341,7 +12303,7 @@ def sources_group_connections_saml_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupSAMLSourceConnection", + '200': "PaginatedGroupSAMLSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -12357,9 +12319,14 @@ def sources_group_connections_saml_create( @validate_call - def sources_group_connections_saml_create_with_http_info( + def sources_group_connections_saml_list_with_http_info( self, - group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12372,13 +12339,23 @@ def sources_group_connections_saml_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupSAMLSourceConnection]: - """sources_group_connections_saml_create + ) -> ApiResponse[PaginatedGroupSAMLSourceConnectionList]: + """sources_group_connections_saml_list Group-source connection Viewset - :param group_saml_source_connection_request: (required) - :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12401,8 +12378,13 @@ def sources_group_connections_saml_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_create_serialize( - group_saml_source_connection_request=group_saml_source_connection_request, + _param = self._sources_group_connections_saml_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12410,7 +12392,7 @@ def sources_group_connections_saml_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupSAMLSourceConnection", + '200': "PaginatedGroupSAMLSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -12426,9 +12408,14 @@ def sources_group_connections_saml_create_with_http_info( @validate_call - def sources_group_connections_saml_create_without_preload_content( + def sources_group_connections_saml_list_without_preload_content( self, - group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12442,12 +12429,22 @@ def sources_group_connections_saml_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_saml_create + """sources_group_connections_saml_list Group-source connection Viewset - :param group_saml_source_connection_request: (required) - :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12470,8 +12467,13 @@ def sources_group_connections_saml_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_create_serialize( - group_saml_source_connection_request=group_saml_source_connection_request, + _param = self._sources_group_connections_saml_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12479,7 +12481,7 @@ def sources_group_connections_saml_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupSAMLSourceConnection", + '200': "PaginatedGroupSAMLSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -12490,9 +12492,14 @@ def sources_group_connections_saml_create_without_preload_content( return response_data.response - def _sources_group_connections_saml_create_serialize( + def _sources_group_connections_saml_list_serialize( self, - group_saml_source_connection_request, + group, + ordering, + page, + page_size, + search, + source__slug, _request_auth, _content_type, _headers, @@ -12515,11 +12522,33 @@ def _sources_group_connections_saml_create_serialize( # process the path parameters # process the query parameters + if group is not None: + + _query_params.append(('group', group)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if source__slug is not None: + + _query_params.append(('source__slug', source__slug)) + # process the header parameters # process the form parameters # process the body parameter - if group_saml_source_connection_request is not None: - _body_params = group_saml_source_connection_request # set the HTTP header `Accept` @@ -12530,19 +12559,6 @@ def _sources_group_connections_saml_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -12550,7 +12566,7 @@ def _sources_group_connections_saml_create_serialize( ] return self.api_client.param_serialize( - method='POST', + method='GET', resource_path='/sources/group_connections/saml/', path_params=_path_params, query_params=_query_params, @@ -12568,9 +12584,10 @@ def _sources_group_connections_saml_create_serialize( @validate_call - def sources_group_connections_saml_destroy( + def sources_group_connections_saml_partial_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], + patched_group_saml_source_connection_request: Optional[PatchedGroupSAMLSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12583,13 +12600,15 @@ def sources_group_connections_saml_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_group_connections_saml_destroy + ) -> GroupSAMLSourceConnection: + """sources_group_connections_saml_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int + :param patched_group_saml_source_connection_request: + :type patched_group_saml_source_connection_request: PatchedGroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12612,8 +12631,9 @@ def sources_group_connections_saml_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_destroy_serialize( + _param = self._sources_group_connections_saml_partial_update_serialize( id=id, + patched_group_saml_source_connection_request=patched_group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12621,7 +12641,7 @@ def sources_group_connections_saml_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -12637,9 +12657,10 @@ def sources_group_connections_saml_destroy( @validate_call - def sources_group_connections_saml_destroy_with_http_info( + def sources_group_connections_saml_partial_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], + patched_group_saml_source_connection_request: Optional[PatchedGroupSAMLSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12652,13 +12673,15 @@ def sources_group_connections_saml_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_group_connections_saml_destroy + ) -> ApiResponse[GroupSAMLSourceConnection]: + """sources_group_connections_saml_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int + :param patched_group_saml_source_connection_request: + :type patched_group_saml_source_connection_request: PatchedGroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12681,8 +12704,9 @@ def sources_group_connections_saml_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_destroy_serialize( + _param = self._sources_group_connections_saml_partial_update_serialize( id=id, + patched_group_saml_source_connection_request=patched_group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12690,7 +12714,7 @@ def sources_group_connections_saml_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -12706,9 +12730,10 @@ def sources_group_connections_saml_destroy_with_http_info( @validate_call - def sources_group_connections_saml_destroy_without_preload_content( + def sources_group_connections_saml_partial_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], + patched_group_saml_source_connection_request: Optional[PatchedGroupSAMLSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12722,12 +12747,14 @@ def sources_group_connections_saml_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_saml_destroy + """sources_group_connections_saml_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int + :param patched_group_saml_source_connection_request: + :type patched_group_saml_source_connection_request: PatchedGroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12750,8 +12777,9 @@ def sources_group_connections_saml_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_destroy_serialize( + _param = self._sources_group_connections_saml_partial_update_serialize( id=id, + patched_group_saml_source_connection_request=patched_group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12759,7 +12787,7 @@ def sources_group_connections_saml_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -12770,9 +12798,10 @@ def sources_group_connections_saml_destroy_without_preload_content( return response_data.response - def _sources_group_connections_saml_destroy_serialize( + def _sources_group_connections_saml_partial_update_serialize( self, id, + patched_group_saml_source_connection_request, _request_auth, _content_type, _headers, @@ -12800,6 +12829,8 @@ def _sources_group_connections_saml_destroy_serialize( # process the header parameters # process the form parameters # process the body parameter + if patched_group_saml_source_connection_request is not None: + _body_params = patched_group_saml_source_connection_request # set the HTTP header `Accept` @@ -12810,6 +12841,19 @@ def _sources_group_connections_saml_destroy_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -12817,7 +12861,7 @@ def _sources_group_connections_saml_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='PATCH', resource_path='/sources/group_connections/saml/{id}/', path_params=_path_params, query_params=_query_params, @@ -12835,14 +12879,9 @@ def _sources_group_connections_saml_destroy_serialize( @validate_call - def sources_group_connections_saml_list( + def sources_group_connections_saml_retrieve( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12855,23 +12894,13 @@ def sources_group_connections_saml_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedGroupSAMLSourceConnectionList: - """sources_group_connections_saml_list + ) -> GroupSAMLSourceConnection: + """sources_group_connections_saml_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group SAML Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12894,13 +12923,8 @@ def sources_group_connections_saml_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_saml_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12908,7 +12932,7 @@ def sources_group_connections_saml_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupSAMLSourceConnectionList", + '200': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -12924,14 +12948,9 @@ def sources_group_connections_saml_list( @validate_call - def sources_group_connections_saml_list_with_http_info( + def sources_group_connections_saml_retrieve_with_http_info( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12944,23 +12963,13 @@ def sources_group_connections_saml_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedGroupSAMLSourceConnectionList]: - """sources_group_connections_saml_list + ) -> ApiResponse[GroupSAMLSourceConnection]: + """sources_group_connections_saml_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group SAML Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12983,13 +12992,8 @@ def sources_group_connections_saml_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_saml_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12997,7 +13001,7 @@ def sources_group_connections_saml_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupSAMLSourceConnectionList", + '200': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -13013,14 +13017,9 @@ def sources_group_connections_saml_list_with_http_info( @validate_call - def sources_group_connections_saml_list_without_preload_content( + def sources_group_connections_saml_retrieve_without_preload_content( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13034,22 +13033,12 @@ def sources_group_connections_saml_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_saml_list + """sources_group_connections_saml_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group SAML Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13072,13 +13061,8 @@ def sources_group_connections_saml_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_saml_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13086,7 +13070,7 @@ def sources_group_connections_saml_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupSAMLSourceConnectionList", + '200': "GroupSAMLSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -13097,14 +13081,9 @@ def sources_group_connections_saml_list_without_preload_content( return response_data.response - def _sources_group_connections_saml_list_serialize( + def _sources_group_connections_saml_retrieve_serialize( self, - group, - ordering, - page, - page_size, - search, - source__slug, + id, _request_auth, _content_type, _headers, @@ -13126,31 +13105,9 @@ def _sources_group_connections_saml_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if group is not None: - - _query_params.append(('group', group)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if source__slug is not None: - - _query_params.append(('source__slug', source__slug)) - # process the header parameters # process the form parameters # process the body parameter @@ -13172,7 +13129,7 @@ def _sources_group_connections_saml_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/saml/', + resource_path='/sources/group_connections/saml/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13189,10 +13146,10 @@ def _sources_group_connections_saml_list_serialize( @validate_call - def sources_group_connections_saml_partial_update( + def sources_group_connections_saml_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], - patched_group_saml_source_connection_request: Optional[PatchedGroupSAMLSourceConnectionRequest] = None, + group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13206,14 +13163,14 @@ def sources_group_connections_saml_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GroupSAMLSourceConnection: - """sources_group_connections_saml_partial_update + """sources_group_connections_saml_update Group-source connection Viewset :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int - :param patched_group_saml_source_connection_request: - :type patched_group_saml_source_connection_request: PatchedGroupSAMLSourceConnectionRequest + :param group_saml_source_connection_request: (required) + :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13236,9 +13193,9 @@ def sources_group_connections_saml_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_partial_update_serialize( + _param = self._sources_group_connections_saml_update_serialize( id=id, - patched_group_saml_source_connection_request=patched_group_saml_source_connection_request, + group_saml_source_connection_request=group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13262,10 +13219,10 @@ def sources_group_connections_saml_partial_update( @validate_call - def sources_group_connections_saml_partial_update_with_http_info( + def sources_group_connections_saml_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], - patched_group_saml_source_connection_request: Optional[PatchedGroupSAMLSourceConnectionRequest] = None, + group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13279,14 +13236,14 @@ def sources_group_connections_saml_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GroupSAMLSourceConnection]: - """sources_group_connections_saml_partial_update + """sources_group_connections_saml_update Group-source connection Viewset :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int - :param patched_group_saml_source_connection_request: - :type patched_group_saml_source_connection_request: PatchedGroupSAMLSourceConnectionRequest + :param group_saml_source_connection_request: (required) + :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13309,9 +13266,9 @@ def sources_group_connections_saml_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_partial_update_serialize( + _param = self._sources_group_connections_saml_update_serialize( id=id, - patched_group_saml_source_connection_request=patched_group_saml_source_connection_request, + group_saml_source_connection_request=group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13335,10 +13292,10 @@ def sources_group_connections_saml_partial_update_with_http_info( @validate_call - def sources_group_connections_saml_partial_update_without_preload_content( + def sources_group_connections_saml_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], - patched_group_saml_source_connection_request: Optional[PatchedGroupSAMLSourceConnectionRequest] = None, + group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13352,14 +13309,14 @@ def sources_group_connections_saml_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_saml_partial_update + """sources_group_connections_saml_update Group-source connection Viewset :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int - :param patched_group_saml_source_connection_request: - :type patched_group_saml_source_connection_request: PatchedGroupSAMLSourceConnectionRequest + :param group_saml_source_connection_request: (required) + :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13382,9 +13339,9 @@ def sources_group_connections_saml_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_partial_update_serialize( + _param = self._sources_group_connections_saml_update_serialize( id=id, - patched_group_saml_source_connection_request=patched_group_saml_source_connection_request, + group_saml_source_connection_request=group_saml_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13403,10 +13360,10 @@ def sources_group_connections_saml_partial_update_without_preload_content( return response_data.response - def _sources_group_connections_saml_partial_update_serialize( + def _sources_group_connections_saml_update_serialize( self, id, - patched_group_saml_source_connection_request, + group_saml_source_connection_request, _request_auth, _content_type, _headers, @@ -13434,8 +13391,8 @@ def _sources_group_connections_saml_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_group_saml_source_connection_request is not None: - _body_params = patched_group_saml_source_connection_request + if group_saml_source_connection_request is not None: + _body_params = group_saml_source_connection_request # set the HTTP header `Accept` @@ -13466,7 +13423,7 @@ def _sources_group_connections_saml_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='PUT', resource_path='/sources/group_connections/saml/{id}/', path_params=_path_params, query_params=_query_params, @@ -13484,7 +13441,7 @@ def _sources_group_connections_saml_partial_update_serialize( @validate_call - def sources_group_connections_saml_retrieve( + def sources_group_connections_saml_used_by_list( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ @@ -13499,10 +13456,10 @@ def sources_group_connections_saml_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupSAMLSourceConnection: - """sources_group_connections_saml_retrieve + ) -> List[UsedBy]: + """sources_group_connections_saml_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int @@ -13528,7 +13485,7 @@ def sources_group_connections_saml_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_retrieve_serialize( + _param = self._sources_group_connections_saml_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -13537,7 +13494,7 @@ def sources_group_connections_saml_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSAMLSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -13553,7 +13510,7 @@ def sources_group_connections_saml_retrieve( @validate_call - def sources_group_connections_saml_retrieve_with_http_info( + def sources_group_connections_saml_used_by_list_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ @@ -13568,10 +13525,10 @@ def sources_group_connections_saml_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupSAMLSourceConnection]: - """sources_group_connections_saml_retrieve + ) -> ApiResponse[List[UsedBy]]: + """sources_group_connections_saml_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int @@ -13597,7 +13554,7 @@ def sources_group_connections_saml_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_retrieve_serialize( + _param = self._sources_group_connections_saml_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -13606,7 +13563,7 @@ def sources_group_connections_saml_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSAMLSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -13622,7 +13579,7 @@ def sources_group_connections_saml_retrieve_with_http_info( @validate_call - def sources_group_connections_saml_retrieve_without_preload_content( + def sources_group_connections_saml_used_by_list_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], _request_timeout: Union[ @@ -13638,9 +13595,9 @@ def sources_group_connections_saml_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_saml_retrieve + """sources_group_connections_saml_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group SAML Source Connection. (required) :type id: int @@ -13666,7 +13623,7 @@ def sources_group_connections_saml_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_retrieve_serialize( + _param = self._sources_group_connections_saml_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -13675,7 +13632,7 @@ def sources_group_connections_saml_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSAMLSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -13686,7 +13643,7 @@ def sources_group_connections_saml_retrieve_without_preload_content( return response_data.response - def _sources_group_connections_saml_retrieve_serialize( + def _sources_group_connections_saml_used_by_list_serialize( self, id, _request_auth, @@ -13734,7 +13691,7 @@ def _sources_group_connections_saml_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/saml/{id}/', + resource_path='/sources/group_connections/saml/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13751,10 +13708,9 @@ def _sources_group_connections_saml_retrieve_serialize( @validate_call - def sources_group_connections_saml_update( + def sources_group_connections_telegram_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], - group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, + group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13767,15 +13723,13 @@ def sources_group_connections_saml_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupSAMLSourceConnection: - """sources_group_connections_saml_update + ) -> GroupTelegramSourceConnection: + """sources_group_connections_telegram_create Group-source connection Viewset - :param id: A unique integer value identifying this Group SAML Source Connection. (required) - :type id: int - :param group_saml_source_connection_request: (required) - :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest + :param group_telegram_source_connection_request: (required) + :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13798,9 +13752,8 @@ def sources_group_connections_saml_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_update_serialize( - id=id, - group_saml_source_connection_request=group_saml_source_connection_request, + _param = self._sources_group_connections_telegram_create_serialize( + group_telegram_source_connection_request=group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13808,7 +13761,7 @@ def sources_group_connections_saml_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSAMLSourceConnection", + '201': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -13824,10 +13777,9 @@ def sources_group_connections_saml_update( @validate_call - def sources_group_connections_saml_update_with_http_info( + def sources_group_connections_telegram_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], - group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, + group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13840,15 +13792,13 @@ def sources_group_connections_saml_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupSAMLSourceConnection]: - """sources_group_connections_saml_update + ) -> ApiResponse[GroupTelegramSourceConnection]: + """sources_group_connections_telegram_create Group-source connection Viewset - :param id: A unique integer value identifying this Group SAML Source Connection. (required) - :type id: int - :param group_saml_source_connection_request: (required) - :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest + :param group_telegram_source_connection_request: (required) + :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13871,9 +13821,8 @@ def sources_group_connections_saml_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_update_serialize( - id=id, - group_saml_source_connection_request=group_saml_source_connection_request, + _param = self._sources_group_connections_telegram_create_serialize( + group_telegram_source_connection_request=group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13881,7 +13830,7 @@ def sources_group_connections_saml_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSAMLSourceConnection", + '201': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -13897,10 +13846,9 @@ def sources_group_connections_saml_update_with_http_info( @validate_call - def sources_group_connections_saml_update_without_preload_content( + def sources_group_connections_telegram_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], - group_saml_source_connection_request: GroupSAMLSourceConnectionRequest, + group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13914,14 +13862,12 @@ def sources_group_connections_saml_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_saml_update + """sources_group_connections_telegram_create Group-source connection Viewset - :param id: A unique integer value identifying this Group SAML Source Connection. (required) - :type id: int - :param group_saml_source_connection_request: (required) - :type group_saml_source_connection_request: GroupSAMLSourceConnectionRequest + :param group_telegram_source_connection_request: (required) + :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13944,9 +13890,8 @@ def sources_group_connections_saml_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_update_serialize( - id=id, - group_saml_source_connection_request=group_saml_source_connection_request, + _param = self._sources_group_connections_telegram_create_serialize( + group_telegram_source_connection_request=group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13954,7 +13899,7 @@ def sources_group_connections_saml_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupSAMLSourceConnection", + '201': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -13965,10 +13910,9 @@ def sources_group_connections_saml_update_without_preload_content( return response_data.response - def _sources_group_connections_saml_update_serialize( + def _sources_group_connections_telegram_create_serialize( self, - id, - group_saml_source_connection_request, + group_telegram_source_connection_request, _request_auth, _content_type, _headers, @@ -13990,14 +13934,12 @@ def _sources_group_connections_saml_update_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - if group_saml_source_connection_request is not None: - _body_params = group_saml_source_connection_request + if group_telegram_source_connection_request is not None: + _body_params = group_telegram_source_connection_request # set the HTTP header `Accept` @@ -14028,8 +13970,8 @@ def _sources_group_connections_saml_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/sources/group_connections/saml/{id}/', + method='POST', + resource_path='/sources/group_connections/telegram/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14046,9 +13988,9 @@ def _sources_group_connections_saml_update_serialize( @validate_call - def sources_group_connections_saml_used_by_list( + def sources_group_connections_telegram_destroy( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14061,12 +14003,12 @@ def sources_group_connections_saml_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_group_connections_saml_used_by_list + ) -> None: + """sources_group_connections_telegram_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group SAML Source Connection. (required) + :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -14090,7 +14032,7 @@ def sources_group_connections_saml_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_used_by_list_serialize( + _param = self._sources_group_connections_telegram_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -14099,7 +14041,7 @@ def sources_group_connections_saml_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -14115,9 +14057,9 @@ def sources_group_connections_saml_used_by_list( @validate_call - def sources_group_connections_saml_used_by_list_with_http_info( + def sources_group_connections_telegram_destroy_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14130,12 +14072,12 @@ def sources_group_connections_saml_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_group_connections_saml_used_by_list + ) -> ApiResponse[None]: + """sources_group_connections_telegram_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group SAML Source Connection. (required) + :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -14159,7 +14101,7 @@ def sources_group_connections_saml_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_used_by_list_serialize( + _param = self._sources_group_connections_telegram_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -14168,7 +14110,7 @@ def sources_group_connections_saml_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -14184,9 +14126,9 @@ def sources_group_connections_saml_used_by_list_with_http_info( @validate_call - def sources_group_connections_saml_used_by_list_without_preload_content( + def sources_group_connections_telegram_destroy_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group SAML Source Connection.")], + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14200,11 +14142,11 @@ def sources_group_connections_saml_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_saml_used_by_list + """sources_group_connections_telegram_destroy - Get a list of all objects that use this object + Group-source connection Viewset - :param id: A unique integer value identifying this Group SAML Source Connection. (required) + :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -14228,7 +14170,7 @@ def sources_group_connections_saml_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_saml_used_by_list_serialize( + _param = self._sources_group_connections_telegram_destroy_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -14237,7 +14179,7 @@ def sources_group_connections_saml_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '204': None, '400': "ValidationError", '403': "GenericError", } @@ -14248,7 +14190,7 @@ def sources_group_connections_saml_used_by_list_without_preload_content( return response_data.response - def _sources_group_connections_saml_used_by_list_serialize( + def _sources_group_connections_telegram_destroy_serialize( self, id, _request_auth, @@ -14295,8 +14237,8 @@ def _sources_group_connections_saml_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/sources/group_connections/saml/{id}/used_by/', + method='DELETE', + resource_path='/sources/group_connections/telegram/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14313,9 +14255,14 @@ def _sources_group_connections_saml_used_by_list_serialize( @validate_call - def sources_group_connections_telegram_create( + def sources_group_connections_telegram_list( self, - group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14328,13 +14275,23 @@ def sources_group_connections_telegram_create( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupTelegramSourceConnection: - """sources_group_connections_telegram_create + ) -> PaginatedGroupTelegramSourceConnectionList: + """sources_group_connections_telegram_list Group-source connection Viewset - :param group_telegram_source_connection_request: (required) - :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14357,8 +14314,13 @@ def sources_group_connections_telegram_create( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_create_serialize( - group_telegram_source_connection_request=group_telegram_source_connection_request, + _param = self._sources_group_connections_telegram_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14366,7 +14328,7 @@ def sources_group_connections_telegram_create( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupTelegramSourceConnection", + '200': "PaginatedGroupTelegramSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -14382,9 +14344,14 @@ def sources_group_connections_telegram_create( @validate_call - def sources_group_connections_telegram_create_with_http_info( + def sources_group_connections_telegram_list_with_http_info( self, - group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14397,13 +14364,23 @@ def sources_group_connections_telegram_create_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupTelegramSourceConnection]: - """sources_group_connections_telegram_create + ) -> ApiResponse[PaginatedGroupTelegramSourceConnectionList]: + """sources_group_connections_telegram_list Group-source connection Viewset - :param group_telegram_source_connection_request: (required) - :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14426,8 +14403,13 @@ def sources_group_connections_telegram_create_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_create_serialize( - group_telegram_source_connection_request=group_telegram_source_connection_request, + _param = self._sources_group_connections_telegram_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14435,7 +14417,7 @@ def sources_group_connections_telegram_create_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupTelegramSourceConnection", + '200': "PaginatedGroupTelegramSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -14451,9 +14433,14 @@ def sources_group_connections_telegram_create_with_http_info( @validate_call - def sources_group_connections_telegram_create_without_preload_content( + def sources_group_connections_telegram_list_without_preload_content( self, - group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, + group: Optional[UUID] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + source__slug: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14467,12 +14454,22 @@ def sources_group_connections_telegram_create_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_telegram_create + """sources_group_connections_telegram_list Group-source connection Viewset - :param group_telegram_source_connection_request: (required) - :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest + :param group: + :type group: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param source__slug: + :type source__slug: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14495,8 +14492,13 @@ def sources_group_connections_telegram_create_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_create_serialize( - group_telegram_source_connection_request=group_telegram_source_connection_request, + _param = self._sources_group_connections_telegram_list_serialize( + group=group, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + source__slug=source__slug, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14504,7 +14506,7 @@ def sources_group_connections_telegram_create_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "GroupTelegramSourceConnection", + '200': "PaginatedGroupTelegramSourceConnectionList", '400': "ValidationError", '403': "GenericError", } @@ -14515,9 +14517,14 @@ def sources_group_connections_telegram_create_without_preload_content( return response_data.response - def _sources_group_connections_telegram_create_serialize( + def _sources_group_connections_telegram_list_serialize( self, - group_telegram_source_connection_request, + group, + ordering, + page, + page_size, + search, + source__slug, _request_auth, _content_type, _headers, @@ -14540,11 +14547,33 @@ def _sources_group_connections_telegram_create_serialize( # process the path parameters # process the query parameters + if group is not None: + + _query_params.append(('group', group)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + if source__slug is not None: + + _query_params.append(('source__slug', source__slug)) + # process the header parameters # process the form parameters # process the body parameter - if group_telegram_source_connection_request is not None: - _body_params = group_telegram_source_connection_request # set the HTTP header `Accept` @@ -14555,19 +14584,6 @@ def _sources_group_connections_telegram_create_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -14575,7 +14591,7 @@ def _sources_group_connections_telegram_create_serialize( ] return self.api_client.param_serialize( - method='POST', + method='GET', resource_path='/sources/group_connections/telegram/', path_params=_path_params, query_params=_query_params, @@ -14593,9 +14609,10 @@ def _sources_group_connections_telegram_create_serialize( @validate_call - def sources_group_connections_telegram_destroy( + def sources_group_connections_telegram_partial_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], + patched_group_telegram_source_connection_request: Optional[PatchedGroupTelegramSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14608,13 +14625,15 @@ def sources_group_connections_telegram_destroy( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """sources_group_connections_telegram_destroy + ) -> GroupTelegramSourceConnection: + """sources_group_connections_telegram_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int + :param patched_group_telegram_source_connection_request: + :type patched_group_telegram_source_connection_request: PatchedGroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14637,8 +14656,9 @@ def sources_group_connections_telegram_destroy( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_destroy_serialize( + _param = self._sources_group_connections_telegram_partial_update_serialize( id=id, + patched_group_telegram_source_connection_request=patched_group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14646,7 +14666,7 @@ def sources_group_connections_telegram_destroy( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -14662,9 +14682,10 @@ def sources_group_connections_telegram_destroy( @validate_call - def sources_group_connections_telegram_destroy_with_http_info( + def sources_group_connections_telegram_partial_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], + patched_group_telegram_source_connection_request: Optional[PatchedGroupTelegramSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14677,13 +14698,15 @@ def sources_group_connections_telegram_destroy_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """sources_group_connections_telegram_destroy + ) -> ApiResponse[GroupTelegramSourceConnection]: + """sources_group_connections_telegram_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int + :param patched_group_telegram_source_connection_request: + :type patched_group_telegram_source_connection_request: PatchedGroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14706,8 +14729,9 @@ def sources_group_connections_telegram_destroy_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_destroy_serialize( + _param = self._sources_group_connections_telegram_partial_update_serialize( id=id, + patched_group_telegram_source_connection_request=patched_group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14715,7 +14739,7 @@ def sources_group_connections_telegram_destroy_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -14731,9 +14755,10 @@ def sources_group_connections_telegram_destroy_with_http_info( @validate_call - def sources_group_connections_telegram_destroy_without_preload_content( + def sources_group_connections_telegram_partial_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], + patched_group_telegram_source_connection_request: Optional[PatchedGroupTelegramSourceConnectionRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14747,12 +14772,14 @@ def sources_group_connections_telegram_destroy_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_telegram_destroy + """sources_group_connections_telegram_partial_update Group-source connection Viewset :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int + :param patched_group_telegram_source_connection_request: + :type patched_group_telegram_source_connection_request: PatchedGroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14775,8 +14802,9 @@ def sources_group_connections_telegram_destroy_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_destroy_serialize( + _param = self._sources_group_connections_telegram_partial_update_serialize( id=id, + patched_group_telegram_source_connection_request=patched_group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14784,7 +14812,7 @@ def sources_group_connections_telegram_destroy_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -14795,9 +14823,10 @@ def sources_group_connections_telegram_destroy_without_preload_content( return response_data.response - def _sources_group_connections_telegram_destroy_serialize( + def _sources_group_connections_telegram_partial_update_serialize( self, id, + patched_group_telegram_source_connection_request, _request_auth, _content_type, _headers, @@ -14825,6 +14854,8 @@ def _sources_group_connections_telegram_destroy_serialize( # process the header parameters # process the form parameters # process the body parameter + if patched_group_telegram_source_connection_request is not None: + _body_params = patched_group_telegram_source_connection_request # set the HTTP header `Accept` @@ -14835,6 +14866,19 @@ def _sources_group_connections_telegram_destroy_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -14842,7 +14886,7 @@ def _sources_group_connections_telegram_destroy_serialize( ] return self.api_client.param_serialize( - method='DELETE', + method='PATCH', resource_path='/sources/group_connections/telegram/{id}/', path_params=_path_params, query_params=_query_params, @@ -14860,14 +14904,9 @@ def _sources_group_connections_telegram_destroy_serialize( @validate_call - def sources_group_connections_telegram_list( + def sources_group_connections_telegram_retrieve( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14880,23 +14919,13 @@ def sources_group_connections_telegram_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PaginatedGroupTelegramSourceConnectionList: - """sources_group_connections_telegram_list + ) -> GroupTelegramSourceConnection: + """sources_group_connections_telegram_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Telegram Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14919,13 +14948,8 @@ def sources_group_connections_telegram_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_telegram_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14933,7 +14957,7 @@ def sources_group_connections_telegram_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupTelegramSourceConnectionList", + '200': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -14949,14 +14973,9 @@ def sources_group_connections_telegram_list( @validate_call - def sources_group_connections_telegram_list_with_http_info( + def sources_group_connections_telegram_retrieve_with_http_info( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14969,23 +14988,13 @@ def sources_group_connections_telegram_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PaginatedGroupTelegramSourceConnectionList]: - """sources_group_connections_telegram_list + ) -> ApiResponse[GroupTelegramSourceConnection]: + """sources_group_connections_telegram_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Telegram Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15008,13 +15017,8 @@ def sources_group_connections_telegram_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_telegram_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15022,7 +15026,7 @@ def sources_group_connections_telegram_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupTelegramSourceConnectionList", + '200': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -15038,14 +15042,9 @@ def sources_group_connections_telegram_list_with_http_info( @validate_call - def sources_group_connections_telegram_list_without_preload_content( + def sources_group_connections_telegram_retrieve_without_preload_content( self, - group: Optional[UUID] = None, - ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, - page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, - page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, - search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, - source__slug: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15059,22 +15058,12 @@ def sources_group_connections_telegram_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_telegram_list + """sources_group_connections_telegram_retrieve Group-source connection Viewset - :param group: - :type group: str - :param ordering: Which field to use when ordering the results. - :type ordering: str - :param page: A page number within the paginated result set. - :type page: int - :param page_size: Number of results to return per page. - :type page_size: int - :param search: A search term. - :type search: str - :param source__slug: - :type source__slug: str + :param id: A unique integer value identifying this Group Telegram Source Connection. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15097,13 +15086,8 @@ def sources_group_connections_telegram_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_list_serialize( - group=group, - ordering=ordering, - page=page, - page_size=page_size, - search=search, - source__slug=source__slug, + _param = self._sources_group_connections_telegram_retrieve_serialize( + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15111,7 +15095,7 @@ def sources_group_connections_telegram_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PaginatedGroupTelegramSourceConnectionList", + '200': "GroupTelegramSourceConnection", '400': "ValidationError", '403': "GenericError", } @@ -15122,14 +15106,9 @@ def sources_group_connections_telegram_list_without_preload_content( return response_data.response - def _sources_group_connections_telegram_list_serialize( + def _sources_group_connections_telegram_retrieve_serialize( self, - group, - ordering, - page, - page_size, - search, - source__slug, + id, _request_auth, _content_type, _headers, @@ -15151,31 +15130,9 @@ def _sources_group_connections_telegram_list_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if group is not None: - - _query_params.append(('group', group)) - - if ordering is not None: - - _query_params.append(('ordering', ordering)) - - if page is not None: - - _query_params.append(('page', page)) - - if page_size is not None: - - _query_params.append(('page_size', page_size)) - - if search is not None: - - _query_params.append(('search', search)) - - if source__slug is not None: - - _query_params.append(('source__slug', source__slug)) - # process the header parameters # process the form parameters # process the body parameter @@ -15197,7 +15154,7 @@ def _sources_group_connections_telegram_list_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/telegram/', + resource_path='/sources/group_connections/telegram/{id}/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15214,10 +15171,10 @@ def _sources_group_connections_telegram_list_serialize( @validate_call - def sources_group_connections_telegram_partial_update( + def sources_group_connections_telegram_update( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - patched_group_telegram_source_connection_request: Optional[PatchedGroupTelegramSourceConnectionRequest] = None, + group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15231,14 +15188,14 @@ def sources_group_connections_telegram_partial_update( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> GroupTelegramSourceConnection: - """sources_group_connections_telegram_partial_update + """sources_group_connections_telegram_update Group-source connection Viewset :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int - :param patched_group_telegram_source_connection_request: - :type patched_group_telegram_source_connection_request: PatchedGroupTelegramSourceConnectionRequest + :param group_telegram_source_connection_request: (required) + :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15261,9 +15218,9 @@ def sources_group_connections_telegram_partial_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_partial_update_serialize( + _param = self._sources_group_connections_telegram_update_serialize( id=id, - patched_group_telegram_source_connection_request=patched_group_telegram_source_connection_request, + group_telegram_source_connection_request=group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15287,10 +15244,10 @@ def sources_group_connections_telegram_partial_update( @validate_call - def sources_group_connections_telegram_partial_update_with_http_info( + def sources_group_connections_telegram_update_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - patched_group_telegram_source_connection_request: Optional[PatchedGroupTelegramSourceConnectionRequest] = None, + group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15304,14 +15261,14 @@ def sources_group_connections_telegram_partial_update_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[GroupTelegramSourceConnection]: - """sources_group_connections_telegram_partial_update + """sources_group_connections_telegram_update Group-source connection Viewset :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int - :param patched_group_telegram_source_connection_request: - :type patched_group_telegram_source_connection_request: PatchedGroupTelegramSourceConnectionRequest + :param group_telegram_source_connection_request: (required) + :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15334,9 +15291,9 @@ def sources_group_connections_telegram_partial_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_partial_update_serialize( + _param = self._sources_group_connections_telegram_update_serialize( id=id, - patched_group_telegram_source_connection_request=patched_group_telegram_source_connection_request, + group_telegram_source_connection_request=group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15360,10 +15317,10 @@ def sources_group_connections_telegram_partial_update_with_http_info( @validate_call - def sources_group_connections_telegram_partial_update_without_preload_content( + def sources_group_connections_telegram_update_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - patched_group_telegram_source_connection_request: Optional[PatchedGroupTelegramSourceConnectionRequest] = None, + group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15377,14 +15334,14 @@ def sources_group_connections_telegram_partial_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_telegram_partial_update + """sources_group_connections_telegram_update Group-source connection Viewset :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int - :param patched_group_telegram_source_connection_request: - :type patched_group_telegram_source_connection_request: PatchedGroupTelegramSourceConnectionRequest + :param group_telegram_source_connection_request: (required) + :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15407,9 +15364,9 @@ def sources_group_connections_telegram_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_partial_update_serialize( + _param = self._sources_group_connections_telegram_update_serialize( id=id, - patched_group_telegram_source_connection_request=patched_group_telegram_source_connection_request, + group_telegram_source_connection_request=group_telegram_source_connection_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15428,10 +15385,10 @@ def sources_group_connections_telegram_partial_update_without_preload_content( return response_data.response - def _sources_group_connections_telegram_partial_update_serialize( + def _sources_group_connections_telegram_update_serialize( self, id, - patched_group_telegram_source_connection_request, + group_telegram_source_connection_request, _request_auth, _content_type, _headers, @@ -15459,8 +15416,8 @@ def _sources_group_connections_telegram_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_group_telegram_source_connection_request is not None: - _body_params = patched_group_telegram_source_connection_request + if group_telegram_source_connection_request is not None: + _body_params = group_telegram_source_connection_request # set the HTTP header `Accept` @@ -15491,7 +15448,7 @@ def _sources_group_connections_telegram_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='PUT', resource_path='/sources/group_connections/telegram/{id}/', path_params=_path_params, query_params=_query_params, @@ -15509,7 +15466,7 @@ def _sources_group_connections_telegram_partial_update_serialize( @validate_call - def sources_group_connections_telegram_retrieve( + def sources_group_connections_telegram_used_by_list( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ @@ -15524,10 +15481,10 @@ def sources_group_connections_telegram_retrieve( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupTelegramSourceConnection: - """sources_group_connections_telegram_retrieve + ) -> List[UsedBy]: + """sources_group_connections_telegram_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int @@ -15553,7 +15510,7 @@ def sources_group_connections_telegram_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_retrieve_serialize( + _param = self._sources_group_connections_telegram_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -15562,7 +15519,7 @@ def sources_group_connections_telegram_retrieve( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupTelegramSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -15578,7 +15535,7 @@ def sources_group_connections_telegram_retrieve( @validate_call - def sources_group_connections_telegram_retrieve_with_http_info( + def sources_group_connections_telegram_used_by_list_with_http_info( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ @@ -15593,10 +15550,10 @@ def sources_group_connections_telegram_retrieve_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupTelegramSourceConnection]: - """sources_group_connections_telegram_retrieve + ) -> ApiResponse[List[UsedBy]]: + """sources_group_connections_telegram_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int @@ -15622,7 +15579,7 @@ def sources_group_connections_telegram_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_retrieve_serialize( + _param = self._sources_group_connections_telegram_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -15631,7 +15588,7 @@ def sources_group_connections_telegram_retrieve_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupTelegramSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -15647,7 +15604,7 @@ def sources_group_connections_telegram_retrieve_with_http_info( @validate_call - def sources_group_connections_telegram_retrieve_without_preload_content( + def sources_group_connections_telegram_used_by_list_without_preload_content( self, id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], _request_timeout: Union[ @@ -15663,9 +15620,9 @@ def sources_group_connections_telegram_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_telegram_retrieve + """sources_group_connections_telegram_used_by_list - Group-source connection Viewset + Get a list of all objects that use this object :param id: A unique integer value identifying this Group Telegram Source Connection. (required) :type id: int @@ -15691,7 +15648,7 @@ def sources_group_connections_telegram_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_retrieve_serialize( + _param = self._sources_group_connections_telegram_used_by_list_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, @@ -15700,7 +15657,7 @@ def sources_group_connections_telegram_retrieve_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupTelegramSourceConnection", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -15711,7 +15668,7 @@ def sources_group_connections_telegram_retrieve_without_preload_content( return response_data.response - def _sources_group_connections_telegram_retrieve_serialize( + def _sources_group_connections_telegram_used_by_list_serialize( self, id, _request_auth, @@ -15759,7 +15716,7 @@ def _sources_group_connections_telegram_retrieve_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/sources/group_connections/telegram/{id}/', + resource_path='/sources/group_connections/telegram/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15776,10 +15733,9 @@ def _sources_group_connections_telegram_retrieve_serialize( @validate_call - def sources_group_connections_telegram_update( + def sources_kerberos_create( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, + kerberos_source_request: KerberosSourceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15792,15 +15748,13 @@ def sources_group_connections_telegram_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GroupTelegramSourceConnection: - """sources_group_connections_telegram_update + ) -> KerberosSource: + """sources_kerberos_create - Group-source connection Viewset + Kerberos Source Viewset - :param id: A unique integer value identifying this Group Telegram Source Connection. (required) - :type id: int - :param group_telegram_source_connection_request: (required) - :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest + :param kerberos_source_request: (required) + :type kerberos_source_request: KerberosSourceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15823,9 +15777,8 @@ def sources_group_connections_telegram_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_update_serialize( - id=id, - group_telegram_source_connection_request=group_telegram_source_connection_request, + _param = self._sources_kerberos_create_serialize( + kerberos_source_request=kerberos_source_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15833,7 +15786,7 @@ def sources_group_connections_telegram_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupTelegramSourceConnection", + '201': "KerberosSource", '400': "ValidationError", '403': "GenericError", } @@ -15849,10 +15802,9 @@ def sources_group_connections_telegram_update( @validate_call - def sources_group_connections_telegram_update_with_http_info( + def sources_kerberos_create_with_http_info( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, + kerberos_source_request: KerberosSourceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15865,15 +15817,13 @@ def sources_group_connections_telegram_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GroupTelegramSourceConnection]: - """sources_group_connections_telegram_update + ) -> ApiResponse[KerberosSource]: + """sources_kerberos_create - Group-source connection Viewset + Kerberos Source Viewset - :param id: A unique integer value identifying this Group Telegram Source Connection. (required) - :type id: int - :param group_telegram_source_connection_request: (required) - :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest + :param kerberos_source_request: (required) + :type kerberos_source_request: KerberosSourceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15896,9 +15846,8 @@ def sources_group_connections_telegram_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_group_connections_telegram_update_serialize( - id=id, - group_telegram_source_connection_request=group_telegram_source_connection_request, + _param = self._sources_kerberos_create_serialize( + kerberos_source_request=kerberos_source_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15906,7 +15855,7 @@ def sources_group_connections_telegram_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupTelegramSourceConnection", + '201': "KerberosSource", '400': "ValidationError", '403': "GenericError", } @@ -15922,10 +15871,9 @@ def sources_group_connections_telegram_update_with_http_info( @validate_call - def sources_group_connections_telegram_update_without_preload_content( + def sources_kerberos_create_without_preload_content( self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest, + kerberos_source_request: KerberosSourceRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15939,565 +15887,12 @@ def sources_group_connections_telegram_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_group_connections_telegram_update + """sources_kerberos_create - Group-source connection Viewset + Kerberos Source Viewset - :param id: A unique integer value identifying this Group Telegram Source Connection. (required) - :type id: int - :param group_telegram_source_connection_request: (required) - :type group_telegram_source_connection_request: GroupTelegramSourceConnectionRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._sources_group_connections_telegram_update_serialize( - id=id, - group_telegram_source_connection_request=group_telegram_source_connection_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "GroupTelegramSourceConnection", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _sources_group_connections_telegram_update_serialize( - self, - id, - group_telegram_source_connection_request, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - if group_telegram_source_connection_request is not None: - _body_params = group_telegram_source_connection_request - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='PUT', - resource_path='/sources/group_connections/telegram/{id}/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def sources_group_connections_telegram_used_by_list( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_group_connections_telegram_used_by_list - - Get a list of all objects that use this object - - :param id: A unique integer value identifying this Group Telegram Source Connection. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._sources_group_connections_telegram_used_by_list_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def sources_group_connections_telegram_used_by_list_with_http_info( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_group_connections_telegram_used_by_list - - Get a list of all objects that use this object - - :param id: A unique integer value identifying this Group Telegram Source Connection. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._sources_group_connections_telegram_used_by_list_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def sources_group_connections_telegram_used_by_list_without_preload_content( - self, - id: Annotated[StrictInt, Field(description="A unique integer value identifying this Group Telegram Source Connection.")], - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """sources_group_connections_telegram_used_by_list - - Get a list of all objects that use this object - - :param id: A unique integer value identifying this Group Telegram Source Connection. (required) - :type id: int - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._sources_group_connections_telegram_used_by_list_serialize( - id=id, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _sources_group_connections_telegram_used_by_list_serialize( - self, - id, - _request_auth, - _content_type, - _headers, - _host_index, - ) -> RequestSerialized: - - _host = None - - _collection_formats: Dict[str, str] = { - } - - _path_params: Dict[str, str] = {} - _query_params: List[Tuple[str, str]] = [] - _header_params: Dict[str, Optional[str]] = _headers or {} - _form_params: List[Tuple[str, str]] = [] - _files: Dict[ - str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] - ] = {} - _body_params: Optional[bytes] = None - - # process the path parameters - if id is not None: - _path_params['id'] = id - # process the query parameters - # process the header parameters - # process the form parameters - # process the body parameter - - - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - - - # authentication setting - _auth_settings: List[str] = [ - 'authentik' - ] - - return self.api_client.param_serialize( - method='GET', - resource_path='/sources/group_connections/telegram/{id}/used_by/', - path_params=_path_params, - query_params=_query_params, - header_params=_header_params, - body=_body_params, - post_params=_form_params, - files=_files, - auth_settings=_auth_settings, - collection_formats=_collection_formats, - _host=_host, - _request_auth=_request_auth - ) - - - - - @validate_call - def sources_kerberos_create( - self, - kerberos_source_request: KerberosSourceRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> KerberosSource: - """sources_kerberos_create - - Kerberos Source Viewset - - :param kerberos_source_request: (required) - :type kerberos_source_request: KerberosSourceRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._sources_kerberos_create_serialize( - kerberos_source_request=kerberos_source_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "KerberosSource", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ).data - - - @validate_call - def sources_kerberos_create_with_http_info( - self, - kerberos_source_request: KerberosSourceRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[KerberosSource]: - """sources_kerberos_create - - Kerberos Source Viewset - - :param kerberos_source_request: (required) - :type kerberos_source_request: KerberosSourceRequest - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :type _request_timeout: int, tuple(int, int), optional - :param _request_auth: set to override the auth_settings for an a single - request; this effectively ignores the - authentication in the spec for a single request. - :type _request_auth: dict, optional - :param _content_type: force content-type for the request. - :type _content_type: str, Optional - :param _headers: set to override the headers for a single - request; this effectively ignores the headers - in the spec for a single request. - :type _headers: dict, optional - :param _host_index: set to override the host_index for a single - request; this effectively ignores the host_index - in the spec for a single request. - :type _host_index: int, optional - :return: Returns the result object. - """ # noqa: E501 - - _param = self._sources_kerberos_create_serialize( - kerberos_source_request=kerberos_source_request, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '201': "KerberosSource", - '400': "ValidationError", - '403': "GenericError", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - response_data.read() - return self.api_client.response_deserialize( - response_data=response_data, - response_types_map=_response_types_map, - ) - - - @validate_call - def sources_kerberos_create_without_preload_content( - self, - kerberos_source_request: KerberosSourceRequest, - _request_timeout: Union[ - None, - Annotated[StrictFloat, Field(gt=0)], - Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] - ] = None, - _request_auth: Optional[Dict[StrictStr, Any]] = None, - _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RESTResponseType: - """sources_kerberos_create - - Kerberos Source Viewset - - :param kerberos_source_request: (required) - :type kerberos_source_request: KerberosSourceRequest + :param kerberos_source_request: (required) + :type kerberos_source_request: KerberosSourceRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34927,9 +34322,292 @@ def sources_scim_users_partial_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_partial_update_serialize( + _param = self._sources_scim_users_partial_update_serialize( + id=id, + patched_scim_source_user_request=patched_scim_source_user_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SCIMSourceUser", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _sources_scim_users_partial_update_serialize( + self, + id, + patched_scim_source_user_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if patched_scim_source_user_request is not None: + _body_params = patched_scim_source_user_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/sources/scim_users/{id}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def sources_scim_users_retrieve( + self, + id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SCIMSourceUser: + """sources_scim_users_retrieve + + SCIMSourceUser Viewset + + :param id: A unique value identifying this scim source user. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sources_scim_users_retrieve_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SCIMSourceUser", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def sources_scim_users_retrieve_with_http_info( + self, + id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SCIMSourceUser]: + """sources_scim_users_retrieve + + SCIMSourceUser Viewset + + :param id: A unique value identifying this scim source user. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sources_scim_users_retrieve_serialize( + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SCIMSourceUser", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def sources_scim_users_retrieve_without_preload_content( + self, + id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """sources_scim_users_retrieve + + SCIMSourceUser Viewset + + :param id: A unique value identifying this scim source user. (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sources_scim_users_retrieve_serialize( id=id, - patched_scim_source_user_request=patched_scim_source_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34948,10 +34626,9 @@ def sources_scim_users_partial_update_without_preload_content( return response_data.response - def _sources_scim_users_partial_update_serialize( + def _sources_scim_users_retrieve_serialize( self, id, - patched_scim_source_user_request, _request_auth, _content_type, _headers, @@ -34979,8 +34656,6 @@ def _sources_scim_users_partial_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if patched_scim_source_user_request is not None: - _body_params = patched_scim_source_user_request # set the HTTP header `Accept` @@ -34991,19 +34666,6 @@ def _sources_scim_users_partial_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -35011,7 +34673,7 @@ def _sources_scim_users_partial_update_serialize( ] return self.api_client.param_serialize( - method='PATCH', + method='GET', resource_path='/sources/scim_users/{id}/', path_params=_path_params, query_params=_query_params, @@ -35029,9 +34691,10 @@ def _sources_scim_users_partial_update_serialize( @validate_call - def sources_scim_users_retrieve( + def sources_scim_users_update( self, id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + scim_source_user_request: SCIMSourceUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35045,12 +34708,14 @@ def sources_scim_users_retrieve( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> SCIMSourceUser: - """sources_scim_users_retrieve + """sources_scim_users_update SCIMSourceUser Viewset :param id: A unique value identifying this scim source user. (required) :type id: str + :param scim_source_user_request: (required) + :type scim_source_user_request: SCIMSourceUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35073,8 +34738,9 @@ def sources_scim_users_retrieve( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_retrieve_serialize( + _param = self._sources_scim_users_update_serialize( id=id, + scim_source_user_request=scim_source_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35098,9 +34764,10 @@ def sources_scim_users_retrieve( @validate_call - def sources_scim_users_retrieve_with_http_info( + def sources_scim_users_update_with_http_info( self, id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + scim_source_user_request: SCIMSourceUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35114,12 +34781,14 @@ def sources_scim_users_retrieve_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[SCIMSourceUser]: - """sources_scim_users_retrieve + """sources_scim_users_update SCIMSourceUser Viewset :param id: A unique value identifying this scim source user. (required) :type id: str + :param scim_source_user_request: (required) + :type scim_source_user_request: SCIMSourceUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35142,8 +34811,9 @@ def sources_scim_users_retrieve_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_retrieve_serialize( + _param = self._sources_scim_users_update_serialize( id=id, + scim_source_user_request=scim_source_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35167,9 +34837,10 @@ def sources_scim_users_retrieve_with_http_info( @validate_call - def sources_scim_users_retrieve_without_preload_content( + def sources_scim_users_update_without_preload_content( self, id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + scim_source_user_request: SCIMSourceUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35183,12 +34854,14 @@ def sources_scim_users_retrieve_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_scim_users_retrieve + """sources_scim_users_update SCIMSourceUser Viewset :param id: A unique value identifying this scim source user. (required) :type id: str + :param scim_source_user_request: (required) + :type scim_source_user_request: SCIMSourceUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35211,8 +34884,9 @@ def sources_scim_users_retrieve_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_retrieve_serialize( + _param = self._sources_scim_users_update_serialize( id=id, + scim_source_user_request=scim_source_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35231,9 +34905,10 @@ def sources_scim_users_retrieve_without_preload_content( return response_data.response - def _sources_scim_users_retrieve_serialize( + def _sources_scim_users_update_serialize( self, id, + scim_source_user_request, _request_auth, _content_type, _headers, @@ -35261,6 +34936,8 @@ def _sources_scim_users_retrieve_serialize( # process the header parameters # process the form parameters # process the body parameter + if scim_source_user_request is not None: + _body_params = scim_source_user_request # set the HTTP header `Accept` @@ -35271,6 +34948,19 @@ def _sources_scim_users_retrieve_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -35278,7 +34968,7 @@ def _sources_scim_users_retrieve_serialize( ] return self.api_client.param_serialize( - method='GET', + method='PUT', resource_path='/sources/scim_users/{id}/', path_params=_path_params, query_params=_query_params, @@ -35296,10 +34986,9 @@ def _sources_scim_users_retrieve_serialize( @validate_call - def sources_scim_users_update( + def sources_scim_users_used_by_list( self, id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], - scim_source_user_request: SCIMSourceUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35312,15 +35001,13 @@ def sources_scim_users_update( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SCIMSourceUser: - """sources_scim_users_update + ) -> List[UsedBy]: + """sources_scim_users_used_by_list - SCIMSourceUser Viewset + Get a list of all objects that use this object :param id: A unique value identifying this scim source user. (required) :type id: str - :param scim_source_user_request: (required) - :type scim_source_user_request: SCIMSourceUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35343,9 +35030,8 @@ def sources_scim_users_update( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_update_serialize( + _param = self._sources_scim_users_used_by_list_serialize( id=id, - scim_source_user_request=scim_source_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35353,7 +35039,7 @@ def sources_scim_users_update( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SCIMSourceUser", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -35369,10 +35055,9 @@ def sources_scim_users_update( @validate_call - def sources_scim_users_update_with_http_info( + def sources_scim_users_used_by_list_with_http_info( self, id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], - scim_source_user_request: SCIMSourceUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35385,15 +35070,13 @@ def sources_scim_users_update_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SCIMSourceUser]: - """sources_scim_users_update + ) -> ApiResponse[List[UsedBy]]: + """sources_scim_users_used_by_list - SCIMSourceUser Viewset + Get a list of all objects that use this object :param id: A unique value identifying this scim source user. (required) :type id: str - :param scim_source_user_request: (required) - :type scim_source_user_request: SCIMSourceUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35416,9 +35099,8 @@ def sources_scim_users_update_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_update_serialize( + _param = self._sources_scim_users_used_by_list_serialize( id=id, - scim_source_user_request=scim_source_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35426,7 +35108,7 @@ def sources_scim_users_update_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SCIMSourceUser", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -35442,10 +35124,9 @@ def sources_scim_users_update_with_http_info( @validate_call - def sources_scim_users_update_without_preload_content( + def sources_scim_users_used_by_list_without_preload_content( self, id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], - scim_source_user_request: SCIMSourceUserRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35459,14 +35140,12 @@ def sources_scim_users_update_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_scim_users_update + """sources_scim_users_used_by_list - SCIMSourceUser Viewset + Get a list of all objects that use this object :param id: A unique value identifying this scim source user. (required) :type id: str - :param scim_source_user_request: (required) - :type scim_source_user_request: SCIMSourceUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35489,9 +35168,8 @@ def sources_scim_users_update_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_update_serialize( + _param = self._sources_scim_users_used_by_list_serialize( id=id, - scim_source_user_request=scim_source_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35499,7 +35177,7 @@ def sources_scim_users_update_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SCIMSourceUser", + '200': "List[UsedBy]", '400': "ValidationError", '403': "GenericError", } @@ -35510,10 +35188,9 @@ def sources_scim_users_update_without_preload_content( return response_data.response - def _sources_scim_users_update_serialize( + def _sources_scim_users_used_by_list_serialize( self, id, - scim_source_user_request, _request_auth, _content_type, _headers, @@ -35541,8 +35218,6 @@ def _sources_scim_users_update_serialize( # process the header parameters # process the form parameters # process the body parameter - if scim_source_user_request is not None: - _body_params = scim_source_user_request # set the HTTP header `Accept` @@ -35553,19 +35228,6 @@ def _sources_scim_users_update_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -35573,8 +35235,8 @@ def _sources_scim_users_update_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/sources/scim_users/{id}/', + method='GET', + resource_path='/sources/scim_users/{id}/used_by/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -35591,9 +35253,10 @@ def _sources_scim_users_update_serialize( @validate_call - def sources_scim_users_used_by_list( + def sources_telegram_connect_user_create( self, - id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + slug: StrictStr, + telegram_auth_request: TelegramAuthRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35606,13 +35269,15 @@ def sources_scim_users_used_by_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[UsedBy]: - """sources_scim_users_used_by_list + ) -> UserTelegramSourceConnection: + """sources_telegram_connect_user_create - Get a list of all objects that use this object + Mixin to add a used_by endpoint to return a list of all objects using this object - :param id: A unique value identifying this scim source user. (required) - :type id: str + :param slug: (required) + :type slug: str + :param telegram_auth_request: (required) + :type telegram_auth_request: TelegramAuthRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35635,8 +35300,9 @@ def sources_scim_users_used_by_list( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_used_by_list_serialize( - id=id, + _param = self._sources_telegram_connect_user_create_serialize( + slug=slug, + telegram_auth_request=telegram_auth_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35644,9 +35310,9 @@ def sources_scim_users_used_by_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "UserTelegramSourceConnection", + '403': None, '400': "ValidationError", - '403': "GenericError", } response_data = self.api_client.call_api( *_param, @@ -35660,9 +35326,10 @@ def sources_scim_users_used_by_list( @validate_call - def sources_scim_users_used_by_list_with_http_info( + def sources_telegram_connect_user_create_with_http_info( self, - id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + slug: StrictStr, + telegram_auth_request: TelegramAuthRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35675,13 +35342,15 @@ def sources_scim_users_used_by_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[UsedBy]]: - """sources_scim_users_used_by_list + ) -> ApiResponse[UserTelegramSourceConnection]: + """sources_telegram_connect_user_create - Get a list of all objects that use this object + Mixin to add a used_by endpoint to return a list of all objects using this object - :param id: A unique value identifying this scim source user. (required) - :type id: str + :param slug: (required) + :type slug: str + :param telegram_auth_request: (required) + :type telegram_auth_request: TelegramAuthRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35704,8 +35373,9 @@ def sources_scim_users_used_by_list_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_used_by_list_serialize( - id=id, + _param = self._sources_telegram_connect_user_create_serialize( + slug=slug, + telegram_auth_request=telegram_auth_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35713,9 +35383,9 @@ def sources_scim_users_used_by_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "UserTelegramSourceConnection", + '403': None, '400': "ValidationError", - '403': "GenericError", } response_data = self.api_client.call_api( *_param, @@ -35729,9 +35399,10 @@ def sources_scim_users_used_by_list_with_http_info( @validate_call - def sources_scim_users_used_by_list_without_preload_content( + def sources_telegram_connect_user_create_without_preload_content( self, - id: Annotated[StrictStr, Field(description="A unique value identifying this scim source user.")], + slug: StrictStr, + telegram_auth_request: TelegramAuthRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35745,12 +35416,14 @@ def sources_scim_users_used_by_list_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """sources_scim_users_used_by_list + """sources_telegram_connect_user_create - Get a list of all objects that use this object + Mixin to add a used_by endpoint to return a list of all objects using this object - :param id: A unique value identifying this scim source user. (required) - :type id: str + :param slug: (required) + :type slug: str + :param telegram_auth_request: (required) + :type telegram_auth_request: TelegramAuthRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35773,8 +35446,9 @@ def sources_scim_users_used_by_list_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._sources_scim_users_used_by_list_serialize( - id=id, + _param = self._sources_telegram_connect_user_create_serialize( + slug=slug, + telegram_auth_request=telegram_auth_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35782,9 +35456,9 @@ def sources_scim_users_used_by_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[UsedBy]", + '201': "UserTelegramSourceConnection", + '403': None, '400': "ValidationError", - '403': "GenericError", } response_data = self.api_client.call_api( *_param, @@ -35793,9 +35467,10 @@ def sources_scim_users_used_by_list_without_preload_content( return response_data.response - def _sources_scim_users_used_by_list_serialize( + def _sources_telegram_connect_user_create_serialize( self, - id, + slug, + telegram_auth_request, _request_auth, _content_type, _headers, @@ -35817,12 +35492,14 @@ def _sources_scim_users_used_by_list_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if slug is not None: + _path_params['slug'] = slug # process the query parameters # process the header parameters # process the form parameters # process the body parameter + if telegram_auth_request is not None: + _body_params = telegram_auth_request # set the HTTP header `Accept` @@ -35833,6 +35510,19 @@ def _sources_scim_users_used_by_list_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -35840,8 +35530,8 @@ def _sources_scim_users_used_by_list_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/sources/scim_users/{id}/used_by/', + method='POST', + resource_path='/sources/telegram/{slug}/connect_user/', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/authentik_client/api/ssf_api.py b/authentik_client/api/ssf_api.py index a02d01c67..e64d266a5 100644 --- a/authentik_client/api/ssf_api.py +++ b/authentik_client/api/ssf_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/stages_api.py b/authentik_client/api/stages_api.py index 90f80bf90..6d4058f48 100644 --- a/authentik_client/api/stages_api.py +++ b/authentik_client/api/stages_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -51,6 +51,8 @@ from authentik_client.models.duo_device_enrollment_status import DuoDeviceEnrollmentStatus from authentik_client.models.email_stage import EmailStage from authentik_client.models.email_stage_request import EmailStageRequest +from authentik_client.models.endpoint_stage import EndpointStage +from authentik_client.models.endpoint_stage_request import EndpointStageRequest from authentik_client.models.identification_stage import IdentificationStage from authentik_client.models.identification_stage_request import IdentificationStageRequest from authentik_client.models.invitation import Invitation @@ -72,6 +74,7 @@ from authentik_client.models.paginated_deny_stage_list import PaginatedDenyStageList from authentik_client.models.paginated_dummy_stage_list import PaginatedDummyStageList from authentik_client.models.paginated_email_stage_list import PaginatedEmailStageList +from authentik_client.models.paginated_endpoint_stage_list import PaginatedEndpointStageList from authentik_client.models.paginated_identification_stage_list import PaginatedIdentificationStageList from authentik_client.models.paginated_invitation_list import PaginatedInvitationList from authentik_client.models.paginated_invitation_stage_list import PaginatedInvitationStageList @@ -102,6 +105,7 @@ from authentik_client.models.patched_deny_stage_request import PatchedDenyStageRequest from authentik_client.models.patched_dummy_stage_request import PatchedDummyStageRequest from authentik_client.models.patched_email_stage_request import PatchedEmailStageRequest +from authentik_client.models.patched_endpoint_stage_request import PatchedEndpointStageRequest from authentik_client.models.patched_identification_stage_request import PatchedIdentificationStageRequest from authentik_client.models.patched_invitation_request import PatchedInvitationRequest from authentik_client.models.patched_invitation_stage_request import PatchedInvitationStageRequest @@ -30796,6 +30800,2014 @@ def _stages_email_used_by_list_serialize( + @validate_call + def stages_endpoints_create( + self, + endpoint_stage_request: EndpointStageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EndpointStage: + """stages_endpoints_create + + EndpointStage Viewset + + :param endpoint_stage_request: (required) + :type endpoint_stage_request: EndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_create_serialize( + endpoint_stage_request=endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def stages_endpoints_create_with_http_info( + self, + endpoint_stage_request: EndpointStageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EndpointStage]: + """stages_endpoints_create + + EndpointStage Viewset + + :param endpoint_stage_request: (required) + :type endpoint_stage_request: EndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_create_serialize( + endpoint_stage_request=endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def stages_endpoints_create_without_preload_content( + self, + endpoint_stage_request: EndpointStageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """stages_endpoints_create + + EndpointStage Viewset + + :param endpoint_stage_request: (required) + :type endpoint_stage_request: EndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_create_serialize( + endpoint_stage_request=endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _stages_endpoints_create_serialize( + self, + endpoint_stage_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if endpoint_stage_request is not None: + _body_params = endpoint_stage_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/stages/endpoints/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def stages_endpoints_destroy( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """stages_endpoints_destroy + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_destroy_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def stages_endpoints_destroy_with_http_info( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """stages_endpoints_destroy + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_destroy_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def stages_endpoints_destroy_without_preload_content( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """stages_endpoints_destroy + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_destroy_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _stages_endpoints_destroy_serialize( + self, + stage_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stage_uuid is not None: + _path_params['stage_uuid'] = stage_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/stages/endpoints/{stage_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def stages_endpoints_list( + self, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PaginatedEndpointStageList: + """stages_endpoints_list + + EndpointStage Viewset + + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_list_serialize( + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEndpointStageList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def stages_endpoints_list_with_http_info( + self, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PaginatedEndpointStageList]: + """stages_endpoints_list + + EndpointStage Viewset + + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_list_serialize( + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEndpointStageList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def stages_endpoints_list_without_preload_content( + self, + name: Optional[StrictStr] = None, + ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None, + page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None, + search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """stages_endpoints_list + + EndpointStage Viewset + + :param name: + :type name: str + :param ordering: Which field to use when ordering the results. + :type ordering: str + :param page: A page number within the paginated result set. + :type page: int + :param page_size: Number of results to return per page. + :type page_size: int + :param search: A search term. + :type search: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_list_serialize( + name=name, + ordering=ordering, + page=page, + page_size=page_size, + search=search, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PaginatedEndpointStageList", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _stages_endpoints_list_serialize( + self, + name, + ordering, + page, + page_size, + search, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if name is not None: + + _query_params.append(('name', name)) + + if ordering is not None: + + _query_params.append(('ordering', ordering)) + + if page is not None: + + _query_params.append(('page', page)) + + if page_size is not None: + + _query_params.append(('page_size', page_size)) + + if search is not None: + + _query_params.append(('search', search)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/stages/endpoints/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def stages_endpoints_partial_update( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + patched_endpoint_stage_request: Optional[PatchedEndpointStageRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EndpointStage: + """stages_endpoints_partial_update + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param patched_endpoint_stage_request: + :type patched_endpoint_stage_request: PatchedEndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_partial_update_serialize( + stage_uuid=stage_uuid, + patched_endpoint_stage_request=patched_endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def stages_endpoints_partial_update_with_http_info( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + patched_endpoint_stage_request: Optional[PatchedEndpointStageRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EndpointStage]: + """stages_endpoints_partial_update + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param patched_endpoint_stage_request: + :type patched_endpoint_stage_request: PatchedEndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_partial_update_serialize( + stage_uuid=stage_uuid, + patched_endpoint_stage_request=patched_endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def stages_endpoints_partial_update_without_preload_content( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + patched_endpoint_stage_request: Optional[PatchedEndpointStageRequest] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """stages_endpoints_partial_update + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param patched_endpoint_stage_request: + :type patched_endpoint_stage_request: PatchedEndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_partial_update_serialize( + stage_uuid=stage_uuid, + patched_endpoint_stage_request=patched_endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _stages_endpoints_partial_update_serialize( + self, + stage_uuid, + patched_endpoint_stage_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stage_uuid is not None: + _path_params['stage_uuid'] = stage_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if patched_endpoint_stage_request is not None: + _body_params = patched_endpoint_stage_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/stages/endpoints/{stage_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def stages_endpoints_retrieve( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EndpointStage: + """stages_endpoints_retrieve + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_retrieve_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def stages_endpoints_retrieve_with_http_info( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EndpointStage]: + """stages_endpoints_retrieve + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_retrieve_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def stages_endpoints_retrieve_without_preload_content( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """stages_endpoints_retrieve + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_retrieve_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _stages_endpoints_retrieve_serialize( + self, + stage_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stage_uuid is not None: + _path_params['stage_uuid'] = stage_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/stages/endpoints/{stage_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def stages_endpoints_update( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + endpoint_stage_request: EndpointStageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EndpointStage: + """stages_endpoints_update + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param endpoint_stage_request: (required) + :type endpoint_stage_request: EndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_update_serialize( + stage_uuid=stage_uuid, + endpoint_stage_request=endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def stages_endpoints_update_with_http_info( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + endpoint_stage_request: EndpointStageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EndpointStage]: + """stages_endpoints_update + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param endpoint_stage_request: (required) + :type endpoint_stage_request: EndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_update_serialize( + stage_uuid=stage_uuid, + endpoint_stage_request=endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def stages_endpoints_update_without_preload_content( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + endpoint_stage_request: EndpointStageRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """stages_endpoints_update + + EndpointStage Viewset + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param endpoint_stage_request: (required) + :type endpoint_stage_request: EndpointStageRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_update_serialize( + stage_uuid=stage_uuid, + endpoint_stage_request=endpoint_stage_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndpointStage", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _stages_endpoints_update_serialize( + self, + stage_uuid, + endpoint_stage_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stage_uuid is not None: + _path_params['stage_uuid'] = stage_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if endpoint_stage_request is not None: + _body_params = endpoint_stage_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/stages/endpoints/{stage_uuid}/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def stages_endpoints_used_by_list( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[UsedBy]: + """stages_endpoints_used_by_list + + Get a list of all objects that use this object + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_used_by_list_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def stages_endpoints_used_by_list_with_http_info( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[UsedBy]]: + """stages_endpoints_used_by_list + + Get a list of all objects that use this object + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_used_by_list_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def stages_endpoints_used_by_list_without_preload_content( + self, + stage_uuid: Annotated[UUID, Field(description="A UUID string identifying this Endpoint Stage.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """stages_endpoints_used_by_list + + Get a list of all objects that use this object + + :param stage_uuid: A UUID string identifying this Endpoint Stage. (required) + :type stage_uuid: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._stages_endpoints_used_by_list_serialize( + stage_uuid=stage_uuid, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[UsedBy]", + '400': "ValidationError", + '403': "GenericError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _stages_endpoints_used_by_list_serialize( + self, + stage_uuid, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if stage_uuid is not None: + _path_params['stage_uuid'] = stage_uuid + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'authentik' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/stages/endpoints/{stage_uuid}/used_by/', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def stages_identification_create( self, @@ -31359,6 +33371,7 @@ def stages_identification_list( search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, show_matched_user: Optional[StrictBool] = None, show_source_labels: Optional[StrictBool] = None, + webauthn_stage: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31402,6 +33415,8 @@ def stages_identification_list( :type show_matched_user: bool :param show_source_labels: :type show_source_labels: bool + :param webauthn_stage: + :type webauthn_stage: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31438,6 +33453,7 @@ def stages_identification_list( search=search, show_matched_user=show_matched_user, show_source_labels=show_source_labels, + webauthn_stage=webauthn_stage, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31476,6 +33492,7 @@ def stages_identification_list_with_http_info( search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, show_matched_user: Optional[StrictBool] = None, show_source_labels: Optional[StrictBool] = None, + webauthn_stage: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31519,6 +33536,8 @@ def stages_identification_list_with_http_info( :type show_matched_user: bool :param show_source_labels: :type show_source_labels: bool + :param webauthn_stage: + :type webauthn_stage: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31555,6 +33574,7 @@ def stages_identification_list_with_http_info( search=search, show_matched_user=show_matched_user, show_source_labels=show_source_labels, + webauthn_stage=webauthn_stage, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31593,6 +33613,7 @@ def stages_identification_list_without_preload_content( search: Annotated[Optional[StrictStr], Field(description="A search term.")] = None, show_matched_user: Optional[StrictBool] = None, show_source_labels: Optional[StrictBool] = None, + webauthn_stage: Optional[UUID] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31636,6 +33657,8 @@ def stages_identification_list_without_preload_content( :type show_matched_user: bool :param show_source_labels: :type show_source_labels: bool + :param webauthn_stage: + :type webauthn_stage: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31672,6 +33695,7 @@ def stages_identification_list_without_preload_content( search=search, show_matched_user=show_matched_user, show_source_labels=show_source_labels, + webauthn_stage=webauthn_stage, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31705,6 +33729,7 @@ def _stages_identification_list_serialize( search, show_matched_user, show_source_labels, + webauthn_stage, _request_auth, _content_type, _headers, @@ -31779,6 +33804,10 @@ def _stages_identification_list_serialize( _query_params.append(('show_source_labels', show_source_labels)) + if webauthn_stage is not None: + + _query_params.append(('webauthn_stage', webauthn_stage)) + # process the header parameters # process the form parameters # process the body parameter diff --git a/authentik_client/api/tasks_api.py b/authentik_client/api/tasks_api.py index 2da87743c..df7f2ecbb 100644 --- a/authentik_client/api/tasks_api.py +++ b/authentik_client/api/tasks_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api/tenants_api.py b/authentik_client/api/tenants_api.py index f71d3e388..549534c45 100644 --- a/authentik_client/api/tenants_api.py +++ b/authentik_client/api/tenants_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/api_client.py b/authentik_client/api_client.py index 57a37e4d8..d8fc6821b 100644 --- a/authentik_client/api_client.py +++ b/authentik_client/api_client.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -92,7 +92,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/2025.10.0-rc1-1760140185/python' + self.user_agent = 'OpenAPI-Generator/2025.12.5/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -461,13 +461,13 @@ def __deserialize(self, data, klass): if klass in self.PRIMITIVE_TYPES: return self.__deserialize_primitive(data, klass) - elif klass == object: + elif klass is object: return self.__deserialize_object(data) - elif klass == datetime.date: + elif klass is datetime.date: return self.__deserialize_date(data) - elif klass == datetime.datetime: + elif klass is datetime.datetime: return self.__deserialize_datetime(data) - elif klass == decimal.Decimal: + elif klass is decimal.Decimal: return decimal.Decimal(data) elif issubclass(klass, Enum): return self.__deserialize_enum(data, klass) diff --git a/authentik_client/configuration.py b/authentik_client/configuration.py index 0ceca5de1..848de1804 100644 --- a/authentik_client/configuration.py +++ b/authentik_client/configuration.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -164,6 +164,8 @@ class Configuration: :param retries: Number of retries for API requests. :param ca_cert_data: verify the peer using concatenated CA certificate data in PEM (str) or DER (bytes) format. + :param cert_file: the path to a client certificate file, for mTLS. + :param key_file: the path to a client key file, for mTLS. :Example: """ @@ -186,6 +188,8 @@ def __init__( ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, ca_cert_data: Optional[Union[str, bytes]] = None, + cert_file: Optional[str]=None, + key_file: Optional[str]=None, *, debug: Optional[bool] = None, ) -> None: @@ -267,10 +271,10 @@ def __init__( """Set this to verify the peer using PEM (str) or DER (bytes) certificate data. """ - self.cert_file = None + self.cert_file = cert_file """client certificate file """ - self.key_file = None + self.key_file = key_file """client key file """ self.assert_hostname = None @@ -510,8 +514,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 2025.10.0-rc1\n"\ - "SDK Package Version: 2025.10.0-rc1-1760140185".\ + "Version of the API: 2025.12.5\n"\ + "SDK Package Version: 2025.12.5".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/authentik_client/exceptions.py b/authentik_client/exceptions.py index a7a2dccab..87d5ea8f7 100644 --- a/authentik_client/exceptions.py +++ b/authentik_client/exceptions.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/__init__.py b/authentik_client/models/__init__.py index ce432ef7a..c496d0604 100644 --- a/authentik_client/models/__init__.py +++ b/authentik_client/models/__init__.py @@ -6,793 +6,23 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ # noqa: E501 - -if __import__("typing").TYPE_CHECKING: - # import models into model package - from authentik_client.models.access_denied_challenge import AccessDeniedChallenge - from authentik_client.models.alg_enum import AlgEnum - from authentik_client.models.app import App - from authentik_client.models.app_enum import AppEnum - from authentik_client.models.apple_challenge_response_request import AppleChallengeResponseRequest - from authentik_client.models.apple_login_challenge import AppleLoginChallenge - from authentik_client.models.application import Application - from authentik_client.models.application_entitlement import ApplicationEntitlement - from authentik_client.models.application_entitlement_request import ApplicationEntitlementRequest - from authentik_client.models.application_request import ApplicationRequest - from authentik_client.models.auth_type_enum import AuthTypeEnum - from authentik_client.models.authenticated_session import AuthenticatedSession - from authentik_client.models.authenticated_session_asn import AuthenticatedSessionAsn - from authentik_client.models.authenticated_session_geo_ip import AuthenticatedSessionGeoIp - from authentik_client.models.authenticated_session_user_agent import AuthenticatedSessionUserAgent - from authentik_client.models.authenticated_session_user_agent_device import AuthenticatedSessionUserAgentDevice - from authentik_client.models.authenticated_session_user_agent_os import AuthenticatedSessionUserAgentOs - from authentik_client.models.authenticated_session_user_agent_user_agent import AuthenticatedSessionUserAgentUserAgent - from authentik_client.models.authentication_enum import AuthenticationEnum - from authentik_client.models.authenticator_attachment_enum import AuthenticatorAttachmentEnum - from authentik_client.models.authenticator_duo_challenge import AuthenticatorDuoChallenge - from authentik_client.models.authenticator_duo_challenge_response_request import AuthenticatorDuoChallengeResponseRequest - from authentik_client.models.authenticator_duo_stage import AuthenticatorDuoStage - from authentik_client.models.authenticator_duo_stage_device_import_response import AuthenticatorDuoStageDeviceImportResponse - from authentik_client.models.authenticator_duo_stage_manual_device_import_request import AuthenticatorDuoStageManualDeviceImportRequest - from authentik_client.models.authenticator_duo_stage_request import AuthenticatorDuoStageRequest - from authentik_client.models.authenticator_email_challenge import AuthenticatorEmailChallenge - from authentik_client.models.authenticator_email_challenge_response_request import AuthenticatorEmailChallengeResponseRequest - from authentik_client.models.authenticator_email_stage import AuthenticatorEmailStage - from authentik_client.models.authenticator_email_stage_request import AuthenticatorEmailStageRequest - from authentik_client.models.authenticator_endpoint_gdtc_stage import AuthenticatorEndpointGDTCStage - from authentik_client.models.authenticator_endpoint_gdtc_stage_request import AuthenticatorEndpointGDTCStageRequest - from authentik_client.models.authenticator_sms_challenge import AuthenticatorSMSChallenge - from authentik_client.models.authenticator_sms_challenge_response_request import AuthenticatorSMSChallengeResponseRequest - from authentik_client.models.authenticator_sms_stage import AuthenticatorSMSStage - from authentik_client.models.authenticator_sms_stage_request import AuthenticatorSMSStageRequest - from authentik_client.models.authenticator_static_challenge import AuthenticatorStaticChallenge - from authentik_client.models.authenticator_static_challenge_response_request import AuthenticatorStaticChallengeResponseRequest - from authentik_client.models.authenticator_static_stage import AuthenticatorStaticStage - from authentik_client.models.authenticator_static_stage_request import AuthenticatorStaticStageRequest - from authentik_client.models.authenticator_totp_challenge import AuthenticatorTOTPChallenge - from authentik_client.models.authenticator_totp_challenge_response_request import AuthenticatorTOTPChallengeResponseRequest - from authentik_client.models.authenticator_totp_stage import AuthenticatorTOTPStage - from authentik_client.models.authenticator_totp_stage_request import AuthenticatorTOTPStageRequest - from authentik_client.models.authenticator_validate_stage import AuthenticatorValidateStage - from authentik_client.models.authenticator_validate_stage_request import AuthenticatorValidateStageRequest - from authentik_client.models.authenticator_validation_challenge import AuthenticatorValidationChallenge - from authentik_client.models.authenticator_validation_challenge_response_request import AuthenticatorValidationChallengeResponseRequest - from authentik_client.models.authenticator_web_authn_challenge import AuthenticatorWebAuthnChallenge - from authentik_client.models.authenticator_web_authn_challenge_response_request import AuthenticatorWebAuthnChallengeResponseRequest - from authentik_client.models.authenticator_web_authn_stage import AuthenticatorWebAuthnStage - from authentik_client.models.authenticator_web_authn_stage_request import AuthenticatorWebAuthnStageRequest - from authentik_client.models.authorization_code_auth_method_enum import AuthorizationCodeAuthMethodEnum - from authentik_client.models.auto_submit_challenge_response_request import AutoSubmitChallengeResponseRequest - from authentik_client.models.autosubmit_challenge import AutosubmitChallenge - from authentik_client.models.backends_enum import BackendsEnum - from authentik_client.models.binding_type_enum import BindingTypeEnum - from authentik_client.models.blueprint_file import BlueprintFile - from authentik_client.models.blueprint_instance import BlueprintInstance - from authentik_client.models.blueprint_instance_request import BlueprintInstanceRequest - from authentik_client.models.blueprint_instance_status_enum import BlueprintInstanceStatusEnum - from authentik_client.models.brand import Brand - from authentik_client.models.brand_request import BrandRequest - from authentik_client.models.cache import Cache - from authentik_client.models.capabilities_enum import CapabilitiesEnum - from authentik_client.models.captcha_challenge import CaptchaChallenge - from authentik_client.models.captcha_challenge_response_request import CaptchaChallengeResponseRequest - from authentik_client.models.captcha_stage import CaptchaStage - from authentik_client.models.captcha_stage_request import CaptchaStageRequest - from authentik_client.models.cert_attribute_enum import CertAttributeEnum - from authentik_client.models.certificate_data import CertificateData - from authentik_client.models.certificate_generation_request import CertificateGenerationRequest - from authentik_client.models.certificate_key_pair import CertificateKeyPair - from authentik_client.models.certificate_key_pair_request import CertificateKeyPairRequest - from authentik_client.models.challenge_types import ChallengeTypes - from authentik_client.models.client_type_enum import ClientTypeEnum - from authentik_client.models.compatibility_mode_enum import CompatibilityModeEnum - from authentik_client.models.config import Config - from authentik_client.models.connection_token import ConnectionToken - from authentik_client.models.connection_token_request import ConnectionTokenRequest - from authentik_client.models.consent_challenge import ConsentChallenge - from authentik_client.models.consent_challenge_response_request import ConsentChallengeResponseRequest - from authentik_client.models.consent_permission import ConsentPermission - from authentik_client.models.consent_stage import ConsentStage - from authentik_client.models.consent_stage_mode_enum import ConsentStageModeEnum - from authentik_client.models.consent_stage_request import ConsentStageRequest - from authentik_client.models.contextual_flow_info import ContextualFlowInfo - from authentik_client.models.contextual_flow_info_layout_enum import ContextualFlowInfoLayoutEnum - from authentik_client.models.country_code_enum import CountryCodeEnum - from authentik_client.models.current_brand import CurrentBrand - from authentik_client.models.current_brand_flags import CurrentBrandFlags - from authentik_client.models.delivery_method_enum import DeliveryMethodEnum - from authentik_client.models.denied_action_enum import DeniedActionEnum - from authentik_client.models.deny_stage import DenyStage - from authentik_client.models.deny_stage_request import DenyStageRequest - from authentik_client.models.detailed_country import DetailedCountry - from authentik_client.models.detailed_country_field import DetailedCountryField - from authentik_client.models.device import Device - from authentik_client.models.device_challenge import DeviceChallenge - from authentik_client.models.device_challenge_request import DeviceChallengeRequest - from authentik_client.models.device_classes_enum import DeviceClassesEnum - from authentik_client.models.digest_algorithm_enum import DigestAlgorithmEnum - from authentik_client.models.digits_enum import DigitsEnum - from authentik_client.models.docker_service_connection import DockerServiceConnection - from authentik_client.models.docker_service_connection_request import DockerServiceConnectionRequest - from authentik_client.models.domain import Domain - from authentik_client.models.domain_request import DomainRequest - from authentik_client.models.dummy_challenge import DummyChallenge - from authentik_client.models.dummy_challenge_response_request import DummyChallengeResponseRequest - from authentik_client.models.dummy_policy import DummyPolicy - from authentik_client.models.dummy_policy_request import DummyPolicyRequest - from authentik_client.models.dummy_stage import DummyStage - from authentik_client.models.dummy_stage_request import DummyStageRequest - from authentik_client.models.duo_device import DuoDevice - from authentik_client.models.duo_device_enrollment_status import DuoDeviceEnrollmentStatus - from authentik_client.models.duo_device_request import DuoDeviceRequest - from authentik_client.models.duo_response_enum import DuoResponseEnum - from authentik_client.models.email_challenge import EmailChallenge - from authentik_client.models.email_challenge_response_request import EmailChallengeResponseRequest - from authentik_client.models.email_device import EmailDevice - from authentik_client.models.email_device_request import EmailDeviceRequest - from authentik_client.models.email_stage import EmailStage - from authentik_client.models.email_stage_request import EmailStageRequest - from authentik_client.models.endpoint import Endpoint - from authentik_client.models.endpoint_auth_mode_enum import EndpointAuthModeEnum - from authentik_client.models.endpoint_device import EndpointDevice - from authentik_client.models.endpoint_device_request import EndpointDeviceRequest - from authentik_client.models.endpoint_request import EndpointRequest - from authentik_client.models.error_detail import ErrorDetail - from authentik_client.models.error_reporting_config import ErrorReportingConfig - from authentik_client.models.event import Event - from authentik_client.models.event_actions import EventActions - from authentik_client.models.event_matcher_policy import EventMatcherPolicy - from authentik_client.models.event_matcher_policy_request import EventMatcherPolicyRequest - from authentik_client.models.event_request import EventRequest - from authentik_client.models.event_top_per_user import EventTopPerUser - from authentik_client.models.event_volume import EventVolume - from authentik_client.models.events_requested_enum import EventsRequestedEnum - from authentik_client.models.expiring_base_grant_model import ExpiringBaseGrantModel - from authentik_client.models.expression_policy import ExpressionPolicy - from authentik_client.models.expression_policy_request import ExpressionPolicyRequest - from authentik_client.models.extra_role_object_permission import ExtraRoleObjectPermission - from authentik_client.models.extra_role_object_permission_request import ExtraRoleObjectPermissionRequest - from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission - from authentik_client.models.extra_user_object_permission_request import ExtraUserObjectPermissionRequest - from authentik_client.models.file_path_request import FilePathRequest - from authentik_client.models.flow import Flow - from authentik_client.models.flow_challenge_response_request import FlowChallengeResponseRequest - from authentik_client.models.flow_designation_enum import FlowDesignationEnum - from authentik_client.models.flow_diagram import FlowDiagram - from authentik_client.models.flow_error_challenge import FlowErrorChallenge - from authentik_client.models.flow_import_result import FlowImportResult - from authentik_client.models.flow_inspection import FlowInspection - from authentik_client.models.flow_inspector_plan import FlowInspectorPlan - from authentik_client.models.flow_layout_enum import FlowLayoutEnum - from authentik_client.models.flow_request import FlowRequest - from authentik_client.models.flow_set import FlowSet - from authentik_client.models.flow_set_request import FlowSetRequest - from authentik_client.models.flow_stage_binding import FlowStageBinding - from authentik_client.models.flow_stage_binding_request import FlowStageBindingRequest - from authentik_client.models.footer_link import FooterLink - from authentik_client.models.frame_challenge import FrameChallenge - from authentik_client.models.frame_challenge_response_request import FrameChallengeResponseRequest - from authentik_client.models.generic_error import GenericError - from authentik_client.models.geo_ip_policy import GeoIPPolicy - from authentik_client.models.geo_ip_policy_request import GeoIPPolicyRequest - from authentik_client.models.geoip_binding_enum import GeoipBindingEnum - from authentik_client.models.global_task_status import GlobalTaskStatus - from authentik_client.models.google_workspace_provider import GoogleWorkspaceProvider - from authentik_client.models.google_workspace_provider_group import GoogleWorkspaceProviderGroup - from authentik_client.models.google_workspace_provider_group_request import GoogleWorkspaceProviderGroupRequest - from authentik_client.models.google_workspace_provider_mapping import GoogleWorkspaceProviderMapping - from authentik_client.models.google_workspace_provider_mapping_request import GoogleWorkspaceProviderMappingRequest - from authentik_client.models.google_workspace_provider_request import GoogleWorkspaceProviderRequest - from authentik_client.models.google_workspace_provider_user import GoogleWorkspaceProviderUser - from authentik_client.models.google_workspace_provider_user_request import GoogleWorkspaceProviderUserRequest - from authentik_client.models.group import Group - from authentik_client.models.group_child import GroupChild - from authentik_client.models.group_kerberos_source_connection import GroupKerberosSourceConnection - from authentik_client.models.group_kerberos_source_connection_request import GroupKerberosSourceConnectionRequest - from authentik_client.models.group_ldap_source_connection import GroupLDAPSourceConnection - from authentik_client.models.group_ldap_source_connection_request import GroupLDAPSourceConnectionRequest - from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum - from authentik_client.models.group_o_auth_source_connection import GroupOAuthSourceConnection - from authentik_client.models.group_o_auth_source_connection_request import GroupOAuthSourceConnectionRequest - from authentik_client.models.group_plex_source_connection import GroupPlexSourceConnection - from authentik_client.models.group_plex_source_connection_request import GroupPlexSourceConnectionRequest - from authentik_client.models.group_request import GroupRequest - from authentik_client.models.group_saml_source_connection import GroupSAMLSourceConnection - from authentik_client.models.group_saml_source_connection_request import GroupSAMLSourceConnectionRequest - from authentik_client.models.group_source_connection import GroupSourceConnection - from authentik_client.models.group_source_connection_request import GroupSourceConnectionRequest - from authentik_client.models.group_telegram_source_connection import GroupTelegramSourceConnection - from authentik_client.models.group_telegram_source_connection_request import GroupTelegramSourceConnectionRequest - from authentik_client.models.identification_challenge import IdentificationChallenge - from authentik_client.models.identification_challenge_response_request import IdentificationChallengeResponseRequest - from authentik_client.models.identification_stage import IdentificationStage - from authentik_client.models.identification_stage_request import IdentificationStageRequest - from authentik_client.models.iframe_logout_challenge import IframeLogoutChallenge - from authentik_client.models.iframe_logout_challenge_response_request import IframeLogoutChallengeResponseRequest - from authentik_client.models.impersonation_request import ImpersonationRequest - from authentik_client.models.initial_permissions import InitialPermissions - from authentik_client.models.initial_permissions_mode_enum import InitialPermissionsModeEnum - from authentik_client.models.initial_permissions_request import InitialPermissionsRequest - from authentik_client.models.install_id import InstallID - from authentik_client.models.intent_enum import IntentEnum - from authentik_client.models.invalid_response_action_enum import InvalidResponseActionEnum - from authentik_client.models.invitation import Invitation - from authentik_client.models.invitation_request import InvitationRequest - from authentik_client.models.invitation_stage import InvitationStage - from authentik_client.models.invitation_stage_request import InvitationStageRequest - from authentik_client.models.issuer_mode_enum import IssuerModeEnum - from authentik_client.models.kadmin_type_enum import KadminTypeEnum - from authentik_client.models.kerberos_source import KerberosSource - from authentik_client.models.kerberos_source_property_mapping import KerberosSourcePropertyMapping - from authentik_client.models.kerberos_source_property_mapping_request import KerberosSourcePropertyMappingRequest - from authentik_client.models.kerberos_source_request import KerberosSourceRequest - from authentik_client.models.kubernetes_service_connection import KubernetesServiceConnection - from authentik_client.models.kubernetes_service_connection_request import KubernetesServiceConnectionRequest - from authentik_client.models.ldapapi_access_mode import LDAPAPIAccessMode - from authentik_client.models.ldap_check_access import LDAPCheckAccess - from authentik_client.models.ldap_debug import LDAPDebug - from authentik_client.models.ldap_outpost_config import LDAPOutpostConfig - from authentik_client.models.ldap_provider import LDAPProvider - from authentik_client.models.ldap_provider_request import LDAPProviderRequest - from authentik_client.models.ldap_source import LDAPSource - from authentik_client.models.ldap_source_property_mapping import LDAPSourcePropertyMapping - from authentik_client.models.ldap_source_property_mapping_request import LDAPSourcePropertyMappingRequest - from authentik_client.models.ldap_source_request import LDAPSourceRequest - from authentik_client.models.last_task_status_enum import LastTaskStatusEnum - from authentik_client.models.license import License - from authentik_client.models.license_flags_enum import LicenseFlagsEnum - from authentik_client.models.license_forecast import LicenseForecast - from authentik_client.models.license_request import LicenseRequest - from authentik_client.models.license_summary import LicenseSummary - from authentik_client.models.license_summary_status_enum import LicenseSummaryStatusEnum - from authentik_client.models.link import Link - from authentik_client.models.log_event import LogEvent - from authentik_client.models.log_level_enum import LogLevelEnum - from authentik_client.models.login_challenge_types import LoginChallengeTypes - from authentik_client.models.login_source import LoginSource - from authentik_client.models.matching_mode_enum import MatchingModeEnum - from authentik_client.models.metadata import Metadata - from authentik_client.models.microsoft_entra_provider import MicrosoftEntraProvider - from authentik_client.models.microsoft_entra_provider_group import MicrosoftEntraProviderGroup - from authentik_client.models.microsoft_entra_provider_group_request import MicrosoftEntraProviderGroupRequest - from authentik_client.models.microsoft_entra_provider_mapping import MicrosoftEntraProviderMapping - from authentik_client.models.microsoft_entra_provider_mapping_request import MicrosoftEntraProviderMappingRequest - from authentik_client.models.microsoft_entra_provider_request import MicrosoftEntraProviderRequest - from authentik_client.models.microsoft_entra_provider_user import MicrosoftEntraProviderUser - from authentik_client.models.microsoft_entra_provider_user_request import MicrosoftEntraProviderUserRequest - from authentik_client.models.model_enum import ModelEnum - from authentik_client.models.model_request import ModelRequest - from authentik_client.models.mutual_tls_stage import MutualTLSStage - from authentik_client.models.mutual_tls_stage_mode_enum import MutualTLSStageModeEnum - from authentik_client.models.mutual_tls_stage_request import MutualTLSStageRequest - from authentik_client.models.native_logout_challenge import NativeLogoutChallenge - from authentik_client.models.native_logout_challenge_response_request import NativeLogoutChallengeResponseRequest - from authentik_client.models.network_binding_enum import NetworkBindingEnum - from authentik_client.models.not_configured_action_enum import NotConfiguredActionEnum - from authentik_client.models.notification import Notification - from authentik_client.models.notification_request import NotificationRequest - from authentik_client.models.notification_rule import NotificationRule - from authentik_client.models.notification_rule_request import NotificationRuleRequest - from authentik_client.models.notification_transport import NotificationTransport - from authentik_client.models.notification_transport_mode_enum import NotificationTransportModeEnum - from authentik_client.models.notification_transport_request import NotificationTransportRequest - from authentik_client.models.notification_transport_test import NotificationTransportTest - from authentik_client.models.notification_webhook_mapping import NotificationWebhookMapping - from authentik_client.models.notification_webhook_mapping_request import NotificationWebhookMappingRequest - from authentik_client.models.o_auth2_provider import OAuth2Provider - from authentik_client.models.o_auth2_provider_logout_method_enum import OAuth2ProviderLogoutMethodEnum - from authentik_client.models.o_auth2_provider_request import OAuth2ProviderRequest - from authentik_client.models.o_auth2_provider_setup_urls import OAuth2ProviderSetupURLs - from authentik_client.models.o_auth_device_code_challenge import OAuthDeviceCodeChallenge - from authentik_client.models.o_auth_device_code_challenge_response_request import OAuthDeviceCodeChallengeResponseRequest - from authentik_client.models.o_auth_device_code_finish_challenge import OAuthDeviceCodeFinishChallenge - from authentik_client.models.o_auth_device_code_finish_challenge_response_request import OAuthDeviceCodeFinishChallengeResponseRequest - from authentik_client.models.o_auth_source import OAuthSource - from authentik_client.models.o_auth_source_property_mapping import OAuthSourcePropertyMapping - from authentik_client.models.o_auth_source_property_mapping_request import OAuthSourcePropertyMappingRequest - from authentik_client.models.o_auth_source_request import OAuthSourceRequest - from authentik_client.models.open_id_connect_configuration import OpenIDConnectConfiguration - from authentik_client.models.outgoing_sync_delete_action import OutgoingSyncDeleteAction - from authentik_client.models.outpost import Outpost - from authentik_client.models.outpost_default_config import OutpostDefaultConfig - from authentik_client.models.outpost_health import OutpostHealth - from authentik_client.models.outpost_request import OutpostRequest - from authentik_client.models.outpost_type_enum import OutpostTypeEnum - from authentik_client.models.paginated_application_entitlement_list import PaginatedApplicationEntitlementList - from authentik_client.models.paginated_application_list import PaginatedApplicationList - from authentik_client.models.paginated_authenticated_session_list import PaginatedAuthenticatedSessionList - from authentik_client.models.paginated_authenticator_duo_stage_list import PaginatedAuthenticatorDuoStageList - from authentik_client.models.paginated_authenticator_email_stage_list import PaginatedAuthenticatorEmailStageList - from authentik_client.models.paginated_authenticator_endpoint_gdtc_stage_list import PaginatedAuthenticatorEndpointGDTCStageList - from authentik_client.models.paginated_authenticator_sms_stage_list import PaginatedAuthenticatorSMSStageList - from authentik_client.models.paginated_authenticator_static_stage_list import PaginatedAuthenticatorStaticStageList - from authentik_client.models.paginated_authenticator_totp_stage_list import PaginatedAuthenticatorTOTPStageList - from authentik_client.models.paginated_authenticator_validate_stage_list import PaginatedAuthenticatorValidateStageList - from authentik_client.models.paginated_authenticator_web_authn_stage_list import PaginatedAuthenticatorWebAuthnStageList - from authentik_client.models.paginated_blueprint_instance_list import PaginatedBlueprintInstanceList - from authentik_client.models.paginated_brand_list import PaginatedBrandList - from authentik_client.models.paginated_captcha_stage_list import PaginatedCaptchaStageList - from authentik_client.models.paginated_certificate_key_pair_list import PaginatedCertificateKeyPairList - from authentik_client.models.paginated_connection_token_list import PaginatedConnectionTokenList - from authentik_client.models.paginated_consent_stage_list import PaginatedConsentStageList - from authentik_client.models.paginated_deny_stage_list import PaginatedDenyStageList - from authentik_client.models.paginated_docker_service_connection_list import PaginatedDockerServiceConnectionList - from authentik_client.models.paginated_domain_list import PaginatedDomainList - from authentik_client.models.paginated_dummy_policy_list import PaginatedDummyPolicyList - from authentik_client.models.paginated_dummy_stage_list import PaginatedDummyStageList - from authentik_client.models.paginated_duo_device_list import PaginatedDuoDeviceList - from authentik_client.models.paginated_email_device_list import PaginatedEmailDeviceList - from authentik_client.models.paginated_email_stage_list import PaginatedEmailStageList - from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList - from authentik_client.models.paginated_endpoint_list import PaginatedEndpointList - from authentik_client.models.paginated_event_list import PaginatedEventList - from authentik_client.models.paginated_event_matcher_policy_list import PaginatedEventMatcherPolicyList - from authentik_client.models.paginated_expiring_base_grant_model_list import PaginatedExpiringBaseGrantModelList - from authentik_client.models.paginated_expression_policy_list import PaginatedExpressionPolicyList - from authentik_client.models.paginated_extra_role_object_permission_list import PaginatedExtraRoleObjectPermissionList - from authentik_client.models.paginated_extra_user_object_permission_list import PaginatedExtraUserObjectPermissionList - from authentik_client.models.paginated_flow_list import PaginatedFlowList - from authentik_client.models.paginated_flow_stage_binding_list import PaginatedFlowStageBindingList - from authentik_client.models.paginated_geo_ip_policy_list import PaginatedGeoIPPolicyList - from authentik_client.models.paginated_google_workspace_provider_group_list import PaginatedGoogleWorkspaceProviderGroupList - from authentik_client.models.paginated_google_workspace_provider_list import PaginatedGoogleWorkspaceProviderList - from authentik_client.models.paginated_google_workspace_provider_mapping_list import PaginatedGoogleWorkspaceProviderMappingList - from authentik_client.models.paginated_google_workspace_provider_user_list import PaginatedGoogleWorkspaceProviderUserList - from authentik_client.models.paginated_group_kerberos_source_connection_list import PaginatedGroupKerberosSourceConnectionList - from authentik_client.models.paginated_group_ldap_source_connection_list import PaginatedGroupLDAPSourceConnectionList - from authentik_client.models.paginated_group_list import PaginatedGroupList - from authentik_client.models.paginated_group_o_auth_source_connection_list import PaginatedGroupOAuthSourceConnectionList - from authentik_client.models.paginated_group_plex_source_connection_list import PaginatedGroupPlexSourceConnectionList - from authentik_client.models.paginated_group_saml_source_connection_list import PaginatedGroupSAMLSourceConnectionList - from authentik_client.models.paginated_group_source_connection_list import PaginatedGroupSourceConnectionList - from authentik_client.models.paginated_group_telegram_source_connection_list import PaginatedGroupTelegramSourceConnectionList - from authentik_client.models.paginated_identification_stage_list import PaginatedIdentificationStageList - from authentik_client.models.paginated_initial_permissions_list import PaginatedInitialPermissionsList - from authentik_client.models.paginated_invitation_list import PaginatedInvitationList - from authentik_client.models.paginated_invitation_stage_list import PaginatedInvitationStageList - from authentik_client.models.paginated_kerberos_source_list import PaginatedKerberosSourceList - from authentik_client.models.paginated_kerberos_source_property_mapping_list import PaginatedKerberosSourcePropertyMappingList - from authentik_client.models.paginated_kubernetes_service_connection_list import PaginatedKubernetesServiceConnectionList - from authentik_client.models.paginated_ldap_outpost_config_list import PaginatedLDAPOutpostConfigList - from authentik_client.models.paginated_ldap_provider_list import PaginatedLDAPProviderList - from authentik_client.models.paginated_ldap_source_list import PaginatedLDAPSourceList - from authentik_client.models.paginated_ldap_source_property_mapping_list import PaginatedLDAPSourcePropertyMappingList - from authentik_client.models.paginated_license_list import PaginatedLicenseList - from authentik_client.models.paginated_microsoft_entra_provider_group_list import PaginatedMicrosoftEntraProviderGroupList - from authentik_client.models.paginated_microsoft_entra_provider_list import PaginatedMicrosoftEntraProviderList - from authentik_client.models.paginated_microsoft_entra_provider_mapping_list import PaginatedMicrosoftEntraProviderMappingList - from authentik_client.models.paginated_microsoft_entra_provider_user_list import PaginatedMicrosoftEntraProviderUserList - from authentik_client.models.paginated_mutual_tls_stage_list import PaginatedMutualTLSStageList - from authentik_client.models.paginated_notification_list import PaginatedNotificationList - from authentik_client.models.paginated_notification_rule_list import PaginatedNotificationRuleList - from authentik_client.models.paginated_notification_transport_list import PaginatedNotificationTransportList - from authentik_client.models.paginated_notification_webhook_mapping_list import PaginatedNotificationWebhookMappingList - from authentik_client.models.paginated_o_auth2_provider_list import PaginatedOAuth2ProviderList - from authentik_client.models.paginated_o_auth_source_list import PaginatedOAuthSourceList - from authentik_client.models.paginated_o_auth_source_property_mapping_list import PaginatedOAuthSourcePropertyMappingList - from authentik_client.models.paginated_outpost_list import PaginatedOutpostList - from authentik_client.models.paginated_password_expiry_policy_list import PaginatedPasswordExpiryPolicyList - from authentik_client.models.paginated_password_policy_list import PaginatedPasswordPolicyList - from authentik_client.models.paginated_password_stage_list import PaginatedPasswordStageList - from authentik_client.models.paginated_permission_list import PaginatedPermissionList - from authentik_client.models.paginated_plex_source_list import PaginatedPlexSourceList - from authentik_client.models.paginated_plex_source_property_mapping_list import PaginatedPlexSourcePropertyMappingList - from authentik_client.models.paginated_policy_binding_list import PaginatedPolicyBindingList - from authentik_client.models.paginated_policy_list import PaginatedPolicyList - from authentik_client.models.paginated_prompt_list import PaginatedPromptList - from authentik_client.models.paginated_prompt_stage_list import PaginatedPromptStageList - from authentik_client.models.paginated_property_mapping_list import PaginatedPropertyMappingList - from authentik_client.models.paginated_provider_list import PaginatedProviderList - from authentik_client.models.paginated_proxy_outpost_config_list import PaginatedProxyOutpostConfigList - from authentik_client.models.paginated_proxy_provider_list import PaginatedProxyProviderList - from authentik_client.models.paginated_rac_property_mapping_list import PaginatedRACPropertyMappingList - from authentik_client.models.paginated_rac_provider_list import PaginatedRACProviderList - from authentik_client.models.paginated_radius_outpost_config_list import PaginatedRadiusOutpostConfigList - from authentik_client.models.paginated_radius_provider_list import PaginatedRadiusProviderList - from authentik_client.models.paginated_radius_provider_property_mapping_list import PaginatedRadiusProviderPropertyMappingList - from authentik_client.models.paginated_redirect_stage_list import PaginatedRedirectStageList - from authentik_client.models.paginated_reputation_list import PaginatedReputationList - from authentik_client.models.paginated_reputation_policy_list import PaginatedReputationPolicyList - from authentik_client.models.paginated_role_assigned_object_permission_list import PaginatedRoleAssignedObjectPermissionList - from authentik_client.models.paginated_role_list import PaginatedRoleList - from authentik_client.models.paginated_saml_property_mapping_list import PaginatedSAMLPropertyMappingList - from authentik_client.models.paginated_saml_provider_list import PaginatedSAMLProviderList - from authentik_client.models.paginated_saml_source_list import PaginatedSAMLSourceList - from authentik_client.models.paginated_saml_source_property_mapping_list import PaginatedSAMLSourcePropertyMappingList - from authentik_client.models.paginated_scim_mapping_list import PaginatedSCIMMappingList - from authentik_client.models.paginated_scim_provider_group_list import PaginatedSCIMProviderGroupList - from authentik_client.models.paginated_scim_provider_list import PaginatedSCIMProviderList - from authentik_client.models.paginated_scim_provider_user_list import PaginatedSCIMProviderUserList - from authentik_client.models.paginated_scim_source_group_list import PaginatedSCIMSourceGroupList - from authentik_client.models.paginated_scim_source_list import PaginatedSCIMSourceList - from authentik_client.models.paginated_scim_source_property_mapping_list import PaginatedSCIMSourcePropertyMappingList - from authentik_client.models.paginated_scim_source_user_list import PaginatedSCIMSourceUserList - from authentik_client.models.paginated_sms_device_list import PaginatedSMSDeviceList - from authentik_client.models.paginated_ssf_provider_list import PaginatedSSFProviderList - from authentik_client.models.paginated_ssf_stream_list import PaginatedSSFStreamList - from authentik_client.models.paginated_schedule_list import PaginatedScheduleList - from authentik_client.models.paginated_scope_mapping_list import PaginatedScopeMappingList - from authentik_client.models.paginated_service_connection_list import PaginatedServiceConnectionList - from authentik_client.models.paginated_source_list import PaginatedSourceList - from authentik_client.models.paginated_source_stage_list import PaginatedSourceStageList - from authentik_client.models.paginated_stage_list import PaginatedStageList - from authentik_client.models.paginated_static_device_list import PaginatedStaticDeviceList - from authentik_client.models.paginated_totp_device_list import PaginatedTOTPDeviceList - from authentik_client.models.paginated_task_list import PaginatedTaskList - from authentik_client.models.paginated_telegram_source_list import PaginatedTelegramSourceList - from authentik_client.models.paginated_telegram_source_property_mapping_list import PaginatedTelegramSourcePropertyMappingList - from authentik_client.models.paginated_tenant_list import PaginatedTenantList - from authentik_client.models.paginated_token_list import PaginatedTokenList - from authentik_client.models.paginated_token_model_list import PaginatedTokenModelList - from authentik_client.models.paginated_unique_password_policy_list import PaginatedUniquePasswordPolicyList - from authentik_client.models.paginated_user_assigned_object_permission_list import PaginatedUserAssignedObjectPermissionList - from authentik_client.models.paginated_user_consent_list import PaginatedUserConsentList - from authentik_client.models.paginated_user_delete_stage_list import PaginatedUserDeleteStageList - from authentik_client.models.paginated_user_kerberos_source_connection_list import PaginatedUserKerberosSourceConnectionList - from authentik_client.models.paginated_user_ldap_source_connection_list import PaginatedUserLDAPSourceConnectionList - from authentik_client.models.paginated_user_list import PaginatedUserList - from authentik_client.models.paginated_user_login_stage_list import PaginatedUserLoginStageList - from authentik_client.models.paginated_user_logout_stage_list import PaginatedUserLogoutStageList - from authentik_client.models.paginated_user_o_auth_source_connection_list import PaginatedUserOAuthSourceConnectionList - from authentik_client.models.paginated_user_plex_source_connection_list import PaginatedUserPlexSourceConnectionList - from authentik_client.models.paginated_user_saml_source_connection_list import PaginatedUserSAMLSourceConnectionList - from authentik_client.models.paginated_user_source_connection_list import PaginatedUserSourceConnectionList - from authentik_client.models.paginated_user_telegram_source_connection_list import PaginatedUserTelegramSourceConnectionList - from authentik_client.models.paginated_user_write_stage_list import PaginatedUserWriteStageList - from authentik_client.models.paginated_web_authn_device_list import PaginatedWebAuthnDeviceList - from authentik_client.models.paginated_web_authn_device_type_list import PaginatedWebAuthnDeviceTypeList - from authentik_client.models.pagination import Pagination - from authentik_client.models.partial_group import PartialGroup - from authentik_client.models.partial_user import PartialUser - from authentik_client.models.password_challenge import PasswordChallenge - from authentik_client.models.password_challenge_response_request import PasswordChallengeResponseRequest - from authentik_client.models.password_expiry_policy import PasswordExpiryPolicy - from authentik_client.models.password_expiry_policy_request import PasswordExpiryPolicyRequest - from authentik_client.models.password_policy import PasswordPolicy - from authentik_client.models.password_policy_request import PasswordPolicyRequest - from authentik_client.models.password_stage import PasswordStage - from authentik_client.models.password_stage_request import PasswordStageRequest - from authentik_client.models.patched_application_entitlement_request import PatchedApplicationEntitlementRequest - from authentik_client.models.patched_application_request import PatchedApplicationRequest - from authentik_client.models.patched_authenticator_duo_stage_request import PatchedAuthenticatorDuoStageRequest - from authentik_client.models.patched_authenticator_email_stage_request import PatchedAuthenticatorEmailStageRequest - from authentik_client.models.patched_authenticator_endpoint_gdtc_stage_request import PatchedAuthenticatorEndpointGDTCStageRequest - from authentik_client.models.patched_authenticator_sms_stage_request import PatchedAuthenticatorSMSStageRequest - from authentik_client.models.patched_authenticator_static_stage_request import PatchedAuthenticatorStaticStageRequest - from authentik_client.models.patched_authenticator_totp_stage_request import PatchedAuthenticatorTOTPStageRequest - from authentik_client.models.patched_authenticator_validate_stage_request import PatchedAuthenticatorValidateStageRequest - from authentik_client.models.patched_authenticator_web_authn_stage_request import PatchedAuthenticatorWebAuthnStageRequest - from authentik_client.models.patched_blueprint_instance_request import PatchedBlueprintInstanceRequest - from authentik_client.models.patched_brand_request import PatchedBrandRequest - from authentik_client.models.patched_captcha_stage_request import PatchedCaptchaStageRequest - from authentik_client.models.patched_certificate_key_pair_request import PatchedCertificateKeyPairRequest - from authentik_client.models.patched_connection_token_request import PatchedConnectionTokenRequest - from authentik_client.models.patched_consent_stage_request import PatchedConsentStageRequest - from authentik_client.models.patched_deny_stage_request import PatchedDenyStageRequest - from authentik_client.models.patched_docker_service_connection_request import PatchedDockerServiceConnectionRequest - from authentik_client.models.patched_domain_request import PatchedDomainRequest - from authentik_client.models.patched_dummy_policy_request import PatchedDummyPolicyRequest - from authentik_client.models.patched_dummy_stage_request import PatchedDummyStageRequest - from authentik_client.models.patched_duo_device_request import PatchedDuoDeviceRequest - from authentik_client.models.patched_email_device_request import PatchedEmailDeviceRequest - from authentik_client.models.patched_email_stage_request import PatchedEmailStageRequest - from authentik_client.models.patched_endpoint_device_request import PatchedEndpointDeviceRequest - from authentik_client.models.patched_endpoint_request import PatchedEndpointRequest - from authentik_client.models.patched_event_matcher_policy_request import PatchedEventMatcherPolicyRequest - from authentik_client.models.patched_event_request import PatchedEventRequest - from authentik_client.models.patched_expression_policy_request import PatchedExpressionPolicyRequest - from authentik_client.models.patched_extra_role_object_permission_request import PatchedExtraRoleObjectPermissionRequest - from authentik_client.models.patched_extra_user_object_permission_request import PatchedExtraUserObjectPermissionRequest - from authentik_client.models.patched_flow_request import PatchedFlowRequest - from authentik_client.models.patched_flow_stage_binding_request import PatchedFlowStageBindingRequest - from authentik_client.models.patched_geo_ip_policy_request import PatchedGeoIPPolicyRequest - from authentik_client.models.patched_google_workspace_provider_mapping_request import PatchedGoogleWorkspaceProviderMappingRequest - from authentik_client.models.patched_google_workspace_provider_request import PatchedGoogleWorkspaceProviderRequest - from authentik_client.models.patched_group_kerberos_source_connection_request import PatchedGroupKerberosSourceConnectionRequest - from authentik_client.models.patched_group_ldap_source_connection_request import PatchedGroupLDAPSourceConnectionRequest - from authentik_client.models.patched_group_o_auth_source_connection_request import PatchedGroupOAuthSourceConnectionRequest - from authentik_client.models.patched_group_plex_source_connection_request import PatchedGroupPlexSourceConnectionRequest - from authentik_client.models.patched_group_request import PatchedGroupRequest - from authentik_client.models.patched_group_saml_source_connection_request import PatchedGroupSAMLSourceConnectionRequest - from authentik_client.models.patched_group_source_connection_request import PatchedGroupSourceConnectionRequest - from authentik_client.models.patched_group_telegram_source_connection_request import PatchedGroupTelegramSourceConnectionRequest - from authentik_client.models.patched_identification_stage_request import PatchedIdentificationStageRequest - from authentik_client.models.patched_initial_permissions_request import PatchedInitialPermissionsRequest - from authentik_client.models.patched_invitation_request import PatchedInvitationRequest - from authentik_client.models.patched_invitation_stage_request import PatchedInvitationStageRequest - from authentik_client.models.patched_kerberos_source_property_mapping_request import PatchedKerberosSourcePropertyMappingRequest - from authentik_client.models.patched_kerberos_source_request import PatchedKerberosSourceRequest - from authentik_client.models.patched_kubernetes_service_connection_request import PatchedKubernetesServiceConnectionRequest - from authentik_client.models.patched_ldap_provider_request import PatchedLDAPProviderRequest - from authentik_client.models.patched_ldap_source_property_mapping_request import PatchedLDAPSourcePropertyMappingRequest - from authentik_client.models.patched_ldap_source_request import PatchedLDAPSourceRequest - from authentik_client.models.patched_license_request import PatchedLicenseRequest - from authentik_client.models.patched_microsoft_entra_provider_mapping_request import PatchedMicrosoftEntraProviderMappingRequest - from authentik_client.models.patched_microsoft_entra_provider_request import PatchedMicrosoftEntraProviderRequest - from authentik_client.models.patched_mutual_tls_stage_request import PatchedMutualTLSStageRequest - from authentik_client.models.patched_notification_request import PatchedNotificationRequest - from authentik_client.models.patched_notification_rule_request import PatchedNotificationRuleRequest - from authentik_client.models.patched_notification_transport_request import PatchedNotificationTransportRequest - from authentik_client.models.patched_notification_webhook_mapping_request import PatchedNotificationWebhookMappingRequest - from authentik_client.models.patched_o_auth2_provider_request import PatchedOAuth2ProviderRequest - from authentik_client.models.patched_o_auth_source_property_mapping_request import PatchedOAuthSourcePropertyMappingRequest - from authentik_client.models.patched_o_auth_source_request import PatchedOAuthSourceRequest - from authentik_client.models.patched_outpost_request import PatchedOutpostRequest - from authentik_client.models.patched_password_expiry_policy_request import PatchedPasswordExpiryPolicyRequest - from authentik_client.models.patched_password_policy_request import PatchedPasswordPolicyRequest - from authentik_client.models.patched_password_stage_request import PatchedPasswordStageRequest - from authentik_client.models.patched_permission_assign_request import PatchedPermissionAssignRequest - from authentik_client.models.patched_plex_source_property_mapping_request import PatchedPlexSourcePropertyMappingRequest - from authentik_client.models.patched_plex_source_request import PatchedPlexSourceRequest - from authentik_client.models.patched_policy_binding_request import PatchedPolicyBindingRequest - from authentik_client.models.patched_prompt_request import PatchedPromptRequest - from authentik_client.models.patched_prompt_stage_request import PatchedPromptStageRequest - from authentik_client.models.patched_proxy_provider_request import PatchedProxyProviderRequest - from authentik_client.models.patched_rac_property_mapping_request import PatchedRACPropertyMappingRequest - from authentik_client.models.patched_rac_provider_request import PatchedRACProviderRequest - from authentik_client.models.patched_radius_provider_property_mapping_request import PatchedRadiusProviderPropertyMappingRequest - from authentik_client.models.patched_radius_provider_request import PatchedRadiusProviderRequest - from authentik_client.models.patched_redirect_stage_request import PatchedRedirectStageRequest - from authentik_client.models.patched_reputation_policy_request import PatchedReputationPolicyRequest - from authentik_client.models.patched_role_request import PatchedRoleRequest - from authentik_client.models.patched_saml_property_mapping_request import PatchedSAMLPropertyMappingRequest - from authentik_client.models.patched_saml_provider_request import PatchedSAMLProviderRequest - from authentik_client.models.patched_saml_source_property_mapping_request import PatchedSAMLSourcePropertyMappingRequest - from authentik_client.models.patched_saml_source_request import PatchedSAMLSourceRequest - from authentik_client.models.patched_scim_mapping_request import PatchedSCIMMappingRequest - from authentik_client.models.patched_scim_provider_request import PatchedSCIMProviderRequest - from authentik_client.models.patched_scim_source_group_request import PatchedSCIMSourceGroupRequest - from authentik_client.models.patched_scim_source_property_mapping_request import PatchedSCIMSourcePropertyMappingRequest - from authentik_client.models.patched_scim_source_request import PatchedSCIMSourceRequest - from authentik_client.models.patched_scim_source_user_request import PatchedSCIMSourceUserRequest - from authentik_client.models.patched_sms_device_request import PatchedSMSDeviceRequest - from authentik_client.models.patched_ssf_provider_request import PatchedSSFProviderRequest - from authentik_client.models.patched_schedule_request import PatchedScheduleRequest - from authentik_client.models.patched_scope_mapping_request import PatchedScopeMappingRequest - from authentik_client.models.patched_settings_request import PatchedSettingsRequest - from authentik_client.models.patched_settings_request_flags import PatchedSettingsRequestFlags - from authentik_client.models.patched_source_stage_request import PatchedSourceStageRequest - from authentik_client.models.patched_static_device_request import PatchedStaticDeviceRequest - from authentik_client.models.patched_totp_device_request import PatchedTOTPDeviceRequest - from authentik_client.models.patched_telegram_source_property_mapping_request import PatchedTelegramSourcePropertyMappingRequest - from authentik_client.models.patched_telegram_source_request import PatchedTelegramSourceRequest - from authentik_client.models.patched_tenant_request import PatchedTenantRequest - from authentik_client.models.patched_token_request import PatchedTokenRequest - from authentik_client.models.patched_unique_password_policy_request import PatchedUniquePasswordPolicyRequest - from authentik_client.models.patched_user_delete_stage_request import PatchedUserDeleteStageRequest - from authentik_client.models.patched_user_kerberos_source_connection_request import PatchedUserKerberosSourceConnectionRequest - from authentik_client.models.patched_user_ldap_source_connection_request import PatchedUserLDAPSourceConnectionRequest - from authentik_client.models.patched_user_login_stage_request import PatchedUserLoginStageRequest - from authentik_client.models.patched_user_logout_stage_request import PatchedUserLogoutStageRequest - from authentik_client.models.patched_user_o_auth_source_connection_request import PatchedUserOAuthSourceConnectionRequest - from authentik_client.models.patched_user_plex_source_connection_request import PatchedUserPlexSourceConnectionRequest - from authentik_client.models.patched_user_request import PatchedUserRequest - from authentik_client.models.patched_user_saml_source_connection_request import PatchedUserSAMLSourceConnectionRequest - from authentik_client.models.patched_user_source_connection_request import PatchedUserSourceConnectionRequest - from authentik_client.models.patched_user_telegram_source_connection_request import PatchedUserTelegramSourceConnectionRequest - from authentik_client.models.patched_user_write_stage_request import PatchedUserWriteStageRequest - from authentik_client.models.patched_web_authn_device_request import PatchedWebAuthnDeviceRequest - from authentik_client.models.permission import Permission - from authentik_client.models.permission_assign_request import PermissionAssignRequest - from authentik_client.models.permission_assign_result import PermissionAssignResult - from authentik_client.models.plex_authentication_challenge import PlexAuthenticationChallenge - from authentik_client.models.plex_authentication_challenge_response_request import PlexAuthenticationChallengeResponseRequest - from authentik_client.models.plex_source import PlexSource - from authentik_client.models.plex_source_property_mapping import PlexSourcePropertyMapping - from authentik_client.models.plex_source_property_mapping_request import PlexSourcePropertyMappingRequest - from authentik_client.models.plex_source_request import PlexSourceRequest - from authentik_client.models.plex_token_redeem_request import PlexTokenRedeemRequest - from authentik_client.models.policy import Policy - from authentik_client.models.policy_binding import PolicyBinding - from authentik_client.models.policy_binding_request import PolicyBindingRequest - from authentik_client.models.policy_engine_mode import PolicyEngineMode - from authentik_client.models.policy_test_request import PolicyTestRequest - from authentik_client.models.policy_test_result import PolicyTestResult - from authentik_client.models.prompt import Prompt - from authentik_client.models.prompt_challenge import PromptChallenge - from authentik_client.models.prompt_challenge_response_request import PromptChallengeResponseRequest - from authentik_client.models.prompt_request import PromptRequest - from authentik_client.models.prompt_stage import PromptStage - from authentik_client.models.prompt_stage_request import PromptStageRequest - from authentik_client.models.prompt_type_enum import PromptTypeEnum - from authentik_client.models.property_mapping import PropertyMapping - from authentik_client.models.property_mapping_preview import PropertyMappingPreview - from authentik_client.models.property_mapping_test_request import PropertyMappingTestRequest - from authentik_client.models.property_mapping_test_result import PropertyMappingTestResult - from authentik_client.models.protocol_enum import ProtocolEnum - from authentik_client.models.provider import Provider - from authentik_client.models.provider_enum import ProviderEnum - from authentik_client.models.provider_model_enum import ProviderModelEnum - from authentik_client.models.provider_type_enum import ProviderTypeEnum - from authentik_client.models.proxy_mode import ProxyMode - from authentik_client.models.proxy_outpost_config import ProxyOutpostConfig - from authentik_client.models.proxy_provider import ProxyProvider - from authentik_client.models.proxy_provider_request import ProxyProviderRequest - from authentik_client.models.rac_property_mapping import RACPropertyMapping - from authentik_client.models.rac_property_mapping_request import RACPropertyMappingRequest - from authentik_client.models.rac_provider import RACProvider - from authentik_client.models.rac_provider_request import RACProviderRequest - from authentik_client.models.radius_check_access import RadiusCheckAccess - from authentik_client.models.radius_outpost_config import RadiusOutpostConfig - from authentik_client.models.radius_provider import RadiusProvider - from authentik_client.models.radius_provider_property_mapping import RadiusProviderPropertyMapping - from authentik_client.models.radius_provider_property_mapping_request import RadiusProviderPropertyMappingRequest - from authentik_client.models.radius_provider_request import RadiusProviderRequest - from authentik_client.models.redirect_challenge import RedirectChallenge - from authentik_client.models.redirect_challenge_response_request import RedirectChallengeResponseRequest - from authentik_client.models.redirect_stage import RedirectStage - from authentik_client.models.redirect_stage_mode_enum import RedirectStageModeEnum - from authentik_client.models.redirect_stage_request import RedirectStageRequest - from authentik_client.models.redirect_uri import RedirectURI - from authentik_client.models.redirect_uri_request import RedirectURIRequest - from authentik_client.models.reputation import Reputation - from authentik_client.models.reputation_policy import ReputationPolicy - from authentik_client.models.reputation_policy_request import ReputationPolicyRequest - from authentik_client.models.resident_key_requirement_enum import ResidentKeyRequirementEnum - from authentik_client.models.role import Role - from authentik_client.models.role_assigned_object_permission import RoleAssignedObjectPermission - from authentik_client.models.role_object_permission import RoleObjectPermission - from authentik_client.models.role_request import RoleRequest - from authentik_client.models.saml_bindings_enum import SAMLBindingsEnum - from authentik_client.models.saml_metadata import SAMLMetadata - from authentik_client.models.saml_name_id_policy_enum import SAMLNameIDPolicyEnum - from authentik_client.models.saml_property_mapping import SAMLPropertyMapping - from authentik_client.models.saml_property_mapping_request import SAMLPropertyMappingRequest - from authentik_client.models.saml_provider import SAMLProvider - from authentik_client.models.saml_provider_logout_method_enum import SAMLProviderLogoutMethodEnum - from authentik_client.models.saml_provider_request import SAMLProviderRequest - from authentik_client.models.saml_source import SAMLSource - from authentik_client.models.saml_source_property_mapping import SAMLSourcePropertyMapping - from authentik_client.models.saml_source_property_mapping_request import SAMLSourcePropertyMappingRequest - from authentik_client.models.saml_source_request import SAMLSourceRequest - from authentik_client.models.scim_authentication_mode_enum import SCIMAuthenticationModeEnum - from authentik_client.models.scim_mapping import SCIMMapping - from authentik_client.models.scim_mapping_request import SCIMMappingRequest - from authentik_client.models.scim_provider import SCIMProvider - from authentik_client.models.scim_provider_group import SCIMProviderGroup - from authentik_client.models.scim_provider_group_request import SCIMProviderGroupRequest - from authentik_client.models.scim_provider_request import SCIMProviderRequest - from authentik_client.models.scim_provider_user import SCIMProviderUser - from authentik_client.models.scim_provider_user_request import SCIMProviderUserRequest - from authentik_client.models.scim_source import SCIMSource - from authentik_client.models.scim_source_group import SCIMSourceGroup - from authentik_client.models.scim_source_group_request import SCIMSourceGroupRequest - from authentik_client.models.scim_source_property_mapping import SCIMSourcePropertyMapping - from authentik_client.models.scim_source_property_mapping_request import SCIMSourcePropertyMappingRequest - from authentik_client.models.scim_source_request import SCIMSourceRequest - from authentik_client.models.scim_source_user import SCIMSourceUser - from authentik_client.models.scim_source_user_request import SCIMSourceUserRequest - from authentik_client.models.sms_device import SMSDevice - from authentik_client.models.sms_device_request import SMSDeviceRequest - from authentik_client.models.ssf_provider import SSFProvider - from authentik_client.models.ssf_provider_request import SSFProviderRequest - from authentik_client.models.ssf_stream import SSFStream - from authentik_client.models.schedule import Schedule - from authentik_client.models.schedule_request import ScheduleRequest - from authentik_client.models.scope_mapping import ScopeMapping - from authentik_client.models.scope_mapping_request import ScopeMappingRequest - from authentik_client.models.selectable_stage import SelectableStage - from authentik_client.models.service_connection import ServiceConnection - from authentik_client.models.service_connection_state import ServiceConnectionState - from authentik_client.models.session_end_challenge import SessionEndChallenge - from authentik_client.models.session_user import SessionUser - from authentik_client.models.settings import Settings - from authentik_client.models.settings_request import SettingsRequest - from authentik_client.models.severity_enum import SeverityEnum - from authentik_client.models.shell_challenge import ShellChallenge - from authentik_client.models.signature_algorithm_enum import SignatureAlgorithmEnum - from authentik_client.models.source import Source - from authentik_client.models.source_stage import SourceStage - from authentik_client.models.source_stage_request import SourceStageRequest - from authentik_client.models.source_type import SourceType - from authentik_client.models.stage import Stage - from authentik_client.models.stage_prompt import StagePrompt - from authentik_client.models.state_enum import StateEnum - from authentik_client.models.static_device import StaticDevice - from authentik_client.models.static_device_request import StaticDeviceRequest - from authentik_client.models.static_device_token import StaticDeviceToken - from authentik_client.models.sub_mode_enum import SubModeEnum - from authentik_client.models.sync_object_model_enum import SyncObjectModelEnum - from authentik_client.models.sync_object_request import SyncObjectRequest - from authentik_client.models.sync_object_result import SyncObjectResult - from authentik_client.models.sync_status import SyncStatus - from authentik_client.models.system_info import SystemInfo - from authentik_client.models.system_info_runtime import SystemInfoRuntime - from authentik_client.models.totp_device import TOTPDevice - from authentik_client.models.totp_device_request import TOTPDeviceRequest - from authentik_client.models.task import Task - from authentik_client.models.task_aggregated_status_enum import TaskAggregatedStatusEnum - from authentik_client.models.telegram_challenge_response_request import TelegramChallengeResponseRequest - from authentik_client.models.telegram_login_challenge import TelegramLoginChallenge - from authentik_client.models.telegram_source import TelegramSource - from authentik_client.models.telegram_source_property_mapping import TelegramSourcePropertyMapping - from authentik_client.models.telegram_source_property_mapping_request import TelegramSourcePropertyMappingRequest - from authentik_client.models.telegram_source_request import TelegramSourceRequest - from authentik_client.models.tenant import Tenant - from authentik_client.models.tenant_admin_group_request_request import TenantAdminGroupRequestRequest - from authentik_client.models.tenant_recovery_key_request_request import TenantRecoveryKeyRequestRequest - from authentik_client.models.tenant_recovery_key_response import TenantRecoveryKeyResponse - from authentik_client.models.tenant_request import TenantRequest - from authentik_client.models.token import Token - from authentik_client.models.token_model import TokenModel - from authentik_client.models.token_request import TokenRequest - from authentik_client.models.token_set_key_request import TokenSetKeyRequest - from authentik_client.models.token_view import TokenView - from authentik_client.models.transaction_application_request import TransactionApplicationRequest - from authentik_client.models.transaction_application_response import TransactionApplicationResponse - from authentik_client.models.transaction_policy_binding_request import TransactionPolicyBindingRequest - from authentik_client.models.type_create import TypeCreate - from authentik_client.models.ui_theme_enum import UiThemeEnum - from authentik_client.models.unique_password_policy import UniquePasswordPolicy - from authentik_client.models.unique_password_policy_request import UniquePasswordPolicyRequest - from authentik_client.models.used_by import UsedBy - from authentik_client.models.used_by_action_enum import UsedByActionEnum - from authentik_client.models.user import User - from authentik_client.models.user_account_request import UserAccountRequest - from authentik_client.models.user_assigned_object_permission import UserAssignedObjectPermission - from authentik_client.models.user_attribute_enum import UserAttributeEnum - from authentik_client.models.user_consent import UserConsent - from authentik_client.models.user_creation_mode_enum import UserCreationModeEnum - from authentik_client.models.user_delete_stage import UserDeleteStage - from authentik_client.models.user_delete_stage_request import UserDeleteStageRequest - from authentik_client.models.user_fields_enum import UserFieldsEnum - from authentik_client.models.user_kerberos_source_connection import UserKerberosSourceConnection - from authentik_client.models.user_kerberos_source_connection_request import UserKerberosSourceConnectionRequest - from authentik_client.models.user_ldap_source_connection import UserLDAPSourceConnection - from authentik_client.models.user_ldap_source_connection_request import UserLDAPSourceConnectionRequest - from authentik_client.models.user_login_challenge import UserLoginChallenge - from authentik_client.models.user_login_challenge_response_request import UserLoginChallengeResponseRequest - from authentik_client.models.user_login_stage import UserLoginStage - from authentik_client.models.user_login_stage_request import UserLoginStageRequest - from authentik_client.models.user_logout_stage import UserLogoutStage - from authentik_client.models.user_logout_stage_request import UserLogoutStageRequest - from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum - from authentik_client.models.user_o_auth_source_connection import UserOAuthSourceConnection - from authentik_client.models.user_o_auth_source_connection_request import UserOAuthSourceConnectionRequest - from authentik_client.models.user_object_permission import UserObjectPermission - from authentik_client.models.user_password_set_request import UserPasswordSetRequest - from authentik_client.models.user_path import UserPath - from authentik_client.models.user_plex_source_connection import UserPlexSourceConnection - from authentik_client.models.user_plex_source_connection_request import UserPlexSourceConnectionRequest - from authentik_client.models.user_request import UserRequest - from authentik_client.models.user_saml_source_connection import UserSAMLSourceConnection - from authentik_client.models.user_saml_source_connection_request import UserSAMLSourceConnectionRequest - from authentik_client.models.user_self import UserSelf - from authentik_client.models.user_self_groups import UserSelfGroups - from authentik_client.models.user_service_account_request import UserServiceAccountRequest - from authentik_client.models.user_service_account_response import UserServiceAccountResponse - from authentik_client.models.user_setting import UserSetting - from authentik_client.models.user_source_connection import UserSourceConnection - from authentik_client.models.user_source_connection_request import UserSourceConnectionRequest - from authentik_client.models.user_telegram_source_connection import UserTelegramSourceConnection - from authentik_client.models.user_telegram_source_connection_request import UserTelegramSourceConnectionRequest - from authentik_client.models.user_type_enum import UserTypeEnum - from authentik_client.models.user_verification_enum import UserVerificationEnum - from authentik_client.models.user_write_stage import UserWriteStage - from authentik_client.models.user_write_stage_request import UserWriteStageRequest - from authentik_client.models.validation_error import ValidationError - from authentik_client.models.version import Version - from authentik_client.models.version_history import VersionHistory - from authentik_client.models.web_authn_device import WebAuthnDevice - from authentik_client.models.web_authn_device_request import WebAuthnDeviceRequest - from authentik_client.models.web_authn_device_type import WebAuthnDeviceType - from authentik_client.models.worker import Worker - -else: - from lazy_imports import LazyModule, as_package, load - - load( - LazyModule( - *as_package(__file__), - """# import models into model package +# import models into model package from authentik_client.models.access_denied_challenge import AccessDeniedChallenge +from authentik_client.models.agent_authentication_response import AgentAuthenticationResponse +from authentik_client.models.agent_config import AgentConfig +from authentik_client.models.agent_connector import AgentConnector +from authentik_client.models.agent_connector_request import AgentConnectorRequest +from authentik_client.models.agent_psso_device_registration_request import AgentPSSODeviceRegistrationRequest +from authentik_client.models.agent_psso_device_registration_response import AgentPSSODeviceRegistrationResponse +from authentik_client.models.agent_psso_user_registration_request import AgentPSSOUserRegistrationRequest +from authentik_client.models.agent_token_response import AgentTokenResponse from authentik_client.models.alg_enum import AlgEnum from authentik_client.models.app import App from authentik_client.models.app_enum import AppEnum @@ -872,17 +102,20 @@ from authentik_client.models.config import Config from authentik_client.models.connection_token import ConnectionToken from authentik_client.models.connection_token_request import ConnectionTokenRequest +from authentik_client.models.connector import Connector from authentik_client.models.consent_challenge import ConsentChallenge from authentik_client.models.consent_challenge_response_request import ConsentChallengeResponseRequest from authentik_client.models.consent_permission import ConsentPermission from authentik_client.models.consent_stage import ConsentStage from authentik_client.models.consent_stage_mode_enum import ConsentStageModeEnum from authentik_client.models.consent_stage_request import ConsentStageRequest +from authentik_client.models.content_type import ContentType from authentik_client.models.contextual_flow_info import ContextualFlowInfo from authentik_client.models.contextual_flow_info_layout_enum import ContextualFlowInfoLayoutEnum from authentik_client.models.country_code_enum import CountryCodeEnum from authentik_client.models.current_brand import CurrentBrand from authentik_client.models.current_brand_flags import CurrentBrandFlags +from authentik_client.models.data_export import DataExport from authentik_client.models.delivery_method_enum import DeliveryMethodEnum from authentik_client.models.denied_action_enum import DeniedActionEnum from authentik_client.models.deny_stage import DenyStage @@ -890,11 +123,27 @@ from authentik_client.models.detailed_country import DetailedCountry from authentik_client.models.detailed_country_field import DetailedCountryField from authentik_client.models.device import Device +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest from authentik_client.models.device_challenge import DeviceChallenge from authentik_client.models.device_challenge_request import DeviceChallengeRequest from authentik_client.models.device_classes_enum import DeviceClassesEnum +from authentik_client.models.device_connection import DeviceConnection +from authentik_client.models.device_fact_snapshot import DeviceFactSnapshot +from authentik_client.models.device_facts import DeviceFacts +from authentik_client.models.device_facts_os_family import DeviceFactsOSFamily +from authentik_client.models.device_facts_request import DeviceFactsRequest +from authentik_client.models.device_group import DeviceGroup +from authentik_client.models.device_group_request import DeviceGroupRequest +from authentik_client.models.device_summary import DeviceSummary +from authentik_client.models.device_user import DeviceUser +from authentik_client.models.device_user_binding import DeviceUserBinding +from authentik_client.models.device_user_binding_request import DeviceUserBindingRequest +from authentik_client.models.device_user_request import DeviceUserRequest from authentik_client.models.digest_algorithm_enum import DigestAlgorithmEnum from authentik_client.models.digits_enum import DigitsEnum +from authentik_client.models.disk import Disk +from authentik_client.models.disk_request import DiskRequest from authentik_client.models.docker_service_connection import DockerServiceConnection from authentik_client.models.docker_service_connection_request import DockerServiceConnectionRequest from authentik_client.models.domain import Domain @@ -916,10 +165,18 @@ from authentik_client.models.email_stage import EmailStage from authentik_client.models.email_stage_request import EmailStageRequest from authentik_client.models.endpoint import Endpoint +from authentik_client.models.endpoint_agent_challenge import EndpointAgentChallenge +from authentik_client.models.endpoint_agent_challenge_response_request import EndpointAgentChallengeResponseRequest from authentik_client.models.endpoint_auth_mode_enum import EndpointAuthModeEnum from authentik_client.models.endpoint_device import EndpointDevice +from authentik_client.models.endpoint_device_details import EndpointDeviceDetails from authentik_client.models.endpoint_device_request import EndpointDeviceRequest from authentik_client.models.endpoint_request import EndpointRequest +from authentik_client.models.endpoint_stage import EndpointStage +from authentik_client.models.endpoint_stage_request import EndpointStageRequest +from authentik_client.models.enroll_request import EnrollRequest +from authentik_client.models.enrollment_token import EnrollmentToken +from authentik_client.models.enrollment_token_request import EnrollmentTokenRequest from authentik_client.models.error_detail import ErrorDetail from authentik_client.models.error_reporting_config import ErrorReportingConfig from authentik_client.models.event import Event @@ -934,10 +191,7 @@ from authentik_client.models.expression_policy import ExpressionPolicy from authentik_client.models.expression_policy_request import ExpressionPolicyRequest from authentik_client.models.extra_role_object_permission import ExtraRoleObjectPermission -from authentik_client.models.extra_role_object_permission_request import ExtraRoleObjectPermissionRequest -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission -from authentik_client.models.extra_user_object_permission_request import ExtraUserObjectPermissionRequest -from authentik_client.models.file_path_request import FilePathRequest +from authentik_client.models.file_list import FileList from authentik_client.models.flow import Flow from authentik_client.models.flow_challenge_response_request import FlowChallengeResponseRequest from authentik_client.models.flow_designation_enum import FlowDesignationEnum @@ -949,7 +203,6 @@ from authentik_client.models.flow_layout_enum import FlowLayoutEnum from authentik_client.models.flow_request import FlowRequest from authentik_client.models.flow_set import FlowSet -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.flow_stage_binding import FlowStageBinding from authentik_client.models.flow_stage_binding_request import FlowStageBindingRequest from authentik_client.models.footer_link import FooterLink @@ -960,6 +213,8 @@ from authentik_client.models.geo_ip_policy_request import GeoIPPolicyRequest from authentik_client.models.geoip_binding_enum import GeoipBindingEnum from authentik_client.models.global_task_status import GlobalTaskStatus +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice +from authentik_client.models.google_endpoint_device_request import GoogleEndpointDeviceRequest from authentik_client.models.google_workspace_provider import GoogleWorkspaceProvider from authentik_client.models.google_workspace_provider_group import GoogleWorkspaceProviderGroup from authentik_client.models.google_workspace_provider_group_request import GoogleWorkspaceProviderGroupRequest @@ -969,7 +224,6 @@ from authentik_client.models.google_workspace_provider_user import GoogleWorkspaceProviderUser from authentik_client.models.google_workspace_provider_user_request import GoogleWorkspaceProviderUserRequest from authentik_client.models.group import Group -from authentik_client.models.group_child import GroupChild from authentik_client.models.group_kerberos_source_connection import GroupKerberosSourceConnection from authentik_client.models.group_kerberos_source_connection_request import GroupKerberosSourceConnectionRequest from authentik_client.models.group_ldap_source_connection import GroupLDAPSourceConnection @@ -986,6 +240,8 @@ from authentik_client.models.group_source_connection_request import GroupSourceConnectionRequest from authentik_client.models.group_telegram_source_connection import GroupTelegramSourceConnection from authentik_client.models.group_telegram_source_connection_request import GroupTelegramSourceConnectionRequest +from authentik_client.models.hardware import Hardware +from authentik_client.models.hardware_request import HardwareRequest from authentik_client.models.identification_challenge import IdentificationChallenge from authentik_client.models.identification_challenge_response_request import IdentificationChallengeResponseRequest from authentik_client.models.identification_stage import IdentificationStage @@ -994,7 +250,6 @@ from authentik_client.models.iframe_logout_challenge_response_request import IframeLogoutChallengeResponseRequest from authentik_client.models.impersonation_request import ImpersonationRequest from authentik_client.models.initial_permissions import InitialPermissions -from authentik_client.models.initial_permissions_mode_enum import InitialPermissionsModeEnum from authentik_client.models.initial_permissions_request import InitialPermissionsRequest from authentik_client.models.install_id import InstallID from authentik_client.models.intent_enum import IntentEnum @@ -1009,6 +264,7 @@ from authentik_client.models.kerberos_source_property_mapping import KerberosSourcePropertyMapping from authentik_client.models.kerberos_source_property_mapping_request import KerberosSourcePropertyMappingRequest from authentik_client.models.kerberos_source_request import KerberosSourceRequest +from authentik_client.models.key_type_enum import KeyTypeEnum from authentik_client.models.kubernetes_service_connection import KubernetesServiceConnection from authentik_client.models.kubernetes_service_connection_request import KubernetesServiceConnectionRequest from authentik_client.models.ldapapi_access_mode import LDAPAPIAccessMode @@ -1026,6 +282,7 @@ from authentik_client.models.license_flags_enum import LicenseFlagsEnum from authentik_client.models.license_forecast import LicenseForecast from authentik_client.models.license_request import LicenseRequest +from authentik_client.models.license_status_enum import LicenseStatusEnum from authentik_client.models.license_summary import LicenseSummary from authentik_client.models.license_summary_status_enum import LicenseSummaryStatusEnum from authentik_client.models.link import Link @@ -1033,6 +290,8 @@ from authentik_client.models.log_level_enum import LogLevelEnum from authentik_client.models.login_challenge_types import LoginChallengeTypes from authentik_client.models.login_source import LoginSource +from authentik_client.models.mdm_config_request import MDMConfigRequest +from authentik_client.models.mdm_config_response import MDMConfigResponse from authentik_client.models.matching_mode_enum import MatchingModeEnum from authentik_client.models.metadata import Metadata from authentik_client.models.microsoft_entra_provider import MicrosoftEntraProvider @@ -1046,11 +305,14 @@ from authentik_client.models.model_enum import ModelEnum from authentik_client.models.model_request import ModelRequest from authentik_client.models.mutual_tls_stage import MutualTLSStage -from authentik_client.models.mutual_tls_stage_mode_enum import MutualTLSStageModeEnum from authentik_client.models.mutual_tls_stage_request import MutualTLSStageRequest from authentik_client.models.native_logout_challenge import NativeLogoutChallenge from authentik_client.models.native_logout_challenge_response_request import NativeLogoutChallengeResponseRequest +from authentik_client.models.network import Network from authentik_client.models.network_binding_enum import NetworkBindingEnum +from authentik_client.models.network_interface import NetworkInterface +from authentik_client.models.network_interface_request import NetworkInterfaceRequest +from authentik_client.models.network_request import NetworkRequest from authentik_client.models.not_configured_action_enum import NotConfiguredActionEnum from authentik_client.models.notification import Notification from authentik_client.models.notification_request import NotificationRequest @@ -1075,12 +337,16 @@ from authentik_client.models.o_auth_source_property_mapping_request import OAuthSourcePropertyMappingRequest from authentik_client.models.o_auth_source_request import OAuthSourceRequest from authentik_client.models.open_id_connect_configuration import OpenIDConnectConfiguration +from authentik_client.models.operating_system import OperatingSystem +from authentik_client.models.operating_system_request import OperatingSystemRequest from authentik_client.models.outgoing_sync_delete_action import OutgoingSyncDeleteAction from authentik_client.models.outpost import Outpost from authentik_client.models.outpost_default_config import OutpostDefaultConfig from authentik_client.models.outpost_health import OutpostHealth from authentik_client.models.outpost_request import OutpostRequest from authentik_client.models.outpost_type_enum import OutpostTypeEnum +from authentik_client.models.pkce_method_enum import PKCEMethodEnum +from authentik_client.models.paginated_agent_connector_list import PaginatedAgentConnectorList from authentik_client.models.paginated_application_entitlement_list import PaginatedApplicationEntitlementList from authentik_client.models.paginated_application_list import PaginatedApplicationList from authentik_client.models.paginated_authenticated_session_list import PaginatedAuthenticatedSessionList @@ -1097,8 +363,12 @@ from authentik_client.models.paginated_captcha_stage_list import PaginatedCaptchaStageList from authentik_client.models.paginated_certificate_key_pair_list import PaginatedCertificateKeyPairList from authentik_client.models.paginated_connection_token_list import PaginatedConnectionTokenList +from authentik_client.models.paginated_connector_list import PaginatedConnectorList from authentik_client.models.paginated_consent_stage_list import PaginatedConsentStageList +from authentik_client.models.paginated_data_export_list import PaginatedDataExportList from authentik_client.models.paginated_deny_stage_list import PaginatedDenyStageList +from authentik_client.models.paginated_device_access_group_list import PaginatedDeviceAccessGroupList +from authentik_client.models.paginated_device_user_binding_list import PaginatedDeviceUserBindingList from authentik_client.models.paginated_docker_service_connection_list import PaginatedDockerServiceConnectionList from authentik_client.models.paginated_domain_list import PaginatedDomainList from authentik_client.models.paginated_dummy_policy_list import PaginatedDummyPolicyList @@ -1108,15 +378,17 @@ from authentik_client.models.paginated_email_stage_list import PaginatedEmailStageList from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList from authentik_client.models.paginated_endpoint_list import PaginatedEndpointList +from authentik_client.models.paginated_endpoint_stage_list import PaginatedEndpointStageList +from authentik_client.models.paginated_enrollment_token_list import PaginatedEnrollmentTokenList from authentik_client.models.paginated_event_list import PaginatedEventList from authentik_client.models.paginated_event_matcher_policy_list import PaginatedEventMatcherPolicyList from authentik_client.models.paginated_expiring_base_grant_model_list import PaginatedExpiringBaseGrantModelList from authentik_client.models.paginated_expression_policy_list import PaginatedExpressionPolicyList from authentik_client.models.paginated_extra_role_object_permission_list import PaginatedExtraRoleObjectPermissionList -from authentik_client.models.paginated_extra_user_object_permission_list import PaginatedExtraUserObjectPermissionList from authentik_client.models.paginated_flow_list import PaginatedFlowList from authentik_client.models.paginated_flow_stage_binding_list import PaginatedFlowStageBindingList from authentik_client.models.paginated_geo_ip_policy_list import PaginatedGeoIPPolicyList +from authentik_client.models.paginated_google_endpoint_device_list import PaginatedGoogleEndpointDeviceList from authentik_client.models.paginated_google_workspace_provider_group_list import PaginatedGoogleWorkspaceProviderGroupList from authentik_client.models.paginated_google_workspace_provider_list import PaginatedGoogleWorkspaceProviderList from authentik_client.models.paginated_google_workspace_provider_mapping_list import PaginatedGoogleWorkspaceProviderMappingList @@ -1208,7 +480,6 @@ from authentik_client.models.paginated_token_list import PaginatedTokenList from authentik_client.models.paginated_token_model_list import PaginatedTokenModelList from authentik_client.models.paginated_unique_password_policy_list import PaginatedUniquePasswordPolicyList -from authentik_client.models.paginated_user_assigned_object_permission_list import PaginatedUserAssignedObjectPermissionList from authentik_client.models.paginated_user_consent_list import PaginatedUserConsentList from authentik_client.models.paginated_user_delete_stage_list import PaginatedUserDeleteStageList from authentik_client.models.paginated_user_kerberos_source_connection_list import PaginatedUserKerberosSourceConnectionList @@ -1235,6 +506,7 @@ from authentik_client.models.password_policy_request import PasswordPolicyRequest from authentik_client.models.password_stage import PasswordStage from authentik_client.models.password_stage_request import PasswordStageRequest +from authentik_client.models.patched_agent_connector_request import PatchedAgentConnectorRequest from authentik_client.models.patched_application_entitlement_request import PatchedApplicationEntitlementRequest from authentik_client.models.patched_application_request import PatchedApplicationRequest from authentik_client.models.patched_authenticator_duo_stage_request import PatchedAuthenticatorDuoStageRequest @@ -1252,6 +524,8 @@ from authentik_client.models.patched_connection_token_request import PatchedConnectionTokenRequest from authentik_client.models.patched_consent_stage_request import PatchedConsentStageRequest from authentik_client.models.patched_deny_stage_request import PatchedDenyStageRequest +from authentik_client.models.patched_device_access_group_request import PatchedDeviceAccessGroupRequest +from authentik_client.models.patched_device_user_binding_request import PatchedDeviceUserBindingRequest from authentik_client.models.patched_docker_service_connection_request import PatchedDockerServiceConnectionRequest from authentik_client.models.patched_domain_request import PatchedDomainRequest from authentik_client.models.patched_dummy_policy_request import PatchedDummyPolicyRequest @@ -1261,14 +535,15 @@ from authentik_client.models.patched_email_stage_request import PatchedEmailStageRequest from authentik_client.models.patched_endpoint_device_request import PatchedEndpointDeviceRequest from authentik_client.models.patched_endpoint_request import PatchedEndpointRequest +from authentik_client.models.patched_endpoint_stage_request import PatchedEndpointStageRequest +from authentik_client.models.patched_enrollment_token_request import PatchedEnrollmentTokenRequest from authentik_client.models.patched_event_matcher_policy_request import PatchedEventMatcherPolicyRequest from authentik_client.models.patched_event_request import PatchedEventRequest from authentik_client.models.patched_expression_policy_request import PatchedExpressionPolicyRequest -from authentik_client.models.patched_extra_role_object_permission_request import PatchedExtraRoleObjectPermissionRequest -from authentik_client.models.patched_extra_user_object_permission_request import PatchedExtraUserObjectPermissionRequest from authentik_client.models.patched_flow_request import PatchedFlowRequest from authentik_client.models.patched_flow_stage_binding_request import PatchedFlowStageBindingRequest from authentik_client.models.patched_geo_ip_policy_request import PatchedGeoIPPolicyRequest +from authentik_client.models.patched_google_endpoint_device_request import PatchedGoogleEndpointDeviceRequest from authentik_client.models.patched_google_workspace_provider_mapping_request import PatchedGoogleWorkspaceProviderMappingRequest from authentik_client.models.patched_google_workspace_provider_request import PatchedGoogleWorkspaceProviderRequest from authentik_client.models.patched_group_kerberos_source_connection_request import PatchedGroupKerberosSourceConnectionRequest @@ -1371,9 +646,12 @@ from authentik_client.models.policy_engine_mode import PolicyEngineMode from authentik_client.models.policy_test_request import PolicyTestRequest from authentik_client.models.policy_test_result import PolicyTestResult +from authentik_client.models.process import Process +from authentik_client.models.process_request import ProcessRequest from authentik_client.models.prompt import Prompt from authentik_client.models.prompt_challenge import PromptChallenge from authentik_client.models.prompt_challenge_response_request import PromptChallengeResponseRequest +from authentik_client.models.prompt_choice import PromptChoice from authentik_client.models.prompt_request import PromptRequest from authentik_client.models.prompt_stage import PromptStage from authentik_client.models.prompt_stage_request import PromptStageRequest @@ -1408,12 +686,14 @@ from authentik_client.models.redirect_stage_request import RedirectStageRequest from authentik_client.models.redirect_uri import RedirectURI from authentik_client.models.redirect_uri_request import RedirectURIRequest +from authentik_client.models.related_group import RelatedGroup from authentik_client.models.reputation import Reputation from authentik_client.models.reputation_policy import ReputationPolicy from authentik_client.models.reputation_policy_request import ReputationPolicyRequest from authentik_client.models.resident_key_requirement_enum import ResidentKeyRequirementEnum from authentik_client.models.role import Role from authentik_client.models.role_assigned_object_permission import RoleAssignedObjectPermission +from authentik_client.models.role_model_permission import RoleModelPermission from authentik_client.models.role_object_permission import RoleObjectPermission from authentik_client.models.role_request import RoleRequest from authentik_client.models.saml_bindings_enum import SAMLBindingsEnum @@ -1464,11 +744,14 @@ from authentik_client.models.severity_enum import SeverityEnum from authentik_client.models.shell_challenge import ShellChallenge from authentik_client.models.signature_algorithm_enum import SignatureAlgorithmEnum +from authentik_client.models.software import Software +from authentik_client.models.software_request import SoftwareRequest from authentik_client.models.source import Source from authentik_client.models.source_stage import SourceStage from authentik_client.models.source_stage_request import SourceStageRequest from authentik_client.models.source_type import SourceType from authentik_client.models.stage import Stage +from authentik_client.models.stage_mode_enum import StageModeEnum from authentik_client.models.stage_prompt import StagePrompt from authentik_client.models.state_enum import StateEnum from authentik_client.models.static_device import StaticDevice @@ -1478,6 +761,7 @@ from authentik_client.models.sync_object_model_enum import SyncObjectModelEnum from authentik_client.models.sync_object_request import SyncObjectRequest from authentik_client.models.sync_object_result import SyncObjectResult +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum from authentik_client.models.sync_status import SyncStatus from authentik_client.models.system_info import SystemInfo from authentik_client.models.system_info_runtime import SystemInfoRuntime @@ -1485,6 +769,7 @@ from authentik_client.models.totp_device_request import TOTPDeviceRequest from authentik_client.models.task import Task from authentik_client.models.task_aggregated_status_enum import TaskAggregatedStatusEnum +from authentik_client.models.telegram_auth_request import TelegramAuthRequest from authentik_client.models.telegram_challenge_response_request import TelegramChallengeResponseRequest from authentik_client.models.telegram_login_challenge import TelegramLoginChallenge from authentik_client.models.telegram_source import TelegramSource @@ -1496,6 +781,7 @@ from authentik_client.models.tenant_recovery_key_request_request import TenantRecoveryKeyRequestRequest from authentik_client.models.tenant_recovery_key_response import TenantRecoveryKeyResponse from authentik_client.models.tenant_request import TenantRequest +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.token import Token from authentik_client.models.token_model import TokenModel from authentik_client.models.token_request import TokenRequest @@ -1512,7 +798,7 @@ from authentik_client.models.used_by_action_enum import UsedByActionEnum from authentik_client.models.user import User from authentik_client.models.user_account_request import UserAccountRequest -from authentik_client.models.user_assigned_object_permission import UserAssignedObjectPermission +from authentik_client.models.user_account_serializer_for_role_request import UserAccountSerializerForRoleRequest from authentik_client.models.user_attribute_enum import UserAttributeEnum from authentik_client.models.user_consent import UserConsent from authentik_client.models.user_creation_mode_enum import UserCreationModeEnum @@ -1532,7 +818,6 @@ from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from authentik_client.models.user_o_auth_source_connection import UserOAuthSourceConnection from authentik_client.models.user_o_auth_source_connection_request import UserOAuthSourceConnectionRequest -from authentik_client.models.user_object_permission import UserObjectPermission from authentik_client.models.user_password_set_request import UserPasswordSetRequest from authentik_client.models.user_path import UserPath from authentik_client.models.user_plex_source_connection import UserPlexSourceConnection @@ -1542,6 +827,7 @@ from authentik_client.models.user_saml_source_connection_request import UserSAMLSourceConnectionRequest from authentik_client.models.user_self import UserSelf from authentik_client.models.user_self_groups import UserSelfGroups +from authentik_client.models.user_self_roles import UserSelfRoles from authentik_client.models.user_service_account_request import UserServiceAccountRequest from authentik_client.models.user_service_account_response import UserServiceAccountResponse from authentik_client.models.user_setting import UserSetting @@ -1561,8 +847,3 @@ from authentik_client.models.web_authn_device_type import WebAuthnDeviceType from authentik_client.models.worker import Worker -""", - name=__name__, - doc=__doc__, - ) - ) diff --git a/authentik_client/models/access_denied_challenge.py b/authentik_client/models/access_denied_challenge.py index a2d0dae6d..784ebd4a2 100644 --- a/authentik_client/models/access_denied_challenge.py +++ b/authentik_client/models/access_denied_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/file_path_request.py b/authentik_client/models/agent_authentication_response.py similarity index 84% rename from authentik_client/models/file_path_request.py rename to authentik_client/models/agent_authentication_response.py index 60d9d0699..f26004b09 100644 --- a/authentik_client/models/file_path_request.py +++ b/authentik_client/models/agent_authentication_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,17 +18,16 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List -from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -class FilePathRequest(BaseModel): +class AgentAuthenticationResponse(BaseModel): """ - Serializer to upload file + Base serializer class which doesn't implement create/update methods """ # noqa: E501 - url: Annotated[str, Field(min_length=1, strict=True)] + url: StrictStr __properties: ClassVar[List[str]] = ["url"] model_config = ConfigDict( @@ -49,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FilePathRequest from a JSON string""" + """Create an instance of AgentAuthenticationResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FilePathRequest from a dict""" + """Create an instance of AgentAuthenticationResponse from a dict""" if obj is None: return None diff --git a/authentik_client/models/agent_config.py b/authentik_client/models/agent_config.py new file mode 100644 index 000000000..3f2372c25 --- /dev/null +++ b/authentik_client/models/agent_config.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from authentik_client.models.config import Config +from authentik_client.models.license_status_enum import LicenseStatusEnum +from typing import Optional, Set +from typing_extensions import Self + +class AgentConfig(BaseModel): + """ + Base serializer class which doesn't implement create/update methods + """ # noqa: E501 + device_id: StrictStr + refresh_interval: StrictInt + authorization_flow: Optional[StrictStr] + jwks_auth: Dict[str, Any] + jwks_challenge: Optional[Dict[str, Any]] + nss_uid_offset: StrictInt + nss_gid_offset: StrictInt + auth_terminate_session_on_expiry: StrictBool + system_config: Config + license_status: Optional[LicenseStatusEnum] + __properties: ClassVar[List[str]] = ["device_id", "refresh_interval", "authorization_flow", "jwks_auth", "jwks_challenge", "nss_uid_offset", "nss_gid_offset", "auth_terminate_session_on_expiry", "system_config", "license_status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AgentConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "device_id", + "refresh_interval", + "authorization_flow", + "jwks_auth", + "jwks_challenge", + "system_config", + "license_status", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of system_config + if self.system_config: + _dict['system_config'] = self.system_config.to_dict() + # set to None if authorization_flow (nullable) is None + # and model_fields_set contains the field + if self.authorization_flow is None and "authorization_flow" in self.model_fields_set: + _dict['authorization_flow'] = None + + # set to None if jwks_challenge (nullable) is None + # and model_fields_set contains the field + if self.jwks_challenge is None and "jwks_challenge" in self.model_fields_set: + _dict['jwks_challenge'] = None + + # set to None if license_status (nullable) is None + # and model_fields_set contains the field + if self.license_status is None and "license_status" in self.model_fields_set: + _dict['license_status'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AgentConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "device_id": obj.get("device_id"), + "refresh_interval": obj.get("refresh_interval"), + "authorization_flow": obj.get("authorization_flow"), + "jwks_auth": obj.get("jwks_auth"), + "jwks_challenge": obj.get("jwks_challenge"), + "nss_uid_offset": obj.get("nss_uid_offset"), + "nss_gid_offset": obj.get("nss_gid_offset"), + "auth_terminate_session_on_expiry": obj.get("auth_terminate_session_on_expiry"), + "system_config": Config.from_dict(obj["system_config"]) if obj.get("system_config") is not None else None, + "license_status": obj.get("license_status") + }) + return _obj + + diff --git a/authentik_client/models/agent_connector.py b/authentik_client/models/agent_connector.py new file mode 100644 index 000000000..ea60b9599 --- /dev/null +++ b/authentik_client/models/agent_connector.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class AgentConnector(BaseModel): + """ + AgentConnector + """ # noqa: E501 + connector_uuid: Optional[UUID] = None + name: StrictStr + enabled: Optional[StrictBool] = None + component: StrictStr = Field(description="Get object component so that we know how to edit the object") + verbose_name: StrictStr = Field(description="Return object's verbose_name") + verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") + meta_model_name: StrictStr = Field(description="Return internal model name") + snapshot_expiry: Optional[StrictStr] = None + auth_session_duration: Optional[StrictStr] = None + auth_terminate_session_on_expiry: Optional[StrictBool] = None + refresh_interval: Optional[StrictStr] = None + authorization_flow: Optional[UUID] = None + nss_uid_offset: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None + nss_gid_offset: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None + challenge_key: Optional[UUID] = None + challenge_idle_timeout: Optional[StrictStr] = None + challenge_trigger_check_in: Optional[StrictBool] = None + jwt_federation_providers: Optional[List[StrictInt]] = None + __properties: ClassVar[List[str]] = ["connector_uuid", "name", "enabled", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "snapshot_expiry", "auth_session_duration", "auth_terminate_session_on_expiry", "refresh_interval", "authorization_flow", "nss_uid_offset", "nss_gid_offset", "challenge_key", "challenge_idle_timeout", "challenge_trigger_check_in", "jwt_federation_providers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AgentConnector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "component", + "verbose_name", + "verbose_name_plural", + "meta_model_name", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if authorization_flow (nullable) is None + # and model_fields_set contains the field + if self.authorization_flow is None and "authorization_flow" in self.model_fields_set: + _dict['authorization_flow'] = None + + # set to None if challenge_key (nullable) is None + # and model_fields_set contains the field + if self.challenge_key is None and "challenge_key" in self.model_fields_set: + _dict['challenge_key'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AgentConnector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connector_uuid": obj.get("connector_uuid"), + "name": obj.get("name"), + "enabled": obj.get("enabled"), + "component": obj.get("component"), + "verbose_name": obj.get("verbose_name"), + "verbose_name_plural": obj.get("verbose_name_plural"), + "meta_model_name": obj.get("meta_model_name"), + "snapshot_expiry": obj.get("snapshot_expiry"), + "auth_session_duration": obj.get("auth_session_duration"), + "auth_terminate_session_on_expiry": obj.get("auth_terminate_session_on_expiry"), + "refresh_interval": obj.get("refresh_interval"), + "authorization_flow": obj.get("authorization_flow"), + "nss_uid_offset": obj.get("nss_uid_offset"), + "nss_gid_offset": obj.get("nss_gid_offset"), + "challenge_key": obj.get("challenge_key"), + "challenge_idle_timeout": obj.get("challenge_idle_timeout"), + "challenge_trigger_check_in": obj.get("challenge_trigger_check_in"), + "jwt_federation_providers": obj.get("jwt_federation_providers") + }) + return _obj + + diff --git a/authentik_client/models/agent_connector_request.py b/authentik_client/models/agent_connector_request.py new file mode 100644 index 000000000..5eade8e9c --- /dev/null +++ b/authentik_client/models/agent_connector_request.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class AgentConnectorRequest(BaseModel): + """ + AgentConnectorRequest + """ # noqa: E501 + connector_uuid: Optional[UUID] = None + name: Annotated[str, Field(min_length=1, strict=True)] + enabled: Optional[StrictBool] = None + snapshot_expiry: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + auth_session_duration: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + auth_terminate_session_on_expiry: Optional[StrictBool] = None + refresh_interval: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + authorization_flow: Optional[UUID] = None + nss_uid_offset: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None + nss_gid_offset: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None + challenge_key: Optional[UUID] = None + challenge_idle_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + challenge_trigger_check_in: Optional[StrictBool] = None + jwt_federation_providers: Optional[List[StrictInt]] = None + __properties: ClassVar[List[str]] = ["connector_uuid", "name", "enabled", "snapshot_expiry", "auth_session_duration", "auth_terminate_session_on_expiry", "refresh_interval", "authorization_flow", "nss_uid_offset", "nss_gid_offset", "challenge_key", "challenge_idle_timeout", "challenge_trigger_check_in", "jwt_federation_providers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AgentConnectorRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if authorization_flow (nullable) is None + # and model_fields_set contains the field + if self.authorization_flow is None and "authorization_flow" in self.model_fields_set: + _dict['authorization_flow'] = None + + # set to None if challenge_key (nullable) is None + # and model_fields_set contains the field + if self.challenge_key is None and "challenge_key" in self.model_fields_set: + _dict['challenge_key'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AgentConnectorRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connector_uuid": obj.get("connector_uuid"), + "name": obj.get("name"), + "enabled": obj.get("enabled"), + "snapshot_expiry": obj.get("snapshot_expiry"), + "auth_session_duration": obj.get("auth_session_duration"), + "auth_terminate_session_on_expiry": obj.get("auth_terminate_session_on_expiry"), + "refresh_interval": obj.get("refresh_interval"), + "authorization_flow": obj.get("authorization_flow"), + "nss_uid_offset": obj.get("nss_uid_offset"), + "nss_gid_offset": obj.get("nss_gid_offset"), + "challenge_key": obj.get("challenge_key"), + "challenge_idle_timeout": obj.get("challenge_idle_timeout"), + "challenge_trigger_check_in": obj.get("challenge_trigger_check_in"), + "jwt_federation_providers": obj.get("jwt_federation_providers") + }) + return _obj + + diff --git a/authentik_client/models/agent_psso_device_registration_request.py b/authentik_client/models/agent_psso_device_registration_request.py new file mode 100644 index 000000000..9d2757c34 --- /dev/null +++ b/authentik_client/models/agent_psso_device_registration_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AgentPSSODeviceRegistrationRequest(BaseModel): + """ + Register Apple device via Platform SSO + """ # noqa: E501 + device_signing_key: Annotated[str, Field(min_length=1, strict=True)] + device_encryption_key: Annotated[str, Field(min_length=1, strict=True)] + sign_key_id: Annotated[str, Field(min_length=1, strict=True)] + enc_key_id: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["device_signing_key", "device_encryption_key", "sign_key_id", "enc_key_id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AgentPSSODeviceRegistrationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AgentPSSODeviceRegistrationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "device_signing_key": obj.get("device_signing_key"), + "device_encryption_key": obj.get("device_encryption_key"), + "sign_key_id": obj.get("sign_key_id"), + "enc_key_id": obj.get("enc_key_id") + }) + return _obj + + diff --git a/authentik_client/models/agent_psso_device_registration_response.py b/authentik_client/models/agent_psso_device_registration_response.py new file mode 100644 index 000000000..12d5a482f --- /dev/null +++ b/authentik_client/models/agent_psso_device_registration_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AgentPSSODeviceRegistrationResponse(BaseModel): + """ + authentik settings for Platform SSO tokens + """ # noqa: E501 + client_id: StrictStr + issuer: StrictStr + token_endpoint: StrictStr + jwks_endpoint: StrictStr + audience: StrictStr + nonce_endpoint: StrictStr + __properties: ClassVar[List[str]] = ["client_id", "issuer", "token_endpoint", "jwks_endpoint", "audience", "nonce_endpoint"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AgentPSSODeviceRegistrationResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AgentPSSODeviceRegistrationResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "client_id": obj.get("client_id"), + "issuer": obj.get("issuer"), + "token_endpoint": obj.get("token_endpoint"), + "jwks_endpoint": obj.get("jwks_endpoint"), + "audience": obj.get("audience"), + "nonce_endpoint": obj.get("nonce_endpoint") + }) + return _obj + + diff --git a/authentik_client/models/agent_psso_user_registration_request.py b/authentik_client/models/agent_psso_user_registration_request.py new file mode 100644 index 000000000..b36b63bcd --- /dev/null +++ b/authentik_client/models/agent_psso_user_registration_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class AgentPSSOUserRegistrationRequest(BaseModel): + """ + Register Apple device user via Platform SSO + """ # noqa: E501 + user_auth: Annotated[str, Field(min_length=1, strict=True)] + user_secure_enclave_key: Annotated[str, Field(min_length=1, strict=True)] + enclave_key_id: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["user_auth", "user_secure_enclave_key", "enclave_key_id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AgentPSSOUserRegistrationRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AgentPSSOUserRegistrationRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "user_auth": obj.get("user_auth"), + "user_secure_enclave_key": obj.get("user_secure_enclave_key"), + "enclave_key_id": obj.get("enclave_key_id") + }) + return _obj + + diff --git a/authentik_client/models/agent_token_response.py b/authentik_client/models/agent_token_response.py new file mode 100644 index 000000000..d86c0b529 --- /dev/null +++ b/authentik_client/models/agent_token_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AgentTokenResponse(BaseModel): + """ + Base serializer class which doesn't implement create/update methods + """ # noqa: E501 + token: StrictStr + expires_in: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["token", "expires_in"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AgentTokenResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AgentTokenResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "token": obj.get("token"), + "expires_in": obj.get("expires_in") + }) + return _obj + + diff --git a/authentik_client/models/alg_enum.py b/authentik_client/models/alg_enum.py index e176e0209..430725ff0 100644 --- a/authentik_client/models/alg_enum.py +++ b/authentik_client/models/alg_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/app.py b/authentik_client/models/app.py index 608682522..bc1191e30 100644 --- a/authentik_client/models/app.py +++ b/authentik_client/models/app.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/app_enum.py b/authentik_client/models/app_enum.py index e77db1e14..d6a6727f1 100644 --- a/authentik_client/models/app_enum.py +++ b/authentik_client/models/app_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,8 +34,11 @@ class AppEnum(str, Enum): AUTHENTIK_DOT_API = 'authentik.api' AUTHENTIK_DOT_CORE = 'authentik.core' AUTHENTIK_DOT_CRYPTO = 'authentik.crypto' + AUTHENTIK_DOT_ENDPOINTS = 'authentik.endpoints' + AUTHENTIK_DOT_ENDPOINTS_DOT_CONNECTORS_DOT_AGENT = 'authentik.endpoints.connectors.agent' AUTHENTIK_DOT_ENTERPRISE = 'authentik.enterprise' AUTHENTIK_DOT_EVENTS = 'authentik.events' + AUTHENTIK_DOT_ADMIN_DOT_FILES = 'authentik.admin.files' AUTHENTIK_DOT_FLOWS = 'authentik.flows' AUTHENTIK_DOT_OUTPOSTS = 'authentik.outposts' AUTHENTIK_DOT_POLICIES_DOT_DUMMY = 'authentik.policies.dummy' @@ -88,12 +91,14 @@ class AppEnum(str, Enum): AUTHENTIK_DOT_BRANDS = 'authentik.brands' AUTHENTIK_DOT_BLUEPRINTS = 'authentik.blueprints' AUTHENTIK_DOT_ENTERPRISE_DOT_AUDIT = 'authentik.enterprise.audit' + AUTHENTIK_DOT_ENTERPRISE_DOT_ENDPOINTS_DOT_CONNECTORS_DOT_AGENT = 'authentik.enterprise.endpoints.connectors.agent' AUTHENTIK_DOT_ENTERPRISE_DOT_POLICIES_DOT_UNIQUE_PASSWORD = 'authentik.enterprise.policies.unique_password' AUTHENTIK_DOT_ENTERPRISE_DOT_PROVIDERS_DOT_GOOGLE_WORKSPACE = 'authentik.enterprise.providers.google_workspace' AUTHENTIK_DOT_ENTERPRISE_DOT_PROVIDERS_DOT_MICROSOFT_ENTRA = 'authentik.enterprise.providers.microsoft_entra' AUTHENTIK_DOT_ENTERPRISE_DOT_PROVIDERS_DOT_RADIUS = 'authentik.enterprise.providers.radius' AUTHENTIK_DOT_ENTERPRISE_DOT_PROVIDERS_DOT_SCIM = 'authentik.enterprise.providers.scim' AUTHENTIK_DOT_ENTERPRISE_DOT_PROVIDERS_DOT_SSF = 'authentik.enterprise.providers.ssf' + AUTHENTIK_DOT_ENTERPRISE_DOT_REPORTS = 'authentik.enterprise.reports' AUTHENTIK_DOT_ENTERPRISE_DOT_SEARCH = 'authentik.enterprise.search' AUTHENTIK_DOT_ENTERPRISE_DOT_STAGES_DOT_AUTHENTICATOR_ENDPOINT_GDTC = 'authentik.enterprise.stages.authenticator_endpoint_gdtc' AUTHENTIK_DOT_ENTERPRISE_DOT_STAGES_DOT_MTLS = 'authentik.enterprise.stages.mtls' diff --git a/authentik_client/models/apple_challenge_response_request.py b/authentik_client/models/apple_challenge_response_request.py index c087fcb67..d762e4049 100644 --- a/authentik_client/models/apple_challenge_response_request.py +++ b/authentik_client/models/apple_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/apple_login_challenge.py b/authentik_client/models/apple_login_challenge.py index 0491afaa7..b9dd7f3a2 100644 --- a/authentik_client/models/apple_login_challenge.py +++ b/authentik_client/models/apple_login_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/application.py b/authentik_client/models/application.py index cb4884cf6..2e565ee0a 100644 --- a/authentik_client/models/application.py +++ b/authentik_client/models/application.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from uuid import UUID from authentik_client.models.policy_engine_mode import PolicyEngineMode from authentik_client.models.provider import Provider +from authentik_client.models.themed_urls import ThemedUrls from typing import Optional, Set from typing_extensions import Self @@ -33,7 +34,7 @@ class Application(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Application's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal application name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal application name, used in URLs.") provider: Optional[StrictInt] = None provider_obj: Provider backchannel_providers: Optional[List[StrictInt]] = None @@ -41,12 +42,14 @@ class Application(BaseModel): launch_url: Optional[StrictStr] = Field(description="Allow formatting of launch URL") open_in_new_tab: Optional[StrictBool] = Field(default=None, description="Open launch URL in a new browser tab or window.") meta_launch_url: Optional[StrictStr] = None - meta_icon: Optional[StrictStr] = Field(description="Get the URL to the App Icon image. If the name is /static or starts with http it is returned as-is") + meta_icon: Optional[StrictStr] = None + meta_icon_url: Optional[StrictStr] = Field(description="Get the URL to the App Icon image") + meta_icon_themed_urls: Optional[ThemedUrls] meta_description: Optional[StrictStr] = None meta_publisher: Optional[StrictStr] = None policy_engine_mode: Optional[PolicyEngineMode] = None group: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["pk", "name", "slug", "provider", "provider_obj", "backchannel_providers", "backchannel_providers_obj", "launch_url", "open_in_new_tab", "meta_launch_url", "meta_icon", "meta_description", "meta_publisher", "policy_engine_mode", "group"] + __properties: ClassVar[List[str]] = ["pk", "name", "slug", "provider", "provider_obj", "backchannel_providers", "backchannel_providers_obj", "launch_url", "open_in_new_tab", "meta_launch_url", "meta_icon", "meta_icon_url", "meta_icon_themed_urls", "meta_description", "meta_publisher", "policy_engine_mode", "group"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -90,13 +93,15 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", "provider_obj", "backchannel_providers_obj", "launch_url", - "meta_icon", + "meta_icon_url", + "meta_icon_themed_urls", ]) _dict = self.model_dump( @@ -114,6 +119,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_backchannel_providers_obj: _items.append(_item_backchannel_providers_obj.to_dict()) _dict['backchannel_providers_obj'] = _items + # override the default output from pydantic by calling `to_dict()` of meta_icon_themed_urls + if self.meta_icon_themed_urls: + _dict['meta_icon_themed_urls'] = self.meta_icon_themed_urls.to_dict() # set to None if provider (nullable) is None # and model_fields_set contains the field if self.provider is None and "provider" in self.model_fields_set: @@ -124,10 +132,15 @@ def to_dict(self) -> Dict[str, Any]: if self.launch_url is None and "launch_url" in self.model_fields_set: _dict['launch_url'] = None - # set to None if meta_icon (nullable) is None + # set to None if meta_icon_url (nullable) is None + # and model_fields_set contains the field + if self.meta_icon_url is None and "meta_icon_url" in self.model_fields_set: + _dict['meta_icon_url'] = None + + # set to None if meta_icon_themed_urls (nullable) is None # and model_fields_set contains the field - if self.meta_icon is None and "meta_icon" in self.model_fields_set: - _dict['meta_icon'] = None + if self.meta_icon_themed_urls is None and "meta_icon_themed_urls" in self.model_fields_set: + _dict['meta_icon_themed_urls'] = None return _dict @@ -152,6 +165,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "open_in_new_tab": obj.get("open_in_new_tab"), "meta_launch_url": obj.get("meta_launch_url"), "meta_icon": obj.get("meta_icon"), + "meta_icon_url": obj.get("meta_icon_url"), + "meta_icon_themed_urls": ThemedUrls.from_dict(obj["meta_icon_themed_urls"]) if obj.get("meta_icon_themed_urls") is not None else None, "meta_description": obj.get("meta_description"), "meta_publisher": obj.get("meta_publisher"), "policy_engine_mode": obj.get("policy_engine_mode"), diff --git a/authentik_client/models/application_entitlement.py b/authentik_client/models/application_entitlement.py index f155653c4..846d63798 100644 --- a/authentik_client/models/application_entitlement.py +++ b/authentik_client/models/application_entitlement.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/application_entitlement_request.py b/authentik_client/models/application_entitlement_request.py index ee546703e..65958401d 100644 --- a/authentik_client/models/application_entitlement_request.py +++ b/authentik_client/models/application_entitlement_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/application_request.py b/authentik_client/models/application_request.py index d4a45552c..6dedb9841 100644 --- a/authentik_client/models/application_request.py +++ b/authentik_client/models/application_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,16 +30,17 @@ class ApplicationRequest(BaseModel): Application Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Application's display Name.") - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Internal application name, used in URLs.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Internal application name, used in URLs.") provider: Optional[StrictInt] = None backchannel_providers: Optional[List[StrictInt]] = None open_in_new_tab: Optional[StrictBool] = Field(default=None, description="Open launch URL in a new browser tab or window.") meta_launch_url: Optional[StrictStr] = None + meta_icon: Optional[StrictStr] = None meta_description: Optional[StrictStr] = None meta_publisher: Optional[StrictStr] = None policy_engine_mode: Optional[PolicyEngineMode] = None group: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "slug", "provider", "backchannel_providers", "open_in_new_tab", "meta_launch_url", "meta_description", "meta_publisher", "policy_engine_mode", "group"] + __properties: ClassVar[List[str]] = ["name", "slug", "provider", "backchannel_providers", "open_in_new_tab", "meta_launch_url", "meta_icon", "meta_description", "meta_publisher", "policy_engine_mode", "group"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -110,6 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "backchannel_providers": obj.get("backchannel_providers"), "open_in_new_tab": obj.get("open_in_new_tab"), "meta_launch_url": obj.get("meta_launch_url"), + "meta_icon": obj.get("meta_icon"), "meta_description": obj.get("meta_description"), "meta_publisher": obj.get("meta_publisher"), "policy_engine_mode": obj.get("policy_engine_mode"), diff --git a/authentik_client/models/auth_type_enum.py b/authentik_client/models/auth_type_enum.py index 7c1ec2048..685b55b07 100644 --- a/authentik_client/models/auth_type_enum.py +++ b/authentik_client/models/auth_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticated_session.py b/authentik_client/models/authenticated_session.py index 1b680b52e..785893385 100644 --- a/authentik_client/models/authenticated_session.py +++ b/authentik_client/models/authenticated_session.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticated_session_asn.py b/authentik_client/models/authenticated_session_asn.py index 8b2e7eed8..ed93fd88b 100644 --- a/authentik_client/models/authenticated_session_asn.py +++ b/authentik_client/models/authenticated_session_asn.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticated_session_geo_ip.py b/authentik_client/models/authenticated_session_geo_ip.py index 2c6a1a8c4..fd0a60458 100644 --- a/authentik_client/models/authenticated_session_geo_ip.py +++ b/authentik_client/models/authenticated_session_geo_ip.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticated_session_user_agent.py b/authentik_client/models/authenticated_session_user_agent.py index ba25c2436..5bdfd0f4b 100644 --- a/authentik_client/models/authenticated_session_user_agent.py +++ b/authentik_client/models/authenticated_session_user_agent.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticated_session_user_agent_device.py b/authentik_client/models/authenticated_session_user_agent_device.py index 7473db719..49f443be8 100644 --- a/authentik_client/models/authenticated_session_user_agent_device.py +++ b/authentik_client/models/authenticated_session_user_agent_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticated_session_user_agent_os.py b/authentik_client/models/authenticated_session_user_agent_os.py index 2cd6794e6..06e8cd5cf 100644 --- a/authentik_client/models/authenticated_session_user_agent_os.py +++ b/authentik_client/models/authenticated_session_user_agent_os.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticated_session_user_agent_user_agent.py b/authentik_client/models/authenticated_session_user_agent_user_agent.py index 9b35f10e2..69623e7b4 100644 --- a/authentik_client/models/authenticated_session_user_agent_user_agent.py +++ b/authentik_client/models/authenticated_session_user_agent_user_agent.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authentication_enum.py b/authentik_client/models/authentication_enum.py index 1a9931023..c6f131736 100644 --- a/authentik_client/models/authentication_enum.py +++ b/authentik_client/models/authentication_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_attachment_enum.py b/authentik_client/models/authenticator_attachment_enum.py index a125feb61..fdf3bfa49 100644 --- a/authentik_client/models/authenticator_attachment_enum.py +++ b/authentik_client/models/authenticator_attachment_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_duo_challenge.py b/authentik_client/models/authenticator_duo_challenge.py index 6cefed1b4..bb5d84790 100644 --- a/authentik_client/models/authenticator_duo_challenge.py +++ b/authentik_client/models/authenticator_duo_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_duo_challenge_response_request.py b/authentik_client/models/authenticator_duo_challenge_response_request.py index 12e988766..21d238bd2 100644 --- a/authentik_client/models/authenticator_duo_challenge_response_request.py +++ b/authentik_client/models/authenticator_duo_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_duo_stage.py b/authentik_client/models/authenticator_duo_stage.py index 6fd888764..3c58b733b 100644 --- a/authentik_client/models/authenticator_duo_stage.py +++ b/authentik_client/models/authenticator_duo_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class AuthenticatorDuoStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None client_id: StrictStr @@ -78,6 +78,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -85,6 +86,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/authenticator_duo_stage_device_import_response.py b/authentik_client/models/authenticator_duo_stage_device_import_response.py index fa1b6081c..862b88e53 100644 --- a/authentik_client/models/authenticator_duo_stage_device_import_response.py +++ b/authentik_client/models/authenticator_duo_stage_device_import_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_duo_stage_manual_device_import_request.py b/authentik_client/models/authenticator_duo_stage_manual_device_import_request.py index c1f9183ed..ef93852ec 100644 --- a/authentik_client/models/authenticator_duo_stage_manual_device_import_request.py +++ b/authentik_client/models/authenticator_duo_stage_manual_device_import_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_duo_stage_request.py b/authentik_client/models/authenticator_duo_stage_request.py index cdaf6e3f8..5f2af7000 100644 --- a/authentik_client/models/authenticator_duo_stage_request.py +++ b/authentik_client/models/authenticator_duo_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,7 +30,6 @@ class AuthenticatorDuoStageRequest(BaseModel): AuthenticatorDuoStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None client_id: Annotated[str, Field(min_length=1, strict=True)] @@ -39,7 +37,7 @@ class AuthenticatorDuoStageRequest(BaseModel): api_hostname: Annotated[str, Field(min_length=1, strict=True)] admin_integration_key: Optional[StrictStr] = None admin_secret_key: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "client_id", "client_secret", "api_hostname", "admin_integration_key", "admin_secret_key"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "client_id", "client_secret", "api_hostname", "admin_integration_key", "admin_secret_key"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -105,7 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "client_id": obj.get("client_id"), diff --git a/authentik_client/models/authenticator_email_challenge.py b/authentik_client/models/authenticator_email_challenge.py index 8a30d6a14..9138389ae 100644 --- a/authentik_client/models/authenticator_email_challenge.py +++ b/authentik_client/models/authenticator_email_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_email_challenge_response_request.py b/authentik_client/models/authenticator_email_challenge_response_request.py index 7a2aab977..5bf1855b2 100644 --- a/authentik_client/models/authenticator_email_challenge_response_request.py +++ b/authentik_client/models/authenticator_email_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from typing import Optional, Set @@ -29,7 +29,7 @@ class AuthenticatorEmailChallengeResponseRequest(BaseModel): Authenticator Email Challenge response, device is set by get_response_instance """ # noqa: E501 component: Optional[Annotated[str, Field(min_length=1, strict=True)]] = 'ak-stage-authenticator-email' - code: Optional[StrictInt] = None + code: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None email: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None __properties: ClassVar[List[str]] = ["component", "code", "email"] diff --git a/authentik_client/models/authenticator_email_stage.py b/authentik_client/models/authenticator_email_stage.py index 5070adb8a..4717a7cea 100644 --- a/authentik_client/models/authenticator_email_stage.py +++ b/authentik_client/models/authenticator_email_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,7 +36,7 @@ class AuthenticatorEmailStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None use_global_settings: Optional[StrictBool] = Field(default=None, description="When enabled, global Email connection settings will be used and connection settings below will be ignored.") @@ -88,6 +88,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -95,6 +96,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/authenticator_email_stage_request.py b/authentik_client/models/authenticator_email_stage_request.py index b4a8de49b..098bc3d65 100644 --- a/authentik_client/models/authenticator_email_stage_request.py +++ b/authentik_client/models/authenticator_email_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,7 +30,6 @@ class AuthenticatorEmailStageRequest(BaseModel): AuthenticatorEmailStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None use_global_settings: Optional[StrictBool] = Field(default=None, description="When enabled, global Email connection settings will be used and connection settings below will be ignored.") @@ -46,7 +44,7 @@ class AuthenticatorEmailStageRequest(BaseModel): subject: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None token_expiry: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).") template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "use_global_settings", "host", "port", "username", "password", "use_tls", "use_ssl", "timeout", "from_address", "subject", "token_expiry", "template"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "use_global_settings", "host", "port", "username", "password", "use_tls", "use_ssl", "timeout", "from_address", "subject", "token_expiry", "template"] model_config = ConfigDict( populate_by_name=True, @@ -87,13 +85,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -112,7 +103,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "use_global_settings": obj.get("use_global_settings"), diff --git a/authentik_client/models/authenticator_endpoint_gdtc_stage.py b/authentik_client/models/authenticator_endpoint_gdtc_stage.py index 6c08fa6d7..2d9a4095c 100644 --- a/authentik_client/models/authenticator_endpoint_gdtc_stage.py +++ b/authentik_client/models/authenticator_endpoint_gdtc_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class AuthenticatorEndpointGDTCStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None credentials: Dict[str, Any] @@ -76,6 +76,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -83,6 +84,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/authenticator_endpoint_gdtc_stage_request.py b/authentik_client/models/authenticator_endpoint_gdtc_stage_request.py index 8fe3df8c9..3de3a3663 100644 --- a/authentik_client/models/authenticator_endpoint_gdtc_stage_request.py +++ b/authentik_client/models/authenticator_endpoint_gdtc_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,11 +30,10 @@ class AuthenticatorEndpointGDTCStageRequest(BaseModel): AuthenticatorEndpointGDTCStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None credentials: Dict[str, Any] - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "credentials"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "credentials"] model_config = ConfigDict( populate_by_name=True, @@ -76,13 +74,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -101,7 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "credentials": obj.get("credentials") diff --git a/authentik_client/models/authenticator_sms_challenge.py b/authentik_client/models/authenticator_sms_challenge.py index 176fbb27c..567d42278 100644 --- a/authentik_client/models/authenticator_sms_challenge.py +++ b/authentik_client/models/authenticator_sms_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_sms_challenge_response_request.py b/authentik_client/models/authenticator_sms_challenge_response_request.py index 59af38d11..8f5fa88ab 100644 --- a/authentik_client/models/authenticator_sms_challenge_response_request.py +++ b/authentik_client/models/authenticator_sms_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from typing import Optional, Set @@ -29,7 +29,7 @@ class AuthenticatorSMSChallengeResponseRequest(BaseModel): SMS Challenge response, device is set by get_response_instance """ # noqa: E501 component: Optional[Annotated[str, Field(min_length=1, strict=True)]] = 'ak-stage-authenticator-sms' - code: Optional[StrictInt] = None + code: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None phone_number: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None __properties: ClassVar[List[str]] = ["component", "code", "phone_number"] diff --git a/authentik_client/models/authenticator_sms_stage.py b/authentik_client/models/authenticator_sms_stage.py index 4dcac805a..fab0f1614 100644 --- a/authentik_client/models/authenticator_sms_stage.py +++ b/authentik_client/models/authenticator_sms_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ class AuthenticatorSMSStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None provider: ProviderEnum @@ -85,6 +85,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -92,6 +93,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/authenticator_sms_stage_request.py b/authentik_client/models/authenticator_sms_stage_request.py index c03b1f7ed..6d02ad364 100644 --- a/authentik_client/models/authenticator_sms_stage_request.py +++ b/authentik_client/models/authenticator_sms_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.auth_type_enum import AuthTypeEnum -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.provider_enum import ProviderEnum from typing import Optional, Set from typing_extensions import Self @@ -33,7 +32,6 @@ class AuthenticatorSMSStageRequest(BaseModel): AuthenticatorSMSStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None provider: ProviderEnum @@ -44,7 +42,7 @@ class AuthenticatorSMSStageRequest(BaseModel): auth_type: Optional[AuthTypeEnum] = None verify_only: Optional[StrictBool] = Field(default=None, description="When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.") mapping: Optional[UUID] = Field(default=None, description="Optionally modify the payload being sent to custom providers.") - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "provider", "from_number", "account_sid", "auth", "auth_password", "auth_type", "verify_only", "mapping"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "provider", "from_number", "account_sid", "auth", "auth_password", "auth_type", "verify_only", "mapping"] model_config = ConfigDict( populate_by_name=True, @@ -85,13 +83,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -115,7 +106,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "provider": obj.get("provider"), diff --git a/authentik_client/models/authenticator_static_challenge.py b/authentik_client/models/authenticator_static_challenge.py index 93e3d0137..a0e423622 100644 --- a/authentik_client/models/authenticator_static_challenge.py +++ b/authentik_client/models/authenticator_static_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_static_challenge_response_request.py b/authentik_client/models/authenticator_static_challenge_response_request.py index dda90e923..b670d39bb 100644 --- a/authentik_client/models/authenticator_static_challenge_response_request.py +++ b/authentik_client/models/authenticator_static_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_static_stage.py b/authentik_client/models/authenticator_static_stage.py index 0b289b0a4..b01cfc8cb 100644 --- a/authentik_client/models/authenticator_static_stage.py +++ b/authentik_client/models/authenticator_static_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,11 +36,11 @@ class AuthenticatorStaticStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None token_count: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None - token_length: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None + token_length: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "configure_flow", "friendly_name", "token_count", "token_length"] model_config = ConfigDict( @@ -78,6 +78,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -85,6 +86,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/authenticator_static_stage_request.py b/authentik_client/models/authenticator_static_stage_request.py index d5d03ef9a..22858988e 100644 --- a/authentik_client/models/authenticator_static_stage_request.py +++ b/authentik_client/models/authenticator_static_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,12 +30,11 @@ class AuthenticatorStaticStageRequest(BaseModel): AuthenticatorStaticStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None token_count: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None - token_length: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "token_count", "token_length"] + token_length: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = None + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "token_count", "token_length"] model_config = ConfigDict( populate_by_name=True, @@ -77,13 +75,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -102,7 +93,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "token_count": obj.get("token_count"), diff --git a/authentik_client/models/authenticator_totp_challenge.py b/authentik_client/models/authenticator_totp_challenge.py index a4749b0ad..51850886f 100644 --- a/authentik_client/models/authenticator_totp_challenge.py +++ b/authentik_client/models/authenticator_totp_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_totp_challenge_response_request.py b/authentik_client/models/authenticator_totp_challenge_response_request.py index 7ee67680e..dd22752d5 100644 --- a/authentik_client/models/authenticator_totp_challenge_response_request.py +++ b/authentik_client/models/authenticator_totp_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from typing import Optional, Set @@ -29,7 +29,7 @@ class AuthenticatorTOTPChallengeResponseRequest(BaseModel): TOTP Challenge response, device is set by get_response_instance """ # noqa: E501 component: Optional[Annotated[str, Field(min_length=1, strict=True)]] = 'ak-stage-authenticator-totp' - code: StrictInt + code: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["component", "code"] model_config = ConfigDict( diff --git a/authentik_client/models/authenticator_totp_stage.py b/authentik_client/models/authenticator_totp_stage.py index 61140f76f..694260324 100644 --- a/authentik_client/models/authenticator_totp_stage.py +++ b/authentik_client/models/authenticator_totp_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,7 +36,7 @@ class AuthenticatorTOTPStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None digits: DigitsEnum @@ -77,6 +77,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -84,6 +85,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/authenticator_totp_stage_request.py b/authentik_client/models/authenticator_totp_stage_request.py index 994be3bee..714a1af0c 100644 --- a/authentik_client/models/authenticator_totp_stage_request.py +++ b/authentik_client/models/authenticator_totp_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.digits_enum import DigitsEnum -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -32,11 +31,10 @@ class AuthenticatorTOTPStageRequest(BaseModel): AuthenticatorTOTPStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None digits: DigitsEnum - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "digits"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "digits"] model_config = ConfigDict( populate_by_name=True, @@ -77,13 +75,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -102,7 +93,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "digits": obj.get("digits") diff --git a/authentik_client/models/authenticator_validate_stage.py b/authentik_client/models/authenticator_validate_stage.py index 4b25d3819..bd2a1e391 100644 --- a/authentik_client/models/authenticator_validate_stage.py +++ b/authentik_client/models/authenticator_validate_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,7 +39,7 @@ class AuthenticatorValidateStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] not_configured_action: Optional[NotConfiguredActionEnum] = None device_classes: Optional[List[DeviceClassesEnum]] = Field(default=None, description="Device classes which can be used to authenticate") configuration_stages: Optional[List[UUID]] = Field(default=None, description="Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.") @@ -85,6 +85,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -92,6 +93,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", "webauthn_allowed_device_types_obj", ]) diff --git a/authentik_client/models/authenticator_validate_stage_request.py b/authentik_client/models/authenticator_validate_stage_request.py index 2c9643fcb..dcd1b32a6 100644 --- a/authentik_client/models/authenticator_validate_stage_request.py +++ b/authentik_client/models/authenticator_validate_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.device_classes_enum import DeviceClassesEnum -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.not_configured_action_enum import NotConfiguredActionEnum from authentik_client.models.user_verification_enum import UserVerificationEnum from typing import Optional, Set @@ -34,14 +33,13 @@ class AuthenticatorValidateStageRequest(BaseModel): AuthenticatorValidateStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None not_configured_action: Optional[NotConfiguredActionEnum] = None device_classes: Optional[List[DeviceClassesEnum]] = Field(default=None, description="Device classes which can be used to authenticate") configuration_stages: Optional[List[UUID]] = Field(default=None, description="Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.") last_auth_threshold: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="If any of the user's device has been used within this threshold, this stage will be skipped") webauthn_user_verification: Optional[UserVerificationEnum] = Field(default=None, description="Enforce user verification for WebAuthn devices.") webauthn_allowed_device_types: Optional[List[UUID]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "not_configured_action", "device_classes", "configuration_stages", "last_auth_threshold", "webauthn_user_verification", "webauthn_allowed_device_types"] + __properties: ClassVar[List[str]] = ["name", "not_configured_action", "device_classes", "configuration_stages", "last_auth_threshold", "webauthn_user_verification", "webauthn_allowed_device_types"] model_config = ConfigDict( populate_by_name=True, @@ -82,13 +80,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -102,7 +93,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "not_configured_action": obj.get("not_configured_action"), "device_classes": obj.get("device_classes"), "configuration_stages": obj.get("configuration_stages"), diff --git a/authentik_client/models/authenticator_validation_challenge.py b/authentik_client/models/authenticator_validation_challenge.py index 988ef6b36..44992f174 100644 --- a/authentik_client/models/authenticator_validation_challenge.py +++ b/authentik_client/models/authenticator_validation_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_validation_challenge_response_request.py b/authentik_client/models/authenticator_validation_challenge_response_request.py index aba1ecfca..1978ad4f4 100644 --- a/authentik_client/models/authenticator_validation_challenge_response_request.py +++ b/authentik_client/models/authenticator_validation_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_web_authn_challenge.py b/authentik_client/models/authenticator_web_authn_challenge.py index 21fc11812..ad34ce2a2 100644 --- a/authentik_client/models/authenticator_web_authn_challenge.py +++ b/authentik_client/models/authenticator_web_authn_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_web_authn_challenge_response_request.py b/authentik_client/models/authenticator_web_authn_challenge_response_request.py index 2d6f44cd3..795b9b226 100644 --- a/authentik_client/models/authenticator_web_authn_challenge_response_request.py +++ b/authentik_client/models/authenticator_web_authn_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/authenticator_web_authn_stage.py b/authentik_client/models/authenticator_web_authn_stage.py index e939e0261..deb8b101a 100644 --- a/authentik_client/models/authenticator_web_authn_stage.py +++ b/authentik_client/models/authenticator_web_authn_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,7 +40,7 @@ class AuthenticatorWebAuthnStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None user_verification: Optional[UserVerificationEnum] = None @@ -87,6 +87,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -94,6 +95,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", "device_type_restrictions_obj", ]) diff --git a/authentik_client/models/authenticator_web_authn_stage_request.py b/authentik_client/models/authenticator_web_authn_stage_request.py index 429df19a3..e3dee2fb4 100644 --- a/authentik_client/models/authenticator_web_authn_stage_request.py +++ b/authentik_client/models/authenticator_web_authn_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.authenticator_attachment_enum import AuthenticatorAttachmentEnum -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.resident_key_requirement_enum import ResidentKeyRequirementEnum from authentik_client.models.user_verification_enum import UserVerificationEnum from typing import Optional, Set @@ -34,7 +33,6 @@ class AuthenticatorWebAuthnStageRequest(BaseModel): AuthenticatorWebAuthnStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None user_verification: Optional[UserVerificationEnum] = None @@ -42,7 +40,7 @@ class AuthenticatorWebAuthnStageRequest(BaseModel): resident_key_requirement: Optional[ResidentKeyRequirementEnum] = None device_type_restrictions: Optional[List[UUID]] = None max_attempts: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "user_verification", "authenticator_attachment", "resident_key_requirement", "device_type_restrictions", "max_attempts"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "user_verification", "authenticator_attachment", "resident_key_requirement", "device_type_restrictions", "max_attempts"] model_config = ConfigDict( populate_by_name=True, @@ -83,13 +81,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -113,7 +104,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "user_verification": obj.get("user_verification"), diff --git a/authentik_client/models/authorization_code_auth_method_enum.py b/authentik_client/models/authorization_code_auth_method_enum.py index 000f1c046..fa8810f12 100644 --- a/authentik_client/models/authorization_code_auth_method_enum.py +++ b/authentik_client/models/authorization_code_auth_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/auto_submit_challenge_response_request.py b/authentik_client/models/auto_submit_challenge_response_request.py index a1a2b8a3c..50b5be1be 100644 --- a/authentik_client/models/auto_submit_challenge_response_request.py +++ b/authentik_client/models/auto_submit_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/autosubmit_challenge.py b/authentik_client/models/autosubmit_challenge.py index 42768bf06..d1aa678b2 100644 --- a/authentik_client/models/autosubmit_challenge.py +++ b/authentik_client/models/autosubmit_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/backends_enum.py b/authentik_client/models/backends_enum.py index 322de89f8..a7e2fe1cc 100644 --- a/authentik_client/models/backends_enum.py +++ b/authentik_client/models/backends_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/binding_type_enum.py b/authentik_client/models/binding_type_enum.py index 247c2c53d..30075dc9c 100644 --- a/authentik_client/models/binding_type_enum.py +++ b/authentik_client/models/binding_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/blueprint_file.py b/authentik_client/models/blueprint_file.py index 96a3a5b49..833ec4550 100644 --- a/authentik_client/models/blueprint_file.py +++ b/authentik_client/models/blueprint_file.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/blueprint_instance.py b/authentik_client/models/blueprint_instance.py index 7a37807c9..68941d35c 100644 --- a/authentik_client/models/blueprint_instance.py +++ b/authentik_client/models/blueprint_instance.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/blueprint_instance_request.py b/authentik_client/models/blueprint_instance_request.py index 6c86c6ec8..d40cf914d 100644 --- a/authentik_client/models/blueprint_instance_request.py +++ b/authentik_client/models/blueprint_instance_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/blueprint_instance_status_enum.py b/authentik_client/models/blueprint_instance_status_enum.py index 7d30ff272..d510df5b5 100644 --- a/authentik_client/models/blueprint_instance_status_enum.py +++ b/authentik_client/models/blueprint_instance_status_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/brand.py b/authentik_client/models/brand.py index afe4bf3cc..b637ef0e9 100644 --- a/authentik_client/models/brand.py +++ b/authentik_client/models/brand.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/brand_request.py b/authentik_client/models/brand_request.py index 6297fe3d8..983613961 100644 --- a/authentik_client/models/brand_request.py +++ b/authentik_client/models/brand_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/cache.py b/authentik_client/models/cache.py index 9c5717916..b1abccf54 100644 --- a/authentik_client/models/cache.py +++ b/authentik_client/models/cache.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/capabilities_enum.py b/authentik_client/models/capabilities_enum.py index 34140c8e7..0a62203de 100644 --- a/authentik_client/models/capabilities_enum.py +++ b/authentik_client/models/capabilities_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ class CapabilitiesEnum(str, Enum): allowed enum values """ CAN_SAVE_MEDIA = 'can_save_media' + CAN_SAVE_REPORTS = 'can_save_reports' CAN_GEO_IP = 'can_geo_ip' CAN_ASN = 'can_asn' CAN_IMPERSONATE = 'can_impersonate' diff --git a/authentik_client/models/captcha_challenge.py b/authentik_client/models/captcha_challenge.py index e0e12f934..4c2d3e957 100644 --- a/authentik_client/models/captcha_challenge.py +++ b/authentik_client/models/captcha_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/captcha_challenge_response_request.py b/authentik_client/models/captcha_challenge_response_request.py index 88689de19..e9b77f650 100644 --- a/authentik_client/models/captcha_challenge_response_request.py +++ b/authentik_client/models/captcha_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/captcha_stage.py b/authentik_client/models/captcha_stage.py index 4dbc00890..82fe3db7f 100644 --- a/authentik_client/models/captcha_stage.py +++ b/authentik_client/models/captcha_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class CaptchaStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] public_key: StrictStr = Field(description="Public key, acquired your captcha Provider.") js_url: Optional[StrictStr] = None api_url: Optional[StrictStr] = None @@ -80,6 +80,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -87,6 +88,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/captcha_stage_request.py b/authentik_client/models/captcha_stage_request.py index 147c7f107..f76b53555 100644 --- a/authentik_client/models/captcha_stage_request.py +++ b/authentik_client/models/captcha_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,7 +29,6 @@ class CaptchaStageRequest(BaseModel): CaptchaStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None public_key: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Public key, acquired your captcha Provider.") private_key: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Private key, acquired your captcha Provider.") js_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None @@ -39,7 +37,7 @@ class CaptchaStageRequest(BaseModel): score_min_threshold: Optional[Union[StrictFloat, StrictInt]] = None score_max_threshold: Optional[Union[StrictFloat, StrictInt]] = None error_on_invalid_score: Optional[StrictBool] = Field(default=None, description="When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions") - __properties: ClassVar[List[str]] = ["name", "flow_set", "public_key", "private_key", "js_url", "api_url", "interactive", "score_min_threshold", "score_max_threshold", "error_on_invalid_score"] + __properties: ClassVar[List[str]] = ["name", "public_key", "private_key", "js_url", "api_url", "interactive", "score_min_threshold", "score_max_threshold", "error_on_invalid_score"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -100,7 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "public_key": obj.get("public_key"), "private_key": obj.get("private_key"), "js_url": obj.get("js_url"), diff --git a/authentik_client/models/cert_attribute_enum.py b/authentik_client/models/cert_attribute_enum.py index 1f39f9ead..ee9421eb5 100644 --- a/authentik_client/models/cert_attribute_enum.py +++ b/authentik_client/models/cert_attribute_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/certificate_data.py b/authentik_client/models/certificate_data.py index 6f9b26b02..0239e1d3b 100644 --- a/authentik_client/models/certificate_data.py +++ b/authentik_client/models/certificate_data.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/certificate_generation_request.py b/authentik_client/models/certificate_generation_request.py index a1492e581..943385498 100644 --- a/authentik_client/models/certificate_generation_request.py +++ b/authentik_client/models/certificate_generation_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/certificate_key_pair.py b/authentik_client/models/certificate_key_pair.py index 145c5941f..56c249665 100644 --- a/authentik_client/models/certificate_key_pair.py +++ b/authentik_client/models/certificate_key_pair.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID +from authentik_client.models.key_type_enum import KeyTypeEnum from typing import Optional, Set from typing_extensions import Self @@ -36,11 +37,11 @@ class CertificateKeyPair(BaseModel): cert_expiry: Optional[datetime] = Field(description="Get certificate expiry") cert_subject: Optional[StrictStr] = Field(description="Get certificate subject as full rfc4514") private_key_available: StrictBool = Field(description="Show if this keypair has a private key configured or not") - private_key_type: Optional[StrictStr] = Field(description="Get the private key's type, if set") + key_type: Optional[KeyTypeEnum] certificate_download_url: StrictStr = Field(description="Get URL to download certificate") private_key_download_url: StrictStr = Field(description="Get URL to download private key") managed: Optional[StrictStr] = Field(description="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.") - __properties: ClassVar[List[str]] = ["pk", "name", "fingerprint_sha256", "fingerprint_sha1", "cert_expiry", "cert_subject", "private_key_available", "private_key_type", "certificate_download_url", "private_key_download_url", "managed"] + __properties: ClassVar[List[str]] = ["pk", "name", "fingerprint_sha256", "fingerprint_sha1", "cert_expiry", "cert_subject", "private_key_available", "key_type", "certificate_download_url", "private_key_download_url", "managed"] model_config = ConfigDict( populate_by_name=True, @@ -90,7 +91,7 @@ def to_dict(self) -> Dict[str, Any]: "cert_expiry", "cert_subject", "private_key_available", - "private_key_type", + "key_type", "certificate_download_url", "private_key_download_url", "managed", @@ -121,10 +122,10 @@ def to_dict(self) -> Dict[str, Any]: if self.cert_subject is None and "cert_subject" in self.model_fields_set: _dict['cert_subject'] = None - # set to None if private_key_type (nullable) is None + # set to None if key_type (nullable) is None # and model_fields_set contains the field - if self.private_key_type is None and "private_key_type" in self.model_fields_set: - _dict['private_key_type'] = None + if self.key_type is None and "key_type" in self.model_fields_set: + _dict['key_type'] = None # set to None if managed (nullable) is None # and model_fields_set contains the field @@ -150,7 +151,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "cert_expiry": obj.get("cert_expiry"), "cert_subject": obj.get("cert_subject"), "private_key_available": obj.get("private_key_available"), - "private_key_type": obj.get("private_key_type"), + "key_type": obj.get("key_type"), "certificate_download_url": obj.get("certificate_download_url"), "private_key_download_url": obj.get("private_key_download_url"), "managed": obj.get("managed") diff --git a/authentik_client/models/certificate_key_pair_request.py b/authentik_client/models/certificate_key_pair_request.py index e50218f5d..fa746e5aa 100644 --- a/authentik_client/models/certificate_key_pair_request.py +++ b/authentik_client/models/certificate_key_pair_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/challenge_types.py b/authentik_client/models/challenge_types.py index 5e5f4e4c1..9a57d51a8 100644 --- a/authentik_client/models/challenge_types.py +++ b/authentik_client/models/challenge_types.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,6 +32,7 @@ from authentik_client.models.consent_challenge import ConsentChallenge from authentik_client.models.dummy_challenge import DummyChallenge from authentik_client.models.email_challenge import EmailChallenge +from authentik_client.models.endpoint_agent_challenge import EndpointAgentChallenge from authentik_client.models.flow_error_challenge import FlowErrorChallenge from authentik_client.models.frame_challenge import FrameChallenge from authentik_client.models.identification_challenge import IdentificationChallenge @@ -51,7 +52,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -CHALLENGETYPES_ONE_OF_SCHEMAS = ["AccessDeniedChallenge", "AppleLoginChallenge", "AuthenticatorDuoChallenge", "AuthenticatorEmailChallenge", "AuthenticatorSMSChallenge", "AuthenticatorStaticChallenge", "AuthenticatorTOTPChallenge", "AuthenticatorValidationChallenge", "AuthenticatorWebAuthnChallenge", "AutosubmitChallenge", "CaptchaChallenge", "ConsentChallenge", "DummyChallenge", "EmailChallenge", "FlowErrorChallenge", "FrameChallenge", "IdentificationChallenge", "IframeLogoutChallenge", "NativeLogoutChallenge", "OAuthDeviceCodeChallenge", "OAuthDeviceCodeFinishChallenge", "PasswordChallenge", "PlexAuthenticationChallenge", "PromptChallenge", "RedirectChallenge", "SessionEndChallenge", "ShellChallenge", "TelegramLoginChallenge", "UserLoginChallenge"] +CHALLENGETYPES_ONE_OF_SCHEMAS = ["AccessDeniedChallenge", "AppleLoginChallenge", "AuthenticatorDuoChallenge", "AuthenticatorEmailChallenge", "AuthenticatorSMSChallenge", "AuthenticatorStaticChallenge", "AuthenticatorTOTPChallenge", "AuthenticatorValidationChallenge", "AuthenticatorWebAuthnChallenge", "AutosubmitChallenge", "CaptchaChallenge", "ConsentChallenge", "DummyChallenge", "EmailChallenge", "EndpointAgentChallenge", "FlowErrorChallenge", "FrameChallenge", "IdentificationChallenge", "IframeLogoutChallenge", "NativeLogoutChallenge", "OAuthDeviceCodeChallenge", "OAuthDeviceCodeFinishChallenge", "PasswordChallenge", "PlexAuthenticationChallenge", "PromptChallenge", "RedirectChallenge", "SessionEndChallenge", "ShellChallenge", "TelegramLoginChallenge", "UserLoginChallenge"] class ChallengeTypes(BaseModel): """ @@ -85,38 +86,40 @@ class ChallengeTypes(BaseModel): oneof_schema_13_validator: Optional[DummyChallenge] = None # data type: EmailChallenge oneof_schema_14_validator: Optional[EmailChallenge] = None + # data type: EndpointAgentChallenge + oneof_schema_15_validator: Optional[EndpointAgentChallenge] = None # data type: FlowErrorChallenge - oneof_schema_15_validator: Optional[FlowErrorChallenge] = None + oneof_schema_16_validator: Optional[FlowErrorChallenge] = None # data type: FrameChallenge - oneof_schema_16_validator: Optional[FrameChallenge] = None + oneof_schema_17_validator: Optional[FrameChallenge] = None # data type: IdentificationChallenge - oneof_schema_17_validator: Optional[IdentificationChallenge] = None + oneof_schema_18_validator: Optional[IdentificationChallenge] = None # data type: IframeLogoutChallenge - oneof_schema_18_validator: Optional[IframeLogoutChallenge] = None + oneof_schema_19_validator: Optional[IframeLogoutChallenge] = None # data type: NativeLogoutChallenge - oneof_schema_19_validator: Optional[NativeLogoutChallenge] = None + oneof_schema_20_validator: Optional[NativeLogoutChallenge] = None # data type: OAuthDeviceCodeChallenge - oneof_schema_20_validator: Optional[OAuthDeviceCodeChallenge] = None + oneof_schema_21_validator: Optional[OAuthDeviceCodeChallenge] = None # data type: OAuthDeviceCodeFinishChallenge - oneof_schema_21_validator: Optional[OAuthDeviceCodeFinishChallenge] = None + oneof_schema_22_validator: Optional[OAuthDeviceCodeFinishChallenge] = None # data type: PasswordChallenge - oneof_schema_22_validator: Optional[PasswordChallenge] = None + oneof_schema_23_validator: Optional[PasswordChallenge] = None # data type: PlexAuthenticationChallenge - oneof_schema_23_validator: Optional[PlexAuthenticationChallenge] = None + oneof_schema_24_validator: Optional[PlexAuthenticationChallenge] = None # data type: PromptChallenge - oneof_schema_24_validator: Optional[PromptChallenge] = None + oneof_schema_25_validator: Optional[PromptChallenge] = None # data type: RedirectChallenge - oneof_schema_25_validator: Optional[RedirectChallenge] = None + oneof_schema_26_validator: Optional[RedirectChallenge] = None # data type: SessionEndChallenge - oneof_schema_26_validator: Optional[SessionEndChallenge] = None + oneof_schema_27_validator: Optional[SessionEndChallenge] = None # data type: ShellChallenge - oneof_schema_27_validator: Optional[ShellChallenge] = None + oneof_schema_28_validator: Optional[ShellChallenge] = None # data type: TelegramLoginChallenge - oneof_schema_28_validator: Optional[TelegramLoginChallenge] = None + oneof_schema_29_validator: Optional[TelegramLoginChallenge] = None # data type: UserLoginChallenge - oneof_schema_29_validator: Optional[UserLoginChallenge] = None - actual_instance: Optional[Union[AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge]] = None - one_of_schemas: Set[str] = { "AccessDeniedChallenge", "AppleLoginChallenge", "AuthenticatorDuoChallenge", "AuthenticatorEmailChallenge", "AuthenticatorSMSChallenge", "AuthenticatorStaticChallenge", "AuthenticatorTOTPChallenge", "AuthenticatorValidationChallenge", "AuthenticatorWebAuthnChallenge", "AutosubmitChallenge", "CaptchaChallenge", "ConsentChallenge", "DummyChallenge", "EmailChallenge", "FlowErrorChallenge", "FrameChallenge", "IdentificationChallenge", "IframeLogoutChallenge", "NativeLogoutChallenge", "OAuthDeviceCodeChallenge", "OAuthDeviceCodeFinishChallenge", "PasswordChallenge", "PlexAuthenticationChallenge", "PromptChallenge", "RedirectChallenge", "SessionEndChallenge", "ShellChallenge", "TelegramLoginChallenge", "UserLoginChallenge" } + oneof_schema_30_validator: Optional[UserLoginChallenge] = None + actual_instance: Optional[Union[AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, EndpointAgentChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge]] = None + one_of_schemas: Set[str] = { "AccessDeniedChallenge", "AppleLoginChallenge", "AuthenticatorDuoChallenge", "AuthenticatorEmailChallenge", "AuthenticatorSMSChallenge", "AuthenticatorStaticChallenge", "AuthenticatorTOTPChallenge", "AuthenticatorValidationChallenge", "AuthenticatorWebAuthnChallenge", "AutosubmitChallenge", "CaptchaChallenge", "ConsentChallenge", "DummyChallenge", "EmailChallenge", "EndpointAgentChallenge", "FlowErrorChallenge", "FrameChallenge", "IdentificationChallenge", "IframeLogoutChallenge", "NativeLogoutChallenge", "OAuthDeviceCodeChallenge", "OAuthDeviceCodeFinishChallenge", "PasswordChallenge", "PlexAuthenticationChallenge", "PromptChallenge", "RedirectChallenge", "SessionEndChallenge", "ShellChallenge", "TelegramLoginChallenge", "UserLoginChallenge" } model_config = ConfigDict( validate_assignment=True, @@ -212,6 +215,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `EmailChallenge`") else: match += 1 + # validate data type: EndpointAgentChallenge + if not isinstance(v, EndpointAgentChallenge): + error_messages.append(f"Error! Input type `{type(v)}` is not `EndpointAgentChallenge`") + else: + match += 1 # validate data type: FlowErrorChallenge if not isinstance(v, FlowErrorChallenge): error_messages.append(f"Error! Input type `{type(v)}` is not `FlowErrorChallenge`") @@ -289,10 +297,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in ChallengeTypes with oneOf schemas: AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in ChallengeTypes with oneOf schemas: AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, EndpointAgentChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in ChallengeTypes with oneOf schemas: AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in ChallengeTypes with oneOf schemas: AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, EndpointAgentChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge. Details: " + ", ".join(error_messages)) else: return v @@ -391,6 +399,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into EndpointAgentChallenge + try: + instance.actual_instance = EndpointAgentChallenge.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into FlowErrorChallenge try: instance.actual_instance = FlowErrorChallenge.from_json(json_str) @@ -484,10 +498,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into ChallengeTypes with oneOf schemas: AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into ChallengeTypes with oneOf schemas: AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, EndpointAgentChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into ChallengeTypes with oneOf schemas: AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into ChallengeTypes with oneOf schemas: AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, EndpointAgentChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge. Details: " + ", ".join(error_messages)) else: return instance @@ -501,7 +515,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AccessDeniedChallenge, AppleLoginChallenge, AuthenticatorDuoChallenge, AuthenticatorEmailChallenge, AuthenticatorSMSChallenge, AuthenticatorStaticChallenge, AuthenticatorTOTPChallenge, AuthenticatorValidationChallenge, AuthenticatorWebAuthnChallenge, AutosubmitChallenge, CaptchaChallenge, ConsentChallenge, DummyChallenge, EmailChallenge, EndpointAgentChallenge, FlowErrorChallenge, FrameChallenge, IdentificationChallenge, IframeLogoutChallenge, NativeLogoutChallenge, OAuthDeviceCodeChallenge, OAuthDeviceCodeFinishChallenge, PasswordChallenge, PlexAuthenticationChallenge, PromptChallenge, RedirectChallenge, SessionEndChallenge, ShellChallenge, TelegramLoginChallenge, UserLoginChallenge]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/authentik_client/models/client_type_enum.py b/authentik_client/models/client_type_enum.py index 5022e463c..a30cae522 100644 --- a/authentik_client/models/client_type_enum.py +++ b/authentik_client/models/client_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/compatibility_mode_enum.py b/authentik_client/models/compatibility_mode_enum.py index 46951bf85..af395047d 100644 --- a/authentik_client/models/compatibility_mode_enum.py +++ b/authentik_client/models/compatibility_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/config.py b/authentik_client/models/config.py index ca431277d..a6e5400f4 100644 --- a/authentik_client/models/config.py +++ b/authentik_client/models/config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/connection_token.py b/authentik_client/models/connection_token.py index 20c924a6d..240d78dfd 100644 --- a/authentik_client/models/connection_token.py +++ b/authentik_client/models/connection_token.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/connection_token_request.py b/authentik_client/models/connection_token_request.py index ccab0144a..28e7bcd37 100644 --- a/authentik_client/models/connection_token_request.py +++ b/authentik_client/models/connection_token_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/connector.py b/authentik_client/models/connector.py new file mode 100644 index 000000000..438b66e76 --- /dev/null +++ b/authentik_client/models/connector.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class Connector(BaseModel): + """ + Connector + """ # noqa: E501 + connector_uuid: Optional[UUID] = None + name: StrictStr + enabled: Optional[StrictBool] = None + component: StrictStr = Field(description="Get object component so that we know how to edit the object") + verbose_name: StrictStr = Field(description="Return object's verbose_name") + verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") + meta_model_name: StrictStr = Field(description="Return internal model name") + __properties: ClassVar[List[str]] = ["connector_uuid", "name", "enabled", "component", "verbose_name", "verbose_name_plural", "meta_model_name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Connector from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "component", + "verbose_name", + "verbose_name_plural", + "meta_model_name", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Connector from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connector_uuid": obj.get("connector_uuid"), + "name": obj.get("name"), + "enabled": obj.get("enabled"), + "component": obj.get("component"), + "verbose_name": obj.get("verbose_name"), + "verbose_name_plural": obj.get("verbose_name_plural"), + "meta_model_name": obj.get("meta_model_name") + }) + return _obj + + diff --git a/authentik_client/models/consent_challenge.py b/authentik_client/models/consent_challenge.py index c0b9fa15f..f673c9094 100644 --- a/authentik_client/models/consent_challenge.py +++ b/authentik_client/models/consent_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/consent_challenge_response_request.py b/authentik_client/models/consent_challenge_response_request.py index 517f45d10..7c76ba0ea 100644 --- a/authentik_client/models/consent_challenge_response_request.py +++ b/authentik_client/models/consent_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/consent_permission.py b/authentik_client/models/consent_permission.py index 202a427ab..92794c274 100644 --- a/authentik_client/models/consent_permission.py +++ b/authentik_client/models/consent_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/consent_stage.py b/authentik_client/models/consent_stage.py index 0cc56e9a0..1dc54d101 100644 --- a/authentik_client/models/consent_stage.py +++ b/authentik_client/models/consent_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,7 +36,7 @@ class ConsentStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] mode: Optional[ConsentStageModeEnum] = None consent_expire_in: Optional[StrictStr] = Field(default=None, description="Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3).") __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "mode", "consent_expire_in"] @@ -76,6 +76,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -83,6 +84,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/consent_stage_mode_enum.py b/authentik_client/models/consent_stage_mode_enum.py index a173a5a4a..7f3ed4f20 100644 --- a/authentik_client/models/consent_stage_mode_enum.py +++ b/authentik_client/models/consent_stage_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/consent_stage_request.py b/authentik_client/models/consent_stage_request.py index 58b222dfe..814cd9038 100644 --- a/authentik_client/models/consent_stage_request.py +++ b/authentik_client/models/consent_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from authentik_client.models.consent_stage_mode_enum import ConsentStageModeEnum -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,10 +30,9 @@ class ConsentStageRequest(BaseModel): ConsentStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None mode: Optional[ConsentStageModeEnum] = None consent_expire_in: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3).") - __properties: ClassVar[List[str]] = ["name", "flow_set", "mode", "consent_expire_in"] + __properties: ClassVar[List[str]] = ["name", "mode", "consent_expire_in"] model_config = ConfigDict( populate_by_name=True, @@ -75,13 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -95,7 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "mode": obj.get("mode"), "consent_expire_in": obj.get("consent_expire_in") }) diff --git a/authentik_client/models/content_type.py b/authentik_client/models/content_type.py new file mode 100644 index 000000000..761690f86 --- /dev/null +++ b/authentik_client/models/content_type.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ContentType(BaseModel): + """ + ContentType + """ # noqa: E501 + id: StrictInt + app_label: StrictStr + model: StrictStr + verbose_name_plural: StrictStr + __properties: ClassVar[List[str]] = ["id", "app_label", "model", "verbose_name_plural"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ContentType from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "id", + "app_label", + "model", + "verbose_name_plural", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ContentType from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "app_label": obj.get("app_label"), + "model": obj.get("model"), + "verbose_name_plural": obj.get("verbose_name_plural") + }) + return _obj + + diff --git a/authentik_client/models/contextual_flow_info.py b/authentik_client/models/contextual_flow_info.py index 5abaf7721..08eaf8281 100644 --- a/authentik_client/models/contextual_flow_info.py +++ b/authentik_client/models/contextual_flow_info.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from authentik_client.models.contextual_flow_info_layout_enum import ContextualFlowInfoLayoutEnum +from authentik_client.models.themed_urls import ThemedUrls from typing import Optional, Set from typing_extensions import Self @@ -30,9 +31,10 @@ class ContextualFlowInfo(BaseModel): """ # noqa: E501 title: Optional[StrictStr] = None background: Optional[StrictStr] = None + background_themed_urls: Optional[ThemedUrls] = None cancel_url: StrictStr layout: ContextualFlowInfoLayoutEnum - __properties: ClassVar[List[str]] = ["title", "background", "cancel_url", "layout"] + __properties: ClassVar[List[str]] = ["title", "background", "background_themed_urls", "cancel_url", "layout"] model_config = ConfigDict( populate_by_name=True, @@ -73,6 +75,14 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of background_themed_urls + if self.background_themed_urls: + _dict['background_themed_urls'] = self.background_themed_urls.to_dict() + # set to None if background_themed_urls (nullable) is None + # and model_fields_set contains the field + if self.background_themed_urls is None and "background_themed_urls" in self.model_fields_set: + _dict['background_themed_urls'] = None + return _dict @classmethod @@ -87,6 +97,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "title": obj.get("title"), "background": obj.get("background"), + "background_themed_urls": ThemedUrls.from_dict(obj["background_themed_urls"]) if obj.get("background_themed_urls") is not None else None, "cancel_url": obj.get("cancel_url"), "layout": obj.get("layout") }) diff --git a/authentik_client/models/contextual_flow_info_layout_enum.py b/authentik_client/models/contextual_flow_info_layout_enum.py index 557e986fc..b86be6401 100644 --- a/authentik_client/models/contextual_flow_info_layout_enum.py +++ b/authentik_client/models/contextual_flow_info_layout_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/country_code_enum.py b/authentik_client/models/country_code_enum.py index d946a3afc..4dc4a8e03 100644 --- a/authentik_client/models/country_code_enum.py +++ b/authentik_client/models/country_code_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/current_brand.py b/authentik_client/models/current_brand.py index a2386a7d6..bbd0bfb7d 100644 --- a/authentik_client/models/current_brand.py +++ b/authentik_client/models/current_brand.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from authentik_client.models.current_brand_flags import CurrentBrandFlags from authentik_client.models.footer_link import FooterLink +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.ui_theme_enum import UiThemeEnum from typing import Optional, Set from typing_extensions import Self @@ -33,7 +34,9 @@ class CurrentBrand(BaseModel): matched_domain: StrictStr branding_title: StrictStr branding_logo: StrictStr + branding_logo_themed_urls: Optional[ThemedUrls] branding_favicon: StrictStr + branding_favicon_themed_urls: Optional[ThemedUrls] branding_custom_css: StrictStr ui_footer_links: List[FooterLink] ui_theme: UiThemeEnum @@ -45,7 +48,7 @@ class CurrentBrand(BaseModel): flow_device_code: Optional[StrictStr] = None default_locale: StrictStr flags: CurrentBrandFlags - __properties: ClassVar[List[str]] = ["matched_domain", "branding_title", "branding_logo", "branding_favicon", "branding_custom_css", "ui_footer_links", "ui_theme", "flow_authentication", "flow_invalidation", "flow_recovery", "flow_unenrollment", "flow_user_settings", "flow_device_code", "default_locale", "flags"] + __properties: ClassVar[List[str]] = ["matched_domain", "branding_title", "branding_logo", "branding_logo_themed_urls", "branding_favicon", "branding_favicon_themed_urls", "branding_custom_css", "ui_footer_links", "ui_theme", "flow_authentication", "flow_invalidation", "flow_recovery", "flow_unenrollment", "flow_user_settings", "flow_device_code", "default_locale", "flags"] model_config = ConfigDict( populate_by_name=True, @@ -80,8 +83,12 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "branding_logo_themed_urls", + "branding_favicon_themed_urls", "ui_footer_links", "ui_theme", "default_locale", @@ -92,6 +99,12 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of branding_logo_themed_urls + if self.branding_logo_themed_urls: + _dict['branding_logo_themed_urls'] = self.branding_logo_themed_urls.to_dict() + # override the default output from pydantic by calling `to_dict()` of branding_favicon_themed_urls + if self.branding_favicon_themed_urls: + _dict['branding_favicon_themed_urls'] = self.branding_favicon_themed_urls.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in ui_footer_links (list) _items = [] if self.ui_footer_links: @@ -102,6 +115,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of flags if self.flags: _dict['flags'] = self.flags.to_dict() + # set to None if branding_logo_themed_urls (nullable) is None + # and model_fields_set contains the field + if self.branding_logo_themed_urls is None and "branding_logo_themed_urls" in self.model_fields_set: + _dict['branding_logo_themed_urls'] = None + + # set to None if branding_favicon_themed_urls (nullable) is None + # and model_fields_set contains the field + if self.branding_favicon_themed_urls is None and "branding_favicon_themed_urls" in self.model_fields_set: + _dict['branding_favicon_themed_urls'] = None + return _dict @classmethod @@ -117,7 +140,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "matched_domain": obj.get("matched_domain"), "branding_title": obj.get("branding_title"), "branding_logo": obj.get("branding_logo"), + "branding_logo_themed_urls": ThemedUrls.from_dict(obj["branding_logo_themed_urls"]) if obj.get("branding_logo_themed_urls") is not None else None, "branding_favicon": obj.get("branding_favicon"), + "branding_favicon_themed_urls": ThemedUrls.from_dict(obj["branding_favicon_themed_urls"]) if obj.get("branding_favicon_themed_urls") is not None else None, "branding_custom_css": obj.get("branding_custom_css"), "ui_footer_links": [FooterLink.from_dict(_item) for _item in obj["ui_footer_links"]] if obj.get("ui_footer_links") is not None else None, "ui_theme": obj.get("ui_theme"), diff --git a/authentik_client/models/current_brand_flags.py b/authentik_client/models/current_brand_flags.py index 360632f79..4ca597729 100644 --- a/authentik_client/models/current_brand_flags.py +++ b/authentik_client/models/current_brand_flags.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,7 +28,9 @@ class CurrentBrandFlags(BaseModel): CurrentBrandFlags """ # noqa: E501 policies_buffered_access_view: StrictBool - __properties: ClassVar[List[str]] = ["policies_buffered_access_view"] + flows_continuous_login: StrictBool + flows_refresh_others: StrictBool + __properties: ClassVar[List[str]] = ["policies_buffered_access_view", "flows_continuous_login", "flows_refresh_others"] model_config = ConfigDict( populate_by_name=True, @@ -81,7 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "policies_buffered_access_view": obj.get("policies_buffered_access_view") + "policies_buffered_access_view": obj.get("policies_buffered_access_view"), + "flows_continuous_login": obj.get("flows_continuous_login"), + "flows_refresh_others": obj.get("flows_refresh_others") }) return _obj diff --git a/authentik_client/models/extra_user_object_permission.py b/authentik_client/models/data_export.py similarity index 52% rename from authentik_client/models/extra_user_object_permission.py rename to authentik_client/models/data_export.py index 55a3f2087..3e6afa388 100644 --- a/authentik_client/models/extra_user_object_permission.py +++ b/authentik_client/models/data_export.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,25 +18,27 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List +from uuid import UUID +from authentik_client.models.content_type import ContentType +from authentik_client.models.partial_user import PartialUser from typing import Optional, Set from typing_extensions import Self -class ExtraUserObjectPermission(BaseModel): +class DataExport(BaseModel): """ - User permission with additional object-related data + Mixin to validate that a valid enterprise license exists before allowing to save the object """ # noqa: E501 - id: StrictInt - codename: StrictStr - model: StrictStr - app_label: StrictStr - object_pk: StrictStr - name: StrictStr - app_label_verbose: StrictStr = Field(description="Get app label from permission's model") - model_verbose: StrictStr = Field(description="Get model label from permission's model") - object_description: Optional[StrictStr] = Field(description="Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the user/role has the view_ permission on the object") - __properties: ClassVar[List[str]] = ["id", "codename", "model", "app_label", "object_pk", "name", "app_label_verbose", "model_verbose", "object_description"] + id: UUID + requested_by: PartialUser + requested_on: datetime + content_type: ContentType + var_query_params: Dict[str, Any] = Field(alias="query_params") + file_url: StrictStr + completed: StrictBool + __properties: ClassVar[List[str]] = ["id", "requested_by", "requested_on", "content_type", "query_params", "file_url", "completed"] model_config = ConfigDict( populate_by_name=True, @@ -56,7 +58,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtraUserObjectPermission from a JSON string""" + """Create an instance of DataExport from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,18 +76,14 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. - * OpenAPI `readOnly` fields are excluded. - * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "id", - "codename", - "model", - "app_label", - "name", - "app_label_verbose", - "model_verbose", - "object_description", + "requested_by", + "requested_on", + "content_type", + "file_url", + "completed", ]) _dict = self.model_dump( @@ -93,16 +91,17 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if object_description (nullable) is None - # and model_fields_set contains the field - if self.object_description is None and "object_description" in self.model_fields_set: - _dict['object_description'] = None - + # override the default output from pydantic by calling `to_dict()` of requested_by + if self.requested_by: + _dict['requested_by'] = self.requested_by.to_dict() + # override the default output from pydantic by calling `to_dict()` of content_type + if self.content_type: + _dict['content_type'] = self.content_type.to_dict() return _dict @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtraUserObjectPermission from a dict""" + """Create an instance of DataExport from a dict""" if obj is None: return None @@ -111,14 +110,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), - "codename": obj.get("codename"), - "model": obj.get("model"), - "app_label": obj.get("app_label"), - "object_pk": obj.get("object_pk"), - "name": obj.get("name"), - "app_label_verbose": obj.get("app_label_verbose"), - "model_verbose": obj.get("model_verbose"), - "object_description": obj.get("object_description") + "requested_by": PartialUser.from_dict(obj["requested_by"]) if obj.get("requested_by") is not None else None, + "requested_on": obj.get("requested_on"), + "content_type": ContentType.from_dict(obj["content_type"]) if obj.get("content_type") is not None else None, + "query_params": obj.get("query_params"), + "file_url": obj.get("file_url"), + "completed": obj.get("completed") }) return _obj diff --git a/authentik_client/models/delivery_method_enum.py b/authentik_client/models/delivery_method_enum.py index a4eef0d15..1f8c2a1c5 100644 --- a/authentik_client/models/delivery_method_enum.py +++ b/authentik_client/models/delivery_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/denied_action_enum.py b/authentik_client/models/denied_action_enum.py index 9ec1a5037..4aaf6c608 100644 --- a/authentik_client/models/denied_action_enum.py +++ b/authentik_client/models/denied_action_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/deny_stage.py b/authentik_client/models/deny_stage.py index cb8917101..b1a80de35 100644 --- a/authentik_client/models/deny_stage.py +++ b/authentik_client/models/deny_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class DenyStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] deny_message: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "deny_message"] @@ -74,6 +74,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -81,6 +82,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/deny_stage_request.py b/authentik_client/models/deny_stage_request.py index cc83871bf..6f7e90f5e 100644 --- a/authentik_client/models/deny_stage_request.py +++ b/authentik_client/models/deny_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,9 +29,8 @@ class DenyStageRequest(BaseModel): DenyStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None deny_message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "deny_message"] + __properties: ClassVar[List[str]] = ["name", "deny_message"] model_config = ConfigDict( populate_by_name=True, @@ -73,13 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -93,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "deny_message": obj.get("deny_message") }) return _obj diff --git a/authentik_client/models/detailed_country.py b/authentik_client/models/detailed_country.py index b78ffe300..96e0a01dc 100644 --- a/authentik_client/models/detailed_country.py +++ b/authentik_client/models/detailed_country.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/detailed_country_field.py b/authentik_client/models/detailed_country_field.py index 3b7517df4..30b96fa8b 100644 --- a/authentik_client/models/detailed_country_field.py +++ b/authentik_client/models/detailed_country_field.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/device.py b/authentik_client/models/device.py index 4ea35165c..96c92000a 100644 --- a/authentik_client/models/device.py +++ b/authentik_client/models/device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/device_access_group.py b/authentik_client/models/device_access_group.py new file mode 100644 index 000000000..61d033759 --- /dev/null +++ b/authentik_client/models/device_access_group.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class DeviceAccessGroup(BaseModel): + """ + DeviceAccessGroup + """ # noqa: E501 + pbm_uuid: UUID + name: StrictStr + __properties: ClassVar[List[str]] = ["pbm_uuid", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceAccessGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "pbm_uuid", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceAccessGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pbm_uuid": obj.get("pbm_uuid"), + "name": obj.get("name") + }) + return _obj + + diff --git a/authentik_client/models/extra_role_object_permission_request.py b/authentik_client/models/device_access_group_request.py similarity index 81% rename from authentik_client/models/extra_role_object_permission_request.py rename to authentik_client/models/device_access_group_request.py index 9b879fad5..8b7b18a5f 100644 --- a/authentik_client/models/extra_role_object_permission_request.py +++ b/authentik_client/models/device_access_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,12 +24,12 @@ from typing import Optional, Set from typing_extensions import Self -class ExtraRoleObjectPermissionRequest(BaseModel): +class DeviceAccessGroupRequest(BaseModel): """ - User permission with additional object-related data + DeviceAccessGroupRequest """ # noqa: E501 - object_pk: Annotated[str, Field(min_length=1, strict=True)] - __properties: ClassVar[List[str]] = ["object_pk"] + name: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtraRoleObjectPermissionRequest from a JSON string""" + """Create an instance of DeviceAccessGroupRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtraRoleObjectPermissionRequest from a dict""" + """Create an instance of DeviceAccessGroupRequest from a dict""" if obj is None: return None @@ -82,7 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "object_pk": obj.get("object_pk") + "name": obj.get("name") }) return _obj diff --git a/authentik_client/models/device_challenge.py b/authentik_client/models/device_challenge.py index a0fec7dd6..5f9bbc277 100644 --- a/authentik_client/models/device_challenge.py +++ b/authentik_client/models/device_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/device_challenge_request.py b/authentik_client/models/device_challenge_request.py index 7bd5dc1a2..eca30027e 100644 --- a/authentik_client/models/device_challenge_request.py +++ b/authentik_client/models/device_challenge_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/device_classes_enum.py b/authentik_client/models/device_classes_enum.py index deb23efed..37737649b 100644 --- a/authentik_client/models/device_classes_enum.py +++ b/authentik_client/models/device_classes_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/device_connection.py b/authentik_client/models/device_connection.py new file mode 100644 index 000000000..4a713324a --- /dev/null +++ b/authentik_client/models/device_connection.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID +from authentik_client.models.connector import Connector +from authentik_client.models.device_fact_snapshot import DeviceFactSnapshot +from typing import Optional, Set +from typing_extensions import Self + +class DeviceConnection(BaseModel): + """ + DeviceConnection + """ # noqa: E501 + device: UUID + connector: UUID + connector_obj: Connector + latest_snapshot: Optional[DeviceFactSnapshot] + __properties: ClassVar[List[str]] = ["device", "connector", "connector_obj", "latest_snapshot"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceConnection from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "connector_obj", + "latest_snapshot", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of connector_obj + if self.connector_obj: + _dict['connector_obj'] = self.connector_obj.to_dict() + # override the default output from pydantic by calling `to_dict()` of latest_snapshot + if self.latest_snapshot: + _dict['latest_snapshot'] = self.latest_snapshot.to_dict() + # set to None if latest_snapshot (nullable) is None + # and model_fields_set contains the field + if self.latest_snapshot is None and "latest_snapshot" in self.model_fields_set: + _dict['latest_snapshot'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceConnection from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "device": obj.get("device"), + "connector": obj.get("connector"), + "connector_obj": Connector.from_dict(obj["connector_obj"]) if obj.get("connector_obj") is not None else None, + "latest_snapshot": DeviceFactSnapshot.from_dict(obj["latest_snapshot"]) if obj.get("latest_snapshot") is not None else None + }) + return _obj + + diff --git a/authentik_client/models/device_fact_snapshot.py b/authentik_client/models/device_fact_snapshot.py new file mode 100644 index 000000000..48c9a2e2e --- /dev/null +++ b/authentik_client/models/device_fact_snapshot.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID +from authentik_client.models.device_facts import DeviceFacts +from typing import Optional, Set +from typing_extensions import Self + +class DeviceFactSnapshot(BaseModel): + """ + DeviceFactSnapshot + """ # noqa: E501 + data: DeviceFacts + connection: UUID + created: datetime + expires: Optional[datetime] + __properties: ClassVar[List[str]] = ["data", "connection", "created", "expires"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceFactSnapshot from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "created", + "expires", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of data + if self.data: + _dict['data'] = self.data.to_dict() + # set to None if expires (nullable) is None + # and model_fields_set contains the field + if self.expires is None and "expires" in self.model_fields_set: + _dict['expires'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceFactSnapshot from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "data": DeviceFacts.from_dict(obj["data"]) if obj.get("data") is not None else None, + "connection": obj.get("connection"), + "created": obj.get("created"), + "expires": obj.get("expires") + }) + return _obj + + diff --git a/authentik_client/models/device_facts.py b/authentik_client/models/device_facts.py new file mode 100644 index 000000000..e1cb63faf --- /dev/null +++ b/authentik_client/models/device_facts.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from authentik_client.models.device_group import DeviceGroup +from authentik_client.models.device_user import DeviceUser +from authentik_client.models.disk import Disk +from authentik_client.models.hardware import Hardware +from authentik_client.models.network import Network +from authentik_client.models.operating_system import OperatingSystem +from authentik_client.models.process import Process +from authentik_client.models.software import Software +from typing import Optional, Set +from typing_extensions import Self + +class DeviceFacts(BaseModel): + """ + DeviceFacts + """ # noqa: E501 + os: Optional[OperatingSystem] = None + disks: Optional[List[Disk]] = None + network: Optional[Network] = None + hardware: Optional[Hardware] = None + software: Optional[List[Software]] = None + processes: Optional[List[Process]] = None + users: Optional[List[DeviceUser]] = None + groups: Optional[List[DeviceGroup]] = None + vendor: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["os", "disks", "network", "hardware", "software", "processes", "users", "groups", "vendor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceFacts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of os + if self.os: + _dict['os'] = self.os.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in disks (list) + _items = [] + if self.disks: + for _item_disks in self.disks: + if _item_disks: + _items.append(_item_disks.to_dict()) + _dict['disks'] = _items + # override the default output from pydantic by calling `to_dict()` of network + if self.network: + _dict['network'] = self.network.to_dict() + # override the default output from pydantic by calling `to_dict()` of hardware + if self.hardware: + _dict['hardware'] = self.hardware.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in software (list) + _items = [] + if self.software: + for _item_software in self.software: + if _item_software: + _items.append(_item_software.to_dict()) + _dict['software'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in processes (list) + _items = [] + if self.processes: + for _item_processes in self.processes: + if _item_processes: + _items.append(_item_processes.to_dict()) + _dict['processes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item_groups in self.groups: + if _item_groups: + _items.append(_item_groups.to_dict()) + _dict['groups'] = _items + # set to None if os (nullable) is None + # and model_fields_set contains the field + if self.os is None and "os" in self.model_fields_set: + _dict['os'] = None + + # set to None if disks (nullable) is None + # and model_fields_set contains the field + if self.disks is None and "disks" in self.model_fields_set: + _dict['disks'] = None + + # set to None if network (nullable) is None + # and model_fields_set contains the field + if self.network is None and "network" in self.model_fields_set: + _dict['network'] = None + + # set to None if hardware (nullable) is None + # and model_fields_set contains the field + if self.hardware is None and "hardware" in self.model_fields_set: + _dict['hardware'] = None + + # set to None if software (nullable) is None + # and model_fields_set contains the field + if self.software is None and "software" in self.model_fields_set: + _dict['software'] = None + + # set to None if processes (nullable) is None + # and model_fields_set contains the field + if self.processes is None and "processes" in self.model_fields_set: + _dict['processes'] = None + + # set to None if users (nullable) is None + # and model_fields_set contains the field + if self.users is None and "users" in self.model_fields_set: + _dict['users'] = None + + # set to None if groups (nullable) is None + # and model_fields_set contains the field + if self.groups is None and "groups" in self.model_fields_set: + _dict['groups'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceFacts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "os": OperatingSystem.from_dict(obj["os"]) if obj.get("os") is not None else None, + "disks": [Disk.from_dict(_item) for _item in obj["disks"]] if obj.get("disks") is not None else None, + "network": Network.from_dict(obj["network"]) if obj.get("network") is not None else None, + "hardware": Hardware.from_dict(obj["hardware"]) if obj.get("hardware") is not None else None, + "software": [Software.from_dict(_item) for _item in obj["software"]] if obj.get("software") is not None else None, + "processes": [Process.from_dict(_item) for _item in obj["processes"]] if obj.get("processes") is not None else None, + "users": [DeviceUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "groups": [DeviceGroup.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None, + "vendor": obj.get("vendor") + }) + return _obj + + diff --git a/authentik_client/models/device_facts_os_family.py b/authentik_client/models/device_facts_os_family.py new file mode 100644 index 000000000..ac8857281 --- /dev/null +++ b/authentik_client/models/device_facts_os_family.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class DeviceFactsOSFamily(str, Enum): + """ + DeviceFactsOSFamily + """ + + """ + allowed enum values + """ + LINUX = 'linux' + UNIX = 'unix' + BSD = 'bsd' + WINDOWS = 'windows' + MAC_OS = 'mac_os' + ANDROID = 'android' + I_OS = 'i_os' + OTHER = 'other' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of DeviceFactsOSFamily from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/authentik_client/models/device_facts_request.py b/authentik_client/models/device_facts_request.py new file mode 100644 index 000000000..5a9a92ee1 --- /dev/null +++ b/authentik_client/models/device_facts_request.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from authentik_client.models.device_group_request import DeviceGroupRequest +from authentik_client.models.device_user_request import DeviceUserRequest +from authentik_client.models.disk_request import DiskRequest +from authentik_client.models.hardware_request import HardwareRequest +from authentik_client.models.network_request import NetworkRequest +from authentik_client.models.operating_system_request import OperatingSystemRequest +from authentik_client.models.process_request import ProcessRequest +from authentik_client.models.software_request import SoftwareRequest +from typing import Optional, Set +from typing_extensions import Self + +class DeviceFactsRequest(BaseModel): + """ + DeviceFactsRequest + """ # noqa: E501 + os: Optional[OperatingSystemRequest] = None + disks: Optional[List[DiskRequest]] = None + network: Optional[NetworkRequest] = None + hardware: Optional[HardwareRequest] = None + software: Optional[List[SoftwareRequest]] = None + processes: Optional[List[ProcessRequest]] = None + users: Optional[List[DeviceUserRequest]] = None + groups: Optional[List[DeviceGroupRequest]] = None + vendor: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["os", "disks", "network", "hardware", "software", "processes", "users", "groups", "vendor"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceFactsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of os + if self.os: + _dict['os'] = self.os.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in disks (list) + _items = [] + if self.disks: + for _item_disks in self.disks: + if _item_disks: + _items.append(_item_disks.to_dict()) + _dict['disks'] = _items + # override the default output from pydantic by calling `to_dict()` of network + if self.network: + _dict['network'] = self.network.to_dict() + # override the default output from pydantic by calling `to_dict()` of hardware + if self.hardware: + _dict['hardware'] = self.hardware.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in software (list) + _items = [] + if self.software: + for _item_software in self.software: + if _item_software: + _items.append(_item_software.to_dict()) + _dict['software'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in processes (list) + _items = [] + if self.processes: + for _item_processes in self.processes: + if _item_processes: + _items.append(_item_processes.to_dict()) + _dict['processes'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in groups (list) + _items = [] + if self.groups: + for _item_groups in self.groups: + if _item_groups: + _items.append(_item_groups.to_dict()) + _dict['groups'] = _items + # set to None if os (nullable) is None + # and model_fields_set contains the field + if self.os is None and "os" in self.model_fields_set: + _dict['os'] = None + + # set to None if disks (nullable) is None + # and model_fields_set contains the field + if self.disks is None and "disks" in self.model_fields_set: + _dict['disks'] = None + + # set to None if network (nullable) is None + # and model_fields_set contains the field + if self.network is None and "network" in self.model_fields_set: + _dict['network'] = None + + # set to None if hardware (nullable) is None + # and model_fields_set contains the field + if self.hardware is None and "hardware" in self.model_fields_set: + _dict['hardware'] = None + + # set to None if software (nullable) is None + # and model_fields_set contains the field + if self.software is None and "software" in self.model_fields_set: + _dict['software'] = None + + # set to None if processes (nullable) is None + # and model_fields_set contains the field + if self.processes is None and "processes" in self.model_fields_set: + _dict['processes'] = None + + # set to None if users (nullable) is None + # and model_fields_set contains the field + if self.users is None and "users" in self.model_fields_set: + _dict['users'] = None + + # set to None if groups (nullable) is None + # and model_fields_set contains the field + if self.groups is None and "groups" in self.model_fields_set: + _dict['groups'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceFactsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "os": OperatingSystemRequest.from_dict(obj["os"]) if obj.get("os") is not None else None, + "disks": [DiskRequest.from_dict(_item) for _item in obj["disks"]] if obj.get("disks") is not None else None, + "network": NetworkRequest.from_dict(obj["network"]) if obj.get("network") is not None else None, + "hardware": HardwareRequest.from_dict(obj["hardware"]) if obj.get("hardware") is not None else None, + "software": [SoftwareRequest.from_dict(_item) for _item in obj["software"]] if obj.get("software") is not None else None, + "processes": [ProcessRequest.from_dict(_item) for _item in obj["processes"]] if obj.get("processes") is not None else None, + "users": [DeviceUserRequest.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "groups": [DeviceGroupRequest.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None, + "vendor": obj.get("vendor") + }) + return _obj + + diff --git a/authentik_client/models/device_group.py b/authentik_client/models/device_group.py new file mode 100644 index 000000000..41f4e6028 --- /dev/null +++ b/authentik_client/models/device_group.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeviceGroup(BaseModel): + """ + DeviceGroup + """ # noqa: E501 + id: StrictStr + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceGroup from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceGroup from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name") + }) + return _obj + + diff --git a/authentik_client/models/patched_extra_user_object_permission_request.py b/authentik_client/models/device_group_request.py similarity index 80% rename from authentik_client/models/patched_extra_user_object_permission_request.py rename to authentik_client/models/device_group_request.py index b3f612940..cc4e45647 100644 --- a/authentik_client/models/patched_extra_user_object_permission_request.py +++ b/authentik_client/models/device_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,12 +24,13 @@ from typing import Optional, Set from typing_extensions import Self -class PatchedExtraUserObjectPermissionRequest(BaseModel): +class DeviceGroupRequest(BaseModel): """ - User permission with additional object-related data + DeviceGroupRequest """ # noqa: E501 - object_pk: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - __properties: ClassVar[List[str]] = ["object_pk"] + id: Annotated[str, Field(min_length=1, strict=True)] + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PatchedExtraUserObjectPermissionRequest from a JSON string""" + """Create an instance of DeviceGroupRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PatchedExtraUserObjectPermissionRequest from a dict""" + """Create an instance of DeviceGroupRequest from a dict""" if obj is None: return None @@ -82,7 +83,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "object_pk": obj.get("object_pk") + "id": obj.get("id"), + "name": obj.get("name") }) return _obj diff --git a/authentik_client/models/device_summary.py b/authentik_client/models/device_summary.py new file mode 100644 index 000000000..9ecd3d1b2 --- /dev/null +++ b/authentik_client/models/device_summary.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class DeviceSummary(BaseModel): + """ + Summary of registered devices + """ # noqa: E501 + total_count: StrictInt + unreachable_count: StrictInt + outdated_agent_count: StrictInt + __properties: ClassVar[List[str]] = ["total_count", "unreachable_count", "outdated_agent_count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceSummary from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceSummary from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "total_count": obj.get("total_count"), + "unreachable_count": obj.get("unreachable_count"), + "outdated_agent_count": obj.get("outdated_agent_count") + }) + return _obj + + diff --git a/authentik_client/models/device_user.py b/authentik_client/models/device_user.py new file mode 100644 index 000000000..37baa912d --- /dev/null +++ b/authentik_client/models/device_user.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class DeviceUser(BaseModel): + """ + DeviceUser + """ # noqa: E501 + id: StrictStr + username: Optional[StrictStr] = None + name: Optional[StrictStr] = None + home: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "username", "name", "home"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "username": obj.get("username"), + "name": obj.get("name"), + "home": obj.get("home") + }) + return _obj + + diff --git a/authentik_client/models/device_user_binding.py b/authentik_client/models/device_user_binding.py new file mode 100644 index 000000000..043a59971 --- /dev/null +++ b/authentik_client/models/device_user_binding.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from authentik_client.models.connector import Connector +from authentik_client.models.partial_group import PartialGroup +from authentik_client.models.partial_user import PartialUser +from authentik_client.models.policy import Policy +from typing import Optional, Set +from typing_extensions import Self + +class DeviceUserBinding(BaseModel): + """ + PolicyBinding Serializer + """ # noqa: E501 + pk: UUID + policy: Optional[UUID] = None + group: Optional[UUID] = None + user: Optional[StrictInt] = None + policy_obj: Policy + group_obj: PartialGroup + user_obj: PartialUser + target: UUID + negate: Optional[StrictBool] = Field(default=None, description="Negates the outcome of the policy. Messages are unaffected.") + enabled: Optional[StrictBool] = None + order: Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)] + timeout: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Timeout after which Policy execution is terminated.") + failure_result: Optional[StrictBool] = Field(default=None, description="Result if the Policy execution fails.") + is_primary: Optional[StrictBool] = None + connector: Optional[UUID] + connector_obj: Connector + __properties: ClassVar[List[str]] = ["pk", "policy", "group", "user", "policy_obj", "group_obj", "user_obj", "target", "negate", "enabled", "order", "timeout", "failure_result", "is_primary", "connector", "connector_obj"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceUserBinding from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "pk", + "policy_obj", + "group_obj", + "user_obj", + "connector", + "connector_obj", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of policy_obj + if self.policy_obj: + _dict['policy_obj'] = self.policy_obj.to_dict() + # override the default output from pydantic by calling `to_dict()` of group_obj + if self.group_obj: + _dict['group_obj'] = self.group_obj.to_dict() + # override the default output from pydantic by calling `to_dict()` of user_obj + if self.user_obj: + _dict['user_obj'] = self.user_obj.to_dict() + # override the default output from pydantic by calling `to_dict()` of connector_obj + if self.connector_obj: + _dict['connector_obj'] = self.connector_obj.to_dict() + # set to None if policy (nullable) is None + # and model_fields_set contains the field + if self.policy is None and "policy" in self.model_fields_set: + _dict['policy'] = None + + # set to None if group (nullable) is None + # and model_fields_set contains the field + if self.group is None and "group" in self.model_fields_set: + _dict['group'] = None + + # set to None if user (nullable) is None + # and model_fields_set contains the field + if self.user is None and "user" in self.model_fields_set: + _dict['user'] = None + + # set to None if connector (nullable) is None + # and model_fields_set contains the field + if self.connector is None and "connector" in self.model_fields_set: + _dict['connector'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceUserBinding from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pk": obj.get("pk"), + "policy": obj.get("policy"), + "group": obj.get("group"), + "user": obj.get("user"), + "policy_obj": Policy.from_dict(obj["policy_obj"]) if obj.get("policy_obj") is not None else None, + "group_obj": PartialGroup.from_dict(obj["group_obj"]) if obj.get("group_obj") is not None else None, + "user_obj": PartialUser.from_dict(obj["user_obj"]) if obj.get("user_obj") is not None else None, + "target": obj.get("target"), + "negate": obj.get("negate"), + "enabled": obj.get("enabled"), + "order": obj.get("order"), + "timeout": obj.get("timeout"), + "failure_result": obj.get("failure_result"), + "is_primary": obj.get("is_primary"), + "connector": obj.get("connector"), + "connector_obj": Connector.from_dict(obj["connector_obj"]) if obj.get("connector_obj") is not None else None + }) + return _obj + + diff --git a/authentik_client/models/device_user_binding_request.py b/authentik_client/models/device_user_binding_request.py new file mode 100644 index 000000000..e52408b3a --- /dev/null +++ b/authentik_client/models/device_user_binding_request.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class DeviceUserBindingRequest(BaseModel): + """ + PolicyBinding Serializer + """ # noqa: E501 + policy: Optional[UUID] = None + group: Optional[UUID] = None + user: Optional[StrictInt] = None + target: UUID + negate: Optional[StrictBool] = Field(default=None, description="Negates the outcome of the policy. Messages are unaffected.") + enabled: Optional[StrictBool] = None + order: Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)] + timeout: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Timeout after which Policy execution is terminated.") + failure_result: Optional[StrictBool] = Field(default=None, description="Result if the Policy execution fails.") + is_primary: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["policy", "group", "user", "target", "negate", "enabled", "order", "timeout", "failure_result", "is_primary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceUserBindingRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if policy (nullable) is None + # and model_fields_set contains the field + if self.policy is None and "policy" in self.model_fields_set: + _dict['policy'] = None + + # set to None if group (nullable) is None + # and model_fields_set contains the field + if self.group is None and "group" in self.model_fields_set: + _dict['group'] = None + + # set to None if user (nullable) is None + # and model_fields_set contains the field + if self.user is None and "user" in self.model_fields_set: + _dict['user'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceUserBindingRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": obj.get("policy"), + "group": obj.get("group"), + "user": obj.get("user"), + "target": obj.get("target"), + "negate": obj.get("negate"), + "enabled": obj.get("enabled"), + "order": obj.get("order"), + "timeout": obj.get("timeout"), + "failure_result": obj.get("failure_result"), + "is_primary": obj.get("is_primary") + }) + return _obj + + diff --git a/authentik_client/models/device_user_request.py b/authentik_client/models/device_user_request.py new file mode 100644 index 000000000..b69305578 --- /dev/null +++ b/authentik_client/models/device_user_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class DeviceUserRequest(BaseModel): + """ + DeviceUserRequest + """ # noqa: E501 + id: Annotated[str, Field(min_length=1, strict=True)] + username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + home: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + __properties: ClassVar[List[str]] = ["id", "username", "name", "home"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DeviceUserRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DeviceUserRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "username": obj.get("username"), + "name": obj.get("name"), + "home": obj.get("home") + }) + return _obj + + diff --git a/authentik_client/models/digest_algorithm_enum.py b/authentik_client/models/digest_algorithm_enum.py index abc304eee..3a31ff78a 100644 --- a/authentik_client/models/digest_algorithm_enum.py +++ b/authentik_client/models/digest_algorithm_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/digits_enum.py b/authentik_client/models/digits_enum.py index 3a5b1f1ed..00c9b9f04 100644 --- a/authentik_client/models/digits_enum.py +++ b/authentik_client/models/digits_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/disk.py b/authentik_client/models/disk.py new file mode 100644 index 000000000..97e466b4f --- /dev/null +++ b/authentik_client/models/disk.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Disk(BaseModel): + """ + Disk + """ # noqa: E501 + name: StrictStr + mountpoint: StrictStr + label: Optional[StrictStr] = None + capacity_total_bytes: Optional[StrictInt] = None + capacity_used_bytes: Optional[StrictInt] = None + encryption_enabled: Optional[StrictBool] = False + __properties: ClassVar[List[str]] = ["name", "mountpoint", "label", "capacity_total_bytes", "capacity_used_bytes", "encryption_enabled"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Disk from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Disk from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "mountpoint": obj.get("mountpoint"), + "label": obj.get("label"), + "capacity_total_bytes": obj.get("capacity_total_bytes"), + "capacity_used_bytes": obj.get("capacity_used_bytes"), + "encryption_enabled": obj.get("encryption_enabled") if obj.get("encryption_enabled") is not None else False + }) + return _obj + + diff --git a/authentik_client/models/disk_request.py b/authentik_client/models/disk_request.py new file mode 100644 index 000000000..a04504658 --- /dev/null +++ b/authentik_client/models/disk_request.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class DiskRequest(BaseModel): + """ + DiskRequest + """ # noqa: E501 + name: Annotated[str, Field(min_length=1, strict=True)] + mountpoint: Annotated[str, Field(min_length=1, strict=True)] + label: Optional[StrictStr] = None + capacity_total_bytes: Optional[StrictInt] = None + capacity_used_bytes: Optional[StrictInt] = None + encryption_enabled: Optional[StrictBool] = False + __properties: ClassVar[List[str]] = ["name", "mountpoint", "label", "capacity_total_bytes", "capacity_used_bytes", "encryption_enabled"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of DiskRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DiskRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "mountpoint": obj.get("mountpoint"), + "label": obj.get("label"), + "capacity_total_bytes": obj.get("capacity_total_bytes"), + "capacity_used_bytes": obj.get("capacity_used_bytes"), + "encryption_enabled": obj.get("encryption_enabled") if obj.get("encryption_enabled") is not None else False + }) + return _obj + + diff --git a/authentik_client/models/docker_service_connection.py b/authentik_client/models/docker_service_connection.py index f22f08fb1..f331da83c 100644 --- a/authentik_client/models/docker_service_connection.py +++ b/authentik_client/models/docker_service_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/docker_service_connection_request.py b/authentik_client/models/docker_service_connection_request.py index 86338c12b..64d9bd718 100644 --- a/authentik_client/models/docker_service_connection_request.py +++ b/authentik_client/models/docker_service_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/domain.py b/authentik_client/models/domain.py index f7d694003..8b65c97e5 100644 --- a/authentik_client/models/domain.py +++ b/authentik_client/models/domain.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/domain_request.py b/authentik_client/models/domain_request.py index 61b906f5b..b40ab148c 100644 --- a/authentik_client/models/domain_request.py +++ b/authentik_client/models/domain_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/dummy_challenge.py b/authentik_client/models/dummy_challenge.py index a17502199..a3b365208 100644 --- a/authentik_client/models/dummy_challenge.py +++ b/authentik_client/models/dummy_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/dummy_challenge_response_request.py b/authentik_client/models/dummy_challenge_response_request.py index d9c883ba3..5d1a240fc 100644 --- a/authentik_client/models/dummy_challenge_response_request.py +++ b/authentik_client/models/dummy_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/dummy_policy.py b/authentik_client/models/dummy_policy.py index 43134c4e6..4aff43f96 100644 --- a/authentik_client/models/dummy_policy.py +++ b/authentik_client/models/dummy_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/dummy_policy_request.py b/authentik_client/models/dummy_policy_request.py index bce76b54d..605b05205 100644 --- a/authentik_client/models/dummy_policy_request.py +++ b/authentik_client/models/dummy_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/dummy_stage.py b/authentik_client/models/dummy_stage.py index b6afeb908..a8a20a2bf 100644 --- a/authentik_client/models/dummy_stage.py +++ b/authentik_client/models/dummy_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class DummyStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] throw_error: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "throw_error"] @@ -74,6 +74,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -81,6 +82,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/dummy_stage_request.py b/authentik_client/models/dummy_stage_request.py index d69d139b4..820d9384c 100644 --- a/authentik_client/models/dummy_stage_request.py +++ b/authentik_client/models/dummy_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,9 +29,8 @@ class DummyStageRequest(BaseModel): DummyStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None throw_error: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "throw_error"] + __properties: ClassVar[List[str]] = ["name", "throw_error"] model_config = ConfigDict( populate_by_name=True, @@ -73,13 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -93,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "throw_error": obj.get("throw_error") }) return _obj diff --git a/authentik_client/models/duo_device.py b/authentik_client/models/duo_device.py index 05f053784..2a8d287fc 100644 --- a/authentik_client/models/duo_device.py +++ b/authentik_client/models/duo_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/duo_device_enrollment_status.py b/authentik_client/models/duo_device_enrollment_status.py index bd079b149..651367654 100644 --- a/authentik_client/models/duo_device_enrollment_status.py +++ b/authentik_client/models/duo_device_enrollment_status.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/duo_device_request.py b/authentik_client/models/duo_device_request.py index 96e47bddf..db4d74df5 100644 --- a/authentik_client/models/duo_device_request.py +++ b/authentik_client/models/duo_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/duo_response_enum.py b/authentik_client/models/duo_response_enum.py index a58d5c9b5..059693eb7 100644 --- a/authentik_client/models/duo_response_enum.py +++ b/authentik_client/models/duo_response_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/email_challenge.py b/authentik_client/models/email_challenge.py index 66e0841c9..9ceea5f5c 100644 --- a/authentik_client/models/email_challenge.py +++ b/authentik_client/models/email_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/email_challenge_response_request.py b/authentik_client/models/email_challenge_response_request.py index 4629828f6..572a53f98 100644 --- a/authentik_client/models/email_challenge_response_request.py +++ b/authentik_client/models/email_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/email_device.py b/authentik_client/models/email_device.py index 63d7bebfa..4fe5dcdea 100644 --- a/authentik_client/models/email_device.py +++ b/authentik_client/models/email_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/email_device_request.py b/authentik_client/models/email_device_request.py index 5f0709881..cd59136e4 100644 --- a/authentik_client/models/email_device_request.py +++ b/authentik_client/models/email_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/email_stage.py b/authentik_client/models/email_stage.py index 1559e5fef..972643b72 100644 --- a/authentik_client/models/email_stage.py +++ b/authentik_client/models/email_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,7 +36,7 @@ class EmailStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] use_global_settings: Optional[StrictBool] = Field(default=None, description="When enabled, global Email connection settings will be used and connection settings below will be ignored.") host: Optional[StrictStr] = None port: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)]] = None @@ -88,6 +88,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -95,6 +96,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/email_stage_request.py b/authentik_client/models/email_stage_request.py index 479502a53..92d6c793e 100644 --- a/authentik_client/models/email_stage_request.py +++ b/authentik_client/models/email_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,7 +29,6 @@ class EmailStageRequest(BaseModel): EmailStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None use_global_settings: Optional[StrictBool] = Field(default=None, description="When enabled, global Email connection settings will be used and connection settings below will be ignored.") host: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None port: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)]] = None @@ -46,7 +44,7 @@ class EmailStageRequest(BaseModel): activate_user_on_success: Optional[StrictBool] = Field(default=None, description="Activate users upon completion of stage.") recovery_max_attempts: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None recovery_cache_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The time window used to count recent account recovery attempts. If the number of attempts exceed recovery_max_attempts within this period, further attempts will be rate-limited. (Format: hours=1;minutes=2;seconds=3).") - __properties: ClassVar[List[str]] = ["name", "flow_set", "use_global_settings", "host", "port", "username", "password", "use_tls", "use_ssl", "timeout", "from_address", "token_expiry", "subject", "template", "activate_user_on_success", "recovery_max_attempts", "recovery_cache_timeout"] + __properties: ClassVar[List[str]] = ["name", "use_global_settings", "host", "port", "username", "password", "use_tls", "use_ssl", "timeout", "from_address", "token_expiry", "subject", "template", "activate_user_on_success", "recovery_max_attempts", "recovery_cache_timeout"] model_config = ConfigDict( populate_by_name=True, @@ -87,13 +85,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -107,7 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "use_global_settings": obj.get("use_global_settings"), "host": obj.get("host"), "port": obj.get("port"), diff --git a/authentik_client/models/endpoint.py b/authentik_client/models/endpoint.py index 348309b2c..1998fe129 100644 --- a/authentik_client/models/endpoint.py +++ b/authentik_client/models/endpoint.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/endpoint_agent_challenge.py b/authentik_client/models/endpoint_agent_challenge.py new file mode 100644 index 000000000..5bf13b5dd --- /dev/null +++ b/authentik_client/models/endpoint_agent_challenge.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from authentik_client.models.contextual_flow_info import ContextualFlowInfo +from authentik_client.models.error_detail import ErrorDetail +from typing import Optional, Set +from typing_extensions import Self + +class EndpointAgentChallenge(BaseModel): + """ + Signed challenge for authentik agent to respond to + """ # noqa: E501 + flow_info: Optional[ContextualFlowInfo] = None + component: Optional[StrictStr] = 'ak-stage-endpoint-agent' + response_errors: Optional[Dict[str, List[ErrorDetail]]] = None + challenge: StrictStr + challenge_idle_timeout: StrictInt + __properties: ClassVar[List[str]] = ["flow_info", "component", "response_errors", "challenge", "challenge_idle_timeout"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointAgentChallenge from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of flow_info + if self.flow_info: + _dict['flow_info'] = self.flow_info.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in response_errors (dict of array) + _field_dict_of_array = {} + if self.response_errors: + for _key_response_errors in self.response_errors: + if self.response_errors[_key_response_errors] is not None: + _field_dict_of_array[_key_response_errors] = [ + _item.to_dict() for _item in self.response_errors[_key_response_errors] + ] + _dict['response_errors'] = _field_dict_of_array + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointAgentChallenge from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "flow_info": ContextualFlowInfo.from_dict(obj["flow_info"]) if obj.get("flow_info") is not None else None, + "component": obj.get("component") if obj.get("component") is not None else 'ak-stage-endpoint-agent', + "response_errors": dict( + (_k, + [ErrorDetail.from_dict(_item) for _item in _v] + if _v is not None + else None + ) + for _k, _v in obj.get("response_errors", {}).items() + ), + "challenge": obj.get("challenge"), + "challenge_idle_timeout": obj.get("challenge_idle_timeout") + }) + return _obj + + diff --git a/authentik_client/models/endpoint_agent_challenge_response_request.py b/authentik_client/models/endpoint_agent_challenge_response_request.py new file mode 100644 index 000000000..1c4b693bd --- /dev/null +++ b/authentik_client/models/endpoint_agent_challenge_response_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class EndpointAgentChallengeResponseRequest(BaseModel): + """ + Response to signed challenge + """ # noqa: E501 + component: Optional[Annotated[str, Field(min_length=1, strict=True)]] = 'ak-stage-endpoint-agent' + response: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + __properties: ClassVar[List[str]] = ["component", "response"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointAgentChallengeResponseRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if response (nullable) is None + # and model_fields_set contains the field + if self.response is None and "response" in self.model_fields_set: + _dict['response'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointAgentChallengeResponseRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "component": obj.get("component") if obj.get("component") is not None else 'ak-stage-endpoint-agent', + "response": obj.get("response") + }) + return _obj + + diff --git a/authentik_client/models/endpoint_auth_mode_enum.py b/authentik_client/models/endpoint_auth_mode_enum.py index 4b18010bf..9ae87b6fd 100644 --- a/authentik_client/models/endpoint_auth_mode_enum.py +++ b/authentik_client/models/endpoint_auth_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/endpoint_device.py b/authentik_client/models/endpoint_device.py index 0ef04f0c4..696ef70c1 100644 --- a/authentik_client/models/endpoint_device.py +++ b/authentik_client/models/endpoint_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,20 +18,29 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from typing_extensions import Annotated from uuid import UUID +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.models.device_fact_snapshot import DeviceFactSnapshot from typing import Optional, Set from typing_extensions import Self class EndpointDevice(BaseModel): """ - Serializer for Endpoint authenticator devices + EndpointDevice """ # noqa: E501 - pk: Optional[UUID] = None - name: Annotated[str, Field(strict=True, max_length=64)] = Field(description="The human-readable name of this device.") - __properties: ClassVar[List[str]] = ["pk", "name"] + device_uuid: Optional[UUID] = None + pbm_uuid: UUID + name: StrictStr + access_group: Optional[UUID] = None + access_group_obj: Optional[DeviceAccessGroup] = None + expiring: Optional[StrictBool] = None + expires: Optional[datetime] = None + facts: DeviceFactSnapshot + attributes: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["device_uuid", "pbm_uuid", "name", "access_group", "access_group_obj", "expiring", "expires", "facts", "attributes"] model_config = ConfigDict( populate_by_name=True, @@ -63,8 +72,12 @@ def to_dict(self) -> Dict[str, Any]: * `None` is only added to the output dict for nullable fields that were set at model initialization. Other fields with value `None` are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ + "pbm_uuid", + "facts", ]) _dict = self.model_dump( @@ -72,6 +85,22 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of access_group_obj + if self.access_group_obj: + _dict['access_group_obj'] = self.access_group_obj.to_dict() + # override the default output from pydantic by calling `to_dict()` of facts + if self.facts: + _dict['facts'] = self.facts.to_dict() + # set to None if access_group (nullable) is None + # and model_fields_set contains the field + if self.access_group is None and "access_group" in self.model_fields_set: + _dict['access_group'] = None + + # set to None if expires (nullable) is None + # and model_fields_set contains the field + if self.expires is None and "expires" in self.model_fields_set: + _dict['expires'] = None + return _dict @classmethod @@ -84,8 +113,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "pk": obj.get("pk"), - "name": obj.get("name") + "device_uuid": obj.get("device_uuid"), + "pbm_uuid": obj.get("pbm_uuid"), + "name": obj.get("name"), + "access_group": obj.get("access_group"), + "access_group_obj": DeviceAccessGroup.from_dict(obj["access_group_obj"]) if obj.get("access_group_obj") is not None else None, + "expiring": obj.get("expiring"), + "expires": obj.get("expires"), + "facts": DeviceFactSnapshot.from_dict(obj["facts"]) if obj.get("facts") is not None else None, + "attributes": obj.get("attributes") }) return _obj diff --git a/authentik_client/models/endpoint_device_details.py b/authentik_client/models/endpoint_device_details.py new file mode 100644 index 000000000..b093957a1 --- /dev/null +++ b/authentik_client/models/endpoint_device_details.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.models.device_connection import DeviceConnection +from authentik_client.models.device_fact_snapshot import DeviceFactSnapshot +from typing import Optional, Set +from typing_extensions import Self + +class EndpointDeviceDetails(BaseModel): + """ + EndpointDeviceDetails + """ # noqa: E501 + device_uuid: Optional[UUID] = None + pbm_uuid: UUID + name: StrictStr + access_group: Optional[UUID] = None + access_group_obj: Optional[DeviceAccessGroup] = None + expiring: Optional[StrictBool] = None + expires: Optional[datetime] = None + facts: DeviceFactSnapshot + attributes: Optional[Dict[str, Any]] = None + connections_obj: List[DeviceConnection] + policies: List[UUID] + connections: List[UUID] + __properties: ClassVar[List[str]] = ["device_uuid", "pbm_uuid", "name", "access_group", "access_group_obj", "expiring", "expires", "facts", "attributes", "connections_obj", "policies", "connections"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointDeviceDetails from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "pbm_uuid", + "facts", + "policies", + "connections", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of access_group_obj + if self.access_group_obj: + _dict['access_group_obj'] = self.access_group_obj.to_dict() + # override the default output from pydantic by calling `to_dict()` of facts + if self.facts: + _dict['facts'] = self.facts.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in connections_obj (list) + _items = [] + if self.connections_obj: + for _item_connections_obj in self.connections_obj: + if _item_connections_obj: + _items.append(_item_connections_obj.to_dict()) + _dict['connections_obj'] = _items + # set to None if access_group (nullable) is None + # and model_fields_set contains the field + if self.access_group is None and "access_group" in self.model_fields_set: + _dict['access_group'] = None + + # set to None if expires (nullable) is None + # and model_fields_set contains the field + if self.expires is None and "expires" in self.model_fields_set: + _dict['expires'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointDeviceDetails from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "device_uuid": obj.get("device_uuid"), + "pbm_uuid": obj.get("pbm_uuid"), + "name": obj.get("name"), + "access_group": obj.get("access_group"), + "access_group_obj": DeviceAccessGroup.from_dict(obj["access_group_obj"]) if obj.get("access_group_obj") is not None else None, + "expiring": obj.get("expiring"), + "expires": obj.get("expires"), + "facts": DeviceFactSnapshot.from_dict(obj["facts"]) if obj.get("facts") is not None else None, + "attributes": obj.get("attributes"), + "connections_obj": [DeviceConnection.from_dict(_item) for _item in obj["connections_obj"]] if obj.get("connections_obj") is not None else None, + "policies": obj.get("policies"), + "connections": obj.get("connections") + }) + return _obj + + diff --git a/authentik_client/models/endpoint_device_request.py b/authentik_client/models/endpoint_device_request.py index 32428aed4..73e75a2b9 100644 --- a/authentik_client/models/endpoint_device_request.py +++ b/authentik_client/models/endpoint_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,20 +18,27 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest from typing import Optional, Set from typing_extensions import Self class EndpointDeviceRequest(BaseModel): """ - Serializer for Endpoint authenticator devices + EndpointDeviceRequest """ # noqa: E501 - pk: Optional[UUID] = None - name: Annotated[str, Field(min_length=1, strict=True, max_length=64)] = Field(description="The human-readable name of this device.") - __properties: ClassVar[List[str]] = ["pk", "name"] + device_uuid: Optional[UUID] = None + name: Annotated[str, Field(min_length=1, strict=True)] + access_group: Optional[UUID] = None + access_group_obj: Optional[DeviceAccessGroupRequest] = None + expiring: Optional[StrictBool] = None + expires: Optional[datetime] = None + attributes: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["device_uuid", "name", "access_group", "access_group_obj", "expiring", "expires", "attributes"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +79,19 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of access_group_obj + if self.access_group_obj: + _dict['access_group_obj'] = self.access_group_obj.to_dict() + # set to None if access_group (nullable) is None + # and model_fields_set contains the field + if self.access_group is None and "access_group" in self.model_fields_set: + _dict['access_group'] = None + + # set to None if expires (nullable) is None + # and model_fields_set contains the field + if self.expires is None and "expires" in self.model_fields_set: + _dict['expires'] = None + return _dict @classmethod @@ -84,8 +104,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "pk": obj.get("pk"), - "name": obj.get("name") + "device_uuid": obj.get("device_uuid"), + "name": obj.get("name"), + "access_group": obj.get("access_group"), + "access_group_obj": DeviceAccessGroupRequest.from_dict(obj["access_group_obj"]) if obj.get("access_group_obj") is not None else None, + "expiring": obj.get("expiring"), + "expires": obj.get("expires"), + "attributes": obj.get("attributes") }) return _obj diff --git a/authentik_client/models/endpoint_request.py b/authentik_client/models/endpoint_request.py index 0ea2edfc2..37fe236cb 100644 --- a/authentik_client/models/endpoint_request.py +++ b/authentik_client/models/endpoint_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/endpoint_stage.py b/authentik_client/models/endpoint_stage.py new file mode 100644 index 000000000..3be42787d --- /dev/null +++ b/authentik_client/models/endpoint_stage.py @@ -0,0 +1,134 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID +from authentik_client.models.connector import Connector +from authentik_client.models.flow_set import FlowSet +from authentik_client.models.stage_mode_enum import StageModeEnum +from typing import Optional, Set +from typing_extensions import Self + +class EndpointStage(BaseModel): + """ + EndpointStage Serializer + """ # noqa: E501 + pk: UUID + name: StrictStr + component: StrictStr = Field(description="Get object type so that we know how to edit the object") + verbose_name: StrictStr = Field(description="Return object's verbose_name") + verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") + meta_model_name: StrictStr = Field(description="Return internal model name") + flow_set: List[FlowSet] + connector: UUID + connector_obj: Connector + mode: Optional[StageModeEnum] = None + __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "connector", "connector_obj", "mode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointStage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "pk", + "component", + "verbose_name", + "verbose_name_plural", + "meta_model_name", + "flow_set", + "connector_obj", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) + _items = [] + if self.flow_set: + for _item_flow_set in self.flow_set: + if _item_flow_set: + _items.append(_item_flow_set.to_dict()) + _dict['flow_set'] = _items + # override the default output from pydantic by calling `to_dict()` of connector_obj + if self.connector_obj: + _dict['connector_obj'] = self.connector_obj.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointStage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pk": obj.get("pk"), + "name": obj.get("name"), + "component": obj.get("component"), + "verbose_name": obj.get("verbose_name"), + "verbose_name_plural": obj.get("verbose_name_plural"), + "meta_model_name": obj.get("meta_model_name"), + "flow_set": [FlowSet.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, + "connector": obj.get("connector"), + "connector_obj": Connector.from_dict(obj["connector_obj"]) if obj.get("connector_obj") is not None else None, + "mode": obj.get("mode") + }) + return _obj + + diff --git a/authentik_client/models/endpoint_stage_request.py b/authentik_client/models/endpoint_stage_request.py new file mode 100644 index 000000000..e4ec86a5f --- /dev/null +++ b/authentik_client/models/endpoint_stage_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from authentik_client.models.stage_mode_enum import StageModeEnum +from typing import Optional, Set +from typing_extensions import Self + +class EndpointStageRequest(BaseModel): + """ + EndpointStage Serializer + """ # noqa: E501 + name: Annotated[str, Field(min_length=1, strict=True)] + connector: UUID + mode: Optional[StageModeEnum] = None + __properties: ClassVar[List[str]] = ["name", "connector", "mode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EndpointStageRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EndpointStageRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "connector": obj.get("connector"), + "mode": obj.get("mode") + }) + return _obj + + diff --git a/authentik_client/models/extra_user_object_permission_request.py b/authentik_client/models/enroll_request.py similarity index 78% rename from authentik_client/models/extra_user_object_permission_request.py rename to authentik_client/models/enroll_request.py index bf22ddaa1..a5871b72d 100644 --- a/authentik_client/models/extra_user_object_permission_request.py +++ b/authentik_client/models/enroll_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,12 +24,13 @@ from typing import Optional, Set from typing_extensions import Self -class ExtraUserObjectPermissionRequest(BaseModel): +class EnrollRequest(BaseModel): """ - User permission with additional object-related data + Base serializer class which doesn't implement create/update methods """ # noqa: E501 - object_pk: Annotated[str, Field(min_length=1, strict=True)] - __properties: ClassVar[List[str]] = ["object_pk"] + device_serial: Annotated[str, Field(min_length=1, strict=True)] + device_name: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["device_serial", "device_name"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +50,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ExtraUserObjectPermissionRequest from a JSON string""" + """Create an instance of EnrollRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ExtraUserObjectPermissionRequest from a dict""" + """Create an instance of EnrollRequest from a dict""" if obj is None: return None @@ -82,7 +83,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "object_pk": obj.get("object_pk") + "device_serial": obj.get("device_serial"), + "device_name": obj.get("device_name") }) return _obj diff --git a/authentik_client/models/enrollment_token.py b/authentik_client/models/enrollment_token.py new file mode 100644 index 000000000..878c9fc55 --- /dev/null +++ b/authentik_client/models/enrollment_token.py @@ -0,0 +1,120 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from uuid import UUID +from authentik_client.models.device_access_group import DeviceAccessGroup +from typing import Optional, Set +from typing_extensions import Self + +class EnrollmentToken(BaseModel): + """ + EnrollmentToken + """ # noqa: E501 + token_uuid: UUID + device_group: Optional[UUID] = None + device_group_obj: DeviceAccessGroup + connector: UUID + name: StrictStr + expiring: Optional[StrictBool] = None + expires: Optional[datetime] = None + __properties: ClassVar[List[str]] = ["token_uuid", "device_group", "device_group_obj", "connector", "name", "expiring", "expires"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EnrollmentToken from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "token_uuid", + "device_group_obj", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of device_group_obj + if self.device_group_obj: + _dict['device_group_obj'] = self.device_group_obj.to_dict() + # set to None if device_group (nullable) is None + # and model_fields_set contains the field + if self.device_group is None and "device_group" in self.model_fields_set: + _dict['device_group'] = None + + # set to None if expires (nullable) is None + # and model_fields_set contains the field + if self.expires is None and "expires" in self.model_fields_set: + _dict['expires'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EnrollmentToken from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "token_uuid": obj.get("token_uuid"), + "device_group": obj.get("device_group"), + "device_group_obj": DeviceAccessGroup.from_dict(obj["device_group_obj"]) if obj.get("device_group_obj") is not None else None, + "connector": obj.get("connector"), + "name": obj.get("name"), + "expiring": obj.get("expiring"), + "expires": obj.get("expires") + }) + return _obj + + diff --git a/authentik_client/models/enrollment_token_request.py b/authentik_client/models/enrollment_token_request.py new file mode 100644 index 000000000..c1088aaf4 --- /dev/null +++ b/authentik_client/models/enrollment_token_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class EnrollmentTokenRequest(BaseModel): + """ + EnrollmentTokenRequest + """ # noqa: E501 + device_group: Optional[UUID] = None + connector: UUID + name: Annotated[str, Field(min_length=1, strict=True)] + expiring: Optional[StrictBool] = None + expires: Optional[datetime] = None + __properties: ClassVar[List[str]] = ["device_group", "connector", "name", "expiring", "expires"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of EnrollmentTokenRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if device_group (nullable) is None + # and model_fields_set contains the field + if self.device_group is None and "device_group" in self.model_fields_set: + _dict['device_group'] = None + + # set to None if expires (nullable) is None + # and model_fields_set contains the field + if self.expires is None and "expires" in self.model_fields_set: + _dict['expires'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of EnrollmentTokenRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "device_group": obj.get("device_group"), + "connector": obj.get("connector"), + "name": obj.get("name"), + "expiring": obj.get("expiring"), + "expires": obj.get("expires") + }) + return _obj + + diff --git a/authentik_client/models/error_detail.py b/authentik_client/models/error_detail.py index 1230a5473..5f652649f 100644 --- a/authentik_client/models/error_detail.py +++ b/authentik_client/models/error_detail.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/error_reporting_config.py b/authentik_client/models/error_reporting_config.py index 1b4673597..a5e7e55cc 100644 --- a/authentik_client/models/error_reporting_config.py +++ b/authentik_client/models/error_reporting_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/event.py b/authentik_client/models/event.py index f0bf36afa..b377a3817 100644 --- a/authentik_client/models/event.py +++ b/authentik_client/models/event.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/event_actions.py b/authentik_client/models/event_actions.py index 8bd5582e6..739e5f1e4 100644 --- a/authentik_client/models/event_actions.py +++ b/authentik_client/models/event_actions.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -53,6 +53,7 @@ class EventActions(str, Enum): MODEL_DELETED = 'model_deleted' EMAIL_SENT = 'email_sent' UPDATE_AVAILABLE = 'update_available' + EXPORT_READY = 'export_ready' CUSTOM = 'custom_' @classmethod diff --git a/authentik_client/models/event_matcher_policy.py b/authentik_client/models/event_matcher_policy.py index 254db8a14..cbfa3813f 100644 --- a/authentik_client/models/event_matcher_policy.py +++ b/authentik_client/models/event_matcher_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/event_matcher_policy_request.py b/authentik_client/models/event_matcher_policy_request.py index fa775bb1a..e23baba19 100644 --- a/authentik_client/models/event_matcher_policy_request.py +++ b/authentik_client/models/event_matcher_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/event_request.py b/authentik_client/models/event_request.py index 711102317..113e5df6b 100644 --- a/authentik_client/models/event_request.py +++ b/authentik_client/models/event_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/event_top_per_user.py b/authentik_client/models/event_top_per_user.py index 9c013704f..1234dbaf0 100644 --- a/authentik_client/models/event_top_per_user.py +++ b/authentik_client/models/event_top_per_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/event_volume.py b/authentik_client/models/event_volume.py index 58ce260b3..65122c7ca 100644 --- a/authentik_client/models/event_volume.py +++ b/authentik_client/models/event_volume.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/events_requested_enum.py b/authentik_client/models/events_requested_enum.py index cbeff6bc7..010c74c2b 100644 --- a/authentik_client/models/events_requested_enum.py +++ b/authentik_client/models/events_requested_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/expiring_base_grant_model.py b/authentik_client/models/expiring_base_grant_model.py index 8dc6a0fb2..73e65c56a 100644 --- a/authentik_client/models/expiring_base_grant_model.py +++ b/authentik_client/models/expiring_base_grant_model.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from authentik_client.models.o_auth2_provider import OAuth2Provider +from authentik_client.models.provider import Provider from authentik_client.models.user import User from typing import Optional, Set from typing_extensions import Self @@ -31,7 +31,7 @@ class ExpiringBaseGrantModel(BaseModel): Serializer for BaseGrantModel and ExpiringBaseGrant """ # noqa: E501 pk: StrictInt - provider: OAuth2Provider + provider: Provider user: User is_expired: StrictBool = Field(description="Check if token is expired yet.") expires: Optional[datetime] = None @@ -105,7 +105,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "pk": obj.get("pk"), - "provider": OAuth2Provider.from_dict(obj["provider"]) if obj.get("provider") is not None else None, + "provider": Provider.from_dict(obj["provider"]) if obj.get("provider") is not None else None, "user": User.from_dict(obj["user"]) if obj.get("user") is not None else None, "is_expired": obj.get("is_expired"), "expires": obj.get("expires"), diff --git a/authentik_client/models/expression_policy.py b/authentik_client/models/expression_policy.py index 838d31010..902ff959d 100644 --- a/authentik_client/models/expression_policy.py +++ b/authentik_client/models/expression_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/expression_policy_request.py b/authentik_client/models/expression_policy_request.py index 2bd3b5c5b..5a80a5f48 100644 --- a/authentik_client/models/expression_policy_request.py +++ b/authentik_client/models/expression_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/extra_role_object_permission.py b/authentik_client/models/extra_role_object_permission.py index 80d2279bc..8c51d9e94 100644 --- a/authentik_client/models/extra_role_object_permission.py +++ b/authentik_client/models/extra_role_object_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,7 +25,7 @@ class ExtraRoleObjectPermission(BaseModel): """ - User permission with additional object-related data + Role permission with additional object-related data """ # noqa: E501 id: StrictInt codename: StrictStr @@ -35,7 +35,7 @@ class ExtraRoleObjectPermission(BaseModel): name: StrictStr app_label_verbose: StrictStr = Field(description="Get app label from permission's model") model_verbose: StrictStr = Field(description="Get model label from permission's model") - object_description: Optional[StrictStr] = Field(description="Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the user/role has the view_ permission on the object") + object_description: Optional[StrictStr] = Field(description="Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the role has the view_ permission on the object") __properties: ClassVar[List[str]] = ["id", "codename", "model", "app_label", "object_pk", "name", "app_label_verbose", "model_verbose", "object_description"] model_config = ConfigDict( diff --git a/authentik_client/models/file_list.py b/authentik_client/models/file_list.py new file mode 100644 index 000000000..4c78b0c87 --- /dev/null +++ b/authentik_client/models/file_list.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from authentik_client.models.themed_urls import ThemedUrls +from typing import Optional, Set +from typing_extensions import Self + +class FileList(BaseModel): + """ + Base serializer class which doesn't implement create/update methods + """ # noqa: E501 + name: StrictStr + mime_type: StrictStr + url: StrictStr + themed_urls: Optional[ThemedUrls] = None + __properties: ClassVar[List[str]] = ["name", "mime_type", "url", "themed_urls"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of FileList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of themed_urls + if self.themed_urls: + _dict['themed_urls'] = self.themed_urls.to_dict() + # set to None if themed_urls (nullable) is None + # and model_fields_set contains the field + if self.themed_urls is None and "themed_urls" in self.model_fields_set: + _dict['themed_urls'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FileList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "mime_type": obj.get("mime_type"), + "url": obj.get("url"), + "themed_urls": ThemedUrls.from_dict(obj["themed_urls"]) if obj.get("themed_urls") is not None else None + }) + return _obj + + diff --git a/authentik_client/models/flow.py b/authentik_client/models/flow.py index ae209b637..b756e3895 100644 --- a/authentik_client/models/flow.py +++ b/authentik_client/models/flow.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,6 +27,7 @@ from authentik_client.models.flow_designation_enum import FlowDesignationEnum from authentik_client.models.flow_layout_enum import FlowLayoutEnum from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.themed_urls import ThemedUrls from typing import Optional, Set from typing_extensions import Self @@ -37,10 +38,12 @@ class Flow(BaseModel): pk: UUID policybindingmodel_ptr_id: UUID name: StrictStr - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Visible in the URL.") + slug: Annotated[str, Field(strict=True)] = Field(description="Visible in the URL.") title: StrictStr = Field(description="Shown as the Title in Flow pages.") designation: FlowDesignationEnum = Field(description="Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.") - background: StrictStr = Field(description="Get the URL to the background image. If the name is /static or starts with http it is returned as-is") + background: Optional[StrictStr] = Field(default=None, description="Background shown during execution") + background_url: StrictStr = Field(description="Get the URL to the background image") + background_themed_urls: Optional[ThemedUrls] stages: List[UUID] policies: List[UUID] cache_count: StrictInt = Field(description="Get count of cached flows") @@ -50,7 +53,7 @@ class Flow(BaseModel): layout: Optional[FlowLayoutEnum] = None denied_action: Optional[DeniedActionEnum] = Field(default=None, description="Configure what should happen when a flow denies access to a user.") authentication: Optional[AuthenticationEnum] = Field(default=None, description="Required level of authentication and authorization to access a flow.") - __properties: ClassVar[List[str]] = ["pk", "policybindingmodel_ptr_id", "name", "slug", "title", "designation", "background", "stages", "policies", "cache_count", "policy_engine_mode", "compatibility_mode", "export_url", "layout", "denied_action", "authentication"] + __properties: ClassVar[List[str]] = ["pk", "policybindingmodel_ptr_id", "name", "slug", "title", "designation", "background", "background_url", "background_themed_urls", "stages", "policies", "cache_count", "policy_engine_mode", "compatibility_mode", "export_url", "layout", "denied_action", "authentication"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -96,11 +99,13 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", "policybindingmodel_ptr_id", - "background", + "background_url", + "background_themed_urls", "stages", "policies", "cache_count", @@ -112,6 +117,14 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of background_themed_urls + if self.background_themed_urls: + _dict['background_themed_urls'] = self.background_themed_urls.to_dict() + # set to None if background_themed_urls (nullable) is None + # and model_fields_set contains the field + if self.background_themed_urls is None and "background_themed_urls" in self.model_fields_set: + _dict['background_themed_urls'] = None + return _dict @classmethod @@ -131,6 +144,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "title": obj.get("title"), "designation": obj.get("designation"), "background": obj.get("background"), + "background_url": obj.get("background_url"), + "background_themed_urls": ThemedUrls.from_dict(obj["background_themed_urls"]) if obj.get("background_themed_urls") is not None else None, "stages": obj.get("stages"), "policies": obj.get("policies"), "cache_count": obj.get("cache_count"), diff --git a/authentik_client/models/flow_challenge_response_request.py b/authentik_client/models/flow_challenge_response_request.py index e392953ed..0ebc2c18c 100644 --- a/authentik_client/models/flow_challenge_response_request.py +++ b/authentik_client/models/flow_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,6 +31,7 @@ from authentik_client.models.consent_challenge_response_request import ConsentChallengeResponseRequest from authentik_client.models.dummy_challenge_response_request import DummyChallengeResponseRequest from authentik_client.models.email_challenge_response_request import EmailChallengeResponseRequest +from authentik_client.models.endpoint_agent_challenge_response_request import EndpointAgentChallengeResponseRequest from authentik_client.models.frame_challenge_response_request import FrameChallengeResponseRequest from authentik_client.models.identification_challenge_response_request import IdentificationChallengeResponseRequest from authentik_client.models.iframe_logout_challenge_response_request import IframeLogoutChallengeResponseRequest @@ -47,7 +48,7 @@ from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -FLOWCHALLENGERESPONSEREQUEST_ONE_OF_SCHEMAS = ["AppleChallengeResponseRequest", "AuthenticatorDuoChallengeResponseRequest", "AuthenticatorEmailChallengeResponseRequest", "AuthenticatorSMSChallengeResponseRequest", "AuthenticatorStaticChallengeResponseRequest", "AuthenticatorTOTPChallengeResponseRequest", "AuthenticatorValidationChallengeResponseRequest", "AuthenticatorWebAuthnChallengeResponseRequest", "AutoSubmitChallengeResponseRequest", "CaptchaChallengeResponseRequest", "ConsentChallengeResponseRequest", "DummyChallengeResponseRequest", "EmailChallengeResponseRequest", "FrameChallengeResponseRequest", "IdentificationChallengeResponseRequest", "IframeLogoutChallengeResponseRequest", "NativeLogoutChallengeResponseRequest", "OAuthDeviceCodeChallengeResponseRequest", "OAuthDeviceCodeFinishChallengeResponseRequest", "PasswordChallengeResponseRequest", "PlexAuthenticationChallengeResponseRequest", "PromptChallengeResponseRequest", "RedirectChallengeResponseRequest", "TelegramChallengeResponseRequest", "UserLoginChallengeResponseRequest"] +FLOWCHALLENGERESPONSEREQUEST_ONE_OF_SCHEMAS = ["AppleChallengeResponseRequest", "AuthenticatorDuoChallengeResponseRequest", "AuthenticatorEmailChallengeResponseRequest", "AuthenticatorSMSChallengeResponseRequest", "AuthenticatorStaticChallengeResponseRequest", "AuthenticatorTOTPChallengeResponseRequest", "AuthenticatorValidationChallengeResponseRequest", "AuthenticatorWebAuthnChallengeResponseRequest", "AutoSubmitChallengeResponseRequest", "CaptchaChallengeResponseRequest", "ConsentChallengeResponseRequest", "DummyChallengeResponseRequest", "EmailChallengeResponseRequest", "EndpointAgentChallengeResponseRequest", "FrameChallengeResponseRequest", "IdentificationChallengeResponseRequest", "IframeLogoutChallengeResponseRequest", "NativeLogoutChallengeResponseRequest", "OAuthDeviceCodeChallengeResponseRequest", "OAuthDeviceCodeFinishChallengeResponseRequest", "PasswordChallengeResponseRequest", "PlexAuthenticationChallengeResponseRequest", "PromptChallengeResponseRequest", "RedirectChallengeResponseRequest", "TelegramChallengeResponseRequest", "UserLoginChallengeResponseRequest"] class FlowChallengeResponseRequest(BaseModel): """ @@ -79,32 +80,34 @@ class FlowChallengeResponseRequest(BaseModel): oneof_schema_12_validator: Optional[DummyChallengeResponseRequest] = None # data type: EmailChallengeResponseRequest oneof_schema_13_validator: Optional[EmailChallengeResponseRequest] = None + # data type: EndpointAgentChallengeResponseRequest + oneof_schema_14_validator: Optional[EndpointAgentChallengeResponseRequest] = None # data type: FrameChallengeResponseRequest - oneof_schema_14_validator: Optional[FrameChallengeResponseRequest] = None + oneof_schema_15_validator: Optional[FrameChallengeResponseRequest] = None # data type: IdentificationChallengeResponseRequest - oneof_schema_15_validator: Optional[IdentificationChallengeResponseRequest] = None + oneof_schema_16_validator: Optional[IdentificationChallengeResponseRequest] = None # data type: IframeLogoutChallengeResponseRequest - oneof_schema_16_validator: Optional[IframeLogoutChallengeResponseRequest] = None + oneof_schema_17_validator: Optional[IframeLogoutChallengeResponseRequest] = None # data type: NativeLogoutChallengeResponseRequest - oneof_schema_17_validator: Optional[NativeLogoutChallengeResponseRequest] = None + oneof_schema_18_validator: Optional[NativeLogoutChallengeResponseRequest] = None # data type: OAuthDeviceCodeChallengeResponseRequest - oneof_schema_18_validator: Optional[OAuthDeviceCodeChallengeResponseRequest] = None + oneof_schema_19_validator: Optional[OAuthDeviceCodeChallengeResponseRequest] = None # data type: OAuthDeviceCodeFinishChallengeResponseRequest - oneof_schema_19_validator: Optional[OAuthDeviceCodeFinishChallengeResponseRequest] = None + oneof_schema_20_validator: Optional[OAuthDeviceCodeFinishChallengeResponseRequest] = None # data type: PasswordChallengeResponseRequest - oneof_schema_20_validator: Optional[PasswordChallengeResponseRequest] = None + oneof_schema_21_validator: Optional[PasswordChallengeResponseRequest] = None # data type: PlexAuthenticationChallengeResponseRequest - oneof_schema_21_validator: Optional[PlexAuthenticationChallengeResponseRequest] = None + oneof_schema_22_validator: Optional[PlexAuthenticationChallengeResponseRequest] = None # data type: PromptChallengeResponseRequest - oneof_schema_22_validator: Optional[PromptChallengeResponseRequest] = None + oneof_schema_23_validator: Optional[PromptChallengeResponseRequest] = None # data type: RedirectChallengeResponseRequest - oneof_schema_23_validator: Optional[RedirectChallengeResponseRequest] = None + oneof_schema_24_validator: Optional[RedirectChallengeResponseRequest] = None # data type: TelegramChallengeResponseRequest - oneof_schema_24_validator: Optional[TelegramChallengeResponseRequest] = None + oneof_schema_25_validator: Optional[TelegramChallengeResponseRequest] = None # data type: UserLoginChallengeResponseRequest - oneof_schema_25_validator: Optional[UserLoginChallengeResponseRequest] = None - actual_instance: Optional[Union[AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest]] = None - one_of_schemas: Set[str] = { "AppleChallengeResponseRequest", "AuthenticatorDuoChallengeResponseRequest", "AuthenticatorEmailChallengeResponseRequest", "AuthenticatorSMSChallengeResponseRequest", "AuthenticatorStaticChallengeResponseRequest", "AuthenticatorTOTPChallengeResponseRequest", "AuthenticatorValidationChallengeResponseRequest", "AuthenticatorWebAuthnChallengeResponseRequest", "AutoSubmitChallengeResponseRequest", "CaptchaChallengeResponseRequest", "ConsentChallengeResponseRequest", "DummyChallengeResponseRequest", "EmailChallengeResponseRequest", "FrameChallengeResponseRequest", "IdentificationChallengeResponseRequest", "IframeLogoutChallengeResponseRequest", "NativeLogoutChallengeResponseRequest", "OAuthDeviceCodeChallengeResponseRequest", "OAuthDeviceCodeFinishChallengeResponseRequest", "PasswordChallengeResponseRequest", "PlexAuthenticationChallengeResponseRequest", "PromptChallengeResponseRequest", "RedirectChallengeResponseRequest", "TelegramChallengeResponseRequest", "UserLoginChallengeResponseRequest" } + oneof_schema_26_validator: Optional[UserLoginChallengeResponseRequest] = None + actual_instance: Optional[Union[AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, EndpointAgentChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest]] = None + one_of_schemas: Set[str] = { "AppleChallengeResponseRequest", "AuthenticatorDuoChallengeResponseRequest", "AuthenticatorEmailChallengeResponseRequest", "AuthenticatorSMSChallengeResponseRequest", "AuthenticatorStaticChallengeResponseRequest", "AuthenticatorTOTPChallengeResponseRequest", "AuthenticatorValidationChallengeResponseRequest", "AuthenticatorWebAuthnChallengeResponseRequest", "AutoSubmitChallengeResponseRequest", "CaptchaChallengeResponseRequest", "ConsentChallengeResponseRequest", "DummyChallengeResponseRequest", "EmailChallengeResponseRequest", "EndpointAgentChallengeResponseRequest", "FrameChallengeResponseRequest", "IdentificationChallengeResponseRequest", "IframeLogoutChallengeResponseRequest", "NativeLogoutChallengeResponseRequest", "OAuthDeviceCodeChallengeResponseRequest", "OAuthDeviceCodeFinishChallengeResponseRequest", "PasswordChallengeResponseRequest", "PlexAuthenticationChallengeResponseRequest", "PromptChallengeResponseRequest", "RedirectChallengeResponseRequest", "TelegramChallengeResponseRequest", "UserLoginChallengeResponseRequest" } model_config = ConfigDict( validate_assignment=True, @@ -195,6 +198,11 @@ def actual_instance_must_validate_oneof(cls, v): error_messages.append(f"Error! Input type `{type(v)}` is not `EmailChallengeResponseRequest`") else: match += 1 + # validate data type: EndpointAgentChallengeResponseRequest + if not isinstance(v, EndpointAgentChallengeResponseRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `EndpointAgentChallengeResponseRequest`") + else: + match += 1 # validate data type: FrameChallengeResponseRequest if not isinstance(v, FrameChallengeResponseRequest): error_messages.append(f"Error! Input type `{type(v)}` is not `FrameChallengeResponseRequest`") @@ -257,10 +265,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in FlowChallengeResponseRequest with oneOf schemas: AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in FlowChallengeResponseRequest with oneOf schemas: AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, EndpointAgentChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in FlowChallengeResponseRequest with oneOf schemas: AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in FlowChallengeResponseRequest with oneOf schemas: AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, EndpointAgentChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest. Details: " + ", ".join(error_messages)) else: return v @@ -353,6 +361,12 @@ def from_json(cls, json_str: str) -> Self: match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) + # deserialize data into EndpointAgentChallengeResponseRequest + try: + instance.actual_instance = EndpointAgentChallengeResponseRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) # deserialize data into FrameChallengeResponseRequest try: instance.actual_instance = FrameChallengeResponseRequest.from_json(json_str) @@ -428,10 +442,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into FlowChallengeResponseRequest with oneOf schemas: AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into FlowChallengeResponseRequest with oneOf schemas: AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, EndpointAgentChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into FlowChallengeResponseRequest with oneOf schemas: AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into FlowChallengeResponseRequest with oneOf schemas: AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, EndpointAgentChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest. Details: " + ", ".join(error_messages)) else: return instance @@ -445,7 +459,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AppleChallengeResponseRequest, AuthenticatorDuoChallengeResponseRequest, AuthenticatorEmailChallengeResponseRequest, AuthenticatorSMSChallengeResponseRequest, AuthenticatorStaticChallengeResponseRequest, AuthenticatorTOTPChallengeResponseRequest, AuthenticatorValidationChallengeResponseRequest, AuthenticatorWebAuthnChallengeResponseRequest, AutoSubmitChallengeResponseRequest, CaptchaChallengeResponseRequest, ConsentChallengeResponseRequest, DummyChallengeResponseRequest, EmailChallengeResponseRequest, EndpointAgentChallengeResponseRequest, FrameChallengeResponseRequest, IdentificationChallengeResponseRequest, IframeLogoutChallengeResponseRequest, NativeLogoutChallengeResponseRequest, OAuthDeviceCodeChallengeResponseRequest, OAuthDeviceCodeFinishChallengeResponseRequest, PasswordChallengeResponseRequest, PlexAuthenticationChallengeResponseRequest, PromptChallengeResponseRequest, RedirectChallengeResponseRequest, TelegramChallengeResponseRequest, UserLoginChallengeResponseRequest]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/authentik_client/models/flow_designation_enum.py b/authentik_client/models/flow_designation_enum.py index a47dc2673..6440fd2f2 100644 --- a/authentik_client/models/flow_designation_enum.py +++ b/authentik_client/models/flow_designation_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/flow_diagram.py b/authentik_client/models/flow_diagram.py index bdb2893f1..7d7f2399d 100644 --- a/authentik_client/models/flow_diagram.py +++ b/authentik_client/models/flow_diagram.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/flow_error_challenge.py b/authentik_client/models/flow_error_challenge.py index 4876bbdd0..c287c8fd4 100644 --- a/authentik_client/models/flow_error_challenge.py +++ b/authentik_client/models/flow_error_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/flow_import_result.py b/authentik_client/models/flow_import_result.py index 6d6b2c9f6..8d4b40a17 100644 --- a/authentik_client/models/flow_import_result.py +++ b/authentik_client/models/flow_import_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/flow_inspection.py b/authentik_client/models/flow_inspection.py index 779c750f9..9d0eba3ce 100644 --- a/authentik_client/models/flow_inspection.py +++ b/authentik_client/models/flow_inspection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/flow_inspector_plan.py b/authentik_client/models/flow_inspector_plan.py index 7f9038b59..4c01d81c2 100644 --- a/authentik_client/models/flow_inspector_plan.py +++ b/authentik_client/models/flow_inspector_plan.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/flow_layout_enum.py b/authentik_client/models/flow_layout_enum.py index 9d555f859..4705b55b2 100644 --- a/authentik_client/models/flow_layout_enum.py +++ b/authentik_client/models/flow_layout_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/flow_request.py b/authentik_client/models/flow_request.py index 497f0fd1c..e7285cece 100644 --- a/authentik_client/models/flow_request.py +++ b/authentik_client/models/flow_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from authentik_client.models.authentication_enum import AuthenticationEnum @@ -34,15 +34,16 @@ class FlowRequest(BaseModel): Flow Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Visible in the URL.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Visible in the URL.") title: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Shown as the Title in Flow pages.") designation: FlowDesignationEnum = Field(description="Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.") + background: Optional[StrictStr] = Field(default=None, description="Background shown during execution") policy_engine_mode: Optional[PolicyEngineMode] = None compatibility_mode: Optional[StrictBool] = Field(default=None, description="Enable compatibility mode, increases compatibility with password managers on mobile devices.") layout: Optional[FlowLayoutEnum] = None denied_action: Optional[DeniedActionEnum] = Field(default=None, description="Configure what should happen when a flow denies access to a user.") authentication: Optional[AuthenticationEnum] = Field(default=None, description="Required level of authentication and authorization to access a flow.") - __properties: ClassVar[List[str]] = ["name", "slug", "title", "designation", "policy_engine_mode", "compatibility_mode", "layout", "denied_action", "authentication"] + __properties: ClassVar[List[str]] = ["name", "slug", "title", "designation", "background", "policy_engine_mode", "compatibility_mode", "layout", "denied_action", "authentication"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -106,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "slug": obj.get("slug"), "title": obj.get("title"), "designation": obj.get("designation"), + "background": obj.get("background"), "policy_engine_mode": obj.get("policy_engine_mode"), "compatibility_mode": obj.get("compatibility_mode"), "layout": obj.get("layout"), diff --git a/authentik_client/models/flow_set.py b/authentik_client/models/flow_set.py index 36f6ce03e..0522eeec8 100644 --- a/authentik_client/models/flow_set.py +++ b/authentik_client/models/flow_set.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,16 +36,16 @@ class FlowSet(BaseModel): pk: UUID policybindingmodel_ptr_id: UUID name: StrictStr - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Visible in the URL.") + slug: Annotated[str, Field(strict=True)] = Field(description="Visible in the URL.") title: StrictStr = Field(description="Shown as the Title in Flow pages.") designation: FlowDesignationEnum = Field(description="Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.") - background: StrictStr = Field(description="Get the URL to the background image. If the name is /static or starts with http it is returned as-is") + background_url: StrictStr = Field(description="Get the URL to the background image") policy_engine_mode: Optional[PolicyEngineMode] = None compatibility_mode: Optional[StrictBool] = Field(default=None, description="Enable compatibility mode, increases compatibility with password managers on mobile devices.") export_url: StrictStr = Field(description="Get export URL for flow") layout: Optional[FlowLayoutEnum] = None denied_action: Optional[DeniedActionEnum] = Field(default=None, description="Configure what should happen when a flow denies access to a user.") - __properties: ClassVar[List[str]] = ["pk", "policybindingmodel_ptr_id", "name", "slug", "title", "designation", "background", "policy_engine_mode", "compatibility_mode", "export_url", "layout", "denied_action"] + __properties: ClassVar[List[str]] = ["pk", "policybindingmodel_ptr_id", "name", "slug", "title", "designation", "background_url", "policy_engine_mode", "compatibility_mode", "export_url", "layout", "denied_action"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -92,7 +92,7 @@ def to_dict(self) -> Dict[str, Any]: excluded_fields: Set[str] = set([ "pk", "policybindingmodel_ptr_id", - "background", + "background_url", "export_url", ]) @@ -119,7 +119,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "slug": obj.get("slug"), "title": obj.get("title"), "designation": obj.get("designation"), - "background": obj.get("background"), + "background_url": obj.get("background_url"), "policy_engine_mode": obj.get("policy_engine_mode"), "compatibility_mode": obj.get("compatibility_mode"), "export_url": obj.get("export_url"), diff --git a/authentik_client/models/flow_set_request.py b/authentik_client/models/flow_set_request.py deleted file mode 100644 index d277745fb..000000000 --- a/authentik_client/models/flow_set_request.py +++ /dev/null @@ -1,114 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing_extensions import Annotated -from authentik_client.models.denied_action_enum import DeniedActionEnum -from authentik_client.models.flow_designation_enum import FlowDesignationEnum -from authentik_client.models.flow_layout_enum import FlowLayoutEnum -from authentik_client.models.policy_engine_mode import PolicyEngineMode -from typing import Optional, Set -from typing_extensions import Self - -class FlowSetRequest(BaseModel): - """ - Stripped down flow serializer - """ # noqa: E501 - name: Annotated[str, Field(min_length=1, strict=True)] - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Visible in the URL.") - title: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Shown as the Title in Flow pages.") - designation: FlowDesignationEnum = Field(description="Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.") - policy_engine_mode: Optional[PolicyEngineMode] = None - compatibility_mode: Optional[StrictBool] = Field(default=None, description="Enable compatibility mode, increases compatibility with password managers on mobile devices.") - layout: Optional[FlowLayoutEnum] = None - denied_action: Optional[DeniedActionEnum] = Field(default=None, description="Configure what should happen when a flow denies access to a user.") - __properties: ClassVar[List[str]] = ["name", "slug", "title", "designation", "policy_engine_mode", "compatibility_mode", "layout", "denied_action"] - - @field_validator('slug') - def slug_validate_regular_expression(cls, value): - """Validates the regular expression""" - if not re.match(r"^[-a-zA-Z0-9_]+$", value): - raise ValueError(r"must validate the regular expression /^[-a-zA-Z0-9_]+$/") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FlowSetRequest from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FlowSetRequest from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "name": obj.get("name"), - "slug": obj.get("slug"), - "title": obj.get("title"), - "designation": obj.get("designation"), - "policy_engine_mode": obj.get("policy_engine_mode"), - "compatibility_mode": obj.get("compatibility_mode"), - "layout": obj.get("layout"), - "denied_action": obj.get("denied_action") - }) - return _obj - - diff --git a/authentik_client/models/flow_stage_binding.py b/authentik_client/models/flow_stage_binding.py index 90b4f3544..c03f495de 100644 --- a/authentik_client/models/flow_stage_binding.py +++ b/authentik_client/models/flow_stage_binding.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/flow_stage_binding_request.py b/authentik_client/models/flow_stage_binding_request.py index 5d1fa3c25..e6e8594d4 100644 --- a/authentik_client/models/flow_stage_binding_request.py +++ b/authentik_client/models/flow_stage_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/footer_link.py b/authentik_client/models/footer_link.py index 578be54e5..1a867692b 100644 --- a/authentik_client/models/footer_link.py +++ b/authentik_client/models/footer_link.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/frame_challenge.py b/authentik_client/models/frame_challenge.py index cd0eb9ee8..9603f0ebb 100644 --- a/authentik_client/models/frame_challenge.py +++ b/authentik_client/models/frame_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/frame_challenge_response_request.py b/authentik_client/models/frame_challenge_response_request.py index e6bafd6a1..bb388f267 100644 --- a/authentik_client/models/frame_challenge_response_request.py +++ b/authentik_client/models/frame_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/generic_error.py b/authentik_client/models/generic_error.py index 252dafa44..3a7c38e84 100644 --- a/authentik_client/models/generic_error.py +++ b/authentik_client/models/generic_error.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/geo_ip_policy.py b/authentik_client/models/geo_ip_policy.py index 383b66b66..d48d2b634 100644 --- a/authentik_client/models/geo_ip_policy.py +++ b/authentik_client/models/geo_ip_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/geo_ip_policy_request.py b/authentik_client/models/geo_ip_policy_request.py index f558cb2bc..913adc18d 100644 --- a/authentik_client/models/geo_ip_policy_request.py +++ b/authentik_client/models/geo_ip_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/geoip_binding_enum.py b/authentik_client/models/geoip_binding_enum.py index c2f56f318..dfcc44357 100644 --- a/authentik_client/models/geoip_binding_enum.py +++ b/authentik_client/models/geoip_binding_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/global_task_status.py b/authentik_client/models/global_task_status.py index de435c5db..2cdd17678 100644 --- a/authentik_client/models/global_task_status.py +++ b/authentik_client/models/global_task_status.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/google_endpoint_device.py b/authentik_client/models/google_endpoint_device.py new file mode 100644 index 000000000..4e32da012 --- /dev/null +++ b/authentik_client/models/google_endpoint_device.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class GoogleEndpointDevice(BaseModel): + """ + Serializer for Endpoint authenticator devices + """ # noqa: E501 + pk: Optional[UUID] = None + name: Annotated[str, Field(strict=True, max_length=64)] = Field(description="The human-readable name of this device.") + __properties: ClassVar[List[str]] = ["pk", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GoogleEndpointDevice from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GoogleEndpointDevice from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pk": obj.get("pk"), + "name": obj.get("name") + }) + return _obj + + diff --git a/authentik_client/models/google_endpoint_device_request.py b/authentik_client/models/google_endpoint_device_request.py new file mode 100644 index 000000000..f4f31c501 --- /dev/null +++ b/authentik_client/models/google_endpoint_device_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class GoogleEndpointDeviceRequest(BaseModel): + """ + Serializer for Endpoint authenticator devices + """ # noqa: E501 + pk: Optional[UUID] = None + name: Annotated[str, Field(min_length=1, strict=True, max_length=64)] = Field(description="The human-readable name of this device.") + __properties: ClassVar[List[str]] = ["pk", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GoogleEndpointDeviceRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GoogleEndpointDeviceRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pk": obj.get("pk"), + "name": obj.get("name") + }) + return _obj + + diff --git a/authentik_client/models/google_workspace_provider.py b/authentik_client/models/google_workspace_provider.py index a97fbf74b..dc3dc41fb 100644 --- a/authentik_client/models/google_workspace_provider.py +++ b/authentik_client/models/google_workspace_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,8 +35,8 @@ class GoogleWorkspaceProvider(BaseModel): property_mappings: Optional[List[UUID]] = None property_mappings_group: Optional[List[UUID]] = Field(default=None, description="Property mappings used for group creation/updating.") component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -48,8 +48,10 @@ class GoogleWorkspaceProvider(BaseModel): user_delete_action: Optional[OutgoingSyncDeleteAction] = None group_delete_action: Optional[OutgoingSyncDeleteAction] = None default_group_email_domain: StrictStr + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[StrictStr] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["pk", "name", "property_mappings", "property_mappings_group", "component", "assigned_backchannel_application_slug", "assigned_backchannel_application_name", "verbose_name", "verbose_name_plural", "meta_model_name", "delegated_subject", "credentials", "scopes", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "default_group_email_domain", "dry_run"] + __properties: ClassVar[List[str]] = ["pk", "name", "property_mappings", "property_mappings_group", "component", "assigned_backchannel_application_slug", "assigned_backchannel_application_name", "verbose_name", "verbose_name_plural", "meta_model_name", "delegated_subject", "credentials", "scopes", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "default_group_email_domain", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -104,6 +106,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + # set to None if filter_group (nullable) is None # and model_fields_set contains the field if self.filter_group is None and "filter_group" in self.model_fields_set: @@ -139,6 +151,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "user_delete_action": obj.get("user_delete_action"), "group_delete_action": obj.get("group_delete_action"), "default_group_email_domain": obj.get("default_group_email_domain"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/google_workspace_provider_group.py b/authentik_client/models/google_workspace_provider_group.py index e4cef890f..d55aa301a 100644 --- a/authentik_client/models/google_workspace_provider_group.py +++ b/authentik_client/models/google_workspace_provider_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/google_workspace_provider_group_request.py b/authentik_client/models/google_workspace_provider_group_request.py index aa550f550..3bf416708 100644 --- a/authentik_client/models/google_workspace_provider_group_request.py +++ b/authentik_client/models/google_workspace_provider_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/google_workspace_provider_mapping.py b/authentik_client/models/google_workspace_provider_mapping.py index 9c822ddc9..e2d41793d 100644 --- a/authentik_client/models/google_workspace_provider_mapping.py +++ b/authentik_client/models/google_workspace_provider_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/google_workspace_provider_mapping_request.py b/authentik_client/models/google_workspace_provider_mapping_request.py index 3b13c0abd..518b73e41 100644 --- a/authentik_client/models/google_workspace_provider_mapping_request.py +++ b/authentik_client/models/google_workspace_provider_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/google_workspace_provider_request.py b/authentik_client/models/google_workspace_provider_request.py index a98495c5a..ce4f31872 100644 --- a/authentik_client/models/google_workspace_provider_request.py +++ b/authentik_client/models/google_workspace_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,8 +41,10 @@ class GoogleWorkspaceProviderRequest(BaseModel): user_delete_action: Optional[OutgoingSyncDeleteAction] = None group_delete_action: Optional[OutgoingSyncDeleteAction] = None default_group_email_domain: Annotated[str, Field(min_length=1, strict=True)] + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "delegated_subject", "credentials", "scopes", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "default_group_email_domain", "dry_run"] + __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "delegated_subject", "credentials", "scopes", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "default_group_email_domain", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -111,6 +113,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "user_delete_action": obj.get("user_delete_action"), "group_delete_action": obj.get("group_delete_action"), "default_group_email_domain": obj.get("default_group_email_domain"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/google_workspace_provider_user.py b/authentik_client/models/google_workspace_provider_user.py index 00b17f3d1..fd5874558 100644 --- a/authentik_client/models/google_workspace_provider_user.py +++ b/authentik_client/models/google_workspace_provider_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/google_workspace_provider_user_request.py b/authentik_client/models/google_workspace_provider_user_request.py index 27613462e..a83199093 100644 --- a/authentik_client/models/google_workspace_provider_user_request.py +++ b/authentik_client/models/google_workspace_provider_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group.py b/authentik_client/models/group.py index a72832a71..a40f6cae8 100644 --- a/authentik_client/models/group.py +++ b/authentik_client/models/group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from uuid import UUID -from authentik_client.models.group_child import GroupChild from authentik_client.models.partial_user import PartialUser +from authentik_client.models.related_group import RelatedGroup from authentik_client.models.role import Role from typing import Optional, Set from typing_extensions import Self @@ -35,16 +35,17 @@ class Group(BaseModel): num_pk: StrictInt name: StrictStr is_superuser: Optional[StrictBool] = Field(default=None, description="Users added to this group will be superusers.") - parent: Optional[UUID] = None - parent_name: Optional[StrictStr] + parents: Optional[List[UUID]] = None + parents_obj: Optional[List[RelatedGroup]] users: Optional[List[StrictInt]] = None users_obj: Optional[List[PartialUser]] attributes: Optional[Dict[str, Any]] = None roles: Optional[List[UUID]] = None roles_obj: List[Role] - children: Optional[List[UUID]] = None - children_obj: Optional[List[GroupChild]] - __properties: ClassVar[List[str]] = ["pk", "num_pk", "name", "is_superuser", "parent", "parent_name", "users", "users_obj", "attributes", "roles", "roles_obj", "children", "children_obj"] + inherited_roles_obj: Optional[List[Role]] + children: List[UUID] + children_obj: Optional[List[RelatedGroup]] + __properties: ClassVar[List[str]] = ["pk", "num_pk", "name", "is_superuser", "parents", "parents_obj", "users", "users_obj", "attributes", "roles", "roles_obj", "inherited_roles_obj", "children", "children_obj"] model_config = ConfigDict( populate_by_name=True, @@ -82,13 +83,17 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", "num_pk", - "parent_name", + "parents_obj", "users_obj", "roles_obj", + "inherited_roles_obj", + "children", "children_obj", ]) @@ -97,6 +102,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in parents_obj (list) + _items = [] + if self.parents_obj: + for _item_parents_obj in self.parents_obj: + if _item_parents_obj: + _items.append(_item_parents_obj.to_dict()) + _dict['parents_obj'] = _items # override the default output from pydantic by calling `to_dict()` of each item in users_obj (list) _items = [] if self.users_obj: @@ -111,6 +123,13 @@ def to_dict(self) -> Dict[str, Any]: if _item_roles_obj: _items.append(_item_roles_obj.to_dict()) _dict['roles_obj'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in inherited_roles_obj (list) + _items = [] + if self.inherited_roles_obj: + for _item_inherited_roles_obj in self.inherited_roles_obj: + if _item_inherited_roles_obj: + _items.append(_item_inherited_roles_obj.to_dict()) + _dict['inherited_roles_obj'] = _items # override the default output from pydantic by calling `to_dict()` of each item in children_obj (list) _items = [] if self.children_obj: @@ -118,21 +137,21 @@ def to_dict(self) -> Dict[str, Any]: if _item_children_obj: _items.append(_item_children_obj.to_dict()) _dict['children_obj'] = _items - # set to None if parent (nullable) is None + # set to None if parents_obj (nullable) is None # and model_fields_set contains the field - if self.parent is None and "parent" in self.model_fields_set: - _dict['parent'] = None - - # set to None if parent_name (nullable) is None - # and model_fields_set contains the field - if self.parent_name is None and "parent_name" in self.model_fields_set: - _dict['parent_name'] = None + if self.parents_obj is None and "parents_obj" in self.model_fields_set: + _dict['parents_obj'] = None # set to None if users_obj (nullable) is None # and model_fields_set contains the field if self.users_obj is None and "users_obj" in self.model_fields_set: _dict['users_obj'] = None + # set to None if inherited_roles_obj (nullable) is None + # and model_fields_set contains the field + if self.inherited_roles_obj is None and "inherited_roles_obj" in self.model_fields_set: + _dict['inherited_roles_obj'] = None + # set to None if children_obj (nullable) is None # and model_fields_set contains the field if self.children_obj is None and "children_obj" in self.model_fields_set: @@ -154,15 +173,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "num_pk": obj.get("num_pk"), "name": obj.get("name"), "is_superuser": obj.get("is_superuser"), - "parent": obj.get("parent"), - "parent_name": obj.get("parent_name"), + "parents": obj.get("parents"), + "parents_obj": [RelatedGroup.from_dict(_item) for _item in obj["parents_obj"]] if obj.get("parents_obj") is not None else None, "users": obj.get("users"), "users_obj": [PartialUser.from_dict(_item) for _item in obj["users_obj"]] if obj.get("users_obj") is not None else None, "attributes": obj.get("attributes"), "roles": obj.get("roles"), "roles_obj": [Role.from_dict(_item) for _item in obj["roles_obj"]] if obj.get("roles_obj") is not None else None, + "inherited_roles_obj": [Role.from_dict(_item) for _item in obj["inherited_roles_obj"]] if obj.get("inherited_roles_obj") is not None else None, "children": obj.get("children"), - "children_obj": [GroupChild.from_dict(_item) for _item in obj["children_obj"]] if obj.get("children_obj") is not None else None + "children_obj": [RelatedGroup.from_dict(_item) for _item in obj["children_obj"]] if obj.get("children_obj") is not None else None }) return _obj diff --git a/authentik_client/models/group_kerberos_source_connection.py b/authentik_client/models/group_kerberos_source_connection.py index 6374e2736..ccc30d6ff 100644 --- a/authentik_client/models/group_kerberos_source_connection.py +++ b/authentik_client/models/group_kerberos_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_kerberos_source_connection_request.py b/authentik_client/models/group_kerberos_source_connection_request.py index 272326175..63419944b 100644 --- a/authentik_client/models/group_kerberos_source_connection_request.py +++ b/authentik_client/models/group_kerberos_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_ldap_source_connection.py b/authentik_client/models/group_ldap_source_connection.py index 53e17672a..0d1352b18 100644 --- a/authentik_client/models/group_ldap_source_connection.py +++ b/authentik_client/models/group_ldap_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_ldap_source_connection_request.py b/authentik_client/models/group_ldap_source_connection_request.py index b74a2aad4..706d03f8b 100644 --- a/authentik_client/models/group_ldap_source_connection_request.py +++ b/authentik_client/models/group_ldap_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_matching_mode_enum.py b/authentik_client/models/group_matching_mode_enum.py index 3efd43361..6e2d4b1eb 100644 --- a/authentik_client/models/group_matching_mode_enum.py +++ b/authentik_client/models/group_matching_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_o_auth_source_connection.py b/authentik_client/models/group_o_auth_source_connection.py index e35b7573f..704c6e3bf 100644 --- a/authentik_client/models/group_o_auth_source_connection.py +++ b/authentik_client/models/group_o_auth_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_o_auth_source_connection_request.py b/authentik_client/models/group_o_auth_source_connection_request.py index a4836c524..151ec0355 100644 --- a/authentik_client/models/group_o_auth_source_connection_request.py +++ b/authentik_client/models/group_o_auth_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_plex_source_connection.py b/authentik_client/models/group_plex_source_connection.py index 90ee63eff..468c7fe4b 100644 --- a/authentik_client/models/group_plex_source_connection.py +++ b/authentik_client/models/group_plex_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_plex_source_connection_request.py b/authentik_client/models/group_plex_source_connection_request.py index eab3cf5ea..946abab00 100644 --- a/authentik_client/models/group_plex_source_connection_request.py +++ b/authentik_client/models/group_plex_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_request.py b/authentik_client/models/group_request.py index 46ac34a11..0943221a0 100644 --- a/authentik_client/models/group_request.py +++ b/authentik_client/models/group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,12 +31,11 @@ class GroupRequest(BaseModel): """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] is_superuser: Optional[StrictBool] = Field(default=None, description="Users added to this group will be superusers.") - parent: Optional[UUID] = None + parents: Optional[List[UUID]] = None users: Optional[List[StrictInt]] = None attributes: Optional[Dict[str, Any]] = None roles: Optional[List[UUID]] = None - children: Optional[List[UUID]] = None - __properties: ClassVar[List[str]] = ["name", "is_superuser", "parent", "users", "attributes", "roles", "children"] + __properties: ClassVar[List[str]] = ["name", "is_superuser", "parents", "users", "attributes", "roles"] model_config = ConfigDict( populate_by_name=True, @@ -77,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if parent (nullable) is None - # and model_fields_set contains the field - if self.parent is None and "parent" in self.model_fields_set: - _dict['parent'] = None - return _dict @classmethod @@ -96,11 +90,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "is_superuser": obj.get("is_superuser"), - "parent": obj.get("parent"), + "parents": obj.get("parents"), "users": obj.get("users"), "attributes": obj.get("attributes"), - "roles": obj.get("roles"), - "children": obj.get("children") + "roles": obj.get("roles") }) return _obj diff --git a/authentik_client/models/group_saml_source_connection.py b/authentik_client/models/group_saml_source_connection.py index d2f966bc5..98f540c06 100644 --- a/authentik_client/models/group_saml_source_connection.py +++ b/authentik_client/models/group_saml_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_saml_source_connection_request.py b/authentik_client/models/group_saml_source_connection_request.py index 12924e795..a90449381 100644 --- a/authentik_client/models/group_saml_source_connection_request.py +++ b/authentik_client/models/group_saml_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_source_connection.py b/authentik_client/models/group_source_connection.py index d46424864..d902155f4 100644 --- a/authentik_client/models/group_source_connection.py +++ b/authentik_client/models/group_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_source_connection_request.py b/authentik_client/models/group_source_connection_request.py index c7426ec54..ebb2f74a7 100644 --- a/authentik_client/models/group_source_connection_request.py +++ b/authentik_client/models/group_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_telegram_source_connection.py b/authentik_client/models/group_telegram_source_connection.py index da26c4ea9..c8c1182e7 100644 --- a/authentik_client/models/group_telegram_source_connection.py +++ b/authentik_client/models/group_telegram_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_telegram_source_connection_request.py b/authentik_client/models/group_telegram_source_connection_request.py index 373cfb4ab..3681a7c47 100644 --- a/authentik_client/models/group_telegram_source_connection_request.py +++ b/authentik_client/models/group_telegram_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/hardware.py b/authentik_client/models/hardware.py new file mode 100644 index 000000000..2fed97969 --- /dev/null +++ b/authentik_client/models/hardware.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Hardware(BaseModel): + """ + Hardware + """ # noqa: E501 + model: Optional[StrictStr] = None + manufacturer: Optional[StrictStr] = None + serial: StrictStr + cpu_name: Optional[StrictStr] = None + cpu_count: Optional[StrictInt] = None + memory_bytes: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["model", "manufacturer", "serial", "cpu_name", "cpu_count", "memory_bytes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Hardware from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Hardware from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "model": obj.get("model"), + "manufacturer": obj.get("manufacturer"), + "serial": obj.get("serial"), + "cpu_name": obj.get("cpu_name"), + "cpu_count": obj.get("cpu_count"), + "memory_bytes": obj.get("memory_bytes") + }) + return _obj + + diff --git a/authentik_client/models/hardware_request.py b/authentik_client/models/hardware_request.py new file mode 100644 index 000000000..f6f578327 --- /dev/null +++ b/authentik_client/models/hardware_request.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class HardwareRequest(BaseModel): + """ + HardwareRequest + """ # noqa: E501 + model: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + manufacturer: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + serial: Annotated[str, Field(min_length=1, strict=True)] + cpu_name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + cpu_count: Optional[StrictInt] = None + memory_bytes: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["model", "manufacturer", "serial", "cpu_name", "cpu_count", "memory_bytes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of HardwareRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of HardwareRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "model": obj.get("model"), + "manufacturer": obj.get("manufacturer"), + "serial": obj.get("serial"), + "cpu_name": obj.get("cpu_name"), + "cpu_count": obj.get("cpu_count"), + "memory_bytes": obj.get("memory_bytes") + }) + return _obj + + diff --git a/authentik_client/models/identification_challenge.py b/authentik_client/models/identification_challenge.py index c12d3dc65..d9a403317 100644 --- a/authentik_client/models/identification_challenge.py +++ b/authentik_client/models/identification_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ class IdentificationChallenge(BaseModel): password_fields: StrictBool allow_show_password: Optional[StrictBool] = False application_pre: Optional[StrictStr] = None + application_pre_launch: Optional[StrictStr] = None flow_designation: FlowDesignationEnum captcha_stage: Optional[CaptchaChallenge] = None enroll_url: Optional[StrictStr] = None @@ -48,7 +49,8 @@ class IdentificationChallenge(BaseModel): sources: Optional[List[LoginSource]] = None show_source_labels: StrictBool enable_remember_me: Optional[StrictBool] = True - __properties: ClassVar[List[str]] = ["flow_info", "component", "response_errors", "user_fields", "password_fields", "allow_show_password", "application_pre", "flow_designation", "captcha_stage", "enroll_url", "recovery_url", "passwordless_url", "primary_action", "sources", "show_source_labels", "enable_remember_me"] + passkey_challenge: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["flow_info", "component", "response_errors", "user_fields", "password_fields", "allow_show_password", "application_pre", "application_pre_launch", "flow_designation", "captcha_stage", "enroll_url", "recovery_url", "passwordless_url", "primary_action", "sources", "show_source_labels", "enable_remember_me", "passkey_challenge"] model_config = ConfigDict( populate_by_name=True, @@ -121,6 +123,11 @@ def to_dict(self) -> Dict[str, Any]: if self.captcha_stage is None and "captcha_stage" in self.model_fields_set: _dict['captcha_stage'] = None + # set to None if passkey_challenge (nullable) is None + # and model_fields_set contains the field + if self.passkey_challenge is None and "passkey_challenge" in self.model_fields_set: + _dict['passkey_challenge'] = None + return _dict @classmethod @@ -147,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "password_fields": obj.get("password_fields"), "allow_show_password": obj.get("allow_show_password") if obj.get("allow_show_password") is not None else False, "application_pre": obj.get("application_pre"), + "application_pre_launch": obj.get("application_pre_launch"), "flow_designation": obj.get("flow_designation"), "captcha_stage": CaptchaChallenge.from_dict(obj["captcha_stage"]) if obj.get("captcha_stage") is not None else None, "enroll_url": obj.get("enroll_url"), @@ -155,7 +163,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "primary_action": obj.get("primary_action"), "sources": [LoginSource.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None, "show_source_labels": obj.get("show_source_labels"), - "enable_remember_me": obj.get("enable_remember_me") if obj.get("enable_remember_me") is not None else True + "enable_remember_me": obj.get("enable_remember_me") if obj.get("enable_remember_me") is not None else True, + "passkey_challenge": obj.get("passkey_challenge") }) return _obj diff --git a/authentik_client/models/identification_challenge_response_request.py b/authentik_client/models/identification_challenge_response_request.py index eb449fb77..794b41de5 100644 --- a/authentik_client/models/identification_challenge_response_request.py +++ b/authentik_client/models/identification_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,10 +29,11 @@ class IdentificationChallengeResponseRequest(BaseModel): Identification challenge """ # noqa: E501 component: Optional[Annotated[str, Field(min_length=1, strict=True)]] = 'ak-stage-identification' - uid_field: Annotated[str, Field(min_length=1, strict=True)] + uid_field: Optional[StrictStr] = None password: Optional[StrictStr] = None captcha_token: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["component", "uid_field", "password", "captcha_token"] + passkey: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["component", "uid_field", "password", "captcha_token", "passkey"] model_config = ConfigDict( populate_by_name=True, @@ -73,6 +74,11 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if uid_field (nullable) is None + # and model_fields_set contains the field + if self.uid_field is None and "uid_field" in self.model_fields_set: + _dict['uid_field'] = None + # set to None if password (nullable) is None # and model_fields_set contains the field if self.password is None and "password" in self.model_fields_set: @@ -83,6 +89,11 @@ def to_dict(self) -> Dict[str, Any]: if self.captcha_token is None and "captcha_token" in self.model_fields_set: _dict['captcha_token'] = None + # set to None if passkey (nullable) is None + # and model_fields_set contains the field + if self.passkey is None and "passkey" in self.model_fields_set: + _dict['passkey'] = None + return _dict @classmethod @@ -98,7 +109,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "component": obj.get("component") if obj.get("component") is not None else 'ak-stage-identification', "uid_field": obj.get("uid_field"), "password": obj.get("password"), - "captcha_token": obj.get("captcha_token") + "captcha_token": obj.get("captcha_token"), + "passkey": obj.get("passkey") }) return _obj diff --git a/authentik_client/models/identification_stage.py b/authentik_client/models/identification_stage.py index 151514238..e3ab41da0 100644 --- a/authentik_client/models/identification_stage.py +++ b/authentik_client/models/identification_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,7 +36,7 @@ class IdentificationStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] user_fields: Optional[List[UserFieldsEnum]] = Field(default=None, description="Fields of the user object to match against. (Hold shift to select multiple options)") password_stage: Optional[UUID] = Field(default=None, description="When set, shows a password field, instead of showing the password field as separate step.") captcha_stage: Optional[UUID] = Field(default=None, description="When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.") @@ -49,7 +49,8 @@ class IdentificationStage(BaseModel): show_source_labels: Optional[StrictBool] = None pretend_user_exists: Optional[StrictBool] = Field(default=None, description="When enabled, the stage will succeed and continue even when incorrect user info is entered.") enable_remember_me: Optional[StrictBool] = Field(default=None, description="Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password.") - __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "user_fields", "password_stage", "captcha_stage", "case_insensitive_matching", "show_matched_user", "enrollment_flow", "recovery_flow", "passwordless_flow", "sources", "show_source_labels", "pretend_user_exists", "enable_remember_me"] + webauthn_stage: Optional[UUID] = Field(default=None, description="When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor.") + __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "user_fields", "password_stage", "captcha_stage", "case_insensitive_matching", "show_matched_user", "enrollment_flow", "recovery_flow", "passwordless_flow", "sources", "show_source_labels", "pretend_user_exists", "enable_remember_me", "webauthn_stage"] model_config = ConfigDict( populate_by_name=True, @@ -86,6 +87,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -93,6 +95,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( @@ -132,6 +135,11 @@ def to_dict(self) -> Dict[str, Any]: if self.passwordless_flow is None and "passwordless_flow" in self.model_fields_set: _dict['passwordless_flow'] = None + # set to None if webauthn_stage (nullable) is None + # and model_fields_set contains the field + if self.webauthn_stage is None and "webauthn_stage" in self.model_fields_set: + _dict['webauthn_stage'] = None + return _dict @classmethod @@ -162,7 +170,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sources": obj.get("sources"), "show_source_labels": obj.get("show_source_labels"), "pretend_user_exists": obj.get("pretend_user_exists"), - "enable_remember_me": obj.get("enable_remember_me") + "enable_remember_me": obj.get("enable_remember_me"), + "webauthn_stage": obj.get("webauthn_stage") }) return _obj diff --git a/authentik_client/models/identification_stage_request.py b/authentik_client/models/identification_stage_request.py index ed00b526a..1c7788882 100644 --- a/authentik_client/models/identification_stage_request.py +++ b/authentik_client/models/identification_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.user_fields_enum import UserFieldsEnum from typing import Optional, Set from typing_extensions import Self @@ -32,7 +31,6 @@ class IdentificationStageRequest(BaseModel): IdentificationStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None user_fields: Optional[List[UserFieldsEnum]] = Field(default=None, description="Fields of the user object to match against. (Hold shift to select multiple options)") password_stage: Optional[UUID] = Field(default=None, description="When set, shows a password field, instead of showing the password field as separate step.") captcha_stage: Optional[UUID] = Field(default=None, description="When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.") @@ -45,7 +43,8 @@ class IdentificationStageRequest(BaseModel): show_source_labels: Optional[StrictBool] = None pretend_user_exists: Optional[StrictBool] = Field(default=None, description="When enabled, the stage will succeed and continue even when incorrect user info is entered.") enable_remember_me: Optional[StrictBool] = Field(default=None, description="Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password.") - __properties: ClassVar[List[str]] = ["name", "flow_set", "user_fields", "password_stage", "captcha_stage", "case_insensitive_matching", "show_matched_user", "enrollment_flow", "recovery_flow", "passwordless_flow", "sources", "show_source_labels", "pretend_user_exists", "enable_remember_me"] + webauthn_stage: Optional[UUID] = Field(default=None, description="When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor.") + __properties: ClassVar[List[str]] = ["name", "user_fields", "password_stage", "captcha_stage", "case_insensitive_matching", "show_matched_user", "enrollment_flow", "recovery_flow", "passwordless_flow", "sources", "show_source_labels", "pretend_user_exists", "enable_remember_me", "webauthn_stage"] model_config = ConfigDict( populate_by_name=True, @@ -86,13 +85,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if password_stage (nullable) is None # and model_fields_set contains the field if self.password_stage is None and "password_stage" in self.model_fields_set: @@ -118,6 +110,11 @@ def to_dict(self) -> Dict[str, Any]: if self.passwordless_flow is None and "passwordless_flow" in self.model_fields_set: _dict['passwordless_flow'] = None + # set to None if webauthn_stage (nullable) is None + # and model_fields_set contains the field + if self.webauthn_stage is None and "webauthn_stage" in self.model_fields_set: + _dict['webauthn_stage'] = None + return _dict @classmethod @@ -131,7 +128,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "user_fields": obj.get("user_fields"), "password_stage": obj.get("password_stage"), "captcha_stage": obj.get("captcha_stage"), @@ -143,7 +139,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sources": obj.get("sources"), "show_source_labels": obj.get("show_source_labels"), "pretend_user_exists": obj.get("pretend_user_exists"), - "enable_remember_me": obj.get("enable_remember_me") + "enable_remember_me": obj.get("enable_remember_me"), + "webauthn_stage": obj.get("webauthn_stage") }) return _obj diff --git a/authentik_client/models/iframe_logout_challenge.py b/authentik_client/models/iframe_logout_challenge.py index 5d70cd04f..54494bc16 100644 --- a/authentik_client/models/iframe_logout_challenge.py +++ b/authentik_client/models/iframe_logout_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/iframe_logout_challenge_response_request.py b/authentik_client/models/iframe_logout_challenge_response_request.py index 979870502..4b8087512 100644 --- a/authentik_client/models/iframe_logout_challenge_response_request.py +++ b/authentik_client/models/iframe_logout_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/impersonation_request.py b/authentik_client/models/impersonation_request.py index 18f837ddb..668384b81 100644 --- a/authentik_client/models/impersonation_request.py +++ b/authentik_client/models/impersonation_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/initial_permissions.py b/authentik_client/models/initial_permissions.py index 0cfd042df..b1d83d6b7 100644 --- a/authentik_client/models/initial_permissions.py +++ b/authentik_client/models/initial_permissions.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.initial_permissions_mode_enum import InitialPermissionsModeEnum from authentik_client.models.permission import Permission from typing import Optional, Set from typing_extensions import Self @@ -33,11 +32,10 @@ class InitialPermissions(BaseModel): """ # noqa: E501 pk: StrictInt name: Annotated[str, Field(strict=True, max_length=150)] - mode: InitialPermissionsModeEnum role: UUID permissions: Optional[List[StrictInt]] = None permissions_obj: List[Permission] - __properties: ClassVar[List[str]] = ["pk", "name", "mode", "role", "permissions", "permissions_obj"] + __properties: ClassVar[List[str]] = ["pk", "name", "role", "permissions", "permissions_obj"] model_config = ConfigDict( populate_by_name=True, @@ -103,7 +101,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "pk": obj.get("pk"), "name": obj.get("name"), - "mode": obj.get("mode"), "role": obj.get("role"), "permissions": obj.get("permissions"), "permissions_obj": [Permission.from_dict(_item) for _item in obj["permissions_obj"]] if obj.get("permissions_obj") is not None else None diff --git a/authentik_client/models/initial_permissions_request.py b/authentik_client/models/initial_permissions_request.py index eec74832f..0771f0d38 100644 --- a/authentik_client/models/initial_permissions_request.py +++ b/authentik_client/models/initial_permissions_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.initial_permissions_mode_enum import InitialPermissionsModeEnum from typing import Optional, Set from typing_extensions import Self @@ -31,10 +30,9 @@ class InitialPermissionsRequest(BaseModel): InitialPermissions serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True, max_length=150)] - mode: InitialPermissionsModeEnum role: UUID permissions: Optional[List[StrictInt]] = None - __properties: ClassVar[List[str]] = ["name", "mode", "role", "permissions"] + __properties: ClassVar[List[str]] = ["name", "role", "permissions"] model_config = ConfigDict( populate_by_name=True, @@ -88,7 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "mode": obj.get("mode"), "role": obj.get("role"), "permissions": obj.get("permissions") }) diff --git a/authentik_client/models/install_id.py b/authentik_client/models/install_id.py index 8651199d6..afdc2314c 100644 --- a/authentik_client/models/install_id.py +++ b/authentik_client/models/install_id.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/intent_enum.py b/authentik_client/models/intent_enum.py index 42e170cdf..fad6a0c8a 100644 --- a/authentik_client/models/intent_enum.py +++ b/authentik_client/models/intent_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/invalid_response_action_enum.py b/authentik_client/models/invalid_response_action_enum.py index abc301274..f287eea07 100644 --- a/authentik_client/models/invalid_response_action_enum.py +++ b/authentik_client/models/invalid_response_action_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/invitation.py b/authentik_client/models/invitation.py index 10e938697..d465a5cad 100644 --- a/authentik_client/models/invitation.py +++ b/authentik_client/models/invitation.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -33,7 +33,7 @@ class Invitation(BaseModel): Invitation Serializer """ # noqa: E501 pk: UUID - name: Annotated[str, Field(strict=True, max_length=50)] + name: Annotated[str, Field(strict=True)] expires: Optional[datetime] = None fixed_data: Optional[Dict[str, Any]] = None created_by: PartialUser diff --git a/authentik_client/models/invitation_request.py b/authentik_client/models/invitation_request.py index c855e6fe3..575220239 100644 --- a/authentik_client/models/invitation_request.py +++ b/authentik_client/models/invitation_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,7 +30,7 @@ class InvitationRequest(BaseModel): """ Invitation Serializer """ # noqa: E501 - name: Annotated[str, Field(min_length=1, strict=True, max_length=50)] + name: Annotated[str, Field(min_length=1, strict=True)] expires: Optional[datetime] = None fixed_data: Optional[Dict[str, Any]] = None single_use: Optional[StrictBool] = Field(default=None, description="When enabled, the invitation will be deleted after usage.") diff --git a/authentik_client/models/invitation_stage.py b/authentik_client/models/invitation_stage.py index 86ae61cc2..76e029f32 100644 --- a/authentik_client/models/invitation_stage.py +++ b/authentik_client/models/invitation_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class InvitationStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] continue_flow_without_invitation: Optional[StrictBool] = Field(default=None, description="If this flag is set, this Stage will jump to the next Stage when no Invitation is given. By default this Stage will cancel the Flow when no invitation is given.") __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "continue_flow_without_invitation"] @@ -74,6 +74,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -81,6 +82,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/invitation_stage_request.py b/authentik_client/models/invitation_stage_request.py index 6ef7c197f..3661fc520 100644 --- a/authentik_client/models/invitation_stage_request.py +++ b/authentik_client/models/invitation_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,9 +29,8 @@ class InvitationStageRequest(BaseModel): InvitationStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None continue_flow_without_invitation: Optional[StrictBool] = Field(default=None, description="If this flag is set, this Stage will jump to the next Stage when no Invitation is given. By default this Stage will cancel the Flow when no invitation is given.") - __properties: ClassVar[List[str]] = ["name", "flow_set", "continue_flow_without_invitation"] + __properties: ClassVar[List[str]] = ["name", "continue_flow_without_invitation"] model_config = ConfigDict( populate_by_name=True, @@ -73,13 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -93,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "continue_flow_without_invitation": obj.get("continue_flow_without_invitation") }) return _obj diff --git a/authentik_client/models/issuer_mode_enum.py b/authentik_client/models/issuer_mode_enum.py index fa3027760..68903a931 100644 --- a/authentik_client/models/issuer_mode_enum.py +++ b/authentik_client/models/issuer_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/kadmin_type_enum.py b/authentik_client/models/kadmin_type_enum.py index ea621c7b5..c4b28db39 100644 --- a/authentik_client/models/kadmin_type_enum.py +++ b/authentik_client/models/kadmin_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,7 +29,6 @@ class KadminTypeEnum(str, Enum): """ MIT = 'MIT' HEIMDAL = 'Heimdal' - OTHER = 'other' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/authentik_client/models/kerberos_source.py b/authentik_client/models/kerberos_source.py index 30ea6f177..2910db118 100644 --- a/authentik_client/models/kerberos_source.py +++ b/authentik_client/models/kerberos_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,8 @@ from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum from authentik_client.models.kadmin_type_enum import KadminTypeEnum from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -35,8 +37,9 @@ class KerberosSource(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Source's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -49,7 +52,9 @@ class KerberosSource(BaseModel): user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") managed: Optional[StrictStr] = Field(description="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.") user_path_template: Optional[StrictStr] = None - icon: StrictStr + icon: Optional[StrictStr] = None + icon_url: StrictStr + icon_themed_urls: Optional[ThemedUrls] group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") realm: StrictStr = Field(description="Kerberos realm") krb5_conf: Optional[StrictStr] = Field(default=None, description="Custom krb5.conf to use. Uses the system one by default") @@ -62,7 +67,8 @@ class KerberosSource(BaseModel): spnego_server_name: Optional[StrictStr] = Field(default=None, description="Force the use of a specific server name for SPNEGO. Must be in the form HTTP@hostname") spnego_ccache: Optional[StrictStr] = Field(default=None, description="Credential cache to use for SPNEGO in form type:residual") password_login_update_internal_password: Optional[StrictBool] = Field(default=None, description="If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend") - __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "group_matching_mode", "realm", "krb5_conf", "kadmin_type", "sync_users", "sync_users_password", "sync_principal", "sync_ccache", "connectivity", "spnego_server_name", "spnego_ccache", "password_login_update_internal_password"] + sync_outgoing_trigger_mode: Optional[SyncOutgoingTriggerModeEnum] = Field(default=None, description="When to trigger sync for outgoing providers") + __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "icon_url", "icon_themed_urls", "group_matching_mode", "realm", "krb5_conf", "kadmin_type", "sync_users", "sync_users_password", "sync_principal", "sync_ccache", "connectivity", "spnego_server_name", "spnego_ccache", "password_login_update_internal_password", "sync_outgoing_trigger_mode"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -109,6 +115,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -117,7 +124,8 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name_plural", "meta_model_name", "managed", - "icon", + "icon_url", + "icon_themed_urls", "connectivity", ]) @@ -126,6 +134,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of icon_themed_urls + if self.icon_themed_urls: + _dict['icon_themed_urls'] = self.icon_themed_urls.to_dict() # set to None if authentication_flow (nullable) is None # and model_fields_set contains the field if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: @@ -141,6 +152,11 @@ def to_dict(self) -> Dict[str, Any]: if self.managed is None and "managed" in self.model_fields_set: _dict['managed'] = None + # set to None if icon_themed_urls (nullable) is None + # and model_fields_set contains the field + if self.icon_themed_urls is None and "icon_themed_urls" in self.model_fields_set: + _dict['icon_themed_urls'] = None + # set to None if connectivity (nullable) is None # and model_fields_set contains the field if self.connectivity is None and "connectivity" in self.model_fields_set: @@ -162,6 +178,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -175,6 +192,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "managed": obj.get("managed"), "user_path_template": obj.get("user_path_template"), "icon": obj.get("icon"), + "icon_url": obj.get("icon_url"), + "icon_themed_urls": ThemedUrls.from_dict(obj["icon_themed_urls"]) if obj.get("icon_themed_urls") is not None else None, "group_matching_mode": obj.get("group_matching_mode"), "realm": obj.get("realm"), "krb5_conf": obj.get("krb5_conf"), @@ -186,7 +205,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "connectivity": obj.get("connectivity"), "spnego_server_name": obj.get("spnego_server_name"), "spnego_ccache": obj.get("spnego_ccache"), - "password_login_update_internal_password": obj.get("password_login_update_internal_password") + "password_login_update_internal_password": obj.get("password_login_update_internal_password"), + "sync_outgoing_trigger_mode": obj.get("sync_outgoing_trigger_mode") }) return _obj diff --git a/authentik_client/models/kerberos_source_property_mapping.py b/authentik_client/models/kerberos_source_property_mapping.py index b0abc4b47..ade48dd3c 100644 --- a/authentik_client/models/kerberos_source_property_mapping.py +++ b/authentik_client/models/kerberos_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/kerberos_source_property_mapping_request.py b/authentik_client/models/kerberos_source_property_mapping_request.py index bfb7114b5..1beb60113 100644 --- a/authentik_client/models/kerberos_source_property_mapping_request.py +++ b/authentik_client/models/kerberos_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/kerberos_source_request.py b/authentik_client/models/kerberos_source_request.py index 25100a523..5b6b6dfec 100644 --- a/authentik_client/models/kerberos_source_request.py +++ b/authentik_client/models/kerberos_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum from authentik_client.models.kadmin_type_enum import KadminTypeEnum from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -34,8 +35,9 @@ class KerberosSourceRequest(BaseModel): Kerberos Source Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Source's display Name.") - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -43,6 +45,7 @@ class KerberosSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") realm: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Kerberos realm") krb5_conf: Optional[StrictStr] = Field(default=None, description="Custom krb5.conf to use. Uses the system one by default") @@ -57,7 +60,8 @@ class KerberosSourceRequest(BaseModel): spnego_keytab: Optional[StrictStr] = Field(default=None, description="SPNEGO keytab base64-encoded or path to keytab in the form FILE:path") spnego_ccache: Optional[StrictStr] = Field(default=None, description="Credential cache to use for SPNEGO in form type:residual") password_login_update_internal_password: Optional[StrictBool] = Field(default=None, description="If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "group_matching_mode", "realm", "krb5_conf", "kadmin_type", "sync_users", "sync_users_password", "sync_principal", "sync_password", "sync_keytab", "sync_ccache", "spnego_server_name", "spnego_keytab", "spnego_ccache", "password_login_update_internal_password"] + sync_outgoing_trigger_mode: Optional[SyncOutgoingTriggerModeEnum] = Field(default=None, description="When to trigger sync for outgoing providers") + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "group_matching_mode", "realm", "krb5_conf", "kadmin_type", "sync_users", "sync_users_password", "sync_principal", "sync_password", "sync_keytab", "sync_ccache", "spnego_server_name", "spnego_keytab", "spnego_ccache", "password_login_update_internal_password", "sync_outgoing_trigger_mode"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -130,6 +134,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -137,6 +142,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "group_matching_mode": obj.get("group_matching_mode"), "realm": obj.get("realm"), "krb5_conf": obj.get("krb5_conf"), @@ -150,7 +156,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "spnego_server_name": obj.get("spnego_server_name"), "spnego_keytab": obj.get("spnego_keytab"), "spnego_ccache": obj.get("spnego_ccache"), - "password_login_update_internal_password": obj.get("password_login_update_internal_password") + "password_login_update_internal_password": obj.get("password_login_update_internal_password"), + "sync_outgoing_trigger_mode": obj.get("sync_outgoing_trigger_mode") }) return _obj diff --git a/authentik_client/models/key_type_enum.py b/authentik_client/models/key_type_enum.py new file mode 100644 index 000000000..d75c00932 --- /dev/null +++ b/authentik_client/models/key_type_enum.py @@ -0,0 +1,41 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class KeyTypeEnum(str, Enum): + """ + KeyTypeEnum + """ + + """ + allowed enum values + """ + RSA = 'rsa' + EC = 'ec' + DSA = 'dsa' + ED25519 = 'ed25519' + ED448 = 'ed448' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of KeyTypeEnum from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/authentik_client/models/kubernetes_service_connection.py b/authentik_client/models/kubernetes_service_connection.py index 71a7ced39..b65a8209d 100644 --- a/authentik_client/models/kubernetes_service_connection.py +++ b/authentik_client/models/kubernetes_service_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/kubernetes_service_connection_request.py b/authentik_client/models/kubernetes_service_connection_request.py index e34d0562f..25b671b47 100644 --- a/authentik_client/models/kubernetes_service_connection_request.py +++ b/authentik_client/models/kubernetes_service_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/last_task_status_enum.py b/authentik_client/models/last_task_status_enum.py index 210c1485b..c59a7a716 100644 --- a/authentik_client/models/last_task_status_enum.py +++ b/authentik_client/models/last_task_status_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ldap_check_access.py b/authentik_client/models/ldap_check_access.py index f36d570e5..e435e9ef3 100644 --- a/authentik_client/models/ldap_check_access.py +++ b/authentik_client/models/ldap_check_access.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ldap_debug.py b/authentik_client/models/ldap_debug.py index cfaccf37d..781c55e2e 100644 --- a/authentik_client/models/ldap_debug.py +++ b/authentik_client/models/ldap_debug.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ldap_outpost_config.py b/authentik_client/models/ldap_outpost_config.py index 56cfd0a10..d3d7644a0 100644 --- a/authentik_client/models/ldap_outpost_config.py +++ b/authentik_client/models/ldap_outpost_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ldap_provider.py b/authentik_client/models/ldap_provider.py index b48239add..53376e329 100644 --- a/authentik_client/models/ldap_provider.py +++ b/authentik_client/models/ldap_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,10 +37,10 @@ class LDAPProvider(BaseModel): invalidation_flow: UUID = Field(description="Flow used ending the session from a provider.") property_mappings: Optional[List[UUID]] = None component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_application_name: StrictStr = Field(description="Application's display Name.") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_application_name: Optional[StrictStr] = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -119,6 +119,26 @@ def to_dict(self) -> Dict[str, Any]: if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: _dict['authentication_flow'] = None + # set to None if assigned_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_slug is None and "assigned_application_slug" in self.model_fields_set: + _dict['assigned_application_slug'] = None + + # set to None if assigned_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_name is None and "assigned_application_name" in self.model_fields_set: + _dict['assigned_application_name'] = None + + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + # set to None if certificate (nullable) is None # and model_fields_set contains the field if self.certificate is None and "certificate" in self.model_fields_set: diff --git a/authentik_client/models/ldap_provider_request.py b/authentik_client/models/ldap_provider_request.py index 63a31d888..e1b7f0217 100644 --- a/authentik_client/models/ldap_provider_request.py +++ b/authentik_client/models/ldap_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ldap_source.py b/authentik_client/models/ldap_source.py index 12b5c7fd0..1b19ad162 100644 --- a/authentik_client/models/ldap_source.py +++ b/authentik_client/models/ldap_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,8 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -33,8 +35,9 @@ class LDAPSource(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Source's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -47,7 +50,9 @@ class LDAPSource(BaseModel): user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") managed: Optional[StrictStr] = Field(description="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.") user_path_template: Optional[StrictStr] = None - icon: StrictStr + icon: Optional[StrictStr] = None + icon_url: StrictStr + icon_themed_urls: Optional[ThemedUrls] server_uri: StrictStr peer_certificate: Optional[UUID] = Field(default=None, description="Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.") client_certificate: Optional[UUID] = Field(default=None, description="Client certificate to authenticate against the LDAP Server's Certificate.") @@ -70,7 +75,8 @@ class LDAPSource(BaseModel): connectivity: Optional[Dict[str, Dict[str, StrictStr]]] = Field(description="Get cached source connectivity") lookup_groups_from_user: Optional[StrictBool] = Field(default=None, description="Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory") delete_not_found_objects: Optional[StrictBool] = Field(default=None, description="Delete authentik users and groups which were previously supplied by this source, but are now missing from it.") - __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "server_uri", "peer_certificate", "client_certificate", "bind_cn", "start_tls", "sni", "base_dn", "additional_user_dn", "additional_group_dn", "user_object_filter", "group_object_filter", "group_membership_field", "user_membership_attribute", "object_uniqueness_field", "password_login_update_internal_password", "sync_users", "sync_users_password", "sync_groups", "sync_parent_group", "connectivity", "lookup_groups_from_user", "delete_not_found_objects"] + sync_outgoing_trigger_mode: Optional[SyncOutgoingTriggerModeEnum] = Field(default=None, description="When to trigger sync for outgoing providers") + __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "icon_url", "icon_themed_urls", "server_uri", "peer_certificate", "client_certificate", "bind_cn", "start_tls", "sni", "base_dn", "additional_user_dn", "additional_group_dn", "user_object_filter", "group_object_filter", "group_membership_field", "user_membership_attribute", "object_uniqueness_field", "password_login_update_internal_password", "sync_users", "sync_users_password", "sync_groups", "sync_parent_group", "connectivity", "lookup_groups_from_user", "delete_not_found_objects", "sync_outgoing_trigger_mode"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -117,6 +123,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -125,7 +132,8 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name_plural", "meta_model_name", "managed", - "icon", + "icon_url", + "icon_themed_urls", "connectivity", ]) @@ -134,6 +142,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of icon_themed_urls + if self.icon_themed_urls: + _dict['icon_themed_urls'] = self.icon_themed_urls.to_dict() # set to None if authentication_flow (nullable) is None # and model_fields_set contains the field if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: @@ -149,6 +160,11 @@ def to_dict(self) -> Dict[str, Any]: if self.managed is None and "managed" in self.model_fields_set: _dict['managed'] = None + # set to None if icon_themed_urls (nullable) is None + # and model_fields_set contains the field + if self.icon_themed_urls is None and "icon_themed_urls" in self.model_fields_set: + _dict['icon_themed_urls'] = None + # set to None if peer_certificate (nullable) is None # and model_fields_set contains the field if self.peer_certificate is None and "peer_certificate" in self.model_fields_set: @@ -185,6 +201,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -198,6 +215,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "managed": obj.get("managed"), "user_path_template": obj.get("user_path_template"), "icon": obj.get("icon"), + "icon_url": obj.get("icon_url"), + "icon_themed_urls": ThemedUrls.from_dict(obj["icon_themed_urls"]) if obj.get("icon_themed_urls") is not None else None, "server_uri": obj.get("server_uri"), "peer_certificate": obj.get("peer_certificate"), "client_certificate": obj.get("client_certificate"), @@ -219,7 +238,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sync_parent_group": obj.get("sync_parent_group"), "connectivity": obj.get("connectivity"), "lookup_groups_from_user": obj.get("lookup_groups_from_user"), - "delete_not_found_objects": obj.get("delete_not_found_objects") + "delete_not_found_objects": obj.get("delete_not_found_objects"), + "sync_outgoing_trigger_mode": obj.get("sync_outgoing_trigger_mode") }) return _obj diff --git a/authentik_client/models/ldap_source_property_mapping.py b/authentik_client/models/ldap_source_property_mapping.py index b400b44d6..b6e34322b 100644 --- a/authentik_client/models/ldap_source_property_mapping.py +++ b/authentik_client/models/ldap_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ldap_source_property_mapping_request.py b/authentik_client/models/ldap_source_property_mapping_request.py index bc1920f33..8d62e3dcf 100644 --- a/authentik_client/models/ldap_source_property_mapping_request.py +++ b/authentik_client/models/ldap_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ldap_source_request.py b/authentik_client/models/ldap_source_request.py index 864d0ac4b..fd29afcde 100644 --- a/authentik_client/models/ldap_source_request.py +++ b/authentik_client/models/ldap_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -32,8 +33,9 @@ class LDAPSourceRequest(BaseModel): LDAP Source Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Source's display Name.") - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -41,6 +43,7 @@ class LDAPSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None server_uri: Annotated[str, Field(min_length=1, strict=True)] peer_certificate: Optional[UUID] = Field(default=None, description="Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.") client_certificate: Optional[UUID] = Field(default=None, description="Client certificate to authenticate against the LDAP Server's Certificate.") @@ -63,7 +66,8 @@ class LDAPSourceRequest(BaseModel): sync_parent_group: Optional[UUID] = None lookup_groups_from_user: Optional[StrictBool] = Field(default=None, description="Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory") delete_not_found_objects: Optional[StrictBool] = Field(default=None, description="Delete authentik users and groups which were previously supplied by this source, but are now missing from it.") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "server_uri", "peer_certificate", "client_certificate", "bind_cn", "bind_password", "start_tls", "sni", "base_dn", "additional_user_dn", "additional_group_dn", "user_object_filter", "group_object_filter", "group_membership_field", "user_membership_attribute", "object_uniqueness_field", "password_login_update_internal_password", "sync_users", "sync_users_password", "sync_groups", "sync_parent_group", "lookup_groups_from_user", "delete_not_found_objects"] + sync_outgoing_trigger_mode: Optional[SyncOutgoingTriggerModeEnum] = Field(default=None, description="When to trigger sync for outgoing providers") + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "server_uri", "peer_certificate", "client_certificate", "bind_cn", "bind_password", "start_tls", "sni", "base_dn", "additional_user_dn", "additional_group_dn", "user_object_filter", "group_object_filter", "group_membership_field", "user_membership_attribute", "object_uniqueness_field", "password_login_update_internal_password", "sync_users", "sync_users_password", "sync_groups", "sync_parent_group", "lookup_groups_from_user", "delete_not_found_objects", "sync_outgoing_trigger_mode"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -151,6 +155,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -158,6 +163,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "server_uri": obj.get("server_uri"), "peer_certificate": obj.get("peer_certificate"), "client_certificate": obj.get("client_certificate"), @@ -179,7 +185,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sync_groups": obj.get("sync_groups"), "sync_parent_group": obj.get("sync_parent_group"), "lookup_groups_from_user": obj.get("lookup_groups_from_user"), - "delete_not_found_objects": obj.get("delete_not_found_objects") + "delete_not_found_objects": obj.get("delete_not_found_objects"), + "sync_outgoing_trigger_mode": obj.get("sync_outgoing_trigger_mode") }) return _obj diff --git a/authentik_client/models/ldapapi_access_mode.py b/authentik_client/models/ldapapi_access_mode.py index 6165b60dd..60da5ae39 100644 --- a/authentik_client/models/ldapapi_access_mode.py +++ b/authentik_client/models/ldapapi_access_mode.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/license.py b/authentik_client/models/license.py index ac194fd94..32d96b8f3 100644 --- a/authentik_client/models/license.py +++ b/authentik_client/models/license.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/license_flags_enum.py b/authentik_client/models/license_flags_enum.py index 6298070a0..4d6828834 100644 --- a/authentik_client/models/license_flags_enum.py +++ b/authentik_client/models/license_flags_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/license_forecast.py b/authentik_client/models/license_forecast.py index eaa2806a1..dc1cede27 100644 --- a/authentik_client/models/license_forecast.py +++ b/authentik_client/models/license_forecast.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/license_request.py b/authentik_client/models/license_request.py index 9224a269f..c9edd8862 100644 --- a/authentik_client/models/license_request.py +++ b/authentik_client/models/license_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/license_status_enum.py b/authentik_client/models/license_status_enum.py new file mode 100644 index 000000000..e42e3181c --- /dev/null +++ b/authentik_client/models/license_status_enum.py @@ -0,0 +1,43 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class LicenseStatusEnum(str, Enum): + """ + LicenseStatusEnum + """ + + """ + allowed enum values + """ + UNLICENSED = 'unlicensed' + VALID = 'valid' + EXPIRED = 'expired' + EXPIRY_SOON = 'expiry_soon' + LIMIT_EXCEEDED_ADMIN = 'limit_exceeded_admin' + LIMIT_EXCEEDED_USER = 'limit_exceeded_user' + READ_ONLY = 'read_only' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of LicenseStatusEnum from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/authentik_client/models/license_summary.py b/authentik_client/models/license_summary.py index 96500478a..3e91d9cc6 100644 --- a/authentik_client/models/license_summary.py +++ b/authentik_client/models/license_summary.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/license_summary_status_enum.py b/authentik_client/models/license_summary_status_enum.py index f20b69752..19981aadf 100644 --- a/authentik_client/models/license_summary_status_enum.py +++ b/authentik_client/models/license_summary_status_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/link.py b/authentik_client/models/link.py index 1fdcd5639..5749936f4 100644 --- a/authentik_client/models/link.py +++ b/authentik_client/models/link.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/log_event.py b/authentik_client/models/log_event.py index 5df396175..e050a4ea7 100644 --- a/authentik_client/models/log_event.py +++ b/authentik_client/models/log_event.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/log_level_enum.py b/authentik_client/models/log_level_enum.py index 0a6469d6f..c401ed96f 100644 --- a/authentik_client/models/log_level_enum.py +++ b/authentik_client/models/log_level_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/login_challenge_types.py b/authentik_client/models/login_challenge_types.py index 8a8b85bef..cc1f353e3 100644 --- a/authentik_client/models/login_challenge_types.py +++ b/authentik_client/models/login_challenge_types.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/login_source.py b/authentik_client/models/login_source.py index dac0f5c92..4c8677db4 100644 --- a/authentik_client/models/login_source.py +++ b/authentik_client/models/login_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from authentik_client.models.login_challenge_types import LoginChallengeTypes from typing import Optional, Set @@ -30,8 +30,9 @@ class LoginSource(BaseModel): """ # noqa: E501 name: StrictStr icon_url: Optional[StrictStr] = None + promoted: Optional[StrictBool] = False challenge: LoginChallengeTypes - __properties: ClassVar[List[str]] = ["name", "icon_url", "challenge"] + __properties: ClassVar[List[str]] = ["name", "icon_url", "promoted", "challenge"] model_config = ConfigDict( populate_by_name=True, @@ -94,6 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "icon_url": obj.get("icon_url"), + "promoted": obj.get("promoted") if obj.get("promoted") is not None else False, "challenge": LoginChallengeTypes.from_dict(obj["challenge"]) if obj.get("challenge") is not None else None }) return _obj diff --git a/authentik_client/models/matching_mode_enum.py b/authentik_client/models/matching_mode_enum.py index 2260c1e51..7d941efdc 100644 --- a/authentik_client/models/matching_mode_enum.py +++ b/authentik_client/models/matching_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/mdm_config_request.py b/authentik_client/models/mdm_config_request.py new file mode 100644 index 000000000..2e8f1050a --- /dev/null +++ b/authentik_client/models/mdm_config_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from uuid import UUID +from authentik_client.models.device_facts_os_family import DeviceFactsOSFamily +from typing import Optional, Set +from typing_extensions import Self + +class MDMConfigRequest(BaseModel): + """ + Base serializer class which doesn't implement create/update methods + """ # noqa: E501 + platform: DeviceFactsOSFamily + enrollment_token: UUID + __properties: ClassVar[List[str]] = ["platform", "enrollment_token"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MDMConfigRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MDMConfigRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "platform": obj.get("platform"), + "enrollment_token": obj.get("enrollment_token") + }) + return _obj + + diff --git a/authentik_client/models/mdm_config_response.py b/authentik_client/models/mdm_config_response.py new file mode 100644 index 000000000..ee3cac03e --- /dev/null +++ b/authentik_client/models/mdm_config_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class MDMConfigResponse(BaseModel): + """ + Base serializer class which doesn't implement create/update methods + """ # noqa: E501 + config: StrictStr + mime_type: StrictStr + filename: StrictStr + __properties: ClassVar[List[str]] = ["config", "mime_type", "filename"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of MDMConfigResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of MDMConfigResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": obj.get("config"), + "mime_type": obj.get("mime_type"), + "filename": obj.get("filename") + }) + return _obj + + diff --git a/authentik_client/models/metadata.py b/authentik_client/models/metadata.py index 50a58f4ed..923b23533 100644 --- a/authentik_client/models/metadata.py +++ b/authentik_client/models/metadata.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/microsoft_entra_provider.py b/authentik_client/models/microsoft_entra_provider.py index 04b76bb79..53a8a140b 100644 --- a/authentik_client/models/microsoft_entra_provider.py +++ b/authentik_client/models/microsoft_entra_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from uuid import UUID from authentik_client.models.outgoing_sync_delete_action import OutgoingSyncDeleteAction from typing import Optional, Set @@ -34,8 +35,8 @@ class MicrosoftEntraProvider(BaseModel): property_mappings: Optional[List[UUID]] = None property_mappings_group: Optional[List[UUID]] = Field(default=None, description="Property mappings used for group creation/updating.") component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -46,8 +47,10 @@ class MicrosoftEntraProvider(BaseModel): filter_group: Optional[UUID] = None user_delete_action: Optional[OutgoingSyncDeleteAction] = None group_delete_action: Optional[OutgoingSyncDeleteAction] = None + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[StrictStr] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["pk", "name", "property_mappings", "property_mappings_group", "component", "assigned_backchannel_application_slug", "assigned_backchannel_application_name", "verbose_name", "verbose_name_plural", "meta_model_name", "client_id", "client_secret", "tenant_id", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "dry_run"] + __properties: ClassVar[List[str]] = ["pk", "name", "property_mappings", "property_mappings_group", "component", "assigned_backchannel_application_slug", "assigned_backchannel_application_name", "verbose_name", "verbose_name_plural", "meta_model_name", "client_id", "client_secret", "tenant_id", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -102,6 +105,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + # set to None if filter_group (nullable) is None # and model_fields_set contains the field if self.filter_group is None and "filter_group" in self.model_fields_set: @@ -136,6 +149,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "filter_group": obj.get("filter_group"), "user_delete_action": obj.get("user_delete_action"), "group_delete_action": obj.get("group_delete_action"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/microsoft_entra_provider_group.py b/authentik_client/models/microsoft_entra_provider_group.py index 0b8c643de..b52327c5d 100644 --- a/authentik_client/models/microsoft_entra_provider_group.py +++ b/authentik_client/models/microsoft_entra_provider_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/microsoft_entra_provider_group_request.py b/authentik_client/models/microsoft_entra_provider_group_request.py index 5e1567d14..add2668ff 100644 --- a/authentik_client/models/microsoft_entra_provider_group_request.py +++ b/authentik_client/models/microsoft_entra_provider_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/microsoft_entra_provider_mapping.py b/authentik_client/models/microsoft_entra_provider_mapping.py index 41e8e0f77..452c78ef6 100644 --- a/authentik_client/models/microsoft_entra_provider_mapping.py +++ b/authentik_client/models/microsoft_entra_provider_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/microsoft_entra_provider_mapping_request.py b/authentik_client/models/microsoft_entra_provider_mapping_request.py index 97ee37ca0..e775360e4 100644 --- a/authentik_client/models/microsoft_entra_provider_mapping_request.py +++ b/authentik_client/models/microsoft_entra_provider_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/microsoft_entra_provider_request.py b/authentik_client/models/microsoft_entra_provider_request.py index 266bacf48..b48efcbf5 100644 --- a/authentik_client/models/microsoft_entra_provider_request.py +++ b/authentik_client/models/microsoft_entra_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,8 +40,10 @@ class MicrosoftEntraProviderRequest(BaseModel): filter_group: Optional[UUID] = None user_delete_action: Optional[OutgoingSyncDeleteAction] = None group_delete_action: Optional[OutgoingSyncDeleteAction] = None + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "client_id", "client_secret", "tenant_id", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "dry_run"] + __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "client_id", "client_secret", "tenant_id", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -109,6 +111,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "filter_group": obj.get("filter_group"), "user_delete_action": obj.get("user_delete_action"), "group_delete_action": obj.get("group_delete_action"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/microsoft_entra_provider_user.py b/authentik_client/models/microsoft_entra_provider_user.py index 18232825c..a7c9ac493 100644 --- a/authentik_client/models/microsoft_entra_provider_user.py +++ b/authentik_client/models/microsoft_entra_provider_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/microsoft_entra_provider_user_request.py b/authentik_client/models/microsoft_entra_provider_user_request.py index 7887a6405..7733e0c68 100644 --- a/authentik_client/models/microsoft_entra_provider_user_request.py +++ b/authentik_client/models/microsoft_entra_provider_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/model_enum.py b/authentik_client/models/model_enum.py index 8153972e8..a866f52e3 100644 --- a/authentik_client/models/model_enum.py +++ b/authentik_client/models/model_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,6 +34,12 @@ class ModelEnum(str, Enum): AUTHENTIK_CORE_DOT_APPLICATIONENTITLEMENT = 'authentik_core.applicationentitlement' AUTHENTIK_CORE_DOT_TOKEN = 'authentik_core.token' AUTHENTIK_CRYPTO_DOT_CERTIFICATEKEYPAIR = 'authentik_crypto.certificatekeypair' + AUTHENTIK_ENDPOINTS_DOT_DEVICEUSERBINDING = 'authentik_endpoints.deviceuserbinding' + AUTHENTIK_ENDPOINTS_DOT_DEVICEACCESSGROUP = 'authentik_endpoints.deviceaccessgroup' + AUTHENTIK_ENDPOINTS_DOT_ENDPOINTSTAGE = 'authentik_endpoints.endpointstage' + AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT_DOT_AGENTCONNECTOR = 'authentik_endpoints_connectors_agent.agentconnector' + AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT_DOT_AGENTDEVICEUSERBINDING = 'authentik_endpoints_connectors_agent.agentdeviceuserbinding' + AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT_DOT_ENROLLMENTTOKEN = 'authentik_endpoints_connectors_agent.enrollmenttoken' AUTHENTIK_ENTERPRISE_DOT_LICENSE = 'authentik_enterprise.license' AUTHENTIK_EVENTS_DOT_EVENT = 'authentik_events.event' AUTHENTIK_EVENTS_DOT_NOTIFICATIONTRANSPORT = 'authentik_events.notificationtransport' @@ -132,6 +138,7 @@ class ModelEnum(str, Enum): AUTHENTIK_PROVIDERS_MICROSOFT_ENTRA_DOT_MICROSOFTENTRAPROVIDER = 'authentik_providers_microsoft_entra.microsoftentraprovider' AUTHENTIK_PROVIDERS_MICROSOFT_ENTRA_DOT_MICROSOFTENTRAPROVIDERMAPPING = 'authentik_providers_microsoft_entra.microsoftentraprovidermapping' AUTHENTIK_PROVIDERS_SSF_DOT_SSFPROVIDER = 'authentik_providers_ssf.ssfprovider' + AUTHENTIK_REPORTS_DOT_DATAEXPORT = 'authentik_reports.dataexport' AUTHENTIK_STAGES_AUTHENTICATOR_ENDPOINT_GDTC_DOT_AUTHENTICATORENDPOINTGDTCSTAGE = 'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage' AUTHENTIK_STAGES_MTLS_DOT_MUTUALTLSSTAGE = 'authentik_stages_mtls.mutualtlsstage' AUTHENTIK_STAGES_SOURCE_DOT_SOURCESTAGE = 'authentik_stages_source.sourcestage' diff --git a/authentik_client/models/model_request.py b/authentik_client/models/model_request.py index b04eafd0d..51f579489 100644 --- a/authentik_client/models/model_request.py +++ b/authentik_client/models/model_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/mutual_tls_stage.py b/authentik_client/models/mutual_tls_stage.py index e97d1aae9..2ff9f0ab1 100644 --- a/authentik_client/models/mutual_tls_stage.py +++ b/authentik_client/models/mutual_tls_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,7 @@ from uuid import UUID from authentik_client.models.cert_attribute_enum import CertAttributeEnum from authentik_client.models.flow_set import FlowSet -from authentik_client.models.mutual_tls_stage_mode_enum import MutualTLSStageModeEnum +from authentik_client.models.stage_mode_enum import StageModeEnum from authentik_client.models.user_attribute_enum import UserAttributeEnum from typing import Optional, Set from typing_extensions import Self @@ -38,8 +38,8 @@ class MutualTLSStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None - mode: MutualTLSStageModeEnum + flow_set: List[FlowSet] + mode: StageModeEnum certificate_authorities: Optional[List[UUID]] = Field(default=None, description="Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`.") cert_attribute: CertAttributeEnum user_attribute: UserAttributeEnum @@ -80,6 +80,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -87,6 +88,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/mutual_tls_stage_request.py b/authentik_client/models/mutual_tls_stage_request.py index ae9d8bf95..e75279158 100644 --- a/authentik_client/models/mutual_tls_stage_request.py +++ b/authentik_client/models/mutual_tls_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,7 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.cert_attribute_enum import CertAttributeEnum -from authentik_client.models.flow_set_request import FlowSetRequest -from authentik_client.models.mutual_tls_stage_mode_enum import MutualTLSStageModeEnum +from authentik_client.models.stage_mode_enum import StageModeEnum from authentik_client.models.user_attribute_enum import UserAttributeEnum from typing import Optional, Set from typing_extensions import Self @@ -34,12 +33,11 @@ class MutualTLSStageRequest(BaseModel): MutualTLSStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None - mode: MutualTLSStageModeEnum + mode: StageModeEnum certificate_authorities: Optional[List[UUID]] = Field(default=None, description="Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`.") cert_attribute: CertAttributeEnum user_attribute: UserAttributeEnum - __properties: ClassVar[List[str]] = ["name", "flow_set", "mode", "certificate_authorities", "cert_attribute", "user_attribute"] + __properties: ClassVar[List[str]] = ["name", "mode", "certificate_authorities", "cert_attribute", "user_attribute"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -100,7 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "mode": obj.get("mode"), "certificate_authorities": obj.get("certificate_authorities"), "cert_attribute": obj.get("cert_attribute"), diff --git a/authentik_client/models/native_logout_challenge.py b/authentik_client/models/native_logout_challenge.py index 722f45479..8e3081d49 100644 --- a/authentik_client/models/native_logout_challenge.py +++ b/authentik_client/models/native_logout_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/native_logout_challenge_response_request.py b/authentik_client/models/native_logout_challenge_response_request.py index f5b81c46c..1b5529270 100644 --- a/authentik_client/models/native_logout_challenge_response_request.py +++ b/authentik_client/models/native_logout_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/network.py b/authentik_client/models/network.py new file mode 100644 index 000000000..8519f6e06 --- /dev/null +++ b/authentik_client/models/network.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from authentik_client.models.network_interface import NetworkInterface +from typing import Optional, Set +from typing_extensions import Self + +class Network(BaseModel): + """ + Network + """ # noqa: E501 + hostname: StrictStr + firewall_enabled: Optional[StrictBool] = None + interfaces: List[NetworkInterface] + gateway: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["hostname", "firewall_enabled", "interfaces", "gateway"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Network from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in interfaces (list) + _items = [] + if self.interfaces: + for _item_interfaces in self.interfaces: + if _item_interfaces: + _items.append(_item_interfaces.to_dict()) + _dict['interfaces'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Network from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "firewall_enabled": obj.get("firewall_enabled"), + "interfaces": [NetworkInterface.from_dict(_item) for _item in obj["interfaces"]] if obj.get("interfaces") is not None else None, + "gateway": obj.get("gateway") + }) + return _obj + + diff --git a/authentik_client/models/network_binding_enum.py b/authentik_client/models/network_binding_enum.py index e8fccc876..fec633b39 100644 --- a/authentik_client/models/network_binding_enum.py +++ b/authentik_client/models/network_binding_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/network_interface.py b/authentik_client/models/network_interface.py new file mode 100644 index 000000000..40599d9e7 --- /dev/null +++ b/authentik_client/models/network_interface.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class NetworkInterface(BaseModel): + """ + NetworkInterface + """ # noqa: E501 + name: StrictStr + hardware_address: StrictStr + ip_addresses: Optional[List[StrictStr]] = None + dns_servers: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["name", "hardware_address", "ip_addresses", "dns_servers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkInterface from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkInterface from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "hardware_address": obj.get("hardware_address"), + "ip_addresses": obj.get("ip_addresses"), + "dns_servers": obj.get("dns_servers") + }) + return _obj + + diff --git a/authentik_client/models/network_interface_request.py b/authentik_client/models/network_interface_request.py new file mode 100644 index 000000000..d75e54115 --- /dev/null +++ b/authentik_client/models/network_interface_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class NetworkInterfaceRequest(BaseModel): + """ + NetworkInterfaceRequest + """ # noqa: E501 + name: Annotated[str, Field(min_length=1, strict=True)] + hardware_address: Annotated[str, Field(min_length=1, strict=True)] + ip_addresses: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = None + dns_servers: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = None + __properties: ClassVar[List[str]] = ["name", "hardware_address", "ip_addresses", "dns_servers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkInterfaceRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkInterfaceRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "hardware_address": obj.get("hardware_address"), + "ip_addresses": obj.get("ip_addresses"), + "dns_servers": obj.get("dns_servers") + }) + return _obj + + diff --git a/authentik_client/models/network_request.py b/authentik_client/models/network_request.py new file mode 100644 index 000000000..27fc0a11a --- /dev/null +++ b/authentik_client/models/network_request.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from authentik_client.models.network_interface_request import NetworkInterfaceRequest +from typing import Optional, Set +from typing_extensions import Self + +class NetworkRequest(BaseModel): + """ + NetworkRequest + """ # noqa: E501 + hostname: Annotated[str, Field(min_length=1, strict=True)] + firewall_enabled: Optional[StrictBool] = None + interfaces: List[NetworkInterfaceRequest] + gateway: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + __properties: ClassVar[List[str]] = ["hostname", "firewall_enabled", "interfaces", "gateway"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of NetworkRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in interfaces (list) + _items = [] + if self.interfaces: + for _item_interfaces in self.interfaces: + if _item_interfaces: + _items.append(_item_interfaces.to_dict()) + _dict['interfaces'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NetworkRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "hostname": obj.get("hostname"), + "firewall_enabled": obj.get("firewall_enabled"), + "interfaces": [NetworkInterfaceRequest.from_dict(_item) for _item in obj["interfaces"]] if obj.get("interfaces") is not None else None, + "gateway": obj.get("gateway") + }) + return _obj + + diff --git a/authentik_client/models/not_configured_action_enum.py b/authentik_client/models/not_configured_action_enum.py index e71096c89..11a8e2100 100644 --- a/authentik_client/models/not_configured_action_enum.py +++ b/authentik_client/models/not_configured_action_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/notification.py b/authentik_client/models/notification.py index fe198b3e8..3da1c3c75 100644 --- a/authentik_client/models/notification.py +++ b/authentik_client/models/notification.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,8 +19,9 @@ import json from datetime import datetime -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from uuid import UUID from authentik_client.models.event import Event from authentik_client.models.severity_enum import SeverityEnum @@ -34,10 +35,12 @@ class Notification(BaseModel): pk: UUID severity: SeverityEnum body: StrictStr + hyperlink: Optional[Annotated[str, Field(strict=True, max_length=4096)]] = None + hyperlink_label: Optional[StrictStr] = None created: datetime event: Optional[Event] = None seen: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["pk", "severity", "body", "created", "event", "seen"] + __properties: ClassVar[List[str]] = ["pk", "severity", "body", "hyperlink", "hyperlink_label", "created", "event", "seen"] model_config = ConfigDict( populate_by_name=True, @@ -89,6 +92,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of event if self.event: _dict['event'] = self.event.to_dict() + # set to None if hyperlink (nullable) is None + # and model_fields_set contains the field + if self.hyperlink is None and "hyperlink" in self.model_fields_set: + _dict['hyperlink'] = None + + # set to None if hyperlink_label (nullable) is None + # and model_fields_set contains the field + if self.hyperlink_label is None and "hyperlink_label" in self.model_fields_set: + _dict['hyperlink_label'] = None + return _dict @classmethod @@ -104,6 +117,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "pk": obj.get("pk"), "severity": obj.get("severity"), "body": obj.get("body"), + "hyperlink": obj.get("hyperlink"), + "hyperlink_label": obj.get("hyperlink_label"), "created": obj.get("created"), "event": Event.from_dict(obj["event"]) if obj.get("event") is not None else None, "seen": obj.get("seen") diff --git a/authentik_client/models/notification_request.py b/authentik_client/models/notification_request.py index db0bfce4a..e2309d231 100644 --- a/authentik_client/models/notification_request.py +++ b/authentik_client/models/notification_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from authentik_client.models.event_request import EventRequest from typing import Optional, Set from typing_extensions import Self @@ -28,9 +29,11 @@ class NotificationRequest(BaseModel): """ Notification Serializer """ # noqa: E501 + hyperlink: Optional[Annotated[str, Field(strict=True, max_length=4096)]] = None + hyperlink_label: Optional[StrictStr] = None event: Optional[EventRequest] = None seen: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["event", "seen"] + __properties: ClassVar[List[str]] = ["hyperlink", "hyperlink_label", "event", "seen"] model_config = ConfigDict( populate_by_name=True, @@ -74,6 +77,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of event if self.event: _dict['event'] = self.event.to_dict() + # set to None if hyperlink (nullable) is None + # and model_fields_set contains the field + if self.hyperlink is None and "hyperlink" in self.model_fields_set: + _dict['hyperlink'] = None + + # set to None if hyperlink_label (nullable) is None + # and model_fields_set contains the field + if self.hyperlink_label is None and "hyperlink_label" in self.model_fields_set: + _dict['hyperlink_label'] = None + return _dict @classmethod @@ -86,6 +99,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "hyperlink": obj.get("hyperlink"), + "hyperlink_label": obj.get("hyperlink_label"), "event": EventRequest.from_dict(obj["event"]) if obj.get("event") is not None else None, "seen": obj.get("seen") }) diff --git a/authentik_client/models/notification_rule.py b/authentik_client/models/notification_rule.py index ae6dd0a9c..32114813b 100644 --- a/authentik_client/models/notification_rule.py +++ b/authentik_client/models/notification_rule.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/notification_rule_request.py b/authentik_client/models/notification_rule_request.py index fb10d5072..9b4b87ddd 100644 --- a/authentik_client/models/notification_rule_request.py +++ b/authentik_client/models/notification_rule_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/notification_transport.py b/authentik_client/models/notification_transport.py index 6b1d98628..0deca2010 100644 --- a/authentik_client/models/notification_transport.py +++ b/authentik_client/models/notification_transport.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/notification_transport_mode_enum.py b/authentik_client/models/notification_transport_mode_enum.py index c642d4b1e..49f7b12c8 100644 --- a/authentik_client/models/notification_transport_mode_enum.py +++ b/authentik_client/models/notification_transport_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/notification_transport_request.py b/authentik_client/models/notification_transport_request.py index 23f03456f..d71b7dc25 100644 --- a/authentik_client/models/notification_transport_request.py +++ b/authentik_client/models/notification_transport_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/notification_transport_test.py b/authentik_client/models/notification_transport_test.py index 35d043aaf..3fd1c4d24 100644 --- a/authentik_client/models/notification_transport_test.py +++ b/authentik_client/models/notification_transport_test.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/notification_webhook_mapping.py b/authentik_client/models/notification_webhook_mapping.py index f77f16fa3..814a33b50 100644 --- a/authentik_client/models/notification_webhook_mapping.py +++ b/authentik_client/models/notification_webhook_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/notification_webhook_mapping_request.py b/authentik_client/models/notification_webhook_mapping_request.py index 1cd506c5c..3bf1246f4 100644 --- a/authentik_client/models/notification_webhook_mapping_request.py +++ b/authentik_client/models/notification_webhook_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth2_provider.py b/authentik_client/models/o_auth2_provider.py index b7a596942..6b344bc57 100644 --- a/authentik_client/models/o_auth2_provider.py +++ b/authentik_client/models/o_auth2_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,10 +41,10 @@ class OAuth2Provider(BaseModel): invalidation_flow: UUID = Field(description="Flow used ending the session from a provider.") property_mappings: Optional[List[UUID]] = None component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_application_name: StrictStr = Field(description="Application's display Name.") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_application_name: Optional[StrictStr] = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -136,6 +136,26 @@ def to_dict(self) -> Dict[str, Any]: if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: _dict['authentication_flow'] = None + # set to None if assigned_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_slug is None and "assigned_application_slug" in self.model_fields_set: + _dict['assigned_application_slug'] = None + + # set to None if assigned_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_name is None and "assigned_application_name" in self.model_fields_set: + _dict['assigned_application_name'] = None + + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + # set to None if signing_key (nullable) is None # and model_fields_set contains the field if self.signing_key is None and "signing_key" in self.model_fields_set: diff --git a/authentik_client/models/o_auth2_provider_logout_method_enum.py b/authentik_client/models/o_auth2_provider_logout_method_enum.py index 33e8eb0f1..dc1d791ca 100644 --- a/authentik_client/models/o_auth2_provider_logout_method_enum.py +++ b/authentik_client/models/o_auth2_provider_logout_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth2_provider_request.py b/authentik_client/models/o_auth2_provider_request.py index 15a849b25..2b618781e 100644 --- a/authentik_client/models/o_auth2_provider_request.py +++ b/authentik_client/models/o_auth2_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth2_provider_setup_urls.py b/authentik_client/models/o_auth2_provider_setup_urls.py index d911b8bab..3b3ec87ae 100644 --- a/authentik_client/models/o_auth2_provider_setup_urls.py +++ b/authentik_client/models/o_auth2_provider_setup_urls.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth_device_code_challenge.py b/authentik_client/models/o_auth_device_code_challenge.py index 1a26daa55..bea471f6c 100644 --- a/authentik_client/models/o_auth_device_code_challenge.py +++ b/authentik_client/models/o_auth_device_code_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth_device_code_challenge_response_request.py b/authentik_client/models/o_auth_device_code_challenge_response_request.py index d02628fad..ed90fbf19 100644 --- a/authentik_client/models/o_auth_device_code_challenge_response_request.py +++ b/authentik_client/models/o_auth_device_code_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth_device_code_finish_challenge.py b/authentik_client/models/o_auth_device_code_finish_challenge.py index 68c722bdb..5382cb33c 100644 --- a/authentik_client/models/o_auth_device_code_finish_challenge.py +++ b/authentik_client/models/o_auth_device_code_finish_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth_device_code_finish_challenge_response_request.py b/authentik_client/models/o_auth_device_code_finish_challenge_response_request.py index 534280198..6ee2eb94a 100644 --- a/authentik_client/models/o_auth_device_code_finish_challenge_response_request.py +++ b/authentik_client/models/o_auth_device_code_finish_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth_source.py b/authentik_client/models/o_auth_source.py index 8ee270eb4..2c84531ae 100644 --- a/authentik_client/models/o_auth_source.py +++ b/authentik_client/models/o_auth_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,9 +24,11 @@ from uuid import UUID from authentik_client.models.authorization_code_auth_method_enum import AuthorizationCodeAuthMethodEnum from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum +from authentik_client.models.pkce_method_enum import PKCEMethodEnum from authentik_client.models.policy_engine_mode import PolicyEngineMode from authentik_client.models.provider_type_enum import ProviderTypeEnum from authentik_client.models.source_type import SourceType +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -37,8 +39,9 @@ class OAuthSource(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Source's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -51,13 +54,16 @@ class OAuthSource(BaseModel): user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") managed: Optional[StrictStr] = Field(description="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.") user_path_template: Optional[StrictStr] = None - icon: Optional[StrictStr] + icon: Optional[StrictStr] = None + icon_url: Optional[StrictStr] + icon_themed_urls: Optional[ThemedUrls] group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") provider_type: ProviderTypeEnum request_token_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used to request the initial token. This URL is only required for OAuth 1.") authorization_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL the user is redirect to to conest the flow.") access_token_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used by authentik to retrieve tokens.") profile_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used by authentik to get user information.") + pkce: Optional[PKCEMethodEnum] = None consumer_key: StrictStr callback_url: StrictStr = Field(description="Get OAuth Callback URL") additional_scopes: Optional[StrictStr] = None @@ -66,7 +72,7 @@ class OAuthSource(BaseModel): oidc_jwks_url: Optional[StrictStr] = None oidc_jwks: Optional[Dict[str, Any]] = None authorization_code_auth_method: Optional[AuthorizationCodeAuthMethodEnum] = Field(default=None, description="How to perform authentication during an authorization_code token request flow") - __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "group_matching_mode", "provider_type", "request_token_url", "authorization_url", "access_token_url", "profile_url", "consumer_key", "callback_url", "additional_scopes", "type", "oidc_well_known_url", "oidc_jwks_url", "oidc_jwks", "authorization_code_auth_method"] + __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "icon_url", "icon_themed_urls", "group_matching_mode", "provider_type", "request_token_url", "authorization_url", "access_token_url", "profile_url", "pkce", "consumer_key", "callback_url", "additional_scopes", "type", "oidc_well_known_url", "oidc_jwks_url", "oidc_jwks", "authorization_code_auth_method"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -114,6 +120,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -122,7 +129,8 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name_plural", "meta_model_name", "managed", - "icon", + "icon_url", + "icon_themed_urls", "callback_url", "type", ]) @@ -132,6 +140,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of icon_themed_urls + if self.icon_themed_urls: + _dict['icon_themed_urls'] = self.icon_themed_urls.to_dict() # override the default output from pydantic by calling `to_dict()` of type if self.type: _dict['type'] = self.type.to_dict() @@ -150,10 +161,15 @@ def to_dict(self) -> Dict[str, Any]: if self.managed is None and "managed" in self.model_fields_set: _dict['managed'] = None - # set to None if icon (nullable) is None + # set to None if icon_url (nullable) is None + # and model_fields_set contains the field + if self.icon_url is None and "icon_url" in self.model_fields_set: + _dict['icon_url'] = None + + # set to None if icon_themed_urls (nullable) is None # and model_fields_set contains the field - if self.icon is None and "icon" in self.model_fields_set: - _dict['icon'] = None + if self.icon_themed_urls is None and "icon_themed_urls" in self.model_fields_set: + _dict['icon_themed_urls'] = None # set to None if request_token_url (nullable) is None # and model_fields_set contains the field @@ -191,6 +207,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -204,12 +221,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "managed": obj.get("managed"), "user_path_template": obj.get("user_path_template"), "icon": obj.get("icon"), + "icon_url": obj.get("icon_url"), + "icon_themed_urls": ThemedUrls.from_dict(obj["icon_themed_urls"]) if obj.get("icon_themed_urls") is not None else None, "group_matching_mode": obj.get("group_matching_mode"), "provider_type": obj.get("provider_type"), "request_token_url": obj.get("request_token_url"), "authorization_url": obj.get("authorization_url"), "access_token_url": obj.get("access_token_url"), "profile_url": obj.get("profile_url"), + "pkce": obj.get("pkce"), "consumer_key": obj.get("consumer_key"), "callback_url": obj.get("callback_url"), "additional_scopes": obj.get("additional_scopes"), diff --git a/authentik_client/models/o_auth_source_property_mapping.py b/authentik_client/models/o_auth_source_property_mapping.py index 75587991c..3e074a1e5 100644 --- a/authentik_client/models/o_auth_source_property_mapping.py +++ b/authentik_client/models/o_auth_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth_source_property_mapping_request.py b/authentik_client/models/o_auth_source_property_mapping_request.py index a04ca6952..14afa7302 100644 --- a/authentik_client/models/o_auth_source_property_mapping_request.py +++ b/authentik_client/models/o_auth_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/o_auth_source_request.py b/authentik_client/models/o_auth_source_request.py index 12e995dd7..67bd85f3f 100644 --- a/authentik_client/models/o_auth_source_request.py +++ b/authentik_client/models/o_auth_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from uuid import UUID from authentik_client.models.authorization_code_auth_method_enum import AuthorizationCodeAuthMethodEnum from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum +from authentik_client.models.pkce_method_enum import PKCEMethodEnum from authentik_client.models.policy_engine_mode import PolicyEngineMode from authentik_client.models.provider_type_enum import ProviderTypeEnum from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum @@ -35,8 +36,9 @@ class OAuthSourceRequest(BaseModel): OAuth Source Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Source's display Name.") - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -44,12 +46,14 @@ class OAuthSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") provider_type: ProviderTypeEnum request_token_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used to request the initial token. This URL is only required for OAuth 1.") authorization_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL the user is redirect to to conest the flow.") access_token_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used by authentik to retrieve tokens.") profile_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used by authentik to get user information.") + pkce: Optional[PKCEMethodEnum] = None consumer_key: Annotated[str, Field(min_length=1, strict=True)] consumer_secret: Annotated[str, Field(min_length=1, strict=True)] additional_scopes: Optional[StrictStr] = None @@ -57,7 +61,7 @@ class OAuthSourceRequest(BaseModel): oidc_jwks_url: Optional[StrictStr] = None oidc_jwks: Optional[Dict[str, Any]] = None authorization_code_auth_method: Optional[AuthorizationCodeAuthMethodEnum] = Field(default=None, description="How to perform authentication during an authorization_code token request flow") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "group_matching_mode", "provider_type", "request_token_url", "authorization_url", "access_token_url", "profile_url", "consumer_key", "consumer_secret", "additional_scopes", "oidc_well_known_url", "oidc_jwks_url", "oidc_jwks", "authorization_code_auth_method"] + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "group_matching_mode", "provider_type", "request_token_url", "authorization_url", "access_token_url", "profile_url", "pkce", "consumer_key", "consumer_secret", "additional_scopes", "oidc_well_known_url", "oidc_jwks_url", "oidc_jwks", "authorization_code_auth_method"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -150,6 +154,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -157,12 +162,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "group_matching_mode": obj.get("group_matching_mode"), "provider_type": obj.get("provider_type"), "request_token_url": obj.get("request_token_url"), "authorization_url": obj.get("authorization_url"), "access_token_url": obj.get("access_token_url"), "profile_url": obj.get("profile_url"), + "pkce": obj.get("pkce"), "consumer_key": obj.get("consumer_key"), "consumer_secret": obj.get("consumer_secret"), "additional_scopes": obj.get("additional_scopes"), diff --git a/authentik_client/models/open_id_connect_configuration.py b/authentik_client/models/open_id_connect_configuration.py index 83e7223a2..f273d6e55 100644 --- a/authentik_client/models/open_id_connect_configuration.py +++ b/authentik_client/models/open_id_connect_configuration.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/operating_system.py b/authentik_client/models/operating_system.py new file mode 100644 index 000000000..0a21aaec5 --- /dev/null +++ b/authentik_client/models/operating_system.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from authentik_client.models.device_facts_os_family import DeviceFactsOSFamily +from typing import Optional, Set +from typing_extensions import Self + +class OperatingSystem(BaseModel): + """ + OperatingSystem + """ # noqa: E501 + family: DeviceFactsOSFamily + name: Optional[StrictStr] = None + version: Optional[StrictStr] = None + arch: StrictStr + __properties: ClassVar[List[str]] = ["family", "name", "version", "arch"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OperatingSystem from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OperatingSystem from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "family": obj.get("family"), + "name": obj.get("name"), + "version": obj.get("version"), + "arch": obj.get("arch") + }) + return _obj + + diff --git a/authentik_client/models/operating_system_request.py b/authentik_client/models/operating_system_request.py new file mode 100644 index 000000000..cbf4583d5 --- /dev/null +++ b/authentik_client/models/operating_system_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from authentik_client.models.device_facts_os_family import DeviceFactsOSFamily +from typing import Optional, Set +from typing_extensions import Self + +class OperatingSystemRequest(BaseModel): + """ + OperatingSystemRequest + """ # noqa: E501 + family: DeviceFactsOSFamily + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + version: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + arch: Annotated[str, Field(min_length=1, strict=True)] + __properties: ClassVar[List[str]] = ["family", "name", "version", "arch"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of OperatingSystemRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OperatingSystemRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "family": obj.get("family"), + "name": obj.get("name"), + "version": obj.get("version"), + "arch": obj.get("arch") + }) + return _obj + + diff --git a/authentik_client/models/outgoing_sync_delete_action.py b/authentik_client/models/outgoing_sync_delete_action.py index a89e7c8f1..e22734a56 100644 --- a/authentik_client/models/outgoing_sync_delete_action.py +++ b/authentik_client/models/outgoing_sync_delete_action.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/outpost.py b/authentik_client/models/outpost.py index 4d526e3ce..394be5e30 100644 --- a/authentik_client/models/outpost.py +++ b/authentik_client/models/outpost.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ class Outpost(BaseModel): providers: List[StrictInt] providers_obj: List[Provider] service_connection: Optional[UUID] = Field(default=None, description="Select Service-Connection authentik should use to manage this outpost. Leave empty if authentik should not handle the deployment.") - service_connection_obj: ServiceConnection + service_connection_obj: Optional[ServiceConnection] refresh_interval_s: StrictInt token_identifier: StrictStr = Field(description="Get Token identifier") config: Dict[str, Any] @@ -108,6 +108,11 @@ def to_dict(self) -> Dict[str, Any]: if self.service_connection is None and "service_connection" in self.model_fields_set: _dict['service_connection'] = None + # set to None if service_connection_obj (nullable) is None + # and model_fields_set contains the field + if self.service_connection_obj is None and "service_connection_obj" in self.model_fields_set: + _dict['service_connection_obj'] = None + # set to None if managed (nullable) is None # and model_fields_set contains the field if self.managed is None and "managed" in self.model_fields_set: diff --git a/authentik_client/models/outpost_default_config.py b/authentik_client/models/outpost_default_config.py index 7abe03de2..98fe46216 100644 --- a/authentik_client/models/outpost_default_config.py +++ b/authentik_client/models/outpost_default_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/outpost_health.py b/authentik_client/models/outpost_health.py index 468181489..f20914c8e 100644 --- a/authentik_client/models/outpost_health.py +++ b/authentik_client/models/outpost_health.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/outpost_request.py b/authentik_client/models/outpost_request.py index e5582ae0b..01df95aa8 100644 --- a/authentik_client/models/outpost_request.py +++ b/authentik_client/models/outpost_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/outpost_type_enum.py b/authentik_client/models/outpost_type_enum.py index 0bb4735d1..6783a7439 100644 --- a/authentik_client/models/outpost_type_enum.py +++ b/authentik_client/models/outpost_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_assigned_object_permission_list.py b/authentik_client/models/paginated_agent_connector_list.py similarity index 82% rename from authentik_client/models/paginated_user_assigned_object_permission_list.py rename to authentik_client/models/paginated_agent_connector_list.py index bbd329914..c88971233 100644 --- a/authentik_client/models/paginated_user_assigned_object_permission_list.py +++ b/authentik_client/models/paginated_agent_connector_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,17 +20,17 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List +from authentik_client.models.agent_connector import AgentConnector from authentik_client.models.pagination import Pagination -from authentik_client.models.user_assigned_object_permission import UserAssignedObjectPermission from typing import Optional, Set from typing_extensions import Self -class PaginatedUserAssignedObjectPermissionList(BaseModel): +class PaginatedAgentConnectorList(BaseModel): """ - PaginatedUserAssignedObjectPermissionList + PaginatedAgentConnectorList """ # noqa: E501 pagination: Pagination - results: List[UserAssignedObjectPermission] + results: List[AgentConnector] autocomplete: Dict[str, Any] __properties: ClassVar[List[str]] = ["pagination", "results", "autocomplete"] @@ -52,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PaginatedUserAssignedObjectPermissionList from a JSON string""" + """Create an instance of PaginatedAgentConnectorList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -87,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PaginatedUserAssignedObjectPermissionList from a dict""" + """Create an instance of PaginatedAgentConnectorList from a dict""" if obj is None: return None @@ -96,7 +96,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, - "results": [UserAssignedObjectPermission.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "results": [AgentConnector.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, "autocomplete": obj.get("autocomplete") }) return _obj diff --git a/authentik_client/models/paginated_application_entitlement_list.py b/authentik_client/models/paginated_application_entitlement_list.py index 63cb0ec56..b3e54aa74 100644 --- a/authentik_client/models/paginated_application_entitlement_list.py +++ b/authentik_client/models/paginated_application_entitlement_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_application_list.py b/authentik_client/models/paginated_application_list.py index 9ebad1e34..70dd66760 100644 --- a/authentik_client/models/paginated_application_list.py +++ b/authentik_client/models/paginated_application_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticated_session_list.py b/authentik_client/models/paginated_authenticated_session_list.py index a42963b13..396b472a1 100644 --- a/authentik_client/models/paginated_authenticated_session_list.py +++ b/authentik_client/models/paginated_authenticated_session_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticator_duo_stage_list.py b/authentik_client/models/paginated_authenticator_duo_stage_list.py index 1cb542bcc..24a6c8697 100644 --- a/authentik_client/models/paginated_authenticator_duo_stage_list.py +++ b/authentik_client/models/paginated_authenticator_duo_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticator_email_stage_list.py b/authentik_client/models/paginated_authenticator_email_stage_list.py index f75c8ae94..b91ac85c0 100644 --- a/authentik_client/models/paginated_authenticator_email_stage_list.py +++ b/authentik_client/models/paginated_authenticator_email_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticator_endpoint_gdtc_stage_list.py b/authentik_client/models/paginated_authenticator_endpoint_gdtc_stage_list.py index 3cf25bec9..0038beb59 100644 --- a/authentik_client/models/paginated_authenticator_endpoint_gdtc_stage_list.py +++ b/authentik_client/models/paginated_authenticator_endpoint_gdtc_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticator_sms_stage_list.py b/authentik_client/models/paginated_authenticator_sms_stage_list.py index 4f9d00aa8..4262fc61a 100644 --- a/authentik_client/models/paginated_authenticator_sms_stage_list.py +++ b/authentik_client/models/paginated_authenticator_sms_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticator_static_stage_list.py b/authentik_client/models/paginated_authenticator_static_stage_list.py index 38c90934e..5242d77ef 100644 --- a/authentik_client/models/paginated_authenticator_static_stage_list.py +++ b/authentik_client/models/paginated_authenticator_static_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticator_totp_stage_list.py b/authentik_client/models/paginated_authenticator_totp_stage_list.py index 791151e71..076aa1444 100644 --- a/authentik_client/models/paginated_authenticator_totp_stage_list.py +++ b/authentik_client/models/paginated_authenticator_totp_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticator_validate_stage_list.py b/authentik_client/models/paginated_authenticator_validate_stage_list.py index da5576ff9..dd0630032 100644 --- a/authentik_client/models/paginated_authenticator_validate_stage_list.py +++ b/authentik_client/models/paginated_authenticator_validate_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_authenticator_web_authn_stage_list.py b/authentik_client/models/paginated_authenticator_web_authn_stage_list.py index 2b66d9723..e5395b2d4 100644 --- a/authentik_client/models/paginated_authenticator_web_authn_stage_list.py +++ b/authentik_client/models/paginated_authenticator_web_authn_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_blueprint_instance_list.py b/authentik_client/models/paginated_blueprint_instance_list.py index 426b4cc34..c7f7bf47f 100644 --- a/authentik_client/models/paginated_blueprint_instance_list.py +++ b/authentik_client/models/paginated_blueprint_instance_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_brand_list.py b/authentik_client/models/paginated_brand_list.py index 96eb57c33..b4060f0e6 100644 --- a/authentik_client/models/paginated_brand_list.py +++ b/authentik_client/models/paginated_brand_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_captcha_stage_list.py b/authentik_client/models/paginated_captcha_stage_list.py index e448e48b8..9e72c14eb 100644 --- a/authentik_client/models/paginated_captcha_stage_list.py +++ b/authentik_client/models/paginated_captcha_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_certificate_key_pair_list.py b/authentik_client/models/paginated_certificate_key_pair_list.py index 770cf954d..59a608f52 100644 --- a/authentik_client/models/paginated_certificate_key_pair_list.py +++ b/authentik_client/models/paginated_certificate_key_pair_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_connection_token_list.py b/authentik_client/models/paginated_connection_token_list.py index e68074dcc..3f3094478 100644 --- a/authentik_client/models/paginated_connection_token_list.py +++ b/authentik_client/models/paginated_connection_token_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_extra_user_object_permission_list.py b/authentik_client/models/paginated_connector_list.py similarity index 82% rename from authentik_client/models/paginated_extra_user_object_permission_list.py rename to authentik_client/models/paginated_connector_list.py index f3afca547..ecd7910d0 100644 --- a/authentik_client/models/paginated_extra_user_object_permission_list.py +++ b/authentik_client/models/paginated_connector_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,18 +20,19 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission +from authentik_client.models.connector import Connector from authentik_client.models.pagination import Pagination from typing import Optional, Set from typing_extensions import Self -class PaginatedExtraUserObjectPermissionList(BaseModel): +class PaginatedConnectorList(BaseModel): """ - PaginatedExtraUserObjectPermissionList + PaginatedConnectorList """ # noqa: E501 pagination: Pagination - results: List[ExtraUserObjectPermission] - __properties: ClassVar[List[str]] = ["pagination", "results"] + results: List[Connector] + autocomplete: Dict[str, Any] + __properties: ClassVar[List[str]] = ["pagination", "results", "autocomplete"] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PaginatedExtraUserObjectPermissionList from a JSON string""" + """Create an instance of PaginatedConnectorList from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -86,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PaginatedExtraUserObjectPermissionList from a dict""" + """Create an instance of PaginatedConnectorList from a dict""" if obj is None: return None @@ -95,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, - "results": [ExtraUserObjectPermission.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None + "results": [Connector.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "autocomplete": obj.get("autocomplete") }) return _obj diff --git a/authentik_client/models/paginated_consent_stage_list.py b/authentik_client/models/paginated_consent_stage_list.py index f3235a797..67254de17 100644 --- a/authentik_client/models/paginated_consent_stage_list.py +++ b/authentik_client/models/paginated_consent_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_data_export_list.py b/authentik_client/models/paginated_data_export_list.py new file mode 100644 index 000000000..f1ce3f88f --- /dev/null +++ b/authentik_client/models/paginated_data_export_list.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from authentik_client.models.data_export import DataExport +from authentik_client.models.pagination import Pagination +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedDataExportList(BaseModel): + """ + PaginatedDataExportList + """ # noqa: E501 + pagination: Pagination + results: List[DataExport] + autocomplete: Dict[str, Any] + __properties: ClassVar[List[str]] = ["pagination", "results", "autocomplete"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedDataExportList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pagination + if self.pagination: + _dict['pagination'] = self.pagination.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedDataExportList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, + "results": [DataExport.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "autocomplete": obj.get("autocomplete") + }) + return _obj + + diff --git a/authentik_client/models/paginated_deny_stage_list.py b/authentik_client/models/paginated_deny_stage_list.py index 653f0f1d9..cbefe8539 100644 --- a/authentik_client/models/paginated_deny_stage_list.py +++ b/authentik_client/models/paginated_deny_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_device_access_group_list.py b/authentik_client/models/paginated_device_access_group_list.py new file mode 100644 index 000000000..385d4911a --- /dev/null +++ b/authentik_client/models/paginated_device_access_group_list.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.models.pagination import Pagination +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedDeviceAccessGroupList(BaseModel): + """ + PaginatedDeviceAccessGroupList + """ # noqa: E501 + pagination: Pagination + results: List[DeviceAccessGroup] + autocomplete: Dict[str, Any] + __properties: ClassVar[List[str]] = ["pagination", "results", "autocomplete"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedDeviceAccessGroupList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pagination + if self.pagination: + _dict['pagination'] = self.pagination.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedDeviceAccessGroupList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, + "results": [DeviceAccessGroup.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "autocomplete": obj.get("autocomplete") + }) + return _obj + + diff --git a/authentik_client/models/paginated_device_user_binding_list.py b/authentik_client/models/paginated_device_user_binding_list.py new file mode 100644 index 000000000..eb66dee39 --- /dev/null +++ b/authentik_client/models/paginated_device_user_binding_list.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from authentik_client.models.device_user_binding import DeviceUserBinding +from authentik_client.models.pagination import Pagination +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedDeviceUserBindingList(BaseModel): + """ + PaginatedDeviceUserBindingList + """ # noqa: E501 + pagination: Pagination + results: List[DeviceUserBinding] + autocomplete: Dict[str, Any] + __properties: ClassVar[List[str]] = ["pagination", "results", "autocomplete"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedDeviceUserBindingList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pagination + if self.pagination: + _dict['pagination'] = self.pagination.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedDeviceUserBindingList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, + "results": [DeviceUserBinding.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "autocomplete": obj.get("autocomplete") + }) + return _obj + + diff --git a/authentik_client/models/paginated_docker_service_connection_list.py b/authentik_client/models/paginated_docker_service_connection_list.py index 4f43bee2b..1bf35e9b0 100644 --- a/authentik_client/models/paginated_docker_service_connection_list.py +++ b/authentik_client/models/paginated_docker_service_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_domain_list.py b/authentik_client/models/paginated_domain_list.py index e3ee07987..b575bda1a 100644 --- a/authentik_client/models/paginated_domain_list.py +++ b/authentik_client/models/paginated_domain_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_dummy_policy_list.py b/authentik_client/models/paginated_dummy_policy_list.py index a8f021b6e..3c71f5b4d 100644 --- a/authentik_client/models/paginated_dummy_policy_list.py +++ b/authentik_client/models/paginated_dummy_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_dummy_stage_list.py b/authentik_client/models/paginated_dummy_stage_list.py index be0a1cb30..703ab5ede 100644 --- a/authentik_client/models/paginated_dummy_stage_list.py +++ b/authentik_client/models/paginated_dummy_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_duo_device_list.py b/authentik_client/models/paginated_duo_device_list.py index 68dd4285d..1b652347c 100644 --- a/authentik_client/models/paginated_duo_device_list.py +++ b/authentik_client/models/paginated_duo_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_email_device_list.py b/authentik_client/models/paginated_email_device_list.py index 8acf12d0b..8c8e3d728 100644 --- a/authentik_client/models/paginated_email_device_list.py +++ b/authentik_client/models/paginated_email_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_email_stage_list.py b/authentik_client/models/paginated_email_stage_list.py index 16b3a4406..f0e5b8b72 100644 --- a/authentik_client/models/paginated_email_stage_list.py +++ b/authentik_client/models/paginated_email_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_endpoint_device_list.py b/authentik_client/models/paginated_endpoint_device_list.py index cbeffc718..1f5c4409d 100644 --- a/authentik_client/models/paginated_endpoint_device_list.py +++ b/authentik_client/models/paginated_endpoint_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_endpoint_list.py b/authentik_client/models/paginated_endpoint_list.py index ffcfe9263..9d7ac3b10 100644 --- a/authentik_client/models/paginated_endpoint_list.py +++ b/authentik_client/models/paginated_endpoint_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_endpoint_stage_list.py b/authentik_client/models/paginated_endpoint_stage_list.py new file mode 100644 index 000000000..9e5b48523 --- /dev/null +++ b/authentik_client/models/paginated_endpoint_stage_list.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from authentik_client.models.endpoint_stage import EndpointStage +from authentik_client.models.pagination import Pagination +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedEndpointStageList(BaseModel): + """ + PaginatedEndpointStageList + """ # noqa: E501 + pagination: Pagination + results: List[EndpointStage] + autocomplete: Dict[str, Any] + __properties: ClassVar[List[str]] = ["pagination", "results", "autocomplete"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedEndpointStageList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pagination + if self.pagination: + _dict['pagination'] = self.pagination.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedEndpointStageList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, + "results": [EndpointStage.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "autocomplete": obj.get("autocomplete") + }) + return _obj + + diff --git a/authentik_client/models/paginated_enrollment_token_list.py b/authentik_client/models/paginated_enrollment_token_list.py new file mode 100644 index 000000000..fbed612d6 --- /dev/null +++ b/authentik_client/models/paginated_enrollment_token_list.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from authentik_client.models.enrollment_token import EnrollmentToken +from authentik_client.models.pagination import Pagination +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedEnrollmentTokenList(BaseModel): + """ + PaginatedEnrollmentTokenList + """ # noqa: E501 + pagination: Pagination + results: List[EnrollmentToken] + autocomplete: Dict[str, Any] + __properties: ClassVar[List[str]] = ["pagination", "results", "autocomplete"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedEnrollmentTokenList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pagination + if self.pagination: + _dict['pagination'] = self.pagination.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedEnrollmentTokenList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, + "results": [EnrollmentToken.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "autocomplete": obj.get("autocomplete") + }) + return _obj + + diff --git a/authentik_client/models/paginated_event_list.py b/authentik_client/models/paginated_event_list.py index 6f46d73a3..b993d6409 100644 --- a/authentik_client/models/paginated_event_list.py +++ b/authentik_client/models/paginated_event_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_event_matcher_policy_list.py b/authentik_client/models/paginated_event_matcher_policy_list.py index 093162103..51d07bc3a 100644 --- a/authentik_client/models/paginated_event_matcher_policy_list.py +++ b/authentik_client/models/paginated_event_matcher_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_expiring_base_grant_model_list.py b/authentik_client/models/paginated_expiring_base_grant_model_list.py index 9530174a4..00b74ee46 100644 --- a/authentik_client/models/paginated_expiring_base_grant_model_list.py +++ b/authentik_client/models/paginated_expiring_base_grant_model_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_expression_policy_list.py b/authentik_client/models/paginated_expression_policy_list.py index fbfbc0b74..62601121f 100644 --- a/authentik_client/models/paginated_expression_policy_list.py +++ b/authentik_client/models/paginated_expression_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_extra_role_object_permission_list.py b/authentik_client/models/paginated_extra_role_object_permission_list.py index f27d67d3a..fc8835293 100644 --- a/authentik_client/models/paginated_extra_role_object_permission_list.py +++ b/authentik_client/models/paginated_extra_role_object_permission_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_flow_list.py b/authentik_client/models/paginated_flow_list.py index 2e1753566..4ac9161c1 100644 --- a/authentik_client/models/paginated_flow_list.py +++ b/authentik_client/models/paginated_flow_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_flow_stage_binding_list.py b/authentik_client/models/paginated_flow_stage_binding_list.py index d64c6ab5e..a9aa7735f 100644 --- a/authentik_client/models/paginated_flow_stage_binding_list.py +++ b/authentik_client/models/paginated_flow_stage_binding_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_geo_ip_policy_list.py b/authentik_client/models/paginated_geo_ip_policy_list.py index 1c2b03016..ef57aac92 100644 --- a/authentik_client/models/paginated_geo_ip_policy_list.py +++ b/authentik_client/models/paginated_geo_ip_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_google_endpoint_device_list.py b/authentik_client/models/paginated_google_endpoint_device_list.py new file mode 100644 index 000000000..6d9c08bef --- /dev/null +++ b/authentik_client/models/paginated_google_endpoint_device_list.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice +from authentik_client.models.pagination import Pagination +from typing import Optional, Set +from typing_extensions import Self + +class PaginatedGoogleEndpointDeviceList(BaseModel): + """ + PaginatedGoogleEndpointDeviceList + """ # noqa: E501 + pagination: Pagination + results: List[GoogleEndpointDevice] + autocomplete: Dict[str, Any] + __properties: ClassVar[List[str]] = ["pagination", "results", "autocomplete"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaginatedGoogleEndpointDeviceList from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of pagination + if self.pagination: + _dict['pagination'] = self.pagination.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PaginatedGoogleEndpointDeviceList from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None, + "results": [GoogleEndpointDevice.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None, + "autocomplete": obj.get("autocomplete") + }) + return _obj + + diff --git a/authentik_client/models/paginated_google_workspace_provider_group_list.py b/authentik_client/models/paginated_google_workspace_provider_group_list.py index 9298a159a..e90b812b7 100644 --- a/authentik_client/models/paginated_google_workspace_provider_group_list.py +++ b/authentik_client/models/paginated_google_workspace_provider_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_google_workspace_provider_list.py b/authentik_client/models/paginated_google_workspace_provider_list.py index bd0190429..82b878575 100644 --- a/authentik_client/models/paginated_google_workspace_provider_list.py +++ b/authentik_client/models/paginated_google_workspace_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_google_workspace_provider_mapping_list.py b/authentik_client/models/paginated_google_workspace_provider_mapping_list.py index b2d4b0eb7..fec9f4871 100644 --- a/authentik_client/models/paginated_google_workspace_provider_mapping_list.py +++ b/authentik_client/models/paginated_google_workspace_provider_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_google_workspace_provider_user_list.py b/authentik_client/models/paginated_google_workspace_provider_user_list.py index 0564d1b5e..21ea3aa04 100644 --- a/authentik_client/models/paginated_google_workspace_provider_user_list.py +++ b/authentik_client/models/paginated_google_workspace_provider_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_group_kerberos_source_connection_list.py b/authentik_client/models/paginated_group_kerberos_source_connection_list.py index 788162772..42f277eea 100644 --- a/authentik_client/models/paginated_group_kerberos_source_connection_list.py +++ b/authentik_client/models/paginated_group_kerberos_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_group_ldap_source_connection_list.py b/authentik_client/models/paginated_group_ldap_source_connection_list.py index 58883954d..7a0c04ce7 100644 --- a/authentik_client/models/paginated_group_ldap_source_connection_list.py +++ b/authentik_client/models/paginated_group_ldap_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_group_list.py b/authentik_client/models/paginated_group_list.py index c978bd2d2..83d48e5de 100644 --- a/authentik_client/models/paginated_group_list.py +++ b/authentik_client/models/paginated_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_group_o_auth_source_connection_list.py b/authentik_client/models/paginated_group_o_auth_source_connection_list.py index 32a1e1189..4eec6e67d 100644 --- a/authentik_client/models/paginated_group_o_auth_source_connection_list.py +++ b/authentik_client/models/paginated_group_o_auth_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_group_plex_source_connection_list.py b/authentik_client/models/paginated_group_plex_source_connection_list.py index c89b88118..8674b1ede 100644 --- a/authentik_client/models/paginated_group_plex_source_connection_list.py +++ b/authentik_client/models/paginated_group_plex_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_group_saml_source_connection_list.py b/authentik_client/models/paginated_group_saml_source_connection_list.py index 8becdd91a..4910a26da 100644 --- a/authentik_client/models/paginated_group_saml_source_connection_list.py +++ b/authentik_client/models/paginated_group_saml_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_group_source_connection_list.py b/authentik_client/models/paginated_group_source_connection_list.py index 663f578f9..f0d16fe3f 100644 --- a/authentik_client/models/paginated_group_source_connection_list.py +++ b/authentik_client/models/paginated_group_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_group_telegram_source_connection_list.py b/authentik_client/models/paginated_group_telegram_source_connection_list.py index ad0885835..14878e031 100644 --- a/authentik_client/models/paginated_group_telegram_source_connection_list.py +++ b/authentik_client/models/paginated_group_telegram_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_identification_stage_list.py b/authentik_client/models/paginated_identification_stage_list.py index f2edb02f5..954e48220 100644 --- a/authentik_client/models/paginated_identification_stage_list.py +++ b/authentik_client/models/paginated_identification_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_initial_permissions_list.py b/authentik_client/models/paginated_initial_permissions_list.py index 5cd9c3c79..58a7843bc 100644 --- a/authentik_client/models/paginated_initial_permissions_list.py +++ b/authentik_client/models/paginated_initial_permissions_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_invitation_list.py b/authentik_client/models/paginated_invitation_list.py index de031d927..99f054ec9 100644 --- a/authentik_client/models/paginated_invitation_list.py +++ b/authentik_client/models/paginated_invitation_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_invitation_stage_list.py b/authentik_client/models/paginated_invitation_stage_list.py index b10b23c94..72f96ea5c 100644 --- a/authentik_client/models/paginated_invitation_stage_list.py +++ b/authentik_client/models/paginated_invitation_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_kerberos_source_list.py b/authentik_client/models/paginated_kerberos_source_list.py index 5a9199eeb..47a1aafbe 100644 --- a/authentik_client/models/paginated_kerberos_source_list.py +++ b/authentik_client/models/paginated_kerberos_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_kerberos_source_property_mapping_list.py b/authentik_client/models/paginated_kerberos_source_property_mapping_list.py index 6032661c7..d332cd900 100644 --- a/authentik_client/models/paginated_kerberos_source_property_mapping_list.py +++ b/authentik_client/models/paginated_kerberos_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_kubernetes_service_connection_list.py b/authentik_client/models/paginated_kubernetes_service_connection_list.py index 4fa8a9b7f..6aa75e083 100644 --- a/authentik_client/models/paginated_kubernetes_service_connection_list.py +++ b/authentik_client/models/paginated_kubernetes_service_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_ldap_outpost_config_list.py b/authentik_client/models/paginated_ldap_outpost_config_list.py index 6fe0586b9..eaac75dad 100644 --- a/authentik_client/models/paginated_ldap_outpost_config_list.py +++ b/authentik_client/models/paginated_ldap_outpost_config_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_ldap_provider_list.py b/authentik_client/models/paginated_ldap_provider_list.py index 8c732e07c..f1362ba38 100644 --- a/authentik_client/models/paginated_ldap_provider_list.py +++ b/authentik_client/models/paginated_ldap_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_ldap_source_list.py b/authentik_client/models/paginated_ldap_source_list.py index e53249757..2388efb30 100644 --- a/authentik_client/models/paginated_ldap_source_list.py +++ b/authentik_client/models/paginated_ldap_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_ldap_source_property_mapping_list.py b/authentik_client/models/paginated_ldap_source_property_mapping_list.py index a3ac422cf..9c413fe33 100644 --- a/authentik_client/models/paginated_ldap_source_property_mapping_list.py +++ b/authentik_client/models/paginated_ldap_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_license_list.py b/authentik_client/models/paginated_license_list.py index b67fe3e8e..009d1acdc 100644 --- a/authentik_client/models/paginated_license_list.py +++ b/authentik_client/models/paginated_license_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_microsoft_entra_provider_group_list.py b/authentik_client/models/paginated_microsoft_entra_provider_group_list.py index c964b25a9..a3b0f0f70 100644 --- a/authentik_client/models/paginated_microsoft_entra_provider_group_list.py +++ b/authentik_client/models/paginated_microsoft_entra_provider_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_microsoft_entra_provider_list.py b/authentik_client/models/paginated_microsoft_entra_provider_list.py index cd147e91e..83e8a3dc4 100644 --- a/authentik_client/models/paginated_microsoft_entra_provider_list.py +++ b/authentik_client/models/paginated_microsoft_entra_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_microsoft_entra_provider_mapping_list.py b/authentik_client/models/paginated_microsoft_entra_provider_mapping_list.py index 53b2c3ec6..8423a1145 100644 --- a/authentik_client/models/paginated_microsoft_entra_provider_mapping_list.py +++ b/authentik_client/models/paginated_microsoft_entra_provider_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_microsoft_entra_provider_user_list.py b/authentik_client/models/paginated_microsoft_entra_provider_user_list.py index bf006122d..beb2e555e 100644 --- a/authentik_client/models/paginated_microsoft_entra_provider_user_list.py +++ b/authentik_client/models/paginated_microsoft_entra_provider_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_mutual_tls_stage_list.py b/authentik_client/models/paginated_mutual_tls_stage_list.py index 2f3cacb00..2982aa0eb 100644 --- a/authentik_client/models/paginated_mutual_tls_stage_list.py +++ b/authentik_client/models/paginated_mutual_tls_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_notification_list.py b/authentik_client/models/paginated_notification_list.py index 1510cea28..023fd2114 100644 --- a/authentik_client/models/paginated_notification_list.py +++ b/authentik_client/models/paginated_notification_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_notification_rule_list.py b/authentik_client/models/paginated_notification_rule_list.py index 4cb401f8b..3219a4c04 100644 --- a/authentik_client/models/paginated_notification_rule_list.py +++ b/authentik_client/models/paginated_notification_rule_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_notification_transport_list.py b/authentik_client/models/paginated_notification_transport_list.py index e7785ff85..84785d51b 100644 --- a/authentik_client/models/paginated_notification_transport_list.py +++ b/authentik_client/models/paginated_notification_transport_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_notification_webhook_mapping_list.py b/authentik_client/models/paginated_notification_webhook_mapping_list.py index 951e59ccb..a58e41b10 100644 --- a/authentik_client/models/paginated_notification_webhook_mapping_list.py +++ b/authentik_client/models/paginated_notification_webhook_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_o_auth2_provider_list.py b/authentik_client/models/paginated_o_auth2_provider_list.py index ca37b3c9f..b057f1aa3 100644 --- a/authentik_client/models/paginated_o_auth2_provider_list.py +++ b/authentik_client/models/paginated_o_auth2_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_o_auth_source_list.py b/authentik_client/models/paginated_o_auth_source_list.py index fe023f93f..861341931 100644 --- a/authentik_client/models/paginated_o_auth_source_list.py +++ b/authentik_client/models/paginated_o_auth_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_o_auth_source_property_mapping_list.py b/authentik_client/models/paginated_o_auth_source_property_mapping_list.py index 9b367cdc3..54ecb1e58 100644 --- a/authentik_client/models/paginated_o_auth_source_property_mapping_list.py +++ b/authentik_client/models/paginated_o_auth_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_outpost_list.py b/authentik_client/models/paginated_outpost_list.py index 917a017ea..3f9b76f16 100644 --- a/authentik_client/models/paginated_outpost_list.py +++ b/authentik_client/models/paginated_outpost_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_password_expiry_policy_list.py b/authentik_client/models/paginated_password_expiry_policy_list.py index e1c2d7cd8..fc5dbdfb5 100644 --- a/authentik_client/models/paginated_password_expiry_policy_list.py +++ b/authentik_client/models/paginated_password_expiry_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_password_policy_list.py b/authentik_client/models/paginated_password_policy_list.py index 59889885c..db9797a56 100644 --- a/authentik_client/models/paginated_password_policy_list.py +++ b/authentik_client/models/paginated_password_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_password_stage_list.py b/authentik_client/models/paginated_password_stage_list.py index db56338ea..48de30592 100644 --- a/authentik_client/models/paginated_password_stage_list.py +++ b/authentik_client/models/paginated_password_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_permission_list.py b/authentik_client/models/paginated_permission_list.py index 473d0dc53..fb0460c3a 100644 --- a/authentik_client/models/paginated_permission_list.py +++ b/authentik_client/models/paginated_permission_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_plex_source_list.py b/authentik_client/models/paginated_plex_source_list.py index 35cc5076d..cf4927a5c 100644 --- a/authentik_client/models/paginated_plex_source_list.py +++ b/authentik_client/models/paginated_plex_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_plex_source_property_mapping_list.py b/authentik_client/models/paginated_plex_source_property_mapping_list.py index e198659bc..733152cfe 100644 --- a/authentik_client/models/paginated_plex_source_property_mapping_list.py +++ b/authentik_client/models/paginated_plex_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_policy_binding_list.py b/authentik_client/models/paginated_policy_binding_list.py index d9c719a2e..0453bde06 100644 --- a/authentik_client/models/paginated_policy_binding_list.py +++ b/authentik_client/models/paginated_policy_binding_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_policy_list.py b/authentik_client/models/paginated_policy_list.py index ff667904a..505b4db9d 100644 --- a/authentik_client/models/paginated_policy_list.py +++ b/authentik_client/models/paginated_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_prompt_list.py b/authentik_client/models/paginated_prompt_list.py index a4fe36fa0..2daac29eb 100644 --- a/authentik_client/models/paginated_prompt_list.py +++ b/authentik_client/models/paginated_prompt_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_prompt_stage_list.py b/authentik_client/models/paginated_prompt_stage_list.py index 0199c0987..7055a6ca3 100644 --- a/authentik_client/models/paginated_prompt_stage_list.py +++ b/authentik_client/models/paginated_prompt_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_property_mapping_list.py b/authentik_client/models/paginated_property_mapping_list.py index 01bc9d820..b580348c4 100644 --- a/authentik_client/models/paginated_property_mapping_list.py +++ b/authentik_client/models/paginated_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_provider_list.py b/authentik_client/models/paginated_provider_list.py index 67fdf0edc..c3ff2fc8f 100644 --- a/authentik_client/models/paginated_provider_list.py +++ b/authentik_client/models/paginated_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_proxy_outpost_config_list.py b/authentik_client/models/paginated_proxy_outpost_config_list.py index 719af106c..555cfb2c9 100644 --- a/authentik_client/models/paginated_proxy_outpost_config_list.py +++ b/authentik_client/models/paginated_proxy_outpost_config_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_proxy_provider_list.py b/authentik_client/models/paginated_proxy_provider_list.py index ee89be7f7..c17ceb5d2 100644 --- a/authentik_client/models/paginated_proxy_provider_list.py +++ b/authentik_client/models/paginated_proxy_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_rac_property_mapping_list.py b/authentik_client/models/paginated_rac_property_mapping_list.py index 270e41166..9b856a107 100644 --- a/authentik_client/models/paginated_rac_property_mapping_list.py +++ b/authentik_client/models/paginated_rac_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_rac_provider_list.py b/authentik_client/models/paginated_rac_provider_list.py index f6b9a4473..c71948ff0 100644 --- a/authentik_client/models/paginated_rac_provider_list.py +++ b/authentik_client/models/paginated_rac_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_radius_outpost_config_list.py b/authentik_client/models/paginated_radius_outpost_config_list.py index 462ec9eb4..f1a18d704 100644 --- a/authentik_client/models/paginated_radius_outpost_config_list.py +++ b/authentik_client/models/paginated_radius_outpost_config_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_radius_provider_list.py b/authentik_client/models/paginated_radius_provider_list.py index 489507ab2..11d6972ef 100644 --- a/authentik_client/models/paginated_radius_provider_list.py +++ b/authentik_client/models/paginated_radius_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_radius_provider_property_mapping_list.py b/authentik_client/models/paginated_radius_provider_property_mapping_list.py index 96b1d19be..a5dd7fe73 100644 --- a/authentik_client/models/paginated_radius_provider_property_mapping_list.py +++ b/authentik_client/models/paginated_radius_provider_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_redirect_stage_list.py b/authentik_client/models/paginated_redirect_stage_list.py index e7b435a5a..fdb98352d 100644 --- a/authentik_client/models/paginated_redirect_stage_list.py +++ b/authentik_client/models/paginated_redirect_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_reputation_list.py b/authentik_client/models/paginated_reputation_list.py index 0dee83afe..bb0cfc7b0 100644 --- a/authentik_client/models/paginated_reputation_list.py +++ b/authentik_client/models/paginated_reputation_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_reputation_policy_list.py b/authentik_client/models/paginated_reputation_policy_list.py index 784b9a5d8..30df8b7d6 100644 --- a/authentik_client/models/paginated_reputation_policy_list.py +++ b/authentik_client/models/paginated_reputation_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_role_assigned_object_permission_list.py b/authentik_client/models/paginated_role_assigned_object_permission_list.py index 7a174d201..a1a046ca2 100644 --- a/authentik_client/models/paginated_role_assigned_object_permission_list.py +++ b/authentik_client/models/paginated_role_assigned_object_permission_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_role_list.py b/authentik_client/models/paginated_role_list.py index 7dcf9fbb5..a87e5401b 100644 --- a/authentik_client/models/paginated_role_list.py +++ b/authentik_client/models/paginated_role_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_saml_property_mapping_list.py b/authentik_client/models/paginated_saml_property_mapping_list.py index c88e2e54b..0496bb2fc 100644 --- a/authentik_client/models/paginated_saml_property_mapping_list.py +++ b/authentik_client/models/paginated_saml_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_saml_provider_list.py b/authentik_client/models/paginated_saml_provider_list.py index eed4f656d..b895b907c 100644 --- a/authentik_client/models/paginated_saml_provider_list.py +++ b/authentik_client/models/paginated_saml_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_saml_source_list.py b/authentik_client/models/paginated_saml_source_list.py index 13cd313cc..6823bfd85 100644 --- a/authentik_client/models/paginated_saml_source_list.py +++ b/authentik_client/models/paginated_saml_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_saml_source_property_mapping_list.py b/authentik_client/models/paginated_saml_source_property_mapping_list.py index 81171337b..a459a1d5b 100644 --- a/authentik_client/models/paginated_saml_source_property_mapping_list.py +++ b/authentik_client/models/paginated_saml_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_schedule_list.py b/authentik_client/models/paginated_schedule_list.py index 4997ce1e4..4e540e298 100644 --- a/authentik_client/models/paginated_schedule_list.py +++ b/authentik_client/models/paginated_schedule_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scim_mapping_list.py b/authentik_client/models/paginated_scim_mapping_list.py index 1c98fddfb..fd1c3279b 100644 --- a/authentik_client/models/paginated_scim_mapping_list.py +++ b/authentik_client/models/paginated_scim_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scim_provider_group_list.py b/authentik_client/models/paginated_scim_provider_group_list.py index 0b6d10255..603bf81ea 100644 --- a/authentik_client/models/paginated_scim_provider_group_list.py +++ b/authentik_client/models/paginated_scim_provider_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scim_provider_list.py b/authentik_client/models/paginated_scim_provider_list.py index a017cd8d9..d9b855efe 100644 --- a/authentik_client/models/paginated_scim_provider_list.py +++ b/authentik_client/models/paginated_scim_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scim_provider_user_list.py b/authentik_client/models/paginated_scim_provider_user_list.py index b598c7fed..3cda7f00a 100644 --- a/authentik_client/models/paginated_scim_provider_user_list.py +++ b/authentik_client/models/paginated_scim_provider_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scim_source_group_list.py b/authentik_client/models/paginated_scim_source_group_list.py index 082c620de..93268a82e 100644 --- a/authentik_client/models/paginated_scim_source_group_list.py +++ b/authentik_client/models/paginated_scim_source_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scim_source_list.py b/authentik_client/models/paginated_scim_source_list.py index 7ea98cc5e..603825a50 100644 --- a/authentik_client/models/paginated_scim_source_list.py +++ b/authentik_client/models/paginated_scim_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scim_source_property_mapping_list.py b/authentik_client/models/paginated_scim_source_property_mapping_list.py index 4fe476bcb..801be532d 100644 --- a/authentik_client/models/paginated_scim_source_property_mapping_list.py +++ b/authentik_client/models/paginated_scim_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scim_source_user_list.py b/authentik_client/models/paginated_scim_source_user_list.py index a156f91ff..7a0fdf20e 100644 --- a/authentik_client/models/paginated_scim_source_user_list.py +++ b/authentik_client/models/paginated_scim_source_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_scope_mapping_list.py b/authentik_client/models/paginated_scope_mapping_list.py index 1c504e5af..eb67d7a0a 100644 --- a/authentik_client/models/paginated_scope_mapping_list.py +++ b/authentik_client/models/paginated_scope_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_service_connection_list.py b/authentik_client/models/paginated_service_connection_list.py index 5a320a4a2..b24133054 100644 --- a/authentik_client/models/paginated_service_connection_list.py +++ b/authentik_client/models/paginated_service_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_sms_device_list.py b/authentik_client/models/paginated_sms_device_list.py index a3ae585ba..344b5c83c 100644 --- a/authentik_client/models/paginated_sms_device_list.py +++ b/authentik_client/models/paginated_sms_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_source_list.py b/authentik_client/models/paginated_source_list.py index 62047b624..13454c56d 100644 --- a/authentik_client/models/paginated_source_list.py +++ b/authentik_client/models/paginated_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_source_stage_list.py b/authentik_client/models/paginated_source_stage_list.py index f27e31dd5..e29198f9c 100644 --- a/authentik_client/models/paginated_source_stage_list.py +++ b/authentik_client/models/paginated_source_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_ssf_provider_list.py b/authentik_client/models/paginated_ssf_provider_list.py index 0dd489c1e..a2c1307ea 100644 --- a/authentik_client/models/paginated_ssf_provider_list.py +++ b/authentik_client/models/paginated_ssf_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_ssf_stream_list.py b/authentik_client/models/paginated_ssf_stream_list.py index 0cd906cec..5b8adc75b 100644 --- a/authentik_client/models/paginated_ssf_stream_list.py +++ b/authentik_client/models/paginated_ssf_stream_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_stage_list.py b/authentik_client/models/paginated_stage_list.py index 971209be4..0ed2c16d1 100644 --- a/authentik_client/models/paginated_stage_list.py +++ b/authentik_client/models/paginated_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_static_device_list.py b/authentik_client/models/paginated_static_device_list.py index 0977fc27c..3fb9c02d6 100644 --- a/authentik_client/models/paginated_static_device_list.py +++ b/authentik_client/models/paginated_static_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_task_list.py b/authentik_client/models/paginated_task_list.py index e53acb4a6..794b9d16f 100644 --- a/authentik_client/models/paginated_task_list.py +++ b/authentik_client/models/paginated_task_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_telegram_source_list.py b/authentik_client/models/paginated_telegram_source_list.py index c32342f31..4cff7090b 100644 --- a/authentik_client/models/paginated_telegram_source_list.py +++ b/authentik_client/models/paginated_telegram_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_telegram_source_property_mapping_list.py b/authentik_client/models/paginated_telegram_source_property_mapping_list.py index 832a07068..4e9085a16 100644 --- a/authentik_client/models/paginated_telegram_source_property_mapping_list.py +++ b/authentik_client/models/paginated_telegram_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_tenant_list.py b/authentik_client/models/paginated_tenant_list.py index f41705348..2a898b72a 100644 --- a/authentik_client/models/paginated_tenant_list.py +++ b/authentik_client/models/paginated_tenant_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_token_list.py b/authentik_client/models/paginated_token_list.py index dc3298107..d195a0e12 100644 --- a/authentik_client/models/paginated_token_list.py +++ b/authentik_client/models/paginated_token_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_token_model_list.py b/authentik_client/models/paginated_token_model_list.py index 413759a22..bc056a1e1 100644 --- a/authentik_client/models/paginated_token_model_list.py +++ b/authentik_client/models/paginated_token_model_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_totp_device_list.py b/authentik_client/models/paginated_totp_device_list.py index f3a04b9e5..cd108a115 100644 --- a/authentik_client/models/paginated_totp_device_list.py +++ b/authentik_client/models/paginated_totp_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_unique_password_policy_list.py b/authentik_client/models/paginated_unique_password_policy_list.py index 3c6fcb07d..d929a7b44 100644 --- a/authentik_client/models/paginated_unique_password_policy_list.py +++ b/authentik_client/models/paginated_unique_password_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_consent_list.py b/authentik_client/models/paginated_user_consent_list.py index bc1ea1b17..54a462de2 100644 --- a/authentik_client/models/paginated_user_consent_list.py +++ b/authentik_client/models/paginated_user_consent_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_delete_stage_list.py b/authentik_client/models/paginated_user_delete_stage_list.py index cfb2f9bdd..49e881084 100644 --- a/authentik_client/models/paginated_user_delete_stage_list.py +++ b/authentik_client/models/paginated_user_delete_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_kerberos_source_connection_list.py b/authentik_client/models/paginated_user_kerberos_source_connection_list.py index d0184a998..27528b5e8 100644 --- a/authentik_client/models/paginated_user_kerberos_source_connection_list.py +++ b/authentik_client/models/paginated_user_kerberos_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_ldap_source_connection_list.py b/authentik_client/models/paginated_user_ldap_source_connection_list.py index fdb05cb55..a99ef99bb 100644 --- a/authentik_client/models/paginated_user_ldap_source_connection_list.py +++ b/authentik_client/models/paginated_user_ldap_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_list.py b/authentik_client/models/paginated_user_list.py index 9de5916d4..c11ad61c5 100644 --- a/authentik_client/models/paginated_user_list.py +++ b/authentik_client/models/paginated_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_login_stage_list.py b/authentik_client/models/paginated_user_login_stage_list.py index f746c6ab7..f7a6f8c4d 100644 --- a/authentik_client/models/paginated_user_login_stage_list.py +++ b/authentik_client/models/paginated_user_login_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_logout_stage_list.py b/authentik_client/models/paginated_user_logout_stage_list.py index f2055727d..8f546d408 100644 --- a/authentik_client/models/paginated_user_logout_stage_list.py +++ b/authentik_client/models/paginated_user_logout_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_o_auth_source_connection_list.py b/authentik_client/models/paginated_user_o_auth_source_connection_list.py index 4048537f3..139dc0969 100644 --- a/authentik_client/models/paginated_user_o_auth_source_connection_list.py +++ b/authentik_client/models/paginated_user_o_auth_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_plex_source_connection_list.py b/authentik_client/models/paginated_user_plex_source_connection_list.py index ff7fa2def..4c1240936 100644 --- a/authentik_client/models/paginated_user_plex_source_connection_list.py +++ b/authentik_client/models/paginated_user_plex_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_saml_source_connection_list.py b/authentik_client/models/paginated_user_saml_source_connection_list.py index 04b6c47bc..99d411e8e 100644 --- a/authentik_client/models/paginated_user_saml_source_connection_list.py +++ b/authentik_client/models/paginated_user_saml_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_source_connection_list.py b/authentik_client/models/paginated_user_source_connection_list.py index 7aafde7df..87827feff 100644 --- a/authentik_client/models/paginated_user_source_connection_list.py +++ b/authentik_client/models/paginated_user_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_telegram_source_connection_list.py b/authentik_client/models/paginated_user_telegram_source_connection_list.py index 3cf8f1c87..ef3da9224 100644 --- a/authentik_client/models/paginated_user_telegram_source_connection_list.py +++ b/authentik_client/models/paginated_user_telegram_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_user_write_stage_list.py b/authentik_client/models/paginated_user_write_stage_list.py index d9297b23d..143684b13 100644 --- a/authentik_client/models/paginated_user_write_stage_list.py +++ b/authentik_client/models/paginated_user_write_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_web_authn_device_list.py b/authentik_client/models/paginated_web_authn_device_list.py index 40a6353f3..0c430a5c5 100644 --- a/authentik_client/models/paginated_web_authn_device_list.py +++ b/authentik_client/models/paginated_web_authn_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/paginated_web_authn_device_type_list.py b/authentik_client/models/paginated_web_authn_device_type_list.py index f9c4382f2..2c82bd109 100644 --- a/authentik_client/models/paginated_web_authn_device_type_list.py +++ b/authentik_client/models/paginated_web_authn_device_type_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/pagination.py b/authentik_client/models/pagination.py index a94924702..0d59b4c3a 100644 --- a/authentik_client/models/pagination.py +++ b/authentik_client/models/pagination.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/partial_group.py b/authentik_client/models/partial_group.py index 6ae7cd242..6ada654cb 100644 --- a/authentik_client/models/partial_group.py +++ b/authentik_client/models/partial_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,10 +32,8 @@ class PartialGroup(BaseModel): num_pk: StrictInt = Field(description="Get a numerical, int32 ID for the group") name: StrictStr is_superuser: Optional[StrictBool] = Field(default=None, description="Users added to this group will be superusers.") - parent: Optional[UUID] = None - parent_name: Optional[StrictStr] attributes: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["pk", "num_pk", "name", "is_superuser", "parent", "parent_name", "attributes"] + __properties: ClassVar[List[str]] = ["pk", "num_pk", "name", "is_superuser", "attributes"] model_config = ConfigDict( populate_by_name=True, @@ -69,12 +67,10 @@ def to_dict(self) -> Dict[str, Any]: are ignored. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. - * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", "num_pk", - "parent_name", ]) _dict = self.model_dump( @@ -82,16 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if parent (nullable) is None - # and model_fields_set contains the field - if self.parent is None and "parent" in self.model_fields_set: - _dict['parent'] = None - - # set to None if parent_name (nullable) is None - # and model_fields_set contains the field - if self.parent_name is None and "parent_name" in self.model_fields_set: - _dict['parent_name'] = None - return _dict @classmethod @@ -108,8 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "num_pk": obj.get("num_pk"), "name": obj.get("name"), "is_superuser": obj.get("is_superuser"), - "parent": obj.get("parent"), - "parent_name": obj.get("parent_name"), "attributes": obj.get("attributes") }) return _obj diff --git a/authentik_client/models/partial_user.py b/authentik_client/models/partial_user.py index e2df5dc4a..9da16f81f 100644 --- a/authentik_client/models/partial_user.py +++ b/authentik_client/models/partial_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/password_challenge.py b/authentik_client/models/password_challenge.py index 635c4193a..75017e829 100644 --- a/authentik_client/models/password_challenge.py +++ b/authentik_client/models/password_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/password_challenge_response_request.py b/authentik_client/models/password_challenge_response_request.py index 2daea710d..ba1f5c822 100644 --- a/authentik_client/models/password_challenge_response_request.py +++ b/authentik_client/models/password_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/password_expiry_policy.py b/authentik_client/models/password_expiry_policy.py index 846729534..93b7fa6e6 100644 --- a/authentik_client/models/password_expiry_policy.py +++ b/authentik_client/models/password_expiry_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/password_expiry_policy_request.py b/authentik_client/models/password_expiry_policy_request.py index 7d1eee527..3d3c17038 100644 --- a/authentik_client/models/password_expiry_policy_request.py +++ b/authentik_client/models/password_expiry_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/password_policy.py b/authentik_client/models/password_policy.py index 1d62675e6..934d15577 100644 --- a/authentik_client/models/password_policy.py +++ b/authentik_client/models/password_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/password_policy_request.py b/authentik_client/models/password_policy_request.py index 29d55974e..aab5e6d82 100644 --- a/authentik_client/models/password_policy_request.py +++ b/authentik_client/models/password_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/password_stage.py b/authentik_client/models/password_stage.py index efc00b1c8..9d9b05638 100644 --- a/authentik_client/models/password_stage.py +++ b/authentik_client/models/password_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ class PasswordStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] backends: List[BackendsEnum] = Field(description="Selection of backends to test the password against.") configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") failed_attempts_before_cancel: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)]] = Field(default=None, description="How many attempts a user has before the flow is canceled. To lock the user out, use a reputation policy and a user_write stage.") @@ -79,6 +79,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -86,6 +87,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/password_stage_request.py b/authentik_client/models/password_stage_request.py index f27c52d74..7c8b0a253 100644 --- a/authentik_client/models/password_stage_request.py +++ b/authentik_client/models/password_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.backends_enum import BackendsEnum -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -32,12 +31,11 @@ class PasswordStageRequest(BaseModel): PasswordStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None backends: List[BackendsEnum] = Field(description="Selection of backends to test the password against.") configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") failed_attempts_before_cancel: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)]] = Field(default=None, description="How many attempts a user has before the flow is canceled. To lock the user out, use a reputation policy and a user_write stage.") allow_show_password: Optional[StrictBool] = Field(default=None, description="When enabled, provides a 'show password' button with the password input field.") - __properties: ClassVar[List[str]] = ["name", "flow_set", "backends", "configure_flow", "failed_attempts_before_cancel", "allow_show_password"] + __properties: ClassVar[List[str]] = ["name", "backends", "configure_flow", "failed_attempts_before_cancel", "allow_show_password"] model_config = ConfigDict( populate_by_name=True, @@ -78,13 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -103,7 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "backends": obj.get("backends"), "configure_flow": obj.get("configure_flow"), "failed_attempts_before_cancel": obj.get("failed_attempts_before_cancel"), diff --git a/authentik_client/models/patched_agent_connector_request.py b/authentik_client/models/patched_agent_connector_request.py new file mode 100644 index 000000000..54bf64ba0 --- /dev/null +++ b/authentik_client/models/patched_agent_connector_request.py @@ -0,0 +1,126 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class PatchedAgentConnectorRequest(BaseModel): + """ + PatchedAgentConnectorRequest + """ # noqa: E501 + connector_uuid: Optional[UUID] = None + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + enabled: Optional[StrictBool] = None + snapshot_expiry: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + auth_session_duration: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + auth_terminate_session_on_expiry: Optional[StrictBool] = None + refresh_interval: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + authorization_flow: Optional[UUID] = None + nss_uid_offset: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None + nss_gid_offset: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None + challenge_key: Optional[UUID] = None + challenge_idle_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + challenge_trigger_check_in: Optional[StrictBool] = None + jwt_federation_providers: Optional[List[StrictInt]] = None + __properties: ClassVar[List[str]] = ["connector_uuid", "name", "enabled", "snapshot_expiry", "auth_session_duration", "auth_terminate_session_on_expiry", "refresh_interval", "authorization_flow", "nss_uid_offset", "nss_gid_offset", "challenge_key", "challenge_idle_timeout", "challenge_trigger_check_in", "jwt_federation_providers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PatchedAgentConnectorRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if authorization_flow (nullable) is None + # and model_fields_set contains the field + if self.authorization_flow is None and "authorization_flow" in self.model_fields_set: + _dict['authorization_flow'] = None + + # set to None if challenge_key (nullable) is None + # and model_fields_set contains the field + if self.challenge_key is None and "challenge_key" in self.model_fields_set: + _dict['challenge_key'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PatchedAgentConnectorRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "connector_uuid": obj.get("connector_uuid"), + "name": obj.get("name"), + "enabled": obj.get("enabled"), + "snapshot_expiry": obj.get("snapshot_expiry"), + "auth_session_duration": obj.get("auth_session_duration"), + "auth_terminate_session_on_expiry": obj.get("auth_terminate_session_on_expiry"), + "refresh_interval": obj.get("refresh_interval"), + "authorization_flow": obj.get("authorization_flow"), + "nss_uid_offset": obj.get("nss_uid_offset"), + "nss_gid_offset": obj.get("nss_gid_offset"), + "challenge_key": obj.get("challenge_key"), + "challenge_idle_timeout": obj.get("challenge_idle_timeout"), + "challenge_trigger_check_in": obj.get("challenge_trigger_check_in"), + "jwt_federation_providers": obj.get("jwt_federation_providers") + }) + return _obj + + diff --git a/authentik_client/models/patched_application_entitlement_request.py b/authentik_client/models/patched_application_entitlement_request.py index 7a97a6aa4..4e90ac2f7 100644 --- a/authentik_client/models/patched_application_entitlement_request.py +++ b/authentik_client/models/patched_application_entitlement_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_application_request.py b/authentik_client/models/patched_application_request.py index 338aac2cd..9e3896ebf 100644 --- a/authentik_client/models/patched_application_request.py +++ b/authentik_client/models/patched_application_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,16 +30,17 @@ class PatchedApplicationRequest(BaseModel): Application Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Application's display Name.") - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Internal application name, used in URLs.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Internal application name, used in URLs.") provider: Optional[StrictInt] = None backchannel_providers: Optional[List[StrictInt]] = None open_in_new_tab: Optional[StrictBool] = Field(default=None, description="Open launch URL in a new browser tab or window.") meta_launch_url: Optional[StrictStr] = None + meta_icon: Optional[StrictStr] = None meta_description: Optional[StrictStr] = None meta_publisher: Optional[StrictStr] = None policy_engine_mode: Optional[PolicyEngineMode] = None group: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "slug", "provider", "backchannel_providers", "open_in_new_tab", "meta_launch_url", "meta_description", "meta_publisher", "policy_engine_mode", "group"] + __properties: ClassVar[List[str]] = ["name", "slug", "provider", "backchannel_providers", "open_in_new_tab", "meta_launch_url", "meta_icon", "meta_description", "meta_publisher", "policy_engine_mode", "group"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -113,6 +114,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "backchannel_providers": obj.get("backchannel_providers"), "open_in_new_tab": obj.get("open_in_new_tab"), "meta_launch_url": obj.get("meta_launch_url"), + "meta_icon": obj.get("meta_icon"), "meta_description": obj.get("meta_description"), "meta_publisher": obj.get("meta_publisher"), "policy_engine_mode": obj.get("policy_engine_mode"), diff --git a/authentik_client/models/patched_authenticator_duo_stage_request.py b/authentik_client/models/patched_authenticator_duo_stage_request.py index 2c351d7a6..d7402f3a4 100644 --- a/authentik_client/models/patched_authenticator_duo_stage_request.py +++ b/authentik_client/models/patched_authenticator_duo_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,7 +30,6 @@ class PatchedAuthenticatorDuoStageRequest(BaseModel): AuthenticatorDuoStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None client_id: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None @@ -39,7 +37,7 @@ class PatchedAuthenticatorDuoStageRequest(BaseModel): api_hostname: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None admin_integration_key: Optional[StrictStr] = None admin_secret_key: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "client_id", "client_secret", "api_hostname", "admin_integration_key", "admin_secret_key"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "client_id", "client_secret", "api_hostname", "admin_integration_key", "admin_secret_key"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -105,7 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "client_id": obj.get("client_id"), diff --git a/authentik_client/models/patched_authenticator_email_stage_request.py b/authentik_client/models/patched_authenticator_email_stage_request.py index c1069d68b..53657e8b7 100644 --- a/authentik_client/models/patched_authenticator_email_stage_request.py +++ b/authentik_client/models/patched_authenticator_email_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,7 +30,6 @@ class PatchedAuthenticatorEmailStageRequest(BaseModel): AuthenticatorEmailStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None use_global_settings: Optional[StrictBool] = Field(default=None, description="When enabled, global Email connection settings will be used and connection settings below will be ignored.") @@ -46,7 +44,7 @@ class PatchedAuthenticatorEmailStageRequest(BaseModel): subject: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None token_expiry: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).") template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "use_global_settings", "host", "port", "username", "password", "use_tls", "use_ssl", "timeout", "from_address", "subject", "token_expiry", "template"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "use_global_settings", "host", "port", "username", "password", "use_tls", "use_ssl", "timeout", "from_address", "subject", "token_expiry", "template"] model_config = ConfigDict( populate_by_name=True, @@ -87,13 +85,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -112,7 +103,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "use_global_settings": obj.get("use_global_settings"), diff --git a/authentik_client/models/patched_authenticator_endpoint_gdtc_stage_request.py b/authentik_client/models/patched_authenticator_endpoint_gdtc_stage_request.py index e47710e8b..520832c85 100644 --- a/authentik_client/models/patched_authenticator_endpoint_gdtc_stage_request.py +++ b/authentik_client/models/patched_authenticator_endpoint_gdtc_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,11 +30,10 @@ class PatchedAuthenticatorEndpointGDTCStageRequest(BaseModel): AuthenticatorEndpointGDTCStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None credentials: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "credentials"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "credentials"] model_config = ConfigDict( populate_by_name=True, @@ -76,13 +74,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -101,7 +92,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "credentials": obj.get("credentials") diff --git a/authentik_client/models/patched_authenticator_sms_stage_request.py b/authentik_client/models/patched_authenticator_sms_stage_request.py index 31c2f84f3..99bec33f5 100644 --- a/authentik_client/models/patched_authenticator_sms_stage_request.py +++ b/authentik_client/models/patched_authenticator_sms_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.auth_type_enum import AuthTypeEnum -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.provider_enum import ProviderEnum from typing import Optional, Set from typing_extensions import Self @@ -33,7 +32,6 @@ class PatchedAuthenticatorSMSStageRequest(BaseModel): AuthenticatorSMSStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None provider: Optional[ProviderEnum] = None @@ -44,7 +42,7 @@ class PatchedAuthenticatorSMSStageRequest(BaseModel): auth_type: Optional[AuthTypeEnum] = None verify_only: Optional[StrictBool] = Field(default=None, description="When enabled, the Phone number is only used during enrollment to verify the users authenticity. Only a hash of the phone number is saved to ensure it is not reused in the future.") mapping: Optional[UUID] = Field(default=None, description="Optionally modify the payload being sent to custom providers.") - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "provider", "from_number", "account_sid", "auth", "auth_password", "auth_type", "verify_only", "mapping"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "provider", "from_number", "account_sid", "auth", "auth_password", "auth_type", "verify_only", "mapping"] model_config = ConfigDict( populate_by_name=True, @@ -85,13 +83,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -115,7 +106,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "provider": obj.get("provider"), diff --git a/authentik_client/models/patched_authenticator_static_stage_request.py b/authentik_client/models/patched_authenticator_static_stage_request.py index 646799c47..00e47ba91 100644 --- a/authentik_client/models/patched_authenticator_static_stage_request.py +++ b/authentik_client/models/patched_authenticator_static_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,12 +30,11 @@ class PatchedAuthenticatorStaticStageRequest(BaseModel): AuthenticatorStaticStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None token_count: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None - token_length: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "token_count", "token_length"] + token_length: Optional[Annotated[int, Field(le=100, strict=True, ge=0)]] = None + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "token_count", "token_length"] model_config = ConfigDict( populate_by_name=True, @@ -77,13 +75,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -102,7 +93,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "token_count": obj.get("token_count"), diff --git a/authentik_client/models/patched_authenticator_totp_stage_request.py b/authentik_client/models/patched_authenticator_totp_stage_request.py index 3d0186bcf..4b8304483 100644 --- a/authentik_client/models/patched_authenticator_totp_stage_request.py +++ b/authentik_client/models/patched_authenticator_totp_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.digits_enum import DigitsEnum -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -32,11 +31,10 @@ class PatchedAuthenticatorTOTPStageRequest(BaseModel): AuthenticatorTOTPStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None digits: Optional[DigitsEnum] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "digits"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "digits"] model_config = ConfigDict( populate_by_name=True, @@ -77,13 +75,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -102,7 +93,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "digits": obj.get("digits") diff --git a/authentik_client/models/patched_authenticator_validate_stage_request.py b/authentik_client/models/patched_authenticator_validate_stage_request.py index 79df487a4..19bc2d869 100644 --- a/authentik_client/models/patched_authenticator_validate_stage_request.py +++ b/authentik_client/models/patched_authenticator_validate_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.device_classes_enum import DeviceClassesEnum -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.not_configured_action_enum import NotConfiguredActionEnum from authentik_client.models.user_verification_enum import UserVerificationEnum from typing import Optional, Set @@ -34,14 +33,13 @@ class PatchedAuthenticatorValidateStageRequest(BaseModel): AuthenticatorValidateStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None not_configured_action: Optional[NotConfiguredActionEnum] = None device_classes: Optional[List[DeviceClassesEnum]] = Field(default=None, description="Device classes which can be used to authenticate") configuration_stages: Optional[List[UUID]] = Field(default=None, description="Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again.") last_auth_threshold: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="If any of the user's device has been used within this threshold, this stage will be skipped") webauthn_user_verification: Optional[UserVerificationEnum] = Field(default=None, description="Enforce user verification for WebAuthn devices.") webauthn_allowed_device_types: Optional[List[UUID]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "not_configured_action", "device_classes", "configuration_stages", "last_auth_threshold", "webauthn_user_verification", "webauthn_allowed_device_types"] + __properties: ClassVar[List[str]] = ["name", "not_configured_action", "device_classes", "configuration_stages", "last_auth_threshold", "webauthn_user_verification", "webauthn_allowed_device_types"] model_config = ConfigDict( populate_by_name=True, @@ -82,13 +80,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -102,7 +93,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "not_configured_action": obj.get("not_configured_action"), "device_classes": obj.get("device_classes"), "configuration_stages": obj.get("configuration_stages"), diff --git a/authentik_client/models/patched_authenticator_web_authn_stage_request.py b/authentik_client/models/patched_authenticator_web_authn_stage_request.py index 3624b0421..a3c777fa7 100644 --- a/authentik_client/models/patched_authenticator_web_authn_stage_request.py +++ b/authentik_client/models/patched_authenticator_web_authn_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.authenticator_attachment_enum import AuthenticatorAttachmentEnum -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.resident_key_requirement_enum import ResidentKeyRequirementEnum from authentik_client.models.user_verification_enum import UserVerificationEnum from typing import Optional, Set @@ -34,7 +33,6 @@ class PatchedAuthenticatorWebAuthnStageRequest(BaseModel): AuthenticatorWebAuthnStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") friendly_name: Optional[StrictStr] = None user_verification: Optional[UserVerificationEnum] = None @@ -42,7 +40,7 @@ class PatchedAuthenticatorWebAuthnStageRequest(BaseModel): resident_key_requirement: Optional[ResidentKeyRequirementEnum] = None device_type_restrictions: Optional[List[UUID]] = None max_attempts: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "configure_flow", "friendly_name", "user_verification", "authenticator_attachment", "resident_key_requirement", "device_type_restrictions", "max_attempts"] + __properties: ClassVar[List[str]] = ["name", "configure_flow", "friendly_name", "user_verification", "authenticator_attachment", "resident_key_requirement", "device_type_restrictions", "max_attempts"] model_config = ConfigDict( populate_by_name=True, @@ -83,13 +81,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -113,7 +104,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "configure_flow": obj.get("configure_flow"), "friendly_name": obj.get("friendly_name"), "user_verification": obj.get("user_verification"), diff --git a/authentik_client/models/patched_blueprint_instance_request.py b/authentik_client/models/patched_blueprint_instance_request.py index 8557abfd4..11a493172 100644 --- a/authentik_client/models/patched_blueprint_instance_request.py +++ b/authentik_client/models/patched_blueprint_instance_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_brand_request.py b/authentik_client/models/patched_brand_request.py index 3228d4127..8a8737017 100644 --- a/authentik_client/models/patched_brand_request.py +++ b/authentik_client/models/patched_brand_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_captcha_stage_request.py b/authentik_client/models/patched_captcha_stage_request.py index e64460b06..d16af173b 100644 --- a/authentik_client/models/patched_captcha_stage_request.py +++ b/authentik_client/models/patched_captcha_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt from typing import Any, ClassVar, Dict, List, Optional, Union from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,7 +29,6 @@ class PatchedCaptchaStageRequest(BaseModel): CaptchaStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None public_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Public key, acquired your captcha Provider.") private_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Private key, acquired your captcha Provider.") js_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None @@ -39,7 +37,7 @@ class PatchedCaptchaStageRequest(BaseModel): score_min_threshold: Optional[Union[StrictFloat, StrictInt]] = None score_max_threshold: Optional[Union[StrictFloat, StrictInt]] = None error_on_invalid_score: Optional[StrictBool] = Field(default=None, description="When enabled and the received captcha score is outside of the given threshold, the stage will show an error message. When not enabled, the flow will continue, but the data from the captcha will be available in the context for policy decisions") - __properties: ClassVar[List[str]] = ["name", "flow_set", "public_key", "private_key", "js_url", "api_url", "interactive", "score_min_threshold", "score_max_threshold", "error_on_invalid_score"] + __properties: ClassVar[List[str]] = ["name", "public_key", "private_key", "js_url", "api_url", "interactive", "score_min_threshold", "score_max_threshold", "error_on_invalid_score"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -100,7 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "public_key": obj.get("public_key"), "private_key": obj.get("private_key"), "js_url": obj.get("js_url"), diff --git a/authentik_client/models/patched_certificate_key_pair_request.py b/authentik_client/models/patched_certificate_key_pair_request.py index 43dc8c78b..3bf03eac5 100644 --- a/authentik_client/models/patched_certificate_key_pair_request.py +++ b/authentik_client/models/patched_certificate_key_pair_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_connection_token_request.py b/authentik_client/models/patched_connection_token_request.py index b9db90a64..7a2f038c0 100644 --- a/authentik_client/models/patched_connection_token_request.py +++ b/authentik_client/models/patched_connection_token_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_consent_stage_request.py b/authentik_client/models/patched_consent_stage_request.py index 19b263cb3..eb3488f79 100644 --- a/authentik_client/models/patched_consent_stage_request.py +++ b/authentik_client/models/patched_consent_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from authentik_client.models.consent_stage_mode_enum import ConsentStageModeEnum -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,10 +30,9 @@ class PatchedConsentStageRequest(BaseModel): ConsentStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None mode: Optional[ConsentStageModeEnum] = None consent_expire_in: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3).") - __properties: ClassVar[List[str]] = ["name", "flow_set", "mode", "consent_expire_in"] + __properties: ClassVar[List[str]] = ["name", "mode", "consent_expire_in"] model_config = ConfigDict( populate_by_name=True, @@ -75,13 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -95,7 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "mode": obj.get("mode"), "consent_expire_in": obj.get("consent_expire_in") }) diff --git a/authentik_client/models/patched_deny_stage_request.py b/authentik_client/models/patched_deny_stage_request.py index e275e75cd..36c7133d3 100644 --- a/authentik_client/models/patched_deny_stage_request.py +++ b/authentik_client/models/patched_deny_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,9 +29,8 @@ class PatchedDenyStageRequest(BaseModel): DenyStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None deny_message: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "deny_message"] + __properties: ClassVar[List[str]] = ["name", "deny_message"] model_config = ConfigDict( populate_by_name=True, @@ -73,13 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -93,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "deny_message": obj.get("deny_message") }) return _obj diff --git a/authentik_client/models/patched_extra_role_object_permission_request.py b/authentik_client/models/patched_device_access_group_request.py similarity index 80% rename from authentik_client/models/patched_extra_role_object_permission_request.py rename to authentik_client/models/patched_device_access_group_request.py index fbae1fc7d..ec5c2e6d7 100644 --- a/authentik_client/models/patched_extra_role_object_permission_request.py +++ b/authentik_client/models/patched_device_access_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,12 +24,12 @@ from typing import Optional, Set from typing_extensions import Self -class PatchedExtraRoleObjectPermissionRequest(BaseModel): +class PatchedDeviceAccessGroupRequest(BaseModel): """ - User permission with additional object-related data + PatchedDeviceAccessGroupRequest """ # noqa: E501 - object_pk: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - __properties: ClassVar[List[str]] = ["object_pk"] + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of PatchedExtraRoleObjectPermissionRequest from a JSON string""" + """Create an instance of PatchedDeviceAccessGroupRequest from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of PatchedExtraRoleObjectPermissionRequest from a dict""" + """Create an instance of PatchedDeviceAccessGroupRequest from a dict""" if obj is None: return None @@ -82,7 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "object_pk": obj.get("object_pk") + "name": obj.get("name") }) return _obj diff --git a/authentik_client/models/patched_device_user_binding_request.py b/authentik_client/models/patched_device_user_binding_request.py new file mode 100644 index 000000000..bb37e8139 --- /dev/null +++ b/authentik_client/models/patched_device_user_binding_request.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class PatchedDeviceUserBindingRequest(BaseModel): + """ + PolicyBinding Serializer + """ # noqa: E501 + policy: Optional[UUID] = None + group: Optional[UUID] = None + user: Optional[StrictInt] = None + target: Optional[UUID] = None + negate: Optional[StrictBool] = Field(default=None, description="Negates the outcome of the policy. Messages are unaffected.") + enabled: Optional[StrictBool] = None + order: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)]] = None + timeout: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Timeout after which Policy execution is terminated.") + failure_result: Optional[StrictBool] = Field(default=None, description="Result if the Policy execution fails.") + is_primary: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["policy", "group", "user", "target", "negate", "enabled", "order", "timeout", "failure_result", "is_primary"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PatchedDeviceUserBindingRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if policy (nullable) is None + # and model_fields_set contains the field + if self.policy is None and "policy" in self.model_fields_set: + _dict['policy'] = None + + # set to None if group (nullable) is None + # and model_fields_set contains the field + if self.group is None and "group" in self.model_fields_set: + _dict['group'] = None + + # set to None if user (nullable) is None + # and model_fields_set contains the field + if self.user is None and "user" in self.model_fields_set: + _dict['user'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PatchedDeviceUserBindingRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": obj.get("policy"), + "group": obj.get("group"), + "user": obj.get("user"), + "target": obj.get("target"), + "negate": obj.get("negate"), + "enabled": obj.get("enabled"), + "order": obj.get("order"), + "timeout": obj.get("timeout"), + "failure_result": obj.get("failure_result"), + "is_primary": obj.get("is_primary") + }) + return _obj + + diff --git a/authentik_client/models/patched_docker_service_connection_request.py b/authentik_client/models/patched_docker_service_connection_request.py index 7c0bc18d7..02198591c 100644 --- a/authentik_client/models/patched_docker_service_connection_request.py +++ b/authentik_client/models/patched_docker_service_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_domain_request.py b/authentik_client/models/patched_domain_request.py index 7276d80c0..2dfc5d409 100644 --- a/authentik_client/models/patched_domain_request.py +++ b/authentik_client/models/patched_domain_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_dummy_policy_request.py b/authentik_client/models/patched_dummy_policy_request.py index cba3f19dd..0d54fe20f 100644 --- a/authentik_client/models/patched_dummy_policy_request.py +++ b/authentik_client/models/patched_dummy_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_dummy_stage_request.py b/authentik_client/models/patched_dummy_stage_request.py index b58e46ace..9030d3c52 100644 --- a/authentik_client/models/patched_dummy_stage_request.py +++ b/authentik_client/models/patched_dummy_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,9 +29,8 @@ class PatchedDummyStageRequest(BaseModel): DummyStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None throw_error: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "throw_error"] + __properties: ClassVar[List[str]] = ["name", "throw_error"] model_config = ConfigDict( populate_by_name=True, @@ -73,13 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -93,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "throw_error": obj.get("throw_error") }) return _obj diff --git a/authentik_client/models/patched_duo_device_request.py b/authentik_client/models/patched_duo_device_request.py index b6938abe5..7c5c7c5df 100644 --- a/authentik_client/models/patched_duo_device_request.py +++ b/authentik_client/models/patched_duo_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_email_device_request.py b/authentik_client/models/patched_email_device_request.py index 3814ccae0..b7158e276 100644 --- a/authentik_client/models/patched_email_device_request.py +++ b/authentik_client/models/patched_email_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_email_stage_request.py b/authentik_client/models/patched_email_stage_request.py index c5138b2e2..cafe46b91 100644 --- a/authentik_client/models/patched_email_stage_request.py +++ b/authentik_client/models/patched_email_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,7 +29,6 @@ class PatchedEmailStageRequest(BaseModel): EmailStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None use_global_settings: Optional[StrictBool] = Field(default=None, description="When enabled, global Email connection settings will be used and connection settings below will be ignored.") host: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None port: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)]] = None @@ -46,7 +44,7 @@ class PatchedEmailStageRequest(BaseModel): activate_user_on_success: Optional[StrictBool] = Field(default=None, description="Activate users upon completion of stage.") recovery_max_attempts: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = None recovery_cache_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="The time window used to count recent account recovery attempts. If the number of attempts exceed recovery_max_attempts within this period, further attempts will be rate-limited. (Format: hours=1;minutes=2;seconds=3).") - __properties: ClassVar[List[str]] = ["name", "flow_set", "use_global_settings", "host", "port", "username", "password", "use_tls", "use_ssl", "timeout", "from_address", "token_expiry", "subject", "template", "activate_user_on_success", "recovery_max_attempts", "recovery_cache_timeout"] + __properties: ClassVar[List[str]] = ["name", "use_global_settings", "host", "port", "username", "password", "use_tls", "use_ssl", "timeout", "from_address", "token_expiry", "subject", "template", "activate_user_on_success", "recovery_max_attempts", "recovery_cache_timeout"] model_config = ConfigDict( populate_by_name=True, @@ -87,13 +85,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -107,7 +98,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "use_global_settings": obj.get("use_global_settings"), "host": obj.get("host"), "port": obj.get("port"), diff --git a/authentik_client/models/patched_endpoint_device_request.py b/authentik_client/models/patched_endpoint_device_request.py index d1e305464..6a2982a8a 100644 --- a/authentik_client/models/patched_endpoint_device_request.py +++ b/authentik_client/models/patched_endpoint_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,20 +18,27 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest from typing import Optional, Set from typing_extensions import Self class PatchedEndpointDeviceRequest(BaseModel): """ - Serializer for Endpoint authenticator devices + PatchedEndpointDeviceRequest """ # noqa: E501 - pk: Optional[UUID] = None - name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]] = Field(default=None, description="The human-readable name of this device.") - __properties: ClassVar[List[str]] = ["pk", "name"] + device_uuid: Optional[UUID] = None + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + access_group: Optional[UUID] = None + access_group_obj: Optional[DeviceAccessGroupRequest] = None + expiring: Optional[StrictBool] = None + expires: Optional[datetime] = None + attributes: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["device_uuid", "name", "access_group", "access_group_obj", "expiring", "expires", "attributes"] model_config = ConfigDict( populate_by_name=True, @@ -72,6 +79,19 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of access_group_obj + if self.access_group_obj: + _dict['access_group_obj'] = self.access_group_obj.to_dict() + # set to None if access_group (nullable) is None + # and model_fields_set contains the field + if self.access_group is None and "access_group" in self.model_fields_set: + _dict['access_group'] = None + + # set to None if expires (nullable) is None + # and model_fields_set contains the field + if self.expires is None and "expires" in self.model_fields_set: + _dict['expires'] = None + return _dict @classmethod @@ -84,8 +104,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "pk": obj.get("pk"), - "name": obj.get("name") + "device_uuid": obj.get("device_uuid"), + "name": obj.get("name"), + "access_group": obj.get("access_group"), + "access_group_obj": DeviceAccessGroupRequest.from_dict(obj["access_group_obj"]) if obj.get("access_group_obj") is not None else None, + "expiring": obj.get("expiring"), + "expires": obj.get("expires"), + "attributes": obj.get("attributes") }) return _obj diff --git a/authentik_client/models/patched_endpoint_request.py b/authentik_client/models/patched_endpoint_request.py index ff5445850..a955591ca 100644 --- a/authentik_client/models/patched_endpoint_request.py +++ b/authentik_client/models/patched_endpoint_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_endpoint_stage_request.py b/authentik_client/models/patched_endpoint_stage_request.py new file mode 100644 index 000000000..9f5d23480 --- /dev/null +++ b/authentik_client/models/patched_endpoint_stage_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from authentik_client.models.stage_mode_enum import StageModeEnum +from typing import Optional, Set +from typing_extensions import Self + +class PatchedEndpointStageRequest(BaseModel): + """ + EndpointStage Serializer + """ # noqa: E501 + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + connector: Optional[UUID] = None + mode: Optional[StageModeEnum] = None + __properties: ClassVar[List[str]] = ["name", "connector", "mode"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PatchedEndpointStageRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PatchedEndpointStageRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "connector": obj.get("connector"), + "mode": obj.get("mode") + }) + return _obj + + diff --git a/authentik_client/models/patched_enrollment_token_request.py b/authentik_client/models/patched_enrollment_token_request.py new file mode 100644 index 000000000..5277958b0 --- /dev/null +++ b/authentik_client/models/patched_enrollment_token_request.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class PatchedEnrollmentTokenRequest(BaseModel): + """ + PatchedEnrollmentTokenRequest + """ # noqa: E501 + device_group: Optional[UUID] = None + connector: Optional[UUID] = None + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + expiring: Optional[StrictBool] = None + expires: Optional[datetime] = None + __properties: ClassVar[List[str]] = ["device_group", "connector", "name", "expiring", "expires"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PatchedEnrollmentTokenRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if device_group (nullable) is None + # and model_fields_set contains the field + if self.device_group is None and "device_group" in self.model_fields_set: + _dict['device_group'] = None + + # set to None if expires (nullable) is None + # and model_fields_set contains the field + if self.expires is None and "expires" in self.model_fields_set: + _dict['expires'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PatchedEnrollmentTokenRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "device_group": obj.get("device_group"), + "connector": obj.get("connector"), + "name": obj.get("name"), + "expiring": obj.get("expiring"), + "expires": obj.get("expires") + }) + return _obj + + diff --git a/authentik_client/models/patched_event_matcher_policy_request.py b/authentik_client/models/patched_event_matcher_policy_request.py index 271fa7162..bed900b76 100644 --- a/authentik_client/models/patched_event_matcher_policy_request.py +++ b/authentik_client/models/patched_event_matcher_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_event_request.py b/authentik_client/models/patched_event_request.py index fa6b2c279..4ccd0f912 100644 --- a/authentik_client/models/patched_event_request.py +++ b/authentik_client/models/patched_event_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_expression_policy_request.py b/authentik_client/models/patched_expression_policy_request.py index abdb4e829..e85022d69 100644 --- a/authentik_client/models/patched_expression_policy_request.py +++ b/authentik_client/models/patched_expression_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_flow_request.py b/authentik_client/models/patched_flow_request.py index 57c21f308..8083dba81 100644 --- a/authentik_client/models/patched_flow_request.py +++ b/authentik_client/models/patched_flow_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from authentik_client.models.authentication_enum import AuthenticationEnum @@ -34,15 +34,16 @@ class PatchedFlowRequest(BaseModel): Flow Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Visible in the URL.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Visible in the URL.") title: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Shown as the Title in Flow pages.") designation: Optional[FlowDesignationEnum] = Field(default=None, description="Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik.") + background: Optional[StrictStr] = Field(default=None, description="Background shown during execution") policy_engine_mode: Optional[PolicyEngineMode] = None compatibility_mode: Optional[StrictBool] = Field(default=None, description="Enable compatibility mode, increases compatibility with password managers on mobile devices.") layout: Optional[FlowLayoutEnum] = None denied_action: Optional[DeniedActionEnum] = Field(default=None, description="Configure what should happen when a flow denies access to a user.") authentication: Optional[AuthenticationEnum] = Field(default=None, description="Required level of authentication and authorization to access a flow.") - __properties: ClassVar[List[str]] = ["name", "slug", "title", "designation", "policy_engine_mode", "compatibility_mode", "layout", "denied_action", "authentication"] + __properties: ClassVar[List[str]] = ["name", "slug", "title", "designation", "background", "policy_engine_mode", "compatibility_mode", "layout", "denied_action", "authentication"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -109,6 +110,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "slug": obj.get("slug"), "title": obj.get("title"), "designation": obj.get("designation"), + "background": obj.get("background"), "policy_engine_mode": obj.get("policy_engine_mode"), "compatibility_mode": obj.get("compatibility_mode"), "layout": obj.get("layout"), diff --git a/authentik_client/models/patched_flow_stage_binding_request.py b/authentik_client/models/patched_flow_stage_binding_request.py index 9d37b4fe1..9f42d2c53 100644 --- a/authentik_client/models/patched_flow_stage_binding_request.py +++ b/authentik_client/models/patched_flow_stage_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_geo_ip_policy_request.py b/authentik_client/models/patched_geo_ip_policy_request.py index d69476aa5..320f4f9d0 100644 --- a/authentik_client/models/patched_geo_ip_policy_request.py +++ b/authentik_client/models/patched_geo_ip_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_google_endpoint_device_request.py b/authentik_client/models/patched_google_endpoint_device_request.py new file mode 100644 index 000000000..ad7117db8 --- /dev/null +++ b/authentik_client/models/patched_google_endpoint_device_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from uuid import UUID +from typing import Optional, Set +from typing_extensions import Self + +class PatchedGoogleEndpointDeviceRequest(BaseModel): + """ + Serializer for Endpoint authenticator devices + """ # noqa: E501 + pk: Optional[UUID] = None + name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=64)]] = Field(default=None, description="The human-readable name of this device.") + __properties: ClassVar[List[str]] = ["pk", "name"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PatchedGoogleEndpointDeviceRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PatchedGoogleEndpointDeviceRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pk": obj.get("pk"), + "name": obj.get("name") + }) + return _obj + + diff --git a/authentik_client/models/patched_google_workspace_provider_mapping_request.py b/authentik_client/models/patched_google_workspace_provider_mapping_request.py index 4b5ec98cc..eee470da6 100644 --- a/authentik_client/models/patched_google_workspace_provider_mapping_request.py +++ b/authentik_client/models/patched_google_workspace_provider_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_google_workspace_provider_request.py b/authentik_client/models/patched_google_workspace_provider_request.py index 790022ea4..91f5861ed 100644 --- a/authentik_client/models/patched_google_workspace_provider_request.py +++ b/authentik_client/models/patched_google_workspace_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,8 +41,10 @@ class PatchedGoogleWorkspaceProviderRequest(BaseModel): user_delete_action: Optional[OutgoingSyncDeleteAction] = None group_delete_action: Optional[OutgoingSyncDeleteAction] = None default_group_email_domain: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "delegated_subject", "credentials", "scopes", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "default_group_email_domain", "dry_run"] + __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "delegated_subject", "credentials", "scopes", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "default_group_email_domain", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -111,6 +113,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "user_delete_action": obj.get("user_delete_action"), "group_delete_action": obj.get("group_delete_action"), "default_group_email_domain": obj.get("default_group_email_domain"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/patched_group_kerberos_source_connection_request.py b/authentik_client/models/patched_group_kerberos_source_connection_request.py index baefe2831..70458f65b 100644 --- a/authentik_client/models/patched_group_kerberos_source_connection_request.py +++ b/authentik_client/models/patched_group_kerberos_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_group_ldap_source_connection_request.py b/authentik_client/models/patched_group_ldap_source_connection_request.py index 0fbe95397..5785ef66a 100644 --- a/authentik_client/models/patched_group_ldap_source_connection_request.py +++ b/authentik_client/models/patched_group_ldap_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_group_o_auth_source_connection_request.py b/authentik_client/models/patched_group_o_auth_source_connection_request.py index 5f9066725..aace778d3 100644 --- a/authentik_client/models/patched_group_o_auth_source_connection_request.py +++ b/authentik_client/models/patched_group_o_auth_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_group_plex_source_connection_request.py b/authentik_client/models/patched_group_plex_source_connection_request.py index 7ae46ebda..0410bbe5a 100644 --- a/authentik_client/models/patched_group_plex_source_connection_request.py +++ b/authentik_client/models/patched_group_plex_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_group_request.py b/authentik_client/models/patched_group_request.py index e80e2291b..0e86f507b 100644 --- a/authentik_client/models/patched_group_request.py +++ b/authentik_client/models/patched_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,12 +31,11 @@ class PatchedGroupRequest(BaseModel): """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None is_superuser: Optional[StrictBool] = Field(default=None, description="Users added to this group will be superusers.") - parent: Optional[UUID] = None + parents: Optional[List[UUID]] = None users: Optional[List[StrictInt]] = None attributes: Optional[Dict[str, Any]] = None roles: Optional[List[UUID]] = None - children: Optional[List[UUID]] = None - __properties: ClassVar[List[str]] = ["name", "is_superuser", "parent", "users", "attributes", "roles", "children"] + __properties: ClassVar[List[str]] = ["name", "is_superuser", "parents", "users", "attributes", "roles"] model_config = ConfigDict( populate_by_name=True, @@ -77,11 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if parent (nullable) is None - # and model_fields_set contains the field - if self.parent is None and "parent" in self.model_fields_set: - _dict['parent'] = None - return _dict @classmethod @@ -96,11 +90,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), "is_superuser": obj.get("is_superuser"), - "parent": obj.get("parent"), + "parents": obj.get("parents"), "users": obj.get("users"), "attributes": obj.get("attributes"), - "roles": obj.get("roles"), - "children": obj.get("children") + "roles": obj.get("roles") }) return _obj diff --git a/authentik_client/models/patched_group_saml_source_connection_request.py b/authentik_client/models/patched_group_saml_source_connection_request.py index 06a916091..9d15451f3 100644 --- a/authentik_client/models/patched_group_saml_source_connection_request.py +++ b/authentik_client/models/patched_group_saml_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_group_source_connection_request.py b/authentik_client/models/patched_group_source_connection_request.py index 5260e36bd..e6c09833b 100644 --- a/authentik_client/models/patched_group_source_connection_request.py +++ b/authentik_client/models/patched_group_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_group_telegram_source_connection_request.py b/authentik_client/models/patched_group_telegram_source_connection_request.py index 4002999c7..4bfaac618 100644 --- a/authentik_client/models/patched_group_telegram_source_connection_request.py +++ b/authentik_client/models/patched_group_telegram_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_identification_stage_request.py b/authentik_client/models/patched_identification_stage_request.py index 8af369491..50e479256 100644 --- a/authentik_client/models/patched_identification_stage_request.py +++ b/authentik_client/models/patched_identification_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.user_fields_enum import UserFieldsEnum from typing import Optional, Set from typing_extensions import Self @@ -32,7 +31,6 @@ class PatchedIdentificationStageRequest(BaseModel): IdentificationStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None user_fields: Optional[List[UserFieldsEnum]] = Field(default=None, description="Fields of the user object to match against. (Hold shift to select multiple options)") password_stage: Optional[UUID] = Field(default=None, description="When set, shows a password field, instead of showing the password field as separate step.") captcha_stage: Optional[UUID] = Field(default=None, description="When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage.") @@ -45,7 +43,8 @@ class PatchedIdentificationStageRequest(BaseModel): show_source_labels: Optional[StrictBool] = None pretend_user_exists: Optional[StrictBool] = Field(default=None, description="When enabled, the stage will succeed and continue even when incorrect user info is entered.") enable_remember_me: Optional[StrictBool] = Field(default=None, description="Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password.") - __properties: ClassVar[List[str]] = ["name", "flow_set", "user_fields", "password_stage", "captcha_stage", "case_insensitive_matching", "show_matched_user", "enrollment_flow", "recovery_flow", "passwordless_flow", "sources", "show_source_labels", "pretend_user_exists", "enable_remember_me"] + webauthn_stage: Optional[UUID] = Field(default=None, description="When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor.") + __properties: ClassVar[List[str]] = ["name", "user_fields", "password_stage", "captcha_stage", "case_insensitive_matching", "show_matched_user", "enrollment_flow", "recovery_flow", "passwordless_flow", "sources", "show_source_labels", "pretend_user_exists", "enable_remember_me", "webauthn_stage"] model_config = ConfigDict( populate_by_name=True, @@ -86,13 +85,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if password_stage (nullable) is None # and model_fields_set contains the field if self.password_stage is None and "password_stage" in self.model_fields_set: @@ -118,6 +110,11 @@ def to_dict(self) -> Dict[str, Any]: if self.passwordless_flow is None and "passwordless_flow" in self.model_fields_set: _dict['passwordless_flow'] = None + # set to None if webauthn_stage (nullable) is None + # and model_fields_set contains the field + if self.webauthn_stage is None and "webauthn_stage" in self.model_fields_set: + _dict['webauthn_stage'] = None + return _dict @classmethod @@ -131,7 +128,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "user_fields": obj.get("user_fields"), "password_stage": obj.get("password_stage"), "captcha_stage": obj.get("captcha_stage"), @@ -143,7 +139,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sources": obj.get("sources"), "show_source_labels": obj.get("show_source_labels"), "pretend_user_exists": obj.get("pretend_user_exists"), - "enable_remember_me": obj.get("enable_remember_me") + "enable_remember_me": obj.get("enable_remember_me"), + "webauthn_stage": obj.get("webauthn_stage") }) return _obj diff --git a/authentik_client/models/patched_initial_permissions_request.py b/authentik_client/models/patched_initial_permissions_request.py index e340aeb13..09c6d471c 100644 --- a/authentik_client/models/patched_initial_permissions_request.py +++ b/authentik_client/models/patched_initial_permissions_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.initial_permissions_mode_enum import InitialPermissionsModeEnum from typing import Optional, Set from typing_extensions import Self @@ -31,10 +30,9 @@ class PatchedInitialPermissionsRequest(BaseModel): InitialPermissions serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=150)]] = None - mode: Optional[InitialPermissionsModeEnum] = None role: Optional[UUID] = None permissions: Optional[List[StrictInt]] = None - __properties: ClassVar[List[str]] = ["name", "mode", "role", "permissions"] + __properties: ClassVar[List[str]] = ["name", "role", "permissions"] model_config = ConfigDict( populate_by_name=True, @@ -88,7 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "mode": obj.get("mode"), "role": obj.get("role"), "permissions": obj.get("permissions") }) diff --git a/authentik_client/models/patched_invitation_request.py b/authentik_client/models/patched_invitation_request.py index d240ea4cf..d6a8ba729 100644 --- a/authentik_client/models/patched_invitation_request.py +++ b/authentik_client/models/patched_invitation_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,7 +30,7 @@ class PatchedInvitationRequest(BaseModel): """ Invitation Serializer """ # noqa: E501 - name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = None + name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None expires: Optional[datetime] = None fixed_data: Optional[Dict[str, Any]] = None single_use: Optional[StrictBool] = Field(default=None, description="When enabled, the invitation will be deleted after usage.") diff --git a/authentik_client/models/patched_invitation_stage_request.py b/authentik_client/models/patched_invitation_stage_request.py index 9b89bdc33..e46f1e691 100644 --- a/authentik_client/models/patched_invitation_stage_request.py +++ b/authentik_client/models/patched_invitation_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,9 +29,8 @@ class PatchedInvitationStageRequest(BaseModel): InvitationStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None continue_flow_without_invitation: Optional[StrictBool] = Field(default=None, description="If this flag is set, this Stage will jump to the next Stage when no Invitation is given. By default this Stage will cancel the Flow when no invitation is given.") - __properties: ClassVar[List[str]] = ["name", "flow_set", "continue_flow_without_invitation"] + __properties: ClassVar[List[str]] = ["name", "continue_flow_without_invitation"] model_config = ConfigDict( populate_by_name=True, @@ -73,13 +71,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -93,7 +84,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "continue_flow_without_invitation": obj.get("continue_flow_without_invitation") }) return _obj diff --git a/authentik_client/models/patched_kerberos_source_property_mapping_request.py b/authentik_client/models/patched_kerberos_source_property_mapping_request.py index 5d27f5d23..f7580e299 100644 --- a/authentik_client/models/patched_kerberos_source_property_mapping_request.py +++ b/authentik_client/models/patched_kerberos_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_kerberos_source_request.py b/authentik_client/models/patched_kerberos_source_request.py index 6c888857e..d0238fc9e 100644 --- a/authentik_client/models/patched_kerberos_source_request.py +++ b/authentik_client/models/patched_kerberos_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,6 +25,7 @@ from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum from authentik_client.models.kadmin_type_enum import KadminTypeEnum from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -34,8 +35,9 @@ class PatchedKerberosSourceRequest(BaseModel): Kerberos Source Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Source's display Name.") - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Internal source name, used in URLs.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -43,6 +45,7 @@ class PatchedKerberosSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") realm: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Kerberos realm") krb5_conf: Optional[StrictStr] = Field(default=None, description="Custom krb5.conf to use. Uses the system one by default") @@ -57,7 +60,8 @@ class PatchedKerberosSourceRequest(BaseModel): spnego_keytab: Optional[StrictStr] = Field(default=None, description="SPNEGO keytab base64-encoded or path to keytab in the form FILE:path") spnego_ccache: Optional[StrictStr] = Field(default=None, description="Credential cache to use for SPNEGO in form type:residual") password_login_update_internal_password: Optional[StrictBool] = Field(default=None, description="If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "group_matching_mode", "realm", "krb5_conf", "kadmin_type", "sync_users", "sync_users_password", "sync_principal", "sync_password", "sync_keytab", "sync_ccache", "spnego_server_name", "spnego_keytab", "spnego_ccache", "password_login_update_internal_password"] + sync_outgoing_trigger_mode: Optional[SyncOutgoingTriggerModeEnum] = Field(default=None, description="When to trigger sync for outgoing providers") + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "group_matching_mode", "realm", "krb5_conf", "kadmin_type", "sync_users", "sync_users_password", "sync_principal", "sync_password", "sync_keytab", "sync_ccache", "spnego_server_name", "spnego_keytab", "spnego_ccache", "password_login_update_internal_password", "sync_outgoing_trigger_mode"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -133,6 +137,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -140,6 +145,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "group_matching_mode": obj.get("group_matching_mode"), "realm": obj.get("realm"), "krb5_conf": obj.get("krb5_conf"), @@ -153,7 +159,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "spnego_server_name": obj.get("spnego_server_name"), "spnego_keytab": obj.get("spnego_keytab"), "spnego_ccache": obj.get("spnego_ccache"), - "password_login_update_internal_password": obj.get("password_login_update_internal_password") + "password_login_update_internal_password": obj.get("password_login_update_internal_password"), + "sync_outgoing_trigger_mode": obj.get("sync_outgoing_trigger_mode") }) return _obj diff --git a/authentik_client/models/patched_kubernetes_service_connection_request.py b/authentik_client/models/patched_kubernetes_service_connection_request.py index 1b8d3d3a2..8f9afce66 100644 --- a/authentik_client/models/patched_kubernetes_service_connection_request.py +++ b/authentik_client/models/patched_kubernetes_service_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_ldap_provider_request.py b/authentik_client/models/patched_ldap_provider_request.py index 744ab7b6f..ce2e07e72 100644 --- a/authentik_client/models/patched_ldap_provider_request.py +++ b/authentik_client/models/patched_ldap_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_ldap_source_property_mapping_request.py b/authentik_client/models/patched_ldap_source_property_mapping_request.py index 036bd2527..e349450d3 100644 --- a/authentik_client/models/patched_ldap_source_property_mapping_request.py +++ b/authentik_client/models/patched_ldap_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_ldap_source_request.py b/authentik_client/models/patched_ldap_source_request.py index dab04670e..907b29b82 100644 --- a/authentik_client/models/patched_ldap_source_request.py +++ b/authentik_client/models/patched_ldap_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -32,8 +33,9 @@ class PatchedLDAPSourceRequest(BaseModel): LDAP Source Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Source's display Name.") - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Internal source name, used in URLs.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -41,6 +43,7 @@ class PatchedLDAPSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None server_uri: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None peer_certificate: Optional[UUID] = Field(default=None, description="Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair.") client_certificate: Optional[UUID] = Field(default=None, description="Client certificate to authenticate against the LDAP Server's Certificate.") @@ -63,7 +66,8 @@ class PatchedLDAPSourceRequest(BaseModel): sync_parent_group: Optional[UUID] = None lookup_groups_from_user: Optional[StrictBool] = Field(default=None, description="Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory") delete_not_found_objects: Optional[StrictBool] = Field(default=None, description="Delete authentik users and groups which were previously supplied by this source, but are now missing from it.") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "server_uri", "peer_certificate", "client_certificate", "bind_cn", "bind_password", "start_tls", "sni", "base_dn", "additional_user_dn", "additional_group_dn", "user_object_filter", "group_object_filter", "group_membership_field", "user_membership_attribute", "object_uniqueness_field", "password_login_update_internal_password", "sync_users", "sync_users_password", "sync_groups", "sync_parent_group", "lookup_groups_from_user", "delete_not_found_objects"] + sync_outgoing_trigger_mode: Optional[SyncOutgoingTriggerModeEnum] = Field(default=None, description="When to trigger sync for outgoing providers") + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "server_uri", "peer_certificate", "client_certificate", "bind_cn", "bind_password", "start_tls", "sni", "base_dn", "additional_user_dn", "additional_group_dn", "user_object_filter", "group_object_filter", "group_membership_field", "user_membership_attribute", "object_uniqueness_field", "password_login_update_internal_password", "sync_users", "sync_users_password", "sync_groups", "sync_parent_group", "lookup_groups_from_user", "delete_not_found_objects", "sync_outgoing_trigger_mode"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -154,6 +158,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -161,6 +166,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "server_uri": obj.get("server_uri"), "peer_certificate": obj.get("peer_certificate"), "client_certificate": obj.get("client_certificate"), @@ -182,7 +188,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "sync_groups": obj.get("sync_groups"), "sync_parent_group": obj.get("sync_parent_group"), "lookup_groups_from_user": obj.get("lookup_groups_from_user"), - "delete_not_found_objects": obj.get("delete_not_found_objects") + "delete_not_found_objects": obj.get("delete_not_found_objects"), + "sync_outgoing_trigger_mode": obj.get("sync_outgoing_trigger_mode") }) return _obj diff --git a/authentik_client/models/patched_license_request.py b/authentik_client/models/patched_license_request.py index a3028eda8..cdd9b3f03 100644 --- a/authentik_client/models/patched_license_request.py +++ b/authentik_client/models/patched_license_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_microsoft_entra_provider_mapping_request.py b/authentik_client/models/patched_microsoft_entra_provider_mapping_request.py index 36139917a..7d71cbf22 100644 --- a/authentik_client/models/patched_microsoft_entra_provider_mapping_request.py +++ b/authentik_client/models/patched_microsoft_entra_provider_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_microsoft_entra_provider_request.py b/authentik_client/models/patched_microsoft_entra_provider_request.py index dd00fdc7c..71f273b98 100644 --- a/authentik_client/models/patched_microsoft_entra_provider_request.py +++ b/authentik_client/models/patched_microsoft_entra_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,8 +40,10 @@ class PatchedMicrosoftEntraProviderRequest(BaseModel): filter_group: Optional[UUID] = None user_delete_action: Optional[OutgoingSyncDeleteAction] = None group_delete_action: Optional[OutgoingSyncDeleteAction] = None + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "client_id", "client_secret", "tenant_id", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "dry_run"] + __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "client_id", "client_secret", "tenant_id", "exclude_users_service_account", "filter_group", "user_delete_action", "group_delete_action", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -109,6 +111,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "filter_group": obj.get("filter_group"), "user_delete_action": obj.get("user_delete_action"), "group_delete_action": obj.get("group_delete_action"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/patched_mutual_tls_stage_request.py b/authentik_client/models/patched_mutual_tls_stage_request.py index cd9148db2..c2a3afd1a 100644 --- a/authentik_client/models/patched_mutual_tls_stage_request.py +++ b/authentik_client/models/patched_mutual_tls_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,8 +23,7 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.cert_attribute_enum import CertAttributeEnum -from authentik_client.models.flow_set_request import FlowSetRequest -from authentik_client.models.mutual_tls_stage_mode_enum import MutualTLSStageModeEnum +from authentik_client.models.stage_mode_enum import StageModeEnum from authentik_client.models.user_attribute_enum import UserAttributeEnum from typing import Optional, Set from typing_extensions import Self @@ -34,12 +33,11 @@ class PatchedMutualTLSStageRequest(BaseModel): MutualTLSStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None - mode: Optional[MutualTLSStageModeEnum] = None + mode: Optional[StageModeEnum] = None certificate_authorities: Optional[List[UUID]] = Field(default=None, description="Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`.") cert_attribute: Optional[CertAttributeEnum] = None user_attribute: Optional[UserAttributeEnum] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "mode", "certificate_authorities", "cert_attribute", "user_attribute"] + __properties: ClassVar[List[str]] = ["name", "mode", "certificate_authorities", "cert_attribute", "user_attribute"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -100,7 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "mode": obj.get("mode"), "certificate_authorities": obj.get("certificate_authorities"), "cert_attribute": obj.get("cert_attribute"), diff --git a/authentik_client/models/patched_notification_request.py b/authentik_client/models/patched_notification_request.py index e636b09c7..8a5f13c8c 100644 --- a/authentik_client/models/patched_notification_request.py +++ b/authentik_client/models/patched_notification_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,8 +18,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from authentik_client.models.event_request import EventRequest from typing import Optional, Set from typing_extensions import Self @@ -28,9 +29,11 @@ class PatchedNotificationRequest(BaseModel): """ Notification Serializer """ # noqa: E501 + hyperlink: Optional[Annotated[str, Field(strict=True, max_length=4096)]] = None + hyperlink_label: Optional[StrictStr] = None event: Optional[EventRequest] = None seen: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["event", "seen"] + __properties: ClassVar[List[str]] = ["hyperlink", "hyperlink_label", "event", "seen"] model_config = ConfigDict( populate_by_name=True, @@ -74,6 +77,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of event if self.event: _dict['event'] = self.event.to_dict() + # set to None if hyperlink (nullable) is None + # and model_fields_set contains the field + if self.hyperlink is None and "hyperlink" in self.model_fields_set: + _dict['hyperlink'] = None + + # set to None if hyperlink_label (nullable) is None + # and model_fields_set contains the field + if self.hyperlink_label is None and "hyperlink_label" in self.model_fields_set: + _dict['hyperlink_label'] = None + return _dict @classmethod @@ -86,6 +99,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "hyperlink": obj.get("hyperlink"), + "hyperlink_label": obj.get("hyperlink_label"), "event": EventRequest.from_dict(obj["event"]) if obj.get("event") is not None else None, "seen": obj.get("seen") }) diff --git a/authentik_client/models/patched_notification_rule_request.py b/authentik_client/models/patched_notification_rule_request.py index ac6c39d89..983a5d233 100644 --- a/authentik_client/models/patched_notification_rule_request.py +++ b/authentik_client/models/patched_notification_rule_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_notification_transport_request.py b/authentik_client/models/patched_notification_transport_request.py index a1b13a2e9..14e3451f0 100644 --- a/authentik_client/models/patched_notification_transport_request.py +++ b/authentik_client/models/patched_notification_transport_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_notification_webhook_mapping_request.py b/authentik_client/models/patched_notification_webhook_mapping_request.py index 8baf2da86..b3e979dfc 100644 --- a/authentik_client/models/patched_notification_webhook_mapping_request.py +++ b/authentik_client/models/patched_notification_webhook_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_o_auth2_provider_request.py b/authentik_client/models/patched_o_auth2_provider_request.py index fd551d1a3..f7caf1563 100644 --- a/authentik_client/models/patched_o_auth2_provider_request.py +++ b/authentik_client/models/patched_o_auth2_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_o_auth_source_property_mapping_request.py b/authentik_client/models/patched_o_auth_source_property_mapping_request.py index d15cd2f67..7541a2275 100644 --- a/authentik_client/models/patched_o_auth_source_property_mapping_request.py +++ b/authentik_client/models/patched_o_auth_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_o_auth_source_request.py b/authentik_client/models/patched_o_auth_source_request.py index ff082117b..95b2ca78e 100644 --- a/authentik_client/models/patched_o_auth_source_request.py +++ b/authentik_client/models/patched_o_auth_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from uuid import UUID from authentik_client.models.authorization_code_auth_method_enum import AuthorizationCodeAuthMethodEnum from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum +from authentik_client.models.pkce_method_enum import PKCEMethodEnum from authentik_client.models.policy_engine_mode import PolicyEngineMode from authentik_client.models.provider_type_enum import ProviderTypeEnum from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum @@ -35,8 +36,9 @@ class PatchedOAuthSourceRequest(BaseModel): OAuth Source Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Source's display Name.") - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Internal source name, used in URLs.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -44,12 +46,14 @@ class PatchedOAuthSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") provider_type: Optional[ProviderTypeEnum] = None request_token_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used to request the initial token. This URL is only required for OAuth 1.") authorization_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL the user is redirect to to conest the flow.") access_token_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used by authentik to retrieve tokens.") profile_url: Optional[Annotated[str, Field(strict=True, max_length=255)]] = Field(default=None, description="URL used by authentik to get user information.") + pkce: Optional[PKCEMethodEnum] = None consumer_key: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None consumer_secret: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None additional_scopes: Optional[StrictStr] = None @@ -57,7 +61,7 @@ class PatchedOAuthSourceRequest(BaseModel): oidc_jwks_url: Optional[StrictStr] = None oidc_jwks: Optional[Dict[str, Any]] = None authorization_code_auth_method: Optional[AuthorizationCodeAuthMethodEnum] = Field(default=None, description="How to perform authentication during an authorization_code token request flow") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "group_matching_mode", "provider_type", "request_token_url", "authorization_url", "access_token_url", "profile_url", "consumer_key", "consumer_secret", "additional_scopes", "oidc_well_known_url", "oidc_jwks_url", "oidc_jwks", "authorization_code_auth_method"] + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "group_matching_mode", "provider_type", "request_token_url", "authorization_url", "access_token_url", "profile_url", "pkce", "consumer_key", "consumer_secret", "additional_scopes", "oidc_well_known_url", "oidc_jwks_url", "oidc_jwks", "authorization_code_auth_method"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -153,6 +157,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -160,12 +165,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "group_matching_mode": obj.get("group_matching_mode"), "provider_type": obj.get("provider_type"), "request_token_url": obj.get("request_token_url"), "authorization_url": obj.get("authorization_url"), "access_token_url": obj.get("access_token_url"), "profile_url": obj.get("profile_url"), + "pkce": obj.get("pkce"), "consumer_key": obj.get("consumer_key"), "consumer_secret": obj.get("consumer_secret"), "additional_scopes": obj.get("additional_scopes"), diff --git a/authentik_client/models/patched_outpost_request.py b/authentik_client/models/patched_outpost_request.py index 7cfc3c6f9..0d43e6c4d 100644 --- a/authentik_client/models/patched_outpost_request.py +++ b/authentik_client/models/patched_outpost_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_password_expiry_policy_request.py b/authentik_client/models/patched_password_expiry_policy_request.py index 9bfab03ec..2be731de1 100644 --- a/authentik_client/models/patched_password_expiry_policy_request.py +++ b/authentik_client/models/patched_password_expiry_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_password_policy_request.py b/authentik_client/models/patched_password_policy_request.py index 31b8a326b..adcaef502 100644 --- a/authentik_client/models/patched_password_policy_request.py +++ b/authentik_client/models/patched_password_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_password_stage_request.py b/authentik_client/models/patched_password_stage_request.py index 841bbfc38..2f6769b07 100644 --- a/authentik_client/models/patched_password_stage_request.py +++ b/authentik_client/models/patched_password_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,7 +23,6 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.backends_enum import BackendsEnum -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -32,12 +31,11 @@ class PatchedPasswordStageRequest(BaseModel): PasswordStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None backends: Optional[List[BackendsEnum]] = Field(default=None, description="Selection of backends to test the password against.") configure_flow: Optional[UUID] = Field(default=None, description="Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.") failed_attempts_before_cancel: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=-2147483648)]] = Field(default=None, description="How many attempts a user has before the flow is canceled. To lock the user out, use a reputation policy and a user_write stage.") allow_show_password: Optional[StrictBool] = Field(default=None, description="When enabled, provides a 'show password' button with the password input field.") - __properties: ClassVar[List[str]] = ["name", "flow_set", "backends", "configure_flow", "failed_attempts_before_cancel", "allow_show_password"] + __properties: ClassVar[List[str]] = ["name", "backends", "configure_flow", "failed_attempts_before_cancel", "allow_show_password"] model_config = ConfigDict( populate_by_name=True, @@ -78,13 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if configure_flow (nullable) is None # and model_fields_set contains the field if self.configure_flow is None and "configure_flow" in self.model_fields_set: @@ -103,7 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "backends": obj.get("backends"), "configure_flow": obj.get("configure_flow"), "failed_attempts_before_cancel": obj.get("failed_attempts_before_cancel"), diff --git a/authentik_client/models/patched_permission_assign_request.py b/authentik_client/models/patched_permission_assign_request.py index 127fec719..2e82b8ff9 100644 --- a/authentik_client/models/patched_permission_assign_request.py +++ b/authentik_client/models/patched_permission_assign_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_plex_source_property_mapping_request.py b/authentik_client/models/patched_plex_source_property_mapping_request.py index 5ee5c3aff..31f9c1ab8 100644 --- a/authentik_client/models/patched_plex_source_property_mapping_request.py +++ b/authentik_client/models/patched_plex_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_plex_source_request.py b/authentik_client/models/patched_plex_source_request.py index 0f5c92c65..a1fe63a1b 100644 --- a/authentik_client/models/patched_plex_source_request.py +++ b/authentik_client/models/patched_plex_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID @@ -33,8 +33,9 @@ class PatchedPlexSourceRequest(BaseModel): Plex Source Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Source's display Name.") - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Internal source name, used in URLs.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -42,12 +43,13 @@ class PatchedPlexSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") client_id: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Client identifier used to talk to Plex.") allowed_servers: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="Which servers a user has to be a member of to be granted access. Empty list allows every server.") allow_friends: Optional[StrictBool] = Field(default=None, description="Allow friends to authenticate, even if you don't share a server.") plex_token: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Plex token used to check friends") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "group_matching_mode", "client_id", "allowed_servers", "allow_friends", "plex_token"] + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "group_matching_mode", "client_id", "allowed_servers", "allow_friends", "plex_token"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -123,6 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -130,6 +133,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "group_matching_mode": obj.get("group_matching_mode"), "client_id": obj.get("client_id"), "allowed_servers": obj.get("allowed_servers"), diff --git a/authentik_client/models/patched_policy_binding_request.py b/authentik_client/models/patched_policy_binding_request.py index 944dd214c..ac97794c2 100644 --- a/authentik_client/models/patched_policy_binding_request.py +++ b/authentik_client/models/patched_policy_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_prompt_request.py b/authentik_client/models/patched_prompt_request.py index 413cdf281..e8c4328e6 100644 --- a/authentik_client/models/patched_prompt_request.py +++ b/authentik_client/models/patched_prompt_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_prompt_stage_request.py b/authentik_client/models/patched_prompt_stage_request.py index edec0eded..5d2d2e2f3 100644 --- a/authentik_client/models/patched_prompt_stage_request.py +++ b/authentik_client/models/patched_prompt_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,10 +30,9 @@ class PatchedPromptStageRequest(BaseModel): PromptStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None fields: Optional[List[UUID]] = None validation_policies: Optional[List[UUID]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "fields", "validation_policies"] + __properties: ClassVar[List[str]] = ["name", "fields", "validation_policies"] model_config = ConfigDict( populate_by_name=True, @@ -75,13 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -95,7 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "fields": obj.get("fields"), "validation_policies": obj.get("validation_policies") }) diff --git a/authentik_client/models/patched_proxy_provider_request.py b/authentik_client/models/patched_proxy_provider_request.py index 31a1cd656..730f8a86b 100644 --- a/authentik_client/models/patched_proxy_provider_request.py +++ b/authentik_client/models/patched_proxy_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_rac_property_mapping_request.py b/authentik_client/models/patched_rac_property_mapping_request.py index de35c5e15..b45f2b6dc 100644 --- a/authentik_client/models/patched_rac_property_mapping_request.py +++ b/authentik_client/models/patched_rac_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_rac_provider_request.py b/authentik_client/models/patched_rac_provider_request.py index ac3697cd3..537f85162 100644 --- a/authentik_client/models/patched_rac_provider_request.py +++ b/authentik_client/models/patched_rac_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_radius_provider_property_mapping_request.py b/authentik_client/models/patched_radius_provider_property_mapping_request.py index 91b36e361..16cdd33f4 100644 --- a/authentik_client/models/patched_radius_provider_property_mapping_request.py +++ b/authentik_client/models/patched_radius_provider_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_radius_provider_request.py b/authentik_client/models/patched_radius_provider_request.py index e2f2e36d6..f2fa8c703 100644 --- a/authentik_client/models/patched_radius_provider_request.py +++ b/authentik_client/models/patched_radius_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_redirect_stage_request.py b/authentik_client/models/patched_redirect_stage_request.py index 4d5aeb595..96a67e2d6 100644 --- a/authentik_client/models/patched_redirect_stage_request.py +++ b/authentik_client/models/patched_redirect_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.redirect_stage_mode_enum import RedirectStageModeEnum from typing import Optional, Set from typing_extensions import Self @@ -32,12 +31,11 @@ class PatchedRedirectStageRequest(BaseModel): RedirectStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None keep_context: Optional[StrictBool] = None mode: Optional[RedirectStageModeEnum] = None target_static: Optional[StrictStr] = None target_flow: Optional[UUID] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "keep_context", "mode", "target_static", "target_flow"] + __properties: ClassVar[List[str]] = ["name", "keep_context", "mode", "target_static", "target_flow"] model_config = ConfigDict( populate_by_name=True, @@ -78,13 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if target_flow (nullable) is None # and model_fields_set contains the field if self.target_flow is None and "target_flow" in self.model_fields_set: @@ -103,7 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "keep_context": obj.get("keep_context"), "mode": obj.get("mode"), "target_static": obj.get("target_static"), diff --git a/authentik_client/models/patched_reputation_policy_request.py b/authentik_client/models/patched_reputation_policy_request.py index 415fb6de8..6012a526a 100644 --- a/authentik_client/models/patched_reputation_policy_request.py +++ b/authentik_client/models/patched_reputation_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_role_request.py b/authentik_client/models/patched_role_request.py index ac9d6f555..226b50eaa 100644 --- a/authentik_client/models/patched_role_request.py +++ b/authentik_client/models/patched_role_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_saml_property_mapping_request.py b/authentik_client/models/patched_saml_property_mapping_request.py index 6846aed64..c5b7847a5 100644 --- a/authentik_client/models/patched_saml_property_mapping_request.py +++ b/authentik_client/models/patched_saml_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_saml_provider_request.py b/authentik_client/models/patched_saml_provider_request.py index f660e86d5..978479a2b 100644 --- a/authentik_client/models/patched_saml_provider_request.py +++ b/authentik_client/models/patched_saml_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_saml_source_property_mapping_request.py b/authentik_client/models/patched_saml_source_property_mapping_request.py index fca0c4cf0..00ad8695d 100644 --- a/authentik_client/models/patched_saml_source_property_mapping_request.py +++ b/authentik_client/models/patched_saml_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_saml_source_request.py b/authentik_client/models/patched_saml_source_request.py index 6546e162c..bed36caac 100644 --- a/authentik_client/models/patched_saml_source_request.py +++ b/authentik_client/models/patched_saml_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,8 +37,9 @@ class PatchedSAMLSourceRequest(BaseModel): SAMLSource Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Source's display Name.") - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Internal source name, used in URLs.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -46,6 +47,7 @@ class PatchedSAMLSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") pre_authentication_flow: Optional[UUID] = Field(default=None, description="Flow used before authentication.") issuer: Optional[StrictStr] = Field(default=None, description="Also known as Entity ID. Defaults the Metadata URL.") @@ -62,7 +64,7 @@ class PatchedSAMLSourceRequest(BaseModel): encryption_kp: Optional[UUID] = Field(default=None, description="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.") signed_assertion: Optional[StrictBool] = None signed_response: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "group_matching_mode", "pre_authentication_flow", "issuer", "sso_url", "slo_url", "allow_idp_initiated", "name_id_policy", "binding_type", "verification_kp", "signing_kp", "digest_algorithm", "signature_algorithm", "temporary_user_delete_after", "encryption_kp", "signed_assertion", "signed_response"] + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "group_matching_mode", "pre_authentication_flow", "issuer", "sso_url", "slo_url", "allow_idp_initiated", "name_id_policy", "binding_type", "verification_kp", "signing_kp", "digest_algorithm", "signature_algorithm", "temporary_user_delete_after", "encryption_kp", "signed_assertion", "signed_response"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -158,6 +160,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -165,6 +168,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "group_matching_mode": obj.get("group_matching_mode"), "pre_authentication_flow": obj.get("pre_authentication_flow"), "issuer": obj.get("issuer"), diff --git a/authentik_client/models/patched_schedule_request.py b/authentik_client/models/patched_schedule_request.py index 6a7fe6b05..d86dd875d 100644 --- a/authentik_client/models/patched_schedule_request.py +++ b/authentik_client/models/patched_schedule_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_scim_mapping_request.py b/authentik_client/models/patched_scim_mapping_request.py index 372db4b39..1b114ac72 100644 --- a/authentik_client/models/patched_scim_mapping_request.py +++ b/authentik_client/models/patched_scim_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_scim_provider_request.py b/authentik_client/models/patched_scim_provider_request.py index f9896b540..0638bed3b 100644 --- a/authentik_client/models/patched_scim_provider_request.py +++ b/authentik_client/models/patched_scim_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,10 +41,13 @@ class PatchedSCIMProviderRequest(BaseModel): auth_oauth: Optional[UUID] = Field(default=None, description="OAuth Source used for authentication") auth_oauth_params: Optional[Dict[str, Any]] = Field(default=None, description="Additional OAuth parameters, such as grant_type") compatibility_mode: Optional[CompatibilityModeEnum] = Field(default=None, description="Alter authentik behavior for vendor-specific SCIM implementations.") + service_provider_config_cache_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Cache duration for ServiceProviderConfig responses. Set minutes=0 to disable.") exclude_users_service_account: Optional[StrictBool] = None filter_group: Optional[UUID] = None + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "url", "verify_certificates", "token", "auth_mode", "auth_oauth", "auth_oauth_params", "compatibility_mode", "exclude_users_service_account", "filter_group", "dry_run"] + __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "url", "verify_certificates", "token", "auth_mode", "auth_oauth", "auth_oauth_params", "compatibility_mode", "service_provider_config_cache_timeout", "exclude_users_service_account", "filter_group", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -117,8 +120,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "auth_oauth": obj.get("auth_oauth"), "auth_oauth_params": obj.get("auth_oauth_params"), "compatibility_mode": obj.get("compatibility_mode"), + "service_provider_config_cache_timeout": obj.get("service_provider_config_cache_timeout"), "exclude_users_service_account": obj.get("exclude_users_service_account"), "filter_group": obj.get("filter_group"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/patched_scim_source_group_request.py b/authentik_client/models/patched_scim_source_group_request.py index 0c710d061..409381017 100644 --- a/authentik_client/models/patched_scim_source_group_request.py +++ b/authentik_client/models/patched_scim_source_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_scim_source_property_mapping_request.py b/authentik_client/models/patched_scim_source_property_mapping_request.py index 71fe97d5b..908c3b7d1 100644 --- a/authentik_client/models/patched_scim_source_property_mapping_request.py +++ b/authentik_client/models/patched_scim_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_scim_source_request.py b/authentik_client/models/patched_scim_source_request.py index 892e9c948..cc2aed416 100644 --- a/authentik_client/models/patched_scim_source_request.py +++ b/authentik_client/models/patched_scim_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,7 +30,7 @@ class PatchedSCIMSourceRequest(BaseModel): SCIMSource Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Source's display Name.") - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Internal source name, used in URLs.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None user_property_mappings: Optional[List[UUID]] = None group_property_mappings: Optional[List[UUID]] = None diff --git a/authentik_client/models/patched_scim_source_user_request.py b/authentik_client/models/patched_scim_source_user_request.py index 706fff6af..3d5c9fd2c 100644 --- a/authentik_client/models/patched_scim_source_user_request.py +++ b/authentik_client/models/patched_scim_source_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_scope_mapping_request.py b/authentik_client/models/patched_scope_mapping_request.py index 70fb8a317..ab8273b23 100644 --- a/authentik_client/models/patched_scope_mapping_request.py +++ b/authentik_client/models/patched_scope_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_settings_request.py b/authentik_client/models/patched_settings_request.py index 01dc7714f..794e08cea 100644 --- a/authentik_client/models/patched_settings_request.py +++ b/authentik_client/models/patched_settings_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,8 +42,10 @@ class PatchedSettingsRequest(BaseModel): impersonation_require_reason: Optional[StrictBool] = Field(default=None, description="Require administrators to provide a reason for impersonating a user.") default_token_duration: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Default token duration") default_token_length: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Default token length") + pagination_default_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Default page size for API responses, if no size was requested.") + pagination_max_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Maximum page size") flags: Optional[PatchedSettingsRequestFlags] = None - __properties: ClassVar[List[str]] = ["avatars", "default_user_change_name", "default_user_change_email", "default_user_change_username", "event_retention", "reputation_lower_limit", "reputation_upper_limit", "footer_links", "gdpr_compliance", "impersonation", "impersonation_require_reason", "default_token_duration", "default_token_length", "flags"] + __properties: ClassVar[List[str]] = ["avatars", "default_user_change_name", "default_user_change_email", "default_user_change_username", "event_retention", "reputation_lower_limit", "reputation_upper_limit", "footer_links", "gdpr_compliance", "impersonation", "impersonation_require_reason", "default_token_duration", "default_token_length", "pagination_default_page_size", "pagination_max_page_size", "flags"] model_config = ConfigDict( populate_by_name=True, @@ -117,6 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "impersonation_require_reason": obj.get("impersonation_require_reason"), "default_token_duration": obj.get("default_token_duration"), "default_token_length": obj.get("default_token_length"), + "pagination_default_page_size": obj.get("pagination_default_page_size"), + "pagination_max_page_size": obj.get("pagination_max_page_size"), "flags": PatchedSettingsRequestFlags.from_dict(obj["flags"]) if obj.get("flags") is not None else None }) return _obj diff --git a/authentik_client/models/patched_settings_request_flags.py b/authentik_client/models/patched_settings_request_flags.py index 354c48f68..e1c3c2655 100644 --- a/authentik_client/models/patched_settings_request_flags.py +++ b/authentik_client/models/patched_settings_request_flags.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,7 +28,9 @@ class PatchedSettingsRequestFlags(BaseModel): PatchedSettingsRequestFlags """ # noqa: E501 policies_buffered_access_view: StrictBool - __properties: ClassVar[List[str]] = ["policies_buffered_access_view"] + flows_continuous_login: StrictBool + flows_refresh_others: StrictBool + __properties: ClassVar[List[str]] = ["policies_buffered_access_view", "flows_continuous_login", "flows_refresh_others"] model_config = ConfigDict( populate_by_name=True, @@ -81,7 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "policies_buffered_access_view": obj.get("policies_buffered_access_view") + "policies_buffered_access_view": obj.get("policies_buffered_access_view"), + "flows_continuous_login": obj.get("flows_continuous_login"), + "flows_refresh_others": obj.get("flows_refresh_others") }) return _obj diff --git a/authentik_client/models/patched_sms_device_request.py b/authentik_client/models/patched_sms_device_request.py index e7d1efd40..503076405 100644 --- a/authentik_client/models/patched_sms_device_request.py +++ b/authentik_client/models/patched_sms_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_source_stage_request.py b/authentik_client/models/patched_source_stage_request.py index a96e8efa4..9d4077995 100644 --- a/authentik_client/models/patched_source_stage_request.py +++ b/authentik_client/models/patched_source_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,10 +30,9 @@ class PatchedSourceStageRequest(BaseModel): SourceStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None source: Optional[UUID] = None resume_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)") - __properties: ClassVar[List[str]] = ["name", "flow_set", "source", "resume_timeout"] + __properties: ClassVar[List[str]] = ["name", "source", "resume_timeout"] model_config = ConfigDict( populate_by_name=True, @@ -75,13 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -95,7 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "source": obj.get("source"), "resume_timeout": obj.get("resume_timeout") }) diff --git a/authentik_client/models/patched_ssf_provider_request.py b/authentik_client/models/patched_ssf_provider_request.py index 1b787fd99..3f93968a2 100644 --- a/authentik_client/models/patched_ssf_provider_request.py +++ b/authentik_client/models/patched_ssf_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_static_device_request.py b/authentik_client/models/patched_static_device_request.py index 7fb164851..c01d588b0 100644 --- a/authentik_client/models/patched_static_device_request.py +++ b/authentik_client/models/patched_static_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_telegram_source_property_mapping_request.py b/authentik_client/models/patched_telegram_source_property_mapping_request.py index c5b9ccf8e..1d004255e 100644 --- a/authentik_client/models/patched_telegram_source_property_mapping_request.py +++ b/authentik_client/models/patched_telegram_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_telegram_source_request.py b/authentik_client/models/patched_telegram_source_request.py index a818cec96..d8ac13f25 100644 --- a/authentik_client/models/patched_telegram_source_request.py +++ b/authentik_client/models/patched_telegram_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID @@ -32,8 +32,9 @@ class PatchedTelegramSourceRequest(BaseModel): Source Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Source's display Name.") - slug: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=50)]] = Field(default=None, description="Internal source name, used in URLs.") + slug: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -41,11 +42,12 @@ class PatchedTelegramSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None bot_username: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Telegram bot username") bot_token: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Telegram bot token") request_message_access: Optional[StrictBool] = Field(default=None, description="Request access to send messages from your bot.") pre_authentication_flow: Optional[UUID] = Field(default=None, description="Flow used before authentication.") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "bot_username", "bot_token", "request_message_access", "pre_authentication_flow"] + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "bot_username", "bot_token", "request_message_access", "pre_authentication_flow"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -121,6 +123,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -128,6 +131,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "bot_username": obj.get("bot_username"), "bot_token": obj.get("bot_token"), "request_message_access": obj.get("request_message_access"), diff --git a/authentik_client/models/patched_tenant_request.py b/authentik_client/models/patched_tenant_request.py index 21185b663..f2831a583 100644 --- a/authentik_client/models/patched_tenant_request.py +++ b/authentik_client/models/patched_tenant_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_token_request.py b/authentik_client/models/patched_token_request.py index 9ae64bb39..31e1546af 100644 --- a/authentik_client/models/patched_token_request.py +++ b/authentik_client/models/patched_token_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_totp_device_request.py b/authentik_client/models/patched_totp_device_request.py index ecec7e608..2b685d9c0 100644 --- a/authentik_client/models/patched_totp_device_request.py +++ b/authentik_client/models/patched_totp_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_unique_password_policy_request.py b/authentik_client/models/patched_unique_password_policy_request.py index 933254579..e4d677018 100644 --- a/authentik_client/models/patched_unique_password_policy_request.py +++ b/authentik_client/models/patched_unique_password_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_user_delete_stage_request.py b/authentik_client/models/patched_user_delete_stage_request.py index 1f326af1d..1ddb493a9 100644 --- a/authentik_client/models/patched_user_delete_stage_request.py +++ b/authentik_client/models/patched_user_delete_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,8 +29,7 @@ class PatchedUserDeleteStageRequest(BaseModel): UserDeleteStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -72,13 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -91,8 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None + "name": obj.get("name") }) return _obj diff --git a/authentik_client/models/patched_user_kerberos_source_connection_request.py b/authentik_client/models/patched_user_kerberos_source_connection_request.py index ead578cac..6980b99ab 100644 --- a/authentik_client/models/patched_user_kerberos_source_connection_request.py +++ b/authentik_client/models/patched_user_kerberos_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_user_ldap_source_connection_request.py b/authentik_client/models/patched_user_ldap_source_connection_request.py index 50c1c35e4..810d9d20e 100644 --- a/authentik_client/models/patched_user_ldap_source_connection_request.py +++ b/authentik_client/models/patched_user_ldap_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_user_login_stage_request.py b/authentik_client/models/patched_user_login_stage_request.py index 83a743716..7f60da2c7 100644 --- a/authentik_client/models/patched_user_login_stage_request.py +++ b/authentik_client/models/patched_user_login_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.geoip_binding_enum import GeoipBindingEnum from authentik_client.models.network_binding_enum import NetworkBindingEnum from typing import Optional, Set @@ -32,14 +31,13 @@ class PatchedUserLoginStageRequest(BaseModel): UserLoginStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None session_duration: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3)") terminate_other_sessions: Optional[StrictBool] = Field(default=None, description="Terminate all other sessions of the user logging in.") remember_me_offset: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Offset the session will be extended by when the user picks the remember me option. Default of 0 means that the remember me option will not be shown. (Format: hours=-1;minutes=-2;seconds=-3)") network_binding: Optional[NetworkBindingEnum] = Field(default=None, description="Bind sessions created by this stage to the configured network") geoip_binding: Optional[GeoipBindingEnum] = Field(default=None, description="Bind sessions created by this stage to the configured GeoIP location") remember_device: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="When set to a non-zero value, authentik will save a cookie with a longer expiry,to remember the device the user is logging in from. (Format: hours=-1;minutes=-2;seconds=-3)") - __properties: ClassVar[List[str]] = ["name", "flow_set", "session_duration", "terminate_other_sessions", "remember_me_offset", "network_binding", "geoip_binding", "remember_device"] + __properties: ClassVar[List[str]] = ["name", "session_duration", "terminate_other_sessions", "remember_me_offset", "network_binding", "geoip_binding", "remember_device"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -100,7 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "session_duration": obj.get("session_duration"), "terminate_other_sessions": obj.get("terminate_other_sessions"), "remember_me_offset": obj.get("remember_me_offset"), diff --git a/authentik_client/models/patched_user_logout_stage_request.py b/authentik_client/models/patched_user_logout_stage_request.py index a1e704efc..878e30dee 100644 --- a/authentik_client/models/patched_user_logout_stage_request.py +++ b/authentik_client/models/patched_user_logout_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,8 +29,7 @@ class PatchedUserLogoutStageRequest(BaseModel): UserLogoutStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -72,13 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -91,8 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None + "name": obj.get("name") }) return _obj diff --git a/authentik_client/models/patched_user_o_auth_source_connection_request.py b/authentik_client/models/patched_user_o_auth_source_connection_request.py index 44ac8130e..2b26771f3 100644 --- a/authentik_client/models/patched_user_o_auth_source_connection_request.py +++ b/authentik_client/models/patched_user_o_auth_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_user_plex_source_connection_request.py b/authentik_client/models/patched_user_plex_source_connection_request.py index a02d33183..99f0742a7 100644 --- a/authentik_client/models/patched_user_plex_source_connection_request.py +++ b/authentik_client/models/patched_user_plex_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_user_request.py b/authentik_client/models/patched_user_request.py index f7292412d..6c41e71f8 100644 --- a/authentik_client/models/patched_user_request.py +++ b/authentik_client/models/patched_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,11 +36,12 @@ class PatchedUserRequest(BaseModel): is_active: Optional[StrictBool] = Field(default=None, description="Designates whether this user should be treated as active. Unselect this instead of deleting accounts.") last_login: Optional[datetime] = None groups: Optional[List[UUID]] = None + roles: Optional[List[UUID]] = None email: Optional[Annotated[str, Field(strict=True, max_length=254)]] = None attributes: Optional[Dict[str, Any]] = None path: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None type: Optional[UserTypeEnum] = None - __properties: ClassVar[List[str]] = ["username", "name", "is_active", "last_login", "groups", "email", "attributes", "path", "type"] + __properties: ClassVar[List[str]] = ["username", "name", "is_active", "last_login", "groups", "roles", "email", "attributes", "path", "type"] model_config = ConfigDict( populate_by_name=True, @@ -103,6 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_active": obj.get("is_active"), "last_login": obj.get("last_login"), "groups": obj.get("groups"), + "roles": obj.get("roles"), "email": obj.get("email"), "attributes": obj.get("attributes"), "path": obj.get("path"), diff --git a/authentik_client/models/patched_user_saml_source_connection_request.py b/authentik_client/models/patched_user_saml_source_connection_request.py index fc363b38d..2a6fbc3c2 100644 --- a/authentik_client/models/patched_user_saml_source_connection_request.py +++ b/authentik_client/models/patched_user_saml_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_user_source_connection_request.py b/authentik_client/models/patched_user_source_connection_request.py index 6d1199b85..d3e4ce9e7 100644 --- a/authentik_client/models/patched_user_source_connection_request.py +++ b/authentik_client/models/patched_user_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_user_telegram_source_connection_request.py b/authentik_client/models/patched_user_telegram_source_connection_request.py index a694f42ab..3de03d698 100644 --- a/authentik_client/models/patched_user_telegram_source_connection_request.py +++ b/authentik_client/models/patched_user_telegram_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/patched_user_write_stage_request.py b/authentik_client/models/patched_user_write_stage_request.py index ad8a73280..6a7388ec5 100644 --- a/authentik_client/models/patched_user_write_stage_request.py +++ b/authentik_client/models/patched_user_write_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.user_creation_mode_enum import UserCreationModeEnum from authentik_client.models.user_type_enum import UserTypeEnum from typing import Optional, Set @@ -33,13 +32,12 @@ class PatchedUserWriteStageRequest(BaseModel): UserWriteStage Serializer """ # noqa: E501 name: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None - flow_set: Optional[List[FlowSetRequest]] = None user_creation_mode: Optional[UserCreationModeEnum] = None create_users_as_inactive: Optional[StrictBool] = Field(default=None, description="When set, newly created users are inactive and cannot login.") create_users_group: Optional[UUID] = Field(default=None, description="Optionally add newly created users to this group.") user_type: Optional[UserTypeEnum] = None user_path_template: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "user_creation_mode", "create_users_as_inactive", "create_users_group", "user_type", "user_path_template"] + __properties: ClassVar[List[str]] = ["name", "user_creation_mode", "create_users_as_inactive", "create_users_group", "user_type", "user_path_template"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if create_users_group (nullable) is None # and model_fields_set contains the field if self.create_users_group is None and "create_users_group" in self.model_fields_set: @@ -105,7 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "user_creation_mode": obj.get("user_creation_mode"), "create_users_as_inactive": obj.get("create_users_as_inactive"), "create_users_group": obj.get("create_users_group"), diff --git a/authentik_client/models/patched_web_authn_device_request.py b/authentik_client/models/patched_web_authn_device_request.py index cc0ae342d..83432a17f 100644 --- a/authentik_client/models/patched_web_authn_device_request.py +++ b/authentik_client/models/patched_web_authn_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/permission.py b/authentik_client/models/permission.py index 10a14184a..33112946a 100644 --- a/authentik_client/models/permission.py +++ b/authentik_client/models/permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/permission_assign_request.py b/authentik_client/models/permission_assign_request.py index 7dc28129e..e87cff9cf 100644 --- a/authentik_client/models/permission_assign_request.py +++ b/authentik_client/models/permission_assign_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/permission_assign_result.py b/authentik_client/models/permission_assign_result.py index ae27d96de..69c0f68ce 100644 --- a/authentik_client/models/permission_assign_result.py +++ b/authentik_client/models/permission_assign_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/initial_permissions_mode_enum.py b/authentik_client/models/pkce_method_enum.py similarity index 66% rename from authentik_client/models/initial_permissions_mode_enum.py rename to authentik_client/models/pkce_method_enum.py index ada175d86..102aa4464 100644 --- a/authentik_client/models/initial_permissions_mode_enum.py +++ b/authentik_client/models/pkce_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,20 +19,21 @@ from typing_extensions import Self -class InitialPermissionsModeEnum(str, Enum): +class PKCEMethodEnum(str, Enum): """ - InitialPermissionsModeEnum + PKCEMethodEnum """ """ allowed enum values """ - USER = 'user' - ROLE = 'role' + NONE = 'none' + PLAIN = 'plain' + S256 = 'S256' @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of InitialPermissionsModeEnum from a JSON string""" + """Create an instance of PKCEMethodEnum from a JSON string""" return cls(json.loads(json_str)) diff --git a/authentik_client/models/plex_authentication_challenge.py b/authentik_client/models/plex_authentication_challenge.py index b13371d97..6243f7bf8 100644 --- a/authentik_client/models/plex_authentication_challenge.py +++ b/authentik_client/models/plex_authentication_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/plex_authentication_challenge_response_request.py b/authentik_client/models/plex_authentication_challenge_response_request.py index 31e0aeffa..6a5bb46e5 100644 --- a/authentik_client/models/plex_authentication_challenge_response_request.py +++ b/authentik_client/models/plex_authentication_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/plex_source.py b/authentik_client/models/plex_source.py index 88a10ed25..c71f9834d 100644 --- a/authentik_client/models/plex_source.py +++ b/authentik_client/models/plex_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from uuid import UUID from authentik_client.models.group_matching_mode_enum import GroupMatchingModeEnum from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -34,8 +35,9 @@ class PlexSource(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Source's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -48,13 +50,15 @@ class PlexSource(BaseModel): user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") managed: Optional[StrictStr] = Field(description="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.") user_path_template: Optional[StrictStr] = None - icon: StrictStr + icon: Optional[StrictStr] = None + icon_url: StrictStr + icon_themed_urls: Optional[ThemedUrls] group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") client_id: Optional[StrictStr] = Field(default=None, description="Client identifier used to talk to Plex.") allowed_servers: Optional[List[StrictStr]] = Field(default=None, description="Which servers a user has to be a member of to be granted access. Empty list allows every server.") allow_friends: Optional[StrictBool] = Field(default=None, description="Allow friends to authenticate, even if you don't share a server.") plex_token: StrictStr = Field(description="Plex token used to check friends") - __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "group_matching_mode", "client_id", "allowed_servers", "allow_friends", "plex_token"] + __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "icon_url", "icon_themed_urls", "group_matching_mode", "client_id", "allowed_servers", "allow_friends", "plex_token"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -100,6 +104,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -108,7 +113,8 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name_plural", "meta_model_name", "managed", - "icon", + "icon_url", + "icon_themed_urls", ]) _dict = self.model_dump( @@ -116,6 +122,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of icon_themed_urls + if self.icon_themed_urls: + _dict['icon_themed_urls'] = self.icon_themed_urls.to_dict() # set to None if authentication_flow (nullable) is None # and model_fields_set contains the field if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: @@ -131,6 +140,11 @@ def to_dict(self) -> Dict[str, Any]: if self.managed is None and "managed" in self.model_fields_set: _dict['managed'] = None + # set to None if icon_themed_urls (nullable) is None + # and model_fields_set contains the field + if self.icon_themed_urls is None and "icon_themed_urls" in self.model_fields_set: + _dict['icon_themed_urls'] = None + return _dict @classmethod @@ -147,6 +161,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -160,6 +175,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "managed": obj.get("managed"), "user_path_template": obj.get("user_path_template"), "icon": obj.get("icon"), + "icon_url": obj.get("icon_url"), + "icon_themed_urls": ThemedUrls.from_dict(obj["icon_themed_urls"]) if obj.get("icon_themed_urls") is not None else None, "group_matching_mode": obj.get("group_matching_mode"), "client_id": obj.get("client_id"), "allowed_servers": obj.get("allowed_servers"), diff --git a/authentik_client/models/plex_source_property_mapping.py b/authentik_client/models/plex_source_property_mapping.py index ff5658a14..95775433e 100644 --- a/authentik_client/models/plex_source_property_mapping.py +++ b/authentik_client/models/plex_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/plex_source_property_mapping_request.py b/authentik_client/models/plex_source_property_mapping_request.py index 30957c1a8..02c70dffe 100644 --- a/authentik_client/models/plex_source_property_mapping_request.py +++ b/authentik_client/models/plex_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/plex_source_request.py b/authentik_client/models/plex_source_request.py index c8098f30b..77b6c2612 100644 --- a/authentik_client/models/plex_source_request.py +++ b/authentik_client/models/plex_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID @@ -33,8 +33,9 @@ class PlexSourceRequest(BaseModel): Plex Source Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Source's display Name.") - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -42,12 +43,13 @@ class PlexSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") client_id: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Client identifier used to talk to Plex.") allowed_servers: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, description="Which servers a user has to be a member of to be granted access. Empty list allows every server.") allow_friends: Optional[StrictBool] = Field(default=None, description="Allow friends to authenticate, even if you don't share a server.") plex_token: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Plex token used to check friends") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "group_matching_mode", "client_id", "allowed_servers", "allow_friends", "plex_token"] + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "group_matching_mode", "client_id", "allowed_servers", "allow_friends", "plex_token"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -120,6 +122,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -127,6 +130,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "group_matching_mode": obj.get("group_matching_mode"), "client_id": obj.get("client_id"), "allowed_servers": obj.get("allowed_servers"), diff --git a/authentik_client/models/plex_token_redeem_request.py b/authentik_client/models/plex_token_redeem_request.py index 9b2542d2e..fe29ebad4 100644 --- a/authentik_client/models/plex_token_redeem_request.py +++ b/authentik_client/models/plex_token_redeem_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/policy.py b/authentik_client/models/policy.py index 061dc900f..ba9ff4de2 100644 --- a/authentik_client/models/policy.py +++ b/authentik_client/models/policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/policy_binding.py b/authentik_client/models/policy_binding.py index 7b1b44524..eb5ced948 100644 --- a/authentik_client/models/policy_binding.py +++ b/authentik_client/models/policy_binding.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/policy_binding_request.py b/authentik_client/models/policy_binding_request.py index 6f9ca7b04..e1e27c7e4 100644 --- a/authentik_client/models/policy_binding_request.py +++ b/authentik_client/models/policy_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/policy_engine_mode.py b/authentik_client/models/policy_engine_mode.py index f50fc22fb..eb2dd066b 100644 --- a/authentik_client/models/policy_engine_mode.py +++ b/authentik_client/models/policy_engine_mode.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/policy_test_request.py b/authentik_client/models/policy_test_request.py index 133996828..cf69f5b65 100644 --- a/authentik_client/models/policy_test_request.py +++ b/authentik_client/models/policy_test_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/policy_test_result.py b/authentik_client/models/policy_test_result.py index fa6a39623..557512277 100644 --- a/authentik_client/models/policy_test_result.py +++ b/authentik_client/models/policy_test_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/process.py b/authentik_client/models/process.py new file mode 100644 index 000000000..013e9e9ae --- /dev/null +++ b/authentik_client/models/process.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Process(BaseModel): + """ + Process + """ # noqa: E501 + id: StrictInt + name: StrictStr + user: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "name", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Process from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Process from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "user": obj.get("user") + }) + return _obj + + diff --git a/authentik_client/models/process_request.py b/authentik_client/models/process_request.py new file mode 100644 index 000000000..a669dd3ff --- /dev/null +++ b/authentik_client/models/process_request.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ProcessRequest(BaseModel): + """ + ProcessRequest + """ # noqa: E501 + id: StrictInt + name: Annotated[str, Field(min_length=1, strict=True)] + user: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + __properties: ClassVar[List[str]] = ["id", "name", "user"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ProcessRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ProcessRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "user": obj.get("user") + }) + return _obj + + diff --git a/authentik_client/models/prompt.py b/authentik_client/models/prompt.py index 1fefd0a81..c9f7cc702 100644 --- a/authentik_client/models/prompt.py +++ b/authentik_client/models/prompt.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/prompt_challenge.py b/authentik_client/models/prompt_challenge.py index 44e47704d..280275d64 100644 --- a/authentik_client/models/prompt_challenge.py +++ b/authentik_client/models/prompt_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/prompt_challenge_response_request.py b/authentik_client/models/prompt_challenge_response_request.py index 3fe84d283..6d31f618d 100644 --- a/authentik_client/models/prompt_challenge_response_request.py +++ b/authentik_client/models/prompt_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/prompt_choice.py b/authentik_client/models/prompt_choice.py new file mode 100644 index 000000000..e7e9ec5d6 --- /dev/null +++ b/authentik_client/models/prompt_choice.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class PromptChoice(BaseModel): + """ + Serializer for a single Choice field + """ # noqa: E501 + value: StrictStr + label: StrictStr + __properties: ClassVar[List[str]] = ["value", "label"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PromptChoice from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PromptChoice from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "value": obj.get("value"), + "label": obj.get("label") + }) + return _obj + + diff --git a/authentik_client/models/prompt_request.py b/authentik_client/models/prompt_request.py index e34723782..2884d2403 100644 --- a/authentik_client/models/prompt_request.py +++ b/authentik_client/models/prompt_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/prompt_stage.py b/authentik_client/models/prompt_stage.py index 22839c36d..11d1fb643 100644 --- a/authentik_client/models/prompt_stage.py +++ b/authentik_client/models/prompt_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class PromptStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] fields: List[UUID] validation_policies: Optional[List[UUID]] = None __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "fields", "validation_policies"] @@ -75,6 +75,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -82,6 +83,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/prompt_stage_request.py b/authentik_client/models/prompt_stage_request.py index 3bb8cf807..2cdcde1c8 100644 --- a/authentik_client/models/prompt_stage_request.py +++ b/authentik_client/models/prompt_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,10 +30,9 @@ class PromptStageRequest(BaseModel): PromptStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None fields: List[UUID] validation_policies: Optional[List[UUID]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "fields", "validation_policies"] + __properties: ClassVar[List[str]] = ["name", "fields", "validation_policies"] model_config = ConfigDict( populate_by_name=True, @@ -75,13 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -95,7 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "fields": obj.get("fields"), "validation_policies": obj.get("validation_policies") }) diff --git a/authentik_client/models/prompt_type_enum.py b/authentik_client/models/prompt_type_enum.py index 39a73dc7b..d1ac01754 100644 --- a/authentik_client/models/prompt_type_enum.py +++ b/authentik_client/models/prompt_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/property_mapping.py b/authentik_client/models/property_mapping.py index 34e4cdef1..8721df80e 100644 --- a/authentik_client/models/property_mapping.py +++ b/authentik_client/models/property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/property_mapping_preview.py b/authentik_client/models/property_mapping_preview.py index 83e5e39f3..6a9da7c36 100644 --- a/authentik_client/models/property_mapping_preview.py +++ b/authentik_client/models/property_mapping_preview.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/property_mapping_test_request.py b/authentik_client/models/property_mapping_test_request.py index 309853f4b..a855fe3d9 100644 --- a/authentik_client/models/property_mapping_test_request.py +++ b/authentik_client/models/property_mapping_test_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/property_mapping_test_result.py b/authentik_client/models/property_mapping_test_result.py index d903aa9c9..78c2a87a0 100644 --- a/authentik_client/models/property_mapping_test_result.py +++ b/authentik_client/models/property_mapping_test_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/protocol_enum.py b/authentik_client/models/protocol_enum.py index 93068b91a..e630bcb86 100644 --- a/authentik_client/models/protocol_enum.py +++ b/authentik_client/models/protocol_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/provider.py b/authentik_client/models/provider.py index bcfbbc81c..52e7b6ced 100644 --- a/authentik_client/models/provider.py +++ b/authentik_client/models/provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,10 +35,10 @@ class Provider(BaseModel): invalidation_flow: UUID = Field(description="Flow used ending the session from a provider.") property_mappings: Optional[List[UUID]] = None component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_application_name: StrictStr = Field(description="Application's display Name.") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_application_name: Optional[StrictStr] = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -106,6 +106,26 @@ def to_dict(self) -> Dict[str, Any]: if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: _dict['authentication_flow'] = None + # set to None if assigned_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_slug is None and "assigned_application_slug" in self.model_fields_set: + _dict['assigned_application_slug'] = None + + # set to None if assigned_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_name is None and "assigned_application_name" in self.model_fields_set: + _dict['assigned_application_name'] = None + + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + return _dict @classmethod diff --git a/authentik_client/models/provider_enum.py b/authentik_client/models/provider_enum.py index 7d1e71f4b..4d469dec7 100644 --- a/authentik_client/models/provider_enum.py +++ b/authentik_client/models/provider_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/provider_model_enum.py b/authentik_client/models/provider_model_enum.py index bbf92207e..0dc8e39e3 100644 --- a/authentik_client/models/provider_model_enum.py +++ b/authentik_client/models/provider_model_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/provider_type_enum.py b/authentik_client/models/provider_type_enum.py index 524f65c1f..1d86099fc 100644 --- a/authentik_client/models/provider_type_enum.py +++ b/authentik_client/models/provider_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,8 +40,10 @@ class ProviderTypeEnum(str, Enum): OKTA = 'okta' PATREON = 'patreon' REDDIT = 'reddit' + SLACK = 'slack' TWITCH = 'twitch' TWITTER = 'twitter' + WECHAT = 'wechat' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/authentik_client/models/proxy_mode.py b/authentik_client/models/proxy_mode.py index 2bd11a896..b556b3f79 100644 --- a/authentik_client/models/proxy_mode.py +++ b/authentik_client/models/proxy_mode.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/proxy_outpost_config.py b/authentik_client/models/proxy_outpost_config.py index 103911f96..89b04c9b4 100644 --- a/authentik_client/models/proxy_outpost_config.py +++ b/authentik_client/models/proxy_outpost_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/proxy_provider.py b/authentik_client/models/proxy_provider.py index 025d41c6d..cf12ba4e9 100644 --- a/authentik_client/models/proxy_provider.py +++ b/authentik_client/models/proxy_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,10 +37,10 @@ class ProxyProvider(BaseModel): invalidation_flow: UUID = Field(description="Flow used ending the session from a provider.") property_mappings: Optional[List[UUID]] = None component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_application_name: StrictStr = Field(description="Application's display Name.") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_application_name: Optional[StrictStr] = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -139,6 +139,26 @@ def to_dict(self) -> Dict[str, Any]: if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: _dict['authentication_flow'] = None + # set to None if assigned_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_slug is None and "assigned_application_slug" in self.model_fields_set: + _dict['assigned_application_slug'] = None + + # set to None if assigned_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_name is None and "assigned_application_name" in self.model_fields_set: + _dict['assigned_application_name'] = None + + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + # set to None if certificate (nullable) is None # and model_fields_set contains the field if self.certificate is None and "certificate" in self.model_fields_set: diff --git a/authentik_client/models/proxy_provider_request.py b/authentik_client/models/proxy_provider_request.py index a3fcceb1b..f24897847 100644 --- a/authentik_client/models/proxy_provider_request.py +++ b/authentik_client/models/proxy_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/rac_property_mapping.py b/authentik_client/models/rac_property_mapping.py index 3a1f80a79..b4f13d09d 100644 --- a/authentik_client/models/rac_property_mapping.py +++ b/authentik_client/models/rac_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/rac_property_mapping_request.py b/authentik_client/models/rac_property_mapping_request.py index 409424857..62d1864ca 100644 --- a/authentik_client/models/rac_property_mapping_request.py +++ b/authentik_client/models/rac_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/rac_provider.py b/authentik_client/models/rac_provider.py index 8f6ce3500..9b2bd84c2 100644 --- a/authentik_client/models/rac_provider.py +++ b/authentik_client/models/rac_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -34,10 +34,10 @@ class RACProvider(BaseModel): authorization_flow: UUID = Field(description="Flow used when authorizing this provider.") property_mappings: Optional[List[UUID]] = None component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_application_name: StrictStr = Field(description="Application's display Name.") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_application_name: Optional[StrictStr] = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -111,6 +111,26 @@ def to_dict(self) -> Dict[str, Any]: if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: _dict['authentication_flow'] = None + # set to None if assigned_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_slug is None and "assigned_application_slug" in self.model_fields_set: + _dict['assigned_application_slug'] = None + + # set to None if assigned_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_name is None and "assigned_application_name" in self.model_fields_set: + _dict['assigned_application_name'] = None + + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + return _dict @classmethod diff --git a/authentik_client/models/rac_provider_request.py b/authentik_client/models/rac_provider_request.py index bbae592a8..0a71e2520 100644 --- a/authentik_client/models/rac_provider_request.py +++ b/authentik_client/models/rac_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/radius_check_access.py b/authentik_client/models/radius_check_access.py index 4252d73ee..168668aaa 100644 --- a/authentik_client/models/radius_check_access.py +++ b/authentik_client/models/radius_check_access.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/radius_outpost_config.py b/authentik_client/models/radius_outpost_config.py index b2c94909f..1d95cff73 100644 --- a/authentik_client/models/radius_outpost_config.py +++ b/authentik_client/models/radius_outpost_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/radius_provider.py b/authentik_client/models/radius_provider.py index aaf9e2b88..473921f27 100644 --- a/authentik_client/models/radius_provider.py +++ b/authentik_client/models/radius_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,10 +35,10 @@ class RadiusProvider(BaseModel): invalidation_flow: UUID = Field(description="Flow used ending the session from a provider.") property_mappings: Optional[List[UUID]] = None component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_application_name: StrictStr = Field(description="Application's display Name.") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_application_name: Optional[StrictStr] = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -113,6 +113,26 @@ def to_dict(self) -> Dict[str, Any]: if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: _dict['authentication_flow'] = None + # set to None if assigned_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_slug is None and "assigned_application_slug" in self.model_fields_set: + _dict['assigned_application_slug'] = None + + # set to None if assigned_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_name is None and "assigned_application_name" in self.model_fields_set: + _dict['assigned_application_name'] = None + + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + # set to None if certificate (nullable) is None # and model_fields_set contains the field if self.certificate is None and "certificate" in self.model_fields_set: diff --git a/authentik_client/models/radius_provider_property_mapping.py b/authentik_client/models/radius_provider_property_mapping.py index 5fcd15be5..de8d3fae2 100644 --- a/authentik_client/models/radius_provider_property_mapping.py +++ b/authentik_client/models/radius_provider_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/radius_provider_property_mapping_request.py b/authentik_client/models/radius_provider_property_mapping_request.py index b2ef67185..167bce02e 100644 --- a/authentik_client/models/radius_provider_property_mapping_request.py +++ b/authentik_client/models/radius_provider_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/radius_provider_request.py b/authentik_client/models/radius_provider_request.py index 65d94ff4e..31f3b2497 100644 --- a/authentik_client/models/radius_provider_request.py +++ b/authentik_client/models/radius_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/redirect_challenge.py b/authentik_client/models/redirect_challenge.py index 51509303f..199e21ef2 100644 --- a/authentik_client/models/redirect_challenge.py +++ b/authentik_client/models/redirect_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/redirect_challenge_response_request.py b/authentik_client/models/redirect_challenge_response_request.py index a560b9aeb..6cf85aa70 100644 --- a/authentik_client/models/redirect_challenge_response_request.py +++ b/authentik_client/models/redirect_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/redirect_stage.py b/authentik_client/models/redirect_stage.py index d1d342e53..42c24f56c 100644 --- a/authentik_client/models/redirect_stage.py +++ b/authentik_client/models/redirect_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,7 +36,7 @@ class RedirectStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] keep_context: Optional[StrictBool] = None mode: RedirectStageModeEnum target_static: Optional[StrictStr] = None @@ -78,6 +78,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -85,6 +86,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/redirect_stage_mode_enum.py b/authentik_client/models/redirect_stage_mode_enum.py index 5a9a294e3..8a7ade071 100644 --- a/authentik_client/models/redirect_stage_mode_enum.py +++ b/authentik_client/models/redirect_stage_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/redirect_stage_request.py b/authentik_client/models/redirect_stage_request.py index c48b95b64..b7324ab25 100644 --- a/authentik_client/models/redirect_stage_request.py +++ b/authentik_client/models/redirect_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.redirect_stage_mode_enum import RedirectStageModeEnum from typing import Optional, Set from typing_extensions import Self @@ -32,12 +31,11 @@ class RedirectStageRequest(BaseModel): RedirectStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None keep_context: Optional[StrictBool] = None mode: RedirectStageModeEnum target_static: Optional[StrictStr] = None target_flow: Optional[UUID] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "keep_context", "mode", "target_static", "target_flow"] + __properties: ClassVar[List[str]] = ["name", "keep_context", "mode", "target_static", "target_flow"] model_config = ConfigDict( populate_by_name=True, @@ -78,13 +76,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if target_flow (nullable) is None # and model_fields_set contains the field if self.target_flow is None and "target_flow" in self.model_fields_set: @@ -103,7 +94,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "keep_context": obj.get("keep_context"), "mode": obj.get("mode"), "target_static": obj.get("target_static"), diff --git a/authentik_client/models/redirect_uri.py b/authentik_client/models/redirect_uri.py index 080f77646..f954331f8 100644 --- a/authentik_client/models/redirect_uri.py +++ b/authentik_client/models/redirect_uri.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/redirect_uri_request.py b/authentik_client/models/redirect_uri_request.py index db49b2e9a..c97c54042 100644 --- a/authentik_client/models/redirect_uri_request.py +++ b/authentik_client/models/redirect_uri_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/group_child.py b/authentik_client/models/related_group.py similarity index 90% rename from authentik_client/models/group_child.py rename to authentik_client/models/related_group.py index d272e9f60..499899fa3 100644 --- a/authentik_client/models/group_child.py +++ b/authentik_client/models/related_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class GroupChild(BaseModel): +class RelatedGroup(BaseModel): """ - Stripped down group serializer to show relevant children for groups + Stripped down group serializer to show relevant children/parents for groups """ # noqa: E501 pk: UUID name: StrictStr @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GroupChild from a JSON string""" + """Create an instance of RelatedGroup from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -82,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GroupChild from a dict""" + """Create an instance of RelatedGroup from a dict""" if obj is None: return None diff --git a/authentik_client/models/reputation.py b/authentik_client/models/reputation.py index 021ae7cdc..b522439cb 100644 --- a/authentik_client/models/reputation.py +++ b/authentik_client/models/reputation.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/reputation_policy.py b/authentik_client/models/reputation_policy.py index 16ea8af14..45816fb87 100644 --- a/authentik_client/models/reputation_policy.py +++ b/authentik_client/models/reputation_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/reputation_policy_request.py b/authentik_client/models/reputation_policy_request.py index 54fa7184d..be4911105 100644 --- a/authentik_client/models/reputation_policy_request.py +++ b/authentik_client/models/reputation_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/resident_key_requirement_enum.py b/authentik_client/models/resident_key_requirement_enum.py index c3bc4bce6..673804095 100644 --- a/authentik_client/models/resident_key_requirement_enum.py +++ b/authentik_client/models/resident_key_requirement_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/role.py b/authentik_client/models/role.py index 311f2b04d..2c797ea7e 100644 --- a/authentik_client/models/role.py +++ b/authentik_client/models/role.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/role_assigned_object_permission.py b/authentik_client/models/role_assigned_object_permission.py index 6c6084d5b..367f911d7 100644 --- a/authentik_client/models/role_assigned_object_permission.py +++ b/authentik_client/models/role_assigned_object_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List +from authentik_client.models.role_model_permission import RoleModelPermission from authentik_client.models.role_object_permission import RoleObjectPermission from typing import Optional, Set from typing_extensions import Self @@ -30,8 +31,9 @@ class RoleAssignedObjectPermission(BaseModel): """ # noqa: E501 role_pk: StrictStr name: StrictStr - permissions: List[RoleObjectPermission] - __properties: ClassVar[List[str]] = ["role_pk", "name", "permissions"] + object_permissions: List[RoleObjectPermission] + model_permissions: List[RoleModelPermission] + __properties: ClassVar[List[str]] = ["role_pk", "name", "object_permissions", "model_permissions"] model_config = ConfigDict( populate_by_name=True, @@ -76,13 +78,20 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) + # override the default output from pydantic by calling `to_dict()` of each item in object_permissions (list) _items = [] - if self.permissions: - for _item_permissions in self.permissions: - if _item_permissions: - _items.append(_item_permissions.to_dict()) - _dict['permissions'] = _items + if self.object_permissions: + for _item_object_permissions in self.object_permissions: + if _item_object_permissions: + _items.append(_item_object_permissions.to_dict()) + _dict['object_permissions'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in model_permissions (list) + _items = [] + if self.model_permissions: + for _item_model_permissions in self.model_permissions: + if _item_model_permissions: + _items.append(_item_model_permissions.to_dict()) + _dict['model_permissions'] = _items return _dict @classmethod @@ -97,7 +106,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "role_pk": obj.get("role_pk"), "name": obj.get("name"), - "permissions": [RoleObjectPermission.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None + "object_permissions": [RoleObjectPermission.from_dict(_item) for _item in obj["object_permissions"]] if obj.get("object_permissions") is not None else None, + "model_permissions": [RoleModelPermission.from_dict(_item) for _item in obj["model_permissions"]] if obj.get("model_permissions") is not None else None }) return _obj diff --git a/authentik_client/models/user_object_permission.py b/authentik_client/models/role_model_permission.py similarity index 87% rename from authentik_client/models/user_object_permission.py rename to authentik_client/models/role_model_permission.py index d3373d0c8..4253a8f27 100644 --- a/authentik_client/models/user_object_permission.py +++ b/authentik_client/models/role_model_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,17 +23,16 @@ from typing import Optional, Set from typing_extensions import Self -class UserObjectPermission(BaseModel): +class RoleModelPermission(BaseModel): """ - User-bound object level permission + Role-bound object level permission """ # noqa: E501 id: StrictInt codename: StrictStr model: StrictStr app_label: StrictStr - object_pk: StrictStr name: StrictStr - __properties: ClassVar[List[str]] = ["id", "codename", "model", "app_label", "object_pk", "name"] + __properties: ClassVar[List[str]] = ["id", "codename", "model", "app_label", "name"] model_config = ConfigDict( populate_by_name=True, @@ -53,7 +52,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserObjectPermission from a JSON string""" + """Create an instance of RoleModelPermission from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -88,7 +87,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserObjectPermission from a dict""" + """Create an instance of RoleModelPermission from a dict""" if obj is None: return None @@ -100,7 +99,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "codename": obj.get("codename"), "model": obj.get("model"), "app_label": obj.get("app_label"), - "object_pk": obj.get("object_pk"), "name": obj.get("name") }) return _obj diff --git a/authentik_client/models/role_object_permission.py b/authentik_client/models/role_object_permission.py index 3c9c7dfad..a73807c91 100644 --- a/authentik_client/models/role_object_permission.py +++ b/authentik_client/models/role_object_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/role_request.py b/authentik_client/models/role_request.py index 48307e8b9..85f046abd 100644 --- a/authentik_client/models/role_request.py +++ b/authentik_client/models/role_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_bindings_enum.py b/authentik_client/models/saml_bindings_enum.py index 2f2c5fa98..65181c02f 100644 --- a/authentik_client/models/saml_bindings_enum.py +++ b/authentik_client/models/saml_bindings_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_metadata.py b/authentik_client/models/saml_metadata.py index eac288c00..e50fa09e3 100644 --- a/authentik_client/models/saml_metadata.py +++ b/authentik_client/models/saml_metadata.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_name_id_policy_enum.py b/authentik_client/models/saml_name_id_policy_enum.py index 82e754c2f..61661cff0 100644 --- a/authentik_client/models/saml_name_id_policy_enum.py +++ b/authentik_client/models/saml_name_id_policy_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_property_mapping.py b/authentik_client/models/saml_property_mapping.py index 57d5ee9e7..8c3c01c3b 100644 --- a/authentik_client/models/saml_property_mapping.py +++ b/authentik_client/models/saml_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_property_mapping_request.py b/authentik_client/models/saml_property_mapping_request.py index 02b22407b..d6cac1f37 100644 --- a/authentik_client/models/saml_property_mapping_request.py +++ b/authentik_client/models/saml_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_provider.py b/authentik_client/models/saml_provider.py index 827bd9637..1e6546092 100644 --- a/authentik_client/models/saml_provider.py +++ b/authentik_client/models/saml_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,10 +40,10 @@ class SAMLProvider(BaseModel): invalidation_flow: UUID = Field(description="Flow used ending the session from a provider.") property_mappings: Optional[List[UUID]] = None component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_application_name: StrictStr = Field(description="Application's display Name.") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_application_name: Optional[StrictStr] = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -151,6 +151,26 @@ def to_dict(self) -> Dict[str, Any]: if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: _dict['authentication_flow'] = None + # set to None if assigned_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_slug is None and "assigned_application_slug" in self.model_fields_set: + _dict['assigned_application_slug'] = None + + # set to None if assigned_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_application_name is None and "assigned_application_name" in self.model_fields_set: + _dict['assigned_application_name'] = None + + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + # set to None if name_id_mapping (nullable) is None # and model_fields_set contains the field if self.name_id_mapping is None and "name_id_mapping" in self.model_fields_set: diff --git a/authentik_client/models/saml_provider_logout_method_enum.py b/authentik_client/models/saml_provider_logout_method_enum.py index 895ce0b90..f37d499d0 100644 --- a/authentik_client/models/saml_provider_logout_method_enum.py +++ b/authentik_client/models/saml_provider_logout_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_provider_request.py b/authentik_client/models/saml_provider_request.py index 3b8536e8c..27769bab7 100644 --- a/authentik_client/models/saml_provider_request.py +++ b/authentik_client/models/saml_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_source.py b/authentik_client/models/saml_source.py index 7c7324113..0a6652080 100644 --- a/authentik_client/models/saml_source.py +++ b/authentik_client/models/saml_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,6 +28,7 @@ from authentik_client.models.policy_engine_mode import PolicyEngineMode from authentik_client.models.saml_name_id_policy_enum import SAMLNameIDPolicyEnum from authentik_client.models.signature_algorithm_enum import SignatureAlgorithmEnum +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -38,8 +39,9 @@ class SAMLSource(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Source's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -52,7 +54,9 @@ class SAMLSource(BaseModel): user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") managed: Optional[StrictStr] = Field(description="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.") user_path_template: Optional[StrictStr] = None - icon: StrictStr + icon: Optional[StrictStr] = None + icon_url: StrictStr + icon_themed_urls: Optional[ThemedUrls] group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") pre_authentication_flow: UUID = Field(description="Flow used before authentication.") issuer: Optional[StrictStr] = Field(default=None, description="Also known as Entity ID. Defaults the Metadata URL.") @@ -69,7 +73,7 @@ class SAMLSource(BaseModel): encryption_kp: Optional[UUID] = Field(default=None, description="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.") signed_assertion: Optional[StrictBool] = None signed_response: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "group_matching_mode", "pre_authentication_flow", "issuer", "sso_url", "slo_url", "allow_idp_initiated", "name_id_policy", "binding_type", "verification_kp", "signing_kp", "digest_algorithm", "signature_algorithm", "temporary_user_delete_after", "encryption_kp", "signed_assertion", "signed_response"] + __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "icon_url", "icon_themed_urls", "group_matching_mode", "pre_authentication_flow", "issuer", "sso_url", "slo_url", "allow_idp_initiated", "name_id_policy", "binding_type", "verification_kp", "signing_kp", "digest_algorithm", "signature_algorithm", "temporary_user_delete_after", "encryption_kp", "signed_assertion", "signed_response"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -115,6 +119,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -123,7 +128,8 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name_plural", "meta_model_name", "managed", - "icon", + "icon_url", + "icon_themed_urls", ]) _dict = self.model_dump( @@ -131,6 +137,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of icon_themed_urls + if self.icon_themed_urls: + _dict['icon_themed_urls'] = self.icon_themed_urls.to_dict() # set to None if authentication_flow (nullable) is None # and model_fields_set contains the field if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: @@ -146,6 +155,11 @@ def to_dict(self) -> Dict[str, Any]: if self.managed is None and "managed" in self.model_fields_set: _dict['managed'] = None + # set to None if icon_themed_urls (nullable) is None + # and model_fields_set contains the field + if self.icon_themed_urls is None and "icon_themed_urls" in self.model_fields_set: + _dict['icon_themed_urls'] = None + # set to None if slo_url (nullable) is None # and model_fields_set contains the field if self.slo_url is None and "slo_url" in self.model_fields_set: @@ -182,6 +196,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -195,6 +210,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "managed": obj.get("managed"), "user_path_template": obj.get("user_path_template"), "icon": obj.get("icon"), + "icon_url": obj.get("icon_url"), + "icon_themed_urls": ThemedUrls.from_dict(obj["icon_themed_urls"]) if obj.get("icon_themed_urls") is not None else None, "group_matching_mode": obj.get("group_matching_mode"), "pre_authentication_flow": obj.get("pre_authentication_flow"), "issuer": obj.get("issuer"), diff --git a/authentik_client/models/saml_source_property_mapping.py b/authentik_client/models/saml_source_property_mapping.py index a93ee0ffb..e068f1ddb 100644 --- a/authentik_client/models/saml_source_property_mapping.py +++ b/authentik_client/models/saml_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_source_property_mapping_request.py b/authentik_client/models/saml_source_property_mapping_request.py index e54bea9a6..fb1cbd501 100644 --- a/authentik_client/models/saml_source_property_mapping_request.py +++ b/authentik_client/models/saml_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/saml_source_request.py b/authentik_client/models/saml_source_request.py index 77eab46a2..aaf7520f9 100644 --- a/authentik_client/models/saml_source_request.py +++ b/authentik_client/models/saml_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,8 +37,9 @@ class SAMLSourceRequest(BaseModel): SAMLSource Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Source's display Name.") - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -46,6 +47,7 @@ class SAMLSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None group_matching_mode: Optional[GroupMatchingModeEnum] = Field(default=None, description="How the source determines if an existing group should be used or a new group created.") pre_authentication_flow: UUID = Field(description="Flow used before authentication.") issuer: Optional[StrictStr] = Field(default=None, description="Also known as Entity ID. Defaults the Metadata URL.") @@ -62,7 +64,7 @@ class SAMLSourceRequest(BaseModel): encryption_kp: Optional[UUID] = Field(default=None, description="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.") signed_assertion: Optional[StrictBool] = None signed_response: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "group_matching_mode", "pre_authentication_flow", "issuer", "sso_url", "slo_url", "allow_idp_initiated", "name_id_policy", "binding_type", "verification_kp", "signing_kp", "digest_algorithm", "signature_algorithm", "temporary_user_delete_after", "encryption_kp", "signed_assertion", "signed_response"] + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "group_matching_mode", "pre_authentication_flow", "issuer", "sso_url", "slo_url", "allow_idp_initiated", "name_id_policy", "binding_type", "verification_kp", "signing_kp", "digest_algorithm", "signature_algorithm", "temporary_user_delete_after", "encryption_kp", "signed_assertion", "signed_response"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -155,6 +157,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -162,6 +165,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "group_matching_mode": obj.get("group_matching_mode"), "pre_authentication_flow": obj.get("pre_authentication_flow"), "issuer": obj.get("issuer"), diff --git a/authentik_client/models/schedule.py b/authentik_client/models/schedule.py index 870c37fd3..ad3292191 100644 --- a/authentik_client/models/schedule.py +++ b/authentik_client/models/schedule.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/schedule_request.py b/authentik_client/models/schedule_request.py index 9f1fe9470..4f201e24d 100644 --- a/authentik_client/models/schedule_request.py +++ b/authentik_client/models/schedule_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_authentication_mode_enum.py b/authentik_client/models/scim_authentication_mode_enum.py index cbca9f505..6286f4f35 100644 --- a/authentik_client/models/scim_authentication_mode_enum.py +++ b/authentik_client/models/scim_authentication_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_mapping.py b/authentik_client/models/scim_mapping.py index 8caffe1be..f9c2e2f8c 100644 --- a/authentik_client/models/scim_mapping.py +++ b/authentik_client/models/scim_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_mapping_request.py b/authentik_client/models/scim_mapping_request.py index 2d26e2384..6905d9e51 100644 --- a/authentik_client/models/scim_mapping_request.py +++ b/authentik_client/models/scim_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_provider.py b/authentik_client/models/scim_provider.py index 8ace825cd..bb89cd525 100644 --- a/authentik_client/models/scim_provider.py +++ b/authentik_client/models/scim_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from uuid import UUID from authentik_client.models.compatibility_mode_enum import CompatibilityModeEnum from authentik_client.models.scim_authentication_mode_enum import SCIMAuthenticationModeEnum @@ -35,8 +36,8 @@ class SCIMProvider(BaseModel): property_mappings: Optional[List[UUID]] = None property_mappings_group: Optional[List[UUID]] = Field(default=None, description="Property mappings used for group creation/updating.") component: StrictStr = Field(description="Get object component so that we know how to edit the object") - assigned_backchannel_application_slug: StrictStr = Field(description="Internal application name, used in URLs.") - assigned_backchannel_application_name: StrictStr = Field(description="Application's display Name.") + assigned_backchannel_application_slug: Optional[StrictStr] = Field(description="Internal application name, used in URLs.") + assigned_backchannel_application_name: Optional[StrictStr] = Field(description="Application's display Name.") verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") @@ -47,10 +48,13 @@ class SCIMProvider(BaseModel): auth_oauth: Optional[UUID] = Field(default=None, description="OAuth Source used for authentication") auth_oauth_params: Optional[Dict[str, Any]] = Field(default=None, description="Additional OAuth parameters, such as grant_type") compatibility_mode: Optional[CompatibilityModeEnum] = Field(default=None, description="Alter authentik behavior for vendor-specific SCIM implementations.") + service_provider_config_cache_timeout: Optional[StrictStr] = Field(default=None, description="Cache duration for ServiceProviderConfig responses. Set minutes=0 to disable.") exclude_users_service_account: Optional[StrictBool] = None filter_group: Optional[UUID] = None + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[StrictStr] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["pk", "name", "property_mappings", "property_mappings_group", "component", "assigned_backchannel_application_slug", "assigned_backchannel_application_name", "verbose_name", "verbose_name_plural", "meta_model_name", "url", "verify_certificates", "token", "auth_mode", "auth_oauth", "auth_oauth_params", "compatibility_mode", "exclude_users_service_account", "filter_group", "dry_run"] + __properties: ClassVar[List[str]] = ["pk", "name", "property_mappings", "property_mappings_group", "component", "assigned_backchannel_application_slug", "assigned_backchannel_application_name", "verbose_name", "verbose_name_plural", "meta_model_name", "url", "verify_certificates", "token", "auth_mode", "auth_oauth", "auth_oauth_params", "compatibility_mode", "service_provider_config_cache_timeout", "exclude_users_service_account", "filter_group", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -105,6 +109,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if assigned_backchannel_application_slug (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_slug is None and "assigned_backchannel_application_slug" in self.model_fields_set: + _dict['assigned_backchannel_application_slug'] = None + + # set to None if assigned_backchannel_application_name (nullable) is None + # and model_fields_set contains the field + if self.assigned_backchannel_application_name is None and "assigned_backchannel_application_name" in self.model_fields_set: + _dict['assigned_backchannel_application_name'] = None + # set to None if auth_oauth (nullable) is None # and model_fields_set contains the field if self.auth_oauth is None and "auth_oauth" in self.model_fields_set: @@ -144,8 +158,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "auth_oauth": obj.get("auth_oauth"), "auth_oauth_params": obj.get("auth_oauth_params"), "compatibility_mode": obj.get("compatibility_mode"), + "service_provider_config_cache_timeout": obj.get("service_provider_config_cache_timeout"), "exclude_users_service_account": obj.get("exclude_users_service_account"), "filter_group": obj.get("filter_group"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/scim_provider_group.py b/authentik_client/models/scim_provider_group.py index 6ee678be4..61fd27593 100644 --- a/authentik_client/models/scim_provider_group.py +++ b/authentik_client/models/scim_provider_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_provider_group_request.py b/authentik_client/models/scim_provider_group_request.py index e981c1eea..99df89a98 100644 --- a/authentik_client/models/scim_provider_group_request.py +++ b/authentik_client/models/scim_provider_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_provider_request.py b/authentik_client/models/scim_provider_request.py index 419edb0c1..50e5eb72e 100644 --- a/authentik_client/models/scim_provider_request.py +++ b/authentik_client/models/scim_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,10 +41,13 @@ class SCIMProviderRequest(BaseModel): auth_oauth: Optional[UUID] = Field(default=None, description="OAuth Source used for authentication") auth_oauth_params: Optional[Dict[str, Any]] = Field(default=None, description="Additional OAuth parameters, such as grant_type") compatibility_mode: Optional[CompatibilityModeEnum] = Field(default=None, description="Alter authentik behavior for vendor-specific SCIM implementations.") + service_provider_config_cache_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Cache duration for ServiceProviderConfig responses. Set minutes=0 to disable.") exclude_users_service_account: Optional[StrictBool] = None filter_group: Optional[UUID] = None + sync_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Controls the number of objects synced in a single task") + sync_page_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Timeout for synchronization of a single page") dry_run: Optional[StrictBool] = Field(default=None, description="When enabled, provider will not modify or create objects in the remote system.") - __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "url", "verify_certificates", "token", "auth_mode", "auth_oauth", "auth_oauth_params", "compatibility_mode", "exclude_users_service_account", "filter_group", "dry_run"] + __properties: ClassVar[List[str]] = ["name", "property_mappings", "property_mappings_group", "url", "verify_certificates", "token", "auth_mode", "auth_oauth", "auth_oauth_params", "compatibility_mode", "service_provider_config_cache_timeout", "exclude_users_service_account", "filter_group", "sync_page_size", "sync_page_timeout", "dry_run"] model_config = ConfigDict( populate_by_name=True, @@ -117,8 +120,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "auth_oauth": obj.get("auth_oauth"), "auth_oauth_params": obj.get("auth_oauth_params"), "compatibility_mode": obj.get("compatibility_mode"), + "service_provider_config_cache_timeout": obj.get("service_provider_config_cache_timeout"), "exclude_users_service_account": obj.get("exclude_users_service_account"), "filter_group": obj.get("filter_group"), + "sync_page_size": obj.get("sync_page_size"), + "sync_page_timeout": obj.get("sync_page_timeout"), "dry_run": obj.get("dry_run") }) return _obj diff --git a/authentik_client/models/scim_provider_user.py b/authentik_client/models/scim_provider_user.py index 6eae04161..bd85edf7b 100644 --- a/authentik_client/models/scim_provider_user.py +++ b/authentik_client/models/scim_provider_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_provider_user_request.py b/authentik_client/models/scim_provider_user_request.py index 89a06dfc0..cea7eed71 100644 --- a/authentik_client/models/scim_provider_user_request.py +++ b/authentik_client/models/scim_provider_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_source.py b/authentik_client/models/scim_source.py index 7c220ffc5..7e331b40e 100644 --- a/authentik_client/models/scim_source.py +++ b/authentik_client/models/scim_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -32,7 +32,7 @@ class SCIMSource(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Source's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None user_property_mappings: Optional[List[UUID]] = None group_property_mappings: Optional[List[UUID]] = None diff --git a/authentik_client/models/scim_source_group.py b/authentik_client/models/scim_source_group.py index 46331e525..06d5ef9eb 100644 --- a/authentik_client/models/scim_source_group.py +++ b/authentik_client/models/scim_source_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_source_group_request.py b/authentik_client/models/scim_source_group_request.py index b29c8cb8e..fdce88022 100644 --- a/authentik_client/models/scim_source_group_request.py +++ b/authentik_client/models/scim_source_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_source_property_mapping.py b/authentik_client/models/scim_source_property_mapping.py index aa9f8847b..b0ee287f9 100644 --- a/authentik_client/models/scim_source_property_mapping.py +++ b/authentik_client/models/scim_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_source_property_mapping_request.py b/authentik_client/models/scim_source_property_mapping_request.py index 1e69d37ed..08fdd0fb4 100644 --- a/authentik_client/models/scim_source_property_mapping_request.py +++ b/authentik_client/models/scim_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_source_request.py b/authentik_client/models/scim_source_request.py index 5ffae1126..f8401786b 100644 --- a/authentik_client/models/scim_source_request.py +++ b/authentik_client/models/scim_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,7 +30,7 @@ class SCIMSourceRequest(BaseModel): SCIMSource Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Source's display Name.") - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None user_property_mappings: Optional[List[UUID]] = None group_property_mappings: Optional[List[UUID]] = None diff --git a/authentik_client/models/scim_source_user.py b/authentik_client/models/scim_source_user.py index 0011b4272..9475223b7 100644 --- a/authentik_client/models/scim_source_user.py +++ b/authentik_client/models/scim_source_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scim_source_user_request.py b/authentik_client/models/scim_source_user_request.py index 930240b18..6fbcdd283 100644 --- a/authentik_client/models/scim_source_user_request.py +++ b/authentik_client/models/scim_source_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scope_mapping.py b/authentik_client/models/scope_mapping.py index 179be4f63..e21222744 100644 --- a/authentik_client/models/scope_mapping.py +++ b/authentik_client/models/scope_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/scope_mapping_request.py b/authentik_client/models/scope_mapping_request.py index ab48924a0..f432fb24c 100644 --- a/authentik_client/models/scope_mapping_request.py +++ b/authentik_client/models/scope_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/selectable_stage.py b/authentik_client/models/selectable_stage.py index 617eea95e..b736b0705 100644 --- a/authentik_client/models/selectable_stage.py +++ b/authentik_client/models/selectable_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/service_connection.py b/authentik_client/models/service_connection.py index ed53260c7..5cc58e3cc 100644 --- a/authentik_client/models/service_connection.py +++ b/authentik_client/models/service_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/service_connection_state.py b/authentik_client/models/service_connection_state.py index f6d5c9f1d..98fcd62c7 100644 --- a/authentik_client/models/service_connection_state.py +++ b/authentik_client/models/service_connection_state.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/session_end_challenge.py b/authentik_client/models/session_end_challenge.py index f89a91692..891557e19 100644 --- a/authentik_client/models/session_end_challenge.py +++ b/authentik_client/models/session_end_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/session_user.py b/authentik_client/models/session_user.py index c9bc77be3..fb116da2d 100644 --- a/authentik_client/models/session_user.py +++ b/authentik_client/models/session_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/settings.py b/authentik_client/models/settings.py index 273da1f2f..3f260f755 100644 --- a/authentik_client/models/settings.py +++ b/authentik_client/models/settings.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,8 +42,10 @@ class Settings(BaseModel): impersonation_require_reason: Optional[StrictBool] = Field(default=None, description="Require administrators to provide a reason for impersonating a user.") default_token_duration: Optional[StrictStr] = Field(default=None, description="Default token duration") default_token_length: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Default token length") + pagination_default_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Default page size for API responses, if no size was requested.") + pagination_max_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Maximum page size") flags: PatchedSettingsRequestFlags - __properties: ClassVar[List[str]] = ["avatars", "default_user_change_name", "default_user_change_email", "default_user_change_username", "event_retention", "reputation_lower_limit", "reputation_upper_limit", "footer_links", "gdpr_compliance", "impersonation", "impersonation_require_reason", "default_token_duration", "default_token_length", "flags"] + __properties: ClassVar[List[str]] = ["avatars", "default_user_change_name", "default_user_change_email", "default_user_change_username", "event_retention", "reputation_lower_limit", "reputation_upper_limit", "footer_links", "gdpr_compliance", "impersonation", "impersonation_require_reason", "default_token_duration", "default_token_length", "pagination_default_page_size", "pagination_max_page_size", "flags"] model_config = ConfigDict( populate_by_name=True, @@ -117,6 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "impersonation_require_reason": obj.get("impersonation_require_reason"), "default_token_duration": obj.get("default_token_duration"), "default_token_length": obj.get("default_token_length"), + "pagination_default_page_size": obj.get("pagination_default_page_size"), + "pagination_max_page_size": obj.get("pagination_max_page_size"), "flags": PatchedSettingsRequestFlags.from_dict(obj["flags"]) if obj.get("flags") is not None else None }) return _obj diff --git a/authentik_client/models/settings_request.py b/authentik_client/models/settings_request.py index 6d40ac5df..09d470845 100644 --- a/authentik_client/models/settings_request.py +++ b/authentik_client/models/settings_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,8 +42,10 @@ class SettingsRequest(BaseModel): impersonation_require_reason: Optional[StrictBool] = Field(default=None, description="Require administrators to provide a reason for impersonating a user.") default_token_duration: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Default token duration") default_token_length: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=1)]] = Field(default=None, description="Default token length") + pagination_default_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Default page size for API responses, if no size was requested.") + pagination_max_page_size: Optional[Annotated[int, Field(le=2147483647, strict=True, ge=0)]] = Field(default=None, description="Maximum page size") flags: PatchedSettingsRequestFlags - __properties: ClassVar[List[str]] = ["avatars", "default_user_change_name", "default_user_change_email", "default_user_change_username", "event_retention", "reputation_lower_limit", "reputation_upper_limit", "footer_links", "gdpr_compliance", "impersonation", "impersonation_require_reason", "default_token_duration", "default_token_length", "flags"] + __properties: ClassVar[List[str]] = ["avatars", "default_user_change_name", "default_user_change_email", "default_user_change_username", "event_retention", "reputation_lower_limit", "reputation_upper_limit", "footer_links", "gdpr_compliance", "impersonation", "impersonation_require_reason", "default_token_duration", "default_token_length", "pagination_default_page_size", "pagination_max_page_size", "flags"] model_config = ConfigDict( populate_by_name=True, @@ -117,6 +119,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "impersonation_require_reason": obj.get("impersonation_require_reason"), "default_token_duration": obj.get("default_token_duration"), "default_token_length": obj.get("default_token_length"), + "pagination_default_page_size": obj.get("pagination_default_page_size"), + "pagination_max_page_size": obj.get("pagination_max_page_size"), "flags": PatchedSettingsRequestFlags.from_dict(obj["flags"]) if obj.get("flags") is not None else None }) return _obj diff --git a/authentik_client/models/severity_enum.py b/authentik_client/models/severity_enum.py index 6673fa287..7babaaaf4 100644 --- a/authentik_client/models/severity_enum.py +++ b/authentik_client/models/severity_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/shell_challenge.py b/authentik_client/models/shell_challenge.py index 8479a960f..0de2798a1 100644 --- a/authentik_client/models/shell_challenge.py +++ b/authentik_client/models/shell_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/signature_algorithm_enum.py b/authentik_client/models/signature_algorithm_enum.py index 1f5f59bed..3ebcc9db2 100644 --- a/authentik_client/models/signature_algorithm_enum.py +++ b/authentik_client/models/signature_algorithm_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/sms_device.py b/authentik_client/models/sms_device.py index 9745be327..30d389e0d 100644 --- a/authentik_client/models/sms_device.py +++ b/authentik_client/models/sms_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/sms_device_request.py b/authentik_client/models/sms_device_request.py index d6510e382..078b6435c 100644 --- a/authentik_client/models/sms_device_request.py +++ b/authentik_client/models/sms_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/software.py b/authentik_client/models/software.py new file mode 100644 index 000000000..4d5489228 --- /dev/null +++ b/authentik_client/models/software.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class Software(BaseModel): + """ + Software + """ # noqa: E501 + name: StrictStr + version: Optional[StrictStr] = None + source: StrictStr + path: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["name", "version", "source", "path"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of Software from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of Software from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "version": obj.get("version"), + "source": obj.get("source"), + "path": obj.get("path") + }) + return _obj + + diff --git a/authentik_client/models/software_request.py b/authentik_client/models/software_request.py new file mode 100644 index 000000000..b23e3c95a --- /dev/null +++ b/authentik_client/models/software_request.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class SoftwareRequest(BaseModel): + """ + SoftwareRequest + """ # noqa: E501 + name: Annotated[str, Field(min_length=1, strict=True)] + version: Optional[StrictStr] = None + source: Annotated[str, Field(min_length=1, strict=True)] + path: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + __properties: ClassVar[List[str]] = ["name", "version", "source", "path"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SoftwareRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SoftwareRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "version": obj.get("version"), + "source": obj.get("source"), + "path": obj.get("path") + }) + return _obj + + diff --git a/authentik_client/models/source.py b/authentik_client/models/source.py index 24c6beb28..73c0dd9b1 100644 --- a/authentik_client/models/source.py +++ b/authentik_client/models/source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -33,8 +34,9 @@ class Source(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Source's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -47,8 +49,10 @@ class Source(BaseModel): user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") managed: Optional[StrictStr] = Field(description="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.") user_path_template: Optional[StrictStr] = None - icon: Optional[StrictStr] = Field(description="Get the URL to the Icon. If the name is /static or starts with http it is returned as-is") - __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon"] + icon: Optional[StrictStr] = None + icon_url: Optional[StrictStr] = Field(description="Get the URL to the source icon") + icon_themed_urls: Optional[ThemedUrls] + __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "icon_url", "icon_themed_urls"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -94,6 +98,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -102,7 +107,8 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name_plural", "meta_model_name", "managed", - "icon", + "icon_url", + "icon_themed_urls", ]) _dict = self.model_dump( @@ -110,6 +116,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of icon_themed_urls + if self.icon_themed_urls: + _dict['icon_themed_urls'] = self.icon_themed_urls.to_dict() # set to None if authentication_flow (nullable) is None # and model_fields_set contains the field if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: @@ -125,10 +134,15 @@ def to_dict(self) -> Dict[str, Any]: if self.managed is None and "managed" in self.model_fields_set: _dict['managed'] = None - # set to None if icon (nullable) is None + # set to None if icon_url (nullable) is None + # and model_fields_set contains the field + if self.icon_url is None and "icon_url" in self.model_fields_set: + _dict['icon_url'] = None + + # set to None if icon_themed_urls (nullable) is None # and model_fields_set contains the field - if self.icon is None and "icon" in self.model_fields_set: - _dict['icon'] = None + if self.icon_themed_urls is None and "icon_themed_urls" in self.model_fields_set: + _dict['icon_themed_urls'] = None return _dict @@ -146,6 +160,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -158,7 +173,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "user_matching_mode": obj.get("user_matching_mode"), "managed": obj.get("managed"), "user_path_template": obj.get("user_path_template"), - "icon": obj.get("icon") + "icon": obj.get("icon"), + "icon_url": obj.get("icon_url"), + "icon_themed_urls": ThemedUrls.from_dict(obj["icon_themed_urls"]) if obj.get("icon_themed_urls") is not None else None }) return _obj diff --git a/authentik_client/models/source_stage.py b/authentik_client/models/source_stage.py index 356f4fb20..ac1c7cf35 100644 --- a/authentik_client/models/source_stage.py +++ b/authentik_client/models/source_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -35,7 +35,7 @@ class SourceStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] source: UUID resume_timeout: Optional[StrictStr] = Field(default=None, description="Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)") __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set", "source", "resume_timeout"] @@ -75,6 +75,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -82,6 +83,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/source_stage_request.py b/authentik_client/models/source_stage_request.py index f81411e75..dbcbff715 100644 --- a/authentik_client/models/source_stage_request.py +++ b/authentik_client/models/source_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -31,10 +30,9 @@ class SourceStageRequest(BaseModel): SourceStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None source: UUID resume_timeout: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)") - __properties: ClassVar[List[str]] = ["name", "flow_set", "source", "resume_timeout"] + __properties: ClassVar[List[str]] = ["name", "source", "resume_timeout"] model_config = ConfigDict( populate_by_name=True, @@ -75,13 +73,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -95,7 +86,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "source": obj.get("source"), "resume_timeout": obj.get("resume_timeout") }) diff --git a/authentik_client/models/source_type.py b/authentik_client/models/source_type.py index cfbe2cd59..08b961ef2 100644 --- a/authentik_client/models/source_type.py +++ b/authentik_client/models/source_type.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ssf_provider.py b/authentik_client/models/ssf_provider.py index 49af246dc..4b3b53ded 100644 --- a/authentik_client/models/ssf_provider.py +++ b/authentik_client/models/ssf_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ssf_provider_request.py b/authentik_client/models/ssf_provider_request.py index 9393f48df..7a2944879 100644 --- a/authentik_client/models/ssf_provider_request.py +++ b/authentik_client/models/ssf_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/ssf_stream.py b/authentik_client/models/ssf_stream.py index 6444d0a07..40317c67d 100644 --- a/authentik_client/models/ssf_stream.py +++ b/authentik_client/models/ssf_stream.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/stage.py b/authentik_client/models/stage.py index 82c005694..8843297e0 100644 --- a/authentik_client/models/stage.py +++ b/authentik_client/models/stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from uuid import UUID from authentik_client.models.flow_set import FlowSet from typing import Optional, Set @@ -35,7 +35,7 @@ class Stage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set"] model_config = ConfigDict( @@ -73,6 +73,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -80,6 +81,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/mutual_tls_stage_mode_enum.py b/authentik_client/models/stage_mode_enum.py similarity index 73% rename from authentik_client/models/mutual_tls_stage_mode_enum.py rename to authentik_client/models/stage_mode_enum.py index d9af0b149..709a13a3d 100644 --- a/authentik_client/models/mutual_tls_stage_mode_enum.py +++ b/authentik_client/models/stage_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,9 +19,9 @@ from typing_extensions import Self -class MutualTLSStageModeEnum(str, Enum): +class StageModeEnum(str, Enum): """ - MutualTLSStageModeEnum + StageModeEnum """ """ @@ -32,7 +32,7 @@ class MutualTLSStageModeEnum(str, Enum): @classmethod def from_json(cls, json_str: str) -> Self: - """Create an instance of MutualTLSStageModeEnum from a JSON string""" + """Create an instance of StageModeEnum from a JSON string""" return cls(json.loads(json_str)) diff --git a/authentik_client/models/stage_prompt.py b/authentik_client/models/stage_prompt.py index fa634c953..8c0db27c1 100644 --- a/authentik_client/models/stage_prompt.py +++ b/authentik_client/models/stage_prompt.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from authentik_client.models.prompt_choice import PromptChoice from authentik_client.models.prompt_type_enum import PromptTypeEnum from typing import Optional, Set from typing_extensions import Self @@ -36,7 +37,7 @@ class StagePrompt(BaseModel): initial_value: StrictStr order: StrictInt sub_text: StrictStr - choices: Optional[List[StrictStr]] + choices: Optional[List[PromptChoice]] __properties: ClassVar[List[str]] = ["field_key", "label", "type", "required", "placeholder", "initial_value", "order", "sub_text", "choices"] model_config = ConfigDict( @@ -78,6 +79,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in choices (list) + _items = [] + if self.choices: + for _item_choices in self.choices: + if _item_choices: + _items.append(_item_choices.to_dict()) + _dict['choices'] = _items # set to None if choices (nullable) is None # and model_fields_set contains the field if self.choices is None and "choices" in self.model_fields_set: @@ -103,7 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "initial_value": obj.get("initial_value"), "order": obj.get("order"), "sub_text": obj.get("sub_text"), - "choices": obj.get("choices") + "choices": [PromptChoice.from_dict(_item) for _item in obj["choices"]] if obj.get("choices") is not None else None }) return _obj diff --git a/authentik_client/models/state_enum.py b/authentik_client/models/state_enum.py index 443693fde..88d8fa1a3 100644 --- a/authentik_client/models/state_enum.py +++ b/authentik_client/models/state_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/static_device.py b/authentik_client/models/static_device.py index b59f56f5f..9fe94757b 100644 --- a/authentik_client/models/static_device.py +++ b/authentik_client/models/static_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/static_device_request.py b/authentik_client/models/static_device_request.py index 088047ac9..b8fb5a5d5 100644 --- a/authentik_client/models/static_device_request.py +++ b/authentik_client/models/static_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/static_device_token.py b/authentik_client/models/static_device_token.py index 45b1d7179..8701560e6 100644 --- a/authentik_client/models/static_device_token.py +++ b/authentik_client/models/static_device_token.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,7 +28,7 @@ class StaticDeviceToken(BaseModel): """ Serializer for static device's tokens """ # noqa: E501 - token: Annotated[str, Field(strict=True, max_length=16)] + token: Annotated[str, Field(strict=True, max_length=100)] __properties: ClassVar[List[str]] = ["token"] model_config = ConfigDict( diff --git a/authentik_client/models/sub_mode_enum.py b/authentik_client/models/sub_mode_enum.py index 5ef5fbadf..19ca82f8c 100644 --- a/authentik_client/models/sub_mode_enum.py +++ b/authentik_client/models/sub_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/sync_object_model_enum.py b/authentik_client/models/sync_object_model_enum.py index bc51a2537..b43d04f0d 100644 --- a/authentik_client/models/sync_object_model_enum.py +++ b/authentik_client/models/sync_object_model_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/sync_object_request.py b/authentik_client/models/sync_object_request.py index 0d2428873..71aa5f62e 100644 --- a/authentik_client/models/sync_object_request.py +++ b/authentik_client/models/sync_object_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/sync_object_result.py b/authentik_client/models/sync_object_result.py index 9b3d2d036..0d24f1535 100644 --- a/authentik_client/models/sync_object_result.py +++ b/authentik_client/models/sync_object_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/sync_outgoing_trigger_mode_enum.py b/authentik_client/models/sync_outgoing_trigger_mode_enum.py new file mode 100644 index 000000000..e9ecdd4c2 --- /dev/null +++ b/authentik_client/models/sync_outgoing_trigger_mode_enum.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class SyncOutgoingTriggerModeEnum(str, Enum): + """ + SyncOutgoingTriggerModeEnum + """ + + """ + allowed enum values + """ + NONE = 'none' + IMMEDIATE = 'immediate' + DEFERRED_END = 'deferred_end' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of SyncOutgoingTriggerModeEnum from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/authentik_client/models/sync_status.py b/authentik_client/models/sync_status.py index 77a4471f4..5317fc293 100644 --- a/authentik_client/models/sync_status.py +++ b/authentik_client/models/sync_status.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/system_info.py b/authentik_client/models/system_info.py index a50a3c67a..dae3e1117 100644 --- a/authentik_client/models/system_info.py +++ b/authentik_client/models/system_info.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/system_info_runtime.py b/authentik_client/models/system_info_runtime.py index 66a93aadf..8f2a77b04 100644 --- a/authentik_client/models/system_info_runtime.py +++ b/authentik_client/models/system_info_runtime.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/task.py b/authentik_client/models/task.py index 1373d25ba..144ef961c 100644 --- a/authentik_client/models/task.py +++ b/authentik_client/models/task.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/task_aggregated_status_enum.py b/authentik_client/models/task_aggregated_status_enum.py index 6d2bb9759..cbbd12fd8 100644 --- a/authentik_client/models/task_aggregated_status_enum.py +++ b/authentik_client/models/task_aggregated_status_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/telegram_auth_request.py b/authentik_client/models/telegram_auth_request.py new file mode 100644 index 000000000..c25ba66d5 --- /dev/null +++ b/authentik_client/models/telegram_auth_request.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class TelegramAuthRequest(BaseModel): + """ + TelegramAuthRequest + """ # noqa: E501 + id: StrictInt + first_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None + last_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None + username: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None + photo_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + auth_date: StrictInt + hash: Annotated[str, Field(min_length=1, strict=True, max_length=64)] + __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "username", "photo_url", "auth_date", "hash"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TelegramAuthRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TelegramAuthRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "first_name": obj.get("first_name"), + "last_name": obj.get("last_name"), + "username": obj.get("username"), + "photo_url": obj.get("photo_url"), + "auth_date": obj.get("auth_date"), + "hash": obj.get("hash") + }) + return _obj + + diff --git a/authentik_client/models/telegram_challenge_response_request.py b/authentik_client/models/telegram_challenge_response_request.py index da258765c..80f43ce7b 100644 --- a/authentik_client/models/telegram_challenge_response_request.py +++ b/authentik_client/models/telegram_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,7 +28,6 @@ class TelegramChallengeResponseRequest(BaseModel): """ Base class for all challenge responses """ # noqa: E501 - component: Optional[Annotated[str, Field(min_length=1, strict=True)]] = 'ak-source-telegram' id: StrictInt first_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None last_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None @@ -36,7 +35,8 @@ class TelegramChallengeResponseRequest(BaseModel): photo_url: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None auth_date: StrictInt hash: Annotated[str, Field(min_length=1, strict=True, max_length=64)] - __properties: ClassVar[List[str]] = ["component", "id", "first_name", "last_name", "username", "photo_url", "auth_date", "hash"] + component: Optional[Annotated[str, Field(min_length=1, strict=True)]] = 'ak-source-telegram' + __properties: ClassVar[List[str]] = ["id", "first_name", "last_name", "username", "photo_url", "auth_date", "hash", "component"] model_config = ConfigDict( populate_by_name=True, @@ -89,14 +89,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "component": obj.get("component") if obj.get("component") is not None else 'ak-source-telegram', "id": obj.get("id"), "first_name": obj.get("first_name"), "last_name": obj.get("last_name"), "username": obj.get("username"), "photo_url": obj.get("photo_url"), "auth_date": obj.get("auth_date"), - "hash": obj.get("hash") + "hash": obj.get("hash"), + "component": obj.get("component") if obj.get("component") is not None else 'ak-source-telegram' }) return _obj diff --git a/authentik_client/models/telegram_login_challenge.py b/authentik_client/models/telegram_login_challenge.py index b4ed04207..2f3f93d78 100644 --- a/authentik_client/models/telegram_login_challenge.py +++ b/authentik_client/models/telegram_login_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/telegram_source.py b/authentik_client/models/telegram_source.py index 572f97ef0..5a27a86be 100644 --- a/authentik_client/models/telegram_source.py +++ b/authentik_client/models/telegram_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -23,6 +23,7 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.policy_engine_mode import PolicyEngineMode +from authentik_client.models.themed_urls import ThemedUrls from authentik_client.models.user_matching_mode_enum import UserMatchingModeEnum from typing import Optional, Set from typing_extensions import Self @@ -33,8 +34,9 @@ class TelegramSource(BaseModel): """ # noqa: E501 pk: UUID name: StrictStr = Field(description="Source's display Name.") - slug: Annotated[str, Field(strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -47,11 +49,13 @@ class TelegramSource(BaseModel): user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") managed: Optional[StrictStr] = Field(description="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.") user_path_template: Optional[StrictStr] = None - icon: Optional[StrictStr] + icon: Optional[StrictStr] = None + icon_url: Optional[StrictStr] + icon_themed_urls: Optional[ThemedUrls] bot_username: StrictStr = Field(description="Telegram bot username") request_message_access: Optional[StrictBool] = Field(default=None, description="Request access to send messages from your bot.") pre_authentication_flow: UUID = Field(description="Flow used before authentication.") - __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "bot_username", "request_message_access", "pre_authentication_flow"] + __properties: ClassVar[List[str]] = ["pk", "name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "policy_engine_mode", "user_matching_mode", "managed", "user_path_template", "icon", "icon_url", "icon_themed_urls", "bot_username", "request_message_access", "pre_authentication_flow"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -97,6 +101,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -105,7 +110,8 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name_plural", "meta_model_name", "managed", - "icon", + "icon_url", + "icon_themed_urls", ]) _dict = self.model_dump( @@ -113,6 +119,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of icon_themed_urls + if self.icon_themed_urls: + _dict['icon_themed_urls'] = self.icon_themed_urls.to_dict() # set to None if authentication_flow (nullable) is None # and model_fields_set contains the field if self.authentication_flow is None and "authentication_flow" in self.model_fields_set: @@ -128,10 +137,15 @@ def to_dict(self) -> Dict[str, Any]: if self.managed is None and "managed" in self.model_fields_set: _dict['managed'] = None - # set to None if icon (nullable) is None + # set to None if icon_url (nullable) is None + # and model_fields_set contains the field + if self.icon_url is None and "icon_url" in self.model_fields_set: + _dict['icon_url'] = None + + # set to None if icon_themed_urls (nullable) is None # and model_fields_set contains the field - if self.icon is None and "icon" in self.model_fields_set: - _dict['icon'] = None + if self.icon_themed_urls is None and "icon_themed_urls" in self.model_fields_set: + _dict['icon_themed_urls'] = None return _dict @@ -149,6 +163,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -162,6 +177,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "managed": obj.get("managed"), "user_path_template": obj.get("user_path_template"), "icon": obj.get("icon"), + "icon_url": obj.get("icon_url"), + "icon_themed_urls": ThemedUrls.from_dict(obj["icon_themed_urls"]) if obj.get("icon_themed_urls") is not None else None, "bot_username": obj.get("bot_username"), "request_message_access": obj.get("request_message_access"), "pre_authentication_flow": obj.get("pre_authentication_flow") diff --git a/authentik_client/models/telegram_source_property_mapping.py b/authentik_client/models/telegram_source_property_mapping.py index b8666d6b3..763452d77 100644 --- a/authentik_client/models/telegram_source_property_mapping.py +++ b/authentik_client/models/telegram_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/telegram_source_property_mapping_request.py b/authentik_client/models/telegram_source_property_mapping_request.py index c2fb4f912..1af946941 100644 --- a/authentik_client/models/telegram_source_property_mapping_request.py +++ b/authentik_client/models/telegram_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/telegram_source_request.py b/authentik_client/models/telegram_source_request.py index 0f214622a..f6d35aff1 100644 --- a/authentik_client/models/telegram_source_request.py +++ b/authentik_client/models/telegram_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID @@ -32,8 +32,9 @@ class TelegramSourceRequest(BaseModel): Source Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Source's display Name.") - slug: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(description="Internal source name, used in URLs.") + slug: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Internal source name, used in URLs.") enabled: Optional[StrictBool] = None + promoted: Optional[StrictBool] = Field(default=None, description="When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon.") authentication_flow: Optional[UUID] = Field(default=None, description="Flow to use when authenticating existing users.") enrollment_flow: Optional[UUID] = Field(default=None, description="Flow to use when enrolling new users.") user_property_mappings: Optional[List[UUID]] = None @@ -41,11 +42,12 @@ class TelegramSourceRequest(BaseModel): policy_engine_mode: Optional[PolicyEngineMode] = None user_matching_mode: Optional[UserMatchingModeEnum] = Field(default=None, description="How the source determines if an existing user should be authenticated or a new user enrolled.") user_path_template: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + icon: Optional[StrictStr] = None bot_username: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Telegram bot username") bot_token: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Telegram bot token") request_message_access: Optional[StrictBool] = Field(default=None, description="Request access to send messages from your bot.") pre_authentication_flow: UUID = Field(description="Flow used before authentication.") - __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "bot_username", "bot_token", "request_message_access", "pre_authentication_flow"] + __properties: ClassVar[List[str]] = ["name", "slug", "enabled", "promoted", "authentication_flow", "enrollment_flow", "user_property_mappings", "group_property_mappings", "policy_engine_mode", "user_matching_mode", "user_path_template", "icon", "bot_username", "bot_token", "request_message_access", "pre_authentication_flow"] @field_validator('slug') def slug_validate_regular_expression(cls, value): @@ -118,6 +120,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "slug": obj.get("slug"), "enabled": obj.get("enabled"), + "promoted": obj.get("promoted"), "authentication_flow": obj.get("authentication_flow"), "enrollment_flow": obj.get("enrollment_flow"), "user_property_mappings": obj.get("user_property_mappings"), @@ -125,6 +128,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "policy_engine_mode": obj.get("policy_engine_mode"), "user_matching_mode": obj.get("user_matching_mode"), "user_path_template": obj.get("user_path_template"), + "icon": obj.get("icon"), "bot_username": obj.get("bot_username"), "bot_token": obj.get("bot_token"), "request_message_access": obj.get("request_message_access"), diff --git a/authentik_client/models/tenant.py b/authentik_client/models/tenant.py index c7d458acf..9a8583fb4 100644 --- a/authentik_client/models/tenant.py +++ b/authentik_client/models/tenant.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/tenant_admin_group_request_request.py b/authentik_client/models/tenant_admin_group_request_request.py index f74cd1d8c..43b096f32 100644 --- a/authentik_client/models/tenant_admin_group_request_request.py +++ b/authentik_client/models/tenant_admin_group_request_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/tenant_recovery_key_request_request.py b/authentik_client/models/tenant_recovery_key_request_request.py index 268b0ac86..42e4915b8 100644 --- a/authentik_client/models/tenant_recovery_key_request_request.py +++ b/authentik_client/models/tenant_recovery_key_request_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/tenant_recovery_key_response.py b/authentik_client/models/tenant_recovery_key_response.py index fc2a5ed74..d63947ea3 100644 --- a/authentik_client/models/tenant_recovery_key_response.py +++ b/authentik_client/models/tenant_recovery_key_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/tenant_request.py b/authentik_client/models/tenant_request.py index 2df066c0e..cf992f313 100644 --- a/authentik_client/models/tenant_request.py +++ b/authentik_client/models/tenant_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/themed_urls.py b/authentik_client/models/themed_urls.py new file mode 100644 index 000000000..5a0cb5e47 --- /dev/null +++ b/authentik_client/models/themed_urls.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ThemedUrls(BaseModel): + """ + Themed URLs - maps theme names to URLs for light and dark themes + """ # noqa: E501 + light: Optional[StrictStr] = None + dark: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["light", "dark"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ThemedUrls from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if light (nullable) is None + # and model_fields_set contains the field + if self.light is None and "light" in self.model_fields_set: + _dict['light'] = None + + # set to None if dark (nullable) is None + # and model_fields_set contains the field + if self.dark is None and "dark" in self.model_fields_set: + _dict['dark'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ThemedUrls from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "light": obj.get("light"), + "dark": obj.get("dark") + }) + return _obj + + diff --git a/authentik_client/models/token.py b/authentik_client/models/token.py index 5ae1be18b..d1711a148 100644 --- a/authentik_client/models/token.py +++ b/authentik_client/models/token.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/token_model.py b/authentik_client/models/token_model.py index a2dfb051b..d99b3b1ad 100644 --- a/authentik_client/models/token_model.py +++ b/authentik_client/models/token_model.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,7 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional -from authentik_client.models.o_auth2_provider import OAuth2Provider +from authentik_client.models.provider import Provider from authentik_client.models.user import User from typing import Optional, Set from typing_extensions import Self @@ -31,7 +31,7 @@ class TokenModel(BaseModel): Serializer for BaseGrantModel and RefreshToken """ # noqa: E501 pk: StrictInt - provider: OAuth2Provider + provider: Provider user: User is_expired: StrictBool = Field(description="Check if token is expired yet.") expires: Optional[datetime] = None @@ -109,7 +109,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "pk": obj.get("pk"), - "provider": OAuth2Provider.from_dict(obj["provider"]) if obj.get("provider") is not None else None, + "provider": Provider.from_dict(obj["provider"]) if obj.get("provider") is not None else None, "user": User.from_dict(obj["user"]) if obj.get("user") is not None else None, "is_expired": obj.get("is_expired"), "expires": obj.get("expires"), diff --git a/authentik_client/models/token_request.py b/authentik_client/models/token_request.py index 556c89813..e5edeeb27 100644 --- a/authentik_client/models/token_request.py +++ b/authentik_client/models/token_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/token_set_key_request.py b/authentik_client/models/token_set_key_request.py index a87611b29..2d31bac3c 100644 --- a/authentik_client/models/token_set_key_request.py +++ b/authentik_client/models/token_set_key_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -26,7 +26,7 @@ class TokenSetKeyRequest(BaseModel): """ - TokenSetKeyRequest + Set token's key """ # noqa: E501 key: Annotated[str, Field(min_length=1, strict=True)] __properties: ClassVar[List[str]] = ["key"] diff --git a/authentik_client/models/token_view.py b/authentik_client/models/token_view.py index e4632eef9..986327944 100644 --- a/authentik_client/models/token_view.py +++ b/authentik_client/models/token_view.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/totp_device.py b/authentik_client/models/totp_device.py index 05b97a36f..e40896b28 100644 --- a/authentik_client/models/totp_device.py +++ b/authentik_client/models/totp_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/totp_device_request.py b/authentik_client/models/totp_device_request.py index 28fb0e3fc..0d61de25b 100644 --- a/authentik_client/models/totp_device_request.py +++ b/authentik_client/models/totp_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/transaction_application_request.py b/authentik_client/models/transaction_application_request.py index dd068827a..4d69b9d2b 100644 --- a/authentik_client/models/transaction_application_request.py +++ b/authentik_client/models/transaction_application_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/transaction_application_response.py b/authentik_client/models/transaction_application_response.py index 18fdec4e6..4a69b769a 100644 --- a/authentik_client/models/transaction_application_response.py +++ b/authentik_client/models/transaction_application_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/transaction_policy_binding_request.py b/authentik_client/models/transaction_policy_binding_request.py index 9359c86f1..60c549e0b 100644 --- a/authentik_client/models/transaction_policy_binding_request.py +++ b/authentik_client/models/transaction_policy_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/type_create.py b/authentik_client/models/type_create.py index 99cd78072..9930f9acc 100644 --- a/authentik_client/models/type_create.py +++ b/authentik_client/models/type_create.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -33,7 +33,8 @@ class TypeCreate(BaseModel): model_name: StrictStr icon_url: Optional[StrictStr] = None requires_enterprise: Optional[StrictBool] = False - __properties: ClassVar[List[str]] = ["name", "description", "component", "model_name", "icon_url", "requires_enterprise"] + deprecated: Optional[StrictBool] = False + __properties: ClassVar[List[str]] = ["name", "description", "component", "model_name", "icon_url", "requires_enterprise", "deprecated"] model_config = ConfigDict( populate_by_name=True, @@ -91,7 +92,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "component": obj.get("component"), "model_name": obj.get("model_name"), "icon_url": obj.get("icon_url"), - "requires_enterprise": obj.get("requires_enterprise") if obj.get("requires_enterprise") is not None else False + "requires_enterprise": obj.get("requires_enterprise") if obj.get("requires_enterprise") is not None else False, + "deprecated": obj.get("deprecated") if obj.get("deprecated") is not None else False }) return _obj diff --git a/authentik_client/models/ui_theme_enum.py b/authentik_client/models/ui_theme_enum.py index ab5b47b26..86b218b24 100644 --- a/authentik_client/models/ui_theme_enum.py +++ b/authentik_client/models/ui_theme_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/unique_password_policy.py b/authentik_client/models/unique_password_policy.py index d1e6eabde..5a10a8267 100644 --- a/authentik_client/models/unique_password_policy.py +++ b/authentik_client/models/unique_password_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/unique_password_policy_request.py b/authentik_client/models/unique_password_policy_request.py index 6a5227887..ef1ba09d6 100644 --- a/authentik_client/models/unique_password_policy_request.py +++ b/authentik_client/models/unique_password_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/used_by.py b/authentik_client/models/used_by.py index d69cd2804..6dbf36a50 100644 --- a/authentik_client/models/used_by.py +++ b/authentik_client/models/used_by.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/used_by_action_enum.py b/authentik_client/models/used_by_action_enum.py index 3bd865c96..fbc44b88d 100644 --- a/authentik_client/models/used_by_action_enum.py +++ b/authentik_client/models/used_by_action_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -31,6 +31,7 @@ class UsedByActionEnum(str, Enum): CASCADE_MANY = 'cascade_many' SET_NULL = 'set_null' SET_DEFAULT = 'set_default' + LEFT_DANGLING = 'left_dangling' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/authentik_client/models/user.py b/authentik_client/models/user.py index 36da4bff8..e92d188c1 100644 --- a/authentik_client/models/user.py +++ b/authentik_client/models/user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,6 +24,7 @@ from typing_extensions import Annotated from uuid import UUID from authentik_client.models.partial_group import PartialGroup +from authentik_client.models.role import Role from authentik_client.models.user_type_enum import UserTypeEnum from typing import Optional, Set from typing_extensions import Self @@ -41,6 +42,8 @@ class User(BaseModel): is_superuser: StrictBool groups: Optional[List[UUID]] = None groups_obj: Optional[List[PartialGroup]] + roles: Optional[List[UUID]] = None + roles_obj: Optional[List[Role]] email: Optional[Annotated[str, Field(strict=True, max_length=254)]] = None avatar: StrictStr = Field(description="User's avatar, either a http/https URL or a data URI") attributes: Optional[Dict[str, Any]] = None @@ -50,7 +53,7 @@ class User(BaseModel): uuid: UUID password_change_date: datetime last_updated: datetime - __properties: ClassVar[List[str]] = ["pk", "username", "name", "is_active", "last_login", "date_joined", "is_superuser", "groups", "groups_obj", "email", "avatar", "attributes", "uid", "path", "type", "uuid", "password_change_date", "last_updated"] + __properties: ClassVar[List[str]] = ["pk", "username", "name", "is_active", "last_login", "date_joined", "is_superuser", "groups", "groups_obj", "roles", "roles_obj", "email", "avatar", "attributes", "uid", "path", "type", "uuid", "password_change_date", "last_updated"] model_config = ConfigDict( populate_by_name=True, @@ -91,12 +94,14 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", "date_joined", "is_superuser", "groups_obj", + "roles_obj", "avatar", "uid", "uuid", @@ -116,6 +121,13 @@ def to_dict(self) -> Dict[str, Any]: if _item_groups_obj: _items.append(_item_groups_obj.to_dict()) _dict['groups_obj'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in roles_obj (list) + _items = [] + if self.roles_obj: + for _item_roles_obj in self.roles_obj: + if _item_roles_obj: + _items.append(_item_roles_obj.to_dict()) + _dict['roles_obj'] = _items # set to None if last_login (nullable) is None # and model_fields_set contains the field if self.last_login is None and "last_login" in self.model_fields_set: @@ -126,6 +138,11 @@ def to_dict(self) -> Dict[str, Any]: if self.groups_obj is None and "groups_obj" in self.model_fields_set: _dict['groups_obj'] = None + # set to None if roles_obj (nullable) is None + # and model_fields_set contains the field + if self.roles_obj is None and "roles_obj" in self.model_fields_set: + _dict['roles_obj'] = None + return _dict @classmethod @@ -147,6 +164,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_superuser": obj.get("is_superuser"), "groups": obj.get("groups"), "groups_obj": [PartialGroup.from_dict(_item) for _item in obj["groups_obj"]] if obj.get("groups_obj") is not None else None, + "roles": obj.get("roles"), + "roles_obj": [Role.from_dict(_item) for _item in obj["roles_obj"]] if obj.get("roles_obj") is not None else None, "email": obj.get("email"), "avatar": obj.get("avatar"), "attributes": obj.get("attributes"), diff --git a/authentik_client/models/user_account_request.py b/authentik_client/models/user_account_request.py index 6a649ac4b..a0e366880 100644 --- a/authentik_client/models/user_account_request.py +++ b/authentik_client/models/user_account_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_account_serializer_for_role_request.py b/authentik_client/models/user_account_serializer_for_role_request.py new file mode 100644 index 000000000..adae2128f --- /dev/null +++ b/authentik_client/models/user_account_serializer_for_role_request.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictInt +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class UserAccountSerializerForRoleRequest(BaseModel): + """ + Account adding/removing operations + """ # noqa: E501 + pk: StrictInt + __properties: ClassVar[List[str]] = ["pk"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserAccountSerializerForRoleRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserAccountSerializerForRoleRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pk": obj.get("pk") + }) + return _obj + + diff --git a/authentik_client/models/user_assigned_object_permission.py b/authentik_client/models/user_assigned_object_permission.py deleted file mode 100644 index 54c2da025..000000000 --- a/authentik_client/models/user_assigned_object_permission.py +++ /dev/null @@ -1,132 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from datetime import datetime -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator -from typing import Any, ClassVar, Dict, List, Optional -from typing_extensions import Annotated -from authentik_client.models.user_object_permission import UserObjectPermission -from typing import Optional, Set -from typing_extensions import Self - -class UserAssignedObjectPermission(BaseModel): - """ - Users assigned object permission serializer - """ # noqa: E501 - pk: StrictInt - username: Annotated[str, Field(strict=True, max_length=150)] = Field(description="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.") - name: StrictStr = Field(description="User's display name.") - is_active: Optional[StrictBool] = Field(default=None, description="Designates whether this user should be treated as active. Unselect this instead of deleting accounts.") - last_login: Optional[datetime] = None - email: Optional[Annotated[str, Field(strict=True, max_length=254)]] = None - attributes: Optional[Dict[str, Any]] = None - uid: StrictStr - permissions: List[UserObjectPermission] - is_superuser: StrictBool - __properties: ClassVar[List[str]] = ["pk", "username", "name", "is_active", "last_login", "email", "attributes", "uid", "permissions", "is_superuser"] - - @field_validator('username') - def username_validate_regular_expression(cls, value): - """Validates the regular expression""" - if not re.match(r"^[\w.@+-]+$", value): - raise ValueError(r"must validate the regular expression /^[\w.@+-]+$/") - return value - - model_config = ConfigDict( - populate_by_name=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of UserAssignedObjectPermission from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - * OpenAPI `readOnly` fields are excluded. - * OpenAPI `readOnly` fields are excluded. - """ - excluded_fields: Set[str] = set([ - "pk", - "uid", - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - # override the default output from pydantic by calling `to_dict()` of each item in permissions (list) - _items = [] - if self.permissions: - for _item_permissions in self.permissions: - if _item_permissions: - _items.append(_item_permissions.to_dict()) - _dict['permissions'] = _items - # set to None if last_login (nullable) is None - # and model_fields_set contains the field - if self.last_login is None and "last_login" in self.model_fields_set: - _dict['last_login'] = None - - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of UserAssignedObjectPermission from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "pk": obj.get("pk"), - "username": obj.get("username"), - "name": obj.get("name"), - "is_active": obj.get("is_active"), - "last_login": obj.get("last_login"), - "email": obj.get("email"), - "attributes": obj.get("attributes"), - "uid": obj.get("uid"), - "permissions": [UserObjectPermission.from_dict(_item) for _item in obj["permissions"]] if obj.get("permissions") is not None else None, - "is_superuser": obj.get("is_superuser") - }) - return _obj - - diff --git a/authentik_client/models/user_attribute_enum.py b/authentik_client/models/user_attribute_enum.py index 06c811601..495bfd247 100644 --- a/authentik_client/models/user_attribute_enum.py +++ b/authentik_client/models/user_attribute_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_consent.py b/authentik_client/models/user_consent.py index a88db3a80..f52cbbe12 100644 --- a/authentik_client/models/user_consent.py +++ b/authentik_client/models/user_consent.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_creation_mode_enum.py b/authentik_client/models/user_creation_mode_enum.py index 8e1d79c45..755d66298 100644 --- a/authentik_client/models/user_creation_mode_enum.py +++ b/authentik_client/models/user_creation_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_delete_stage.py b/authentik_client/models/user_delete_stage.py index 256372c3e..7ea8a874e 100644 --- a/authentik_client/models/user_delete_stage.py +++ b/authentik_client/models/user_delete_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from uuid import UUID from authentik_client.models.flow_set import FlowSet from typing import Optional, Set @@ -35,7 +35,7 @@ class UserDeleteStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set"] model_config = ConfigDict( @@ -73,6 +73,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -80,6 +81,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/user_delete_stage_request.py b/authentik_client/models/user_delete_stage_request.py index 3eb12549a..21b5f64ff 100644 --- a/authentik_client/models/user_delete_stage_request.py +++ b/authentik_client/models/user_delete_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,9 +19,8 @@ import json from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,8 +29,7 @@ class UserDeleteStageRequest(BaseModel): UserDeleteStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -72,13 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -91,8 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None + "name": obj.get("name") }) return _obj diff --git a/authentik_client/models/user_fields_enum.py b/authentik_client/models/user_fields_enum.py index a1ea374c8..7645bf04c 100644 --- a/authentik_client/models/user_fields_enum.py +++ b/authentik_client/models/user_fields_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_kerberos_source_connection.py b/authentik_client/models/user_kerberos_source_connection.py index 6fbec4b0e..07b254f88 100644 --- a/authentik_client/models/user_kerberos_source_connection.py +++ b/authentik_client/models/user_kerberos_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_kerberos_source_connection_request.py b/authentik_client/models/user_kerberos_source_connection_request.py index 14c60c15c..2202d555b 100644 --- a/authentik_client/models/user_kerberos_source_connection_request.py +++ b/authentik_client/models/user_kerberos_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_ldap_source_connection.py b/authentik_client/models/user_ldap_source_connection.py index 8aabb8ef0..3a53e098b 100644 --- a/authentik_client/models/user_ldap_source_connection.py +++ b/authentik_client/models/user_ldap_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_ldap_source_connection_request.py b/authentik_client/models/user_ldap_source_connection_request.py index d4b8be53f..57be136c0 100644 --- a/authentik_client/models/user_ldap_source_connection_request.py +++ b/authentik_client/models/user_ldap_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_login_challenge.py b/authentik_client/models/user_login_challenge.py index dfd600000..faa275bd7 100644 --- a/authentik_client/models/user_login_challenge.py +++ b/authentik_client/models/user_login_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_login_challenge_response_request.py b/authentik_client/models/user_login_challenge_response_request.py index 81291530e..11959ad52 100644 --- a/authentik_client/models/user_login_challenge_response_request.py +++ b/authentik_client/models/user_login_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_login_stage.py b/authentik_client/models/user_login_stage.py index acec7a7e7..faf51bd2c 100644 --- a/authentik_client/models/user_login_stage.py +++ b/authentik_client/models/user_login_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ class UserLoginStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] session_duration: Optional[StrictStr] = Field(default=None, description="Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3)") terminate_other_sessions: Optional[StrictBool] = Field(default=None, description="Terminate all other sessions of the user logging in.") remember_me_offset: Optional[StrictStr] = Field(default=None, description="Offset the session will be extended by when the user picks the remember me option. Default of 0 means that the remember me option will not be shown. (Format: hours=-1;minutes=-2;seconds=-3)") @@ -81,6 +81,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -88,6 +89,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/user_login_stage_request.py b/authentik_client/models/user_login_stage_request.py index 51102df43..eaef8e649 100644 --- a/authentik_client/models/user_login_stage_request.py +++ b/authentik_client/models/user_login_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,7 +21,6 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.geoip_binding_enum import GeoipBindingEnum from authentik_client.models.network_binding_enum import NetworkBindingEnum from typing import Optional, Set @@ -32,14 +31,13 @@ class UserLoginStageRequest(BaseModel): UserLoginStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None session_duration: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3)") terminate_other_sessions: Optional[StrictBool] = Field(default=None, description="Terminate all other sessions of the user logging in.") remember_me_offset: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="Offset the session will be extended by when the user picks the remember me option. Default of 0 means that the remember me option will not be shown. (Format: hours=-1;minutes=-2;seconds=-3)") network_binding: Optional[NetworkBindingEnum] = Field(default=None, description="Bind sessions created by this stage to the configured network") geoip_binding: Optional[GeoipBindingEnum] = Field(default=None, description="Bind sessions created by this stage to the configured GeoIP location") remember_device: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, description="When set to a non-zero value, authentik will save a cookie with a longer expiry,to remember the device the user is logging in from. (Format: hours=-1;minutes=-2;seconds=-3)") - __properties: ClassVar[List[str]] = ["name", "flow_set", "session_duration", "terminate_other_sessions", "remember_me_offset", "network_binding", "geoip_binding", "remember_device"] + __properties: ClassVar[List[str]] = ["name", "session_duration", "terminate_other_sessions", "remember_me_offset", "network_binding", "geoip_binding", "remember_device"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -100,7 +91,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "session_duration": obj.get("session_duration"), "terminate_other_sessions": obj.get("terminate_other_sessions"), "remember_me_offset": obj.get("remember_me_offset"), diff --git a/authentik_client/models/user_logout_stage.py b/authentik_client/models/user_logout_stage.py index 652bf0030..bc53e5f11 100644 --- a/authentik_client/models/user_logout_stage.py +++ b/authentik_client/models/user_logout_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from uuid import UUID from authentik_client.models.flow_set import FlowSet from typing import Optional, Set @@ -35,7 +35,7 @@ class UserLogoutStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] __properties: ClassVar[List[str]] = ["pk", "name", "component", "verbose_name", "verbose_name_plural", "meta_model_name", "flow_set"] model_config = ConfigDict( @@ -73,6 +73,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -80,6 +81,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/user_logout_stage_request.py b/authentik_client/models/user_logout_stage_request.py index 22d4a871e..3bdf3ff89 100644 --- a/authentik_client/models/user_logout_stage_request.py +++ b/authentik_client/models/user_logout_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -19,9 +19,8 @@ import json from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated -from authentik_client.models.flow_set_request import FlowSetRequest from typing import Optional, Set from typing_extensions import Self @@ -30,8 +29,7 @@ class UserLogoutStageRequest(BaseModel): UserLogoutStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None - __properties: ClassVar[List[str]] = ["name", "flow_set"] + __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( populate_by_name=True, @@ -72,13 +70,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items return _dict @classmethod @@ -91,8 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None + "name": obj.get("name") }) return _obj diff --git a/authentik_client/models/user_matching_mode_enum.py b/authentik_client/models/user_matching_mode_enum.py index 8073af466..fe0d6ef2d 100644 --- a/authentik_client/models/user_matching_mode_enum.py +++ b/authentik_client/models/user_matching_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_o_auth_source_connection.py b/authentik_client/models/user_o_auth_source_connection.py index d2d6efb05..8f09764d2 100644 --- a/authentik_client/models/user_o_auth_source_connection.py +++ b/authentik_client/models/user_o_auth_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_o_auth_source_connection_request.py b/authentik_client/models/user_o_auth_source_connection_request.py index 40fc9f6c9..9f15744d6 100644 --- a/authentik_client/models/user_o_auth_source_connection_request.py +++ b/authentik_client/models/user_o_auth_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_password_set_request.py b/authentik_client/models/user_password_set_request.py index 61d0f550e..edef97f68 100644 --- a/authentik_client/models/user_password_set_request.py +++ b/authentik_client/models/user_password_set_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_path.py b/authentik_client/models/user_path.py index 2ca5affce..cb2256cee 100644 --- a/authentik_client/models/user_path.py +++ b/authentik_client/models/user_path.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_plex_source_connection.py b/authentik_client/models/user_plex_source_connection.py index ae3e165ce..81796c6c7 100644 --- a/authentik_client/models/user_plex_source_connection.py +++ b/authentik_client/models/user_plex_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_plex_source_connection_request.py b/authentik_client/models/user_plex_source_connection_request.py index c952116a9..9881c7975 100644 --- a/authentik_client/models/user_plex_source_connection_request.py +++ b/authentik_client/models/user_plex_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_request.py b/authentik_client/models/user_request.py index e3d752983..785639530 100644 --- a/authentik_client/models/user_request.py +++ b/authentik_client/models/user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,11 +36,12 @@ class UserRequest(BaseModel): is_active: Optional[StrictBool] = Field(default=None, description="Designates whether this user should be treated as active. Unselect this instead of deleting accounts.") last_login: Optional[datetime] = None groups: Optional[List[UUID]] = None + roles: Optional[List[UUID]] = None email: Optional[Annotated[str, Field(strict=True, max_length=254)]] = None attributes: Optional[Dict[str, Any]] = None path: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None type: Optional[UserTypeEnum] = None - __properties: ClassVar[List[str]] = ["username", "name", "is_active", "last_login", "groups", "email", "attributes", "path", "type"] + __properties: ClassVar[List[str]] = ["username", "name", "is_active", "last_login", "groups", "roles", "email", "attributes", "path", "type"] model_config = ConfigDict( populate_by_name=True, @@ -103,6 +104,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_active": obj.get("is_active"), "last_login": obj.get("last_login"), "groups": obj.get("groups"), + "roles": obj.get("roles"), "email": obj.get("email"), "attributes": obj.get("attributes"), "path": obj.get("path"), diff --git a/authentik_client/models/user_saml_source_connection.py b/authentik_client/models/user_saml_source_connection.py index c7d831227..37119dd1e 100644 --- a/authentik_client/models/user_saml_source_connection.py +++ b/authentik_client/models/user_saml_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_saml_source_connection_request.py b/authentik_client/models/user_saml_source_connection_request.py index 45287f808..a4c7301eb 100644 --- a/authentik_client/models/user_saml_source_connection_request.py +++ b/authentik_client/models/user_saml_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_self.py b/authentik_client/models/user_self.py index d5ec0a96c..0a837175a 100644 --- a/authentik_client/models/user_self.py +++ b/authentik_client/models/user_self.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,6 +22,7 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from authentik_client.models.user_self_groups import UserSelfGroups +from authentik_client.models.user_self_roles import UserSelfRoles from authentik_client.models.user_type_enum import UserTypeEnum from typing import Optional, Set from typing_extensions import Self @@ -36,13 +37,14 @@ class UserSelf(BaseModel): is_active: StrictBool = Field(description="Designates whether this user should be treated as active. Unselect this instead of deleting accounts.") is_superuser: StrictBool groups: List[UserSelfGroups] + roles: List[UserSelfRoles] email: Optional[Annotated[str, Field(strict=True, max_length=254)]] = None avatar: StrictStr = Field(description="User's avatar, either a http/https URL or a data URI") uid: StrictStr settings: Dict[str, Any] = Field(description="Get user settings with brand and group settings applied") type: Optional[UserTypeEnum] = None system_permissions: List[StrictStr] = Field(description="Get all system permissions assigned to the user") - __properties: ClassVar[List[str]] = ["pk", "username", "name", "is_active", "is_superuser", "groups", "email", "avatar", "uid", "settings", "type", "system_permissions"] + __properties: ClassVar[List[str]] = ["pk", "username", "name", "is_active", "is_superuser", "groups", "roles", "email", "avatar", "uid", "settings", "type", "system_permissions"] @field_validator('username') def username_validate_regular_expression(cls, value): @@ -89,12 +91,14 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", "is_active", "is_superuser", "groups", + "roles", "avatar", "uid", "settings", @@ -113,6 +117,13 @@ def to_dict(self) -> Dict[str, Any]: if _item_groups: _items.append(_item_groups.to_dict()) _dict['groups'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in roles (list) + _items = [] + if self.roles: + for _item_roles in self.roles: + if _item_roles: + _items.append(_item_roles.to_dict()) + _dict['roles'] = _items return _dict @classmethod @@ -131,6 +142,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "is_active": obj.get("is_active"), "is_superuser": obj.get("is_superuser"), "groups": [UserSelfGroups.from_dict(_item) for _item in obj["groups"]] if obj.get("groups") is not None else None, + "roles": [UserSelfRoles.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None, "email": obj.get("email"), "avatar": obj.get("avatar"), "uid": obj.get("uid"), diff --git a/authentik_client/models/user_self_groups.py b/authentik_client/models/user_self_groups.py index 65e76ee57..0f081f895 100644 --- a/authentik_client/models/user_self_groups.py +++ b/authentik_client/models/user_self_groups.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_self_roles.py b/authentik_client/models/user_self_roles.py new file mode 100644 index 000000000..08cbbb3e5 --- /dev/null +++ b/authentik_client/models/user_self_roles.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.5 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class UserSelfRoles(BaseModel): + """ + UserSelfRoles + """ # noqa: E501 + name: StrictStr + pk: StrictStr + __properties: ClassVar[List[str]] = ["name", "pk"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UserSelfRoles from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. + """ + excluded_fields: Set[str] = set([ + "name", + "pk", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UserSelfRoles from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "pk": obj.get("pk") + }) + return _obj + + diff --git a/authentik_client/models/user_service_account_request.py b/authentik_client/models/user_service_account_request.py index 8f09f6f2d..b9c7718a4 100644 --- a/authentik_client/models/user_service_account_request.py +++ b/authentik_client/models/user_service_account_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_service_account_response.py b/authentik_client/models/user_service_account_response.py index fbc28739f..01f522895 100644 --- a/authentik_client/models/user_service_account_response.py +++ b/authentik_client/models/user_service_account_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_setting.py b/authentik_client/models/user_setting.py index a22e12ed0..92b55718b 100644 --- a/authentik_client/models/user_setting.py +++ b/authentik_client/models/user_setting.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_source_connection.py b/authentik_client/models/user_source_connection.py index d2045c64c..ac0e452ad 100644 --- a/authentik_client/models/user_source_connection.py +++ b/authentik_client/models/user_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_source_connection_request.py b/authentik_client/models/user_source_connection_request.py index 5c558e5f8..3fe229b2a 100644 --- a/authentik_client/models/user_source_connection_request.py +++ b/authentik_client/models/user_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_telegram_source_connection.py b/authentik_client/models/user_telegram_source_connection.py index 77471ef6e..5404a2ff1 100644 --- a/authentik_client/models/user_telegram_source_connection.py +++ b/authentik_client/models/user_telegram_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_telegram_source_connection_request.py b/authentik_client/models/user_telegram_source_connection_request.py index 370d8e561..8c0e85c60 100644 --- a/authentik_client/models/user_telegram_source_connection_request.py +++ b/authentik_client/models/user_telegram_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_type_enum.py b/authentik_client/models/user_type_enum.py index b555e359f..0b651b0fe 100644 --- a/authentik_client/models/user_type_enum.py +++ b/authentik_client/models/user_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_verification_enum.py b/authentik_client/models/user_verification_enum.py index 0c936f7b0..7fc0ee1d2 100644 --- a/authentik_client/models/user_verification_enum.py +++ b/authentik_client/models/user_verification_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/user_write_stage.py b/authentik_client/models/user_write_stage.py index 3eb667c29..30ddaed9c 100644 --- a/authentik_client/models/user_write_stage.py +++ b/authentik_client/models/user_write_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ class UserWriteStage(BaseModel): verbose_name: StrictStr = Field(description="Return object's verbose_name") verbose_name_plural: StrictStr = Field(description="Return object's plural verbose_name") meta_model_name: StrictStr = Field(description="Return internal model name") - flow_set: Optional[List[FlowSet]] = None + flow_set: List[FlowSet] user_creation_mode: Optional[UserCreationModeEnum] = None create_users_as_inactive: Optional[StrictBool] = Field(default=None, description="When set, newly created users are inactive and cannot login.") create_users_group: Optional[UUID] = Field(default=None, description="Optionally add newly created users to this group.") @@ -80,6 +80,7 @@ def to_dict(self) -> Dict[str, Any]: * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. * OpenAPI `readOnly` fields are excluded. + * OpenAPI `readOnly` fields are excluded. """ excluded_fields: Set[str] = set([ "pk", @@ -87,6 +88,7 @@ def to_dict(self) -> Dict[str, Any]: "verbose_name", "verbose_name_plural", "meta_model_name", + "flow_set", ]) _dict = self.model_dump( diff --git a/authentik_client/models/user_write_stage_request.py b/authentik_client/models/user_write_stage_request.py index 2dc74ba0f..aa227a0de 100644 --- a/authentik_client/models/user_write_stage_request.py +++ b/authentik_client/models/user_write_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,7 +22,6 @@ from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from uuid import UUID -from authentik_client.models.flow_set_request import FlowSetRequest from authentik_client.models.user_creation_mode_enum import UserCreationModeEnum from authentik_client.models.user_type_enum import UserTypeEnum from typing import Optional, Set @@ -33,13 +32,12 @@ class UserWriteStageRequest(BaseModel): UserWriteStage Serializer """ # noqa: E501 name: Annotated[str, Field(min_length=1, strict=True)] - flow_set: Optional[List[FlowSetRequest]] = None user_creation_mode: Optional[UserCreationModeEnum] = None create_users_as_inactive: Optional[StrictBool] = Field(default=None, description="When set, newly created users are inactive and cannot login.") create_users_group: Optional[UUID] = Field(default=None, description="Optionally add newly created users to this group.") user_type: Optional[UserTypeEnum] = None user_path_template: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "flow_set", "user_creation_mode", "create_users_as_inactive", "create_users_group", "user_type", "user_path_template"] + __properties: ClassVar[List[str]] = ["name", "user_creation_mode", "create_users_as_inactive", "create_users_group", "user_type", "user_path_template"] model_config = ConfigDict( populate_by_name=True, @@ -80,13 +78,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # override the default output from pydantic by calling `to_dict()` of each item in flow_set (list) - _items = [] - if self.flow_set: - for _item_flow_set in self.flow_set: - if _item_flow_set: - _items.append(_item_flow_set.to_dict()) - _dict['flow_set'] = _items # set to None if create_users_group (nullable) is None # and model_fields_set contains the field if self.create_users_group is None and "create_users_group" in self.model_fields_set: @@ -105,7 +96,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "name": obj.get("name"), - "flow_set": [FlowSetRequest.from_dict(_item) for _item in obj["flow_set"]] if obj.get("flow_set") is not None else None, "user_creation_mode": obj.get("user_creation_mode"), "create_users_as_inactive": obj.get("create_users_as_inactive"), "create_users_group": obj.get("create_users_group"), diff --git a/authentik_client/models/validation_error.py b/authentik_client/models/validation_error.py index db7558a12..f14a39dad 100644 --- a/authentik_client/models/validation_error.py +++ b/authentik_client/models/validation_error.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/version.py b/authentik_client/models/version.py index 2faad8a7b..6e97ea373 100644 --- a/authentik_client/models/version.py +++ b/authentik_client/models/version.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/version_history.py b/authentik_client/models/version_history.py index 9329915bc..4a8f9247a 100644 --- a/authentik_client/models/version_history.py +++ b/authentik_client/models/version_history.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/web_authn_device.py b/authentik_client/models/web_authn_device.py index b37dd8ff3..a5b7ebfd0 100644 --- a/authentik_client/models/web_authn_device.py +++ b/authentik_client/models/web_authn_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/web_authn_device_request.py b/authentik_client/models/web_authn_device_request.py index 56d3d12b5..a900a40f7 100644 --- a/authentik_client/models/web_authn_device_request.py +++ b/authentik_client/models/web_authn_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/web_authn_device_type.py b/authentik_client/models/web_authn_device_type.py index 86c1e30d4..27e01c7a5 100644 --- a/authentik_client/models/web_authn_device_type.py +++ b/authentik_client/models/web_authn_device_type.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/models/worker.py b/authentik_client/models/worker.py index e9ec576de..caa2ca691 100644 --- a/authentik_client/models/worker.py +++ b/authentik_client/models/worker.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/authentik_client/rest.py b/authentik_client/rest.py index ee0323515..2e8e0bd95 100644 --- a/authentik_client/rest.py +++ b/authentik_client/rest.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/docs/AdminApi.md b/docs/AdminApi.md index 3ddbcbd7e..fb7d62528 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -5,6 +5,10 @@ All URIs are relative to */api/v3* Method | HTTP request | Description ------------- | ------------- | ------------- [**admin_apps_list**](AdminApi.md#admin_apps_list) | **GET** /admin/apps/ | +[**admin_file_create**](AdminApi.md#admin_file_create) | **POST** /admin/file/ | +[**admin_file_destroy**](AdminApi.md#admin_file_destroy) | **DELETE** /admin/file/ | +[**admin_file_list**](AdminApi.md#admin_file_list) | **GET** /admin/file/ | +[**admin_file_used_by_list**](AdminApi.md#admin_file_used_by_list) | **GET** /admin/file/used_by/ | [**admin_models_list**](AdminApi.md#admin_models_list) | **GET** /admin/models/ | [**admin_settings_partial_update**](AdminApi.md#admin_settings_partial_update) | **PATCH** /admin/settings/ | [**admin_settings_retrieve**](AdminApi.md#admin_settings_retrieve) | **GET** /admin/settings/ | @@ -89,6 +93,316 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **admin_file_create** +> admin_file_create(file, name=name, usage=usage) + +Upload file to storage backend. + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.AdminApi(api_client) + file = None # bytearray | + name = 'name_example' # str | (optional) + usage = 'media' # str | (optional) (default to 'media') + + try: + api_instance.admin_file_create(file, name=name, usage=usage) + except Exception as e: + print("Exception when calling AdminApi->admin_file_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **bytearray**| | + **name** | **str**| | [optional] + **usage** | **str**| | [optional] [default to 'media'] + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_file_destroy** +> admin_file_destroy(name=name, usage=usage) + +Delete file from storage backend. + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.AdminApi(api_client) + name = 'name_example' # str | (optional) + usage = media # str | (optional) (default to media) + + try: + api_instance.admin_file_destroy(name=name, usage=usage) + except Exception as e: + print("Exception when calling AdminApi->admin_file_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | [optional] + **usage** | **str**| | [optional] [default to media] + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_file_list** +> List[FileList] admin_file_list(manageable_only=manageable_only, search=search, usage=usage) + +List files from storage backend. + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.file_list import FileList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.AdminApi(api_client) + manageable_only = False # bool | (optional) (default to False) + search = 'search_example' # str | A search term. (optional) + usage = media # str | (optional) (default to media) + + try: + api_response = api_instance.admin_file_list(manageable_only=manageable_only, search=search, usage=usage) + print("The response of AdminApi->admin_file_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdminApi->admin_file_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **manageable_only** | **bool**| | [optional] [default to False] + **search** | **str**| A search term. | [optional] + **usage** | **str**| | [optional] [default to media] + +### Return type + +[**List[FileList]**](FileList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **admin_file_used_by_list** +> List[UsedBy] admin_file_used_by_list(name=name) + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.used_by import UsedBy +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.AdminApi(api_client) + name = 'name_example' # str | (optional) + + try: + api_response = api_instance.admin_file_used_by_list(name=name) + print("The response of AdminApi->admin_file_used_by_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AdminApi->admin_file_used_by_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | [optional] + +### Return type + +[**List[UsedBy]**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **admin_models_list** > List[App] admin_models_list() diff --git a/docs/AgentAuthenticationResponse.md b/docs/AgentAuthenticationResponse.md new file mode 100644 index 000000000..9492a3165 --- /dev/null +++ b/docs/AgentAuthenticationResponse.md @@ -0,0 +1,30 @@ +# AgentAuthenticationResponse + +Base serializer class which doesn't implement create/update methods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | | + +## Example + +```python +from authentik_client.models.agent_authentication_response import AgentAuthenticationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentAuthenticationResponse from a JSON string +agent_authentication_response_instance = AgentAuthenticationResponse.from_json(json) +# print the JSON string representation of the object +print(AgentAuthenticationResponse.to_json()) + +# convert the object into a dict +agent_authentication_response_dict = agent_authentication_response_instance.to_dict() +# create an instance of AgentAuthenticationResponse from a dict +agent_authentication_response_from_dict = AgentAuthenticationResponse.from_dict(agent_authentication_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentConfig.md b/docs/AgentConfig.md new file mode 100644 index 000000000..6a76d975a --- /dev/null +++ b/docs/AgentConfig.md @@ -0,0 +1,39 @@ +# AgentConfig + +Base serializer class which doesn't implement create/update methods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_id** | **str** | | [readonly] +**refresh_interval** | **int** | | [readonly] +**authorization_flow** | **str** | | [readonly] +**jwks_auth** | **Dict[str, object]** | | [readonly] +**jwks_challenge** | **Dict[str, object]** | | [readonly] +**nss_uid_offset** | **int** | | +**nss_gid_offset** | **int** | | +**auth_terminate_session_on_expiry** | **bool** | | +**system_config** | [**Config**](Config.md) | | [readonly] +**license_status** | [**LicenseStatusEnum**](LicenseStatusEnum.md) | | [readonly] + +## Example + +```python +from authentik_client.models.agent_config import AgentConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentConfig from a JSON string +agent_config_instance = AgentConfig.from_json(json) +# print the JSON string representation of the object +print(AgentConfig.to_json()) + +# convert the object into a dict +agent_config_dict = agent_config_instance.to_dict() +# create an instance of AgentConfig from a dict +agent_config_from_dict = AgentConfig.from_dict(agent_config_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentConnector.md b/docs/AgentConnector.md new file mode 100644 index 000000000..657029f9f --- /dev/null +++ b/docs/AgentConnector.md @@ -0,0 +1,46 @@ +# AgentConnector + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connector_uuid** | **str** | | [optional] +**name** | **str** | | +**enabled** | **bool** | | [optional] +**component** | **str** | Get object component so that we know how to edit the object | [readonly] +**verbose_name** | **str** | Return object's verbose_name | [readonly] +**verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] +**meta_model_name** | **str** | Return internal model name | [readonly] +**snapshot_expiry** | **str** | | [optional] +**auth_session_duration** | **str** | | [optional] +**auth_terminate_session_on_expiry** | **bool** | | [optional] +**refresh_interval** | **str** | | [optional] +**authorization_flow** | **str** | | [optional] +**nss_uid_offset** | **int** | | [optional] +**nss_gid_offset** | **int** | | [optional] +**challenge_key** | **str** | | [optional] +**challenge_idle_timeout** | **str** | | [optional] +**challenge_trigger_check_in** | **bool** | | [optional] +**jwt_federation_providers** | **List[int]** | | [optional] + +## Example + +```python +from authentik_client.models.agent_connector import AgentConnector + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentConnector from a JSON string +agent_connector_instance = AgentConnector.from_json(json) +# print the JSON string representation of the object +print(AgentConnector.to_json()) + +# convert the object into a dict +agent_connector_dict = agent_connector_instance.to_dict() +# create an instance of AgentConnector from a dict +agent_connector_from_dict = AgentConnector.from_dict(agent_connector_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentConnectorRequest.md b/docs/AgentConnectorRequest.md new file mode 100644 index 000000000..f8ce42ece --- /dev/null +++ b/docs/AgentConnectorRequest.md @@ -0,0 +1,42 @@ +# AgentConnectorRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connector_uuid** | **str** | | [optional] +**name** | **str** | | +**enabled** | **bool** | | [optional] +**snapshot_expiry** | **str** | | [optional] +**auth_session_duration** | **str** | | [optional] +**auth_terminate_session_on_expiry** | **bool** | | [optional] +**refresh_interval** | **str** | | [optional] +**authorization_flow** | **str** | | [optional] +**nss_uid_offset** | **int** | | [optional] +**nss_gid_offset** | **int** | | [optional] +**challenge_key** | **str** | | [optional] +**challenge_idle_timeout** | **str** | | [optional] +**challenge_trigger_check_in** | **bool** | | [optional] +**jwt_federation_providers** | **List[int]** | | [optional] + +## Example + +```python +from authentik_client.models.agent_connector_request import AgentConnectorRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentConnectorRequest from a JSON string +agent_connector_request_instance = AgentConnectorRequest.from_json(json) +# print the JSON string representation of the object +print(AgentConnectorRequest.to_json()) + +# convert the object into a dict +agent_connector_request_dict = agent_connector_request_instance.to_dict() +# create an instance of AgentConnectorRequest from a dict +agent_connector_request_from_dict = AgentConnectorRequest.from_dict(agent_connector_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentPSSODeviceRegistrationRequest.md b/docs/AgentPSSODeviceRegistrationRequest.md new file mode 100644 index 000000000..c70b49c2b --- /dev/null +++ b/docs/AgentPSSODeviceRegistrationRequest.md @@ -0,0 +1,33 @@ +# AgentPSSODeviceRegistrationRequest + +Register Apple device via Platform SSO + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_signing_key** | **str** | | +**device_encryption_key** | **str** | | +**sign_key_id** | **str** | | +**enc_key_id** | **str** | | + +## Example + +```python +from authentik_client.models.agent_psso_device_registration_request import AgentPSSODeviceRegistrationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentPSSODeviceRegistrationRequest from a JSON string +agent_psso_device_registration_request_instance = AgentPSSODeviceRegistrationRequest.from_json(json) +# print the JSON string representation of the object +print(AgentPSSODeviceRegistrationRequest.to_json()) + +# convert the object into a dict +agent_psso_device_registration_request_dict = agent_psso_device_registration_request_instance.to_dict() +# create an instance of AgentPSSODeviceRegistrationRequest from a dict +agent_psso_device_registration_request_from_dict = AgentPSSODeviceRegistrationRequest.from_dict(agent_psso_device_registration_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentPSSODeviceRegistrationResponse.md b/docs/AgentPSSODeviceRegistrationResponse.md new file mode 100644 index 000000000..65fbb2707 --- /dev/null +++ b/docs/AgentPSSODeviceRegistrationResponse.md @@ -0,0 +1,35 @@ +# AgentPSSODeviceRegistrationResponse + +authentik settings for Platform SSO tokens + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**client_id** | **str** | | +**issuer** | **str** | | +**token_endpoint** | **str** | | +**jwks_endpoint** | **str** | | +**audience** | **str** | | +**nonce_endpoint** | **str** | | + +## Example + +```python +from authentik_client.models.agent_psso_device_registration_response import AgentPSSODeviceRegistrationResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentPSSODeviceRegistrationResponse from a JSON string +agent_psso_device_registration_response_instance = AgentPSSODeviceRegistrationResponse.from_json(json) +# print the JSON string representation of the object +print(AgentPSSODeviceRegistrationResponse.to_json()) + +# convert the object into a dict +agent_psso_device_registration_response_dict = agent_psso_device_registration_response_instance.to_dict() +# create an instance of AgentPSSODeviceRegistrationResponse from a dict +agent_psso_device_registration_response_from_dict = AgentPSSODeviceRegistrationResponse.from_dict(agent_psso_device_registration_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentPSSOUserRegistrationRequest.md b/docs/AgentPSSOUserRegistrationRequest.md new file mode 100644 index 000000000..d2cc0d408 --- /dev/null +++ b/docs/AgentPSSOUserRegistrationRequest.md @@ -0,0 +1,32 @@ +# AgentPSSOUserRegistrationRequest + +Register Apple device user via Platform SSO + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_auth** | **str** | | +**user_secure_enclave_key** | **str** | | +**enclave_key_id** | **str** | | + +## Example + +```python +from authentik_client.models.agent_psso_user_registration_request import AgentPSSOUserRegistrationRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentPSSOUserRegistrationRequest from a JSON string +agent_psso_user_registration_request_instance = AgentPSSOUserRegistrationRequest.from_json(json) +# print the JSON string representation of the object +print(AgentPSSOUserRegistrationRequest.to_json()) + +# convert the object into a dict +agent_psso_user_registration_request_dict = agent_psso_user_registration_request_instance.to_dict() +# create an instance of AgentPSSOUserRegistrationRequest from a dict +agent_psso_user_registration_request_from_dict = AgentPSSOUserRegistrationRequest.from_dict(agent_psso_user_registration_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AgentTokenResponse.md b/docs/AgentTokenResponse.md new file mode 100644 index 000000000..f4c6555f9 --- /dev/null +++ b/docs/AgentTokenResponse.md @@ -0,0 +1,31 @@ +# AgentTokenResponse + +Base serializer class which doesn't implement create/update methods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **str** | | +**expires_in** | **int** | | [optional] + +## Example + +```python +from authentik_client.models.agent_token_response import AgentTokenResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AgentTokenResponse from a JSON string +agent_token_response_instance = AgentTokenResponse.from_json(json) +# print the JSON string representation of the object +print(AgentTokenResponse.to_json()) + +# convert the object into a dict +agent_token_response_dict = agent_token_response_instance.to_dict() +# create an instance of AgentTokenResponse from a dict +agent_token_response_from_dict = AgentTokenResponse.from_dict(agent_token_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AppEnum.md b/docs/AppEnum.md index aa1bac748..a978d2b72 100644 --- a/docs/AppEnum.md +++ b/docs/AppEnum.md @@ -17,10 +17,16 @@ * `AUTHENTIK_DOT_CRYPTO` (value: `'authentik.crypto'`) +* `AUTHENTIK_DOT_ENDPOINTS` (value: `'authentik.endpoints'`) + +* `AUTHENTIK_DOT_ENDPOINTS_DOT_CONNECTORS_DOT_AGENT` (value: `'authentik.endpoints.connectors.agent'`) + * `AUTHENTIK_DOT_ENTERPRISE` (value: `'authentik.enterprise'`) * `AUTHENTIK_DOT_EVENTS` (value: `'authentik.events'`) +* `AUTHENTIK_DOT_ADMIN_DOT_FILES` (value: `'authentik.admin.files'`) + * `AUTHENTIK_DOT_FLOWS` (value: `'authentik.flows'`) * `AUTHENTIK_DOT_OUTPOSTS` (value: `'authentik.outposts'`) @@ -125,6 +131,8 @@ * `AUTHENTIK_DOT_ENTERPRISE_DOT_AUDIT` (value: `'authentik.enterprise.audit'`) +* `AUTHENTIK_DOT_ENTERPRISE_DOT_ENDPOINTS_DOT_CONNECTORS_DOT_AGENT` (value: `'authentik.enterprise.endpoints.connectors.agent'`) + * `AUTHENTIK_DOT_ENTERPRISE_DOT_POLICIES_DOT_UNIQUE_PASSWORD` (value: `'authentik.enterprise.policies.unique_password'`) * `AUTHENTIK_DOT_ENTERPRISE_DOT_PROVIDERS_DOT_GOOGLE_WORKSPACE` (value: `'authentik.enterprise.providers.google_workspace'`) @@ -137,6 +145,8 @@ * `AUTHENTIK_DOT_ENTERPRISE_DOT_PROVIDERS_DOT_SSF` (value: `'authentik.enterprise.providers.ssf'`) +* `AUTHENTIK_DOT_ENTERPRISE_DOT_REPORTS` (value: `'authentik.enterprise.reports'`) + * `AUTHENTIK_DOT_ENTERPRISE_DOT_SEARCH` (value: `'authentik.enterprise.search'`) * `AUTHENTIK_DOT_ENTERPRISE_DOT_STAGES_DOT_AUTHENTICATOR_ENDPOINT_GDTC` (value: `'authentik.enterprise.stages.authenticator_endpoint_gdtc'`) diff --git a/docs/Application.md b/docs/Application.md index b6eae1c5b..2354fe2cc 100644 --- a/docs/Application.md +++ b/docs/Application.md @@ -16,7 +16,9 @@ Name | Type | Description | Notes **launch_url** | **str** | Allow formatting of launch URL | [readonly] **open_in_new_tab** | **bool** | Open launch URL in a new browser tab or window. | [optional] **meta_launch_url** | **str** | | [optional] -**meta_icon** | **str** | Get the URL to the App Icon image. If the name is /static or starts with http it is returned as-is | [readonly] +**meta_icon** | **str** | | [optional] +**meta_icon_url** | **str** | Get the URL to the App Icon image | [readonly] +**meta_icon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **meta_description** | **str** | | [optional] **meta_publisher** | **str** | | [optional] **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] diff --git a/docs/ApplicationRequest.md b/docs/ApplicationRequest.md index 614249bd7..5179fa7f5 100644 --- a/docs/ApplicationRequest.md +++ b/docs/ApplicationRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **backchannel_providers** | **List[int]** | | [optional] **open_in_new_tab** | **bool** | Open launch URL in a new browser tab or window. | [optional] **meta_launch_url** | **str** | | [optional] +**meta_icon** | **str** | | [optional] **meta_description** | **str** | | [optional] **meta_publisher** | **str** | | [optional] **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] diff --git a/docs/AuthenticatorDuoStage.md b/docs/AuthenticatorDuoStage.md index 32d1e95fb..706f58a37 100644 --- a/docs/AuthenticatorDuoStage.md +++ b/docs/AuthenticatorDuoStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **client_id** | **str** | | diff --git a/docs/AuthenticatorDuoStageRequest.md b/docs/AuthenticatorDuoStageRequest.md index 336960090..086d7ac55 100644 --- a/docs/AuthenticatorDuoStageRequest.md +++ b/docs/AuthenticatorDuoStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorDuoStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **client_id** | **str** | | diff --git a/docs/AuthenticatorEmailChallengeResponseRequest.md b/docs/AuthenticatorEmailChallengeResponseRequest.md index a1766cda4..8769056b2 100644 --- a/docs/AuthenticatorEmailChallengeResponseRequest.md +++ b/docs/AuthenticatorEmailChallengeResponseRequest.md @@ -7,7 +7,7 @@ Authenticator Email Challenge response, device is set by get_response_instance Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **component** | **str** | | [optional] [default to 'ak-stage-authenticator-email'] -**code** | **int** | | [optional] +**code** | **str** | | [optional] **email** | **str** | | [optional] ## Example diff --git a/docs/AuthenticatorEmailStage.md b/docs/AuthenticatorEmailStage.md index 78e4027ac..85649f2d2 100644 --- a/docs/AuthenticatorEmailStage.md +++ b/docs/AuthenticatorEmailStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **use_global_settings** | **bool** | When enabled, global Email connection settings will be used and connection settings below will be ignored. | [optional] diff --git a/docs/AuthenticatorEmailStageRequest.md b/docs/AuthenticatorEmailStageRequest.md index 2bad274b4..f15906068 100644 --- a/docs/AuthenticatorEmailStageRequest.md +++ b/docs/AuthenticatorEmailStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorEmailStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **use_global_settings** | **bool** | When enabled, global Email connection settings will be used and connection settings below will be ignored. | [optional] diff --git a/docs/AuthenticatorEndpointGDTCStage.md b/docs/AuthenticatorEndpointGDTCStage.md index da71fa907..698f5ba8c 100644 --- a/docs/AuthenticatorEndpointGDTCStage.md +++ b/docs/AuthenticatorEndpointGDTCStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **credentials** | **Dict[str, object]** | | diff --git a/docs/AuthenticatorEndpointGDTCStageRequest.md b/docs/AuthenticatorEndpointGDTCStageRequest.md index 9caaa48a1..504fb37ec 100644 --- a/docs/AuthenticatorEndpointGDTCStageRequest.md +++ b/docs/AuthenticatorEndpointGDTCStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorEndpointGDTCStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **credentials** | **Dict[str, object]** | | diff --git a/docs/AuthenticatorSMSChallengeResponseRequest.md b/docs/AuthenticatorSMSChallengeResponseRequest.md index e34086de9..3c930a82b 100644 --- a/docs/AuthenticatorSMSChallengeResponseRequest.md +++ b/docs/AuthenticatorSMSChallengeResponseRequest.md @@ -7,7 +7,7 @@ SMS Challenge response, device is set by get_response_instance Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **component** | **str** | | [optional] [default to 'ak-stage-authenticator-sms'] -**code** | **int** | | [optional] +**code** | **str** | | [optional] **phone_number** | **str** | | [optional] ## Example diff --git a/docs/AuthenticatorSMSStage.md b/docs/AuthenticatorSMSStage.md index 74024d7cc..2abf70cba 100644 --- a/docs/AuthenticatorSMSStage.md +++ b/docs/AuthenticatorSMSStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **provider** | [**ProviderEnum**](ProviderEnum.md) | | diff --git a/docs/AuthenticatorSMSStageRequest.md b/docs/AuthenticatorSMSStageRequest.md index 15eedb588..d7cb4a06d 100644 --- a/docs/AuthenticatorSMSStageRequest.md +++ b/docs/AuthenticatorSMSStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorSMSStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **provider** | [**ProviderEnum**](ProviderEnum.md) | | diff --git a/docs/AuthenticatorStaticStage.md b/docs/AuthenticatorStaticStage.md index 8197d9aa4..c38701177 100644 --- a/docs/AuthenticatorStaticStage.md +++ b/docs/AuthenticatorStaticStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **token_count** | **int** | | [optional] diff --git a/docs/AuthenticatorStaticStageRequest.md b/docs/AuthenticatorStaticStageRequest.md index a36f1abf8..4367b7298 100644 --- a/docs/AuthenticatorStaticStageRequest.md +++ b/docs/AuthenticatorStaticStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorStaticStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **token_count** | **int** | | [optional] diff --git a/docs/AuthenticatorTOTPChallengeResponseRequest.md b/docs/AuthenticatorTOTPChallengeResponseRequest.md index ab8295a0b..d2ede2328 100644 --- a/docs/AuthenticatorTOTPChallengeResponseRequest.md +++ b/docs/AuthenticatorTOTPChallengeResponseRequest.md @@ -7,7 +7,7 @@ TOTP Challenge response, device is set by get_response_instance Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **component** | **str** | | [optional] [default to 'ak-stage-authenticator-totp'] -**code** | **int** | | +**code** | **str** | | ## Example diff --git a/docs/AuthenticatorTOTPStage.md b/docs/AuthenticatorTOTPStage.md index c4f10cd39..a0a3ce90e 100644 --- a/docs/AuthenticatorTOTPStage.md +++ b/docs/AuthenticatorTOTPStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **digits** | [**DigitsEnum**](DigitsEnum.md) | | diff --git a/docs/AuthenticatorTOTPStageRequest.md b/docs/AuthenticatorTOTPStageRequest.md index a3741d44a..650513c71 100644 --- a/docs/AuthenticatorTOTPStageRequest.md +++ b/docs/AuthenticatorTOTPStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorTOTPStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **digits** | [**DigitsEnum**](DigitsEnum.md) | | diff --git a/docs/AuthenticatorValidateStage.md b/docs/AuthenticatorValidateStage.md index eadfc1054..aba1caed4 100644 --- a/docs/AuthenticatorValidateStage.md +++ b/docs/AuthenticatorValidateStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **not_configured_action** | [**NotConfiguredActionEnum**](NotConfiguredActionEnum.md) | | [optional] **device_classes** | [**List[DeviceClassesEnum]**](DeviceClassesEnum.md) | Device classes which can be used to authenticate | [optional] **configuration_stages** | **List[str]** | Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again. | [optional] diff --git a/docs/AuthenticatorValidateStageRequest.md b/docs/AuthenticatorValidateStageRequest.md index bd87c4cbc..44ee9f676 100644 --- a/docs/AuthenticatorValidateStageRequest.md +++ b/docs/AuthenticatorValidateStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorValidateStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **not_configured_action** | [**NotConfiguredActionEnum**](NotConfiguredActionEnum.md) | | [optional] **device_classes** | [**List[DeviceClassesEnum]**](DeviceClassesEnum.md) | Device classes which can be used to authenticate | [optional] **configuration_stages** | **List[str]** | Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again. | [optional] diff --git a/docs/AuthenticatorWebAuthnStage.md b/docs/AuthenticatorWebAuthnStage.md index 1db8d3ef1..cddc79b20 100644 --- a/docs/AuthenticatorWebAuthnStage.md +++ b/docs/AuthenticatorWebAuthnStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **user_verification** | [**UserVerificationEnum**](UserVerificationEnum.md) | | [optional] diff --git a/docs/AuthenticatorWebAuthnStageRequest.md b/docs/AuthenticatorWebAuthnStageRequest.md index aa636d4ce..0367335a2 100644 --- a/docs/AuthenticatorWebAuthnStageRequest.md +++ b/docs/AuthenticatorWebAuthnStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorWebAuthnStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **user_verification** | [**UserVerificationEnum**](UserVerificationEnum.md) | | [optional] diff --git a/docs/AuthenticatorsApi.md b/docs/AuthenticatorsApi.md index 9a731f248..bab094f5d 100644 --- a/docs/AuthenticatorsApi.md +++ b/docs/AuthenticatorsApi.md @@ -1115,7 +1115,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **authenticators_admin_endpoint_create** -> EndpointDevice authenticators_admin_endpoint_create(endpoint_device_request) +> GoogleEndpointDevice authenticators_admin_endpoint_create(google_endpoint_device_request) Viewset for Endpoint authenticator devices (for admins) @@ -1125,8 +1125,8 @@ Viewset for Endpoint authenticator devices (for admins) ```python import authentik_client -from authentik_client.models.endpoint_device import EndpointDevice -from authentik_client.models.endpoint_device_request import EndpointDeviceRequest +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice +from authentik_client.models.google_endpoint_device_request import GoogleEndpointDeviceRequest from authentik_client.rest import ApiException from pprint import pprint @@ -1150,10 +1150,10 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.AuthenticatorsApi(api_client) - endpoint_device_request = authentik_client.EndpointDeviceRequest() # EndpointDeviceRequest | + google_endpoint_device_request = authentik_client.GoogleEndpointDeviceRequest() # GoogleEndpointDeviceRequest | try: - api_response = api_instance.authenticators_admin_endpoint_create(endpoint_device_request) + api_response = api_instance.authenticators_admin_endpoint_create(google_endpoint_device_request) print("The response of AuthenticatorsApi->authenticators_admin_endpoint_create:\n") pprint(api_response) except Exception as e: @@ -1167,11 +1167,11 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endpoint_device_request** | [**EndpointDeviceRequest**](EndpointDeviceRequest.md)| | + **google_endpoint_device_request** | [**GoogleEndpointDeviceRequest**](GoogleEndpointDeviceRequest.md)| | ### Return type -[**EndpointDevice**](EndpointDevice.md) +[**GoogleEndpointDevice**](GoogleEndpointDevice.md) ### Authorization @@ -1267,7 +1267,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **authenticators_admin_endpoint_list** -> PaginatedEndpointDeviceList authenticators_admin_endpoint_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search) +> PaginatedGoogleEndpointDeviceList authenticators_admin_endpoint_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search) Viewset for Endpoint authenticator devices (for admins) @@ -1277,7 +1277,7 @@ Viewset for Endpoint authenticator devices (for admins) ```python import authentik_client -from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList +from authentik_client.models.paginated_google_endpoint_device_list import PaginatedGoogleEndpointDeviceList from authentik_client.rest import ApiException from pprint import pprint @@ -1330,7 +1330,7 @@ Name | Type | Description | Notes ### Return type -[**PaginatedEndpointDeviceList**](PaginatedEndpointDeviceList.md) +[**PaginatedGoogleEndpointDeviceList**](PaginatedGoogleEndpointDeviceList.md) ### Authorization @@ -1352,7 +1352,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **authenticators_admin_endpoint_partial_update** -> EndpointDevice authenticators_admin_endpoint_partial_update(uuid, patched_endpoint_device_request=patched_endpoint_device_request) +> GoogleEndpointDevice authenticators_admin_endpoint_partial_update(uuid, patched_google_endpoint_device_request=patched_google_endpoint_device_request) Viewset for Endpoint authenticator devices (for admins) @@ -1362,8 +1362,8 @@ Viewset for Endpoint authenticator devices (for admins) ```python import authentik_client -from authentik_client.models.endpoint_device import EndpointDevice -from authentik_client.models.patched_endpoint_device_request import PatchedEndpointDeviceRequest +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice +from authentik_client.models.patched_google_endpoint_device_request import PatchedGoogleEndpointDeviceRequest from authentik_client.rest import ApiException from pprint import pprint @@ -1388,10 +1388,10 @@ with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.AuthenticatorsApi(api_client) uuid = 'uuid_example' # str | A UUID string identifying this Endpoint Device. - patched_endpoint_device_request = authentik_client.PatchedEndpointDeviceRequest() # PatchedEndpointDeviceRequest | (optional) + patched_google_endpoint_device_request = authentik_client.PatchedGoogleEndpointDeviceRequest() # PatchedGoogleEndpointDeviceRequest | (optional) try: - api_response = api_instance.authenticators_admin_endpoint_partial_update(uuid, patched_endpoint_device_request=patched_endpoint_device_request) + api_response = api_instance.authenticators_admin_endpoint_partial_update(uuid, patched_google_endpoint_device_request=patched_google_endpoint_device_request) print("The response of AuthenticatorsApi->authenticators_admin_endpoint_partial_update:\n") pprint(api_response) except Exception as e: @@ -1406,11 +1406,11 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **uuid** | **str**| A UUID string identifying this Endpoint Device. | - **patched_endpoint_device_request** | [**PatchedEndpointDeviceRequest**](PatchedEndpointDeviceRequest.md)| | [optional] + **patched_google_endpoint_device_request** | [**PatchedGoogleEndpointDeviceRequest**](PatchedGoogleEndpointDeviceRequest.md)| | [optional] ### Return type -[**EndpointDevice**](EndpointDevice.md) +[**GoogleEndpointDevice**](GoogleEndpointDevice.md) ### Authorization @@ -1432,7 +1432,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **authenticators_admin_endpoint_retrieve** -> EndpointDevice authenticators_admin_endpoint_retrieve(uuid) +> GoogleEndpointDevice authenticators_admin_endpoint_retrieve(uuid) Viewset for Endpoint authenticator devices (for admins) @@ -1442,7 +1442,7 @@ Viewset for Endpoint authenticator devices (for admins) ```python import authentik_client -from authentik_client.models.endpoint_device import EndpointDevice +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice from authentik_client.rest import ApiException from pprint import pprint @@ -1487,7 +1487,7 @@ Name | Type | Description | Notes ### Return type -[**EndpointDevice**](EndpointDevice.md) +[**GoogleEndpointDevice**](GoogleEndpointDevice.md) ### Authorization @@ -1509,7 +1509,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **authenticators_admin_endpoint_update** -> EndpointDevice authenticators_admin_endpoint_update(uuid, endpoint_device_request) +> GoogleEndpointDevice authenticators_admin_endpoint_update(uuid, google_endpoint_device_request) Viewset for Endpoint authenticator devices (for admins) @@ -1519,8 +1519,8 @@ Viewset for Endpoint authenticator devices (for admins) ```python import authentik_client -from authentik_client.models.endpoint_device import EndpointDevice -from authentik_client.models.endpoint_device_request import EndpointDeviceRequest +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice +from authentik_client.models.google_endpoint_device_request import GoogleEndpointDeviceRequest from authentik_client.rest import ApiException from pprint import pprint @@ -1545,10 +1545,10 @@ with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.AuthenticatorsApi(api_client) uuid = 'uuid_example' # str | A UUID string identifying this Endpoint Device. - endpoint_device_request = authentik_client.EndpointDeviceRequest() # EndpointDeviceRequest | + google_endpoint_device_request = authentik_client.GoogleEndpointDeviceRequest() # GoogleEndpointDeviceRequest | try: - api_response = api_instance.authenticators_admin_endpoint_update(uuid, endpoint_device_request) + api_response = api_instance.authenticators_admin_endpoint_update(uuid, google_endpoint_device_request) print("The response of AuthenticatorsApi->authenticators_admin_endpoint_update:\n") pprint(api_response) except Exception as e: @@ -1563,11 +1563,11 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **uuid** | **str**| A UUID string identifying this Endpoint Device. | - **endpoint_device_request** | [**EndpointDeviceRequest**](EndpointDeviceRequest.md)| | + **google_endpoint_device_request** | [**GoogleEndpointDeviceRequest**](GoogleEndpointDeviceRequest.md)| | ### Return type -[**EndpointDevice**](EndpointDevice.md) +[**GoogleEndpointDevice**](GoogleEndpointDevice.md) ### Authorization @@ -4504,7 +4504,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **authenticators_endpoint_list** -> PaginatedEndpointDeviceList authenticators_endpoint_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search) +> PaginatedGoogleEndpointDeviceList authenticators_endpoint_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search) Viewset for Endpoint authenticator devices @@ -4514,7 +4514,7 @@ Viewset for Endpoint authenticator devices ```python import authentik_client -from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList +from authentik_client.models.paginated_google_endpoint_device_list import PaginatedGoogleEndpointDeviceList from authentik_client.rest import ApiException from pprint import pprint @@ -4567,7 +4567,7 @@ Name | Type | Description | Notes ### Return type -[**PaginatedEndpointDeviceList**](PaginatedEndpointDeviceList.md) +[**PaginatedGoogleEndpointDeviceList**](PaginatedGoogleEndpointDeviceList.md) ### Authorization @@ -4589,7 +4589,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **authenticators_endpoint_retrieve** -> EndpointDevice authenticators_endpoint_retrieve(uuid) +> GoogleEndpointDevice authenticators_endpoint_retrieve(uuid) Viewset for Endpoint authenticator devices @@ -4599,7 +4599,7 @@ Viewset for Endpoint authenticator devices ```python import authentik_client -from authentik_client.models.endpoint_device import EndpointDevice +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice from authentik_client.rest import ApiException from pprint import pprint @@ -4644,7 +4644,7 @@ Name | Type | Description | Notes ### Return type -[**EndpointDevice**](EndpointDevice.md) +[**GoogleEndpointDevice**](GoogleEndpointDevice.md) ### Authorization diff --git a/docs/CapabilitiesEnum.md b/docs/CapabilitiesEnum.md index af4634f72..610581a6a 100644 --- a/docs/CapabilitiesEnum.md +++ b/docs/CapabilitiesEnum.md @@ -5,6 +5,8 @@ * `CAN_SAVE_MEDIA` (value: `'can_save_media'`) +* `CAN_SAVE_REPORTS` (value: `'can_save_reports'`) + * `CAN_GEO_IP` (value: `'can_geo_ip'`) * `CAN_ASN` (value: `'can_asn'`) diff --git a/docs/CaptchaStage.md b/docs/CaptchaStage.md index e4af06f0c..1f56e079b 100644 --- a/docs/CaptchaStage.md +++ b/docs/CaptchaStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **public_key** | **str** | Public key, acquired your captcha Provider. | **js_url** | **str** | | [optional] **api_url** | **str** | | [optional] diff --git a/docs/CaptchaStageRequest.md b/docs/CaptchaStageRequest.md index 7820b0b85..6063079ed 100644 --- a/docs/CaptchaStageRequest.md +++ b/docs/CaptchaStageRequest.md @@ -7,7 +7,6 @@ CaptchaStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **public_key** | **str** | Public key, acquired your captcha Provider. | **private_key** | **str** | Private key, acquired your captcha Provider. | **js_url** | **str** | | [optional] diff --git a/docs/CertificateKeyPair.md b/docs/CertificateKeyPair.md index b05c6d707..06e1a58de 100644 --- a/docs/CertificateKeyPair.md +++ b/docs/CertificateKeyPair.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **cert_expiry** | **datetime** | Get certificate expiry | [readonly] **cert_subject** | **str** | Get certificate subject as full rfc4514 | [readonly] **private_key_available** | **bool** | Show if this keypair has a private key configured or not | [readonly] -**private_key_type** | **str** | Get the private key's type, if set | [readonly] +**key_type** | [**KeyTypeEnum**](KeyTypeEnum.md) | | [readonly] **certificate_download_url** | **str** | Get URL to download certificate | [readonly] **private_key_download_url** | **str** | Get URL to download private key | [readonly] **managed** | **str** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly] diff --git a/docs/ChallengeTypes.md b/docs/ChallengeTypes.md index 6b4882dac..f6f1b9d04 100644 --- a/docs/ChallengeTypes.md +++ b/docs/ChallengeTypes.md @@ -37,6 +37,8 @@ Name | Type | Description | Notes **additional_permissions** | [**List[ConsentPermission]**](ConsentPermission.md) | | **token** | **str** | | **name** | **str** | | +**challenge** | **str** | | +**challenge_idle_timeout** | **int** | | **request_id** | **str** | | **error** | **str** | | [optional] **traceback** | **str** | | [optional] @@ -46,6 +48,7 @@ Name | Type | Description | Notes **password_fields** | **bool** | | **allow_show_password** | **bool** | | [optional] [default to False] **application_pre** | **str** | | [optional] +**application_pre_launch** | **str** | | [optional] **flow_designation** | [**FlowDesignationEnum**](FlowDesignationEnum.md) | | **captcha_stage** | [**CaptchaChallenge**](CaptchaChallenge.md) | | [optional] **enroll_url** | **str** | | [optional] @@ -55,6 +58,7 @@ Name | Type | Description | Notes **sources** | [**List[LoginSource]**](LoginSource.md) | | [optional] **show_source_labels** | **bool** | | **enable_remember_me** | **bool** | | [optional] [default to True] +**passkey_challenge** | **Dict[str, object]** | | [optional] **logout_urls** | **List[Dict[str, object]]** | | [optional] **post_url** | **str** | | [optional] **saml_request** | **str** | | [optional] diff --git a/docs/Connector.md b/docs/Connector.md new file mode 100644 index 000000000..7abddf948 --- /dev/null +++ b/docs/Connector.md @@ -0,0 +1,35 @@ +# Connector + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connector_uuid** | **str** | | [optional] +**name** | **str** | | +**enabled** | **bool** | | [optional] +**component** | **str** | Get object component so that we know how to edit the object | [readonly] +**verbose_name** | **str** | Return object's verbose_name | [readonly] +**verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] +**meta_model_name** | **str** | Return internal model name | [readonly] + +## Example + +```python +from authentik_client.models.connector import Connector + +# TODO update the JSON string below +json = "{}" +# create an instance of Connector from a JSON string +connector_instance = Connector.from_json(json) +# print the JSON string representation of the object +print(Connector.to_json()) + +# convert the object into a dict +connector_dict = connector_instance.to_dict() +# create an instance of Connector from a dict +connector_from_dict = Connector.from_dict(connector_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConsentStage.md b/docs/ConsentStage.md index 2d49eac08..9edc20e2e 100644 --- a/docs/ConsentStage.md +++ b/docs/ConsentStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **mode** | [**ConsentStageModeEnum**](ConsentStageModeEnum.md) | | [optional] **consent_expire_in** | **str** | Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3). | [optional] diff --git a/docs/ConsentStageRequest.md b/docs/ConsentStageRequest.md index 1401fc419..b08fb04b5 100644 --- a/docs/ConsentStageRequest.md +++ b/docs/ConsentStageRequest.md @@ -7,7 +7,6 @@ ConsentStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **mode** | [**ConsentStageModeEnum**](ConsentStageModeEnum.md) | | [optional] **consent_expire_in** | **str** | Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3). | [optional] diff --git a/docs/ContentType.md b/docs/ContentType.md new file mode 100644 index 000000000..610d88f67 --- /dev/null +++ b/docs/ContentType.md @@ -0,0 +1,32 @@ +# ContentType + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [readonly] +**app_label** | **str** | | [readonly] +**model** | **str** | | [readonly] +**verbose_name_plural** | **str** | | [readonly] + +## Example + +```python +from authentik_client.models.content_type import ContentType + +# TODO update the JSON string below +json = "{}" +# create an instance of ContentType from a JSON string +content_type_instance = ContentType.from_json(json) +# print the JSON string representation of the object +print(ContentType.to_json()) + +# convert the object into a dict +content_type_dict = content_type_instance.to_dict() +# create an instance of ContentType from a dict +content_type_from_dict = ContentType.from_dict(content_type_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContextualFlowInfo.md b/docs/ContextualFlowInfo.md index 554662e69..18f4ab0cf 100644 --- a/docs/ContextualFlowInfo.md +++ b/docs/ContextualFlowInfo.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **title** | **str** | | [optional] **background** | **str** | | [optional] +**background_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [optional] **cancel_url** | **str** | | **layout** | [**ContextualFlowInfoLayoutEnum**](ContextualFlowInfoLayoutEnum.md) | | diff --git a/docs/CoreApi.md b/docs/CoreApi.md index 994661f7f..322446bc3 100644 --- a/docs/CoreApi.md +++ b/docs/CoreApi.md @@ -17,8 +17,6 @@ Method | HTTP request | Description [**core_applications_list**](CoreApi.md#core_applications_list) | **GET** /core/applications/ | [**core_applications_partial_update**](CoreApi.md#core_applications_partial_update) | **PATCH** /core/applications/{slug}/ | [**core_applications_retrieve**](CoreApi.md#core_applications_retrieve) | **GET** /core/applications/{slug}/ | -[**core_applications_set_icon_create**](CoreApi.md#core_applications_set_icon_create) | **POST** /core/applications/{slug}/set_icon/ | -[**core_applications_set_icon_url_create**](CoreApi.md#core_applications_set_icon_url_create) | **POST** /core/applications/{slug}/set_icon_url/ | [**core_applications_update**](CoreApi.md#core_applications_update) | **PUT** /core/applications/{slug}/ | [**core_applications_used_by_list**](CoreApi.md#core_applications_used_by_list) | **GET** /core/applications/{slug}/used_by/ | [**core_authenticated_sessions_destroy**](CoreApi.md#core_authenticated_sessions_destroy) | **DELETE** /core/authenticated_sessions/{uuid}/ | @@ -58,6 +56,7 @@ Method | HTTP request | Description [**core_user_consent_used_by_list**](CoreApi.md#core_user_consent_used_by_list) | **GET** /core/user_consent/{id}/used_by/ | [**core_users_create**](CoreApi.md#core_users_create) | **POST** /core/users/ | [**core_users_destroy**](CoreApi.md#core_users_destroy) | **DELETE** /core/users/{id}/ | +[**core_users_export_create**](CoreApi.md#core_users_export_create) | **POST** /core/users/export/ | [**core_users_impersonate_create**](CoreApi.md#core_users_impersonate_create) | **POST** /core/users/{id}/impersonate/ | [**core_users_impersonate_end_retrieve**](CoreApi.md#core_users_impersonate_end_retrieve) | **GET** /core/users/impersonate_end/ | [**core_users_list**](CoreApi.md#core_users_list) | **GET** /core/users/ | @@ -1117,161 +1116,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **core_applications_set_icon_create** -> core_applications_set_icon_create(slug, file=file, clear=clear) - -Set application icon - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.CoreApi(api_client) - slug = 'slug_example' # str | - file = None # bytearray | (optional) - clear = False # bool | (optional) (default to False) - - try: - api_instance.core_applications_set_icon_create(slug, file=file, clear=clear) - except Exception as e: - print("Exception when calling CoreApi->core_applications_set_icon_create: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **slug** | **str**| | - **file** | **bytearray**| | [optional] - **clear** | **bool**| | [optional] [default to False] - -### Return type - -void (empty response body) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad request | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **core_applications_set_icon_url_create** -> core_applications_set_icon_url_create(slug, file_path_request) - -Set application icon (as URL) - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.file_path_request import FilePathRequest -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.CoreApi(api_client) - slug = 'slug_example' # str | - file_path_request = authentik_client.FilePathRequest() # FilePathRequest | - - try: - api_instance.core_applications_set_icon_url_create(slug, file_path_request) - except Exception as e: - print("Exception when calling CoreApi->core_applications_set_icon_url_create: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **slug** | **str**| | - **file_path_request** | [**FilePathRequest**](FilePathRequest.md)| | - -### Return type - -void (empty response body) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad request | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **core_applications_update** > Application core_applications_update(slug, application_request) @@ -2629,7 +2473,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **core_groups_list** -> PaginatedGroupList core_groups_list(attributes=attributes, include_children=include_children, include_users=include_users, is_superuser=is_superuser, members_by_pk=members_by_pk, members_by_username=members_by_username, name=name, ordering=ordering, page=page, page_size=page_size, search=search) +> PaginatedGroupList core_groups_list(attributes=attributes, include_children=include_children, include_inherited_roles=include_inherited_roles, include_parents=include_parents, include_users=include_users, is_superuser=is_superuser, members_by_pk=members_by_pk, members_by_username=members_by_username, name=name, ordering=ordering, page=page, page_size=page_size, search=search) Group Viewset @@ -2665,6 +2509,8 @@ with authentik_client.ApiClient(configuration) as api_client: api_instance = authentik_client.CoreApi(api_client) attributes = 'attributes_example' # str | Attributes (optional) include_children = False # bool | (optional) (default to False) + include_inherited_roles = False # bool | (optional) (default to False) + include_parents = False # bool | (optional) (default to False) include_users = True # bool | (optional) (default to True) is_superuser = True # bool | (optional) members_by_pk = [56] # List[int] | (optional) @@ -2676,7 +2522,7 @@ with authentik_client.ApiClient(configuration) as api_client: search = 'search_example' # str | A search term. (optional) try: - api_response = api_instance.core_groups_list(attributes=attributes, include_children=include_children, include_users=include_users, is_superuser=is_superuser, members_by_pk=members_by_pk, members_by_username=members_by_username, name=name, ordering=ordering, page=page, page_size=page_size, search=search) + api_response = api_instance.core_groups_list(attributes=attributes, include_children=include_children, include_inherited_roles=include_inherited_roles, include_parents=include_parents, include_users=include_users, is_superuser=is_superuser, members_by_pk=members_by_pk, members_by_username=members_by_username, name=name, ordering=ordering, page=page, page_size=page_size, search=search) print("The response of CoreApi->core_groups_list:\n") pprint(api_response) except Exception as e: @@ -2692,6 +2538,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **attributes** | **str**| Attributes | [optional] **include_children** | **bool**| | [optional] [default to False] + **include_inherited_roles** | **bool**| | [optional] [default to False] + **include_parents** | **bool**| | [optional] [default to False] **include_users** | **bool**| | [optional] [default to True] **is_superuser** | **bool**| | [optional] **members_by_pk** | [**List[int]**](int.md)| | [optional] @@ -2884,7 +2732,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **core_groups_retrieve** -> Group core_groups_retrieve(group_uuid, include_children=include_children, include_users=include_users) +> Group core_groups_retrieve(group_uuid, include_children=include_children, include_inherited_roles=include_inherited_roles, include_parents=include_parents, include_users=include_users) Group Viewset @@ -2920,10 +2768,12 @@ with authentik_client.ApiClient(configuration) as api_client: api_instance = authentik_client.CoreApi(api_client) group_uuid = 'group_uuid_example' # str | A UUID string identifying this Group. include_children = False # bool | (optional) (default to False) + include_inherited_roles = False # bool | (optional) (default to False) + include_parents = False # bool | (optional) (default to False) include_users = True # bool | (optional) (default to True) try: - api_response = api_instance.core_groups_retrieve(group_uuid, include_children=include_children, include_users=include_users) + api_response = api_instance.core_groups_retrieve(group_uuid, include_children=include_children, include_inherited_roles=include_inherited_roles, include_parents=include_parents, include_users=include_users) print("The response of CoreApi->core_groups_retrieve:\n") pprint(api_response) except Exception as e: @@ -2939,6 +2789,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **group_uuid** | **str**| A UUID string identifying this Group. | **include_children** | **bool**| | [optional] [default to False] + **include_inherited_roles** | **bool**| | [optional] [default to False] + **include_parents** | **bool**| | [optional] [default to False] **include_users** | **bool**| | [optional] [default to True] ### Return type @@ -4386,6 +4238,129 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **core_users_export_create** +> DataExport core_users_export_create(attributes=attributes, date_joined=date_joined, date_joined__gt=date_joined__gt, date_joined__lt=date_joined__lt, email=email, groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, last_updated__gt=last_updated__gt, last_updated__lt=last_updated__lt, name=name, ordering=ordering, path=path, path_startswith=path_startswith, roles_by_name=roles_by_name, roles_by_pk=roles_by_pk, search=search, type=type, username=username, uuid=uuid) + +Create a data export for this data type. Note that the export is generated asynchronously: +this method returns a `DataExport` object that will initially have `completed=false` as well +as the permanent URL to that object in the `Location` header. +You can poll that URL until `completed=true`, at which point the `file_url` property will +contain a URL to download + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.data_export import DataExport +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.CoreApi(api_client) + attributes = 'attributes_example' # str | Attributes (optional) + date_joined = '2013-10-20T19:20:30+01:00' # datetime | (optional) + date_joined__gt = '2013-10-20T19:20:30+01:00' # datetime | (optional) + date_joined__lt = '2013-10-20T19:20:30+01:00' # datetime | (optional) + email = 'email_example' # str | (optional) + groups_by_name = ['groups_by_name_example'] # List[str] | (optional) + groups_by_pk = ['groups_by_pk_example'] # List[str] | (optional) + is_active = True # bool | (optional) + is_superuser = True # bool | (optional) + last_updated = '2013-10-20T19:20:30+01:00' # datetime | (optional) + last_updated__gt = '2013-10-20T19:20:30+01:00' # datetime | (optional) + last_updated__lt = '2013-10-20T19:20:30+01:00' # datetime | (optional) + name = 'name_example' # str | (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + path = 'path_example' # str | (optional) + path_startswith = 'path_startswith_example' # str | (optional) + roles_by_name = ['roles_by_name_example'] # List[str] | (optional) + roles_by_pk = ['roles_by_pk_example'] # List[str] | (optional) + search = 'search_example' # str | A search term. (optional) + type = ['type_example'] # List[str] | (optional) + username = 'username_example' # str | (optional) + uuid = 'uuid_example' # str | (optional) + + try: + api_response = api_instance.core_users_export_create(attributes=attributes, date_joined=date_joined, date_joined__gt=date_joined__gt, date_joined__lt=date_joined__lt, email=email, groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, last_updated__gt=last_updated__gt, last_updated__lt=last_updated__lt, name=name, ordering=ordering, path=path, path_startswith=path_startswith, roles_by_name=roles_by_name, roles_by_pk=roles_by_pk, search=search, type=type, username=username, uuid=uuid) + print("The response of CoreApi->core_users_export_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling CoreApi->core_users_export_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **attributes** | **str**| Attributes | [optional] + **date_joined** | **datetime**| | [optional] + **date_joined__gt** | **datetime**| | [optional] + **date_joined__lt** | **datetime**| | [optional] + **email** | **str**| | [optional] + **groups_by_name** | [**List[str]**](str.md)| | [optional] + **groups_by_pk** | [**List[str]**](str.md)| | [optional] + **is_active** | **bool**| | [optional] + **is_superuser** | **bool**| | [optional] + **last_updated** | **datetime**| | [optional] + **last_updated__gt** | **datetime**| | [optional] + **last_updated__lt** | **datetime**| | [optional] + **name** | **str**| | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **path** | **str**| | [optional] + **path_startswith** | **str**| | [optional] + **roles_by_name** | [**List[str]**](str.md)| | [optional] + **roles_by_pk** | [**List[str]**](str.md)| | [optional] + **search** | **str**| A search term. | [optional] + **type** | [**List[str]**](str.md)| | [optional] + **username** | **str**| | [optional] + **uuid** | **str**| | [optional] + +### Return type + +[**DataExport**](DataExport.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **core_users_impersonate_create** > core_users_impersonate_create(id, impersonation_request) @@ -4534,7 +4509,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **core_users_list** -> PaginatedUserList core_users_list(attributes=attributes, date_joined=date_joined, date_joined__gt=date_joined__gt, date_joined__lt=date_joined__lt, email=email, groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, include_groups=include_groups, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, last_updated__gt=last_updated__gt, last_updated__lt=last_updated__lt, name=name, ordering=ordering, page=page, page_size=page_size, path=path, path_startswith=path_startswith, search=search, type=type, username=username, uuid=uuid) +> PaginatedUserList core_users_list(attributes=attributes, date_joined=date_joined, date_joined__gt=date_joined__gt, date_joined__lt=date_joined__lt, email=email, groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, include_groups=include_groups, include_roles=include_roles, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, last_updated__gt=last_updated__gt, last_updated__lt=last_updated__lt, name=name, ordering=ordering, page=page, page_size=page_size, path=path, path_startswith=path_startswith, roles_by_name=roles_by_name, roles_by_pk=roles_by_pk, search=search, type=type, username=username, uuid=uuid) User Viewset @@ -4576,6 +4551,7 @@ with authentik_client.ApiClient(configuration) as api_client: groups_by_name = ['groups_by_name_example'] # List[str] | (optional) groups_by_pk = ['groups_by_pk_example'] # List[str] | (optional) include_groups = True # bool | (optional) (default to True) + include_roles = True # bool | (optional) (default to True) is_active = True # bool | (optional) is_superuser = True # bool | (optional) last_updated = '2013-10-20T19:20:30+01:00' # datetime | (optional) @@ -4587,13 +4563,15 @@ with authentik_client.ApiClient(configuration) as api_client: page_size = 56 # int | Number of results to return per page. (optional) path = 'path_example' # str | (optional) path_startswith = 'path_startswith_example' # str | (optional) + roles_by_name = ['roles_by_name_example'] # List[str] | (optional) + roles_by_pk = ['roles_by_pk_example'] # List[str] | (optional) search = 'search_example' # str | A search term. (optional) type = ['type_example'] # List[str] | (optional) username = 'username_example' # str | (optional) uuid = 'uuid_example' # str | (optional) try: - api_response = api_instance.core_users_list(attributes=attributes, date_joined=date_joined, date_joined__gt=date_joined__gt, date_joined__lt=date_joined__lt, email=email, groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, include_groups=include_groups, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, last_updated__gt=last_updated__gt, last_updated__lt=last_updated__lt, name=name, ordering=ordering, page=page, page_size=page_size, path=path, path_startswith=path_startswith, search=search, type=type, username=username, uuid=uuid) + api_response = api_instance.core_users_list(attributes=attributes, date_joined=date_joined, date_joined__gt=date_joined__gt, date_joined__lt=date_joined__lt, email=email, groups_by_name=groups_by_name, groups_by_pk=groups_by_pk, include_groups=include_groups, include_roles=include_roles, is_active=is_active, is_superuser=is_superuser, last_updated=last_updated, last_updated__gt=last_updated__gt, last_updated__lt=last_updated__lt, name=name, ordering=ordering, page=page, page_size=page_size, path=path, path_startswith=path_startswith, roles_by_name=roles_by_name, roles_by_pk=roles_by_pk, search=search, type=type, username=username, uuid=uuid) print("The response of CoreApi->core_users_list:\n") pprint(api_response) except Exception as e: @@ -4615,6 +4593,7 @@ Name | Type | Description | Notes **groups_by_name** | [**List[str]**](str.md)| | [optional] **groups_by_pk** | [**List[str]**](str.md)| | [optional] **include_groups** | **bool**| | [optional] [default to True] + **include_roles** | **bool**| | [optional] [default to True] **is_active** | **bool**| | [optional] **is_superuser** | **bool**| | [optional] **last_updated** | **datetime**| | [optional] @@ -4626,6 +4605,8 @@ Name | Type | Description | Notes **page_size** | **int**| Number of results to return per page. | [optional] **path** | **str**| | [optional] **path_startswith** | **str**| | [optional] + **roles_by_name** | [**List[str]**](str.md)| | [optional] + **roles_by_pk** | [**List[str]**](str.md)| | [optional] **search** | **str**| A search term. | [optional] **type** | [**List[str]**](str.md)| | [optional] **username** | **str**| | [optional] diff --git a/docs/CryptoApi.md b/docs/CryptoApi.md index 30b9f6d11..8b04287b3 100644 --- a/docs/CryptoApi.md +++ b/docs/CryptoApi.md @@ -247,7 +247,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **crypto_certificatekeypairs_list** -> PaginatedCertificateKeyPairList crypto_certificatekeypairs_list(has_key=has_key, include_details=include_details, managed=managed, name=name, ordering=ordering, page=page, page_size=page_size, search=search) +> PaginatedCertificateKeyPairList crypto_certificatekeypairs_list(has_key=has_key, include_details=include_details, key_type=key_type, managed=managed, name=name, ordering=ordering, page=page, page_size=page_size, search=search) CertificateKeyPair Viewset @@ -283,6 +283,7 @@ with authentik_client.ApiClient(configuration) as api_client: api_instance = authentik_client.CryptoApi(api_client) has_key = True # bool | Only return certificate-key pairs with keys (optional) include_details = True # bool | (optional) (default to True) + key_type = ['key_type_example'] # List[str] | Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec') (optional) managed = 'managed_example' # str | (optional) name = 'name_example' # str | (optional) ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) @@ -291,7 +292,7 @@ with authentik_client.ApiClient(configuration) as api_client: search = 'search_example' # str | A search term. (optional) try: - api_response = api_instance.crypto_certificatekeypairs_list(has_key=has_key, include_details=include_details, managed=managed, name=name, ordering=ordering, page=page, page_size=page_size, search=search) + api_response = api_instance.crypto_certificatekeypairs_list(has_key=has_key, include_details=include_details, key_type=key_type, managed=managed, name=name, ordering=ordering, page=page, page_size=page_size, search=search) print("The response of CryptoApi->crypto_certificatekeypairs_list:\n") pprint(api_response) except Exception as e: @@ -307,6 +308,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **has_key** | **bool**| Only return certificate-key pairs with keys | [optional] **include_details** | **bool**| | [optional] [default to True] + **key_type** | [**List[str]**](str.md)| Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified multiple times (e.g. '?key_type=rsa&key_type=ec') | [optional] **managed** | **str**| | [optional] **name** | **str**| | [optional] **ordering** | **str**| Which field to use when ordering the results. | [optional] diff --git a/docs/CurrentBrand.md b/docs/CurrentBrand.md index d4cdb3eec..178030979 100644 --- a/docs/CurrentBrand.md +++ b/docs/CurrentBrand.md @@ -9,7 +9,9 @@ Name | Type | Description | Notes **matched_domain** | **str** | | **branding_title** | **str** | | **branding_logo** | **str** | | +**branding_logo_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **branding_favicon** | **str** | | +**branding_favicon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **branding_custom_css** | **str** | | **ui_footer_links** | [**List[FooterLink]**](FooterLink.md) | | [readonly] **ui_theme** | [**UiThemeEnum**](UiThemeEnum.md) | | [readonly] diff --git a/docs/CurrentBrandFlags.md b/docs/CurrentBrandFlags.md index 1ba6fd376..7bafe76f7 100644 --- a/docs/CurrentBrandFlags.md +++ b/docs/CurrentBrandFlags.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **policies_buffered_access_view** | **bool** | | +**flows_continuous_login** | **bool** | | +**flows_refresh_others** | **bool** | | ## Example diff --git a/docs/DataExport.md b/docs/DataExport.md new file mode 100644 index 000000000..4022f8b56 --- /dev/null +++ b/docs/DataExport.md @@ -0,0 +1,36 @@ +# DataExport + +Mixin to validate that a valid enterprise license exists before allowing to save the object + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [readonly] +**requested_by** | [**PartialUser**](PartialUser.md) | | [readonly] +**requested_on** | **datetime** | | [readonly] +**content_type** | [**ContentType**](ContentType.md) | | [readonly] +**var_query_params** | **Dict[str, object]** | | +**file_url** | **str** | | [readonly] +**completed** | **bool** | | [readonly] + +## Example + +```python +from authentik_client.models.data_export import DataExport + +# TODO update the JSON string below +json = "{}" +# create an instance of DataExport from a JSON string +data_export_instance = DataExport.from_json(json) +# print the JSON string representation of the object +print(DataExport.to_json()) + +# convert the object into a dict +data_export_dict = data_export_instance.to_dict() +# create an instance of DataExport from a dict +data_export_from_dict = DataExport.from_dict(data_export_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DenyStage.md b/docs/DenyStage.md index 2c334813b..adba1b1fe 100644 --- a/docs/DenyStage.md +++ b/docs/DenyStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **deny_message** | **str** | | [optional] ## Example diff --git a/docs/DenyStageRequest.md b/docs/DenyStageRequest.md index 24185d910..5f50883c6 100644 --- a/docs/DenyStageRequest.md +++ b/docs/DenyStageRequest.md @@ -7,7 +7,6 @@ DenyStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **deny_message** | **str** | | [optional] ## Example diff --git a/docs/DeviceAccessGroup.md b/docs/DeviceAccessGroup.md new file mode 100644 index 000000000..dd5e6c9db --- /dev/null +++ b/docs/DeviceAccessGroup.md @@ -0,0 +1,30 @@ +# DeviceAccessGroup + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pbm_uuid** | **str** | | [readonly] +**name** | **str** | | + +## Example + +```python +from authentik_client.models.device_access_group import DeviceAccessGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceAccessGroup from a JSON string +device_access_group_instance = DeviceAccessGroup.from_json(json) +# print the JSON string representation of the object +print(DeviceAccessGroup.to_json()) + +# convert the object into a dict +device_access_group_dict = device_access_group_instance.to_dict() +# create an instance of DeviceAccessGroup from a dict +device_access_group_from_dict = DeviceAccessGroup.from_dict(device_access_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceAccessGroupRequest.md b/docs/DeviceAccessGroupRequest.md new file mode 100644 index 000000000..8acbe5e09 --- /dev/null +++ b/docs/DeviceAccessGroupRequest.md @@ -0,0 +1,29 @@ +# DeviceAccessGroupRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | + +## Example + +```python +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceAccessGroupRequest from a JSON string +device_access_group_request_instance = DeviceAccessGroupRequest.from_json(json) +# print the JSON string representation of the object +print(DeviceAccessGroupRequest.to_json()) + +# convert the object into a dict +device_access_group_request_dict = device_access_group_request_instance.to_dict() +# create an instance of DeviceAccessGroupRequest from a dict +device_access_group_request_from_dict = DeviceAccessGroupRequest.from_dict(device_access_group_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceConnection.md b/docs/DeviceConnection.md new file mode 100644 index 000000000..05a610238 --- /dev/null +++ b/docs/DeviceConnection.md @@ -0,0 +1,32 @@ +# DeviceConnection + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device** | **str** | | +**connector** | **str** | | +**connector_obj** | [**Connector**](Connector.md) | | [readonly] +**latest_snapshot** | [**DeviceFactSnapshot**](DeviceFactSnapshot.md) | | [readonly] + +## Example + +```python +from authentik_client.models.device_connection import DeviceConnection + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceConnection from a JSON string +device_connection_instance = DeviceConnection.from_json(json) +# print the JSON string representation of the object +print(DeviceConnection.to_json()) + +# convert the object into a dict +device_connection_dict = device_connection_instance.to_dict() +# create an instance of DeviceConnection from a dict +device_connection_from_dict = DeviceConnection.from_dict(device_connection_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceFactSnapshot.md b/docs/DeviceFactSnapshot.md new file mode 100644 index 000000000..895d224ff --- /dev/null +++ b/docs/DeviceFactSnapshot.md @@ -0,0 +1,32 @@ +# DeviceFactSnapshot + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**DeviceFacts**](DeviceFacts.md) | | +**connection** | **str** | | +**created** | **datetime** | | [readonly] +**expires** | **datetime** | | [readonly] + +## Example + +```python +from authentik_client.models.device_fact_snapshot import DeviceFactSnapshot + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceFactSnapshot from a JSON string +device_fact_snapshot_instance = DeviceFactSnapshot.from_json(json) +# print the JSON string representation of the object +print(DeviceFactSnapshot.to_json()) + +# convert the object into a dict +device_fact_snapshot_dict = device_fact_snapshot_instance.to_dict() +# create an instance of DeviceFactSnapshot from a dict +device_fact_snapshot_from_dict = DeviceFactSnapshot.from_dict(device_fact_snapshot_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceFacts.md b/docs/DeviceFacts.md new file mode 100644 index 000000000..f0c9163ae --- /dev/null +++ b/docs/DeviceFacts.md @@ -0,0 +1,37 @@ +# DeviceFacts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**os** | [**OperatingSystem**](OperatingSystem.md) | | [optional] +**disks** | [**List[Disk]**](Disk.md) | | [optional] +**network** | [**Network**](Network.md) | | [optional] +**hardware** | [**Hardware**](Hardware.md) | | [optional] +**software** | [**List[Software]**](Software.md) | | [optional] +**processes** | [**List[Process]**](Process.md) | | [optional] +**users** | [**List[DeviceUser]**](DeviceUser.md) | | [optional] +**groups** | [**List[DeviceGroup]**](DeviceGroup.md) | | [optional] +**vendor** | **Dict[str, object]** | | [optional] + +## Example + +```python +from authentik_client.models.device_facts import DeviceFacts + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceFacts from a JSON string +device_facts_instance = DeviceFacts.from_json(json) +# print the JSON string representation of the object +print(DeviceFacts.to_json()) + +# convert the object into a dict +device_facts_dict = device_facts_instance.to_dict() +# create an instance of DeviceFacts from a dict +device_facts_from_dict = DeviceFacts.from_dict(device_facts_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceFactsOSFamily.md b/docs/DeviceFactsOSFamily.md new file mode 100644 index 000000000..fe452cb73 --- /dev/null +++ b/docs/DeviceFactsOSFamily.md @@ -0,0 +1,24 @@ +# DeviceFactsOSFamily + + +## Enum + +* `LINUX` (value: `'linux'`) + +* `UNIX` (value: `'unix'`) + +* `BSD` (value: `'bsd'`) + +* `WINDOWS` (value: `'windows'`) + +* `MAC_OS` (value: `'mac_os'`) + +* `ANDROID` (value: `'android'`) + +* `I_OS` (value: `'i_os'`) + +* `OTHER` (value: `'other'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceFactsRequest.md b/docs/DeviceFactsRequest.md new file mode 100644 index 000000000..c152869d3 --- /dev/null +++ b/docs/DeviceFactsRequest.md @@ -0,0 +1,37 @@ +# DeviceFactsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**os** | [**OperatingSystemRequest**](OperatingSystemRequest.md) | | [optional] +**disks** | [**List[DiskRequest]**](DiskRequest.md) | | [optional] +**network** | [**NetworkRequest**](NetworkRequest.md) | | [optional] +**hardware** | [**HardwareRequest**](HardwareRequest.md) | | [optional] +**software** | [**List[SoftwareRequest]**](SoftwareRequest.md) | | [optional] +**processes** | [**List[ProcessRequest]**](ProcessRequest.md) | | [optional] +**users** | [**List[DeviceUserRequest]**](DeviceUserRequest.md) | | [optional] +**groups** | [**List[DeviceGroupRequest]**](DeviceGroupRequest.md) | | [optional] +**vendor** | **Dict[str, object]** | | [optional] + +## Example + +```python +from authentik_client.models.device_facts_request import DeviceFactsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceFactsRequest from a JSON string +device_facts_request_instance = DeviceFactsRequest.from_json(json) +# print the JSON string representation of the object +print(DeviceFactsRequest.to_json()) + +# convert the object into a dict +device_facts_request_dict = device_facts_request_instance.to_dict() +# create an instance of DeviceFactsRequest from a dict +device_facts_request_from_dict = DeviceFactsRequest.from_dict(device_facts_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceGroup.md b/docs/DeviceGroup.md new file mode 100644 index 000000000..27f0200e2 --- /dev/null +++ b/docs/DeviceGroup.md @@ -0,0 +1,30 @@ +# DeviceGroup + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.device_group import DeviceGroup + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceGroup from a JSON string +device_group_instance = DeviceGroup.from_json(json) +# print the JSON string representation of the object +print(DeviceGroup.to_json()) + +# convert the object into a dict +device_group_dict = device_group_instance.to_dict() +# create an instance of DeviceGroup from a dict +device_group_from_dict = DeviceGroup.from_dict(device_group_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceGroupRequest.md b/docs/DeviceGroupRequest.md new file mode 100644 index 000000000..add8e0592 --- /dev/null +++ b/docs/DeviceGroupRequest.md @@ -0,0 +1,30 @@ +# DeviceGroupRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**name** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.device_group_request import DeviceGroupRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceGroupRequest from a JSON string +device_group_request_instance = DeviceGroupRequest.from_json(json) +# print the JSON string representation of the object +print(DeviceGroupRequest.to_json()) + +# convert the object into a dict +device_group_request_dict = device_group_request_instance.to_dict() +# create an instance of DeviceGroupRequest from a dict +device_group_request_from_dict = DeviceGroupRequest.from_dict(device_group_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceSummary.md b/docs/DeviceSummary.md new file mode 100644 index 000000000..c52193f40 --- /dev/null +++ b/docs/DeviceSummary.md @@ -0,0 +1,32 @@ +# DeviceSummary + +Summary of registered devices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_count** | **int** | | +**unreachable_count** | **int** | | +**outdated_agent_count** | **int** | | + +## Example + +```python +from authentik_client.models.device_summary import DeviceSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceSummary from a JSON string +device_summary_instance = DeviceSummary.from_json(json) +# print the JSON string representation of the object +print(DeviceSummary.to_json()) + +# convert the object into a dict +device_summary_dict = device_summary_instance.to_dict() +# create an instance of DeviceSummary from a dict +device_summary_from_dict = DeviceSummary.from_dict(device_summary_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceUser.md b/docs/DeviceUser.md new file mode 100644 index 000000000..857e01ef9 --- /dev/null +++ b/docs/DeviceUser.md @@ -0,0 +1,32 @@ +# DeviceUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**username** | **str** | | [optional] +**name** | **str** | | [optional] +**home** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.device_user import DeviceUser + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceUser from a JSON string +device_user_instance = DeviceUser.from_json(json) +# print the JSON string representation of the object +print(DeviceUser.to_json()) + +# convert the object into a dict +device_user_dict = device_user_instance.to_dict() +# create an instance of DeviceUser from a dict +device_user_from_dict = DeviceUser.from_dict(device_user_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceUserBinding.md b/docs/DeviceUserBinding.md new file mode 100644 index 000000000..d28df2fa6 --- /dev/null +++ b/docs/DeviceUserBinding.md @@ -0,0 +1,45 @@ +# DeviceUserBinding + +PolicyBinding Serializer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pk** | **str** | | [readonly] +**policy** | **str** | | [optional] +**group** | **str** | | [optional] +**user** | **int** | | [optional] +**policy_obj** | [**Policy**](Policy.md) | | [readonly] +**group_obj** | [**PartialGroup**](PartialGroup.md) | | [readonly] +**user_obj** | [**PartialUser**](PartialUser.md) | | [readonly] +**target** | **str** | | +**negate** | **bool** | Negates the outcome of the policy. Messages are unaffected. | [optional] +**enabled** | **bool** | | [optional] +**order** | **int** | | +**timeout** | **int** | Timeout after which Policy execution is terminated. | [optional] +**failure_result** | **bool** | Result if the Policy execution fails. | [optional] +**is_primary** | **bool** | | [optional] +**connector** | **str** | | [readonly] +**connector_obj** | [**Connector**](Connector.md) | | [readonly] + +## Example + +```python +from authentik_client.models.device_user_binding import DeviceUserBinding + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceUserBinding from a JSON string +device_user_binding_instance = DeviceUserBinding.from_json(json) +# print the JSON string representation of the object +print(DeviceUserBinding.to_json()) + +# convert the object into a dict +device_user_binding_dict = device_user_binding_instance.to_dict() +# create an instance of DeviceUserBinding from a dict +device_user_binding_from_dict = DeviceUserBinding.from_dict(device_user_binding_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceUserBindingRequest.md b/docs/DeviceUserBindingRequest.md new file mode 100644 index 000000000..797658535 --- /dev/null +++ b/docs/DeviceUserBindingRequest.md @@ -0,0 +1,39 @@ +# DeviceUserBindingRequest + +PolicyBinding Serializer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | **str** | | [optional] +**group** | **str** | | [optional] +**user** | **int** | | [optional] +**target** | **str** | | +**negate** | **bool** | Negates the outcome of the policy. Messages are unaffected. | [optional] +**enabled** | **bool** | | [optional] +**order** | **int** | | +**timeout** | **int** | Timeout after which Policy execution is terminated. | [optional] +**failure_result** | **bool** | Result if the Policy execution fails. | [optional] +**is_primary** | **bool** | | [optional] + +## Example + +```python +from authentik_client.models.device_user_binding_request import DeviceUserBindingRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceUserBindingRequest from a JSON string +device_user_binding_request_instance = DeviceUserBindingRequest.from_json(json) +# print the JSON string representation of the object +print(DeviceUserBindingRequest.to_json()) + +# convert the object into a dict +device_user_binding_request_dict = device_user_binding_request_instance.to_dict() +# create an instance of DeviceUserBindingRequest from a dict +device_user_binding_request_from_dict = DeviceUserBindingRequest.from_dict(device_user_binding_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceUserRequest.md b/docs/DeviceUserRequest.md new file mode 100644 index 000000000..ecd1c844d --- /dev/null +++ b/docs/DeviceUserRequest.md @@ -0,0 +1,32 @@ +# DeviceUserRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**username** | **str** | | [optional] +**name** | **str** | | [optional] +**home** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.device_user_request import DeviceUserRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DeviceUserRequest from a JSON string +device_user_request_instance = DeviceUserRequest.from_json(json) +# print the JSON string representation of the object +print(DeviceUserRequest.to_json()) + +# convert the object into a dict +device_user_request_dict = device_user_request_instance.to_dict() +# create an instance of DeviceUserRequest from a dict +device_user_request_from_dict = DeviceUserRequest.from_dict(device_user_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Disk.md b/docs/Disk.md new file mode 100644 index 000000000..3972603f3 --- /dev/null +++ b/docs/Disk.md @@ -0,0 +1,34 @@ +# Disk + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**mountpoint** | **str** | | +**label** | **str** | | [optional] +**capacity_total_bytes** | **int** | | [optional] +**capacity_used_bytes** | **int** | | [optional] +**encryption_enabled** | **bool** | | [optional] [default to False] + +## Example + +```python +from authentik_client.models.disk import Disk + +# TODO update the JSON string below +json = "{}" +# create an instance of Disk from a JSON string +disk_instance = Disk.from_json(json) +# print the JSON string representation of the object +print(Disk.to_json()) + +# convert the object into a dict +disk_dict = disk_instance.to_dict() +# create an instance of Disk from a dict +disk_from_dict = Disk.from_dict(disk_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DiskRequest.md b/docs/DiskRequest.md new file mode 100644 index 000000000..40c46b20a --- /dev/null +++ b/docs/DiskRequest.md @@ -0,0 +1,34 @@ +# DiskRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**mountpoint** | **str** | | +**label** | **str** | | [optional] +**capacity_total_bytes** | **int** | | [optional] +**capacity_used_bytes** | **int** | | [optional] +**encryption_enabled** | **bool** | | [optional] [default to False] + +## Example + +```python +from authentik_client.models.disk_request import DiskRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DiskRequest from a JSON string +disk_request_instance = DiskRequest.from_json(json) +# print the JSON string representation of the object +print(DiskRequest.to_json()) + +# convert the object into a dict +disk_request_dict = disk_request_instance.to_dict() +# create an instance of DiskRequest from a dict +disk_request_from_dict = DiskRequest.from_dict(disk_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DummyStage.md b/docs/DummyStage.md index a62c362df..eec7c1c28 100644 --- a/docs/DummyStage.md +++ b/docs/DummyStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **throw_error** | **bool** | | [optional] ## Example diff --git a/docs/DummyStageRequest.md b/docs/DummyStageRequest.md index d6be416af..7396c4c6f 100644 --- a/docs/DummyStageRequest.md +++ b/docs/DummyStageRequest.md @@ -7,7 +7,6 @@ DummyStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **throw_error** | **bool** | | [optional] ## Example diff --git a/docs/EmailStage.md b/docs/EmailStage.md index a2972c763..e59eb0d31 100644 --- a/docs/EmailStage.md +++ b/docs/EmailStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **use_global_settings** | **bool** | When enabled, global Email connection settings will be used and connection settings below will be ignored. | [optional] **host** | **str** | | [optional] **port** | **int** | | [optional] diff --git a/docs/EmailStageRequest.md b/docs/EmailStageRequest.md index 7668e8841..6281614be 100644 --- a/docs/EmailStageRequest.md +++ b/docs/EmailStageRequest.md @@ -7,7 +7,6 @@ EmailStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **use_global_settings** | **bool** | When enabled, global Email connection settings will be used and connection settings below will be ignored. | [optional] **host** | **str** | | [optional] **port** | **int** | | [optional] diff --git a/docs/EndpointAgentChallenge.md b/docs/EndpointAgentChallenge.md new file mode 100644 index 000000000..f29672d3c --- /dev/null +++ b/docs/EndpointAgentChallenge.md @@ -0,0 +1,34 @@ +# EndpointAgentChallenge + +Signed challenge for authentik agent to respond to + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flow_info** | [**ContextualFlowInfo**](ContextualFlowInfo.md) | | [optional] +**component** | **str** | | [optional] [default to 'ak-stage-endpoint-agent'] +**response_errors** | **Dict[str, List[ErrorDetail]]** | | [optional] +**challenge** | **str** | | +**challenge_idle_timeout** | **int** | | + +## Example + +```python +from authentik_client.models.endpoint_agent_challenge import EndpointAgentChallenge + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointAgentChallenge from a JSON string +endpoint_agent_challenge_instance = EndpointAgentChallenge.from_json(json) +# print the JSON string representation of the object +print(EndpointAgentChallenge.to_json()) + +# convert the object into a dict +endpoint_agent_challenge_dict = endpoint_agent_challenge_instance.to_dict() +# create an instance of EndpointAgentChallenge from a dict +endpoint_agent_challenge_from_dict = EndpointAgentChallenge.from_dict(endpoint_agent_challenge_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EndpointAgentChallengeResponseRequest.md b/docs/EndpointAgentChallengeResponseRequest.md new file mode 100644 index 000000000..49c95b345 --- /dev/null +++ b/docs/EndpointAgentChallengeResponseRequest.md @@ -0,0 +1,31 @@ +# EndpointAgentChallengeResponseRequest + +Response to signed challenge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**component** | **str** | | [optional] [default to 'ak-stage-endpoint-agent'] +**response** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.endpoint_agent_challenge_response_request import EndpointAgentChallengeResponseRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointAgentChallengeResponseRequest from a JSON string +endpoint_agent_challenge_response_request_instance = EndpointAgentChallengeResponseRequest.from_json(json) +# print the JSON string representation of the object +print(EndpointAgentChallengeResponseRequest.to_json()) + +# convert the object into a dict +endpoint_agent_challenge_response_request_dict = endpoint_agent_challenge_response_request_instance.to_dict() +# create an instance of EndpointAgentChallengeResponseRequest from a dict +endpoint_agent_challenge_response_request_from_dict = EndpointAgentChallengeResponseRequest.from_dict(endpoint_agent_challenge_response_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EndpointDevice.md b/docs/EndpointDevice.md index a7b090525..a68e34e4d 100644 --- a/docs/EndpointDevice.md +++ b/docs/EndpointDevice.md @@ -1,13 +1,19 @@ # EndpointDevice -Serializer for Endpoint authenticator devices ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pk** | **str** | | [optional] -**name** | **str** | The human-readable name of this device. | +**device_uuid** | **str** | | [optional] +**pbm_uuid** | **str** | | [readonly] +**name** | **str** | | +**access_group** | **str** | | [optional] +**access_group_obj** | [**DeviceAccessGroup**](DeviceAccessGroup.md) | | [optional] +**expiring** | **bool** | | [optional] +**expires** | **datetime** | | [optional] +**facts** | [**DeviceFactSnapshot**](DeviceFactSnapshot.md) | | [readonly] +**attributes** | **Dict[str, object]** | | [optional] ## Example diff --git a/docs/EndpointDeviceDetails.md b/docs/EndpointDeviceDetails.md new file mode 100644 index 000000000..681a02112 --- /dev/null +++ b/docs/EndpointDeviceDetails.md @@ -0,0 +1,40 @@ +# EndpointDeviceDetails + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_uuid** | **str** | | [optional] +**pbm_uuid** | **str** | | [readonly] +**name** | **str** | | +**access_group** | **str** | | [optional] +**access_group_obj** | [**DeviceAccessGroup**](DeviceAccessGroup.md) | | [optional] +**expiring** | **bool** | | [optional] +**expires** | **datetime** | | [optional] +**facts** | [**DeviceFactSnapshot**](DeviceFactSnapshot.md) | | [readonly] +**attributes** | **Dict[str, object]** | | [optional] +**connections_obj** | [**List[DeviceConnection]**](DeviceConnection.md) | | +**policies** | **List[str]** | | [readonly] +**connections** | **List[str]** | | [readonly] + +## Example + +```python +from authentik_client.models.endpoint_device_details import EndpointDeviceDetails + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointDeviceDetails from a JSON string +endpoint_device_details_instance = EndpointDeviceDetails.from_json(json) +# print the JSON string representation of the object +print(EndpointDeviceDetails.to_json()) + +# convert the object into a dict +endpoint_device_details_dict = endpoint_device_details_instance.to_dict() +# create an instance of EndpointDeviceDetails from a dict +endpoint_device_details_from_dict = EndpointDeviceDetails.from_dict(endpoint_device_details_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EndpointDeviceRequest.md b/docs/EndpointDeviceRequest.md index bd9ed8fff..c209d9a16 100644 --- a/docs/EndpointDeviceRequest.md +++ b/docs/EndpointDeviceRequest.md @@ -1,13 +1,17 @@ # EndpointDeviceRequest -Serializer for Endpoint authenticator devices ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pk** | **str** | | [optional] -**name** | **str** | The human-readable name of this device. | +**device_uuid** | **str** | | [optional] +**name** | **str** | | +**access_group** | **str** | | [optional] +**access_group_obj** | [**DeviceAccessGroupRequest**](DeviceAccessGroupRequest.md) | | [optional] +**expiring** | **bool** | | [optional] +**expires** | **datetime** | | [optional] +**attributes** | **Dict[str, object]** | | [optional] ## Example diff --git a/docs/EndpointStage.md b/docs/EndpointStage.md new file mode 100644 index 000000000..6fd6bf63b --- /dev/null +++ b/docs/EndpointStage.md @@ -0,0 +1,39 @@ +# EndpointStage + +EndpointStage Serializer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pk** | **str** | | [readonly] +**name** | **str** | | +**component** | **str** | Get object type so that we know how to edit the object | [readonly] +**verbose_name** | **str** | Return object's verbose_name | [readonly] +**verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] +**meta_model_name** | **str** | Return internal model name | [readonly] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] +**connector** | **str** | | +**connector_obj** | [**Connector**](Connector.md) | | [readonly] +**mode** | [**StageModeEnum**](StageModeEnum.md) | | [optional] + +## Example + +```python +from authentik_client.models.endpoint_stage import EndpointStage + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointStage from a JSON string +endpoint_stage_instance = EndpointStage.from_json(json) +# print the JSON string representation of the object +print(EndpointStage.to_json()) + +# convert the object into a dict +endpoint_stage_dict = endpoint_stage_instance.to_dict() +# create an instance of EndpointStage from a dict +endpoint_stage_from_dict = EndpointStage.from_dict(endpoint_stage_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EndpointStageRequest.md b/docs/EndpointStageRequest.md new file mode 100644 index 000000000..b0a04adad --- /dev/null +++ b/docs/EndpointStageRequest.md @@ -0,0 +1,32 @@ +# EndpointStageRequest + +EndpointStage Serializer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**connector** | **str** | | +**mode** | [**StageModeEnum**](StageModeEnum.md) | | [optional] + +## Example + +```python +from authentik_client.models.endpoint_stage_request import EndpointStageRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of EndpointStageRequest from a JSON string +endpoint_stage_request_instance = EndpointStageRequest.from_json(json) +# print the JSON string representation of the object +print(EndpointStageRequest.to_json()) + +# convert the object into a dict +endpoint_stage_request_dict = endpoint_stage_request_instance.to_dict() +# create an instance of EndpointStageRequest from a dict +endpoint_stage_request_from_dict = EndpointStageRequest.from_dict(endpoint_stage_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EndpointsApi.md b/docs/EndpointsApi.md new file mode 100644 index 000000000..abd430ae3 --- /dev/null +++ b/docs/EndpointsApi.md @@ -0,0 +1,3828 @@ +# authentik_client.EndpointsApi + +All URIs are relative to */api/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**endpoints_agents_connectors_agent_config_retrieve**](EndpointsApi.md#endpoints_agents_connectors_agent_config_retrieve) | **GET** /endpoints/agents/connectors/agent_config/ | +[**endpoints_agents_connectors_auth_fed_create**](EndpointsApi.md#endpoints_agents_connectors_auth_fed_create) | **POST** /endpoints/agents/connectors/auth_fed/ | +[**endpoints_agents_connectors_auth_ia_create**](EndpointsApi.md#endpoints_agents_connectors_auth_ia_create) | **POST** /endpoints/agents/connectors/auth_ia/ | +[**endpoints_agents_connectors_check_in_create**](EndpointsApi.md#endpoints_agents_connectors_check_in_create) | **POST** /endpoints/agents/connectors/check_in/ | +[**endpoints_agents_connectors_create**](EndpointsApi.md#endpoints_agents_connectors_create) | **POST** /endpoints/agents/connectors/ | +[**endpoints_agents_connectors_destroy**](EndpointsApi.md#endpoints_agents_connectors_destroy) | **DELETE** /endpoints/agents/connectors/{connector_uuid}/ | +[**endpoints_agents_connectors_enroll_create**](EndpointsApi.md#endpoints_agents_connectors_enroll_create) | **POST** /endpoints/agents/connectors/enroll/ | +[**endpoints_agents_connectors_list**](EndpointsApi.md#endpoints_agents_connectors_list) | **GET** /endpoints/agents/connectors/ | +[**endpoints_agents_connectors_mdm_config_create**](EndpointsApi.md#endpoints_agents_connectors_mdm_config_create) | **POST** /endpoints/agents/connectors/{connector_uuid}/mdm_config/ | +[**endpoints_agents_connectors_partial_update**](EndpointsApi.md#endpoints_agents_connectors_partial_update) | **PATCH** /endpoints/agents/connectors/{connector_uuid}/ | +[**endpoints_agents_connectors_retrieve**](EndpointsApi.md#endpoints_agents_connectors_retrieve) | **GET** /endpoints/agents/connectors/{connector_uuid}/ | +[**endpoints_agents_connectors_update**](EndpointsApi.md#endpoints_agents_connectors_update) | **PUT** /endpoints/agents/connectors/{connector_uuid}/ | +[**endpoints_agents_connectors_used_by_list**](EndpointsApi.md#endpoints_agents_connectors_used_by_list) | **GET** /endpoints/agents/connectors/{connector_uuid}/used_by/ | +[**endpoints_agents_enrollment_tokens_create**](EndpointsApi.md#endpoints_agents_enrollment_tokens_create) | **POST** /endpoints/agents/enrollment_tokens/ | +[**endpoints_agents_enrollment_tokens_destroy**](EndpointsApi.md#endpoints_agents_enrollment_tokens_destroy) | **DELETE** /endpoints/agents/enrollment_tokens/{token_uuid}/ | +[**endpoints_agents_enrollment_tokens_list**](EndpointsApi.md#endpoints_agents_enrollment_tokens_list) | **GET** /endpoints/agents/enrollment_tokens/ | +[**endpoints_agents_enrollment_tokens_partial_update**](EndpointsApi.md#endpoints_agents_enrollment_tokens_partial_update) | **PATCH** /endpoints/agents/enrollment_tokens/{token_uuid}/ | +[**endpoints_agents_enrollment_tokens_retrieve**](EndpointsApi.md#endpoints_agents_enrollment_tokens_retrieve) | **GET** /endpoints/agents/enrollment_tokens/{token_uuid}/ | +[**endpoints_agents_enrollment_tokens_update**](EndpointsApi.md#endpoints_agents_enrollment_tokens_update) | **PUT** /endpoints/agents/enrollment_tokens/{token_uuid}/ | +[**endpoints_agents_enrollment_tokens_used_by_list**](EndpointsApi.md#endpoints_agents_enrollment_tokens_used_by_list) | **GET** /endpoints/agents/enrollment_tokens/{token_uuid}/used_by/ | +[**endpoints_agents_enrollment_tokens_view_key_retrieve**](EndpointsApi.md#endpoints_agents_enrollment_tokens_view_key_retrieve) | **GET** /endpoints/agents/enrollment_tokens/{token_uuid}/view_key/ | +[**endpoints_agents_psso_register_device_create**](EndpointsApi.md#endpoints_agents_psso_register_device_create) | **POST** /endpoints/agents/psso/register/device/ | +[**endpoints_agents_psso_register_user_create**](EndpointsApi.md#endpoints_agents_psso_register_user_create) | **POST** /endpoints/agents/psso/register/user/ | +[**endpoints_connectors_destroy**](EndpointsApi.md#endpoints_connectors_destroy) | **DELETE** /endpoints/connectors/{connector_uuid}/ | +[**endpoints_connectors_list**](EndpointsApi.md#endpoints_connectors_list) | **GET** /endpoints/connectors/ | +[**endpoints_connectors_retrieve**](EndpointsApi.md#endpoints_connectors_retrieve) | **GET** /endpoints/connectors/{connector_uuid}/ | +[**endpoints_connectors_types_list**](EndpointsApi.md#endpoints_connectors_types_list) | **GET** /endpoints/connectors/types/ | +[**endpoints_connectors_used_by_list**](EndpointsApi.md#endpoints_connectors_used_by_list) | **GET** /endpoints/connectors/{connector_uuid}/used_by/ | +[**endpoints_device_access_groups_create**](EndpointsApi.md#endpoints_device_access_groups_create) | **POST** /endpoints/device_access_groups/ | +[**endpoints_device_access_groups_destroy**](EndpointsApi.md#endpoints_device_access_groups_destroy) | **DELETE** /endpoints/device_access_groups/{pbm_uuid}/ | +[**endpoints_device_access_groups_list**](EndpointsApi.md#endpoints_device_access_groups_list) | **GET** /endpoints/device_access_groups/ | +[**endpoints_device_access_groups_partial_update**](EndpointsApi.md#endpoints_device_access_groups_partial_update) | **PATCH** /endpoints/device_access_groups/{pbm_uuid}/ | +[**endpoints_device_access_groups_retrieve**](EndpointsApi.md#endpoints_device_access_groups_retrieve) | **GET** /endpoints/device_access_groups/{pbm_uuid}/ | +[**endpoints_device_access_groups_update**](EndpointsApi.md#endpoints_device_access_groups_update) | **PUT** /endpoints/device_access_groups/{pbm_uuid}/ | +[**endpoints_device_access_groups_used_by_list**](EndpointsApi.md#endpoints_device_access_groups_used_by_list) | **GET** /endpoints/device_access_groups/{pbm_uuid}/used_by/ | +[**endpoints_device_bindings_create**](EndpointsApi.md#endpoints_device_bindings_create) | **POST** /endpoints/device_bindings/ | +[**endpoints_device_bindings_destroy**](EndpointsApi.md#endpoints_device_bindings_destroy) | **DELETE** /endpoints/device_bindings/{policy_binding_uuid}/ | +[**endpoints_device_bindings_list**](EndpointsApi.md#endpoints_device_bindings_list) | **GET** /endpoints/device_bindings/ | +[**endpoints_device_bindings_partial_update**](EndpointsApi.md#endpoints_device_bindings_partial_update) | **PATCH** /endpoints/device_bindings/{policy_binding_uuid}/ | +[**endpoints_device_bindings_retrieve**](EndpointsApi.md#endpoints_device_bindings_retrieve) | **GET** /endpoints/device_bindings/{policy_binding_uuid}/ | +[**endpoints_device_bindings_update**](EndpointsApi.md#endpoints_device_bindings_update) | **PUT** /endpoints/device_bindings/{policy_binding_uuid}/ | +[**endpoints_device_bindings_used_by_list**](EndpointsApi.md#endpoints_device_bindings_used_by_list) | **GET** /endpoints/device_bindings/{policy_binding_uuid}/used_by/ | +[**endpoints_devices_destroy**](EndpointsApi.md#endpoints_devices_destroy) | **DELETE** /endpoints/devices/{device_uuid}/ | +[**endpoints_devices_list**](EndpointsApi.md#endpoints_devices_list) | **GET** /endpoints/devices/ | +[**endpoints_devices_partial_update**](EndpointsApi.md#endpoints_devices_partial_update) | **PATCH** /endpoints/devices/{device_uuid}/ | +[**endpoints_devices_retrieve**](EndpointsApi.md#endpoints_devices_retrieve) | **GET** /endpoints/devices/{device_uuid}/ | +[**endpoints_devices_summary_retrieve**](EndpointsApi.md#endpoints_devices_summary_retrieve) | **GET** /endpoints/devices/summary/ | +[**endpoints_devices_update**](EndpointsApi.md#endpoints_devices_update) | **PUT** /endpoints/devices/{device_uuid}/ | +[**endpoints_devices_used_by_list**](EndpointsApi.md#endpoints_devices_used_by_list) | **GET** /endpoints/devices/{device_uuid}/used_by/ | + + +# **endpoints_agents_connectors_agent_config_retrieve** +> AgentConfig endpoints_agents_connectors_agent_config_retrieve() + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + + +```python +import authentik_client +from authentik_client.models.agent_config import AgentConfig +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + + try: + api_response = api_instance.endpoints_agents_connectors_agent_config_retrieve() + print("The response of EndpointsApi->endpoints_agents_connectors_agent_config_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_agent_config_retrieve: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**AgentConfig**](AgentConfig.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_auth_fed_create** +> AgentTokenResponse endpoints_agents_connectors_auth_fed_create(device) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + + +```python +import authentik_client +from authentik_client.models.agent_token_response import AgentTokenResponse +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device = 'device_example' # str | + + try: + api_response = api_instance.endpoints_agents_connectors_auth_fed_create(device) + print("The response of EndpointsApi->endpoints_agents_connectors_auth_fed_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_auth_fed_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device** | **str**| | + +### Return type + +[**AgentTokenResponse**](AgentTokenResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**404** | Device not found | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_auth_ia_create** +> AgentAuthenticationResponse endpoints_agents_connectors_auth_ia_create() + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + + +```python +import authentik_client +from authentik_client.models.agent_authentication_response import AgentAuthenticationResponse +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + + try: + api_response = api_instance.endpoints_agents_connectors_auth_ia_create() + print("The response of EndpointsApi->endpoints_agents_connectors_auth_ia_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_auth_ia_create: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**AgentAuthenticationResponse**](AgentAuthenticationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_check_in_create** +> endpoints_agents_connectors_check_in_create(device_facts_request=device_facts_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + + +```python +import authentik_client +from authentik_client.models.device_facts_request import DeviceFactsRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device_facts_request = authentik_client.DeviceFactsRequest() # DeviceFactsRequest | (optional) + + try: + api_instance.endpoints_agents_connectors_check_in_create(device_facts_request=device_facts_request) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_check_in_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_facts_request** | [**DeviceFactsRequest**](DeviceFactsRequest.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Successfully checked in | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_create** +> AgentConnector endpoints_agents_connectors_create(agent_connector_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.agent_connector import AgentConnector +from authentik_client.models.agent_connector_request import AgentConnectorRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + agent_connector_request = authentik_client.AgentConnectorRequest() # AgentConnectorRequest | + + try: + api_response = api_instance.endpoints_agents_connectors_create(agent_connector_request) + print("The response of EndpointsApi->endpoints_agents_connectors_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_connector_request** | [**AgentConnectorRequest**](AgentConnectorRequest.md)| | + +### Return type + +[**AgentConnector**](AgentConnector.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_destroy** +> endpoints_agents_connectors_destroy(connector_uuid) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this Agent Connector. + + try: + api_instance.endpoints_agents_connectors_destroy(connector_uuid) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this Agent Connector. | + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_enroll_create** +> AgentTokenResponse endpoints_agents_connectors_enroll_create(enroll_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + + +```python +import authentik_client +from authentik_client.models.agent_token_response import AgentTokenResponse +from authentik_client.models.enroll_request import EnrollRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + enroll_request = authentik_client.EnrollRequest() # EnrollRequest | + + try: + api_response = api_instance.endpoints_agents_connectors_enroll_create(enroll_request) + print("The response of EndpointsApi->endpoints_agents_connectors_enroll_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_enroll_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enroll_request** | [**EnrollRequest**](EnrollRequest.md)| | + +### Return type + +[**AgentTokenResponse**](AgentTokenResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_list** +> PaginatedAgentConnectorList endpoints_agents_connectors_list(enabled=enabled, name=name, ordering=ordering, page=page, page_size=page_size, search=search) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.paginated_agent_connector_list import PaginatedAgentConnectorList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + enabled = True # bool | (optional) + name = 'name_example' # str | (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + search = 'search_example' # str | A search term. (optional) + + try: + api_response = api_instance.endpoints_agents_connectors_list(enabled=enabled, name=name, ordering=ordering, page=page, page_size=page_size, search=search) + print("The response of EndpointsApi->endpoints_agents_connectors_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enabled** | **bool**| | [optional] + **name** | **str**| | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **search** | **str**| A search term. | [optional] + +### Return type + +[**PaginatedAgentConnectorList**](PaginatedAgentConnectorList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_mdm_config_create** +> MDMConfigResponse endpoints_agents_connectors_mdm_config_create(connector_uuid, mdm_config_request) + +Generate configuration for MDM systems to deploy authentik Agent + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.mdm_config_request import MDMConfigRequest +from authentik_client.models.mdm_config_response import MDMConfigResponse +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this Agent Connector. + mdm_config_request = authentik_client.MDMConfigRequest() # MDMConfigRequest | + + try: + api_response = api_instance.endpoints_agents_connectors_mdm_config_create(connector_uuid, mdm_config_request) + print("The response of EndpointsApi->endpoints_agents_connectors_mdm_config_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_mdm_config_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this Agent Connector. | + **mdm_config_request** | [**MDMConfigRequest**](MDMConfigRequest.md)| | + +### Return type + +[**MDMConfigResponse**](MDMConfigResponse.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_partial_update** +> AgentConnector endpoints_agents_connectors_partial_update(connector_uuid, patched_agent_connector_request=patched_agent_connector_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.agent_connector import AgentConnector +from authentik_client.models.patched_agent_connector_request import PatchedAgentConnectorRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this Agent Connector. + patched_agent_connector_request = authentik_client.PatchedAgentConnectorRequest() # PatchedAgentConnectorRequest | (optional) + + try: + api_response = api_instance.endpoints_agents_connectors_partial_update(connector_uuid, patched_agent_connector_request=patched_agent_connector_request) + print("The response of EndpointsApi->endpoints_agents_connectors_partial_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_partial_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this Agent Connector. | + **patched_agent_connector_request** | [**PatchedAgentConnectorRequest**](PatchedAgentConnectorRequest.md)| | [optional] + +### Return type + +[**AgentConnector**](AgentConnector.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_retrieve** +> AgentConnector endpoints_agents_connectors_retrieve(connector_uuid) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.agent_connector import AgentConnector +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this Agent Connector. + + try: + api_response = api_instance.endpoints_agents_connectors_retrieve(connector_uuid) + print("The response of EndpointsApi->endpoints_agents_connectors_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this Agent Connector. | + +### Return type + +[**AgentConnector**](AgentConnector.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_update** +> AgentConnector endpoints_agents_connectors_update(connector_uuid, agent_connector_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.agent_connector import AgentConnector +from authentik_client.models.agent_connector_request import AgentConnectorRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this Agent Connector. + agent_connector_request = authentik_client.AgentConnectorRequest() # AgentConnectorRequest | + + try: + api_response = api_instance.endpoints_agents_connectors_update(connector_uuid, agent_connector_request) + print("The response of EndpointsApi->endpoints_agents_connectors_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this Agent Connector. | + **agent_connector_request** | [**AgentConnectorRequest**](AgentConnectorRequest.md)| | + +### Return type + +[**AgentConnector**](AgentConnector.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_connectors_used_by_list** +> List[UsedBy] endpoints_agents_connectors_used_by_list(connector_uuid) + +Get a list of all objects that use this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.used_by import UsedBy +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this Agent Connector. + + try: + api_response = api_instance.endpoints_agents_connectors_used_by_list(connector_uuid) + print("The response of EndpointsApi->endpoints_agents_connectors_used_by_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_connectors_used_by_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this Agent Connector. | + +### Return type + +[**List[UsedBy]**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_enrollment_tokens_create** +> EnrollmentToken endpoints_agents_enrollment_tokens_create(enrollment_token_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.enrollment_token import EnrollmentToken +from authentik_client.models.enrollment_token_request import EnrollmentTokenRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + enrollment_token_request = authentik_client.EnrollmentTokenRequest() # EnrollmentTokenRequest | + + try: + api_response = api_instance.endpoints_agents_enrollment_tokens_create(enrollment_token_request) + print("The response of EndpointsApi->endpoints_agents_enrollment_tokens_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_enrollment_tokens_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enrollment_token_request** | [**EnrollmentTokenRequest**](EnrollmentTokenRequest.md)| | + +### Return type + +[**EnrollmentToken**](EnrollmentToken.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_enrollment_tokens_destroy** +> endpoints_agents_enrollment_tokens_destroy(token_uuid) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + token_uuid = 'token_uuid_example' # str | A UUID string identifying this Enrollment Token. + + try: + api_instance.endpoints_agents_enrollment_tokens_destroy(token_uuid) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_enrollment_tokens_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_uuid** | **str**| A UUID string identifying this Enrollment Token. | + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_enrollment_tokens_list** +> PaginatedEnrollmentTokenList endpoints_agents_enrollment_tokens_list(connector=connector, ordering=ordering, page=page, page_size=page_size, search=search, token_uuid=token_uuid) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.paginated_enrollment_token_list import PaginatedEnrollmentTokenList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector = 'connector_example' # str | (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + search = 'search_example' # str | A search term. (optional) + token_uuid = 'token_uuid_example' # str | (optional) + + try: + api_response = api_instance.endpoints_agents_enrollment_tokens_list(connector=connector, ordering=ordering, page=page, page_size=page_size, search=search, token_uuid=token_uuid) + print("The response of EndpointsApi->endpoints_agents_enrollment_tokens_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_enrollment_tokens_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector** | **str**| | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **search** | **str**| A search term. | [optional] + **token_uuid** | **str**| | [optional] + +### Return type + +[**PaginatedEnrollmentTokenList**](PaginatedEnrollmentTokenList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_enrollment_tokens_partial_update** +> EnrollmentToken endpoints_agents_enrollment_tokens_partial_update(token_uuid, patched_enrollment_token_request=patched_enrollment_token_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.enrollment_token import EnrollmentToken +from authentik_client.models.patched_enrollment_token_request import PatchedEnrollmentTokenRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + token_uuid = 'token_uuid_example' # str | A UUID string identifying this Enrollment Token. + patched_enrollment_token_request = authentik_client.PatchedEnrollmentTokenRequest() # PatchedEnrollmentTokenRequest | (optional) + + try: + api_response = api_instance.endpoints_agents_enrollment_tokens_partial_update(token_uuid, patched_enrollment_token_request=patched_enrollment_token_request) + print("The response of EndpointsApi->endpoints_agents_enrollment_tokens_partial_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_enrollment_tokens_partial_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_uuid** | **str**| A UUID string identifying this Enrollment Token. | + **patched_enrollment_token_request** | [**PatchedEnrollmentTokenRequest**](PatchedEnrollmentTokenRequest.md)| | [optional] + +### Return type + +[**EnrollmentToken**](EnrollmentToken.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_enrollment_tokens_retrieve** +> EnrollmentToken endpoints_agents_enrollment_tokens_retrieve(token_uuid) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.enrollment_token import EnrollmentToken +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + token_uuid = 'token_uuid_example' # str | A UUID string identifying this Enrollment Token. + + try: + api_response = api_instance.endpoints_agents_enrollment_tokens_retrieve(token_uuid) + print("The response of EndpointsApi->endpoints_agents_enrollment_tokens_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_enrollment_tokens_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_uuid** | **str**| A UUID string identifying this Enrollment Token. | + +### Return type + +[**EnrollmentToken**](EnrollmentToken.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_enrollment_tokens_update** +> EnrollmentToken endpoints_agents_enrollment_tokens_update(token_uuid, enrollment_token_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.enrollment_token import EnrollmentToken +from authentik_client.models.enrollment_token_request import EnrollmentTokenRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + token_uuid = 'token_uuid_example' # str | A UUID string identifying this Enrollment Token. + enrollment_token_request = authentik_client.EnrollmentTokenRequest() # EnrollmentTokenRequest | + + try: + api_response = api_instance.endpoints_agents_enrollment_tokens_update(token_uuid, enrollment_token_request) + print("The response of EndpointsApi->endpoints_agents_enrollment_tokens_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_enrollment_tokens_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_uuid** | **str**| A UUID string identifying this Enrollment Token. | + **enrollment_token_request** | [**EnrollmentTokenRequest**](EnrollmentTokenRequest.md)| | + +### Return type + +[**EnrollmentToken**](EnrollmentToken.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_enrollment_tokens_used_by_list** +> List[UsedBy] endpoints_agents_enrollment_tokens_used_by_list(token_uuid) + +Get a list of all objects that use this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.used_by import UsedBy +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + token_uuid = 'token_uuid_example' # str | A UUID string identifying this Enrollment Token. + + try: + api_response = api_instance.endpoints_agents_enrollment_tokens_used_by_list(token_uuid) + print("The response of EndpointsApi->endpoints_agents_enrollment_tokens_used_by_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_enrollment_tokens_used_by_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_uuid** | **str**| A UUID string identifying this Enrollment Token. | + +### Return type + +[**List[UsedBy]**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_enrollment_tokens_view_key_retrieve** +> TokenView endpoints_agents_enrollment_tokens_view_key_retrieve(token_uuid) + +Return token key and log access + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.token_view import TokenView +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + token_uuid = 'token_uuid_example' # str | A UUID string identifying this Enrollment Token. + + try: + api_response = api_instance.endpoints_agents_enrollment_tokens_view_key_retrieve(token_uuid) + print("The response of EndpointsApi->endpoints_agents_enrollment_tokens_view_key_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_enrollment_tokens_view_key_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **token_uuid** | **str**| A UUID string identifying this Enrollment Token. | + +### Return type + +[**TokenView**](TokenView.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**404** | Token not found or expired | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_psso_register_device_create** +> AgentPSSODeviceRegistrationResponse endpoints_agents_psso_register_device_create(agent_psso_device_registration_request) + +### Example + + +```python +import authentik_client +from authentik_client.models.agent_psso_device_registration_request import AgentPSSODeviceRegistrationRequest +from authentik_client.models.agent_psso_device_registration_response import AgentPSSODeviceRegistrationResponse +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + agent_psso_device_registration_request = authentik_client.AgentPSSODeviceRegistrationRequest() # AgentPSSODeviceRegistrationRequest | + + try: + api_response = api_instance.endpoints_agents_psso_register_device_create(agent_psso_device_registration_request) + print("The response of EndpointsApi->endpoints_agents_psso_register_device_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_psso_register_device_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_psso_device_registration_request** | [**AgentPSSODeviceRegistrationRequest**](AgentPSSODeviceRegistrationRequest.md)| | + +### Return type + +[**AgentPSSODeviceRegistrationResponse**](AgentPSSODeviceRegistrationResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_agents_psso_register_user_create** +> UserSelf endpoints_agents_psso_register_user_create(agent_psso_user_registration_request) + +### Example + + +```python +import authentik_client +from authentik_client.models.agent_psso_user_registration_request import AgentPSSOUserRegistrationRequest +from authentik_client.models.user_self import UserSelf +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + agent_psso_user_registration_request = authentik_client.AgentPSSOUserRegistrationRequest() # AgentPSSOUserRegistrationRequest | + + try: + api_response = api_instance.endpoints_agents_psso_register_user_create(agent_psso_user_registration_request) + print("The response of EndpointsApi->endpoints_agents_psso_register_user_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_agents_psso_register_user_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agent_psso_user_registration_request** | [**AgentPSSOUserRegistrationRequest**](AgentPSSOUserRegistrationRequest.md)| | + +### Return type + +[**UserSelf**](UserSelf.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_connectors_destroy** +> endpoints_connectors_destroy(connector_uuid) + +Connector Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this connector. + + try: + api_instance.endpoints_connectors_destroy(connector_uuid) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_connectors_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this connector. | + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_connectors_list** +> PaginatedConnectorList endpoints_connectors_list(ordering=ordering, page=page, page_size=page_size, search=search) + +Connector Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.paginated_connector_list import PaginatedConnectorList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + search = 'search_example' # str | A search term. (optional) + + try: + api_response = api_instance.endpoints_connectors_list(ordering=ordering, page=page, page_size=page_size, search=search) + print("The response of EndpointsApi->endpoints_connectors_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_connectors_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **search** | **str**| A search term. | [optional] + +### Return type + +[**PaginatedConnectorList**](PaginatedConnectorList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_connectors_retrieve** +> Connector endpoints_connectors_retrieve(connector_uuid) + +Connector Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.connector import Connector +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this connector. + + try: + api_response = api_instance.endpoints_connectors_retrieve(connector_uuid) + print("The response of EndpointsApi->endpoints_connectors_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_connectors_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this connector. | + +### Return type + +[**Connector**](Connector.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_connectors_types_list** +> List[TypeCreate] endpoints_connectors_types_list() + +Get all creatable types + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.type_create import TypeCreate +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + + try: + api_response = api_instance.endpoints_connectors_types_list() + print("The response of EndpointsApi->endpoints_connectors_types_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_connectors_types_list: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**List[TypeCreate]**](TypeCreate.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_connectors_used_by_list** +> List[UsedBy] endpoints_connectors_used_by_list(connector_uuid) + +Get a list of all objects that use this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.used_by import UsedBy +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + connector_uuid = 'connector_uuid_example' # str | A UUID string identifying this connector. + + try: + api_response = api_instance.endpoints_connectors_used_by_list(connector_uuid) + print("The response of EndpointsApi->endpoints_connectors_used_by_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_connectors_used_by_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connector_uuid** | **str**| A UUID string identifying this connector. | + +### Return type + +[**List[UsedBy]**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_access_groups_create** +> DeviceAccessGroup endpoints_device_access_groups_create(device_access_group_request) + +DeviceAccessGroup Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device_access_group_request = authentik_client.DeviceAccessGroupRequest() # DeviceAccessGroupRequest | + + try: + api_response = api_instance.endpoints_device_access_groups_create(device_access_group_request) + print("The response of EndpointsApi->endpoints_device_access_groups_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_access_groups_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_access_group_request** | [**DeviceAccessGroupRequest**](DeviceAccessGroupRequest.md)| | + +### Return type + +[**DeviceAccessGroup**](DeviceAccessGroup.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_access_groups_destroy** +> endpoints_device_access_groups_destroy(pbm_uuid) + +DeviceAccessGroup Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + pbm_uuid = 'pbm_uuid_example' # str | A UUID string identifying this Device access group. + + try: + api_instance.endpoints_device_access_groups_destroy(pbm_uuid) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_access_groups_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pbm_uuid** | **str**| A UUID string identifying this Device access group. | + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_access_groups_list** +> PaginatedDeviceAccessGroupList endpoints_device_access_groups_list(name=name, ordering=ordering, page=page, page_size=page_size, pbm_uuid=pbm_uuid, search=search) + +DeviceAccessGroup Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.paginated_device_access_group_list import PaginatedDeviceAccessGroupList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + name = 'name_example' # str | (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + pbm_uuid = 'pbm_uuid_example' # str | (optional) + search = 'search_example' # str | A search term. (optional) + + try: + api_response = api_instance.endpoints_device_access_groups_list(name=name, ordering=ordering, page=page, page_size=page_size, pbm_uuid=pbm_uuid, search=search) + print("The response of EndpointsApi->endpoints_device_access_groups_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_access_groups_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **pbm_uuid** | **str**| | [optional] + **search** | **str**| A search term. | [optional] + +### Return type + +[**PaginatedDeviceAccessGroupList**](PaginatedDeviceAccessGroupList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_access_groups_partial_update** +> DeviceAccessGroup endpoints_device_access_groups_partial_update(pbm_uuid, patched_device_access_group_request=patched_device_access_group_request) + +DeviceAccessGroup Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.models.patched_device_access_group_request import PatchedDeviceAccessGroupRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + pbm_uuid = 'pbm_uuid_example' # str | A UUID string identifying this Device access group. + patched_device_access_group_request = authentik_client.PatchedDeviceAccessGroupRequest() # PatchedDeviceAccessGroupRequest | (optional) + + try: + api_response = api_instance.endpoints_device_access_groups_partial_update(pbm_uuid, patched_device_access_group_request=patched_device_access_group_request) + print("The response of EndpointsApi->endpoints_device_access_groups_partial_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_access_groups_partial_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pbm_uuid** | **str**| A UUID string identifying this Device access group. | + **patched_device_access_group_request** | [**PatchedDeviceAccessGroupRequest**](PatchedDeviceAccessGroupRequest.md)| | [optional] + +### Return type + +[**DeviceAccessGroup**](DeviceAccessGroup.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_access_groups_retrieve** +> DeviceAccessGroup endpoints_device_access_groups_retrieve(pbm_uuid) + +DeviceAccessGroup Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + pbm_uuid = 'pbm_uuid_example' # str | A UUID string identifying this Device access group. + + try: + api_response = api_instance.endpoints_device_access_groups_retrieve(pbm_uuid) + print("The response of EndpointsApi->endpoints_device_access_groups_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_access_groups_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pbm_uuid** | **str**| A UUID string identifying this Device access group. | + +### Return type + +[**DeviceAccessGroup**](DeviceAccessGroup.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_access_groups_update** +> DeviceAccessGroup endpoints_device_access_groups_update(pbm_uuid, device_access_group_request) + +DeviceAccessGroup Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_access_group import DeviceAccessGroup +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + pbm_uuid = 'pbm_uuid_example' # str | A UUID string identifying this Device access group. + device_access_group_request = authentik_client.DeviceAccessGroupRequest() # DeviceAccessGroupRequest | + + try: + api_response = api_instance.endpoints_device_access_groups_update(pbm_uuid, device_access_group_request) + print("The response of EndpointsApi->endpoints_device_access_groups_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_access_groups_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pbm_uuid** | **str**| A UUID string identifying this Device access group. | + **device_access_group_request** | [**DeviceAccessGroupRequest**](DeviceAccessGroupRequest.md)| | + +### Return type + +[**DeviceAccessGroup**](DeviceAccessGroup.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_access_groups_used_by_list** +> List[UsedBy] endpoints_device_access_groups_used_by_list(pbm_uuid) + +Get a list of all objects that use this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.used_by import UsedBy +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + pbm_uuid = 'pbm_uuid_example' # str | A UUID string identifying this Device access group. + + try: + api_response = api_instance.endpoints_device_access_groups_used_by_list(pbm_uuid) + print("The response of EndpointsApi->endpoints_device_access_groups_used_by_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_access_groups_used_by_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pbm_uuid** | **str**| A UUID string identifying this Device access group. | + +### Return type + +[**List[UsedBy]**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_bindings_create** +> DeviceUserBinding endpoints_device_bindings_create(device_user_binding_request) + +PolicyBinding Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_user_binding import DeviceUserBinding +from authentik_client.models.device_user_binding_request import DeviceUserBindingRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device_user_binding_request = authentik_client.DeviceUserBindingRequest() # DeviceUserBindingRequest | + + try: + api_response = api_instance.endpoints_device_bindings_create(device_user_binding_request) + print("The response of EndpointsApi->endpoints_device_bindings_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_bindings_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_user_binding_request** | [**DeviceUserBindingRequest**](DeviceUserBindingRequest.md)| | + +### Return type + +[**DeviceUserBinding**](DeviceUserBinding.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_bindings_destroy** +> endpoints_device_bindings_destroy(policy_binding_uuid) + +PolicyBinding Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + policy_binding_uuid = 'policy_binding_uuid_example' # str | A UUID string identifying this Device User binding. + + try: + api_instance.endpoints_device_bindings_destroy(policy_binding_uuid) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_bindings_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_binding_uuid** | **str**| A UUID string identifying this Device User binding. | + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_bindings_list** +> PaginatedDeviceUserBindingList endpoints_device_bindings_list(enabled=enabled, order=order, ordering=ordering, page=page, page_size=page_size, policy=policy, policy__isnull=policy__isnull, search=search, target=target, target_in=target_in, timeout=timeout) + +PolicyBinding Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.paginated_device_user_binding_list import PaginatedDeviceUserBindingList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + enabled = True # bool | (optional) + order = 56 # int | (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + policy = 'policy_example' # str | (optional) + policy__isnull = True # bool | (optional) + search = 'search_example' # str | A search term. (optional) + target = 'target_example' # str | (optional) + target_in = ['target_in_example'] # List[str] | (optional) + timeout = 56 # int | (optional) + + try: + api_response = api_instance.endpoints_device_bindings_list(enabled=enabled, order=order, ordering=ordering, page=page, page_size=page_size, policy=policy, policy__isnull=policy__isnull, search=search, target=target, target_in=target_in, timeout=timeout) + print("The response of EndpointsApi->endpoints_device_bindings_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_bindings_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enabled** | **bool**| | [optional] + **order** | **int**| | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **policy** | **str**| | [optional] + **policy__isnull** | **bool**| | [optional] + **search** | **str**| A search term. | [optional] + **target** | **str**| | [optional] + **target_in** | [**List[str]**](str.md)| | [optional] + **timeout** | **int**| | [optional] + +### Return type + +[**PaginatedDeviceUserBindingList**](PaginatedDeviceUserBindingList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_bindings_partial_update** +> DeviceUserBinding endpoints_device_bindings_partial_update(policy_binding_uuid, patched_device_user_binding_request=patched_device_user_binding_request) + +PolicyBinding Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_user_binding import DeviceUserBinding +from authentik_client.models.patched_device_user_binding_request import PatchedDeviceUserBindingRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + policy_binding_uuid = 'policy_binding_uuid_example' # str | A UUID string identifying this Device User binding. + patched_device_user_binding_request = authentik_client.PatchedDeviceUserBindingRequest() # PatchedDeviceUserBindingRequest | (optional) + + try: + api_response = api_instance.endpoints_device_bindings_partial_update(policy_binding_uuid, patched_device_user_binding_request=patched_device_user_binding_request) + print("The response of EndpointsApi->endpoints_device_bindings_partial_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_bindings_partial_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_binding_uuid** | **str**| A UUID string identifying this Device User binding. | + **patched_device_user_binding_request** | [**PatchedDeviceUserBindingRequest**](PatchedDeviceUserBindingRequest.md)| | [optional] + +### Return type + +[**DeviceUserBinding**](DeviceUserBinding.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_bindings_retrieve** +> DeviceUserBinding endpoints_device_bindings_retrieve(policy_binding_uuid) + +PolicyBinding Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_user_binding import DeviceUserBinding +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + policy_binding_uuid = 'policy_binding_uuid_example' # str | A UUID string identifying this Device User binding. + + try: + api_response = api_instance.endpoints_device_bindings_retrieve(policy_binding_uuid) + print("The response of EndpointsApi->endpoints_device_bindings_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_bindings_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_binding_uuid** | **str**| A UUID string identifying this Device User binding. | + +### Return type + +[**DeviceUserBinding**](DeviceUserBinding.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_bindings_update** +> DeviceUserBinding endpoints_device_bindings_update(policy_binding_uuid, device_user_binding_request) + +PolicyBinding Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_user_binding import DeviceUserBinding +from authentik_client.models.device_user_binding_request import DeviceUserBindingRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + policy_binding_uuid = 'policy_binding_uuid_example' # str | A UUID string identifying this Device User binding. + device_user_binding_request = authentik_client.DeviceUserBindingRequest() # DeviceUserBindingRequest | + + try: + api_response = api_instance.endpoints_device_bindings_update(policy_binding_uuid, device_user_binding_request) + print("The response of EndpointsApi->endpoints_device_bindings_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_bindings_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_binding_uuid** | **str**| A UUID string identifying this Device User binding. | + **device_user_binding_request** | [**DeviceUserBindingRequest**](DeviceUserBindingRequest.md)| | + +### Return type + +[**DeviceUserBinding**](DeviceUserBinding.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_device_bindings_used_by_list** +> List[UsedBy] endpoints_device_bindings_used_by_list(policy_binding_uuid) + +Get a list of all objects that use this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.used_by import UsedBy +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + policy_binding_uuid = 'policy_binding_uuid_example' # str | A UUID string identifying this Device User binding. + + try: + api_response = api_instance.endpoints_device_bindings_used_by_list(policy_binding_uuid) + print("The response of EndpointsApi->endpoints_device_bindings_used_by_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_device_bindings_used_by_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **policy_binding_uuid** | **str**| A UUID string identifying this Device User binding. | + +### Return type + +[**List[UsedBy]**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_devices_destroy** +> endpoints_devices_destroy(device_uuid) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device_uuid = 'device_uuid_example' # str | A UUID string identifying this Device. + + try: + api_instance.endpoints_devices_destroy(device_uuid) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_devices_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_uuid** | **str**| A UUID string identifying this Device. | + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_devices_list** +> PaginatedEndpointDeviceList endpoints_devices_list(identifier=identifier, name=name, ordering=ordering, page=page, page_size=page_size, search=search) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.paginated_endpoint_device_list import PaginatedEndpointDeviceList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + identifier = 'identifier_example' # str | (optional) + name = 'name_example' # str | (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + search = 'search_example' # str | A search term. (optional) + + try: + api_response = api_instance.endpoints_devices_list(identifier=identifier, name=name, ordering=ordering, page=page, page_size=page_size, search=search) + print("The response of EndpointsApi->endpoints_devices_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_devices_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **identifier** | **str**| | [optional] + **name** | **str**| | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **search** | **str**| A search term. | [optional] + +### Return type + +[**PaginatedEndpointDeviceList**](PaginatedEndpointDeviceList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_devices_partial_update** +> EndpointDevice endpoints_devices_partial_update(device_uuid, patched_endpoint_device_request=patched_endpoint_device_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.endpoint_device import EndpointDevice +from authentik_client.models.patched_endpoint_device_request import PatchedEndpointDeviceRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device_uuid = 'device_uuid_example' # str | A UUID string identifying this Device. + patched_endpoint_device_request = authentik_client.PatchedEndpointDeviceRequest() # PatchedEndpointDeviceRequest | (optional) + + try: + api_response = api_instance.endpoints_devices_partial_update(device_uuid, patched_endpoint_device_request=patched_endpoint_device_request) + print("The response of EndpointsApi->endpoints_devices_partial_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_devices_partial_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_uuid** | **str**| A UUID string identifying this Device. | + **patched_endpoint_device_request** | [**PatchedEndpointDeviceRequest**](PatchedEndpointDeviceRequest.md)| | [optional] + +### Return type + +[**EndpointDevice**](EndpointDevice.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_devices_retrieve** +> EndpointDeviceDetails endpoints_devices_retrieve(device_uuid) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.endpoint_device_details import EndpointDeviceDetails +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device_uuid = 'device_uuid_example' # str | A UUID string identifying this Device. + + try: + api_response = api_instance.endpoints_devices_retrieve(device_uuid) + print("The response of EndpointsApi->endpoints_devices_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_devices_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_uuid** | **str**| A UUID string identifying this Device. | + +### Return type + +[**EndpointDeviceDetails**](EndpointDeviceDetails.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_devices_summary_retrieve** +> DeviceSummary endpoints_devices_summary_retrieve() + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.device_summary import DeviceSummary +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + + try: + api_response = api_instance.endpoints_devices_summary_retrieve() + print("The response of EndpointsApi->endpoints_devices_summary_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_devices_summary_retrieve: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**DeviceSummary**](DeviceSummary.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_devices_update** +> EndpointDevice endpoints_devices_update(device_uuid, endpoint_device_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.endpoint_device import EndpointDevice +from authentik_client.models.endpoint_device_request import EndpointDeviceRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device_uuid = 'device_uuid_example' # str | A UUID string identifying this Device. + endpoint_device_request = authentik_client.EndpointDeviceRequest() # EndpointDeviceRequest | + + try: + api_response = api_instance.endpoints_devices_update(device_uuid, endpoint_device_request) + print("The response of EndpointsApi->endpoints_devices_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_devices_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_uuid** | **str**| A UUID string identifying this Device. | + **endpoint_device_request** | [**EndpointDeviceRequest**](EndpointDeviceRequest.md)| | + +### Return type + +[**EndpointDevice**](EndpointDevice.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **endpoints_devices_used_by_list** +> List[UsedBy] endpoints_devices_used_by_list(device_uuid) + +Get a list of all objects that use this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.used_by import UsedBy +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EndpointsApi(api_client) + device_uuid = 'device_uuid_example' # str | A UUID string identifying this Device. + + try: + api_response = api_instance.endpoints_devices_used_by_list(device_uuid) + print("The response of EndpointsApi->endpoints_devices_used_by_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EndpointsApi->endpoints_devices_used_by_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_uuid** | **str**| A UUID string identifying this Device. | + +### Return type + +[**List[UsedBy]**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/EnrollRequest.md b/docs/EnrollRequest.md new file mode 100644 index 000000000..379dbfe67 --- /dev/null +++ b/docs/EnrollRequest.md @@ -0,0 +1,31 @@ +# EnrollRequest + +Base serializer class which doesn't implement create/update methods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_serial** | **str** | | +**device_name** | **str** | | + +## Example + +```python +from authentik_client.models.enroll_request import EnrollRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of EnrollRequest from a JSON string +enroll_request_instance = EnrollRequest.from_json(json) +# print the JSON string representation of the object +print(EnrollRequest.to_json()) + +# convert the object into a dict +enroll_request_dict = enroll_request_instance.to_dict() +# create an instance of EnrollRequest from a dict +enroll_request_from_dict = EnrollRequest.from_dict(enroll_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EnrollmentToken.md b/docs/EnrollmentToken.md new file mode 100644 index 000000000..c6bc5150f --- /dev/null +++ b/docs/EnrollmentToken.md @@ -0,0 +1,35 @@ +# EnrollmentToken + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token_uuid** | **str** | | [readonly] +**device_group** | **str** | | [optional] +**device_group_obj** | [**DeviceAccessGroup**](DeviceAccessGroup.md) | | [readonly] +**connector** | **str** | | +**name** | **str** | | +**expiring** | **bool** | | [optional] +**expires** | **datetime** | | [optional] + +## Example + +```python +from authentik_client.models.enrollment_token import EnrollmentToken + +# TODO update the JSON string below +json = "{}" +# create an instance of EnrollmentToken from a JSON string +enrollment_token_instance = EnrollmentToken.from_json(json) +# print the JSON string representation of the object +print(EnrollmentToken.to_json()) + +# convert the object into a dict +enrollment_token_dict = enrollment_token_instance.to_dict() +# create an instance of EnrollmentToken from a dict +enrollment_token_from_dict = EnrollmentToken.from_dict(enrollment_token_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EnrollmentTokenRequest.md b/docs/EnrollmentTokenRequest.md new file mode 100644 index 000000000..74ea1409b --- /dev/null +++ b/docs/EnrollmentTokenRequest.md @@ -0,0 +1,33 @@ +# EnrollmentTokenRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_group** | **str** | | [optional] +**connector** | **str** | | +**name** | **str** | | +**expiring** | **bool** | | [optional] +**expires** | **datetime** | | [optional] + +## Example + +```python +from authentik_client.models.enrollment_token_request import EnrollmentTokenRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of EnrollmentTokenRequest from a JSON string +enrollment_token_request_instance = EnrollmentTokenRequest.from_json(json) +# print the JSON string representation of the object +print(EnrollmentTokenRequest.to_json()) + +# convert the object into a dict +enrollment_token_request_dict = enrollment_token_request_instance.to_dict() +# create an instance of EnrollmentTokenRequest from a dict +enrollment_token_request_from_dict = EnrollmentTokenRequest.from_dict(enrollment_token_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EventActions.md b/docs/EventActions.md index 91050d7bb..824fbebe3 100644 --- a/docs/EventActions.md +++ b/docs/EventActions.md @@ -55,6 +55,8 @@ * `UPDATE_AVAILABLE` (value: `'update_available'`) +* `EXPORT_READY` (value: `'export_ready'`) + * `CUSTOM` (value: `'custom_'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EventsApi.md b/docs/EventsApi.md index c51afd83f..52607abdf 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**events_events_actions_list**](EventsApi.md#events_events_actions_list) | **GET** /events/events/actions/ | [**events_events_create**](EventsApi.md#events_events_create) | **POST** /events/events/ | [**events_events_destroy**](EventsApi.md#events_events_destroy) | **DELETE** /events/events/{event_uuid}/ | +[**events_events_export_create**](EventsApi.md#events_events_export_create) | **POST** /events/events/export/ | [**events_events_list**](EventsApi.md#events_events_list) | **GET** /events/events/ | [**events_events_partial_update**](EventsApi.md#events_events_partial_update) | **PATCH** /events/events/{event_uuid}/ | [**events_events_retrieve**](EventsApi.md#events_events_retrieve) | **GET** /events/events/{event_uuid}/ | @@ -262,6 +263,107 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **events_events_export_create** +> DataExport events_events_export_create(action=action, actions=actions, brand_name=brand_name, client_ip=client_ip, context_authorized_app=context_authorized_app, context_model_app=context_model_app, context_model_name=context_model_name, context_model_pk=context_model_pk, ordering=ordering, search=search, username=username) + +Create a data export for this data type. Note that the export is generated asynchronously: +this method returns a `DataExport` object that will initially have `completed=false` as well +as the permanent URL to that object in the `Location` header. +You can poll that URL until `completed=true`, at which point the `file_url` property will +contain a URL to download + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.data_export import DataExport +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.EventsApi(api_client) + action = 'action_example' # str | (optional) + actions = ['actions_example'] # List[str] | (optional) + brand_name = 'brand_name_example' # str | Brand name (optional) + client_ip = 'client_ip_example' # str | (optional) + context_authorized_app = 'context_authorized_app_example' # str | Context Authorized application (optional) + context_model_app = 'context_model_app_example' # str | Context Model App (optional) + context_model_name = 'context_model_name_example' # str | Context Model Name (optional) + context_model_pk = 'context_model_pk_example' # str | Context Model Primary Key (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + search = 'search_example' # str | A search term. (optional) + username = 'username_example' # str | Username (optional) + + try: + api_response = api_instance.events_events_export_create(action=action, actions=actions, brand_name=brand_name, client_ip=client_ip, context_authorized_app=context_authorized_app, context_model_app=context_model_app, context_model_name=context_model_name, context_model_pk=context_model_pk, ordering=ordering, search=search, username=username) + print("The response of EventsApi->events_events_export_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling EventsApi->events_events_export_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **action** | **str**| | [optional] + **actions** | [**List[str]**](str.md)| | [optional] + **brand_name** | **str**| Brand name | [optional] + **client_ip** | **str**| | [optional] + **context_authorized_app** | **str**| Context Authorized application | [optional] + **context_model_app** | **str**| Context Model App | [optional] + **context_model_name** | **str**| Context Model Name | [optional] + **context_model_pk** | **str**| Context Model Primary Key | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **search** | **str**| A search term. | [optional] + **username** | **str**| Username | [optional] + +### Return type + +[**DataExport**](DataExport.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **events_events_list** > PaginatedEventList events_events_list(action=action, actions=actions, brand_name=brand_name, client_ip=client_ip, context_authorized_app=context_authorized_app, context_model_app=context_model_app, context_model_name=context_model_name, context_model_pk=context_model_pk, ordering=ordering, page=page, page_size=page_size, search=search, username=username) diff --git a/docs/ExpiringBaseGrantModel.md b/docs/ExpiringBaseGrantModel.md index 726658889..abbaee1fc 100644 --- a/docs/ExpiringBaseGrantModel.md +++ b/docs/ExpiringBaseGrantModel.md @@ -7,7 +7,7 @@ Serializer for BaseGrantModel and ExpiringBaseGrant Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pk** | **int** | | [readonly] -**provider** | [**OAuth2Provider**](OAuth2Provider.md) | | +**provider** | [**Provider**](Provider.md) | | **user** | [**User**](User.md) | | **is_expired** | **bool** | Check if token is expired yet. | [readonly] **expires** | **datetime** | | [optional] diff --git a/docs/ExtraRoleObjectPermission.md b/docs/ExtraRoleObjectPermission.md index 2474e9dc4..9cfe73221 100644 --- a/docs/ExtraRoleObjectPermission.md +++ b/docs/ExtraRoleObjectPermission.md @@ -1,6 +1,6 @@ # ExtraRoleObjectPermission -User permission with additional object-related data +Role permission with additional object-related data ## Properties @@ -14,7 +14,7 @@ Name | Type | Description | Notes **name** | **str** | | [readonly] **app_label_verbose** | **str** | Get app label from permission's model | [readonly] **model_verbose** | **str** | Get model label from permission's model | [readonly] -**object_description** | **str** | Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the user/role has the view_ permission on the object | [readonly] +**object_description** | **str** | Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the role has the view_ permission on the object | [readonly] ## Example diff --git a/docs/ExtraRoleObjectPermissionRequest.md b/docs/ExtraRoleObjectPermissionRequest.md deleted file mode 100644 index 69a185fce..000000000 --- a/docs/ExtraRoleObjectPermissionRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# ExtraRoleObjectPermissionRequest - -User permission with additional object-related data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object_pk** | **str** | | - -## Example - -```python -from authentik_client.models.extra_role_object_permission_request import ExtraRoleObjectPermissionRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtraRoleObjectPermissionRequest from a JSON string -extra_role_object_permission_request_instance = ExtraRoleObjectPermissionRequest.from_json(json) -# print the JSON string representation of the object -print(ExtraRoleObjectPermissionRequest.to_json()) - -# convert the object into a dict -extra_role_object_permission_request_dict = extra_role_object_permission_request_instance.to_dict() -# create an instance of ExtraRoleObjectPermissionRequest from a dict -extra_role_object_permission_request_from_dict = ExtraRoleObjectPermissionRequest.from_dict(extra_role_object_permission_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ExtraUserObjectPermission.md b/docs/ExtraUserObjectPermission.md deleted file mode 100644 index 6217be304..000000000 --- a/docs/ExtraUserObjectPermission.md +++ /dev/null @@ -1,38 +0,0 @@ -# ExtraUserObjectPermission - -User permission with additional object-related data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | | [readonly] -**codename** | **str** | | [readonly] -**model** | **str** | | [readonly] -**app_label** | **str** | | [readonly] -**object_pk** | **str** | | -**name** | **str** | | [readonly] -**app_label_verbose** | **str** | Get app label from permission's model | [readonly] -**model_verbose** | **str** | Get model label from permission's model | [readonly] -**object_description** | **str** | Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the user/role has the view_ permission on the object | [readonly] - -## Example - -```python -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtraUserObjectPermission from a JSON string -extra_user_object_permission_instance = ExtraUserObjectPermission.from_json(json) -# print the JSON string representation of the object -print(ExtraUserObjectPermission.to_json()) - -# convert the object into a dict -extra_user_object_permission_dict = extra_user_object_permission_instance.to_dict() -# create an instance of ExtraUserObjectPermission from a dict -extra_user_object_permission_from_dict = ExtraUserObjectPermission.from_dict(extra_user_object_permission_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ExtraUserObjectPermissionRequest.md b/docs/ExtraUserObjectPermissionRequest.md deleted file mode 100644 index 569d68d0e..000000000 --- a/docs/ExtraUserObjectPermissionRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# ExtraUserObjectPermissionRequest - -User permission with additional object-related data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object_pk** | **str** | | - -## Example - -```python -from authentik_client.models.extra_user_object_permission_request import ExtraUserObjectPermissionRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of ExtraUserObjectPermissionRequest from a JSON string -extra_user_object_permission_request_instance = ExtraUserObjectPermissionRequest.from_json(json) -# print the JSON string representation of the object -print(ExtraUserObjectPermissionRequest.to_json()) - -# convert the object into a dict -extra_user_object_permission_request_dict = extra_user_object_permission_request_instance.to_dict() -# create an instance of ExtraUserObjectPermissionRequest from a dict -extra_user_object_permission_request_from_dict = ExtraUserObjectPermissionRequest.from_dict(extra_user_object_permission_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/FileList.md b/docs/FileList.md new file mode 100644 index 000000000..67c3f41e1 --- /dev/null +++ b/docs/FileList.md @@ -0,0 +1,33 @@ +# FileList + +Base serializer class which doesn't implement create/update methods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**mime_type** | **str** | | +**url** | **str** | | +**themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [optional] + +## Example + +```python +from authentik_client.models.file_list import FileList + +# TODO update the JSON string below +json = "{}" +# create an instance of FileList from a JSON string +file_list_instance = FileList.from_json(json) +# print the JSON string representation of the object +print(FileList.to_json()) + +# convert the object into a dict +file_list_dict = file_list_instance.to_dict() +# create an instance of FileList from a dict +file_list_from_dict = FileList.from_dict(file_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilePathRequest.md b/docs/FilePathRequest.md deleted file mode 100644 index 9788221b6..000000000 --- a/docs/FilePathRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# FilePathRequest - -Serializer to upload file - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **str** | | - -## Example - -```python -from authentik_client.models.file_path_request import FilePathRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of FilePathRequest from a JSON string -file_path_request_instance = FilePathRequest.from_json(json) -# print the JSON string representation of the object -print(FilePathRequest.to_json()) - -# convert the object into a dict -file_path_request_dict = file_path_request_instance.to_dict() -# create an instance of FilePathRequest from a dict -file_path_request_from_dict = FilePathRequest.from_dict(file_path_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/Flow.md b/docs/Flow.md index af1753706..6a08b7ece 100644 --- a/docs/Flow.md +++ b/docs/Flow.md @@ -12,7 +12,9 @@ Name | Type | Description | Notes **slug** | **str** | Visible in the URL. | **title** | **str** | Shown as the Title in Flow pages. | **designation** | [**FlowDesignationEnum**](FlowDesignationEnum.md) | Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. | -**background** | **str** | Get the URL to the background image. If the name is /static or starts with http it is returned as-is | [readonly] +**background** | **str** | Background shown during execution | [optional] +**background_url** | **str** | Get the URL to the background image | [readonly] +**background_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **stages** | **List[str]** | | [readonly] **policies** | **List[str]** | | [readonly] **cache_count** | **int** | Get count of cached flows | [readonly] diff --git a/docs/FlowChallengeResponseRequest.md b/docs/FlowChallengeResponseRequest.md index 8d737ad5b..0c87e84f5 100644 --- a/docs/FlowChallengeResponseRequest.md +++ b/docs/FlowChallengeResponseRequest.md @@ -13,11 +13,12 @@ Name | Type | Description | Notes **selected_stage** | **str** | | [optional] **webauthn** | **Dict[str, object]** | | [optional] **duo** | **int** | | [optional] -**response** | **Dict[str, object]** | | +**response** | **str** | | **token** | **str** | | -**uid_field** | **str** | | +**uid_field** | **str** | | [optional] **password** | **str** | | **captcha_token** | **str** | | [optional] +**passkey** | **Dict[str, object]** | | [optional] **to** | **str** | | **id** | **int** | | **first_name** | **str** | | [optional] diff --git a/docs/FlowRequest.md b/docs/FlowRequest.md index 55d71c375..5f3e49194 100644 --- a/docs/FlowRequest.md +++ b/docs/FlowRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **slug** | **str** | Visible in the URL. | **title** | **str** | Shown as the Title in Flow pages. | **designation** | [**FlowDesignationEnum**](FlowDesignationEnum.md) | Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. | +**background** | **str** | Background shown during execution | [optional] **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **compatibility_mode** | **bool** | Enable compatibility mode, increases compatibility with password managers on mobile devices. | [optional] **layout** | [**FlowLayoutEnum**](FlowLayoutEnum.md) | | [optional] diff --git a/docs/FlowSet.md b/docs/FlowSet.md index 687871c37..18ceb5b46 100644 --- a/docs/FlowSet.md +++ b/docs/FlowSet.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **slug** | **str** | Visible in the URL. | **title** | **str** | Shown as the Title in Flow pages. | **designation** | [**FlowDesignationEnum**](FlowDesignationEnum.md) | Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. | -**background** | **str** | Get the URL to the background image. If the name is /static or starts with http it is returned as-is | [readonly] +**background_url** | **str** | Get the URL to the background image | [readonly] **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **compatibility_mode** | **bool** | Enable compatibility mode, increases compatibility with password managers on mobile devices. | [optional] **export_url** | **str** | Get export URL for flow | [readonly] diff --git a/docs/FlowSetRequest.md b/docs/FlowSetRequest.md deleted file mode 100644 index bc3ce4ced..000000000 --- a/docs/FlowSetRequest.md +++ /dev/null @@ -1,37 +0,0 @@ -# FlowSetRequest - -Stripped down flow serializer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **str** | | -**slug** | **str** | Visible in the URL. | -**title** | **str** | Shown as the Title in Flow pages. | -**designation** | [**FlowDesignationEnum**](FlowDesignationEnum.md) | Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. | -**policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] -**compatibility_mode** | **bool** | Enable compatibility mode, increases compatibility with password managers on mobile devices. | [optional] -**layout** | [**FlowLayoutEnum**](FlowLayoutEnum.md) | | [optional] -**denied_action** | [**DeniedActionEnum**](DeniedActionEnum.md) | Configure what should happen when a flow denies access to a user. | [optional] - -## Example - -```python -from authentik_client.models.flow_set_request import FlowSetRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of FlowSetRequest from a JSON string -flow_set_request_instance = FlowSetRequest.from_json(json) -# print the JSON string representation of the object -print(FlowSetRequest.to_json()) - -# convert the object into a dict -flow_set_request_dict = flow_set_request_instance.to_dict() -# create an instance of FlowSetRequest from a dict -flow_set_request_from_dict = FlowSetRequest.from_dict(flow_set_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/FlowsApi.md b/docs/FlowsApi.md index 10fdd3465..f5307babb 100644 --- a/docs/FlowsApi.md +++ b/docs/FlowsApi.md @@ -25,8 +25,6 @@ Method | HTTP request | Description [**flows_instances_list**](FlowsApi.md#flows_instances_list) | **GET** /flows/instances/ | [**flows_instances_partial_update**](FlowsApi.md#flows_instances_partial_update) | **PATCH** /flows/instances/{slug}/ | [**flows_instances_retrieve**](FlowsApi.md#flows_instances_retrieve) | **GET** /flows/instances/{slug}/ | -[**flows_instances_set_background_create**](FlowsApi.md#flows_instances_set_background_create) | **POST** /flows/instances/{slug}/set_background/ | -[**flows_instances_set_background_url_create**](FlowsApi.md#flows_instances_set_background_url_create) | **POST** /flows/instances/{slug}/set_background_url/ | [**flows_instances_update**](FlowsApi.md#flows_instances_update) | **PUT** /flows/instances/{slug}/ | [**flows_instances_used_by_list**](FlowsApi.md#flows_instances_used_by_list) | **GET** /flows/instances/{slug}/used_by/ | @@ -1692,161 +1690,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **flows_instances_set_background_create** -> flows_instances_set_background_create(slug, file=file, clear=clear) - -Set Flow background - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.FlowsApi(api_client) - slug = 'slug_example' # str | - file = None # bytearray | (optional) - clear = False # bool | (optional) (default to False) - - try: - api_instance.flows_instances_set_background_create(slug, file=file, clear=clear) - except Exception as e: - print("Exception when calling FlowsApi->flows_instances_set_background_create: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **slug** | **str**| | - **file** | **bytearray**| | [optional] - **clear** | **bool**| | [optional] [default to False] - -### Return type - -void (empty response body) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad request | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **flows_instances_set_background_url_create** -> flows_instances_set_background_url_create(slug, file_path_request) - -Set Flow background (as URL) - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.file_path_request import FilePathRequest -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.FlowsApi(api_client) - slug = 'slug_example' # str | - file_path_request = authentik_client.FilePathRequest() # FilePathRequest | - - try: - api_instance.flows_instances_set_background_url_create(slug, file_path_request) - except Exception as e: - print("Exception when calling FlowsApi->flows_instances_set_background_url_create: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **slug** | **str**| | - **file_path_request** | [**FilePathRequest**](FilePathRequest.md)| | - -### Return type - -void (empty response body) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad request | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **flows_instances_update** > Flow flows_instances_update(slug, flow_request) diff --git a/docs/GoogleEndpointDevice.md b/docs/GoogleEndpointDevice.md new file mode 100644 index 000000000..282753a35 --- /dev/null +++ b/docs/GoogleEndpointDevice.md @@ -0,0 +1,31 @@ +# GoogleEndpointDevice + +Serializer for Endpoint authenticator devices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pk** | **str** | | [optional] +**name** | **str** | The human-readable name of this device. | + +## Example + +```python +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice + +# TODO update the JSON string below +json = "{}" +# create an instance of GoogleEndpointDevice from a JSON string +google_endpoint_device_instance = GoogleEndpointDevice.from_json(json) +# print the JSON string representation of the object +print(GoogleEndpointDevice.to_json()) + +# convert the object into a dict +google_endpoint_device_dict = google_endpoint_device_instance.to_dict() +# create an instance of GoogleEndpointDevice from a dict +google_endpoint_device_from_dict = GoogleEndpointDevice.from_dict(google_endpoint_device_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GoogleEndpointDeviceRequest.md b/docs/GoogleEndpointDeviceRequest.md new file mode 100644 index 000000000..298ceddec --- /dev/null +++ b/docs/GoogleEndpointDeviceRequest.md @@ -0,0 +1,31 @@ +# GoogleEndpointDeviceRequest + +Serializer for Endpoint authenticator devices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pk** | **str** | | [optional] +**name** | **str** | The human-readable name of this device. | + +## Example + +```python +from authentik_client.models.google_endpoint_device_request import GoogleEndpointDeviceRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of GoogleEndpointDeviceRequest from a JSON string +google_endpoint_device_request_instance = GoogleEndpointDeviceRequest.from_json(json) +# print the JSON string representation of the object +print(GoogleEndpointDeviceRequest.to_json()) + +# convert the object into a dict +google_endpoint_device_request_dict = google_endpoint_device_request_instance.to_dict() +# create an instance of GoogleEndpointDeviceRequest from a dict +google_endpoint_device_request_from_dict = GoogleEndpointDeviceRequest.from_dict(google_endpoint_device_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GoogleWorkspaceProvider.md b/docs/GoogleWorkspaceProvider.md index b7e8a56d7..ddefab454 100644 --- a/docs/GoogleWorkspaceProvider.md +++ b/docs/GoogleWorkspaceProvider.md @@ -24,6 +24,8 @@ Name | Type | Description | Notes **user_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **group_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **default_group_email_domain** | **str** | | +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/GoogleWorkspaceProviderRequest.md b/docs/GoogleWorkspaceProviderRequest.md index a74a2061f..0c2e3aa56 100644 --- a/docs/GoogleWorkspaceProviderRequest.md +++ b/docs/GoogleWorkspaceProviderRequest.md @@ -17,6 +17,8 @@ Name | Type | Description | Notes **user_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **group_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **default_group_email_domain** | **str** | | +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/Group.md b/docs/Group.md index 9c7b3f625..c22ac75a1 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -10,15 +10,16 @@ Name | Type | Description | Notes **num_pk** | **int** | | [readonly] **name** | **str** | | **is_superuser** | **bool** | Users added to this group will be superusers. | [optional] -**parent** | **str** | | [optional] -**parent_name** | **str** | | [readonly] +**parents** | **List[str]** | | [optional] +**parents_obj** | [**List[RelatedGroup]**](RelatedGroup.md) | | [readonly] **users** | **List[int]** | | [optional] **users_obj** | [**List[PartialUser]**](PartialUser.md) | | [readonly] **attributes** | **Dict[str, object]** | | [optional] **roles** | **List[str]** | | [optional] **roles_obj** | [**List[Role]**](Role.md) | | [readonly] -**children** | **List[str]** | | [optional] -**children_obj** | [**List[GroupChild]**](GroupChild.md) | | [readonly] +**inherited_roles_obj** | [**List[Role]**](Role.md) | | [readonly] +**children** | **List[str]** | | [readonly] +**children_obj** | [**List[RelatedGroup]**](RelatedGroup.md) | | [readonly] ## Example diff --git a/docs/GroupRequest.md b/docs/GroupRequest.md index cff5795b2..3ff9a278a 100644 --- a/docs/GroupRequest.md +++ b/docs/GroupRequest.md @@ -8,11 +8,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | **is_superuser** | **bool** | Users added to this group will be superusers. | [optional] -**parent** | **str** | | [optional] +**parents** | **List[str]** | | [optional] **users** | **List[int]** | | [optional] **attributes** | **Dict[str, object]** | | [optional] **roles** | **List[str]** | | [optional] -**children** | **List[str]** | | [optional] ## Example diff --git a/docs/Hardware.md b/docs/Hardware.md new file mode 100644 index 000000000..49e0c5ea2 --- /dev/null +++ b/docs/Hardware.md @@ -0,0 +1,34 @@ +# Hardware + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**model** | **str** | | [optional] +**manufacturer** | **str** | | [optional] +**serial** | **str** | | +**cpu_name** | **str** | | [optional] +**cpu_count** | **int** | | [optional] +**memory_bytes** | **int** | | [optional] + +## Example + +```python +from authentik_client.models.hardware import Hardware + +# TODO update the JSON string below +json = "{}" +# create an instance of Hardware from a JSON string +hardware_instance = Hardware.from_json(json) +# print the JSON string representation of the object +print(Hardware.to_json()) + +# convert the object into a dict +hardware_dict = hardware_instance.to_dict() +# create an instance of Hardware from a dict +hardware_from_dict = Hardware.from_dict(hardware_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/HardwareRequest.md b/docs/HardwareRequest.md new file mode 100644 index 000000000..714d6cffe --- /dev/null +++ b/docs/HardwareRequest.md @@ -0,0 +1,34 @@ +# HardwareRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**model** | **str** | | [optional] +**manufacturer** | **str** | | [optional] +**serial** | **str** | | +**cpu_name** | **str** | | [optional] +**cpu_count** | **int** | | [optional] +**memory_bytes** | **int** | | [optional] + +## Example + +```python +from authentik_client.models.hardware_request import HardwareRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of HardwareRequest from a JSON string +hardware_request_instance = HardwareRequest.from_json(json) +# print the JSON string representation of the object +print(HardwareRequest.to_json()) + +# convert the object into a dict +hardware_request_dict = hardware_request_instance.to_dict() +# create an instance of HardwareRequest from a dict +hardware_request_from_dict = HardwareRequest.from_dict(hardware_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IdentificationChallenge.md b/docs/IdentificationChallenge.md index dad718150..010bab8e1 100644 --- a/docs/IdentificationChallenge.md +++ b/docs/IdentificationChallenge.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **password_fields** | **bool** | | **allow_show_password** | **bool** | | [optional] [default to False] **application_pre** | **str** | | [optional] +**application_pre_launch** | **str** | | [optional] **flow_designation** | [**FlowDesignationEnum**](FlowDesignationEnum.md) | | **captcha_stage** | [**CaptchaChallenge**](CaptchaChallenge.md) | | [optional] **enroll_url** | **str** | | [optional] @@ -22,6 +23,7 @@ Name | Type | Description | Notes **sources** | [**List[LoginSource]**](LoginSource.md) | | [optional] **show_source_labels** | **bool** | | **enable_remember_me** | **bool** | | [optional] [default to True] +**passkey_challenge** | **Dict[str, object]** | | [optional] ## Example diff --git a/docs/IdentificationChallengeResponseRequest.md b/docs/IdentificationChallengeResponseRequest.md index 3240668a6..707da1ff9 100644 --- a/docs/IdentificationChallengeResponseRequest.md +++ b/docs/IdentificationChallengeResponseRequest.md @@ -7,9 +7,10 @@ Identification challenge Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **component** | **str** | | [optional] [default to 'ak-stage-identification'] -**uid_field** | **str** | | +**uid_field** | **str** | | [optional] **password** | **str** | | [optional] **captcha_token** | **str** | | [optional] +**passkey** | **Dict[str, object]** | | [optional] ## Example diff --git a/docs/IdentificationStage.md b/docs/IdentificationStage.md index 4f4629bd5..506560028 100644 --- a/docs/IdentificationStage.md +++ b/docs/IdentificationStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **user_fields** | [**List[UserFieldsEnum]**](UserFieldsEnum.md) | Fields of the user object to match against. (Hold shift to select multiple options) | [optional] **password_stage** | **str** | When set, shows a password field, instead of showing the password field as separate step. | [optional] **captcha_stage** | **str** | When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage. | [optional] @@ -25,6 +25,7 @@ Name | Type | Description | Notes **show_source_labels** | **bool** | | [optional] **pretend_user_exists** | **bool** | When enabled, the stage will succeed and continue even when incorrect user info is entered. | [optional] **enable_remember_me** | **bool** | Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password. | [optional] +**webauthn_stage** | **str** | When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor. | [optional] ## Example diff --git a/docs/IdentificationStageRequest.md b/docs/IdentificationStageRequest.md index da14bb8fc..8714cfc20 100644 --- a/docs/IdentificationStageRequest.md +++ b/docs/IdentificationStageRequest.md @@ -7,7 +7,6 @@ IdentificationStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **user_fields** | [**List[UserFieldsEnum]**](UserFieldsEnum.md) | Fields of the user object to match against. (Hold shift to select multiple options) | [optional] **password_stage** | **str** | When set, shows a password field, instead of showing the password field as separate step. | [optional] **captcha_stage** | **str** | When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage. | [optional] @@ -20,6 +19,7 @@ Name | Type | Description | Notes **show_source_labels** | **bool** | | [optional] **pretend_user_exists** | **bool** | When enabled, the stage will succeed and continue even when incorrect user info is entered. | [optional] **enable_remember_me** | **bool** | Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password. | [optional] +**webauthn_stage** | **str** | When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor. | [optional] ## Example diff --git a/docs/InitialPermissions.md b/docs/InitialPermissions.md index d452a7113..d7786c420 100644 --- a/docs/InitialPermissions.md +++ b/docs/InitialPermissions.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pk** | **int** | | [readonly] **name** | **str** | | -**mode** | [**InitialPermissionsModeEnum**](InitialPermissionsModeEnum.md) | | **role** | **str** | | **permissions** | **List[int]** | | [optional] **permissions_obj** | [**List[Permission]**](Permission.md) | | [readonly] diff --git a/docs/InitialPermissionsRequest.md b/docs/InitialPermissionsRequest.md index b32d3c12c..211a9da1f 100644 --- a/docs/InitialPermissionsRequest.md +++ b/docs/InitialPermissionsRequest.md @@ -7,7 +7,6 @@ InitialPermissions serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**mode** | [**InitialPermissionsModeEnum**](InitialPermissionsModeEnum.md) | | **role** | **str** | | **permissions** | **List[int]** | | [optional] diff --git a/docs/InvitationStage.md b/docs/InvitationStage.md index 51463410d..49f9c39b6 100644 --- a/docs/InvitationStage.md +++ b/docs/InvitationStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **continue_flow_without_invitation** | **bool** | If this flag is set, this Stage will jump to the next Stage when no Invitation is given. By default this Stage will cancel the Flow when no invitation is given. | [optional] ## Example diff --git a/docs/InvitationStageRequest.md b/docs/InvitationStageRequest.md index 1f69261f2..f7421cd76 100644 --- a/docs/InvitationStageRequest.md +++ b/docs/InvitationStageRequest.md @@ -7,7 +7,6 @@ InvitationStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **continue_flow_without_invitation** | **bool** | If this flag is set, this Stage will jump to the next Stage when no Invitation is given. By default this Stage will cancel the Flow when no invitation is given. | [optional] ## Example diff --git a/docs/KadminTypeEnum.md b/docs/KadminTypeEnum.md index 9fe60f837..e92cd2919 100644 --- a/docs/KadminTypeEnum.md +++ b/docs/KadminTypeEnum.md @@ -7,8 +7,6 @@ * `HEIMDAL` (value: `'Heimdal'`) -* `OTHER` (value: `'other'`) - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/KerberosSource.md b/docs/KerberosSource.md index a0055e3e4..e978877e5 100644 --- a/docs/KerberosSource.md +++ b/docs/KerberosSource.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -22,7 +23,9 @@ Name | Type | Description | Notes **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **managed** | **str** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly] **user_path_template** | **str** | | [optional] -**icon** | **str** | | [readonly] +**icon** | **str** | | [optional] +**icon_url** | **str** | | [readonly] +**icon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **realm** | **str** | Kerberos realm | **krb5_conf** | **str** | Custom krb5.conf to use. Uses the system one by default | [optional] @@ -35,6 +38,7 @@ Name | Type | Description | Notes **spnego_server_name** | **str** | Force the use of a specific server name for SPNEGO. Must be in the form HTTP@hostname | [optional] **spnego_ccache** | **str** | Credential cache to use for SPNEGO in form type:residual | [optional] **password_login_update_internal_password** | **bool** | If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend | [optional] +**sync_outgoing_trigger_mode** | [**SyncOutgoingTriggerModeEnum**](SyncOutgoingTriggerModeEnum.md) | When to trigger sync for outgoing providers | [optional] ## Example diff --git a/docs/KerberosSourceRequest.md b/docs/KerberosSourceRequest.md index 9bcdaac5f..d610d7c99 100644 --- a/docs/KerberosSourceRequest.md +++ b/docs/KerberosSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **realm** | **str** | Kerberos realm | **krb5_conf** | **str** | Custom krb5.conf to use. Uses the system one by default | [optional] @@ -30,6 +32,7 @@ Name | Type | Description | Notes **spnego_keytab** | **str** | SPNEGO keytab base64-encoded or path to keytab in the form FILE:path | [optional] **spnego_ccache** | **str** | Credential cache to use for SPNEGO in form type:residual | [optional] **password_login_update_internal_password** | **bool** | If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend | [optional] +**sync_outgoing_trigger_mode** | [**SyncOutgoingTriggerModeEnum**](SyncOutgoingTriggerModeEnum.md) | When to trigger sync for outgoing providers | [optional] ## Example diff --git a/docs/KeyTypeEnum.md b/docs/KeyTypeEnum.md new file mode 100644 index 000000000..f9a55df87 --- /dev/null +++ b/docs/KeyTypeEnum.md @@ -0,0 +1,18 @@ +# KeyTypeEnum + + +## Enum + +* `RSA` (value: `'rsa'`) + +* `EC` (value: `'ec'`) + +* `DSA` (value: `'dsa'`) + +* `ED25519` (value: `'ed25519'`) + +* `ED448` (value: `'ed448'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LDAPSource.md b/docs/LDAPSource.md index 2182fe9dd..8425d75ae 100644 --- a/docs/LDAPSource.md +++ b/docs/LDAPSource.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -22,7 +23,9 @@ Name | Type | Description | Notes **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **managed** | **str** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly] **user_path_template** | **str** | | [optional] -**icon** | **str** | | [readonly] +**icon** | **str** | | [optional] +**icon_url** | **str** | | [readonly] +**icon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **server_uri** | **str** | | **peer_certificate** | **str** | Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair. | [optional] **client_certificate** | **str** | Client certificate to authenticate against the LDAP Server's Certificate. | [optional] @@ -45,6 +48,7 @@ Name | Type | Description | Notes **connectivity** | **Dict[str, Dict[str, str]]** | Get cached source connectivity | [readonly] **lookup_groups_from_user** | **bool** | Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory | [optional] **delete_not_found_objects** | **bool** | Delete authentik users and groups which were previously supplied by this source, but are now missing from it. | [optional] +**sync_outgoing_trigger_mode** | [**SyncOutgoingTriggerModeEnum**](SyncOutgoingTriggerModeEnum.md) | When to trigger sync for outgoing providers | [optional] ## Example diff --git a/docs/LDAPSourceRequest.md b/docs/LDAPSourceRequest.md index ad2bd065e..d4048885a 100644 --- a/docs/LDAPSourceRequest.md +++ b/docs/LDAPSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **server_uri** | **str** | | **peer_certificate** | **str** | Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair. | [optional] **client_certificate** | **str** | Client certificate to authenticate against the LDAP Server's Certificate. | [optional] @@ -38,6 +40,7 @@ Name | Type | Description | Notes **sync_parent_group** | **str** | | [optional] **lookup_groups_from_user** | **bool** | Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory | [optional] **delete_not_found_objects** | **bool** | Delete authentik users and groups which were previously supplied by this source, but are now missing from it. | [optional] +**sync_outgoing_trigger_mode** | [**SyncOutgoingTriggerModeEnum**](SyncOutgoingTriggerModeEnum.md) | When to trigger sync for outgoing providers | [optional] ## Example diff --git a/docs/LicenseStatusEnum.md b/docs/LicenseStatusEnum.md new file mode 100644 index 000000000..9c3972492 --- /dev/null +++ b/docs/LicenseStatusEnum.md @@ -0,0 +1,22 @@ +# LicenseStatusEnum + + +## Enum + +* `UNLICENSED` (value: `'unlicensed'`) + +* `VALID` (value: `'valid'`) + +* `EXPIRED` (value: `'expired'`) + +* `EXPIRY_SOON` (value: `'expiry_soon'`) + +* `LIMIT_EXCEEDED_ADMIN` (value: `'limit_exceeded_admin'`) + +* `LIMIT_EXCEEDED_USER` (value: `'limit_exceeded_user'`) + +* `READ_ONLY` (value: `'read_only'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LoginSource.md b/docs/LoginSource.md index fee38d52f..02baf98c0 100644 --- a/docs/LoginSource.md +++ b/docs/LoginSource.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | **icon_url** | **str** | | [optional] +**promoted** | **bool** | | [optional] [default to False] **challenge** | [**LoginChallengeTypes**](LoginChallengeTypes.md) | | ## Example diff --git a/docs/MDMConfigRequest.md b/docs/MDMConfigRequest.md new file mode 100644 index 000000000..0ed772697 --- /dev/null +++ b/docs/MDMConfigRequest.md @@ -0,0 +1,31 @@ +# MDMConfigRequest + +Base serializer class which doesn't implement create/update methods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**platform** | [**DeviceFactsOSFamily**](DeviceFactsOSFamily.md) | | +**enrollment_token** | **str** | | + +## Example + +```python +from authentik_client.models.mdm_config_request import MDMConfigRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of MDMConfigRequest from a JSON string +mdm_config_request_instance = MDMConfigRequest.from_json(json) +# print the JSON string representation of the object +print(MDMConfigRequest.to_json()) + +# convert the object into a dict +mdm_config_request_dict = mdm_config_request_instance.to_dict() +# create an instance of MDMConfigRequest from a dict +mdm_config_request_from_dict = MDMConfigRequest.from_dict(mdm_config_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MDMConfigResponse.md b/docs/MDMConfigResponse.md new file mode 100644 index 000000000..8859f2743 --- /dev/null +++ b/docs/MDMConfigResponse.md @@ -0,0 +1,32 @@ +# MDMConfigResponse + +Base serializer class which doesn't implement create/update methods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | **str** | | +**mime_type** | **str** | | +**filename** | **str** | | + +## Example + +```python +from authentik_client.models.mdm_config_response import MDMConfigResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of MDMConfigResponse from a JSON string +mdm_config_response_instance = MDMConfigResponse.from_json(json) +# print the JSON string representation of the object +print(MDMConfigResponse.to_json()) + +# convert the object into a dict +mdm_config_response_dict = mdm_config_response_instance.to_dict() +# create an instance of MDMConfigResponse from a dict +mdm_config_response_from_dict = MDMConfigResponse.from_dict(mdm_config_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MicrosoftEntraProvider.md b/docs/MicrosoftEntraProvider.md index 429e79f7a..abb40de03 100644 --- a/docs/MicrosoftEntraProvider.md +++ b/docs/MicrosoftEntraProvider.md @@ -23,6 +23,8 @@ Name | Type | Description | Notes **filter_group** | **str** | | [optional] **user_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **group_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/MicrosoftEntraProviderRequest.md b/docs/MicrosoftEntraProviderRequest.md index 4a2a89c6b..cd46e09ad 100644 --- a/docs/MicrosoftEntraProviderRequest.md +++ b/docs/MicrosoftEntraProviderRequest.md @@ -16,6 +16,8 @@ Name | Type | Description | Notes **filter_group** | **str** | | [optional] **user_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **group_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/ModelEnum.md b/docs/ModelEnum.md index f1cec0c3b..8c32146c8 100644 --- a/docs/ModelEnum.md +++ b/docs/ModelEnum.md @@ -17,6 +17,18 @@ * `AUTHENTIK_CRYPTO_DOT_CERTIFICATEKEYPAIR` (value: `'authentik_crypto.certificatekeypair'`) +* `AUTHENTIK_ENDPOINTS_DOT_DEVICEUSERBINDING` (value: `'authentik_endpoints.deviceuserbinding'`) + +* `AUTHENTIK_ENDPOINTS_DOT_DEVICEACCESSGROUP` (value: `'authentik_endpoints.deviceaccessgroup'`) + +* `AUTHENTIK_ENDPOINTS_DOT_ENDPOINTSTAGE` (value: `'authentik_endpoints.endpointstage'`) + +* `AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT_DOT_AGENTCONNECTOR` (value: `'authentik_endpoints_connectors_agent.agentconnector'`) + +* `AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT_DOT_AGENTDEVICEUSERBINDING` (value: `'authentik_endpoints_connectors_agent.agentdeviceuserbinding'`) + +* `AUTHENTIK_ENDPOINTS_CONNECTORS_AGENT_DOT_ENROLLMENTTOKEN` (value: `'authentik_endpoints_connectors_agent.enrollmenttoken'`) + * `AUTHENTIK_ENTERPRISE_DOT_LICENSE` (value: `'authentik_enterprise.license'`) * `AUTHENTIK_EVENTS_DOT_EVENT` (value: `'authentik_events.event'`) @@ -213,6 +225,8 @@ * `AUTHENTIK_PROVIDERS_SSF_DOT_SSFPROVIDER` (value: `'authentik_providers_ssf.ssfprovider'`) +* `AUTHENTIK_REPORTS_DOT_DATAEXPORT` (value: `'authentik_reports.dataexport'`) + * `AUTHENTIK_STAGES_AUTHENTICATOR_ENDPOINT_GDTC_DOT_AUTHENTICATORENDPOINTGDTCSTAGE` (value: `'authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage'`) * `AUTHENTIK_STAGES_MTLS_DOT_MUTUALTLSSTAGE` (value: `'authentik_stages_mtls.mutualtlsstage'`) diff --git a/docs/ModelRequest.md b/docs/ModelRequest.md index e7a095c5f..bb1262b37 100644 --- a/docs/ModelRequest.md +++ b/docs/ModelRequest.md @@ -16,6 +16,8 @@ Name | Type | Description | Notes **user_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **group_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **default_group_email_domain** | **str** | | +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] **authentication_flow** | **str** | Flow used for authentication when the associated application is accessed by an un-authenticated user. | [optional] **authorization_flow** | **str** | Flow used when authorizing this provider. | @@ -89,6 +91,7 @@ Name | Type | Description | Notes **auth_oauth** | **str** | OAuth Source used for authentication | [optional] **auth_oauth_params** | **Dict[str, object]** | Additional OAuth parameters, such as grant_type | [optional] **compatibility_mode** | [**CompatibilityModeEnum**](CompatibilityModeEnum.md) | Alter authentik behavior for vendor-specific SCIM implementations. | [optional] +**service_provider_config_cache_timeout** | **str** | Cache duration for ServiceProviderConfig responses. Set minutes=0 to disable. | [optional] **oidc_auth_providers** | **List[int]** | | [optional] **event_retention** | **str** | | [optional] diff --git a/docs/MutualTLSStage.md b/docs/MutualTLSStage.md index 63940dfe9..a91aa7d3f 100644 --- a/docs/MutualTLSStage.md +++ b/docs/MutualTLSStage.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] -**mode** | [**MutualTLSStageModeEnum**](MutualTLSStageModeEnum.md) | | +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] +**mode** | [**StageModeEnum**](StageModeEnum.md) | | **certificate_authorities** | **List[str]** | Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`. | [optional] **cert_attribute** | [**CertAttributeEnum**](CertAttributeEnum.md) | | **user_attribute** | [**UserAttributeEnum**](UserAttributeEnum.md) | | diff --git a/docs/MutualTLSStageRequest.md b/docs/MutualTLSStageRequest.md index ba913d032..f364c310c 100644 --- a/docs/MutualTLSStageRequest.md +++ b/docs/MutualTLSStageRequest.md @@ -7,8 +7,7 @@ MutualTLSStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] -**mode** | [**MutualTLSStageModeEnum**](MutualTLSStageModeEnum.md) | | +**mode** | [**StageModeEnum**](StageModeEnum.md) | | **certificate_authorities** | **List[str]** | Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`. | [optional] **cert_attribute** | [**CertAttributeEnum**](CertAttributeEnum.md) | | **user_attribute** | [**UserAttributeEnum**](UserAttributeEnum.md) | | diff --git a/docs/Network.md b/docs/Network.md new file mode 100644 index 000000000..01d5fa170 --- /dev/null +++ b/docs/Network.md @@ -0,0 +1,32 @@ +# Network + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | | +**firewall_enabled** | **bool** | | [optional] +**interfaces** | [**List[NetworkInterface]**](NetworkInterface.md) | | +**gateway** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.network import Network + +# TODO update the JSON string below +json = "{}" +# create an instance of Network from a JSON string +network_instance = Network.from_json(json) +# print the JSON string representation of the object +print(Network.to_json()) + +# convert the object into a dict +network_dict = network_instance.to_dict() +# create an instance of Network from a dict +network_from_dict = Network.from_dict(network_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkInterface.md b/docs/NetworkInterface.md new file mode 100644 index 000000000..34a60478c --- /dev/null +++ b/docs/NetworkInterface.md @@ -0,0 +1,32 @@ +# NetworkInterface + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**hardware_address** | **str** | | +**ip_addresses** | **List[str]** | | [optional] +**dns_servers** | **List[str]** | | [optional] + +## Example + +```python +from authentik_client.models.network_interface import NetworkInterface + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkInterface from a JSON string +network_interface_instance = NetworkInterface.from_json(json) +# print the JSON string representation of the object +print(NetworkInterface.to_json()) + +# convert the object into a dict +network_interface_dict = network_interface_instance.to_dict() +# create an instance of NetworkInterface from a dict +network_interface_from_dict = NetworkInterface.from_dict(network_interface_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkInterfaceRequest.md b/docs/NetworkInterfaceRequest.md new file mode 100644 index 000000000..bfcdf66bc --- /dev/null +++ b/docs/NetworkInterfaceRequest.md @@ -0,0 +1,32 @@ +# NetworkInterfaceRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**hardware_address** | **str** | | +**ip_addresses** | **List[str]** | | [optional] +**dns_servers** | **List[str]** | | [optional] + +## Example + +```python +from authentik_client.models.network_interface_request import NetworkInterfaceRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkInterfaceRequest from a JSON string +network_interface_request_instance = NetworkInterfaceRequest.from_json(json) +# print the JSON string representation of the object +print(NetworkInterfaceRequest.to_json()) + +# convert the object into a dict +network_interface_request_dict = network_interface_request_instance.to_dict() +# create an instance of NetworkInterfaceRequest from a dict +network_interface_request_from_dict = NetworkInterfaceRequest.from_dict(network_interface_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkRequest.md b/docs/NetworkRequest.md new file mode 100644 index 000000000..82adc40c5 --- /dev/null +++ b/docs/NetworkRequest.md @@ -0,0 +1,32 @@ +# NetworkRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hostname** | **str** | | +**firewall_enabled** | **bool** | | [optional] +**interfaces** | [**List[NetworkInterfaceRequest]**](NetworkInterfaceRequest.md) | | +**gateway** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.network_request import NetworkRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkRequest from a JSON string +network_request_instance = NetworkRequest.from_json(json) +# print the JSON string representation of the object +print(NetworkRequest.to_json()) + +# convert the object into a dict +network_request_dict = network_request_instance.to_dict() +# create an instance of NetworkRequest from a dict +network_request_from_dict = NetworkRequest.from_dict(network_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Notification.md b/docs/Notification.md index 95aa55aa2..5c34dfed4 100644 --- a/docs/Notification.md +++ b/docs/Notification.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **pk** | **str** | | [readonly] **severity** | [**SeverityEnum**](SeverityEnum.md) | | [readonly] **body** | **str** | | [readonly] +**hyperlink** | **str** | | [optional] +**hyperlink_label** | **str** | | [optional] **created** | **datetime** | | [readonly] **event** | [**Event**](Event.md) | | [optional] **seen** | **bool** | | [optional] diff --git a/docs/NotificationRequest.md b/docs/NotificationRequest.md index 3a9dc0175..89282cf9a 100644 --- a/docs/NotificationRequest.md +++ b/docs/NotificationRequest.md @@ -6,6 +6,8 @@ Notification Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**hyperlink** | **str** | | [optional] +**hyperlink_label** | **str** | | [optional] **event** | [**EventRequest**](EventRequest.md) | | [optional] **seen** | **bool** | | [optional] diff --git a/docs/OAuthSource.md b/docs/OAuthSource.md index d2bc6fede..d17a2fad3 100644 --- a/docs/OAuthSource.md +++ b/docs/OAuthSource.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -22,13 +23,16 @@ Name | Type | Description | Notes **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **managed** | **str** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly] **user_path_template** | **str** | | [optional] -**icon** | **str** | | [readonly] +**icon** | **str** | | [optional] +**icon_url** | **str** | | [readonly] +**icon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **provider_type** | [**ProviderTypeEnum**](ProviderTypeEnum.md) | | **request_token_url** | **str** | URL used to request the initial token. This URL is only required for OAuth 1. | [optional] **authorization_url** | **str** | URL the user is redirect to to conest the flow. | [optional] **access_token_url** | **str** | URL used by authentik to retrieve tokens. | [optional] **profile_url** | **str** | URL used by authentik to get user information. | [optional] +**pkce** | [**PKCEMethodEnum**](PKCEMethodEnum.md) | | [optional] **consumer_key** | **str** | | **callback_url** | **str** | Get OAuth Callback URL | [readonly] **additional_scopes** | **str** | | [optional] diff --git a/docs/OAuthSourceRequest.md b/docs/OAuthSourceRequest.md index 4301ef90b..a9d4d2141 100644 --- a/docs/OAuthSourceRequest.md +++ b/docs/OAuthSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,12 +17,14 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **provider_type** | [**ProviderTypeEnum**](ProviderTypeEnum.md) | | **request_token_url** | **str** | URL used to request the initial token. This URL is only required for OAuth 1. | [optional] **authorization_url** | **str** | URL the user is redirect to to conest the flow. | [optional] **access_token_url** | **str** | URL used by authentik to retrieve tokens. | [optional] **profile_url** | **str** | URL used by authentik to get user information. | [optional] +**pkce** | [**PKCEMethodEnum**](PKCEMethodEnum.md) | | [optional] **consumer_key** | **str** | | **consumer_secret** | **str** | | **additional_scopes** | **str** | | [optional] diff --git a/docs/OperatingSystem.md b/docs/OperatingSystem.md new file mode 100644 index 000000000..9d98f6477 --- /dev/null +++ b/docs/OperatingSystem.md @@ -0,0 +1,32 @@ +# OperatingSystem + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**family** | [**DeviceFactsOSFamily**](DeviceFactsOSFamily.md) | | +**name** | **str** | | [optional] +**version** | **str** | | [optional] +**arch** | **str** | | + +## Example + +```python +from authentik_client.models.operating_system import OperatingSystem + +# TODO update the JSON string below +json = "{}" +# create an instance of OperatingSystem from a JSON string +operating_system_instance = OperatingSystem.from_json(json) +# print the JSON string representation of the object +print(OperatingSystem.to_json()) + +# convert the object into a dict +operating_system_dict = operating_system_instance.to_dict() +# create an instance of OperatingSystem from a dict +operating_system_from_dict = OperatingSystem.from_dict(operating_system_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OperatingSystemRequest.md b/docs/OperatingSystemRequest.md new file mode 100644 index 000000000..476028d7f --- /dev/null +++ b/docs/OperatingSystemRequest.md @@ -0,0 +1,32 @@ +# OperatingSystemRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**family** | [**DeviceFactsOSFamily**](DeviceFactsOSFamily.md) | | +**name** | **str** | | [optional] +**version** | **str** | | [optional] +**arch** | **str** | | + +## Example + +```python +from authentik_client.models.operating_system_request import OperatingSystemRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of OperatingSystemRequest from a JSON string +operating_system_request_instance = OperatingSystemRequest.from_json(json) +# print the JSON string representation of the object +print(OperatingSystemRequest.to_json()) + +# convert the object into a dict +operating_system_request_dict = operating_system_request_instance.to_dict() +# create an instance of OperatingSystemRequest from a dict +operating_system_request_from_dict = OperatingSystemRequest.from_dict(operating_system_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InitialPermissionsModeEnum.md b/docs/PKCEMethodEnum.md similarity index 63% rename from docs/InitialPermissionsModeEnum.md rename to docs/PKCEMethodEnum.md index b2bbc06af..90c65e277 100644 --- a/docs/InitialPermissionsModeEnum.md +++ b/docs/PKCEMethodEnum.md @@ -1,11 +1,13 @@ -# InitialPermissionsModeEnum +# PKCEMethodEnum ## Enum -* `USER` (value: `'user'`) +* `NONE` (value: `'none'`) -* `ROLE` (value: `'role'`) +* `PLAIN` (value: `'plain'`) + +* `S256` (value: `'S256'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaginatedAgentConnectorList.md b/docs/PaginatedAgentConnectorList.md new file mode 100644 index 000000000..799d30f71 --- /dev/null +++ b/docs/PaginatedAgentConnectorList.md @@ -0,0 +1,31 @@ +# PaginatedAgentConnectorList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | +**results** | [**List[AgentConnector]**](AgentConnector.md) | | +**autocomplete** | **Dict[str, object]** | | + +## Example + +```python +from authentik_client.models.paginated_agent_connector_list import PaginatedAgentConnectorList + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedAgentConnectorList from a JSON string +paginated_agent_connector_list_instance = PaginatedAgentConnectorList.from_json(json) +# print the JSON string representation of the object +print(PaginatedAgentConnectorList.to_json()) + +# convert the object into a dict +paginated_agent_connector_list_dict = paginated_agent_connector_list_instance.to_dict() +# create an instance of PaginatedAgentConnectorList from a dict +paginated_agent_connector_list_from_dict = PaginatedAgentConnectorList.from_dict(paginated_agent_connector_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedConnectorList.md b/docs/PaginatedConnectorList.md new file mode 100644 index 000000000..5808ab108 --- /dev/null +++ b/docs/PaginatedConnectorList.md @@ -0,0 +1,31 @@ +# PaginatedConnectorList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | +**results** | [**List[Connector]**](Connector.md) | | +**autocomplete** | **Dict[str, object]** | | + +## Example + +```python +from authentik_client.models.paginated_connector_list import PaginatedConnectorList + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedConnectorList from a JSON string +paginated_connector_list_instance = PaginatedConnectorList.from_json(json) +# print the JSON string representation of the object +print(PaginatedConnectorList.to_json()) + +# convert the object into a dict +paginated_connector_list_dict = paginated_connector_list_instance.to_dict() +# create an instance of PaginatedConnectorList from a dict +paginated_connector_list_from_dict = PaginatedConnectorList.from_dict(paginated_connector_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedDataExportList.md b/docs/PaginatedDataExportList.md new file mode 100644 index 000000000..417a10307 --- /dev/null +++ b/docs/PaginatedDataExportList.md @@ -0,0 +1,31 @@ +# PaginatedDataExportList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | +**results** | [**List[DataExport]**](DataExport.md) | | +**autocomplete** | **Dict[str, object]** | | + +## Example + +```python +from authentik_client.models.paginated_data_export_list import PaginatedDataExportList + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedDataExportList from a JSON string +paginated_data_export_list_instance = PaginatedDataExportList.from_json(json) +# print the JSON string representation of the object +print(PaginatedDataExportList.to_json()) + +# convert the object into a dict +paginated_data_export_list_dict = paginated_data_export_list_instance.to_dict() +# create an instance of PaginatedDataExportList from a dict +paginated_data_export_list_from_dict = PaginatedDataExportList.from_dict(paginated_data_export_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedDeviceAccessGroupList.md b/docs/PaginatedDeviceAccessGroupList.md new file mode 100644 index 000000000..68ab4b61b --- /dev/null +++ b/docs/PaginatedDeviceAccessGroupList.md @@ -0,0 +1,31 @@ +# PaginatedDeviceAccessGroupList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | +**results** | [**List[DeviceAccessGroup]**](DeviceAccessGroup.md) | | +**autocomplete** | **Dict[str, object]** | | + +## Example + +```python +from authentik_client.models.paginated_device_access_group_list import PaginatedDeviceAccessGroupList + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedDeviceAccessGroupList from a JSON string +paginated_device_access_group_list_instance = PaginatedDeviceAccessGroupList.from_json(json) +# print the JSON string representation of the object +print(PaginatedDeviceAccessGroupList.to_json()) + +# convert the object into a dict +paginated_device_access_group_list_dict = paginated_device_access_group_list_instance.to_dict() +# create an instance of PaginatedDeviceAccessGroupList from a dict +paginated_device_access_group_list_from_dict = PaginatedDeviceAccessGroupList.from_dict(paginated_device_access_group_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedDeviceUserBindingList.md b/docs/PaginatedDeviceUserBindingList.md new file mode 100644 index 000000000..521ad15c4 --- /dev/null +++ b/docs/PaginatedDeviceUserBindingList.md @@ -0,0 +1,31 @@ +# PaginatedDeviceUserBindingList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | +**results** | [**List[DeviceUserBinding]**](DeviceUserBinding.md) | | +**autocomplete** | **Dict[str, object]** | | + +## Example + +```python +from authentik_client.models.paginated_device_user_binding_list import PaginatedDeviceUserBindingList + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedDeviceUserBindingList from a JSON string +paginated_device_user_binding_list_instance = PaginatedDeviceUserBindingList.from_json(json) +# print the JSON string representation of the object +print(PaginatedDeviceUserBindingList.to_json()) + +# convert the object into a dict +paginated_device_user_binding_list_dict = paginated_device_user_binding_list_instance.to_dict() +# create an instance of PaginatedDeviceUserBindingList from a dict +paginated_device_user_binding_list_from_dict = PaginatedDeviceUserBindingList.from_dict(paginated_device_user_binding_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedEndpointStageList.md b/docs/PaginatedEndpointStageList.md new file mode 100644 index 000000000..43a13acaa --- /dev/null +++ b/docs/PaginatedEndpointStageList.md @@ -0,0 +1,31 @@ +# PaginatedEndpointStageList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | +**results** | [**List[EndpointStage]**](EndpointStage.md) | | +**autocomplete** | **Dict[str, object]** | | + +## Example + +```python +from authentik_client.models.paginated_endpoint_stage_list import PaginatedEndpointStageList + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedEndpointStageList from a JSON string +paginated_endpoint_stage_list_instance = PaginatedEndpointStageList.from_json(json) +# print the JSON string representation of the object +print(PaginatedEndpointStageList.to_json()) + +# convert the object into a dict +paginated_endpoint_stage_list_dict = paginated_endpoint_stage_list_instance.to_dict() +# create an instance of PaginatedEndpointStageList from a dict +paginated_endpoint_stage_list_from_dict = PaginatedEndpointStageList.from_dict(paginated_endpoint_stage_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedEnrollmentTokenList.md b/docs/PaginatedEnrollmentTokenList.md new file mode 100644 index 000000000..5b6133f75 --- /dev/null +++ b/docs/PaginatedEnrollmentTokenList.md @@ -0,0 +1,31 @@ +# PaginatedEnrollmentTokenList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | +**results** | [**List[EnrollmentToken]**](EnrollmentToken.md) | | +**autocomplete** | **Dict[str, object]** | | + +## Example + +```python +from authentik_client.models.paginated_enrollment_token_list import PaginatedEnrollmentTokenList + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedEnrollmentTokenList from a JSON string +paginated_enrollment_token_list_instance = PaginatedEnrollmentTokenList.from_json(json) +# print the JSON string representation of the object +print(PaginatedEnrollmentTokenList.to_json()) + +# convert the object into a dict +paginated_enrollment_token_list_dict = paginated_enrollment_token_list_instance.to_dict() +# create an instance of PaginatedEnrollmentTokenList from a dict +paginated_enrollment_token_list_from_dict = PaginatedEnrollmentTokenList.from_dict(paginated_enrollment_token_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedExtraUserObjectPermissionList.md b/docs/PaginatedExtraUserObjectPermissionList.md deleted file mode 100644 index 5ab2d75df..000000000 --- a/docs/PaginatedExtraUserObjectPermissionList.md +++ /dev/null @@ -1,30 +0,0 @@ -# PaginatedExtraUserObjectPermissionList - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**Pagination**](Pagination.md) | | -**results** | [**List[ExtraUserObjectPermission]**](ExtraUserObjectPermission.md) | | - -## Example - -```python -from authentik_client.models.paginated_extra_user_object_permission_list import PaginatedExtraUserObjectPermissionList - -# TODO update the JSON string below -json = "{}" -# create an instance of PaginatedExtraUserObjectPermissionList from a JSON string -paginated_extra_user_object_permission_list_instance = PaginatedExtraUserObjectPermissionList.from_json(json) -# print the JSON string representation of the object -print(PaginatedExtraUserObjectPermissionList.to_json()) - -# convert the object into a dict -paginated_extra_user_object_permission_list_dict = paginated_extra_user_object_permission_list_instance.to_dict() -# create an instance of PaginatedExtraUserObjectPermissionList from a dict -paginated_extra_user_object_permission_list_from_dict = PaginatedExtraUserObjectPermissionList.from_dict(paginated_extra_user_object_permission_list_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PaginatedGoogleEndpointDeviceList.md b/docs/PaginatedGoogleEndpointDeviceList.md new file mode 100644 index 000000000..aaf83d6cd --- /dev/null +++ b/docs/PaginatedGoogleEndpointDeviceList.md @@ -0,0 +1,31 @@ +# PaginatedGoogleEndpointDeviceList + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pagination** | [**Pagination**](Pagination.md) | | +**results** | [**List[GoogleEndpointDevice]**](GoogleEndpointDevice.md) | | +**autocomplete** | **Dict[str, object]** | | + +## Example + +```python +from authentik_client.models.paginated_google_endpoint_device_list import PaginatedGoogleEndpointDeviceList + +# TODO update the JSON string below +json = "{}" +# create an instance of PaginatedGoogleEndpointDeviceList from a JSON string +paginated_google_endpoint_device_list_instance = PaginatedGoogleEndpointDeviceList.from_json(json) +# print the JSON string representation of the object +print(PaginatedGoogleEndpointDeviceList.to_json()) + +# convert the object into a dict +paginated_google_endpoint_device_list_dict = paginated_google_endpoint_device_list_instance.to_dict() +# create an instance of PaginatedGoogleEndpointDeviceList from a dict +paginated_google_endpoint_device_list_from_dict = PaginatedGoogleEndpointDeviceList.from_dict(paginated_google_endpoint_device_list_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedUserAssignedObjectPermissionList.md b/docs/PaginatedUserAssignedObjectPermissionList.md deleted file mode 100644 index 304b164f5..000000000 --- a/docs/PaginatedUserAssignedObjectPermissionList.md +++ /dev/null @@ -1,31 +0,0 @@ -# PaginatedUserAssignedObjectPermissionList - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**Pagination**](Pagination.md) | | -**results** | [**List[UserAssignedObjectPermission]**](UserAssignedObjectPermission.md) | | -**autocomplete** | **Dict[str, object]** | | - -## Example - -```python -from authentik_client.models.paginated_user_assigned_object_permission_list import PaginatedUserAssignedObjectPermissionList - -# TODO update the JSON string below -json = "{}" -# create an instance of PaginatedUserAssignedObjectPermissionList from a JSON string -paginated_user_assigned_object_permission_list_instance = PaginatedUserAssignedObjectPermissionList.from_json(json) -# print the JSON string representation of the object -print(PaginatedUserAssignedObjectPermissionList.to_json()) - -# convert the object into a dict -paginated_user_assigned_object_permission_list_dict = paginated_user_assigned_object_permission_list_instance.to_dict() -# create an instance of PaginatedUserAssignedObjectPermissionList from a dict -paginated_user_assigned_object_permission_list_from_dict = PaginatedUserAssignedObjectPermissionList.from_dict(paginated_user_assigned_object_permission_list_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PartialGroup.md b/docs/PartialGroup.md index 48361eedf..fe1ae806e 100644 --- a/docs/PartialGroup.md +++ b/docs/PartialGroup.md @@ -10,8 +10,6 @@ Name | Type | Description | Notes **num_pk** | **int** | Get a numerical, int32 ID for the group | [readonly] **name** | **str** | | **is_superuser** | **bool** | Users added to this group will be superusers. | [optional] -**parent** | **str** | | [optional] -**parent_name** | **str** | | [readonly] **attributes** | **Dict[str, object]** | | [optional] ## Example diff --git a/docs/PasswordStage.md b/docs/PasswordStage.md index 741efd8dc..7a2325485 100644 --- a/docs/PasswordStage.md +++ b/docs/PasswordStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **backends** | [**List[BackendsEnum]**](BackendsEnum.md) | Selection of backends to test the password against. | **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **failed_attempts_before_cancel** | **int** | How many attempts a user has before the flow is canceled. To lock the user out, use a reputation policy and a user_write stage. | [optional] diff --git a/docs/PasswordStageRequest.md b/docs/PasswordStageRequest.md index 4771d8430..a762aff19 100644 --- a/docs/PasswordStageRequest.md +++ b/docs/PasswordStageRequest.md @@ -7,7 +7,6 @@ PasswordStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **backends** | [**List[BackendsEnum]**](BackendsEnum.md) | Selection of backends to test the password against. | **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **failed_attempts_before_cancel** | **int** | How many attempts a user has before the flow is canceled. To lock the user out, use a reputation policy and a user_write stage. | [optional] diff --git a/docs/PatchedAgentConnectorRequest.md b/docs/PatchedAgentConnectorRequest.md new file mode 100644 index 000000000..c728289f4 --- /dev/null +++ b/docs/PatchedAgentConnectorRequest.md @@ -0,0 +1,42 @@ +# PatchedAgentConnectorRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connector_uuid** | **str** | | [optional] +**name** | **str** | | [optional] +**enabled** | **bool** | | [optional] +**snapshot_expiry** | **str** | | [optional] +**auth_session_duration** | **str** | | [optional] +**auth_terminate_session_on_expiry** | **bool** | | [optional] +**refresh_interval** | **str** | | [optional] +**authorization_flow** | **str** | | [optional] +**nss_uid_offset** | **int** | | [optional] +**nss_gid_offset** | **int** | | [optional] +**challenge_key** | **str** | | [optional] +**challenge_idle_timeout** | **str** | | [optional] +**challenge_trigger_check_in** | **bool** | | [optional] +**jwt_federation_providers** | **List[int]** | | [optional] + +## Example + +```python +from authentik_client.models.patched_agent_connector_request import PatchedAgentConnectorRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PatchedAgentConnectorRequest from a JSON string +patched_agent_connector_request_instance = PatchedAgentConnectorRequest.from_json(json) +# print the JSON string representation of the object +print(PatchedAgentConnectorRequest.to_json()) + +# convert the object into a dict +patched_agent_connector_request_dict = patched_agent_connector_request_instance.to_dict() +# create an instance of PatchedAgentConnectorRequest from a dict +patched_agent_connector_request_from_dict = PatchedAgentConnectorRequest.from_dict(patched_agent_connector_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedApplicationRequest.md b/docs/PatchedApplicationRequest.md index c657f5ae2..9ee13a9d6 100644 --- a/docs/PatchedApplicationRequest.md +++ b/docs/PatchedApplicationRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **backchannel_providers** | **List[int]** | | [optional] **open_in_new_tab** | **bool** | Open launch URL in a new browser tab or window. | [optional] **meta_launch_url** | **str** | | [optional] +**meta_icon** | **str** | | [optional] **meta_description** | **str** | | [optional] **meta_publisher** | **str** | | [optional] **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] diff --git a/docs/PatchedAuthenticatorDuoStageRequest.md b/docs/PatchedAuthenticatorDuoStageRequest.md index 30aef92d9..12ea6e3d6 100644 --- a/docs/PatchedAuthenticatorDuoStageRequest.md +++ b/docs/PatchedAuthenticatorDuoStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorDuoStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **client_id** | **str** | | [optional] diff --git a/docs/PatchedAuthenticatorEmailStageRequest.md b/docs/PatchedAuthenticatorEmailStageRequest.md index 170b3f7cc..6f747e8d0 100644 --- a/docs/PatchedAuthenticatorEmailStageRequest.md +++ b/docs/PatchedAuthenticatorEmailStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorEmailStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **use_global_settings** | **bool** | When enabled, global Email connection settings will be used and connection settings below will be ignored. | [optional] diff --git a/docs/PatchedAuthenticatorEndpointGDTCStageRequest.md b/docs/PatchedAuthenticatorEndpointGDTCStageRequest.md index 5261e3ccb..dd589f17c 100644 --- a/docs/PatchedAuthenticatorEndpointGDTCStageRequest.md +++ b/docs/PatchedAuthenticatorEndpointGDTCStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorEndpointGDTCStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **credentials** | **Dict[str, object]** | | [optional] diff --git a/docs/PatchedAuthenticatorSMSStageRequest.md b/docs/PatchedAuthenticatorSMSStageRequest.md index 5d7095fac..78dbfd532 100644 --- a/docs/PatchedAuthenticatorSMSStageRequest.md +++ b/docs/PatchedAuthenticatorSMSStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorSMSStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **provider** | [**ProviderEnum**](ProviderEnum.md) | | [optional] diff --git a/docs/PatchedAuthenticatorStaticStageRequest.md b/docs/PatchedAuthenticatorStaticStageRequest.md index e9e7f333b..4764220bb 100644 --- a/docs/PatchedAuthenticatorStaticStageRequest.md +++ b/docs/PatchedAuthenticatorStaticStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorStaticStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **token_count** | **int** | | [optional] diff --git a/docs/PatchedAuthenticatorTOTPStageRequest.md b/docs/PatchedAuthenticatorTOTPStageRequest.md index cc8c378e2..46c4e5baf 100644 --- a/docs/PatchedAuthenticatorTOTPStageRequest.md +++ b/docs/PatchedAuthenticatorTOTPStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorTOTPStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **digits** | [**DigitsEnum**](DigitsEnum.md) | | [optional] diff --git a/docs/PatchedAuthenticatorValidateStageRequest.md b/docs/PatchedAuthenticatorValidateStageRequest.md index 76ec08e74..cf62d3b7c 100644 --- a/docs/PatchedAuthenticatorValidateStageRequest.md +++ b/docs/PatchedAuthenticatorValidateStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorValidateStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **not_configured_action** | [**NotConfiguredActionEnum**](NotConfiguredActionEnum.md) | | [optional] **device_classes** | [**List[DeviceClassesEnum]**](DeviceClassesEnum.md) | Device classes which can be used to authenticate | [optional] **configuration_stages** | **List[str]** | Stages used to configure Authenticator when user doesn't have any compatible devices. After this configuration Stage passes, the user is not prompted again. | [optional] diff --git a/docs/PatchedAuthenticatorWebAuthnStageRequest.md b/docs/PatchedAuthenticatorWebAuthnStageRequest.md index f1478a2e2..3da7cd3e6 100644 --- a/docs/PatchedAuthenticatorWebAuthnStageRequest.md +++ b/docs/PatchedAuthenticatorWebAuthnStageRequest.md @@ -7,7 +7,6 @@ AuthenticatorWebAuthnStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **friendly_name** | **str** | | [optional] **user_verification** | [**UserVerificationEnum**](UserVerificationEnum.md) | | [optional] diff --git a/docs/PatchedCaptchaStageRequest.md b/docs/PatchedCaptchaStageRequest.md index c5e721599..2e02be3f4 100644 --- a/docs/PatchedCaptchaStageRequest.md +++ b/docs/PatchedCaptchaStageRequest.md @@ -7,7 +7,6 @@ CaptchaStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **public_key** | **str** | Public key, acquired your captcha Provider. | [optional] **private_key** | **str** | Private key, acquired your captcha Provider. | [optional] **js_url** | **str** | | [optional] diff --git a/docs/PatchedConsentStageRequest.md b/docs/PatchedConsentStageRequest.md index 52b49a13c..5da1750d9 100644 --- a/docs/PatchedConsentStageRequest.md +++ b/docs/PatchedConsentStageRequest.md @@ -7,7 +7,6 @@ ConsentStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **mode** | [**ConsentStageModeEnum**](ConsentStageModeEnum.md) | | [optional] **consent_expire_in** | **str** | Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3). | [optional] diff --git a/docs/PatchedDenyStageRequest.md b/docs/PatchedDenyStageRequest.md index 5ee990428..1bfea9c15 100644 --- a/docs/PatchedDenyStageRequest.md +++ b/docs/PatchedDenyStageRequest.md @@ -7,7 +7,6 @@ DenyStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **deny_message** | **str** | | [optional] ## Example diff --git a/docs/PatchedDeviceAccessGroupRequest.md b/docs/PatchedDeviceAccessGroupRequest.md new file mode 100644 index 000000000..bfdd21406 --- /dev/null +++ b/docs/PatchedDeviceAccessGroupRequest.md @@ -0,0 +1,29 @@ +# PatchedDeviceAccessGroupRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.patched_device_access_group_request import PatchedDeviceAccessGroupRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PatchedDeviceAccessGroupRequest from a JSON string +patched_device_access_group_request_instance = PatchedDeviceAccessGroupRequest.from_json(json) +# print the JSON string representation of the object +print(PatchedDeviceAccessGroupRequest.to_json()) + +# convert the object into a dict +patched_device_access_group_request_dict = patched_device_access_group_request_instance.to_dict() +# create an instance of PatchedDeviceAccessGroupRequest from a dict +patched_device_access_group_request_from_dict = PatchedDeviceAccessGroupRequest.from_dict(patched_device_access_group_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedDeviceUserBindingRequest.md b/docs/PatchedDeviceUserBindingRequest.md new file mode 100644 index 000000000..11ad568f9 --- /dev/null +++ b/docs/PatchedDeviceUserBindingRequest.md @@ -0,0 +1,39 @@ +# PatchedDeviceUserBindingRequest + +PolicyBinding Serializer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | **str** | | [optional] +**group** | **str** | | [optional] +**user** | **int** | | [optional] +**target** | **str** | | [optional] +**negate** | **bool** | Negates the outcome of the policy. Messages are unaffected. | [optional] +**enabled** | **bool** | | [optional] +**order** | **int** | | [optional] +**timeout** | **int** | Timeout after which Policy execution is terminated. | [optional] +**failure_result** | **bool** | Result if the Policy execution fails. | [optional] +**is_primary** | **bool** | | [optional] + +## Example + +```python +from authentik_client.models.patched_device_user_binding_request import PatchedDeviceUserBindingRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PatchedDeviceUserBindingRequest from a JSON string +patched_device_user_binding_request_instance = PatchedDeviceUserBindingRequest.from_json(json) +# print the JSON string representation of the object +print(PatchedDeviceUserBindingRequest.to_json()) + +# convert the object into a dict +patched_device_user_binding_request_dict = patched_device_user_binding_request_instance.to_dict() +# create an instance of PatchedDeviceUserBindingRequest from a dict +patched_device_user_binding_request_from_dict = PatchedDeviceUserBindingRequest.from_dict(patched_device_user_binding_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedDummyStageRequest.md b/docs/PatchedDummyStageRequest.md index 2d1dc3097..24fd292d3 100644 --- a/docs/PatchedDummyStageRequest.md +++ b/docs/PatchedDummyStageRequest.md @@ -7,7 +7,6 @@ DummyStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **throw_error** | **bool** | | [optional] ## Example diff --git a/docs/PatchedEmailStageRequest.md b/docs/PatchedEmailStageRequest.md index 51d0fd794..9c10d1d37 100644 --- a/docs/PatchedEmailStageRequest.md +++ b/docs/PatchedEmailStageRequest.md @@ -7,7 +7,6 @@ EmailStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **use_global_settings** | **bool** | When enabled, global Email connection settings will be used and connection settings below will be ignored. | [optional] **host** | **str** | | [optional] **port** | **int** | | [optional] diff --git a/docs/PatchedEndpointDeviceRequest.md b/docs/PatchedEndpointDeviceRequest.md index 85cbd924d..da42af3bc 100644 --- a/docs/PatchedEndpointDeviceRequest.md +++ b/docs/PatchedEndpointDeviceRequest.md @@ -1,13 +1,17 @@ # PatchedEndpointDeviceRequest -Serializer for Endpoint authenticator devices ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pk** | **str** | | [optional] -**name** | **str** | The human-readable name of this device. | [optional] +**device_uuid** | **str** | | [optional] +**name** | **str** | | [optional] +**access_group** | **str** | | [optional] +**access_group_obj** | [**DeviceAccessGroupRequest**](DeviceAccessGroupRequest.md) | | [optional] +**expiring** | **bool** | | [optional] +**expires** | **datetime** | | [optional] +**attributes** | **Dict[str, object]** | | [optional] ## Example diff --git a/docs/PatchedEndpointStageRequest.md b/docs/PatchedEndpointStageRequest.md new file mode 100644 index 000000000..ec83ba8c4 --- /dev/null +++ b/docs/PatchedEndpointStageRequest.md @@ -0,0 +1,32 @@ +# PatchedEndpointStageRequest + +EndpointStage Serializer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**connector** | **str** | | [optional] +**mode** | [**StageModeEnum**](StageModeEnum.md) | | [optional] + +## Example + +```python +from authentik_client.models.patched_endpoint_stage_request import PatchedEndpointStageRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PatchedEndpointStageRequest from a JSON string +patched_endpoint_stage_request_instance = PatchedEndpointStageRequest.from_json(json) +# print the JSON string representation of the object +print(PatchedEndpointStageRequest.to_json()) + +# convert the object into a dict +patched_endpoint_stage_request_dict = patched_endpoint_stage_request_instance.to_dict() +# create an instance of PatchedEndpointStageRequest from a dict +patched_endpoint_stage_request_from_dict = PatchedEndpointStageRequest.from_dict(patched_endpoint_stage_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedEnrollmentTokenRequest.md b/docs/PatchedEnrollmentTokenRequest.md new file mode 100644 index 000000000..50d615c39 --- /dev/null +++ b/docs/PatchedEnrollmentTokenRequest.md @@ -0,0 +1,33 @@ +# PatchedEnrollmentTokenRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_group** | **str** | | [optional] +**connector** | **str** | | [optional] +**name** | **str** | | [optional] +**expiring** | **bool** | | [optional] +**expires** | **datetime** | | [optional] + +## Example + +```python +from authentik_client.models.patched_enrollment_token_request import PatchedEnrollmentTokenRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PatchedEnrollmentTokenRequest from a JSON string +patched_enrollment_token_request_instance = PatchedEnrollmentTokenRequest.from_json(json) +# print the JSON string representation of the object +print(PatchedEnrollmentTokenRequest.to_json()) + +# convert the object into a dict +patched_enrollment_token_request_dict = patched_enrollment_token_request_instance.to_dict() +# create an instance of PatchedEnrollmentTokenRequest from a dict +patched_enrollment_token_request_from_dict = PatchedEnrollmentTokenRequest.from_dict(patched_enrollment_token_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedExtraRoleObjectPermissionRequest.md b/docs/PatchedExtraRoleObjectPermissionRequest.md deleted file mode 100644 index 4dd7dd099..000000000 --- a/docs/PatchedExtraRoleObjectPermissionRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# PatchedExtraRoleObjectPermissionRequest - -User permission with additional object-related data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object_pk** | **str** | | [optional] - -## Example - -```python -from authentik_client.models.patched_extra_role_object_permission_request import PatchedExtraRoleObjectPermissionRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of PatchedExtraRoleObjectPermissionRequest from a JSON string -patched_extra_role_object_permission_request_instance = PatchedExtraRoleObjectPermissionRequest.from_json(json) -# print the JSON string representation of the object -print(PatchedExtraRoleObjectPermissionRequest.to_json()) - -# convert the object into a dict -patched_extra_role_object_permission_request_dict = patched_extra_role_object_permission_request_instance.to_dict() -# create an instance of PatchedExtraRoleObjectPermissionRequest from a dict -patched_extra_role_object_permission_request_from_dict = PatchedExtraRoleObjectPermissionRequest.from_dict(patched_extra_role_object_permission_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PatchedExtraUserObjectPermissionRequest.md b/docs/PatchedExtraUserObjectPermissionRequest.md deleted file mode 100644 index a9c72a3fd..000000000 --- a/docs/PatchedExtraUserObjectPermissionRequest.md +++ /dev/null @@ -1,30 +0,0 @@ -# PatchedExtraUserObjectPermissionRequest - -User permission with additional object-related data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object_pk** | **str** | | [optional] - -## Example - -```python -from authentik_client.models.patched_extra_user_object_permission_request import PatchedExtraUserObjectPermissionRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of PatchedExtraUserObjectPermissionRequest from a JSON string -patched_extra_user_object_permission_request_instance = PatchedExtraUserObjectPermissionRequest.from_json(json) -# print the JSON string representation of the object -print(PatchedExtraUserObjectPermissionRequest.to_json()) - -# convert the object into a dict -patched_extra_user_object_permission_request_dict = patched_extra_user_object_permission_request_instance.to_dict() -# create an instance of PatchedExtraUserObjectPermissionRequest from a dict -patched_extra_user_object_permission_request_from_dict = PatchedExtraUserObjectPermissionRequest.from_dict(patched_extra_user_object_permission_request_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/PatchedFlowRequest.md b/docs/PatchedFlowRequest.md index 81484fb09..3bc2c5237 100644 --- a/docs/PatchedFlowRequest.md +++ b/docs/PatchedFlowRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **slug** | **str** | Visible in the URL. | [optional] **title** | **str** | Shown as the Title in Flow pages. | [optional] **designation** | [**FlowDesignationEnum**](FlowDesignationEnum.md) | Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. | [optional] +**background** | **str** | Background shown during execution | [optional] **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **compatibility_mode** | **bool** | Enable compatibility mode, increases compatibility with password managers on mobile devices. | [optional] **layout** | [**FlowLayoutEnum**](FlowLayoutEnum.md) | | [optional] diff --git a/docs/PatchedGoogleEndpointDeviceRequest.md b/docs/PatchedGoogleEndpointDeviceRequest.md new file mode 100644 index 000000000..2a74d9064 --- /dev/null +++ b/docs/PatchedGoogleEndpointDeviceRequest.md @@ -0,0 +1,31 @@ +# PatchedGoogleEndpointDeviceRequest + +Serializer for Endpoint authenticator devices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pk** | **str** | | [optional] +**name** | **str** | The human-readable name of this device. | [optional] + +## Example + +```python +from authentik_client.models.patched_google_endpoint_device_request import PatchedGoogleEndpointDeviceRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PatchedGoogleEndpointDeviceRequest from a JSON string +patched_google_endpoint_device_request_instance = PatchedGoogleEndpointDeviceRequest.from_json(json) +# print the JSON string representation of the object +print(PatchedGoogleEndpointDeviceRequest.to_json()) + +# convert the object into a dict +patched_google_endpoint_device_request_dict = patched_google_endpoint_device_request_instance.to_dict() +# create an instance of PatchedGoogleEndpointDeviceRequest from a dict +patched_google_endpoint_device_request_from_dict = PatchedGoogleEndpointDeviceRequest.from_dict(patched_google_endpoint_device_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedGoogleWorkspaceProviderRequest.md b/docs/PatchedGoogleWorkspaceProviderRequest.md index 33fe7ecf3..a92a1a667 100644 --- a/docs/PatchedGoogleWorkspaceProviderRequest.md +++ b/docs/PatchedGoogleWorkspaceProviderRequest.md @@ -17,6 +17,8 @@ Name | Type | Description | Notes **user_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **group_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **default_group_email_domain** | **str** | | [optional] +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/PatchedGroupRequest.md b/docs/PatchedGroupRequest.md index 0ba98075a..1718b4177 100644 --- a/docs/PatchedGroupRequest.md +++ b/docs/PatchedGroupRequest.md @@ -8,11 +8,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] **is_superuser** | **bool** | Users added to this group will be superusers. | [optional] -**parent** | **str** | | [optional] +**parents** | **List[str]** | | [optional] **users** | **List[int]** | | [optional] **attributes** | **Dict[str, object]** | | [optional] **roles** | **List[str]** | | [optional] -**children** | **List[str]** | | [optional] ## Example diff --git a/docs/PatchedIdentificationStageRequest.md b/docs/PatchedIdentificationStageRequest.md index f8f7e02f4..117a86789 100644 --- a/docs/PatchedIdentificationStageRequest.md +++ b/docs/PatchedIdentificationStageRequest.md @@ -7,7 +7,6 @@ IdentificationStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **user_fields** | [**List[UserFieldsEnum]**](UserFieldsEnum.md) | Fields of the user object to match against. (Hold shift to select multiple options) | [optional] **password_stage** | **str** | When set, shows a password field, instead of showing the password field as separate step. | [optional] **captcha_stage** | **str** | When set, adds functionality exactly like a Captcha stage, but baked into the Identification stage. | [optional] @@ -20,6 +19,7 @@ Name | Type | Description | Notes **show_source_labels** | **bool** | | [optional] **pretend_user_exists** | **bool** | When enabled, the stage will succeed and continue even when incorrect user info is entered. | [optional] **enable_remember_me** | **bool** | Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password. | [optional] +**webauthn_stage** | **str** | When set, and conditional WebAuthn is available, allow the user to use their passkey as a first factor. | [optional] ## Example diff --git a/docs/PatchedInitialPermissionsRequest.md b/docs/PatchedInitialPermissionsRequest.md index 79bb69b40..6ad642ffe 100644 --- a/docs/PatchedInitialPermissionsRequest.md +++ b/docs/PatchedInitialPermissionsRequest.md @@ -7,7 +7,6 @@ InitialPermissions serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**mode** | [**InitialPermissionsModeEnum**](InitialPermissionsModeEnum.md) | | [optional] **role** | **str** | | [optional] **permissions** | **List[int]** | | [optional] diff --git a/docs/PatchedInvitationStageRequest.md b/docs/PatchedInvitationStageRequest.md index 909ecb152..4fc36e6a4 100644 --- a/docs/PatchedInvitationStageRequest.md +++ b/docs/PatchedInvitationStageRequest.md @@ -7,7 +7,6 @@ InvitationStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **continue_flow_without_invitation** | **bool** | If this flag is set, this Stage will jump to the next Stage when no Invitation is given. By default this Stage will cancel the Flow when no invitation is given. | [optional] ## Example diff --git a/docs/PatchedKerberosSourceRequest.md b/docs/PatchedKerberosSourceRequest.md index 67dd544f4..86fb35167 100644 --- a/docs/PatchedKerberosSourceRequest.md +++ b/docs/PatchedKerberosSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | [optional] **slug** | **str** | Internal source name, used in URLs. | [optional] **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **realm** | **str** | Kerberos realm | [optional] **krb5_conf** | **str** | Custom krb5.conf to use. Uses the system one by default | [optional] @@ -30,6 +32,7 @@ Name | Type | Description | Notes **spnego_keytab** | **str** | SPNEGO keytab base64-encoded or path to keytab in the form FILE:path | [optional] **spnego_ccache** | **str** | Credential cache to use for SPNEGO in form type:residual | [optional] **password_login_update_internal_password** | **bool** | If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend | [optional] +**sync_outgoing_trigger_mode** | [**SyncOutgoingTriggerModeEnum**](SyncOutgoingTriggerModeEnum.md) | When to trigger sync for outgoing providers | [optional] ## Example diff --git a/docs/PatchedLDAPSourceRequest.md b/docs/PatchedLDAPSourceRequest.md index a68812be5..0ae4a9145 100644 --- a/docs/PatchedLDAPSourceRequest.md +++ b/docs/PatchedLDAPSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | [optional] **slug** | **str** | Internal source name, used in URLs. | [optional] **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **server_uri** | **str** | | [optional] **peer_certificate** | **str** | Optionally verify the LDAP Server's Certificate against the CA Chain in this keypair. | [optional] **client_certificate** | **str** | Client certificate to authenticate against the LDAP Server's Certificate. | [optional] @@ -38,6 +40,7 @@ Name | Type | Description | Notes **sync_parent_group** | **str** | | [optional] **lookup_groups_from_user** | **bool** | Lookup group membership based on a user attribute instead of a group attribute. This allows nested group resolution on systems like FreeIPA and Active Directory | [optional] **delete_not_found_objects** | **bool** | Delete authentik users and groups which were previously supplied by this source, but are now missing from it. | [optional] +**sync_outgoing_trigger_mode** | [**SyncOutgoingTriggerModeEnum**](SyncOutgoingTriggerModeEnum.md) | When to trigger sync for outgoing providers | [optional] ## Example diff --git a/docs/PatchedMicrosoftEntraProviderRequest.md b/docs/PatchedMicrosoftEntraProviderRequest.md index 6f5fdf143..9fc26c29f 100644 --- a/docs/PatchedMicrosoftEntraProviderRequest.md +++ b/docs/PatchedMicrosoftEntraProviderRequest.md @@ -16,6 +16,8 @@ Name | Type | Description | Notes **filter_group** | **str** | | [optional] **user_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] **group_delete_action** | [**OutgoingSyncDeleteAction**](OutgoingSyncDeleteAction.md) | | [optional] +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/PatchedMutualTLSStageRequest.md b/docs/PatchedMutualTLSStageRequest.md index 17ae89a66..d87333924 100644 --- a/docs/PatchedMutualTLSStageRequest.md +++ b/docs/PatchedMutualTLSStageRequest.md @@ -7,8 +7,7 @@ MutualTLSStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] -**mode** | [**MutualTLSStageModeEnum**](MutualTLSStageModeEnum.md) | | [optional] +**mode** | [**StageModeEnum**](StageModeEnum.md) | | [optional] **certificate_authorities** | **List[str]** | Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`. | [optional] **cert_attribute** | [**CertAttributeEnum**](CertAttributeEnum.md) | | [optional] **user_attribute** | [**UserAttributeEnum**](UserAttributeEnum.md) | | [optional] diff --git a/docs/PatchedNotificationRequest.md b/docs/PatchedNotificationRequest.md index b33dc4aca..4d3c13754 100644 --- a/docs/PatchedNotificationRequest.md +++ b/docs/PatchedNotificationRequest.md @@ -6,6 +6,8 @@ Notification Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**hyperlink** | **str** | | [optional] +**hyperlink_label** | **str** | | [optional] **event** | [**EventRequest**](EventRequest.md) | | [optional] **seen** | **bool** | | [optional] diff --git a/docs/PatchedOAuthSourceRequest.md b/docs/PatchedOAuthSourceRequest.md index 117a0c597..216f30bbc 100644 --- a/docs/PatchedOAuthSourceRequest.md +++ b/docs/PatchedOAuthSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | [optional] **slug** | **str** | Internal source name, used in URLs. | [optional] **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,12 +17,14 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **provider_type** | [**ProviderTypeEnum**](ProviderTypeEnum.md) | | [optional] **request_token_url** | **str** | URL used to request the initial token. This URL is only required for OAuth 1. | [optional] **authorization_url** | **str** | URL the user is redirect to to conest the flow. | [optional] **access_token_url** | **str** | URL used by authentik to retrieve tokens. | [optional] **profile_url** | **str** | URL used by authentik to get user information. | [optional] +**pkce** | [**PKCEMethodEnum**](PKCEMethodEnum.md) | | [optional] **consumer_key** | **str** | | [optional] **consumer_secret** | **str** | | [optional] **additional_scopes** | **str** | | [optional] diff --git a/docs/PatchedPasswordStageRequest.md b/docs/PatchedPasswordStageRequest.md index 13cd3e9c4..b3ba005bd 100644 --- a/docs/PatchedPasswordStageRequest.md +++ b/docs/PatchedPasswordStageRequest.md @@ -7,7 +7,6 @@ PasswordStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **backends** | [**List[BackendsEnum]**](BackendsEnum.md) | Selection of backends to test the password against. | [optional] **configure_flow** | **str** | Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. | [optional] **failed_attempts_before_cancel** | **int** | How many attempts a user has before the flow is canceled. To lock the user out, use a reputation policy and a user_write stage. | [optional] diff --git a/docs/PatchedPlexSourceRequest.md b/docs/PatchedPlexSourceRequest.md index e647be060..29fd8d32b 100644 --- a/docs/PatchedPlexSourceRequest.md +++ b/docs/PatchedPlexSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | [optional] **slug** | **str** | Internal source name, used in URLs. | [optional] **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **client_id** | **str** | Client identifier used to talk to Plex. | [optional] **allowed_servers** | **List[str]** | Which servers a user has to be a member of to be granted access. Empty list allows every server. | [optional] diff --git a/docs/PatchedPromptStageRequest.md b/docs/PatchedPromptStageRequest.md index 60224eada..fae72043f 100644 --- a/docs/PatchedPromptStageRequest.md +++ b/docs/PatchedPromptStageRequest.md @@ -7,7 +7,6 @@ PromptStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **fields** | **List[str]** | | [optional] **validation_policies** | **List[str]** | | [optional] diff --git a/docs/PatchedRedirectStageRequest.md b/docs/PatchedRedirectStageRequest.md index ae1ad7235..2fe0542e3 100644 --- a/docs/PatchedRedirectStageRequest.md +++ b/docs/PatchedRedirectStageRequest.md @@ -7,7 +7,6 @@ RedirectStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **keep_context** | **bool** | | [optional] **mode** | [**RedirectStageModeEnum**](RedirectStageModeEnum.md) | | [optional] **target_static** | **str** | | [optional] diff --git a/docs/PatchedSAMLSourceRequest.md b/docs/PatchedSAMLSourceRequest.md index c1f389c4b..f3e8a928e 100644 --- a/docs/PatchedSAMLSourceRequest.md +++ b/docs/PatchedSAMLSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | [optional] **slug** | **str** | Internal source name, used in URLs. | [optional] **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **pre_authentication_flow** | **str** | Flow used before authentication. | [optional] **issuer** | **str** | Also known as Entity ID. Defaults the Metadata URL. | [optional] diff --git a/docs/PatchedSCIMProviderRequest.md b/docs/PatchedSCIMProviderRequest.md index a9f7dfe7c..813d5e33e 100644 --- a/docs/PatchedSCIMProviderRequest.md +++ b/docs/PatchedSCIMProviderRequest.md @@ -16,8 +16,11 @@ Name | Type | Description | Notes **auth_oauth** | **str** | OAuth Source used for authentication | [optional] **auth_oauth_params** | **Dict[str, object]** | Additional OAuth parameters, such as grant_type | [optional] **compatibility_mode** | [**CompatibilityModeEnum**](CompatibilityModeEnum.md) | Alter authentik behavior for vendor-specific SCIM implementations. | [optional] +**service_provider_config_cache_timeout** | **str** | Cache duration for ServiceProviderConfig responses. Set minutes=0 to disable. | [optional] **exclude_users_service_account** | **bool** | | [optional] **filter_group** | **str** | | [optional] +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/PatchedSettingsRequest.md b/docs/PatchedSettingsRequest.md index e4d657a89..3ebe2db3d 100644 --- a/docs/PatchedSettingsRequest.md +++ b/docs/PatchedSettingsRequest.md @@ -19,6 +19,8 @@ Name | Type | Description | Notes **impersonation_require_reason** | **bool** | Require administrators to provide a reason for impersonating a user. | [optional] **default_token_duration** | **str** | Default token duration | [optional] **default_token_length** | **int** | Default token length | [optional] +**pagination_default_page_size** | **int** | Default page size for API responses, if no size was requested. | [optional] +**pagination_max_page_size** | **int** | Maximum page size | [optional] **flags** | [**PatchedSettingsRequestFlags**](PatchedSettingsRequestFlags.md) | | [optional] ## Example diff --git a/docs/PatchedSettingsRequestFlags.md b/docs/PatchedSettingsRequestFlags.md index b9ebf5be9..6c526420b 100644 --- a/docs/PatchedSettingsRequestFlags.md +++ b/docs/PatchedSettingsRequestFlags.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **policies_buffered_access_view** | **bool** | | +**flows_continuous_login** | **bool** | | +**flows_refresh_others** | **bool** | | ## Example diff --git a/docs/PatchedSourceStageRequest.md b/docs/PatchedSourceStageRequest.md index a2d224c00..019d265d5 100644 --- a/docs/PatchedSourceStageRequest.md +++ b/docs/PatchedSourceStageRequest.md @@ -7,7 +7,6 @@ SourceStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **source** | **str** | | [optional] **resume_timeout** | **str** | Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3) | [optional] diff --git a/docs/PatchedTelegramSourceRequest.md b/docs/PatchedTelegramSourceRequest.md index 8bca37ccb..ba02d54c0 100644 --- a/docs/PatchedTelegramSourceRequest.md +++ b/docs/PatchedTelegramSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | [optional] **slug** | **str** | Internal source name, used in URLs. | [optional] **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **bot_username** | **str** | Telegram bot username | [optional] **bot_token** | **str** | Telegram bot token | [optional] **request_message_access** | **bool** | Request access to send messages from your bot. | [optional] diff --git a/docs/PatchedUserDeleteStageRequest.md b/docs/PatchedUserDeleteStageRequest.md index 30d68ada6..1bc059105 100644 --- a/docs/PatchedUserDeleteStageRequest.md +++ b/docs/PatchedUserDeleteStageRequest.md @@ -7,7 +7,6 @@ UserDeleteStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] ## Example diff --git a/docs/PatchedUserLoginStageRequest.md b/docs/PatchedUserLoginStageRequest.md index 58597a668..ce8f37f2a 100644 --- a/docs/PatchedUserLoginStageRequest.md +++ b/docs/PatchedUserLoginStageRequest.md @@ -7,7 +7,6 @@ UserLoginStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **session_duration** | **str** | Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3) | [optional] **terminate_other_sessions** | **bool** | Terminate all other sessions of the user logging in. | [optional] **remember_me_offset** | **str** | Offset the session will be extended by when the user picks the remember me option. Default of 0 means that the remember me option will not be shown. (Format: hours=-1;minutes=-2;seconds=-3) | [optional] diff --git a/docs/PatchedUserLogoutStageRequest.md b/docs/PatchedUserLogoutStageRequest.md index 882b11ec3..c4b6b864b 100644 --- a/docs/PatchedUserLogoutStageRequest.md +++ b/docs/PatchedUserLogoutStageRequest.md @@ -7,7 +7,6 @@ UserLogoutStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] ## Example diff --git a/docs/PatchedUserRequest.md b/docs/PatchedUserRequest.md index ccfe4f13b..1262caefe 100644 --- a/docs/PatchedUserRequest.md +++ b/docs/PatchedUserRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **is_active** | **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] **last_login** | **datetime** | | [optional] **groups** | **List[str]** | | [optional] +**roles** | **List[str]** | | [optional] **email** | **str** | | [optional] **attributes** | **Dict[str, object]** | | [optional] **path** | **str** | | [optional] diff --git a/docs/PatchedUserWriteStageRequest.md b/docs/PatchedUserWriteStageRequest.md index 63a26c9db..7f21cfc39 100644 --- a/docs/PatchedUserWriteStageRequest.md +++ b/docs/PatchedUserWriteStageRequest.md @@ -7,7 +7,6 @@ UserWriteStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **user_creation_mode** | [**UserCreationModeEnum**](UserCreationModeEnum.md) | | [optional] **create_users_as_inactive** | **bool** | When set, newly created users are inactive and cannot login. | [optional] **create_users_group** | **str** | Optionally add newly created users to this group. | [optional] diff --git a/docs/PlexSource.md b/docs/PlexSource.md index 2022e60ff..03c93255c 100644 --- a/docs/PlexSource.md +++ b/docs/PlexSource.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -22,7 +23,9 @@ Name | Type | Description | Notes **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **managed** | **str** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly] **user_path_template** | **str** | | [optional] -**icon** | **str** | | [readonly] +**icon** | **str** | | [optional] +**icon_url** | **str** | | [readonly] +**icon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **client_id** | **str** | Client identifier used to talk to Plex. | [optional] **allowed_servers** | **List[str]** | Which servers a user has to be a member of to be granted access. Empty list allows every server. | [optional] diff --git a/docs/PlexSourceRequest.md b/docs/PlexSourceRequest.md index 197ee691f..445864f38 100644 --- a/docs/PlexSourceRequest.md +++ b/docs/PlexSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **client_id** | **str** | Client identifier used to talk to Plex. | [optional] **allowed_servers** | **List[str]** | Which servers a user has to be a member of to be granted access. Empty list allows every server. | [optional] diff --git a/docs/Process.md b/docs/Process.md new file mode 100644 index 000000000..f41a8b285 --- /dev/null +++ b/docs/Process.md @@ -0,0 +1,31 @@ +# Process + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**name** | **str** | | +**user** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.process import Process + +# TODO update the JSON string below +json = "{}" +# create an instance of Process from a JSON string +process_instance = Process.from_json(json) +# print the JSON string representation of the object +print(Process.to_json()) + +# convert the object into a dict +process_dict = process_instance.to_dict() +# create an instance of Process from a dict +process_from_dict = Process.from_dict(process_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProcessRequest.md b/docs/ProcessRequest.md new file mode 100644 index 000000000..085cf8444 --- /dev/null +++ b/docs/ProcessRequest.md @@ -0,0 +1,31 @@ +# ProcessRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**name** | **str** | | +**user** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.process_request import ProcessRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ProcessRequest from a JSON string +process_request_instance = ProcessRequest.from_json(json) +# print the JSON string representation of the object +print(ProcessRequest.to_json()) + +# convert the object into a dict +process_request_dict = process_request_instance.to_dict() +# create an instance of ProcessRequest from a dict +process_request_from_dict = ProcessRequest.from_dict(process_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PromptChoice.md b/docs/PromptChoice.md new file mode 100644 index 000000000..4b2c6fe04 --- /dev/null +++ b/docs/PromptChoice.md @@ -0,0 +1,31 @@ +# PromptChoice + +Serializer for a single Choice field + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **str** | | +**label** | **str** | | + +## Example + +```python +from authentik_client.models.prompt_choice import PromptChoice + +# TODO update the JSON string below +json = "{}" +# create an instance of PromptChoice from a JSON string +prompt_choice_instance = PromptChoice.from_json(json) +# print the JSON string representation of the object +print(PromptChoice.to_json()) + +# convert the object into a dict +prompt_choice_dict = prompt_choice_instance.to_dict() +# create an instance of PromptChoice from a dict +prompt_choice_from_dict = PromptChoice.from_dict(prompt_choice_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PromptStage.md b/docs/PromptStage.md index c25d2a14e..f6f15bba5 100644 --- a/docs/PromptStage.md +++ b/docs/PromptStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **fields** | **List[str]** | | **validation_policies** | **List[str]** | | [optional] diff --git a/docs/PromptStageRequest.md b/docs/PromptStageRequest.md index fe4ac6b0b..9b331094c 100644 --- a/docs/PromptStageRequest.md +++ b/docs/PromptStageRequest.md @@ -7,7 +7,6 @@ PromptStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **fields** | **List[str]** | | **validation_policies** | **List[str]** | | [optional] diff --git a/docs/ProviderTypeEnum.md b/docs/ProviderTypeEnum.md index 33a47d439..23ebb3448 100644 --- a/docs/ProviderTypeEnum.md +++ b/docs/ProviderTypeEnum.md @@ -29,10 +29,14 @@ * `REDDIT` (value: `'reddit'`) +* `SLACK` (value: `'slack'`) + * `TWITCH` (value: `'twitch'`) * `TWITTER` (value: `'twitter'`) +* `WECHAT` (value: `'wechat'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProvidersApi.md b/docs/ProvidersApi.md index 05f03dc96..5360a8dfc 100644 --- a/docs/ProvidersApi.md +++ b/docs/ProvidersApi.md @@ -6657,7 +6657,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **providers_saml_import_metadata_create** -> providers_saml_import_metadata_create(name, authorization_flow, invalidation_flow, file) +> SAMLProvider providers_saml_import_metadata_create(name, authorization_flow, invalidation_flow, file) Create provider from SAML Metadata @@ -6667,6 +6667,7 @@ Create provider from SAML Metadata ```python import authentik_client +from authentik_client.models.saml_provider import SAMLProvider from authentik_client.rest import ApiException from pprint import pprint @@ -6696,7 +6697,9 @@ with authentik_client.ApiClient(configuration) as api_client: file = None # bytearray | try: - api_instance.providers_saml_import_metadata_create(name, authorization_flow, invalidation_flow, file) + api_response = api_instance.providers_saml_import_metadata_create(name, authorization_flow, invalidation_flow, file) + print("The response of ProvidersApi->providers_saml_import_metadata_create:\n") + pprint(api_response) except Exception as e: print("Exception when calling ProvidersApi->providers_saml_import_metadata_create: %s\n" % e) ``` @@ -6715,7 +6718,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**SAMLProvider**](SAMLProvider.md) ### Authorization @@ -6730,7 +6733,7 @@ void (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Successfully imported provider | - | +**201** | | - | **400** | Bad request | - | **403** | | - | diff --git a/docs/RbacApi.md b/docs/RbacApi.md index 8171c3d19..448191927 100644 --- a/docs/RbacApi.md +++ b/docs/RbacApi.md @@ -14,25 +14,15 @@ Method | HTTP request | Description [**rbac_permissions_assigned_by_roles_assign**](RbacApi.md#rbac_permissions_assigned_by_roles_assign) | **POST** /rbac/permissions/assigned_by_roles/{uuid}/assign/ | [**rbac_permissions_assigned_by_roles_list**](RbacApi.md#rbac_permissions_assigned_by_roles_list) | **GET** /rbac/permissions/assigned_by_roles/ | [**rbac_permissions_assigned_by_roles_unassign_partial_update**](RbacApi.md#rbac_permissions_assigned_by_roles_unassign_partial_update) | **PATCH** /rbac/permissions/assigned_by_roles/{uuid}/unassign/ | -[**rbac_permissions_assigned_by_users_assign**](RbacApi.md#rbac_permissions_assigned_by_users_assign) | **POST** /rbac/permissions/assigned_by_users/{id}/assign/ | -[**rbac_permissions_assigned_by_users_list**](RbacApi.md#rbac_permissions_assigned_by_users_list) | **GET** /rbac/permissions/assigned_by_users/ | -[**rbac_permissions_assigned_by_users_unassign_partial_update**](RbacApi.md#rbac_permissions_assigned_by_users_unassign_partial_update) | **PATCH** /rbac/permissions/assigned_by_users/{id}/unassign/ | [**rbac_permissions_list**](RbacApi.md#rbac_permissions_list) | **GET** /rbac/permissions/ | [**rbac_permissions_retrieve**](RbacApi.md#rbac_permissions_retrieve) | **GET** /rbac/permissions/{id}/ | -[**rbac_permissions_roles_destroy**](RbacApi.md#rbac_permissions_roles_destroy) | **DELETE** /rbac/permissions/roles/{id}/ | [**rbac_permissions_roles_list**](RbacApi.md#rbac_permissions_roles_list) | **GET** /rbac/permissions/roles/ | -[**rbac_permissions_roles_partial_update**](RbacApi.md#rbac_permissions_roles_partial_update) | **PATCH** /rbac/permissions/roles/{id}/ | -[**rbac_permissions_roles_retrieve**](RbacApi.md#rbac_permissions_roles_retrieve) | **GET** /rbac/permissions/roles/{id}/ | -[**rbac_permissions_roles_update**](RbacApi.md#rbac_permissions_roles_update) | **PUT** /rbac/permissions/roles/{id}/ | -[**rbac_permissions_users_destroy**](RbacApi.md#rbac_permissions_users_destroy) | **DELETE** /rbac/permissions/users/{id}/ | -[**rbac_permissions_users_list**](RbacApi.md#rbac_permissions_users_list) | **GET** /rbac/permissions/users/ | -[**rbac_permissions_users_partial_update**](RbacApi.md#rbac_permissions_users_partial_update) | **PATCH** /rbac/permissions/users/{id}/ | -[**rbac_permissions_users_retrieve**](RbacApi.md#rbac_permissions_users_retrieve) | **GET** /rbac/permissions/users/{id}/ | -[**rbac_permissions_users_update**](RbacApi.md#rbac_permissions_users_update) | **PUT** /rbac/permissions/users/{id}/ | +[**rbac_roles_add_user_create**](RbacApi.md#rbac_roles_add_user_create) | **POST** /rbac/roles/{uuid}/add_user/ | [**rbac_roles_create**](RbacApi.md#rbac_roles_create) | **POST** /rbac/roles/ | [**rbac_roles_destroy**](RbacApi.md#rbac_roles_destroy) | **DELETE** /rbac/roles/{uuid}/ | [**rbac_roles_list**](RbacApi.md#rbac_roles_list) | **GET** /rbac/roles/ | [**rbac_roles_partial_update**](RbacApi.md#rbac_roles_partial_update) | **PATCH** /rbac/roles/{uuid}/ | +[**rbac_roles_remove_user_create**](RbacApi.md#rbac_roles_remove_user_create) | **POST** /rbac/roles/{uuid}/remove_user/ | [**rbac_roles_retrieve**](RbacApi.md#rbac_roles_retrieve) | **GET** /rbac/roles/{uuid}/ | [**rbac_roles_update**](RbacApi.md#rbac_roles_update) | **PUT** /rbac/roles/{uuid}/ | [**rbac_roles_used_by_list**](RbacApi.md#rbac_roles_used_by_list) | **GET** /rbac/roles/{uuid}/used_by/ | @@ -835,90 +825,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_assigned_by_users_assign** -> List[PermissionAssignResult] rbac_permissions_assigned_by_users_assign(id, permission_assign_request) - -Assign permission(s) to user - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.permission_assign_request import PermissionAssignRequest -from authentik_client.models.permission_assign_result import PermissionAssignResult -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this User. - permission_assign_request = authentik_client.PermissionAssignRequest() # PermissionAssignRequest | - - try: - api_response = api_instance.rbac_permissions_assigned_by_users_assign(id, permission_assign_request) - print("The response of RbacApi->rbac_permissions_assigned_by_users_assign:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_assigned_by_users_assign: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this User. | - **permission_assign_request** | [**PermissionAssignRequest**](PermissionAssignRequest.md)| | - -### Return type - -[**List[PermissionAssignResult]**](PermissionAssignResult.md) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_permissions_assigned_by_users_list** -> PaginatedUserAssignedObjectPermissionList rbac_permissions_assigned_by_users_list(model, object_pk=object_pk, ordering=ordering, page=page, page_size=page_size, search=search) +# **rbac_permissions_list** +> PaginatedPermissionList rbac_permissions_list(codename=codename, content_type__app_label=content_type__app_label, content_type__model=content_type__model, ordering=ordering, page=page, page_size=page_size, role=role, search=search, user=user) -Get assigned object permissions for a single object +Read-only list of all permissions, filterable by model and app ### Example @@ -926,7 +836,7 @@ Get assigned object permissions for a single object ```python import authentik_client -from authentik_client.models.paginated_user_assigned_object_permission_list import PaginatedUserAssignedObjectPermissionList +from authentik_client.models.paginated_permission_list import PaginatedPermissionList from authentik_client.rest import ApiException from pprint import pprint @@ -950,19 +860,22 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - model = 'model_example' # str | - object_pk = 'object_pk_example' # str | (optional) + codename = 'codename_example' # str | (optional) + content_type__app_label = 'content_type__app_label_example' # str | (optional) + content_type__model = 'content_type__model_example' # str | (optional) ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) + role = 'role_example' # str | (optional) search = 'search_example' # str | A search term. (optional) + user = 56 # int | (optional) try: - api_response = api_instance.rbac_permissions_assigned_by_users_list(model, object_pk=object_pk, ordering=ordering, page=page, page_size=page_size, search=search) - print("The response of RbacApi->rbac_permissions_assigned_by_users_list:\n") + api_response = api_instance.rbac_permissions_list(codename=codename, content_type__app_label=content_type__app_label, content_type__model=content_type__model, ordering=ordering, page=page, page_size=page_size, role=role, search=search, user=user) + print("The response of RbacApi->rbac_permissions_list:\n") pprint(api_response) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_assigned_by_users_list: %s\n" % e) + print("Exception when calling RbacApi->rbac_permissions_list: %s\n" % e) ``` @@ -972,16 +885,19 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **model** | **str**| | - **object_pk** | **str**| | [optional] + **codename** | **str**| | [optional] + **content_type__app_label** | **str**| | [optional] + **content_type__model** | **str**| | [optional] **ordering** | **str**| Which field to use when ordering the results. | [optional] **page** | **int**| A page number within the paginated result set. | [optional] **page_size** | **int**| Number of results to return per page. | [optional] + **role** | **str**| | [optional] **search** | **str**| A search term. | [optional] + **user** | **int**| | [optional] ### Return type -[**PaginatedUserAssignedObjectPermissionList**](PaginatedUserAssignedObjectPermissionList.md) +[**PaginatedPermissionList**](PaginatedPermissionList.md) ### Authorization @@ -1002,11 +918,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_assigned_by_users_unassign_partial_update** -> rbac_permissions_assigned_by_users_unassign_partial_update(id, patched_permission_assign_request=patched_permission_assign_request) +# **rbac_permissions_retrieve** +> Permission rbac_permissions_retrieve(id) -Unassign permission(s) to user. When `object_pk` is set, the permissions -are only assigned to the specific object, otherwise they are assigned globally. +Read-only list of all permissions, filterable by model and app ### Example @@ -1014,7 +929,7 @@ are only assigned to the specific object, otherwise they are assigned globally. ```python import authentik_client -from authentik_client.models.patched_permission_assign_request import PatchedPermissionAssignRequest +from authentik_client.models.permission import Permission from authentik_client.rest import ApiException from pprint import pprint @@ -1038,13 +953,14 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this User. - patched_permission_assign_request = authentik_client.PatchedPermissionAssignRequest() # PatchedPermissionAssignRequest | (optional) + id = 56 # int | A unique integer value identifying this permission. try: - api_instance.rbac_permissions_assigned_by_users_unassign_partial_update(id, patched_permission_assign_request=patched_permission_assign_request) + api_response = api_instance.rbac_permissions_retrieve(id) + print("The response of RbacApi->rbac_permissions_retrieve:\n") + pprint(api_response) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_assigned_by_users_unassign_partial_update: %s\n" % e) + print("Exception when calling RbacApi->rbac_permissions_retrieve: %s\n" % e) ``` @@ -1054,12 +970,11 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this User. | - **patched_permission_assign_request** | [**PatchedPermissionAssignRequest**](PatchedPermissionAssignRequest.md)| | [optional] + **id** | **int**| A unique integer value identifying this permission. | ### Return type -void (empty response body) +[**Permission**](Permission.md) ### Authorization @@ -1067,23 +982,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Successfully unassigned | - | +**200** | | - | **400** | | - | **403** | | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_list** -> PaginatedPermissionList rbac_permissions_list(codename=codename, content_type__app_label=content_type__app_label, content_type__model=content_type__model, ordering=ordering, page=page, page_size=page_size, role=role, search=search, user=user) +# **rbac_permissions_roles_list** +> PaginatedExtraRoleObjectPermissionList rbac_permissions_roles_list(ordering=ordering, page=page, page_size=page_size, search=search, uuid=uuid) -Read-only list of all permissions, filterable by model and app +Get a role's assigned object permissions ### Example @@ -1091,7 +1006,7 @@ Read-only list of all permissions, filterable by model and app ```python import authentik_client -from authentik_client.models.paginated_permission_list import PaginatedPermissionList +from authentik_client.models.paginated_extra_role_object_permission_list import PaginatedExtraRoleObjectPermissionList from authentik_client.rest import ApiException from pprint import pprint @@ -1115,22 +1030,18 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - codename = 'codename_example' # str | (optional) - content_type__app_label = 'content_type__app_label_example' # str | (optional) - content_type__model = 'content_type__model_example' # str | (optional) ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) page = 56 # int | A page number within the paginated result set. (optional) page_size = 56 # int | Number of results to return per page. (optional) - role = 'role_example' # str | (optional) search = 'search_example' # str | A search term. (optional) - user = 56 # int | (optional) + uuid = 'uuid_example' # str | (optional) try: - api_response = api_instance.rbac_permissions_list(codename=codename, content_type__app_label=content_type__app_label, content_type__model=content_type__model, ordering=ordering, page=page, page_size=page_size, role=role, search=search, user=user) - print("The response of RbacApi->rbac_permissions_list:\n") + api_response = api_instance.rbac_permissions_roles_list(ordering=ordering, page=page, page_size=page_size, search=search, uuid=uuid) + print("The response of RbacApi->rbac_permissions_roles_list:\n") pprint(api_response) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_list: %s\n" % e) + print("Exception when calling RbacApi->rbac_permissions_roles_list: %s\n" % e) ``` @@ -1140,19 +1051,15 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **codename** | **str**| | [optional] - **content_type__app_label** | **str**| | [optional] - **content_type__model** | **str**| | [optional] **ordering** | **str**| Which field to use when ordering the results. | [optional] **page** | **int**| A page number within the paginated result set. | [optional] **page_size** | **int**| Number of results to return per page. | [optional] - **role** | **str**| | [optional] **search** | **str**| A search term. | [optional] - **user** | **int**| | [optional] + **uuid** | **str**| | [optional] ### Return type -[**PaginatedPermissionList**](PaginatedPermissionList.md) +[**PaginatedExtraRoleObjectPermissionList**](PaginatedExtraRoleObjectPermissionList.md) ### Authorization @@ -1173,10 +1080,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_retrieve** -> Permission rbac_permissions_retrieve(id) +# **rbac_roles_add_user_create** +> rbac_roles_add_user_create(uuid, user_account_serializer_for_role_request) -Read-only list of all permissions, filterable by model and app +Add user to role ### Example @@ -1184,7 +1091,7 @@ Read-only list of all permissions, filterable by model and app ```python import authentik_client -from authentik_client.models.permission import Permission +from authentik_client.models.user_account_serializer_for_role_request import UserAccountSerializerForRoleRequest from authentik_client.rest import ApiException from pprint import pprint @@ -1208,14 +1115,13 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this permission. + uuid = 'uuid_example' # str | A UUID string identifying this Role. + user_account_serializer_for_role_request = authentik_client.UserAccountSerializerForRoleRequest() # UserAccountSerializerForRoleRequest | try: - api_response = api_instance.rbac_permissions_retrieve(id) - print("The response of RbacApi->rbac_permissions_retrieve:\n") - pprint(api_response) + api_instance.rbac_roles_add_user_create(uuid, user_account_serializer_for_role_request) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_retrieve: %s\n" % e) + print("Exception when calling RbacApi->rbac_roles_add_user_create: %s\n" % e) ``` @@ -1225,11 +1131,12 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this permission. | + **uuid** | **str**| A UUID string identifying this Role. | + **user_account_serializer_for_role_request** | [**UserAccountSerializerForRoleRequest**](UserAccountSerializerForRoleRequest.md)| | ### Return type -[**Permission**](Permission.md) +void (empty response body) ### Authorization @@ -1237,23 +1144,24 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | | - | +**204** | User added | - | +**404** | User not found | - | **400** | | - | **403** | | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_roles_destroy** -> rbac_permissions_roles_destroy(id) +# **rbac_roles_create** +> Role rbac_roles_create(role_request) -Get a role's assigned object permissions +Role viewset ### Example @@ -1261,6 +1169,8 @@ Get a role's assigned object permissions ```python import authentik_client +from authentik_client.models.role import Role +from authentik_client.models.role_request import RoleRequest from authentik_client.rest import ApiException from pprint import pprint @@ -1284,12 +1194,14 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this group object permission. + role_request = authentik_client.RoleRequest() # RoleRequest | try: - api_instance.rbac_permissions_roles_destroy(id) + api_response = api_instance.rbac_roles_create(role_request) + print("The response of RbacApi->rbac_roles_create:\n") + pprint(api_response) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_roles_destroy: %s\n" % e) + print("Exception when calling RbacApi->rbac_roles_create: %s\n" % e) ``` @@ -1299,11 +1211,11 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this group object permission. | + **role_request** | [**RoleRequest**](RoleRequest.md)| | ### Return type -void (empty response body) +[**Role**](Role.md) ### Authorization @@ -1311,23 +1223,23 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No response body | - | +**201** | | - | **400** | | - | **403** | | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_roles_list** -> PaginatedExtraRoleObjectPermissionList rbac_permissions_roles_list(ordering=ordering, page=page, page_size=page_size, search=search, uuid=uuid) +# **rbac_roles_destroy** +> rbac_roles_destroy(uuid) -Get a role's assigned object permissions +Role viewset ### Example @@ -1335,7 +1247,6 @@ Get a role's assigned object permissions ```python import authentik_client -from authentik_client.models.paginated_extra_role_object_permission_list import PaginatedExtraRoleObjectPermissionList from authentik_client.rest import ApiException from pprint import pprint @@ -1359,18 +1270,12 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) - page = 56 # int | A page number within the paginated result set. (optional) - page_size = 56 # int | Number of results to return per page. (optional) - search = 'search_example' # str | A search term. (optional) - uuid = 'uuid_example' # str | (optional) + uuid = 'uuid_example' # str | A UUID string identifying this Role. try: - api_response = api_instance.rbac_permissions_roles_list(ordering=ordering, page=page, page_size=page_size, search=search, uuid=uuid) - print("The response of RbacApi->rbac_permissions_roles_list:\n") - pprint(api_response) + api_instance.rbac_roles_destroy(uuid) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_roles_list: %s\n" % e) + print("Exception when calling RbacApi->rbac_roles_destroy: %s\n" % e) ``` @@ -1380,15 +1285,11 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ordering** | **str**| Which field to use when ordering the results. | [optional] - **page** | **int**| A page number within the paginated result set. | [optional] - **page_size** | **int**| Number of results to return per page. | [optional] - **search** | **str**| A search term. | [optional] - **uuid** | **str**| | [optional] + **uuid** | **str**| A UUID string identifying this Role. | ### Return type -[**PaginatedExtraRoleObjectPermissionList**](PaginatedExtraRoleObjectPermissionList.md) +void (empty response body) ### Authorization @@ -1403,16 +1304,16 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | | - | +**204** | No response body | - | **400** | | - | **403** | | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_roles_partial_update** -> ExtraRoleObjectPermission rbac_permissions_roles_partial_update(id, patched_extra_role_object_permission_request=patched_extra_role_object_permission_request) +# **rbac_roles_list** +> PaginatedRoleList rbac_roles_list(ak_groups=ak_groups, inherited=inherited, managed=managed, managed__isnull=managed__isnull, name=name, ordering=ordering, page=page, page_size=page_size, search=search, users=users) -Get a role's assigned object permissions +Role viewset ### Example @@ -1420,8 +1321,7 @@ Get a role's assigned object permissions ```python import authentik_client -from authentik_client.models.extra_role_object_permission import ExtraRoleObjectPermission -from authentik_client.models.patched_extra_role_object_permission_request import PatchedExtraRoleObjectPermissionRequest +from authentik_client.models.paginated_role_list import PaginatedRoleList from authentik_client.rest import ApiException from pprint import pprint @@ -1445,15 +1345,23 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this group object permission. - patched_extra_role_object_permission_request = authentik_client.PatchedExtraRoleObjectPermissionRequest() # PatchedExtraRoleObjectPermissionRequest | (optional) + ak_groups = 'ak_groups_example' # str | (optional) + inherited = True # bool | Include inherited roles (requires users or ak_groups filter) (optional) + managed = ['managed_example'] # List[str] | (optional) + managed__isnull = True # bool | (optional) + name = 'name_example' # str | (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + search = 'search_example' # str | A search term. (optional) + users = 56 # int | (optional) try: - api_response = api_instance.rbac_permissions_roles_partial_update(id, patched_extra_role_object_permission_request=patched_extra_role_object_permission_request) - print("The response of RbacApi->rbac_permissions_roles_partial_update:\n") + api_response = api_instance.rbac_roles_list(ak_groups=ak_groups, inherited=inherited, managed=managed, managed__isnull=managed__isnull, name=name, ordering=ordering, page=page, page_size=page_size, search=search, users=users) + print("The response of RbacApi->rbac_roles_list:\n") pprint(api_response) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_roles_partial_update: %s\n" % e) + print("Exception when calling RbacApi->rbac_roles_list: %s\n" % e) ``` @@ -1463,12 +1371,20 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this group object permission. | - **patched_extra_role_object_permission_request** | [**PatchedExtraRoleObjectPermissionRequest**](PatchedExtraRoleObjectPermissionRequest.md)| | [optional] + **ak_groups** | **str**| | [optional] + **inherited** | **bool**| Include inherited roles (requires users or ak_groups filter) | [optional] + **managed** | [**List[str]**](str.md)| | [optional] + **managed__isnull** | **bool**| | [optional] + **name** | **str**| | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **search** | **str**| A search term. | [optional] + **users** | **int**| | [optional] ### Return type -[**ExtraRoleObjectPermission**](ExtraRoleObjectPermission.md) +[**PaginatedRoleList**](PaginatedRoleList.md) ### Authorization @@ -1476,7 +1392,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -1489,10 +1405,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_roles_retrieve** -> ExtraRoleObjectPermission rbac_permissions_roles_retrieve(id) +# **rbac_roles_partial_update** +> Role rbac_roles_partial_update(uuid, patched_role_request=patched_role_request) -Get a role's assigned object permissions +Role viewset ### Example @@ -1500,7 +1416,8 @@ Get a role's assigned object permissions ```python import authentik_client -from authentik_client.models.extra_role_object_permission import ExtraRoleObjectPermission +from authentik_client.models.patched_role_request import PatchedRoleRequest +from authentik_client.models.role import Role from authentik_client.rest import ApiException from pprint import pprint @@ -1524,14 +1441,15 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this group object permission. + uuid = 'uuid_example' # str | A UUID string identifying this Role. + patched_role_request = authentik_client.PatchedRoleRequest() # PatchedRoleRequest | (optional) try: - api_response = api_instance.rbac_permissions_roles_retrieve(id) - print("The response of RbacApi->rbac_permissions_roles_retrieve:\n") + api_response = api_instance.rbac_roles_partial_update(uuid, patched_role_request=patched_role_request) + print("The response of RbacApi->rbac_roles_partial_update:\n") pprint(api_response) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_roles_retrieve: %s\n" % e) + print("Exception when calling RbacApi->rbac_roles_partial_update: %s\n" % e) ``` @@ -1541,11 +1459,12 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this group object permission. | + **uuid** | **str**| A UUID string identifying this Role. | + **patched_role_request** | [**PatchedRoleRequest**](PatchedRoleRequest.md)| | [optional] ### Return type -[**ExtraRoleObjectPermission**](ExtraRoleObjectPermission.md) +[**Role**](Role.md) ### Authorization @@ -1553,7 +1472,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -1566,10 +1485,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **rbac_permissions_roles_update** -> ExtraRoleObjectPermission rbac_permissions_roles_update(id, extra_role_object_permission_request) +# **rbac_roles_remove_user_create** +> rbac_roles_remove_user_create(uuid, user_account_serializer_for_role_request) -Get a role's assigned object permissions +Remove user from role ### Example @@ -1577,8 +1496,7 @@ Get a role's assigned object permissions ```python import authentik_client -from authentik_client.models.extra_role_object_permission import ExtraRoleObjectPermission -from authentik_client.models.extra_role_object_permission_request import ExtraRoleObjectPermissionRequest +from authentik_client.models.user_account_serializer_for_role_request import UserAccountSerializerForRoleRequest from authentik_client.rest import ApiException from pprint import pprint @@ -1602,15 +1520,13 @@ configuration = authentik_client.Configuration( with authentik_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this group object permission. - extra_role_object_permission_request = authentik_client.ExtraRoleObjectPermissionRequest() # ExtraRoleObjectPermissionRequest | + uuid = 'uuid_example' # str | A UUID string identifying this Role. + user_account_serializer_for_role_request = authentik_client.UserAccountSerializerForRoleRequest() # UserAccountSerializerForRoleRequest | try: - api_response = api_instance.rbac_permissions_roles_update(id, extra_role_object_permission_request) - print("The response of RbacApi->rbac_permissions_roles_update:\n") - pprint(api_response) + api_instance.rbac_roles_remove_user_create(uuid, user_account_serializer_for_role_request) except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_roles_update: %s\n" % e) + print("Exception when calling RbacApi->rbac_roles_remove_user_create: %s\n" % e) ``` @@ -1620,12 +1536,12 @@ with authentik_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this group object permission. | - **extra_role_object_permission_request** | [**ExtraRoleObjectPermissionRequest**](ExtraRoleObjectPermissionRequest.md)| | + **uuid** | **str**| A UUID string identifying this Role. | + **user_account_serializer_for_role_request** | [**UserAccountSerializerForRoleRequest**](UserAccountSerializerForRoleRequest.md)| | ### Return type -[**ExtraRoleObjectPermission**](ExtraRoleObjectPermission.md) +void (empty response body) ### Authorization @@ -1640,720 +1556,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_permissions_users_destroy** -> rbac_permissions_users_destroy(id) - -Get a users's assigned object permissions - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this user object permission. - - try: - api_instance.rbac_permissions_users_destroy(id) - except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_users_destroy: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this user object permission. | - -### Return type - -void (empty response body) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**204** | No response body | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_permissions_users_list** -> PaginatedExtraUserObjectPermissionList rbac_permissions_users_list(ordering=ordering, page=page, page_size=page_size, search=search, user_id=user_id) - -Get a users's assigned object permissions - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.paginated_extra_user_object_permission_list import PaginatedExtraUserObjectPermissionList -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) - page = 56 # int | A page number within the paginated result set. (optional) - page_size = 56 # int | Number of results to return per page. (optional) - search = 'search_example' # str | A search term. (optional) - user_id = 56 # int | (optional) - - try: - api_response = api_instance.rbac_permissions_users_list(ordering=ordering, page=page, page_size=page_size, search=search, user_id=user_id) - print("The response of RbacApi->rbac_permissions_users_list:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_users_list: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ordering** | **str**| Which field to use when ordering the results. | [optional] - **page** | **int**| A page number within the paginated result set. | [optional] - **page_size** | **int**| Number of results to return per page. | [optional] - **search** | **str**| A search term. | [optional] - **user_id** | **int**| | [optional] - -### Return type - -[**PaginatedExtraUserObjectPermissionList**](PaginatedExtraUserObjectPermissionList.md) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_permissions_users_partial_update** -> ExtraUserObjectPermission rbac_permissions_users_partial_update(id, patched_extra_user_object_permission_request=patched_extra_user_object_permission_request) - -Get a users's assigned object permissions - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission -from authentik_client.models.patched_extra_user_object_permission_request import PatchedExtraUserObjectPermissionRequest -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this user object permission. - patched_extra_user_object_permission_request = authentik_client.PatchedExtraUserObjectPermissionRequest() # PatchedExtraUserObjectPermissionRequest | (optional) - - try: - api_response = api_instance.rbac_permissions_users_partial_update(id, patched_extra_user_object_permission_request=patched_extra_user_object_permission_request) - print("The response of RbacApi->rbac_permissions_users_partial_update:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_users_partial_update: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this user object permission. | - **patched_extra_user_object_permission_request** | [**PatchedExtraUserObjectPermissionRequest**](PatchedExtraUserObjectPermissionRequest.md)| | [optional] - -### Return type - -[**ExtraUserObjectPermission**](ExtraUserObjectPermission.md) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_permissions_users_retrieve** -> ExtraUserObjectPermission rbac_permissions_users_retrieve(id) - -Get a users's assigned object permissions - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this user object permission. - - try: - api_response = api_instance.rbac_permissions_users_retrieve(id) - print("The response of RbacApi->rbac_permissions_users_retrieve:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_users_retrieve: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this user object permission. | - -### Return type - -[**ExtraUserObjectPermission**](ExtraUserObjectPermission.md) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_permissions_users_update** -> ExtraUserObjectPermission rbac_permissions_users_update(id, extra_user_object_permission_request) - -Get a users's assigned object permissions - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission -from authentik_client.models.extra_user_object_permission_request import ExtraUserObjectPermissionRequest -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - id = 56 # int | A unique integer value identifying this user object permission. - extra_user_object_permission_request = authentik_client.ExtraUserObjectPermissionRequest() # ExtraUserObjectPermissionRequest | - - try: - api_response = api_instance.rbac_permissions_users_update(id, extra_user_object_permission_request) - print("The response of RbacApi->rbac_permissions_users_update:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RbacApi->rbac_permissions_users_update: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **int**| A unique integer value identifying this user object permission. | - **extra_user_object_permission_request** | [**ExtraUserObjectPermissionRequest**](ExtraUserObjectPermissionRequest.md)| | - -### Return type - -[**ExtraUserObjectPermission**](ExtraUserObjectPermission.md) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_roles_create** -> Role rbac_roles_create(role_request) - -Role viewset - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.role import Role -from authentik_client.models.role_request import RoleRequest -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - role_request = authentik_client.RoleRequest() # RoleRequest | - - try: - api_response = api_instance.rbac_roles_create(role_request) - print("The response of RbacApi->rbac_roles_create:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RbacApi->rbac_roles_create: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **role_request** | [**RoleRequest**](RoleRequest.md)| | - -### Return type - -[**Role**](Role.md) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**201** | | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_roles_destroy** -> rbac_roles_destroy(uuid) - -Role viewset - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - uuid = 'uuid_example' # str | A UUID string identifying this Role. - - try: - api_instance.rbac_roles_destroy(uuid) - except Exception as e: - print("Exception when calling RbacApi->rbac_roles_destroy: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **uuid** | **str**| A UUID string identifying this Role. | - -### Return type - -void (empty response body) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**204** | No response body | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_roles_list** -> PaginatedRoleList rbac_roles_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search) - -Role viewset - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.paginated_role_list import PaginatedRoleList -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - name = 'name_example' # str | (optional) - ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) - page = 56 # int | A page number within the paginated result set. (optional) - page_size = 56 # int | Number of results to return per page. (optional) - search = 'search_example' # str | A search term. (optional) - - try: - api_response = api_instance.rbac_roles_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search) - print("The response of RbacApi->rbac_roles_list:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RbacApi->rbac_roles_list: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **name** | **str**| | [optional] - **ordering** | **str**| Which field to use when ordering the results. | [optional] - **page** | **int**| A page number within the paginated result set. | [optional] - **page_size** | **int**| Number of results to return per page. | [optional] - **search** | **str**| A search term. | [optional] - -### Return type - -[**PaginatedRoleList**](PaginatedRoleList.md) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | | - | -**400** | | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **rbac_roles_partial_update** -> Role rbac_roles_partial_update(uuid, patched_role_request=patched_role_request) - -Role viewset - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.patched_role_request import PatchedRoleRequest -from authentik_client.models.role import Role -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.RbacApi(api_client) - uuid = 'uuid_example' # str | A UUID string identifying this Role. - patched_role_request = authentik_client.PatchedRoleRequest() # PatchedRoleRequest | (optional) - - try: - api_response = api_instance.rbac_roles_partial_update(uuid, patched_role_request=patched_role_request) - print("The response of RbacApi->rbac_roles_partial_update:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling RbacApi->rbac_roles_partial_update: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **uuid** | **str**| A UUID string identifying this Role. | - **patched_role_request** | [**PatchedRoleRequest**](PatchedRoleRequest.md)| | [optional] - -### Return type - -[**Role**](Role.md) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | | - | +**204** | User removed | - | +**404** | User not found | - | **400** | | - | **403** | | - | diff --git a/docs/RedirectStage.md b/docs/RedirectStage.md index 134ffb638..571b5e003 100644 --- a/docs/RedirectStage.md +++ b/docs/RedirectStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **keep_context** | **bool** | | [optional] **mode** | [**RedirectStageModeEnum**](RedirectStageModeEnum.md) | | **target_static** | **str** | | [optional] diff --git a/docs/RedirectStageRequest.md b/docs/RedirectStageRequest.md index f06e6bc13..bf3d87eaa 100644 --- a/docs/RedirectStageRequest.md +++ b/docs/RedirectStageRequest.md @@ -7,7 +7,6 @@ RedirectStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **keep_context** | **bool** | | [optional] **mode** | [**RedirectStageModeEnum**](RedirectStageModeEnum.md) | | **target_static** | **str** | | [optional] diff --git a/docs/GroupChild.md b/docs/RelatedGroup.md similarity index 59% rename from docs/GroupChild.md rename to docs/RelatedGroup.md index 19003c959..9d95ba1fc 100644 --- a/docs/GroupChild.md +++ b/docs/RelatedGroup.md @@ -1,6 +1,6 @@ -# GroupChild +# RelatedGroup -Stripped down group serializer to show relevant children for groups +Stripped down group serializer to show relevant children/parents for groups ## Properties @@ -15,19 +15,19 @@ Name | Type | Description | Notes ## Example ```python -from authentik_client.models.group_child import GroupChild +from authentik_client.models.related_group import RelatedGroup # TODO update the JSON string below json = "{}" -# create an instance of GroupChild from a JSON string -group_child_instance = GroupChild.from_json(json) +# create an instance of RelatedGroup from a JSON string +related_group_instance = RelatedGroup.from_json(json) # print the JSON string representation of the object -print(GroupChild.to_json()) +print(RelatedGroup.to_json()) # convert the object into a dict -group_child_dict = group_child_instance.to_dict() -# create an instance of GroupChild from a dict -group_child_from_dict = GroupChild.from_dict(group_child_dict) +related_group_dict = related_group_instance.to_dict() +# create an instance of RelatedGroup from a dict +related_group_from_dict = RelatedGroup.from_dict(related_group_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md new file mode 100644 index 000000000..f84af0a92 --- /dev/null +++ b/docs/ReportsApi.md @@ -0,0 +1,239 @@ +# authentik_client.ReportsApi + +All URIs are relative to */api/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**reports_exports_destroy**](ReportsApi.md#reports_exports_destroy) | **DELETE** /reports/exports/{id}/ | +[**reports_exports_list**](ReportsApi.md#reports_exports_list) | **GET** /reports/exports/ | +[**reports_exports_retrieve**](ReportsApi.md#reports_exports_retrieve) | **GET** /reports/exports/{id}/ | + + +# **reports_exports_destroy** +> reports_exports_destroy(id) + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.ReportsApi(api_client) + id = 'id_example' # str | A UUID string identifying this Data Export. + + try: + api_instance.reports_exports_destroy(id) + except Exception as e: + print("Exception when calling ReportsApi->reports_exports_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| A UUID string identifying this Data Export. | + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **reports_exports_list** +> PaginatedDataExportList reports_exports_list(ordering=ordering, page=page, page_size=page_size, search=search) + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.paginated_data_export_list import PaginatedDataExportList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.ReportsApi(api_client) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + search = 'search_example' # str | A search term. (optional) + + try: + api_response = api_instance.reports_exports_list(ordering=ordering, page=page, page_size=page_size, search=search) + print("The response of ReportsApi->reports_exports_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReportsApi->reports_exports_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **search** | **str**| A search term. | [optional] + +### Return type + +[**PaginatedDataExportList**](PaginatedDataExportList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **reports_exports_retrieve** +> DataExport reports_exports_retrieve(id) + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.data_export import DataExport +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.ReportsApi(api_client) + id = 'id_example' # str | A UUID string identifying this Data Export. + + try: + api_response = api_instance.reports_exports_retrieve(id) + print("The response of ReportsApi->reports_exports_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ReportsApi->reports_exports_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| A UUID string identifying this Data Export. | + +### Return type + +[**DataExport**](DataExport.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/RoleAssignedObjectPermission.md b/docs/RoleAssignedObjectPermission.md index 81325fa66..b2cd61fc4 100644 --- a/docs/RoleAssignedObjectPermission.md +++ b/docs/RoleAssignedObjectPermission.md @@ -8,7 +8,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **role_pk** | **str** | | [readonly] **name** | **str** | | [readonly] -**permissions** | [**List[RoleObjectPermission]**](RoleObjectPermission.md) | | +**object_permissions** | [**List[RoleObjectPermission]**](RoleObjectPermission.md) | | +**model_permissions** | [**List[RoleModelPermission]**](RoleModelPermission.md) | | ## Example diff --git a/docs/UserObjectPermission.md b/docs/RoleModelPermission.md similarity index 52% rename from docs/UserObjectPermission.md rename to docs/RoleModelPermission.md index c28a60a75..371a431a0 100644 --- a/docs/UserObjectPermission.md +++ b/docs/RoleModelPermission.md @@ -1,6 +1,6 @@ -# UserObjectPermission +# RoleModelPermission -User-bound object level permission +Role-bound object level permission ## Properties @@ -10,25 +10,24 @@ Name | Type | Description | Notes **codename** | **str** | | [readonly] **model** | **str** | | [readonly] **app_label** | **str** | | [readonly] -**object_pk** | **str** | | **name** | **str** | | [readonly] ## Example ```python -from authentik_client.models.user_object_permission import UserObjectPermission +from authentik_client.models.role_model_permission import RoleModelPermission # TODO update the JSON string below json = "{}" -# create an instance of UserObjectPermission from a JSON string -user_object_permission_instance = UserObjectPermission.from_json(json) +# create an instance of RoleModelPermission from a JSON string +role_model_permission_instance = RoleModelPermission.from_json(json) # print the JSON string representation of the object -print(UserObjectPermission.to_json()) +print(RoleModelPermission.to_json()) # convert the object into a dict -user_object_permission_dict = user_object_permission_instance.to_dict() -# create an instance of UserObjectPermission from a dict -user_object_permission_from_dict = UserObjectPermission.from_dict(user_object_permission_dict) +role_model_permission_dict = role_model_permission_instance.to_dict() +# create an instance of RoleModelPermission from a dict +role_model_permission_from_dict = RoleModelPermission.from_dict(role_model_permission_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SAMLSource.md b/docs/SAMLSource.md index c037bc580..45abf89cc 100644 --- a/docs/SAMLSource.md +++ b/docs/SAMLSource.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -22,7 +23,9 @@ Name | Type | Description | Notes **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **managed** | **str** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly] **user_path_template** | **str** | | [optional] -**icon** | **str** | | [readonly] +**icon** | **str** | | [optional] +**icon_url** | **str** | | [readonly] +**icon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **pre_authentication_flow** | **str** | Flow used before authentication. | **issuer** | **str** | Also known as Entity ID. Defaults the Metadata URL. | [optional] diff --git a/docs/SAMLSourceRequest.md b/docs/SAMLSourceRequest.md index 29b584227..3afaad075 100644 --- a/docs/SAMLSourceRequest.md +++ b/docs/SAMLSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **group_matching_mode** | [**GroupMatchingModeEnum**](GroupMatchingModeEnum.md) | How the source determines if an existing group should be used or a new group created. | [optional] **pre_authentication_flow** | **str** | Flow used before authentication. | **issuer** | **str** | Also known as Entity ID. Defaults the Metadata URL. | [optional] diff --git a/docs/SCIMProvider.md b/docs/SCIMProvider.md index 89150450e..d88242434 100644 --- a/docs/SCIMProvider.md +++ b/docs/SCIMProvider.md @@ -23,8 +23,11 @@ Name | Type | Description | Notes **auth_oauth** | **str** | OAuth Source used for authentication | [optional] **auth_oauth_params** | **Dict[str, object]** | Additional OAuth parameters, such as grant_type | [optional] **compatibility_mode** | [**CompatibilityModeEnum**](CompatibilityModeEnum.md) | Alter authentik behavior for vendor-specific SCIM implementations. | [optional] +**service_provider_config_cache_timeout** | **str** | Cache duration for ServiceProviderConfig responses. Set minutes=0 to disable. | [optional] **exclude_users_service_account** | **bool** | | [optional] **filter_group** | **str** | | [optional] +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/SCIMProviderRequest.md b/docs/SCIMProviderRequest.md index d9c6240eb..7a0145abd 100644 --- a/docs/SCIMProviderRequest.md +++ b/docs/SCIMProviderRequest.md @@ -16,8 +16,11 @@ Name | Type | Description | Notes **auth_oauth** | **str** | OAuth Source used for authentication | [optional] **auth_oauth_params** | **Dict[str, object]** | Additional OAuth parameters, such as grant_type | [optional] **compatibility_mode** | [**CompatibilityModeEnum**](CompatibilityModeEnum.md) | Alter authentik behavior for vendor-specific SCIM implementations. | [optional] +**service_provider_config_cache_timeout** | **str** | Cache duration for ServiceProviderConfig responses. Set minutes=0 to disable. | [optional] **exclude_users_service_account** | **bool** | | [optional] **filter_group** | **str** | | [optional] +**sync_page_size** | **int** | Controls the number of objects synced in a single task | [optional] +**sync_page_timeout** | **str** | Timeout for synchronization of a single page | [optional] **dry_run** | **bool** | When enabled, provider will not modify or create objects in the remote system. | [optional] ## Example diff --git a/docs/Settings.md b/docs/Settings.md index c7bad6781..54b5d24b0 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -19,6 +19,8 @@ Name | Type | Description | Notes **impersonation_require_reason** | **bool** | Require administrators to provide a reason for impersonating a user. | [optional] **default_token_duration** | **str** | Default token duration | [optional] **default_token_length** | **int** | Default token length | [optional] +**pagination_default_page_size** | **int** | Default page size for API responses, if no size was requested. | [optional] +**pagination_max_page_size** | **int** | Maximum page size | [optional] **flags** | [**PatchedSettingsRequestFlags**](PatchedSettingsRequestFlags.md) | | ## Example diff --git a/docs/SettingsRequest.md b/docs/SettingsRequest.md index a670db211..65cb38743 100644 --- a/docs/SettingsRequest.md +++ b/docs/SettingsRequest.md @@ -19,6 +19,8 @@ Name | Type | Description | Notes **impersonation_require_reason** | **bool** | Require administrators to provide a reason for impersonating a user. | [optional] **default_token_duration** | **str** | Default token duration | [optional] **default_token_length** | **int** | Default token length | [optional] +**pagination_default_page_size** | **int** | Default page size for API responses, if no size was requested. | [optional] +**pagination_max_page_size** | **int** | Maximum page size | [optional] **flags** | [**PatchedSettingsRequestFlags**](PatchedSettingsRequestFlags.md) | | ## Example diff --git a/docs/Software.md b/docs/Software.md new file mode 100644 index 000000000..32d020d5d --- /dev/null +++ b/docs/Software.md @@ -0,0 +1,32 @@ +# Software + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**version** | **str** | | [optional] +**source** | **str** | | +**path** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.software import Software + +# TODO update the JSON string below +json = "{}" +# create an instance of Software from a JSON string +software_instance = Software.from_json(json) +# print the JSON string representation of the object +print(Software.to_json()) + +# convert the object into a dict +software_dict = software_instance.to_dict() +# create an instance of Software from a dict +software_from_dict = Software.from_dict(software_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SoftwareRequest.md b/docs/SoftwareRequest.md new file mode 100644 index 000000000..4bd2e9db8 --- /dev/null +++ b/docs/SoftwareRequest.md @@ -0,0 +1,32 @@ +# SoftwareRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**version** | **str** | | [optional] +**source** | **str** | | +**path** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.software_request import SoftwareRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SoftwareRequest from a JSON string +software_request_instance = SoftwareRequest.from_json(json) +# print the JSON string representation of the object +print(SoftwareRequest.to_json()) + +# convert the object into a dict +software_request_dict = software_request_instance.to_dict() +# create an instance of SoftwareRequest from a dict +software_request_from_dict = SoftwareRequest.from_dict(software_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Source.md b/docs/Source.md index 69197b251..947953230 100644 --- a/docs/Source.md +++ b/docs/Source.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -22,7 +23,9 @@ Name | Type | Description | Notes **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **managed** | **str** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly] **user_path_template** | **str** | | [optional] -**icon** | **str** | Get the URL to the Icon. If the name is /static or starts with http it is returned as-is | [readonly] +**icon** | **str** | | [optional] +**icon_url** | **str** | Get the URL to the source icon | [readonly] +**icon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] ## Example diff --git a/docs/SourceStage.md b/docs/SourceStage.md index 9c166ab95..5cae2b064 100644 --- a/docs/SourceStage.md +++ b/docs/SourceStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **source** | **str** | | **resume_timeout** | **str** | Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3) | [optional] diff --git a/docs/SourceStageRequest.md b/docs/SourceStageRequest.md index 1aa928225..3f8085ba3 100644 --- a/docs/SourceStageRequest.md +++ b/docs/SourceStageRequest.md @@ -7,7 +7,6 @@ SourceStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **source** | **str** | | **resume_timeout** | **str** | Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3) | [optional] diff --git a/docs/SourcesApi.md b/docs/SourcesApi.md index 18224f84e..3b2a46fc8 100644 --- a/docs/SourcesApi.md +++ b/docs/SourcesApi.md @@ -7,8 +7,6 @@ Method | HTTP request | Description [**sources_all_destroy**](SourcesApi.md#sources_all_destroy) | **DELETE** /sources/all/{slug}/ | [**sources_all_list**](SourcesApi.md#sources_all_list) | **GET** /sources/all/ | [**sources_all_retrieve**](SourcesApi.md#sources_all_retrieve) | **GET** /sources/all/{slug}/ | -[**sources_all_set_icon_create**](SourcesApi.md#sources_all_set_icon_create) | **POST** /sources/all/{slug}/set_icon/ | -[**sources_all_set_icon_url_create**](SourcesApi.md#sources_all_set_icon_url_create) | **POST** /sources/all/{slug}/set_icon_url/ | [**sources_all_types_list**](SourcesApi.md#sources_all_types_list) | **GET** /sources/all/types/ | [**sources_all_used_by_list**](SourcesApi.md#sources_all_used_by_list) | **GET** /sources/all/{slug}/used_by/ | [**sources_all_user_settings_list**](SourcesApi.md#sources_all_user_settings_list) | **GET** /sources/all/user_settings/ | @@ -123,6 +121,7 @@ Method | HTTP request | Description [**sources_scim_users_retrieve**](SourcesApi.md#sources_scim_users_retrieve) | **GET** /sources/scim_users/{id}/ | [**sources_scim_users_update**](SourcesApi.md#sources_scim_users_update) | **PUT** /sources/scim_users/{id}/ | [**sources_scim_users_used_by_list**](SourcesApi.md#sources_scim_users_used_by_list) | **GET** /sources/scim_users/{id}/used_by/ | +[**sources_telegram_connect_user_create**](SourcesApi.md#sources_telegram_connect_user_create) | **POST** /sources/telegram/{slug}/connect_user/ | [**sources_telegram_create**](SourcesApi.md#sources_telegram_create) | **POST** /sources/telegram/ | [**sources_telegram_destroy**](SourcesApi.md#sources_telegram_destroy) | **DELETE** /sources/telegram/{slug}/ | [**sources_telegram_list**](SourcesApi.md#sources_telegram_list) | **GET** /sources/telegram/ | @@ -422,161 +421,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **sources_all_set_icon_create** -> sources_all_set_icon_create(slug, file=file, clear=clear) - -Set source icon - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.SourcesApi(api_client) - slug = 'slug_example' # str | - file = None # bytearray | (optional) - clear = False # bool | (optional) (default to False) - - try: - api_instance.sources_all_set_icon_create(slug, file=file, clear=clear) - except Exception as e: - print("Exception when calling SourcesApi->sources_all_set_icon_create: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **slug** | **str**| | - **file** | **bytearray**| | [optional] - **clear** | **bool**| | [optional] [default to False] - -### Return type - -void (empty response body) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: multipart/form-data - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad request | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **sources_all_set_icon_url_create** -> sources_all_set_icon_url_create(slug, file_path_request) - -Set source icon (as URL) - -### Example - -* Bearer Authentication (authentik): - -```python -import authentik_client -from authentik_client.models.file_path_request import FilePathRequest -from authentik_client.rest import ApiException -from pprint import pprint - -# Defining the host is optional and defaults to /api/v3 -# See configuration.py for a list of all supported configuration parameters. -configuration = authentik_client.Configuration( - host = "/api/v3" -) - -# The client must configure the authentication and authorization parameters -# in accordance with the API server security policy. -# Examples for each auth method are provided below, use the example that -# satisfies your auth use case. - -# Configure Bearer authorization: authentik -configuration = authentik_client.Configuration( - access_token = os.environ["BEARER_TOKEN"] -) - -# Enter a context with an instance of the API client -with authentik_client.ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = authentik_client.SourcesApi(api_client) - slug = 'slug_example' # str | - file_path_request = authentik_client.FilePathRequest() # FilePathRequest | - - try: - api_instance.sources_all_set_icon_url_create(slug, file_path_request) - except Exception as e: - print("Exception when calling SourcesApi->sources_all_set_icon_url_create: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **slug** | **str**| | - **file_path_request** | [**FilePathRequest**](FilePathRequest.md)| | - -### Return type - -void (empty response body) - -### Authorization - -[authentik](../README.md#authentik) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | Success | - | -**400** | Bad request | - | -**403** | | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **sources_all_types_list** > List[TypeCreate] sources_all_types_list() @@ -9725,6 +9569,86 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **sources_telegram_connect_user_create** +> UserTelegramSourceConnection sources_telegram_connect_user_create(slug, telegram_auth_request) + +Mixin to add a used_by endpoint to return a list of all objects using this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.telegram_auth_request import TelegramAuthRequest +from authentik_client.models.user_telegram_source_connection import UserTelegramSourceConnection +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.SourcesApi(api_client) + slug = 'slug_example' # str | + telegram_auth_request = authentik_client.TelegramAuthRequest() # TelegramAuthRequest | + + try: + api_response = api_instance.sources_telegram_connect_user_create(slug, telegram_auth_request) + print("The response of SourcesApi->sources_telegram_connect_user_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SourcesApi->sources_telegram_connect_user_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **slug** | **str**| | + **telegram_auth_request** | [**TelegramAuthRequest**](TelegramAuthRequest.md)| | + +### Return type + +[**UserTelegramSourceConnection**](UserTelegramSourceConnection.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | | - | +**403** | Access denied | - | +**400** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **sources_telegram_create** > TelegramSource sources_telegram_create(telegram_source_request) diff --git a/docs/Stage.md b/docs/Stage.md index 89a37a678..7d7c5e0fd 100644 --- a/docs/Stage.md +++ b/docs/Stage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] ## Example diff --git a/docs/MutualTLSStageModeEnum.md b/docs/StageModeEnum.md similarity index 90% rename from docs/MutualTLSStageModeEnum.md rename to docs/StageModeEnum.md index c4fd1ed0d..1152c3612 100644 --- a/docs/MutualTLSStageModeEnum.md +++ b/docs/StageModeEnum.md @@ -1,4 +1,4 @@ -# MutualTLSStageModeEnum +# StageModeEnum ## Enum diff --git a/docs/StagePrompt.md b/docs/StagePrompt.md index bd71aede6..25852c9bd 100644 --- a/docs/StagePrompt.md +++ b/docs/StagePrompt.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **initial_value** | **str** | | **order** | **int** | | **sub_text** | **str** | | -**choices** | **List[str]** | | +**choices** | [**List[PromptChoice]**](PromptChoice.md) | | ## Example diff --git a/docs/StagesApi.md b/docs/StagesApi.md index b2b833bb7..101972fae 100644 --- a/docs/StagesApi.md +++ b/docs/StagesApi.md @@ -107,6 +107,13 @@ Method | HTTP request | Description [**stages_email_templates_list**](StagesApi.md#stages_email_templates_list) | **GET** /stages/email/templates/ | [**stages_email_update**](StagesApi.md#stages_email_update) | **PUT** /stages/email/{stage_uuid}/ | [**stages_email_used_by_list**](StagesApi.md#stages_email_used_by_list) | **GET** /stages/email/{stage_uuid}/used_by/ | +[**stages_endpoints_create**](StagesApi.md#stages_endpoints_create) | **POST** /stages/endpoints/ | +[**stages_endpoints_destroy**](StagesApi.md#stages_endpoints_destroy) | **DELETE** /stages/endpoints/{stage_uuid}/ | +[**stages_endpoints_list**](StagesApi.md#stages_endpoints_list) | **GET** /stages/endpoints/ | +[**stages_endpoints_partial_update**](StagesApi.md#stages_endpoints_partial_update) | **PATCH** /stages/endpoints/{stage_uuid}/ | +[**stages_endpoints_retrieve**](StagesApi.md#stages_endpoints_retrieve) | **GET** /stages/endpoints/{stage_uuid}/ | +[**stages_endpoints_update**](StagesApi.md#stages_endpoints_update) | **PUT** /stages/endpoints/{stage_uuid}/ | +[**stages_endpoints_used_by_list**](StagesApi.md#stages_endpoints_used_by_list) | **GET** /stages/endpoints/{stage_uuid}/used_by/ | [**stages_identification_create**](StagesApi.md#stages_identification_create) | **POST** /stages/identification/ | [**stages_identification_destroy**](StagesApi.md#stages_identification_destroy) | **DELETE** /stages/identification/{stage_uuid}/ | [**stages_identification_list**](StagesApi.md#stages_identification_list) | **GET** /stages/identification/ | @@ -8431,6 +8438,557 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **stages_endpoints_create** +> EndpointStage stages_endpoints_create(endpoint_stage_request) + +EndpointStage Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.endpoint_stage import EndpointStage +from authentik_client.models.endpoint_stage_request import EndpointStageRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.StagesApi(api_client) + endpoint_stage_request = authentik_client.EndpointStageRequest() # EndpointStageRequest | + + try: + api_response = api_instance.stages_endpoints_create(endpoint_stage_request) + print("The response of StagesApi->stages_endpoints_create:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StagesApi->stages_endpoints_create: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **endpoint_stage_request** | [**EndpointStageRequest**](EndpointStageRequest.md)| | + +### Return type + +[**EndpointStage**](EndpointStage.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stages_endpoints_destroy** +> stages_endpoints_destroy(stage_uuid) + +EndpointStage Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.StagesApi(api_client) + stage_uuid = 'stage_uuid_example' # str | A UUID string identifying this Endpoint Stage. + + try: + api_instance.stages_endpoints_destroy(stage_uuid) + except Exception as e: + print("Exception when calling StagesApi->stages_endpoints_destroy: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stage_uuid** | **str**| A UUID string identifying this Endpoint Stage. | + +### Return type + +void (empty response body) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No response body | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stages_endpoints_list** +> PaginatedEndpointStageList stages_endpoints_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search) + +EndpointStage Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.paginated_endpoint_stage_list import PaginatedEndpointStageList +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.StagesApi(api_client) + name = 'name_example' # str | (optional) + ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional) + page = 56 # int | A page number within the paginated result set. (optional) + page_size = 56 # int | Number of results to return per page. (optional) + search = 'search_example' # str | A search term. (optional) + + try: + api_response = api_instance.stages_endpoints_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search) + print("The response of StagesApi->stages_endpoints_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StagesApi->stages_endpoints_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| | [optional] + **ordering** | **str**| Which field to use when ordering the results. | [optional] + **page** | **int**| A page number within the paginated result set. | [optional] + **page_size** | **int**| Number of results to return per page. | [optional] + **search** | **str**| A search term. | [optional] + +### Return type + +[**PaginatedEndpointStageList**](PaginatedEndpointStageList.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stages_endpoints_partial_update** +> EndpointStage stages_endpoints_partial_update(stage_uuid, patched_endpoint_stage_request=patched_endpoint_stage_request) + +EndpointStage Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.endpoint_stage import EndpointStage +from authentik_client.models.patched_endpoint_stage_request import PatchedEndpointStageRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.StagesApi(api_client) + stage_uuid = 'stage_uuid_example' # str | A UUID string identifying this Endpoint Stage. + patched_endpoint_stage_request = authentik_client.PatchedEndpointStageRequest() # PatchedEndpointStageRequest | (optional) + + try: + api_response = api_instance.stages_endpoints_partial_update(stage_uuid, patched_endpoint_stage_request=patched_endpoint_stage_request) + print("The response of StagesApi->stages_endpoints_partial_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StagesApi->stages_endpoints_partial_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stage_uuid** | **str**| A UUID string identifying this Endpoint Stage. | + **patched_endpoint_stage_request** | [**PatchedEndpointStageRequest**](PatchedEndpointStageRequest.md)| | [optional] + +### Return type + +[**EndpointStage**](EndpointStage.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stages_endpoints_retrieve** +> EndpointStage stages_endpoints_retrieve(stage_uuid) + +EndpointStage Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.endpoint_stage import EndpointStage +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.StagesApi(api_client) + stage_uuid = 'stage_uuid_example' # str | A UUID string identifying this Endpoint Stage. + + try: + api_response = api_instance.stages_endpoints_retrieve(stage_uuid) + print("The response of StagesApi->stages_endpoints_retrieve:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StagesApi->stages_endpoints_retrieve: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stage_uuid** | **str**| A UUID string identifying this Endpoint Stage. | + +### Return type + +[**EndpointStage**](EndpointStage.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stages_endpoints_update** +> EndpointStage stages_endpoints_update(stage_uuid, endpoint_stage_request) + +EndpointStage Viewset + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.endpoint_stage import EndpointStage +from authentik_client.models.endpoint_stage_request import EndpointStageRequest +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.StagesApi(api_client) + stage_uuid = 'stage_uuid_example' # str | A UUID string identifying this Endpoint Stage. + endpoint_stage_request = authentik_client.EndpointStageRequest() # EndpointStageRequest | + + try: + api_response = api_instance.stages_endpoints_update(stage_uuid, endpoint_stage_request) + print("The response of StagesApi->stages_endpoints_update:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StagesApi->stages_endpoints_update: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stage_uuid** | **str**| A UUID string identifying this Endpoint Stage. | + **endpoint_stage_request** | [**EndpointStageRequest**](EndpointStageRequest.md)| | + +### Return type + +[**EndpointStage**](EndpointStage.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **stages_endpoints_used_by_list** +> List[UsedBy] stages_endpoints_used_by_list(stage_uuid) + +Get a list of all objects that use this object + +### Example + +* Bearer Authentication (authentik): + +```python +import authentik_client +from authentik_client.models.used_by import UsedBy +from authentik_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to /api/v3 +# See configuration.py for a list of all supported configuration parameters. +configuration = authentik_client.Configuration( + host = "/api/v3" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: authentik +configuration = authentik_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with authentik_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = authentik_client.StagesApi(api_client) + stage_uuid = 'stage_uuid_example' # str | A UUID string identifying this Endpoint Stage. + + try: + api_response = api_instance.stages_endpoints_used_by_list(stage_uuid) + print("The response of StagesApi->stages_endpoints_used_by_list:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling StagesApi->stages_endpoints_used_by_list: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stage_uuid** | **str**| A UUID string identifying this Endpoint Stage. | + +### Return type + +[**List[UsedBy]**](UsedBy.md) + +### Authorization + +[authentik](../README.md#authentik) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**400** | | - | +**403** | | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **stages_identification_create** > IdentificationStage stages_identification_create(identification_stage_request) @@ -8584,7 +9142,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **stages_identification_list** -> PaginatedIdentificationStageList stages_identification_list(captcha_stage=captcha_stage, case_insensitive_matching=case_insensitive_matching, enrollment_flow=enrollment_flow, name=name, ordering=ordering, page=page, page_size=page_size, password_stage=password_stage, passwordless_flow=passwordless_flow, recovery_flow=recovery_flow, search=search, show_matched_user=show_matched_user, show_source_labels=show_source_labels) +> PaginatedIdentificationStageList stages_identification_list(captcha_stage=captcha_stage, case_insensitive_matching=case_insensitive_matching, enrollment_flow=enrollment_flow, name=name, ordering=ordering, page=page, page_size=page_size, password_stage=password_stage, passwordless_flow=passwordless_flow, recovery_flow=recovery_flow, search=search, show_matched_user=show_matched_user, show_source_labels=show_source_labels, webauthn_stage=webauthn_stage) IdentificationStage Viewset @@ -8631,9 +9189,10 @@ with authentik_client.ApiClient(configuration) as api_client: search = 'search_example' # str | A search term. (optional) show_matched_user = True # bool | (optional) show_source_labels = True # bool | (optional) + webauthn_stage = 'webauthn_stage_example' # str | (optional) try: - api_response = api_instance.stages_identification_list(captcha_stage=captcha_stage, case_insensitive_matching=case_insensitive_matching, enrollment_flow=enrollment_flow, name=name, ordering=ordering, page=page, page_size=page_size, password_stage=password_stage, passwordless_flow=passwordless_flow, recovery_flow=recovery_flow, search=search, show_matched_user=show_matched_user, show_source_labels=show_source_labels) + api_response = api_instance.stages_identification_list(captcha_stage=captcha_stage, case_insensitive_matching=case_insensitive_matching, enrollment_flow=enrollment_flow, name=name, ordering=ordering, page=page, page_size=page_size, password_stage=password_stage, passwordless_flow=passwordless_flow, recovery_flow=recovery_flow, search=search, show_matched_user=show_matched_user, show_source_labels=show_source_labels, webauthn_stage=webauthn_stage) print("The response of StagesApi->stages_identification_list:\n") pprint(api_response) except Exception as e: @@ -8660,6 +9219,7 @@ Name | Type | Description | Notes **search** | **str**| A search term. | [optional] **show_matched_user** | **bool**| | [optional] **show_source_labels** | **bool**| | [optional] + **webauthn_stage** | **str**| | [optional] ### Return type diff --git a/docs/SyncOutgoingTriggerModeEnum.md b/docs/SyncOutgoingTriggerModeEnum.md new file mode 100644 index 000000000..6f39f7662 --- /dev/null +++ b/docs/SyncOutgoingTriggerModeEnum.md @@ -0,0 +1,14 @@ +# SyncOutgoingTriggerModeEnum + + +## Enum + +* `NONE` (value: `'none'`) + +* `IMMEDIATE` (value: `'immediate'`) + +* `DEFERRED_END` (value: `'deferred_end'`) + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TelegramAuthRequest.md b/docs/TelegramAuthRequest.md new file mode 100644 index 000000000..31af9573d --- /dev/null +++ b/docs/TelegramAuthRequest.md @@ -0,0 +1,35 @@ +# TelegramAuthRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**first_name** | **str** | | [optional] +**last_name** | **str** | | [optional] +**username** | **str** | | [optional] +**photo_url** | **str** | | [optional] +**auth_date** | **int** | | +**hash** | **str** | | + +## Example + +```python +from authentik_client.models.telegram_auth_request import TelegramAuthRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of TelegramAuthRequest from a JSON string +telegram_auth_request_instance = TelegramAuthRequest.from_json(json) +# print the JSON string representation of the object +print(TelegramAuthRequest.to_json()) + +# convert the object into a dict +telegram_auth_request_dict = telegram_auth_request_instance.to_dict() +# create an instance of TelegramAuthRequest from a dict +telegram_auth_request_from_dict = TelegramAuthRequest.from_dict(telegram_auth_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TelegramChallengeResponseRequest.md b/docs/TelegramChallengeResponseRequest.md index ed7055e17..5a1bd9688 100644 --- a/docs/TelegramChallengeResponseRequest.md +++ b/docs/TelegramChallengeResponseRequest.md @@ -6,7 +6,6 @@ Base class for all challenge responses Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**component** | **str** | | [optional] [default to 'ak-source-telegram'] **id** | **int** | | **first_name** | **str** | | [optional] **last_name** | **str** | | [optional] @@ -14,6 +13,7 @@ Name | Type | Description | Notes **photo_url** | **str** | | [optional] **auth_date** | **int** | | **hash** | **str** | | +**component** | **str** | | [optional] [default to 'ak-source-telegram'] ## Example diff --git a/docs/TelegramSource.md b/docs/TelegramSource.md index 0aedde6d3..251510093 100644 --- a/docs/TelegramSource.md +++ b/docs/TelegramSource.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -22,7 +23,9 @@ Name | Type | Description | Notes **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **managed** | **str** | Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update. | [readonly] **user_path_template** | **str** | | [optional] -**icon** | **str** | | [readonly] +**icon** | **str** | | [optional] +**icon_url** | **str** | | [readonly] +**icon_themed_urls** | [**ThemedUrls**](ThemedUrls.md) | | [readonly] **bot_username** | **str** | Telegram bot username | **request_message_access** | **bool** | Request access to send messages from your bot. | [optional] **pre_authentication_flow** | **str** | Flow used before authentication. | diff --git a/docs/TelegramSourceRequest.md b/docs/TelegramSourceRequest.md index 612f42bc8..211d81369 100644 --- a/docs/TelegramSourceRequest.md +++ b/docs/TelegramSourceRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | Source's display Name. | **slug** | **str** | Internal source name, used in URLs. | **enabled** | **bool** | | [optional] +**promoted** | **bool** | When enabled, this source will be displayed as a prominent button on the login page, instead of a small icon. | [optional] **authentication_flow** | **str** | Flow to use when authenticating existing users. | [optional] **enrollment_flow** | **str** | Flow to use when enrolling new users. | [optional] **user_property_mappings** | **List[str]** | | [optional] @@ -16,6 +17,7 @@ Name | Type | Description | Notes **policy_engine_mode** | [**PolicyEngineMode**](PolicyEngineMode.md) | | [optional] **user_matching_mode** | [**UserMatchingModeEnum**](UserMatchingModeEnum.md) | How the source determines if an existing user should be authenticated or a new user enrolled. | [optional] **user_path_template** | **str** | | [optional] +**icon** | **str** | | [optional] **bot_username** | **str** | Telegram bot username | **bot_token** | **str** | Telegram bot token | **request_message_access** | **bool** | Request access to send messages from your bot. | [optional] diff --git a/docs/ThemedUrls.md b/docs/ThemedUrls.md new file mode 100644 index 000000000..6b70aeaea --- /dev/null +++ b/docs/ThemedUrls.md @@ -0,0 +1,31 @@ +# ThemedUrls + +Themed URLs - maps theme names to URLs for light and dark themes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**light** | **str** | | [optional] +**dark** | **str** | | [optional] + +## Example + +```python +from authentik_client.models.themed_urls import ThemedUrls + +# TODO update the JSON string below +json = "{}" +# create an instance of ThemedUrls from a JSON string +themed_urls_instance = ThemedUrls.from_json(json) +# print the JSON string representation of the object +print(ThemedUrls.to_json()) + +# convert the object into a dict +themed_urls_dict = themed_urls_instance.to_dict() +# create an instance of ThemedUrls from a dict +themed_urls_from_dict = ThemedUrls.from_dict(themed_urls_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TokenModel.md b/docs/TokenModel.md index 0b67eda77..9024cbf04 100644 --- a/docs/TokenModel.md +++ b/docs/TokenModel.md @@ -7,7 +7,7 @@ Serializer for BaseGrantModel and RefreshToken Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pk** | **int** | | [readonly] -**provider** | [**OAuth2Provider**](OAuth2Provider.md) | | +**provider** | [**Provider**](Provider.md) | | **user** | [**User**](User.md) | | **is_expired** | **bool** | Check if token is expired yet. | [readonly] **expires** | **datetime** | | [optional] diff --git a/docs/TokenSetKeyRequest.md b/docs/TokenSetKeyRequest.md index 4998ce43f..1c5847db4 100644 --- a/docs/TokenSetKeyRequest.md +++ b/docs/TokenSetKeyRequest.md @@ -1,5 +1,6 @@ # TokenSetKeyRequest +Set token's key ## Properties diff --git a/docs/TypeCreate.md b/docs/TypeCreate.md index 462141a5e..6fc088043 100644 --- a/docs/TypeCreate.md +++ b/docs/TypeCreate.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **model_name** | **str** | | **icon_url** | **str** | | [optional] **requires_enterprise** | **bool** | | [optional] [default to False] +**deprecated** | **bool** | | [optional] [default to False] ## Example diff --git a/docs/UsedByActionEnum.md b/docs/UsedByActionEnum.md index f2d5c8a1c..c0025e66b 100644 --- a/docs/UsedByActionEnum.md +++ b/docs/UsedByActionEnum.md @@ -11,6 +11,8 @@ * `SET_DEFAULT` (value: `'set_default'`) +* `LEFT_DANGLING` (value: `'left_dangling'`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/User.md b/docs/User.md index 2a7cee574..600c69643 100644 --- a/docs/User.md +++ b/docs/User.md @@ -15,6 +15,8 @@ Name | Type | Description | Notes **is_superuser** | **bool** | | [readonly] **groups** | **List[str]** | | [optional] **groups_obj** | [**List[PartialGroup]**](PartialGroup.md) | | [readonly] +**roles** | **List[str]** | | [optional] +**roles_obj** | [**List[Role]**](Role.md) | | [readonly] **email** | **str** | | [optional] **avatar** | **str** | User's avatar, either a http/https URL or a data URI | [readonly] **attributes** | **Dict[str, object]** | | [optional] diff --git a/docs/UserAccountSerializerForRoleRequest.md b/docs/UserAccountSerializerForRoleRequest.md new file mode 100644 index 000000000..fae89a75c --- /dev/null +++ b/docs/UserAccountSerializerForRoleRequest.md @@ -0,0 +1,30 @@ +# UserAccountSerializerForRoleRequest + +Account adding/removing operations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pk** | **int** | | + +## Example + +```python +from authentik_client.models.user_account_serializer_for_role_request import UserAccountSerializerForRoleRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UserAccountSerializerForRoleRequest from a JSON string +user_account_serializer_for_role_request_instance = UserAccountSerializerForRoleRequest.from_json(json) +# print the JSON string representation of the object +print(UserAccountSerializerForRoleRequest.to_json()) + +# convert the object into a dict +user_account_serializer_for_role_request_dict = user_account_serializer_for_role_request_instance.to_dict() +# create an instance of UserAccountSerializerForRoleRequest from a dict +user_account_serializer_for_role_request_from_dict = UserAccountSerializerForRoleRequest.from_dict(user_account_serializer_for_role_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserAssignedObjectPermission.md b/docs/UserAssignedObjectPermission.md deleted file mode 100644 index 3e5205cd9..000000000 --- a/docs/UserAssignedObjectPermission.md +++ /dev/null @@ -1,39 +0,0 @@ -# UserAssignedObjectPermission - -Users assigned object permission serializer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pk** | **int** | | [readonly] -**username** | **str** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | -**name** | **str** | User's display name. | -**is_active** | **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] -**last_login** | **datetime** | | [optional] -**email** | **str** | | [optional] -**attributes** | **Dict[str, object]** | | [optional] -**uid** | **str** | | [readonly] -**permissions** | [**List[UserObjectPermission]**](UserObjectPermission.md) | | -**is_superuser** | **bool** | | - -## Example - -```python -from authentik_client.models.user_assigned_object_permission import UserAssignedObjectPermission - -# TODO update the JSON string below -json = "{}" -# create an instance of UserAssignedObjectPermission from a JSON string -user_assigned_object_permission_instance = UserAssignedObjectPermission.from_json(json) -# print the JSON string representation of the object -print(UserAssignedObjectPermission.to_json()) - -# convert the object into a dict -user_assigned_object_permission_dict = user_assigned_object_permission_instance.to_dict() -# create an instance of UserAssignedObjectPermission from a dict -user_assigned_object_permission_from_dict = UserAssignedObjectPermission.from_dict(user_assigned_object_permission_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/UserDeleteStage.md b/docs/UserDeleteStage.md index 6af93e11b..0398fb780 100644 --- a/docs/UserDeleteStage.md +++ b/docs/UserDeleteStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] ## Example diff --git a/docs/UserDeleteStageRequest.md b/docs/UserDeleteStageRequest.md index e3350b6ae..e5cc39514 100644 --- a/docs/UserDeleteStageRequest.md +++ b/docs/UserDeleteStageRequest.md @@ -7,7 +7,6 @@ UserDeleteStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] ## Example diff --git a/docs/UserLoginStage.md b/docs/UserLoginStage.md index b4d4770b2..9cb8a5726 100644 --- a/docs/UserLoginStage.md +++ b/docs/UserLoginStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **session_duration** | **str** | Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3) | [optional] **terminate_other_sessions** | **bool** | Terminate all other sessions of the user logging in. | [optional] **remember_me_offset** | **str** | Offset the session will be extended by when the user picks the remember me option. Default of 0 means that the remember me option will not be shown. (Format: hours=-1;minutes=-2;seconds=-3) | [optional] diff --git a/docs/UserLoginStageRequest.md b/docs/UserLoginStageRequest.md index 055d82981..7c6732e4c 100644 --- a/docs/UserLoginStageRequest.md +++ b/docs/UserLoginStageRequest.md @@ -7,7 +7,6 @@ UserLoginStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **session_duration** | **str** | Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3) | [optional] **terminate_other_sessions** | **bool** | Terminate all other sessions of the user logging in. | [optional] **remember_me_offset** | **str** | Offset the session will be extended by when the user picks the remember me option. Default of 0 means that the remember me option will not be shown. (Format: hours=-1;minutes=-2;seconds=-3) | [optional] diff --git a/docs/UserLogoutStage.md b/docs/UserLogoutStage.md index e03e45a40..ee2607b09 100644 --- a/docs/UserLogoutStage.md +++ b/docs/UserLogoutStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] ## Example diff --git a/docs/UserLogoutStageRequest.md b/docs/UserLogoutStageRequest.md index b5650e5f8..c0f53274d 100644 --- a/docs/UserLogoutStageRequest.md +++ b/docs/UserLogoutStageRequest.md @@ -7,7 +7,6 @@ UserLogoutStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] ## Example diff --git a/docs/UserRequest.md b/docs/UserRequest.md index da9a935e1..f993949b1 100644 --- a/docs/UserRequest.md +++ b/docs/UserRequest.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **is_active** | **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] **last_login** | **datetime** | | [optional] **groups** | **List[str]** | | [optional] +**roles** | **List[str]** | | [optional] **email** | **str** | | [optional] **attributes** | **Dict[str, object]** | | [optional] **path** | **str** | | [optional] diff --git a/docs/UserSelf.md b/docs/UserSelf.md index 195081c2a..42758f10d 100644 --- a/docs/UserSelf.md +++ b/docs/UserSelf.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **is_active** | **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [readonly] **is_superuser** | **bool** | | [readonly] **groups** | [**List[UserSelfGroups]**](UserSelfGroups.md) | | [readonly] +**roles** | [**List[UserSelfRoles]**](UserSelfRoles.md) | | [readonly] **email** | **str** | | [optional] **avatar** | **str** | User's avatar, either a http/https URL or a data URI | [readonly] **uid** | **str** | | [readonly] diff --git a/docs/UserSelfRoles.md b/docs/UserSelfRoles.md new file mode 100644 index 000000000..bdb76e86f --- /dev/null +++ b/docs/UserSelfRoles.md @@ -0,0 +1,30 @@ +# UserSelfRoles + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [readonly] +**pk** | **str** | | [readonly] + +## Example + +```python +from authentik_client.models.user_self_roles import UserSelfRoles + +# TODO update the JSON string below +json = "{}" +# create an instance of UserSelfRoles from a JSON string +user_self_roles_instance = UserSelfRoles.from_json(json) +# print the JSON string representation of the object +print(UserSelfRoles.to_json()) + +# convert the object into a dict +user_self_roles_dict = user_self_roles_instance.to_dict() +# create an instance of UserSelfRoles from a dict +user_self_roles_from_dict = UserSelfRoles.from_dict(user_self_roles_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UserWriteStage.md b/docs/UserWriteStage.md index 0657db220..439638833 100644 --- a/docs/UserWriteStage.md +++ b/docs/UserWriteStage.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **verbose_name** | **str** | Return object's verbose_name | [readonly] **verbose_name_plural** | **str** | Return object's plural verbose_name | [readonly] **meta_model_name** | **str** | Return internal model name | [readonly] -**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [optional] +**flow_set** | [**List[FlowSet]**](FlowSet.md) | | [readonly] **user_creation_mode** | [**UserCreationModeEnum**](UserCreationModeEnum.md) | | [optional] **create_users_as_inactive** | **bool** | When set, newly created users are inactive and cannot login. | [optional] **create_users_group** | **str** | Optionally add newly created users to this group. | [optional] diff --git a/docs/UserWriteStageRequest.md b/docs/UserWriteStageRequest.md index b9cc6e9e5..ae24d6f67 100644 --- a/docs/UserWriteStageRequest.md +++ b/docs/UserWriteStageRequest.md @@ -7,7 +7,6 @@ UserWriteStage Serializer Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | -**flow_set** | [**List[FlowSetRequest]**](FlowSetRequest.md) | | [optional] **user_creation_mode** | [**UserCreationModeEnum**](UserCreationModeEnum.md) | | [optional] **create_users_as_inactive** | **bool** | When set, newly created users are inactive and cannot login. | [optional] **create_users_group** | **str** | Optionally add newly created users to this group. | [optional] diff --git a/pyproject.toml b/pyproject.toml index d36d8f72c..74c51f485 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "authentik_client" -version = "2025.10.0-rc1-1760140185" +version = "2025.12.5" description = "authentik" authors = [ {name = "authentik Team",email = "hello@goauthentik.io"}, ] -license = "MIT" +license = { text = "MIT" } readme = "README.md" keywords = ["OpenAPI", "OpenAPI-Generator", "authentik"] requires-python = ">=3.9" @@ -15,7 +15,6 @@ dependencies = [ "python-dateutil (>=2.8.2)", "pydantic (>=2)", "typing-extensions (>=4.7.1)", - "lazy-imports (>=1,<2)" ] [project.urls] diff --git a/requirements.txt b/requirements.txt index 867a4496c..6cbb2b98b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,3 @@ urllib3 >= 2.1.0, < 3.0.0 python_dateutil >= 2.8.2 pydantic >= 2 typing-extensions >= 4.7.1 -lazy-imports >= 1, < 2 diff --git a/schema.yml b/schema.yml index 7258e2343..58c17a58e 100644 --- a/schema.yml +++ b/schema.yml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: title: authentik - version: 2025.10.0-rc1 + version: 2025.12.5 description: Making authentication simple. contact: email: hello@goauthentik.io @@ -30,6 +30,108 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' + /admin/file/: + get: + operationId: admin_file_list + description: List files from storage backend. + parameters: + - in: query + name: manageable_only + schema: + type: boolean + default: false + - $ref: '#/components/parameters/QuerySearch' + - in: query + name: usage + schema: + enum: + - media + type: string + default: media + minLength: 1 + tags: + - admin + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FileList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + post: + operationId: admin_file_create + description: Upload file to storage backend. + tags: + - admin + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/FileUploadRequest' + required: true + security: + - authentik: [] + responses: + '200': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: admin_file_destroy + description: Delete file from storage backend. + parameters: + - $ref: '#/components/parameters/QueryName' + - in: query + name: usage + schema: + enum: + - media + type: string + default: media + minLength: 1 + tags: + - admin + security: + - authentik: [] + responses: + '200': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /admin/file/used_by/: + get: + operationId: admin_file_used_by_list + parameters: + - $ref: '#/components/parameters/QueryName' + tags: + - admin + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UsedBy' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' /admin/models/: get: operationId: admin_models_list @@ -590,7 +692,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedEndpointDeviceList' + $ref: '#/components/schemas/PaginatedGoogleEndpointDeviceList' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' @@ -605,7 +707,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EndpointDeviceRequest' + $ref: '#/components/schemas/GoogleEndpointDeviceRequest' required: true security: - authentik: [] @@ -614,7 +716,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EndpointDevice' + $ref: '#/components/schemas/GoogleEndpointDevice' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' @@ -641,7 +743,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EndpointDevice' + $ref: '#/components/schemas/GoogleEndpointDevice' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' @@ -664,7 +766,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EndpointDeviceRequest' + $ref: '#/components/schemas/GoogleEndpointDeviceRequest' required: true security: - authentik: [] @@ -673,7 +775,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EndpointDevice' + $ref: '#/components/schemas/GoogleEndpointDevice' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' @@ -696,7 +798,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedEndpointDeviceRequest' + $ref: '#/components/schemas/PatchedGoogleEndpointDeviceRequest' security: - authentik: [] responses: @@ -704,7 +806,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EndpointDevice' + $ref: '#/components/schemas/GoogleEndpointDevice' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' @@ -1722,7 +1824,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedEndpointDeviceList' + $ref: '#/components/schemas/PaginatedGoogleEndpointDeviceList' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' @@ -1749,7 +1851,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EndpointDevice' + $ref: '#/components/schemas/GoogleEndpointDevice' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' @@ -2847,61 +2949,6 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /core/applications/{slug}/set_icon/: - post: - operationId: core_applications_set_icon_create - description: Set application icon - parameters: - - in: path - name: slug - schema: - type: string - description: Internal application name, used in URLs. - required: true - tags: - - core - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/FileUploadRequest' - security: - - authentik: [] - responses: - '200': - description: Success - '400': - description: Bad request - '403': - $ref: '#/components/responses/GenericErrorResponse' - /core/applications/{slug}/set_icon_url/: - post: - operationId: core_applications_set_icon_url_create - description: Set application icon (as URL) - parameters: - - in: path - name: slug - schema: - type: string - description: Internal application name, used in URLs. - required: true - tags: - - core - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/FilePathRequest' - required: true - security: - - authentik: [] - responses: - '200': - description: Success - '400': - description: Bad request - '403': - $ref: '#/components/responses/GenericErrorResponse' /core/applications/{slug}/used_by/: get: operationId: core_applications_used_by_list @@ -3338,6 +3385,16 @@ paths: schema: type: boolean default: false + - in: query + name: include_inherited_roles + schema: + type: boolean + default: false + - in: query + name: include_parents + schema: + type: boolean + default: false - in: query name: include_users schema: @@ -3426,6 +3483,16 @@ paths: schema: type: boolean default: false + - in: query + name: include_inherited_roles + schema: + type: boolean + default: false + - in: query + name: include_parents + schema: + type: boolean + default: false - in: query name: include_users schema: @@ -4077,6 +4144,11 @@ paths: schema: type: boolean default: true + - in: query + name: include_roles + schema: + type: boolean + default: true - in: query name: is_active schema: @@ -4112,6 +4184,23 @@ paths: name: path_startswith schema: type: string + - in: query + name: roles_by_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: roles_by_pk + schema: + type: array + items: + type: string + format: uuid + explode: true + style: form - $ref: '#/components/parameters/QuerySearch' - in: query name: type @@ -4420,6 +4509,145 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' + /core/users/export/: + post: + operationId: core_users_export_create + description: |- + Create a data export for this data type. Note that the export is generated asynchronously: + this method returns a `DataExport` object that will initially have `completed=false` as well + as the permanent URL to that object in the `Location` header. + You can poll that URL until `completed=true`, at which point the `file_url` property will + contain a URL to download + parameters: + - in: query + name: attributes + schema: + type: string + description: Attributes + - in: query + name: date_joined + schema: + type: string + format: date-time + - in: query + name: date_joined__gt + schema: + type: string + format: date-time + - in: query + name: date_joined__lt + schema: + type: string + format: date-time + - in: query + name: email + schema: + type: string + - in: query + name: groups_by_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: groups_by_pk + schema: + type: array + items: + type: string + format: uuid + explode: true + style: form + - in: query + name: is_active + schema: + type: boolean + - in: query + name: is_superuser + schema: + type: boolean + - in: query + name: last_updated + schema: + type: string + format: date-time + - in: query + name: last_updated__gt + schema: + type: string + format: date-time + - in: query + name: last_updated__lt + schema: + type: string + format: date-time + - $ref: '#/components/parameters/QueryName' + - $ref: '#/components/parameters/QueryPaginationOrdering' + - in: query + name: path + schema: + type: string + - in: query + name: path_startswith + schema: + type: string + - in: query + name: roles_by_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: roles_by_pk + schema: + type: array + items: + type: string + format: uuid + explode: true + style: form + - $ref: '#/components/parameters/QuerySearch' + - in: query + name: type + schema: + type: array + items: + type: string + enum: + - external + - internal + - internal_service_account + - service_account + explode: true + style: form + - in: query + name: username + schema: + type: string + - in: query + name: uuid + schema: + type: string + format: uuid + tags: + - core + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DataExport' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' /core/users/impersonate_end/: get: operationId: core_users_impersonate_end_retrieve @@ -4515,17 +4743,1284 @@ paths: schema: type: boolean default: true + - in: query + name: key_type + schema: + type: array + items: + type: string + enum: + - dsa + - ec + - ed25519 + - ed448 + - rsa + description: Filter by key algorithm type (RSA, EC, DSA, etc). Can be specified + multiple times (e.g. '?key_type=rsa&key_type=ec') - in: query name: managed schema: type: string - - $ref: '#/components/parameters/QueryName' + - $ref: '#/components/parameters/QueryName' + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QueryPaginationPage' + - $ref: '#/components/parameters/QueryPaginationPageSize' + - $ref: '#/components/parameters/QuerySearch' + tags: + - crypto + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedCertificateKeyPairList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + post: + operationId: crypto_certificatekeypairs_create + description: CertificateKeyPair Viewset + tags: + - crypto + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateKeyPairRequest' + required: true + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateKeyPair' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /crypto/certificatekeypairs/{kp_uuid}/: + get: + operationId: crypto_certificatekeypairs_retrieve + description: CertificateKeyPair Viewset + parameters: + - in: path + name: kp_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Certificate-Key Pair. + required: true + tags: + - crypto + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateKeyPair' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + put: + operationId: crypto_certificatekeypairs_update + description: CertificateKeyPair Viewset + parameters: + - in: path + name: kp_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Certificate-Key Pair. + required: true + tags: + - crypto + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateKeyPairRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateKeyPair' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + patch: + operationId: crypto_certificatekeypairs_partial_update + description: CertificateKeyPair Viewset + parameters: + - in: path + name: kp_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Certificate-Key Pair. + required: true + tags: + - crypto + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedCertificateKeyPairRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateKeyPair' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: crypto_certificatekeypairs_destroy + description: CertificateKeyPair Viewset + parameters: + - in: path + name: kp_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Certificate-Key Pair. + required: true + tags: + - crypto + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /crypto/certificatekeypairs/{kp_uuid}/used_by/: + get: + operationId: crypto_certificatekeypairs_used_by_list + description: Get a list of all objects that use this object + parameters: + - in: path + name: kp_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Certificate-Key Pair. + required: true + tags: + - crypto + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UsedBy' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /crypto/certificatekeypairs/{kp_uuid}/view_certificate/: + get: + operationId: crypto_certificatekeypairs_view_certificate_retrieve + description: Return certificate-key pairs certificate and log access + parameters: + - in: query + name: download + schema: + type: boolean + - in: path + name: kp_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Certificate-Key Pair. + required: true + tags: + - crypto + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateData' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /crypto/certificatekeypairs/{kp_uuid}/view_private_key/: + get: + operationId: crypto_certificatekeypairs_view_private_key_retrieve + description: Return certificate-key pairs private key and log access + parameters: + - in: query + name: download + schema: + type: boolean + - in: path + name: kp_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Certificate-Key Pair. + required: true + tags: + - crypto + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateData' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /crypto/certificatekeypairs/generate/: + post: + operationId: crypto_certificatekeypairs_generate_create + description: Generate a new, self-signed certificate-key pair + tags: + - crypto + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateGenerationRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CertificateKeyPair' + description: '' + '400': + description: Bad request + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/: + get: + operationId: endpoints_agents_connectors_list + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: query + name: enabled + schema: + type: boolean + - $ref: '#/components/parameters/QueryName' + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QueryPaginationPage' + - $ref: '#/components/parameters/QueryPaginationPageSize' + - $ref: '#/components/parameters/QuerySearch' + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedAgentConnectorList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + post: + operationId: endpoints_agents_connectors_create + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AgentConnectorRequest' + required: true + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentConnector' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/{connector_uuid}/: + get: + operationId: endpoints_agents_connectors_retrieve + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Agent Connector. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentConnector' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + put: + operationId: endpoints_agents_connectors_update + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Agent Connector. + required: true + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AgentConnectorRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentConnector' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + patch: + operationId: endpoints_agents_connectors_partial_update + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Agent Connector. + required: true + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedAgentConnectorRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentConnector' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: endpoints_agents_connectors_destroy + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Agent Connector. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/{connector_uuid}/mdm_config/: + post: + operationId: endpoints_agents_connectors_mdm_config_create + description: Generate configuration for MDM systems to deploy authentik Agent + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Agent Connector. + required: true + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MDMConfigRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/MDMConfigResponse' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/{connector_uuid}/used_by/: + get: + operationId: endpoints_agents_connectors_used_by_list + description: Get a list of all objects that use this object + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Agent Connector. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UsedBy' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/agent_config/: + get: + operationId: endpoints_agents_connectors_agent_config_retrieve + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + tags: + - endpoints + security: + - {} + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentConfig' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/auth_fed/: + post: + operationId: endpoints_agents_connectors_auth_fed_create + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: query + name: device + schema: + type: string + required: true + tags: + - endpoints + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentTokenResponse' + description: '' + '404': + description: Device not found + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/auth_ia/: + post: + operationId: endpoints_agents_connectors_auth_ia_create + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + tags: + - endpoints + security: + - {} + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentAuthenticationResponse' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/check_in/: + post: + operationId: endpoints_agents_connectors_check_in_create + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceFactsRequest' + security: + - {} + responses: + '204': + description: Successfully checked in + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/connectors/enroll/: + post: + operationId: endpoints_agents_connectors_enroll_create + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EnrollRequest' + required: true + security: + - {} + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentTokenResponse' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/enrollment_tokens/: + get: + operationId: endpoints_agents_enrollment_tokens_list + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: query + name: connector + schema: + type: string + format: uuid + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QueryPaginationPage' + - $ref: '#/components/parameters/QueryPaginationPageSize' + - $ref: '#/components/parameters/QuerySearch' + - in: query + name: token_uuid + schema: + type: string + format: uuid + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedEnrollmentTokenList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + post: + operationId: endpoints_agents_enrollment_tokens_create + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EnrollmentTokenRequest' + required: true + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/EnrollmentToken' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/enrollment_tokens/{token_uuid}/: + get: + operationId: endpoints_agents_enrollment_tokens_retrieve + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: token_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Enrollment Token. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EnrollmentToken' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + put: + operationId: endpoints_agents_enrollment_tokens_update + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: token_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Enrollment Token. + required: true + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EnrollmentTokenRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EnrollmentToken' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + patch: + operationId: endpoints_agents_enrollment_tokens_partial_update + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: token_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Enrollment Token. + required: true + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedEnrollmentTokenRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EnrollmentToken' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: endpoints_agents_enrollment_tokens_destroy + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: token_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Enrollment Token. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/enrollment_tokens/{token_uuid}/used_by/: + get: + operationId: endpoints_agents_enrollment_tokens_used_by_list + description: Get a list of all objects that use this object + parameters: + - in: path + name: token_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Enrollment Token. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UsedBy' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/enrollment_tokens/{token_uuid}/view_key/: + get: + operationId: endpoints_agents_enrollment_tokens_view_key_retrieve + description: Return token key and log access + parameters: + - in: path + name: token_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Enrollment Token. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TokenView' + description: '' + '404': + description: Token not found or expired + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/psso/register/device/: + post: + operationId: endpoints_agents_psso_register_device_create + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AgentPSSODeviceRegistrationRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/AgentPSSODeviceRegistrationResponse' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/agents/psso/register/user/: + post: + operationId: endpoints_agents_psso_register_user_create + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/AgentPSSOUserRegistrationRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/UserSelf' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/connectors/: + get: + operationId: endpoints_connectors_list + description: Connector Viewset + parameters: + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QueryPaginationPage' + - $ref: '#/components/parameters/QueryPaginationPageSize' + - $ref: '#/components/parameters/QuerySearch' + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedConnectorList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/connectors/{connector_uuid}/: + get: + operationId: endpoints_connectors_retrieve + description: Connector Viewset + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this connector. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Connector' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: endpoints_connectors_destroy + description: Connector Viewset + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this connector. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/connectors/{connector_uuid}/used_by/: + get: + operationId: endpoints_connectors_used_by_list + description: Get a list of all objects that use this object + parameters: + - in: path + name: connector_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this connector. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UsedBy' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/connectors/types/: + get: + operationId: endpoints_connectors_types_list + description: Get all creatable types + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TypeCreate' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/device_access_groups/: + get: + operationId: endpoints_device_access_groups_list + description: DeviceAccessGroup Viewset + parameters: + - $ref: '#/components/parameters/QueryName' + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QueryPaginationPage' + - $ref: '#/components/parameters/QueryPaginationPageSize' + - in: query + name: pbm_uuid + schema: + type: string + format: uuid + - $ref: '#/components/parameters/QuerySearch' + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeviceAccessGroupList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + post: + operationId: endpoints_device_access_groups_create + description: DeviceAccessGroup Viewset + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceAccessGroupRequest' + required: true + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceAccessGroup' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/device_access_groups/{pbm_uuid}/: + get: + operationId: endpoints_device_access_groups_retrieve + description: DeviceAccessGroup Viewset + parameters: + - in: path + name: pbm_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Device access group. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceAccessGroup' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + put: + operationId: endpoints_device_access_groups_update + description: DeviceAccessGroup Viewset + parameters: + - in: path + name: pbm_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Device access group. + required: true + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceAccessGroupRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceAccessGroup' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + patch: + operationId: endpoints_device_access_groups_partial_update + description: DeviceAccessGroup Viewset + parameters: + - in: path + name: pbm_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Device access group. + required: true + tags: + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDeviceAccessGroupRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceAccessGroup' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: endpoints_device_access_groups_destroy + description: DeviceAccessGroup Viewset + parameters: + - in: path + name: pbm_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Device access group. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/device_access_groups/{pbm_uuid}/used_by/: + get: + operationId: endpoints_device_access_groups_used_by_list + description: Get a list of all objects that use this object + parameters: + - in: path + name: pbm_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Device access group. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UsedBy' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/device_bindings/: + get: + operationId: endpoints_device_bindings_list + description: PolicyBinding Viewset + parameters: + - in: query + name: enabled + schema: + type: boolean + - in: query + name: order + schema: + type: integer - $ref: '#/components/parameters/QueryPaginationOrdering' - $ref: '#/components/parameters/QueryPaginationPage' - $ref: '#/components/parameters/QueryPaginationPageSize' + - in: query + name: policy + schema: + type: string + format: uuid + - in: query + name: policy__isnull + schema: + type: boolean - $ref: '#/components/parameters/QuerySearch' + - in: query + name: target + schema: + type: string + format: uuid + - in: query + name: target_in + schema: + type: array + items: + type: string + format: uuid + explode: true + style: form + - in: query + name: timeout + schema: + type: integer tags: - - crypto + - endpoints security: - authentik: [] responses: @@ -4533,22 +6028,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCertificateKeyPairList' + $ref: '#/components/schemas/PaginatedDeviceUserBindingList' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' post: - operationId: crypto_certificatekeypairs_create - description: CertificateKeyPair Viewset + operationId: endpoints_device_bindings_create + description: PolicyBinding Viewset tags: - - crypto + - endpoints requestBody: content: application/json: schema: - $ref: '#/components/schemas/CertificateKeyPairRequest' + $ref: '#/components/schemas/DeviceUserBindingRequest' required: true security: - authentik: [] @@ -4557,26 +6052,26 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificateKeyPair' + $ref: '#/components/schemas/DeviceUserBinding' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /crypto/certificatekeypairs/{kp_uuid}/: + /endpoints/device_bindings/{policy_binding_uuid}/: get: - operationId: crypto_certificatekeypairs_retrieve - description: CertificateKeyPair Viewset + operationId: endpoints_device_bindings_retrieve + description: PolicyBinding Viewset parameters: - in: path - name: kp_uuid + name: policy_binding_uuid schema: type: string format: uuid - description: A UUID string identifying this Certificate-Key Pair. + description: A UUID string identifying this Device User binding. required: true tags: - - crypto + - endpoints security: - authentik: [] responses: @@ -4584,30 +6079,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificateKeyPair' + $ref: '#/components/schemas/DeviceUserBinding' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' put: - operationId: crypto_certificatekeypairs_update - description: CertificateKeyPair Viewset + operationId: endpoints_device_bindings_update + description: PolicyBinding Viewset parameters: - in: path - name: kp_uuid + name: policy_binding_uuid schema: type: string format: uuid - description: A UUID string identifying this Certificate-Key Pair. + description: A UUID string identifying this Device User binding. required: true tags: - - crypto + - endpoints requestBody: content: application/json: schema: - $ref: '#/components/schemas/CertificateKeyPairRequest' + $ref: '#/components/schemas/DeviceUserBindingRequest' required: true security: - authentik: [] @@ -4616,30 +6111,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificateKeyPair' + $ref: '#/components/schemas/DeviceUserBinding' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' patch: - operationId: crypto_certificatekeypairs_partial_update - description: CertificateKeyPair Viewset + operationId: endpoints_device_bindings_partial_update + description: PolicyBinding Viewset parameters: - in: path - name: kp_uuid + name: policy_binding_uuid schema: type: string format: uuid - description: A UUID string identifying this Certificate-Key Pair. + description: A UUID string identifying this Device User binding. required: true tags: - - crypto + - endpoints requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedCertificateKeyPairRequest' + $ref: '#/components/schemas/PatchedDeviceUserBindingRequest' security: - authentik: [] responses: @@ -4647,25 +6142,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificateKeyPair' + $ref: '#/components/schemas/DeviceUserBinding' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' delete: - operationId: crypto_certificatekeypairs_destroy - description: CertificateKeyPair Viewset + operationId: endpoints_device_bindings_destroy + description: PolicyBinding Viewset parameters: - in: path - name: kp_uuid + name: policy_binding_uuid schema: type: string format: uuid - description: A UUID string identifying this Certificate-Key Pair. + description: A UUID string identifying this Device User binding. required: true tags: - - crypto + - endpoints security: - authentik: [] responses: @@ -4675,20 +6170,20 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /crypto/certificatekeypairs/{kp_uuid}/used_by/: + /endpoints/device_bindings/{policy_binding_uuid}/used_by/: get: - operationId: crypto_certificatekeypairs_used_by_list + operationId: endpoints_device_bindings_used_by_list description: Get a list of all objects that use this object parameters: - in: path - name: kp_uuid + name: policy_binding_uuid schema: type: string format: uuid - description: A UUID string identifying this Certificate-Key Pair. + description: A UUID string identifying this Device User binding. required: true tags: - - crypto + - endpoints security: - authentik: [] responses: @@ -4704,24 +6199,51 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /crypto/certificatekeypairs/{kp_uuid}/view_certificate/: + /endpoints/devices/: get: - operationId: crypto_certificatekeypairs_view_certificate_retrieve - description: Return certificate-key pairs certificate and log access + operationId: endpoints_devices_list + description: Mixin to add a used_by endpoint to return a list of all objects + using this object parameters: - in: query - name: download + name: identifier schema: - type: boolean + type: string + - $ref: '#/components/parameters/QueryName' + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QueryPaginationPage' + - $ref: '#/components/parameters/QueryPaginationPageSize' + - $ref: '#/components/parameters/QuerySearch' + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedEndpointDeviceList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/devices/{device_uuid}/: + get: + operationId: endpoints_devices_retrieve + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: - in: path - name: kp_uuid + name: device_uuid schema: type: string format: uuid - description: A UUID string identifying this Certificate-Key Pair. + description: A UUID string identifying this Device. required: true tags: - - crypto + - endpoints security: - authentik: [] responses: @@ -4729,30 +6251,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificateData' + $ref: '#/components/schemas/EndpointDeviceDetails' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /crypto/certificatekeypairs/{kp_uuid}/view_private_key/: - get: - operationId: crypto_certificatekeypairs_view_private_key_retrieve - description: Return certificate-key pairs private key and log access + put: + operationId: endpoints_devices_update + description: Mixin to add a used_by endpoint to return a list of all objects + using this object parameters: - - in: query - name: download - schema: - type: boolean - in: path - name: kp_uuid + name: device_uuid schema: type: string format: uuid - description: A UUID string identifying this Certificate-Key Pair. + description: A UUID string identifying this Device. required: true tags: - - crypto + - endpoints + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDeviceRequest' + required: true security: - authentik: [] responses: @@ -4760,24 +6284,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificateData' + $ref: '#/components/schemas/EndpointDevice' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /crypto/certificatekeypairs/generate/: - post: - operationId: crypto_certificatekeypairs_generate_create - description: Generate a new, self-signed certificate-key pair + patch: + operationId: endpoints_devices_partial_update + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: device_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Device. + required: true tags: - - crypto + - endpoints requestBody: content: application/json: schema: - $ref: '#/components/schemas/CertificateGenerationRequest' + $ref: '#/components/schemas/PatchedEndpointDeviceRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointDevice' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: endpoints_devices_destroy + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: device_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Device. + required: true + tags: + - endpoints + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/devices/{device_uuid}/used_by/: + get: + operationId: endpoints_devices_used_by_list + description: Get a list of all objects that use this object + parameters: + - in: path + name: device_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Device. required: true + tags: + - endpoints security: - authentik: [] responses: @@ -4785,10 +6366,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CertificateKeyPair' + type: array + items: + $ref: '#/components/schemas/UsedBy' description: '' '400': - description: Bad request + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /endpoints/devices/summary/: + get: + operationId: endpoints_devices_summary_retrieve + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + tags: + - endpoints + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceSummary' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' /enterprise/license/: @@ -5064,6 +6667,7 @@ paths: - configuration_error - custom_ - email_sent + - export_ready - flow_execution - impersonation_ended - impersonation_started @@ -5299,6 +6903,108 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' + /events/events/export/: + post: + operationId: events_events_export_create + description: |- + Create a data export for this data type. Note that the export is generated asynchronously: + this method returns a `DataExport` object that will initially have `completed=false` as well + as the permanent URL to that object in the `Location` header. + You can poll that URL until `completed=true`, at which point the `file_url` property will + contain a URL to download + parameters: + - in: query + name: action + schema: + type: string + - in: query + name: actions + schema: + type: array + items: + type: string + enum: + - authorize_application + - configuration_error + - custom_ + - email_sent + - export_ready + - flow_execution + - impersonation_ended + - impersonation_started + - invitation_used + - login + - login_failed + - logout + - model_created + - model_deleted + - model_updated + - password_set + - policy_exception + - policy_execution + - property_mapping_exception + - secret_rotate + - secret_view + - source_linked + - suspicious_request + - system_exception + - system_task_exception + - system_task_execution + - update_available + - user_write + explode: true + style: form + - in: query + name: brand_name + schema: + type: string + description: Brand name + - in: query + name: client_ip + schema: + type: string + - in: query + name: context_authorized_app + schema: + type: string + description: Context Authorized application + - in: query + name: context_model_app + schema: + type: string + description: Context Model App + - in: query + name: context_model_name + schema: + type: string + description: Context Model Name + - in: query + name: context_model_pk + schema: + type: string + description: Context Model Primary Key + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QuerySearch' + - in: query + name: username + schema: + type: string + description: Username + tags: + - events + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DataExport' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' /events/events/top_per_user/: get: operationId: events_events_top_per_user_list @@ -5349,6 +7055,7 @@ paths: - configuration_error - custom_ - email_sent + - export_ready - flow_execution - impersonation_ended - impersonation_started @@ -6698,61 +8405,6 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /flows/instances/{slug}/set_background/: - post: - operationId: flows_instances_set_background_create - description: Set Flow background - parameters: - - in: path - name: slug - schema: - type: string - description: Visible in the URL. - required: true - tags: - - flows - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/FileUploadRequest' - security: - - authentik: [] - responses: - '200': - description: Success - '400': - description: Bad request - '403': - $ref: '#/components/responses/GenericErrorResponse' - /flows/instances/{slug}/set_background_url/: - post: - operationId: flows_instances_set_background_url_create - description: Set Flow background (as URL) - parameters: - - in: path - name: slug - schema: - type: string - description: Visible in the URL. - required: true - tags: - - flows - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/FilePathRequest' - required: true - security: - - authentik: [] - responses: - '200': - description: Success - '400': - description: Bad request - '403': - $ref: '#/components/responses/GenericErrorResponse' /flows/instances/{slug}/used_by/: get: operationId: flows_instances_used_by_list @@ -6825,7 +8477,7 @@ paths: content: multipart/form-data: schema: - $ref: '#/components/schemas/FileUploadRequest' + $ref: '#/components/schemas/FlowUploadRequest' security: - authentik: [] responses: @@ -9063,6 +10715,7 @@ paths: - configuration_error - custom_ - email_sent + - export_ready - flow_execution - impersonation_ended - impersonation_started @@ -16796,8 +18449,12 @@ paths: security: - authentik: [] responses: - '204': - description: Successfully imported provider + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/SAMLProvider' + description: '' '400': description: Bad request '403': @@ -18181,6 +19838,12 @@ paths: - 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 @@ -18221,6 +19884,7 @@ paths: - 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 @@ -18372,211 +20036,6 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /rbac/permissions/assigned_by_users/: - get: - operationId: rbac_permissions_assigned_by_users_list - description: Get assigned object permissions for a single object - parameters: - - in: query - name: model - schema: - type: string - enum: - - 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_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_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 - required: true - - in: query - name: object_pk - schema: - type: string - - $ref: '#/components/parameters/QueryPaginationOrdering' - - $ref: '#/components/parameters/QueryPaginationPage' - - $ref: '#/components/parameters/QueryPaginationPageSize' - - $ref: '#/components/parameters/QuerySearch' - tags: - - rbac - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedUserAssignedObjectPermissionList' - description: '' - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - /rbac/permissions/assigned_by_users/{id}/assign/: - post: - operationId: rbac_permissions_assigned_by_users_assign - description: Assign permission(s) to user - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this User. - required: true - tags: - - rbac - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PermissionAssignRequest' - required: true - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PermissionAssignResult' - description: '' - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - /rbac/permissions/assigned_by_users/{id}/unassign/: - patch: - operationId: rbac_permissions_assigned_by_users_unassign_partial_update - description: |- - Unassign permission(s) to user. When `object_pk` is set, the permissions - are only assigned to the specific object, otherwise they are assigned globally. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this User. - required: true - tags: - - rbac - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedPermissionAssignRequest' - security: - - authentik: [] - responses: - '204': - description: Successfully unassigned - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' /rbac/permissions/roles/: get: operationId: rbac_permissions_roles_list @@ -18606,153 +20065,42 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /rbac/permissions/roles/{id}/: + /rbac/roles/: get: - operationId: rbac_permissions_roles_retrieve - description: Get a role's assigned object permissions + operationId: rbac_roles_list + description: Role viewset parameters: - - in: path - name: id + - in: query + name: ak_groups schema: - type: integer - description: A unique integer value identifying this group object permission. - required: true - tags: - - rbac - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExtraRoleObjectPermission' - description: '' - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - put: - operationId: rbac_permissions_roles_update - description: Get a role's assigned object permissions - parameters: - - in: path - name: id + type: string + format: uuid + - in: query + name: inherited schema: - type: integer - description: A unique integer value identifying this group object permission. - required: true - tags: - - rbac - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExtraRoleObjectPermissionRequest' - required: true - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExtraRoleObjectPermission' - description: '' - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - patch: - operationId: rbac_permissions_roles_partial_update - description: Get a role's assigned object permissions - parameters: - - in: path - name: id + type: boolean + description: Include inherited roles (requires users or ak_groups filter) + - in: query + name: managed schema: - type: integer - description: A unique integer value identifying this group object permission. - required: true - tags: - - rbac - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedExtraRoleObjectPermissionRequest' - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExtraRoleObjectPermission' - description: '' - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - delete: - operationId: rbac_permissions_roles_destroy - description: Get a role's assigned object permissions - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: managed__isnull schema: - type: integer - description: A unique integer value identifying this group object permission. - required: true - tags: - - rbac - security: - - authentik: [] - responses: - '204': - description: No response body - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - /rbac/permissions/users/: - get: - operationId: rbac_permissions_users_list - description: Get a users's assigned object permissions - parameters: + type: boolean + - $ref: '#/components/parameters/QueryName' - $ref: '#/components/parameters/QueryPaginationOrdering' - $ref: '#/components/parameters/QueryPaginationPage' - $ref: '#/components/parameters/QueryPaginationPageSize' - $ref: '#/components/parameters/QuerySearch' - in: query - name: user_id - schema: - type: integer - tags: - - rbac - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedExtraUserObjectPermissionList' - description: '' - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - /rbac/permissions/users/{id}/: - get: - operationId: rbac_permissions_users_retrieve - description: Get a users's assigned object permissions - parameters: - - in: path - name: id + name: users schema: type: integer - description: A unique integer value identifying this user object permission. - required: true tags: - rbac security: @@ -18762,60 +20110,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExtraUserObjectPermission' + $ref: '#/components/schemas/PaginatedRoleList' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - put: - operationId: rbac_permissions_users_update - description: Get a users's assigned object permissions - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this user object permission. - required: true + post: + operationId: rbac_roles_create + description: Role viewset tags: - rbac requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExtraUserObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - authentik: [] responses: - '200': + '201': content: application/json: schema: - $ref: '#/components/schemas/ExtraUserObjectPermission' + $ref: '#/components/schemas/Role' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - patch: - operationId: rbac_permissions_users_partial_update - description: Get a users's assigned object permissions + /rbac/roles/{uuid}/: + get: + operationId: rbac_roles_retrieve + description: Role viewset parameters: - in: path - name: id + name: uuid schema: - type: integer - description: A unique integer value identifying this user object permission. + type: string + format: uuid + description: A UUID string identifying this Role. required: true tags: - rbac - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedExtraUserObjectPermissionRequest' security: - authentik: [] responses: @@ -18823,63 +20161,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExtraUserObjectPermission' + $ref: '#/components/schemas/Role' description: '' '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - delete: - operationId: rbac_permissions_users_destroy - description: Get a users's assigned object permissions + put: + operationId: rbac_roles_update + description: Role viewset parameters: - in: path - name: id + name: uuid schema: - type: integer - description: A unique integer value identifying this user object permission. + type: string + format: uuid + description: A UUID string identifying this Role. required: true tags: - rbac - security: - - authentik: [] - responses: - '204': - description: No response body - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - /rbac/roles/: - get: - operationId: rbac_roles_list - description: Role viewset - parameters: - - $ref: '#/components/parameters/QueryName' - - $ref: '#/components/parameters/QueryPaginationOrdering' - - $ref: '#/components/parameters/QueryPaginationPage' - - $ref: '#/components/parameters/QueryPaginationPageSize' - - $ref: '#/components/parameters/QuerySearch' - tags: - - rbac - security: - - authentik: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedRoleList' - description: '' - '400': - $ref: '#/components/responses/ValidationErrorResponse' - '403': - $ref: '#/components/responses/GenericErrorResponse' - post: - operationId: rbac_roles_create - description: Role viewset - tags: - - rbac requestBody: content: application/json: @@ -18889,7 +20189,7 @@ paths: security: - authentik: [] responses: - '201': + '200': content: application/json: schema: @@ -18899,9 +20199,8 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /rbac/roles/{uuid}/: - get: - operationId: rbac_roles_retrieve + patch: + operationId: rbac_roles_partial_update description: Role viewset parameters: - in: path @@ -18913,6 +20212,11 @@ paths: required: true tags: - rbac + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedRoleRequest' security: - authentik: [] responses: @@ -18926,8 +20230,8 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - put: - operationId: rbac_roles_update + delete: + operationId: rbac_roles_destroy description: Role viewset parameters: - in: path @@ -18939,28 +20243,19 @@ paths: required: true tags: - rbac - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRequest' - required: true security: - authentik: [] responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Role' - description: '' + '204': + description: No response body '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - patch: - operationId: rbac_roles_partial_update - description: Role viewset + /rbac/roles/{uuid}/add_user/: + post: + operationId: rbac_roles_add_user_create + description: Add user to role parameters: - in: path name: uuid @@ -18975,23 +20270,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/UserAccountSerializerForRoleRequest' + required: true security: - authentik: [] responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Role' - description: '' + '204': + description: User added + '404': + description: User not found '400': $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - delete: - operationId: rbac_roles_destroy - description: Role viewset + /rbac/roles/{uuid}/remove_user/: + post: + operationId: rbac_roles_remove_user_create + description: Remove user from role parameters: - in: path name: uuid @@ -19002,11 +20297,19 @@ paths: required: true tags: - rbac + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UserAccountSerializerForRoleRequest' + required: true security: - authentik: [] responses: '204': - description: No response body + description: User removed + '404': + description: User not found '400': $ref: '#/components/responses/ValidationErrorResponse' '403': @@ -19040,6 +20343,76 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' + /reports/exports/: + get: + operationId: reports_exports_list + parameters: + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QueryPaginationPage' + - $ref: '#/components/parameters/QueryPaginationPageSize' + - $ref: '#/components/parameters/QuerySearch' + tags: + - reports + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDataExportList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /reports/exports/{id}/: + get: + operationId: reports_exports_retrieve + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this Data Export. + required: true + tags: + - reports + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DataExport' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: reports_exports_destroy + parameters: + - in: path + name: id + schema: + type: string + format: uuid + description: A UUID string identifying this Data Export. + required: true + tags: + - reports + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' /root/config/: get: operationId: root_config_retrieve @@ -19294,61 +20667,6 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' - /sources/all/{slug}/set_icon/: - post: - operationId: sources_all_set_icon_create - description: Set source icon - parameters: - - in: path - name: slug - schema: - type: string - description: Internal source name, used in URLs. - required: true - tags: - - sources - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/FileUploadRequest' - security: - - authentik: [] - responses: - '200': - description: Success - '400': - description: Bad request - '403': - $ref: '#/components/responses/GenericErrorResponse' - /sources/all/{slug}/set_icon_url/: - post: - operationId: sources_all_set_icon_url_create - description: Set source icon (as URL) - parameters: - - in: path - name: slug - schema: - type: string - description: Internal source name, used in URLs. - required: true - tags: - - sources - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/FilePathRequest' - required: true - security: - - authentik: [] - responses: - '200': - description: Success - '400': - description: Bad request - '403': - $ref: '#/components/responses/GenericErrorResponse' /sources/all/{slug}/used_by/: get: operationId: sources_all_used_by_list @@ -20772,7 +22090,6 @@ paths: enum: - Heimdal - MIT - - other description: |+ KAdmin server type @@ -23131,6 +24448,39 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' + /sources/telegram/{slug}/connect_user/: + post: + operationId: sources_telegram_connect_user_create + description: Mixin to add a used_by endpoint to return a list of all objects + using this object + parameters: + - in: path + name: slug + schema: + type: string + description: Internal source name, used in URLs. + required: true + tags: + - sources + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TelegramAuthRequest' + required: true + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/UserTelegramSourceConnection' + description: '' + '403': + description: Access denied + '400': + $ref: '#/components/responses/ValidationErrorResponse' /sources/telegram/{slug}/used_by/: get: operationId: sources_telegram_used_by_list @@ -27674,6 +29024,196 @@ paths: $ref: '#/components/responses/ValidationErrorResponse' '403': $ref: '#/components/responses/GenericErrorResponse' + /stages/endpoints/: + get: + operationId: stages_endpoints_list + description: EndpointStage Viewset + parameters: + - $ref: '#/components/parameters/QueryName' + - $ref: '#/components/parameters/QueryPaginationOrdering' + - $ref: '#/components/parameters/QueryPaginationPage' + - $ref: '#/components/parameters/QueryPaginationPageSize' + - $ref: '#/components/parameters/QuerySearch' + tags: + - stages + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedEndpointStageList' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + post: + operationId: stages_endpoints_create + description: EndpointStage Viewset + tags: + - stages + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointStageRequest' + required: true + security: + - authentik: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointStage' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /stages/endpoints/{stage_uuid}/: + get: + operationId: stages_endpoints_retrieve + description: EndpointStage Viewset + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Stage. + required: true + tags: + - stages + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointStage' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + put: + operationId: stages_endpoints_update + description: EndpointStage Viewset + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Stage. + required: true + tags: + - stages + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointStageRequest' + required: true + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointStage' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + patch: + operationId: stages_endpoints_partial_update + description: EndpointStage Viewset + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Stage. + required: true + tags: + - stages + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedEndpointStageRequest' + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EndpointStage' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + delete: + operationId: stages_endpoints_destroy + description: EndpointStage Viewset + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Stage. + required: true + tags: + - stages + security: + - authentik: [] + responses: + '204': + description: No response body + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' + /stages/endpoints/{stage_uuid}/used_by/: + get: + operationId: stages_endpoints_used_by_list + description: Get a list of all objects that use this object + parameters: + - in: path + name: stage_uuid + schema: + type: string + format: uuid + description: A UUID string identifying this Endpoint Stage. + required: true + tags: + - stages + security: + - authentik: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/UsedBy' + description: '' + '400': + $ref: '#/components/responses/ValidationErrorResponse' + '403': + $ref: '#/components/responses/GenericErrorResponse' /stages/identification/: get: operationId: stages_identification_list @@ -27721,6 +29261,11 @@ paths: name: show_source_labels schema: type: boolean + - in: query + name: webauthn_stage + schema: + type: string + format: uuid tags: - stages security: @@ -31199,6 +32744,247 @@ components: required: - pending_user - pending_user_avatar + AgentAuthenticationResponse: + type: object + description: Base serializer class which doesn't implement create/update methods + properties: + url: + type: string + required: + - url + AgentConfig: + type: object + description: Base serializer class which doesn't implement create/update methods + properties: + device_id: + type: string + readOnly: true + refresh_interval: + type: integer + readOnly: true + authorization_flow: + type: string + nullable: true + readOnly: true + jwks_auth: + type: object + additionalProperties: {} + readOnly: true + jwks_challenge: + type: object + additionalProperties: {} + nullable: true + readOnly: true + nss_uid_offset: + type: integer + nss_gid_offset: + type: integer + auth_terminate_session_on_expiry: + type: boolean + system_config: + allOf: + - $ref: '#/components/schemas/Config' + readOnly: true + license_status: + allOf: + - $ref: '#/components/schemas/LicenseStatusEnum' + readOnly: true + nullable: true + required: + - auth_terminate_session_on_expiry + - authorization_flow + - device_id + - jwks_auth + - jwks_challenge + - license_status + - nss_gid_offset + - nss_uid_offset + - refresh_interval + - system_config + AgentConnector: + type: object + properties: + connector_uuid: + type: string + format: uuid + name: + type: string + enabled: + type: boolean + component: + type: string + description: Get object component so that we know how to edit the object + readOnly: true + verbose_name: + type: string + description: Return object's verbose_name + readOnly: true + verbose_name_plural: + type: string + description: Return object's plural verbose_name + readOnly: true + meta_model_name: + type: string + description: Return internal model name + readOnly: true + snapshot_expiry: + type: string + auth_session_duration: + type: string + auth_terminate_session_on_expiry: + type: boolean + refresh_interval: + type: string + authorization_flow: + type: string + format: uuid + nullable: true + nss_uid_offset: + type: integer + maximum: 2147483647 + minimum: 0 + nss_gid_offset: + type: integer + maximum: 2147483647 + minimum: 0 + challenge_key: + type: string + format: uuid + nullable: true + challenge_idle_timeout: + type: string + challenge_trigger_check_in: + type: boolean + jwt_federation_providers: + type: array + items: + type: integer + required: + - component + - meta_model_name + - name + - verbose_name + - verbose_name_plural + AgentConnectorRequest: + type: object + properties: + connector_uuid: + type: string + format: uuid + name: + type: string + minLength: 1 + enabled: + type: boolean + snapshot_expiry: + type: string + minLength: 1 + auth_session_duration: + type: string + minLength: 1 + auth_terminate_session_on_expiry: + type: boolean + refresh_interval: + type: string + minLength: 1 + authorization_flow: + type: string + format: uuid + nullable: true + nss_uid_offset: + type: integer + maximum: 2147483647 + minimum: 0 + nss_gid_offset: + type: integer + maximum: 2147483647 + minimum: 0 + challenge_key: + type: string + format: uuid + nullable: true + challenge_idle_timeout: + type: string + minLength: 1 + challenge_trigger_check_in: + type: boolean + jwt_federation_providers: + type: array + items: + type: integer + required: + - name + AgentPSSODeviceRegistrationRequest: + type: object + description: Register Apple device via Platform SSO + properties: + device_signing_key: + type: string + minLength: 1 + device_encryption_key: + type: string + minLength: 1 + sign_key_id: + type: string + minLength: 1 + enc_key_id: + type: string + minLength: 1 + required: + - device_encryption_key + - device_signing_key + - enc_key_id + - sign_key_id + AgentPSSODeviceRegistrationResponse: + type: object + description: authentik settings for Platform SSO tokens + properties: + client_id: + type: string + issuer: + type: string + token_endpoint: + type: string + jwks_endpoint: + type: string + audience: + type: string + nonce_endpoint: + type: string + required: + - audience + - client_id + - issuer + - jwks_endpoint + - nonce_endpoint + - token_endpoint + AgentPSSOUserRegistrationRequest: + type: object + description: Register Apple device user via Platform SSO + properties: + user_auth: + type: string + minLength: 1 + user_secure_enclave_key: + type: string + minLength: 1 + enclave_key_id: + type: string + minLength: 1 + required: + - enclave_key_id + - user_auth + - user_secure_enclave_key + AgentTokenResponse: + type: object + description: Base serializer class which doesn't implement create/update methods + properties: + token: + type: string + expires_in: + type: integer + required: + - token AlgEnum: enum: - rsa @@ -31224,8 +33010,11 @@ components: - 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 @@ -31278,12 +33067,14 @@ components: - 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 @@ -31341,7 +33132,6 @@ components: slug: type: string description: Internal application name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ provider: type: integer @@ -31372,11 +33162,16 @@ components: format: uri meta_icon: type: string + meta_icon_url: + type: string nullable: true - description: |- - Get the URL to the App Icon image. If the name is /static or starts with http - it is returned as-is + description: Get the URL to the App Icon image readOnly: true + meta_icon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true meta_description: type: string meta_publisher: @@ -31388,7 +33183,8 @@ components: required: - backchannel_providers_obj - launch_url - - meta_icon + - meta_icon_themed_urls + - meta_icon_url - name - pk - provider_obj @@ -31441,7 +33237,6 @@ components: type: string minLength: 1 description: Internal application name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ provider: type: integer @@ -31456,6 +33251,8 @@ components: meta_launch_url: type: string format: uri + meta_icon: + type: string meta_description: type: string meta_publisher: @@ -31703,6 +33500,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true configure_flow: type: string format: uuid @@ -31721,6 +33519,7 @@ components: - api_hostname - client_id - component + - flow_set - meta_model_name - name - pk @@ -31757,10 +33556,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -31826,7 +33621,8 @@ components: minLength: 1 default: ak-stage-authenticator-email code: - type: integer + type: string + minLength: 1 email: type: string minLength: 1 @@ -31861,144 +33657,143 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' - configure_flow: - type: string - format: uuid - nullable: true - description: Flow used by an authenticated user to configure this Stage. - If empty, user will not be able to configure this stage. - friendly_name: - type: string - use_global_settings: - type: boolean - description: When enabled, global Email connection settings will be used - and connection settings below will be ignored. - host: - type: string - port: - type: integer - maximum: 2147483647 - minimum: -2147483648 - username: - type: string - password: - type: string - use_tls: - type: boolean - use_ssl: - type: boolean - timeout: - type: integer - maximum: 2147483647 - minimum: -2147483648 - from_address: - type: string - format: email - maxLength: 254 - subject: - type: string - token_expiry: - type: string - description: 'Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).' - template: - type: string - required: - - component - - meta_model_name - - name - - pk - - verbose_name - - verbose_name_plural - AuthenticatorEmailStageRequest: - type: object - description: AuthenticatorEmailStage Serializer - properties: - name: - type: string - minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' - configure_flow: - type: string - format: uuid - nullable: true - description: Flow used by an authenticated user to configure this Stage. - If empty, user will not be able to configure this stage. - friendly_name: - type: string - use_global_settings: - type: boolean - description: When enabled, global Email connection settings will be used - and connection settings below will be ignored. - host: - type: string - minLength: 1 - port: - type: integer - maximum: 2147483647 - minimum: -2147483648 - username: - type: string - password: - type: string - use_tls: - type: boolean - use_ssl: - type: boolean - timeout: - type: integer - maximum: 2147483647 - minimum: -2147483648 - from_address: - type: string - format: email - minLength: 1 - maxLength: 254 - subject: - type: string - minLength: 1 - token_expiry: - type: string - minLength: 1 - description: 'Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).' - template: - type: string - minLength: 1 - required: - - name - AuthenticatorEndpointGDTCStage: - type: object - description: AuthenticatorEndpointGDTCStage Serializer - properties: - pk: - type: string - format: uuid - readOnly: true - title: Stage uuid - name: - type: string - component: - type: string - description: Get object type so that we know how to edit the object - readOnly: true - verbose_name: - type: string - description: Return object's verbose_name - readOnly: true - verbose_name_plural: - type: string - description: Return object's plural verbose_name readOnly: true - meta_model_name: - type: string - description: Return internal model name - readOnly: true - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSet' + configure_flow: + type: string + format: uuid + nullable: true + description: Flow used by an authenticated user to configure this Stage. + If empty, user will not be able to configure this stage. + friendly_name: + type: string + use_global_settings: + type: boolean + description: When enabled, global Email connection settings will be used + and connection settings below will be ignored. + host: + type: string + port: + type: integer + maximum: 2147483647 + minimum: -2147483648 + username: + type: string + password: + type: string + use_tls: + type: boolean + use_ssl: + type: boolean + timeout: + type: integer + maximum: 2147483647 + minimum: -2147483648 + from_address: + type: string + format: email + maxLength: 254 + subject: + type: string + token_expiry: + type: string + description: 'Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).' + template: + type: string + required: + - component + - flow_set + - meta_model_name + - name + - pk + - verbose_name + - verbose_name_plural + AuthenticatorEmailStageRequest: + type: object + description: AuthenticatorEmailStage Serializer + properties: + name: + type: string + minLength: 1 + configure_flow: + type: string + format: uuid + nullable: true + description: Flow used by an authenticated user to configure this Stage. + If empty, user will not be able to configure this stage. + friendly_name: + type: string + use_global_settings: + type: boolean + description: When enabled, global Email connection settings will be used + and connection settings below will be ignored. + host: + type: string + minLength: 1 + port: + type: integer + maximum: 2147483647 + minimum: -2147483648 + username: + type: string + password: + type: string + use_tls: + type: boolean + use_ssl: + type: boolean + timeout: + type: integer + maximum: 2147483647 + minimum: -2147483648 + from_address: + type: string + format: email + minLength: 1 + maxLength: 254 + subject: + type: string + minLength: 1 + token_expiry: + type: string + minLength: 1 + description: 'Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).' + template: + type: string + minLength: 1 + required: + - name + AuthenticatorEndpointGDTCStage: + type: object + description: AuthenticatorEndpointGDTCStage Serializer + properties: + pk: + type: string + format: uuid + readOnly: true + title: Stage uuid + name: + type: string + component: + type: string + description: Get object type so that we know how to edit the object + readOnly: true + verbose_name: + type: string + description: Return object's verbose_name + readOnly: true + verbose_name_plural: + type: string + description: Return object's plural verbose_name + readOnly: true + meta_model_name: + type: string + description: Return internal model name + readOnly: true + flow_set: + type: array + items: + $ref: '#/components/schemas/FlowSet' + readOnly: true configure_flow: type: string format: uuid @@ -32013,6 +33808,7 @@ components: required: - component - credentials + - flow_set - meta_model_name - name - pk @@ -32025,10 +33821,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -32077,7 +33869,8 @@ components: minLength: 1 default: ak-stage-authenticator-sms code: - type: integer + type: string + minLength: 1 phone_number: type: string minLength: 1 @@ -32112,6 +33905,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true configure_flow: type: string format: uuid @@ -32146,6 +33940,7 @@ components: - account_sid - auth - component + - flow_set - from_number - meta_model_name - name @@ -32160,10 +33955,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -32269,6 +34060,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true configure_flow: type: string format: uuid @@ -32283,10 +34075,11 @@ components: minimum: 0 token_length: type: integer - maximum: 2147483647 + maximum: 100 minimum: 0 required: - component + - flow_set - meta_model_name - name - pk @@ -32299,10 +34092,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -32317,7 +34106,7 @@ components: minimum: 0 token_length: type: integer - maximum: 2147483647 + maximum: 100 minimum: 0 required: - name @@ -32355,7 +34144,8 @@ components: minLength: 1 default: ak-stage-authenticator-totp code: - type: integer + type: string + minLength: 1 required: - code AuthenticatorTOTPStage: @@ -32389,6 +34179,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true configure_flow: type: string format: uuid @@ -32402,6 +34193,7 @@ components: required: - component - digits + - flow_set - meta_model_name - name - pk @@ -32414,10 +34206,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -32462,6 +34250,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true not_configured_action: $ref: '#/components/schemas/NotConfiguredActionEnum' device_classes: @@ -32497,6 +34286,7 @@ components: readOnly: true required: - component + - flow_set - meta_model_name - name - pk @@ -32510,10 +34300,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' not_configured_action: $ref: '#/components/schemas/NotConfiguredActionEnum' device_classes: @@ -32668,6 +34454,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true configure_flow: type: string format: uuid @@ -32701,6 +34488,7 @@ components: required: - component - device_type_restrictions_obj + - flow_set - meta_model_name - name - pk @@ -32713,10 +34501,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -33048,6 +34832,7 @@ components: CapabilitiesEnum: enum: - can_save_media + - can_save_reports - can_geo_ip - can_asn - can_impersonate @@ -33129,6 +34914,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true public_key: type: string description: Public key, acquired your captcha Provider. @@ -33152,6 +34938,7 @@ components: in the context for policy decisions required: - component + - flow_set - meta_model_name - name - pk @@ -33165,10 +34952,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' public_key: type: string minLength: 1 @@ -33271,10 +35054,10 @@ components: type: boolean description: Show if this keypair has a private key configured or not readOnly: true - private_key_type: - type: string + key_type: + allOf: + - $ref: '#/components/schemas/KeyTypeEnum' nullable: true - description: Get the private key's type, if set readOnly: true certificate_download_url: type: string @@ -33299,12 +35082,12 @@ components: - certificate_download_url - fingerprint_sha1 - fingerprint_sha256 + - key_type - managed - name - pk - private_key_available - private_key_download_url - - private_key_type CertificateKeyPairRequest: type: object description: CertificateKeyPair Serializer @@ -33341,6 +35124,7 @@ components: - $ref: '#/components/schemas/ConsentChallenge' - $ref: '#/components/schemas/DummyChallenge' - $ref: '#/components/schemas/EmailChallenge' + - $ref: '#/components/schemas/EndpointAgentChallenge' - $ref: '#/components/schemas/FlowErrorChallenge' - $ref: '#/components/schemas/FrameChallenge' - $ref: '#/components/schemas/IdentificationChallenge' @@ -33373,6 +35157,7 @@ components: ak-stage-consent: '#/components/schemas/ConsentChallenge' ak-stage-dummy: '#/components/schemas/DummyChallenge' ak-stage-email: '#/components/schemas/EmailChallenge' + ak-stage-endpoint-agent: '#/components/schemas/EndpointAgentChallenge' ak-stage-flow-error: '#/components/schemas/FlowErrorChallenge' xak-flow-frame: '#/components/schemas/FrameChallenge' ak-stage-identification: '#/components/schemas/IdentificationChallenge' @@ -33469,6 +35254,38 @@ components: required: - endpoint - provider + Connector: + type: object + properties: + connector_uuid: + type: string + format: uuid + name: + type: string + enabled: + type: boolean + component: + type: string + description: Get object component so that we know how to edit the object + readOnly: true + verbose_name: + type: string + description: Return object's verbose_name + readOnly: true + verbose_name_plural: + type: string + description: Return object's plural verbose_name + readOnly: true + meta_model_name: + type: string + description: Return internal model name + readOnly: true + required: + - component + - meta_model_name + - name + - verbose_name + - verbose_name_plural ConsentChallenge: type: object description: Challenge info for consent screens @@ -33561,6 +35378,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true mode: $ref: '#/components/schemas/ConsentStageModeEnum' consent_expire_in: @@ -33569,6 +35387,7 @@ components: description: 'Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3).' required: - component + - flow_set - meta_model_name - name - pk @@ -33587,10 +35406,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' mode: $ref: '#/components/schemas/ConsentStageModeEnum' consent_expire_in: @@ -33600,6 +35415,26 @@ components: description: 'Offset after which consent expires. (Format: hours=1;minutes=2;seconds=3).' required: - name + ContentType: + type: object + properties: + id: + type: integer + readOnly: true + app_label: + type: string + readOnly: true + model: + type: string + readOnly: true + verbose_name_plural: + type: string + readOnly: true + required: + - app_label + - id + - model + - verbose_name_plural ContextualFlowInfo: type: object description: Contextual flow information for a challenge @@ -33608,6 +35443,10 @@ components: type: string background: type: string + background_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + nullable: true cancel_url: type: string layout: @@ -33885,8 +35724,18 @@ components: type: string branding_logo: type: string + branding_logo_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true branding_favicon: type: string + branding_favicon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true branding_custom_css: type: string ui_footer_links: @@ -33919,19 +35768,66 @@ components: properties: policies_buffered_access_view: type: boolean + flows_continuous_login: + type: boolean + flows_refresh_others: + type: boolean required: + - flows_continuous_login + - flows_refresh_others - policies_buffered_access_view readOnly: true required: - branding_custom_css - branding_favicon + - branding_favicon_themed_urls - branding_logo + - branding_logo_themed_urls - branding_title - default_locale - flags - matched_domain - ui_footer_links - ui_theme + DataExport: + type: object + description: |- + Mixin to validate that a valid enterprise license + exists before allowing to save the object + properties: + id: + type: string + format: uuid + readOnly: true + requested_by: + allOf: + - $ref: '#/components/schemas/PartialUser' + readOnly: true + requested_on: + type: string + format: date-time + readOnly: true + content_type: + allOf: + - $ref: '#/components/schemas/ContentType' + readOnly: true + query_params: + type: object + additionalProperties: {} + file_url: + type: string + readOnly: true + completed: + type: boolean + readOnly: true + required: + - completed + - content_type + - file_url + - id + - query_params + - requested_by + - requested_on DeliveryMethodEnum: enum: - https://schemas.openid.net/secevent/risc/delivery-method/push @@ -33974,10 +35870,12 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true deny_message: type: string required: - component + - flow_set - meta_model_name - name - pk @@ -33990,10 +35888,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' deny_message: type: string required: @@ -34080,6 +35974,26 @@ components: - type - verbose_name - verbose_name_plural + DeviceAccessGroup: + type: object + properties: + pbm_uuid: + type: string + format: uuid + readOnly: true + name: + type: string + required: + - name + - pbm_uuid + DeviceAccessGroupRequest: + type: object + properties: + name: + type: string + minLength: 1 + required: + - name DeviceChallenge: type: object description: Single device challenge @@ -34130,6 +36044,324 @@ components: - sms - email type: string + DeviceConnection: + type: object + properties: + device: + type: string + format: uuid + connector: + type: string + format: uuid + connector_obj: + allOf: + - $ref: '#/components/schemas/Connector' + readOnly: true + latest_snapshot: + allOf: + - $ref: '#/components/schemas/DeviceFactSnapshot' + readOnly: true + nullable: true + required: + - connector + - connector_obj + - device + - latest_snapshot + DeviceFactSnapshot: + type: object + properties: + data: + $ref: '#/components/schemas/DeviceFacts' + connection: + type: string + format: uuid + created: + type: string + format: date-time + readOnly: true + expires: + type: string + format: date-time + readOnly: true + nullable: true + required: + - connection + - created + - data + - expires + DeviceFacts: + type: object + properties: + os: + allOf: + - $ref: '#/components/schemas/OperatingSystem' + nullable: true + disks: + type: array + items: + $ref: '#/components/schemas/Disk' + nullable: true + network: + allOf: + - $ref: '#/components/schemas/Network' + nullable: true + hardware: + allOf: + - $ref: '#/components/schemas/Hardware' + nullable: true + software: + type: array + items: + $ref: '#/components/schemas/Software' + nullable: true + processes: + type: array + items: + $ref: '#/components/schemas/Process' + nullable: true + users: + type: array + items: + $ref: '#/components/schemas/DeviceUser' + nullable: true + groups: + type: array + items: + $ref: '#/components/schemas/DeviceGroup' + nullable: true + vendor: + type: object + additionalProperties: {} + DeviceFactsOSFamily: + enum: + - linux + - unix + - bsd + - windows + - mac_os + - android + - i_os + - other + type: string + DeviceFactsRequest: + type: object + properties: + os: + allOf: + - $ref: '#/components/schemas/OperatingSystemRequest' + nullable: true + disks: + type: array + items: + $ref: '#/components/schemas/DiskRequest' + nullable: true + network: + allOf: + - $ref: '#/components/schemas/NetworkRequest' + nullable: true + hardware: + allOf: + - $ref: '#/components/schemas/HardwareRequest' + nullable: true + software: + type: array + items: + $ref: '#/components/schemas/SoftwareRequest' + nullable: true + processes: + type: array + items: + $ref: '#/components/schemas/ProcessRequest' + nullable: true + users: + type: array + items: + $ref: '#/components/schemas/DeviceUserRequest' + nullable: true + groups: + type: array + items: + $ref: '#/components/schemas/DeviceGroupRequest' + nullable: true + vendor: + type: object + additionalProperties: {} + DeviceGroup: + type: object + properties: + id: + type: string + name: + type: string + required: + - id + DeviceGroupRequest: + type: object + properties: + id: + type: string + minLength: 1 + name: + type: string + minLength: 1 + required: + - id + DeviceSummary: + type: object + description: Summary of registered devices + properties: + total_count: + type: integer + unreachable_count: + type: integer + outdated_agent_count: + type: integer + required: + - outdated_agent_count + - total_count + - unreachable_count + DeviceUser: + type: object + properties: + id: + type: string + username: + type: string + name: + type: string + home: + type: string + required: + - id + DeviceUserBinding: + type: object + description: PolicyBinding Serializer + properties: + pk: + type: string + format: uuid + readOnly: true + title: Policy binding uuid + policy: + type: string + format: uuid + nullable: true + group: + type: string + format: uuid + nullable: true + user: + type: integer + nullable: true + policy_obj: + allOf: + - $ref: '#/components/schemas/Policy' + readOnly: true + group_obj: + allOf: + - $ref: '#/components/schemas/PartialGroup' + readOnly: true + user_obj: + allOf: + - $ref: '#/components/schemas/PartialUser' + readOnly: true + target: + type: string + format: uuid + negate: + type: boolean + description: Negates the outcome of the policy. Messages are unaffected. + enabled: + type: boolean + order: + type: integer + maximum: 2147483647 + minimum: -2147483648 + timeout: + type: integer + maximum: 2147483647 + minimum: 0 + description: Timeout after which Policy execution is terminated. + failure_result: + type: boolean + description: Result if the Policy execution fails. + is_primary: + type: boolean + connector: + type: string + format: uuid + readOnly: true + nullable: true + connector_obj: + allOf: + - $ref: '#/components/schemas/Connector' + readOnly: true + required: + - connector + - connector_obj + - group_obj + - order + - pk + - policy_obj + - target + - user_obj + DeviceUserBindingRequest: + type: object + description: PolicyBinding Serializer + properties: + policy: + type: string + format: uuid + nullable: true + group: + type: string + format: uuid + nullable: true + user: + type: integer + nullable: true + target: + type: string + format: uuid + negate: + type: boolean + description: Negates the outcome of the policy. Messages are unaffected. + enabled: + type: boolean + order: + type: integer + maximum: 2147483647 + minimum: -2147483648 + timeout: + type: integer + maximum: 2147483647 + minimum: 0 + description: Timeout after which Policy execution is terminated. + failure_result: + type: boolean + description: Result if the Policy execution fails. + is_primary: + type: boolean + required: + - order + - target + DeviceUserRequest: + type: object + properties: + id: + type: string + minLength: 1 + username: + type: string + minLength: 1 + name: + type: string + minLength: 1 + home: + type: string + minLength: 1 + required: + - id DigestAlgorithmEnum: enum: - http://www.w3.org/2000/09/xmldsig#sha1 @@ -34142,6 +36374,50 @@ components: - '6' - '8' type: string + Disk: + type: object + properties: + name: + type: string + mountpoint: + type: string + label: + type: string + capacity_total_bytes: + type: integer + format: int64 + capacity_used_bytes: + type: integer + format: int64 + encryption_enabled: + type: boolean + default: false + required: + - mountpoint + - name + DiskRequest: + type: object + properties: + name: + type: string + minLength: 1 + mountpoint: + type: string + minLength: 1 + label: + type: string + capacity_total_bytes: + type: integer + format: int64 + capacity_used_bytes: + type: integer + format: int64 + encryption_enabled: + type: boolean + default: false + required: + - mountpoint + - name DockerServiceConnection: type: object description: DockerServiceConnection Serializer @@ -34398,10 +36674,12 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true throw_error: type: boolean required: - component + - flow_set - meta_model_name - name - pk @@ -34414,10 +36692,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' throw_error: type: boolean required: @@ -34558,6 +36832,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true use_global_settings: type: boolean description: When enabled, global Email connection settings will be used @@ -34603,6 +36878,7 @@ components: further attempts will be rate-limited. (Format: hours=1;minutes=2;seconds=3).' required: - component + - flow_set - meta_model_name - name - pk @@ -34615,10 +36891,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' use_global_settings: type: boolean description: When enabled, global Email connection settings will be used @@ -34724,6 +36996,40 @@ components: - protocol - provider - provider_obj + EndpointAgentChallenge: + type: object + description: Signed challenge for authentik agent to respond to + properties: + flow_info: + $ref: '#/components/schemas/ContextualFlowInfo' + component: + type: string + default: ak-stage-endpoint-agent + response_errors: + type: object + additionalProperties: + type: array + items: + $ref: '#/components/schemas/ErrorDetail' + challenge: + type: string + challenge_idle_timeout: + type: integer + required: + - challenge + - challenge_idle_timeout + EndpointAgentChallengeResponseRequest: + type: object + description: Response to signed challenge + properties: + component: + type: string + minLength: 1 + default: ak-stage-endpoint-agent + response: + type: string + nullable: true + minLength: 1 EndpointAuthModeEnum: enum: - static @@ -34731,31 +37037,117 @@ components: type: string EndpointDevice: type: object - description: Serializer for Endpoint authenticator devices properties: - pk: + device_uuid: type: string format: uuid - title: Uuid + pbm_uuid: + type: string + format: uuid + readOnly: true name: type: string - description: The human-readable name of this device. - maxLength: 64 + access_group: + type: string + format: uuid + nullable: true + access_group_obj: + $ref: '#/components/schemas/DeviceAccessGroup' + expiring: + type: boolean + expires: + type: string + format: date-time + nullable: true + facts: + allOf: + - $ref: '#/components/schemas/DeviceFactSnapshot' + readOnly: true + attributes: + type: object + additionalProperties: {} + required: + - facts + - name + - pbm_uuid + EndpointDeviceDetails: + type: object + properties: + device_uuid: + type: string + format: uuid + pbm_uuid: + type: string + format: uuid + readOnly: true + name: + type: string + access_group: + type: string + format: uuid + nullable: true + access_group_obj: + $ref: '#/components/schemas/DeviceAccessGroup' + expiring: + type: boolean + expires: + type: string + format: date-time + nullable: true + facts: + allOf: + - $ref: '#/components/schemas/DeviceFactSnapshot' + readOnly: true + attributes: + type: object + additionalProperties: {} + connections_obj: + type: array + items: + $ref: '#/components/schemas/DeviceConnection' + policies: + type: array + items: + type: string + format: uuid + readOnly: true + connections: + type: array + items: + type: string + format: uuid + readOnly: true required: + - connections + - connections_obj + - facts - name + - pbm_uuid + - policies EndpointDeviceRequest: type: object - description: Serializer for Endpoint authenticator devices properties: - pk: + device_uuid: type: string format: uuid - title: Uuid name: type: string minLength: 1 - description: The human-readable name of this device. - maxLength: 64 + access_group: + type: string + format: uuid + nullable: true + access_group_obj: + $ref: '#/components/schemas/DeviceAccessGroupRequest' + expiring: + type: boolean + expires: + type: string + format: date-time + nullable: true + attributes: + type: object + additionalProperties: {} required: - name EndpointRequest: @@ -34792,6 +37184,138 @@ components: - name - protocol - provider + EndpointStage: + type: object + description: EndpointStage Serializer + properties: + pk: + type: string + format: uuid + readOnly: true + title: Stage uuid + name: + type: string + component: + type: string + description: Get object type so that we know how to edit the object + readOnly: true + verbose_name: + type: string + description: Return object's verbose_name + readOnly: true + verbose_name_plural: + type: string + description: Return object's plural verbose_name + readOnly: true + meta_model_name: + type: string + description: Return internal model name + readOnly: true + flow_set: + type: array + items: + $ref: '#/components/schemas/FlowSet' + readOnly: true + connector: + type: string + format: uuid + connector_obj: + allOf: + - $ref: '#/components/schemas/Connector' + readOnly: true + mode: + $ref: '#/components/schemas/StageModeEnum' + required: + - component + - connector + - connector_obj + - flow_set + - meta_model_name + - name + - pk + - verbose_name + - verbose_name_plural + EndpointStageRequest: + type: object + description: EndpointStage Serializer + properties: + name: + type: string + minLength: 1 + connector: + type: string + format: uuid + mode: + $ref: '#/components/schemas/StageModeEnum' + required: + - connector + - name + EnrollRequest: + type: object + description: Base serializer class which doesn't implement create/update methods + properties: + device_serial: + type: string + minLength: 1 + device_name: + type: string + minLength: 1 + required: + - device_name + - device_serial + EnrollmentToken: + type: object + properties: + token_uuid: + type: string + format: uuid + readOnly: true + device_group: + type: string + format: uuid + nullable: true + device_group_obj: + allOf: + - $ref: '#/components/schemas/DeviceAccessGroup' + readOnly: true + connector: + type: string + format: uuid + name: + type: string + expiring: + type: boolean + expires: + type: string + format: date-time + nullable: true + required: + - connector + - device_group_obj + - name + - token_uuid + EnrollmentTokenRequest: + type: object + properties: + device_group: + type: string + format: uuid + nullable: true + connector: + type: string + format: uuid + name: + type: string + minLength: 1 + expiring: + type: boolean + expires: + type: string + format: date-time + nullable: true + required: + - connector + - name ErrorDetail: type: object description: Serializer for rest_framework's error messages @@ -34894,6 +37418,7 @@ components: - model_deleted - email_sent - update_available + - export_ready - custom_ type: string EventMatcherPolicy: @@ -35074,7 +37599,7 @@ components: readOnly: true title: ID provider: - $ref: '#/components/schemas/OAuth2Provider' + $ref: '#/components/schemas/Provider' user: $ref: '#/components/schemas/User' is_expired: @@ -35160,7 +37685,7 @@ components: - name ExtraRoleObjectPermission: type: object - description: User permission with additional object-related data + description: Role permission with additional object-related data properties: id: type: integer @@ -35193,7 +37718,7 @@ components: nullable: true description: |- Get model description from attached model. This operation takes at least - one additional query, and the description is only shown if the user/role has the + one additional query, and the description is only shown if the role has the view_ permission on the object readOnly: true required: @@ -35206,91 +37731,39 @@ components: - name - object_description - object_pk - ExtraRoleObjectPermissionRequest: + FileList: type: object - description: User permission with additional object-related data - properties: - object_pk: - type: string - minLength: 1 - required: - - object_pk - ExtraUserObjectPermission: - type: object - description: User permission with additional object-related data + description: Base serializer class which doesn't implement create/update methods properties: - id: - type: integer - readOnly: true - codename: - type: string - readOnly: true - model: - type: string - title: Python model class name - readOnly: true - app_label: - type: string - readOnly: true - object_pk: - type: string name: type: string - readOnly: true - app_label_verbose: + mime_type: type: string - description: Get app label from permission's model - readOnly: true - model_verbose: - type: string - description: Get model label from permission's model - readOnly: true - object_description: + url: type: string + themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' nullable: true - description: |- - Get model description from attached model. This operation takes at least - one additional query, and the description is only shown if the user/role has the - view_ permission on the object - readOnly: true required: - - app_label - - app_label_verbose - - codename - - id - - model - - model_verbose + - mime_type - name - - object_description - - object_pk - ExtraUserObjectPermissionRequest: - type: object - description: User permission with additional object-related data - properties: - object_pk: - type: string - minLength: 1 - required: - - object_pk - FilePathRequest: - type: object - description: Serializer to upload file - properties: - url: - type: string - minLength: 1 - required: - url FileUploadRequest: type: object - description: Serializer to upload file + description: Base serializer class which doesn't implement create/update methods properties: file: type: string format: binary - clear: - type: boolean - default: false + name: + type: string + usage: + type: string + minLength: 1 + default: media + required: + - file Flow: type: object description: Flow Serializer @@ -35309,7 +37782,6 @@ components: slug: type: string description: Visible in the URL. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ title: type: string @@ -35321,10 +37793,16 @@ components: flow is redirect to when an un-authenticated user visits authentik. background: type: string - description: |- - Get the URL to the background image. If the name is /static or starts with http - it is returned as-is + description: Background shown during execution + background_url: + type: string + description: Get the URL to the background image readOnly: true + background_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true stages: type: array items: @@ -35364,7 +37842,8 @@ components: description: Required level of authentication and authorization to access a flow. required: - - background + - background_themed_urls + - background_url - cache_count - designation - export_url @@ -35390,6 +37869,7 @@ components: - $ref: '#/components/schemas/ConsentChallengeResponseRequest' - $ref: '#/components/schemas/DummyChallengeResponseRequest' - $ref: '#/components/schemas/EmailChallengeResponseRequest' + - $ref: '#/components/schemas/EndpointAgentChallengeResponseRequest' - $ref: '#/components/schemas/FrameChallengeResponseRequest' - $ref: '#/components/schemas/IdentificationChallengeResponseRequest' - $ref: '#/components/schemas/IframeLogoutChallengeResponseRequest' @@ -35418,6 +37898,7 @@ components: ak-stage-consent: '#/components/schemas/ConsentChallengeResponseRequest' ak-stage-dummy: '#/components/schemas/DummyChallengeResponseRequest' ak-stage-email: '#/components/schemas/EmailChallengeResponseRequest' + ak-stage-endpoint-agent: '#/components/schemas/EndpointAgentChallengeResponseRequest' xak-flow-frame: '#/components/schemas/FrameChallengeResponseRequest' ak-stage-identification: '#/components/schemas/IdentificationChallengeResponseRequest' ak-provider-iframe-logout: '#/components/schemas/IframeLogoutChallengeResponseRequest' @@ -35549,7 +38030,6 @@ components: type: string minLength: 1 description: Visible in the URL. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ title: type: string @@ -35560,6 +38040,9 @@ components: - $ref: '#/components/schemas/FlowDesignationEnum' description: Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. + background: + type: string + description: Background shown during execution policy_engine_mode: $ref: '#/components/schemas/PolicyEngineMode' compatibility_mode: @@ -35601,7 +38084,6 @@ components: slug: type: string description: Visible in the URL. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ title: type: string @@ -35611,11 +38093,9 @@ components: - $ref: '#/components/schemas/FlowDesignationEnum' description: Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. - background: + background_url: type: string - description: |- - Get the URL to the background image. If the name is /static or starts with http - it is returned as-is + description: Get the URL to the background image readOnly: true policy_engine_mode: $ref: '#/components/schemas/PolicyEngineMode' @@ -35635,7 +38115,7 @@ components: description: Configure what should happen when a flow denies access to a user. required: - - background + - background_url - designation - export_url - name @@ -35643,46 +38123,6 @@ components: - policybindingmodel_ptr_id - slug - title - FlowSetRequest: - type: object - description: Stripped down flow serializer - properties: - name: - type: string - minLength: 1 - slug: - type: string - minLength: 1 - description: Visible in the URL. - maxLength: 50 - pattern: ^[-a-zA-Z0-9_]+$ - title: - type: string - minLength: 1 - description: Shown as the Title in Flow pages. - designation: - allOf: - - $ref: '#/components/schemas/FlowDesignationEnum' - description: Decides what this Flow is used for. For example, the Authentication - flow is redirect to when an un-authenticated user visits authentik. - policy_engine_mode: - $ref: '#/components/schemas/PolicyEngineMode' - compatibility_mode: - type: boolean - description: Enable compatibility mode, increases compatibility with password - managers on mobile devices. - layout: - $ref: '#/components/schemas/FlowLayoutEnum' - denied_action: - allOf: - - $ref: '#/components/schemas/DeniedActionEnum' - description: Configure what should happen when a flow denies access to a - user. - required: - - designation - - name - - slug - - title FlowStageBinding: type: object description: FlowStageBinding Serializer @@ -35765,6 +38205,16 @@ components: - order - stage - target + FlowUploadRequest: + type: object + description: Serializer to upload file + properties: + file: + type: string + format: binary + clear: + type: boolean + default: false FooterLink: type: object description: Links returned in Config API @@ -36001,6 +38451,35 @@ components: - rejected - running - warning + GoogleEndpointDevice: + type: object + description: Serializer for Endpoint authenticator devices + properties: + pk: + type: string + format: uuid + title: Uuid + name: + type: string + description: The human-readable name of this device. + maxLength: 64 + required: + - name + GoogleEndpointDeviceRequest: + type: object + description: Serializer for Endpoint authenticator devices + properties: + pk: + type: string + format: uuid + title: Uuid + name: + type: string + minLength: 1 + description: The human-readable name of this device. + maxLength: 64 + required: + - name GoogleWorkspaceProvider: type: object description: GoogleWorkspaceProvider Serializer @@ -36030,10 +38509,12 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -36067,6 +38548,14 @@ components: $ref: '#/components/schemas/OutgoingSyncDeleteAction' default_group_email_domain: type: string + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -36238,6 +38727,15 @@ components: default_group_email_domain: type: string minLength: 1 + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + minLength: 1 + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -36308,12 +38806,15 @@ components: is_superuser: type: boolean description: Users added to this group will be superusers. - parent: - type: string - format: uuid - nullable: true - parent_name: - type: string + parents: + type: array + items: + type: string + format: uuid + parents_obj: + type: array + items: + $ref: '#/components/schemas/RelatedGroup' readOnly: true nullable: true users: @@ -36339,50 +38840,34 @@ components: items: $ref: '#/components/schemas/Role' readOnly: true + inherited_roles_obj: + type: array + items: + $ref: '#/components/schemas/Role' + readOnly: true + nullable: true children: type: array items: type: string format: uuid + readOnly: true children_obj: type: array items: - $ref: '#/components/schemas/GroupChild' + $ref: '#/components/schemas/RelatedGroup' readOnly: true nullable: true required: + - children - children_obj + - inherited_roles_obj - name - num_pk - - parent_name + - parents_obj - pk - roles_obj - users_obj - GroupChild: - type: object - description: Stripped down group serializer to show relevant children for groups - properties: - pk: - type: string - format: uuid - readOnly: true - title: Group uuid - name: - type: string - is_superuser: - type: boolean - description: Users added to this group will be superusers. - attributes: - type: object - additionalProperties: {} - group_uuid: - type: string - format: uuid - readOnly: true - required: - - group_uuid - - name - - pk GroupKerberosSourceConnection: type: object description: Group Source Connection @@ -36611,10 +39096,11 @@ components: is_superuser: type: boolean description: Users added to this group will be superusers. - parent: - type: string - format: uuid - nullable: true + parents: + type: array + items: + type: string + format: uuid users: type: array items: @@ -36627,11 +39113,6 @@ components: items: type: string format: uuid - children: - type: array - items: - type: string - format: uuid required: - name GroupSAMLSourceConnection: @@ -36670,7 +39151,60 @@ components: - pk - source - source_obj - GroupSAMLSourceConnectionRequest: + GroupSAMLSourceConnectionRequest: + type: object + description: Group Source Connection + properties: + group: + type: string + format: uuid + source: + type: string + format: uuid + identifier: + type: string + minLength: 1 + required: + - group + - identifier + - source + GroupSourceConnection: + type: object + description: Group Source Connection + properties: + pk: + type: integer + readOnly: true + title: ID + group: + type: string + format: uuid + source: + type: string + format: uuid + source_obj: + allOf: + - $ref: '#/components/schemas/Source' + readOnly: true + identifier: + type: string + created: + type: string + format: date-time + readOnly: true + last_updated: + type: string + format: date-time + readOnly: true + required: + - created + - group + - identifier + - last_updated + - pk + - source + - source_obj + GroupSourceConnectionRequest: type: object description: Group Source Connection properties: @@ -36687,7 +39221,7 @@ components: - group - identifier - source - GroupSourceConnection: + GroupTelegramSourceConnection: type: object description: Group Source Connection properties: @@ -36723,7 +39257,7 @@ components: - pk - source - source_obj - GroupSourceConnectionRequest: + GroupTelegramSourceConnectionRequest: type: object description: Group Source Connection properties: @@ -36740,59 +39274,46 @@ components: - group - identifier - source - GroupTelegramSourceConnection: + Hardware: type: object - description: Group Source Connection properties: - pk: - type: integer - readOnly: true - title: ID - group: + model: type: string - format: uuid - source: + manufacturer: type: string - format: uuid - source_obj: - allOf: - - $ref: '#/components/schemas/Source' - readOnly: true - identifier: - type: string - created: + serial: type: string - format: date-time - readOnly: true - last_updated: + cpu_name: type: string - format: date-time - readOnly: true + cpu_count: + type: integer + memory_bytes: + type: integer + format: int64 required: - - created - - group - - identifier - - last_updated - - pk - - source - - source_obj - GroupTelegramSourceConnectionRequest: + - serial + HardwareRequest: type: object - description: Group Source Connection properties: - group: + model: type: string - format: uuid - source: + minLength: 1 + manufacturer: type: string - format: uuid - identifier: + minLength: 1 + serial: type: string minLength: 1 + cpu_name: + type: string + minLength: 1 + cpu_count: + type: integer + memory_bytes: + type: integer + format: int64 required: - - group - - identifier - - source + - serial IdentificationChallenge: type: object description: Identification challenges with all UI elements @@ -36820,6 +39341,8 @@ components: default: false application_pre: type: string + application_pre_launch: + type: string flow_designation: $ref: '#/components/schemas/FlowDesignationEnum' captcha_stage: @@ -36843,6 +39366,10 @@ components: enable_remember_me: type: boolean default: true + passkey_challenge: + type: object + additionalProperties: {} + nullable: true required: - flow_designation - password_fields @@ -36859,15 +39386,17 @@ components: default: ak-stage-identification uid_field: type: string - minLength: 1 + nullable: true password: type: string nullable: true captcha_token: type: string nullable: true - required: - - uid_field + passkey: + type: object + additionalProperties: {} + nullable: true IdentificationStage: type: object description: IdentificationStage Serializer @@ -36899,6 +39428,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true user_fields: type: array items: @@ -36959,8 +39489,15 @@ components: type: boolean description: Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password. + webauthn_stage: + type: string + format: uuid + nullable: true + description: When set, and conditional WebAuthn is available, allow the + user to use their passkey as a first factor. required: - component + - flow_set - meta_model_name - name - pk @@ -36973,10 +39510,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' user_fields: type: array items: @@ -37037,6 +39570,12 @@ components: type: boolean description: Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password. + webauthn_stage: + type: string + format: uuid + nullable: true + description: When set, and conditional WebAuthn is available, allow the + user to use their passkey as a first factor. required: - name IframeLogoutChallenge: @@ -37086,8 +39625,6 @@ components: name: type: string maxLength: 150 - mode: - $ref: '#/components/schemas/InitialPermissionsModeEnum' role: type: string format: uuid @@ -37101,16 +39638,10 @@ components: $ref: '#/components/schemas/Permission' readOnly: true required: - - mode - name - permissions_obj - pk - role - InitialPermissionsModeEnum: - enum: - - user - - role - type: string InitialPermissionsRequest: type: object description: InitialPermissions serializer @@ -37119,8 +39650,6 @@ components: type: string minLength: 1 maxLength: 150 - mode: - $ref: '#/components/schemas/InitialPermissionsModeEnum' role: type: string format: uuid @@ -37129,7 +39658,6 @@ components: items: type: integer required: - - mode - name - role InstallID: @@ -37163,7 +39691,6 @@ components: title: Invite uuid name: type: string - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ expires: type: string @@ -37200,7 +39727,6 @@ components: name: type: string minLength: 1 - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ expires: type: string @@ -37250,6 +39776,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true continue_flow_without_invitation: type: boolean description: If this flag is set, this Stage will jump to the next Stage @@ -37257,6 +39784,7 @@ components: when no invitation is given. required: - component + - flow_set - meta_model_name - name - pk @@ -37269,10 +39797,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' continue_flow_without_invitation: type: boolean description: If this flag is set, this Stage will jump to the next Stage @@ -37289,7 +39813,6 @@ components: enum: - MIT - Heimdal - - other type: string KerberosSource: type: object @@ -37306,10 +39829,13 @@ components: slug: type: string description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -37366,7 +39892,14 @@ components: type: string icon: type: string + icon_url: + type: string readOnly: true + icon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -37413,10 +39946,15 @@ components: type: boolean description: If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend + sync_outgoing_trigger_mode: + allOf: + - $ref: '#/components/schemas/SyncOutgoingTriggerModeEnum' + description: When to trigger sync for outgoing providers required: - component - connectivity - - icon + - icon_themed_urls + - icon_url - managed - meta_model_name - name @@ -37504,10 +40042,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -37538,6 +40079,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -37592,10 +40135,22 @@ components: type: boolean description: If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend + sync_outgoing_trigger_mode: + allOf: + - $ref: '#/components/schemas/SyncOutgoingTriggerModeEnum' + description: When to trigger sync for outgoing providers required: - name - realm - slug + KeyTypeEnum: + enum: + - rsa + - ec + - dsa + - ed25519 + - ed448 + type: string KubernetesServiceConnection: type: object description: KubernetesServiceConnection Serializer @@ -37801,18 +40356,22 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_application_name: type: string description: Application's display Name. readOnly: true + nullable: true assigned_backchannel_application_slug: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -37960,10 +40519,13 @@ components: slug: type: string description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -38020,7 +40582,14 @@ components: type: string icon: type: string + icon_url: + type: string + readOnly: true + icon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' readOnly: true + nullable: true server_uri: type: string format: uri @@ -38103,11 +40672,16 @@ components: type: boolean description: Delete authentik users and groups which were previously supplied by this source, but are now missing from it. + sync_outgoing_trigger_mode: + allOf: + - $ref: '#/components/schemas/SyncOutgoingTriggerModeEnum' + description: When to trigger sync for outgoing providers required: - base_dn - component - connectivity - - icon + - icon_themed_urls + - icon_url - managed - meta_model_name - name @@ -38195,10 +40769,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -38229,6 +40806,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string server_uri: type: string minLength: 1 @@ -38312,6 +40891,10 @@ components: type: boolean description: Delete authentik users and groups which were previously supplied by this source, but are now missing from it. + sync_outgoing_trigger_mode: + allOf: + - $ref: '#/components/schemas/SyncOutgoingTriggerModeEnum' + description: When to trigger sync for outgoing providers required: - base_dn - name @@ -38391,6 +40974,16 @@ components: minLength: 1 required: - key + LicenseStatusEnum: + enum: + - unlicensed + - valid + - expired + - expiry_soon + - limit_exceeded_admin + - limit_exceeded_user + - read_only + type: string LicenseSummary: type: object description: Serializer for license status @@ -38487,11 +41080,40 @@ components: icon_url: type: string nullable: true + promoted: + type: boolean + default: false challenge: $ref: '#/components/schemas/LoginChallengeTypes' required: - challenge - name + MDMConfigRequest: + type: object + description: Base serializer class which doesn't implement create/update methods + properties: + platform: + $ref: '#/components/schemas/DeviceFactsOSFamily' + enrollment_token: + type: string + format: uuid + required: + - enrollment_token + - platform + MDMConfigResponse: + type: object + description: Base serializer class which doesn't implement create/update methods + properties: + config: + type: string + mime_type: + type: string + filename: + type: string + required: + - config + - filename + - mime_type MatchingModeEnum: enum: - strict @@ -38538,10 +41160,12 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -38570,6 +41194,14 @@ components: $ref: '#/components/schemas/OutgoingSyncDeleteAction' group_delete_action: $ref: '#/components/schemas/OutgoingSyncDeleteAction' + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -38736,6 +41368,15 @@ components: $ref: '#/components/schemas/OutgoingSyncDeleteAction' group_delete_action: $ref: '#/components/schemas/OutgoingSyncDeleteAction' + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + minLength: 1 + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -38798,6 +41439,12 @@ components: - authentik_core.applicationentitlement - authentik_core.token - authentik_crypto.certificatekeypair + - authentik_endpoints.deviceuserbinding + - authentik_endpoints.deviceaccessgroup + - 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.notificationtransport @@ -38896,6 +41543,7 @@ components: - authentik_providers_microsoft_entra.microsoftentraprovider - authentik_providers_microsoft_entra.microsoftentraprovidermapping - authentik_providers_ssf.ssfprovider + - authentik_reports.dataexport - authentik_stages_authenticator_endpoint_gdtc.authenticatorendpointgdtcstage - authentik_stages_mtls.mutualtlsstage - authentik_stages_source.sourcestage @@ -38931,8 +41579,9 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true mode: - $ref: '#/components/schemas/MutualTLSStageModeEnum' + $ref: '#/components/schemas/StageModeEnum' certificate_authorities: type: array items: @@ -38948,6 +41597,7 @@ components: required: - cert_attribute - component + - flow_set - meta_model_name - mode - name @@ -38955,11 +41605,6 @@ components: - user_attribute - verbose_name - verbose_name_plural - MutualTLSStageModeEnum: - enum: - - optional - - required - type: string MutualTLSStageRequest: type: object description: MutualTLSStage Serializer @@ -38967,12 +41612,8 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' mode: - $ref: '#/components/schemas/MutualTLSStageModeEnum' + $ref: '#/components/schemas/StageModeEnum' certificate_authorities: type: array items: @@ -39028,6 +41669,22 @@ components: type: string minLength: 1 default: ak-provider-saml-native-logout + Network: + type: object + properties: + hostname: + type: string + firewall_enabled: + type: boolean + interfaces: + type: array + items: + $ref: '#/components/schemas/NetworkInterface' + gateway: + type: string + required: + - hostname + - interfaces NetworkBindingEnum: enum: - no_binding @@ -39035,6 +41692,64 @@ components: - bind_asn_network - bind_asn_network_ip type: string + NetworkInterface: + type: object + properties: + name: + type: string + hardware_address: + type: string + ip_addresses: + type: array + items: + type: string + dns_servers: + type: array + items: + type: string + required: + - hardware_address + - name + NetworkInterfaceRequest: + type: object + properties: + name: + type: string + minLength: 1 + hardware_address: + type: string + minLength: 1 + ip_addresses: + type: array + items: + type: string + minLength: 1 + dns_servers: + type: array + items: + type: string + minLength: 1 + required: + - hardware_address + - name + NetworkRequest: + type: object + properties: + hostname: + type: string + minLength: 1 + firewall_enabled: + type: boolean + interfaces: + type: array + items: + $ref: '#/components/schemas/NetworkInterfaceRequest' + gateway: + type: string + minLength: 1 + required: + - hostname + - interfaces NotConfiguredActionEnum: enum: - skip @@ -39057,6 +41772,13 @@ components: body: type: string readOnly: true + hyperlink: + type: string + nullable: true + maxLength: 4096 + hyperlink_label: + type: string + nullable: true created: type: string format: date-time @@ -39074,6 +41796,13 @@ components: type: object description: Notification Serializer properties: + hyperlink: + type: string + nullable: true + maxLength: 4096 + hyperlink_label: + type: string + nullable: true event: $ref: '#/components/schemas/EventRequest' seen: @@ -39317,18 +42046,22 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_application_name: type: string description: Application's display Name. readOnly: true + nullable: true assigned_backchannel_application_slug: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -39647,10 +42380,13 @@ components: slug: type: string description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -39707,8 +42443,15 @@ components: type: string icon: type: string + icon_url: + type: string nullable: true readOnly: true + icon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -39737,6 +42480,8 @@ components: nullable: true description: URL used by authentik to get user information. maxLength: 255 + pkce: + $ref: '#/components/schemas/PKCEMethodEnum' consumer_key: type: string callback_url: @@ -39765,7 +42510,8 @@ components: - callback_url - component - consumer_key - - icon + - icon_themed_urls + - icon_url - managed - meta_model_name - name @@ -39854,10 +42600,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -39888,6 +42637,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -39916,6 +42667,8 @@ components: nullable: true description: URL used by authentik to get user information. maxLength: 255 + pkce: + $ref: '#/components/schemas/PKCEMethodEnum' consumer_key: type: string minLength: 1 @@ -39989,6 +42742,37 @@ components: - token_endpoint - token_endpoint_auth_methods_supported - userinfo_endpoint + OperatingSystem: + type: object + properties: + family: + $ref: '#/components/schemas/DeviceFactsOSFamily' + name: + type: string + version: + type: string + arch: + type: string + required: + - arch + - family + OperatingSystemRequest: + type: object + properties: + family: + $ref: '#/components/schemas/DeviceFactsOSFamily' + name: + type: string + minLength: 1 + version: + type: string + minLength: 1 + arch: + type: string + minLength: 1 + required: + - arch + - family OutgoingSyncDeleteAction: enum: - do_nothing @@ -40027,6 +42811,7 @@ components: allOf: - $ref: '#/components/schemas/ServiceConnection' readOnly: true + nullable: true refresh_interval_s: type: integer readOnly: true @@ -40164,6 +42949,27 @@ components: - radius - rac type: string + PKCEMethodEnum: + enum: + - none + - plain + - S256 + type: string + PaginatedAgentConnectorList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/AgentConnector' + autocomplete: + $ref: '#/components/schemas/Autocomplete' + required: + - pagination + - results + - autocomplete PaginatedApplicationEntitlementList: type: object properties: @@ -40404,6 +43210,21 @@ components: - pagination - results - autocomplete + PaginatedConnectorList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/Connector' + autocomplete: + $ref: '#/components/schemas/Autocomplete' + required: + - pagination + - results + - autocomplete PaginatedConsentStageList: type: object properties: @@ -40419,6 +43240,21 @@ components: - pagination - results - autocomplete + PaginatedDataExportList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/DataExport' + autocomplete: + $ref: '#/components/schemas/Autocomplete' + required: + - pagination + - results + - autocomplete PaginatedDenyStageList: type: object properties: @@ -40434,6 +43270,36 @@ components: - pagination - results - autocomplete + PaginatedDeviceAccessGroupList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/DeviceAccessGroup' + autocomplete: + $ref: '#/components/schemas/Autocomplete' + required: + - pagination + - results + - autocomplete + PaginatedDeviceUserBindingList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/DeviceUserBinding' + autocomplete: + $ref: '#/components/schemas/Autocomplete' + required: + - pagination + - results + - autocomplete PaginatedDockerServiceConnectionList: type: object properties: @@ -40569,6 +43435,36 @@ components: - pagination - results - autocomplete + PaginatedEndpointStageList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/EndpointStage' + autocomplete: + $ref: '#/components/schemas/Autocomplete' + required: + - pagination + - results + - autocomplete + PaginatedEnrollmentTokenList: + type: object + properties: + pagination: + $ref: '#/components/schemas/Pagination' + results: + type: array + items: + $ref: '#/components/schemas/EnrollmentToken' + autocomplete: + $ref: '#/components/schemas/Autocomplete' + required: + - pagination + - results + - autocomplete PaginatedEventList: type: object properties: @@ -40641,7 +43537,7 @@ components: required: - pagination - results - PaginatedExtraUserObjectPermissionList: + PaginatedFlowList: type: object properties: pagination: @@ -40649,11 +43545,14 @@ components: results: type: array items: - $ref: '#/components/schemas/ExtraUserObjectPermission' + $ref: '#/components/schemas/Flow' + autocomplete: + $ref: '#/components/schemas/Autocomplete' required: - pagination - results - PaginatedFlowList: + - autocomplete + PaginatedFlowStageBindingList: type: object properties: pagination: @@ -40661,14 +43560,14 @@ components: results: type: array items: - $ref: '#/components/schemas/Flow' + $ref: '#/components/schemas/FlowStageBinding' autocomplete: $ref: '#/components/schemas/Autocomplete' required: - pagination - results - autocomplete - PaginatedFlowStageBindingList: + PaginatedGeoIPPolicyList: type: object properties: pagination: @@ -40676,14 +43575,14 @@ components: results: type: array items: - $ref: '#/components/schemas/FlowStageBinding' + $ref: '#/components/schemas/GeoIPPolicy' autocomplete: $ref: '#/components/schemas/Autocomplete' required: - pagination - results - autocomplete - PaginatedGeoIPPolicyList: + PaginatedGoogleEndpointDeviceList: type: object properties: pagination: @@ -40691,7 +43590,7 @@ components: results: type: array items: - $ref: '#/components/schemas/GeoIPPolicy' + $ref: '#/components/schemas/GoogleEndpointDevice' autocomplete: $ref: '#/components/schemas/Autocomplete' required: @@ -42063,21 +44962,6 @@ components: - pagination - results - autocomplete - PaginatedUserAssignedObjectPermissionList: - type: object - properties: - pagination: - $ref: '#/components/schemas/Pagination' - results: - type: array - items: - $ref: '#/components/schemas/UserAssignedObjectPermission' - autocomplete: - $ref: '#/components/schemas/Autocomplete' - required: - - pagination - - results - - autocomplete PaginatedUserConsentList: type: object properties: @@ -42346,21 +45230,12 @@ components: is_superuser: type: boolean description: Users added to this group will be superusers. - parent: - type: string - format: uuid - nullable: true - parent_name: - type: string - readOnly: true - nullable: true attributes: type: object additionalProperties: {} required: - name - num_pk - - parent_name - pk PartialUser: type: object @@ -42693,6 +45568,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true backends: type: array items: @@ -42717,6 +45593,7 @@ components: required: - backends - component + - flow_set - meta_model_name - name - pk @@ -42729,10 +45606,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' backends: type: array items: @@ -42757,6 +45630,53 @@ components: required: - backends - name + PatchedAgentConnectorRequest: + type: object + properties: + connector_uuid: + type: string + format: uuid + name: + type: string + minLength: 1 + enabled: + type: boolean + snapshot_expiry: + type: string + minLength: 1 + auth_session_duration: + type: string + minLength: 1 + auth_terminate_session_on_expiry: + type: boolean + refresh_interval: + type: string + minLength: 1 + authorization_flow: + type: string + format: uuid + nullable: true + nss_uid_offset: + type: integer + maximum: 2147483647 + minimum: 0 + nss_gid_offset: + type: integer + maximum: 2147483647 + minimum: 0 + challenge_key: + type: string + format: uuid + nullable: true + challenge_idle_timeout: + type: string + minLength: 1 + challenge_trigger_check_in: + type: boolean + jwt_federation_providers: + type: array + items: + type: integer PatchedApplicationEntitlementRequest: type: object description: ApplicationEntitlement Serializer @@ -42782,7 +45702,6 @@ components: type: string minLength: 1 description: Internal application name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ provider: type: integer @@ -42797,6 +45716,8 @@ components: meta_launch_url: type: string format: uri + meta_icon: + type: string meta_description: type: string meta_publisher: @@ -42812,10 +45733,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -42846,10 +45763,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -42903,10 +45816,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -42925,10 +45834,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -42969,10 +45874,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -42987,7 +45888,7 @@ components: minimum: 0 token_length: type: integer - maximum: 2147483647 + maximum: 100 minimum: 0 PatchedAuthenticatorTOTPStageRequest: type: object @@ -42996,10 +45897,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -43017,10 +45914,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' not_configured_action: $ref: '#/components/schemas/NotConfiguredActionEnum' device_classes: @@ -43057,10 +45950,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' configure_flow: type: string format: uuid @@ -43179,10 +46068,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' public_key: type: string minLength: 1 @@ -43249,10 +46134,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' mode: $ref: '#/components/schemas/ConsentStageModeEnum' consent_expire_in: @@ -43267,12 +46148,51 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' deny_message: type: string + PatchedDeviceAccessGroupRequest: + type: object + properties: + name: + type: string + minLength: 1 + PatchedDeviceUserBindingRequest: + type: object + description: PolicyBinding Serializer + properties: + policy: + type: string + format: uuid + nullable: true + group: + type: string + format: uuid + nullable: true + user: + type: integer + nullable: true + target: + type: string + format: uuid + negate: + type: boolean + description: Negates the outcome of the policy. Messages are unaffected. + enabled: + type: boolean + order: + type: integer + maximum: 2147483647 + minimum: -2147483648 + timeout: + type: integer + maximum: 2147483647 + minimum: 0 + description: Timeout after which Policy execution is terminated. + failure_result: + type: boolean + description: Result if the Policy execution fails. + is_primary: + type: boolean PatchedDockerServiceConnectionRequest: type: object description: DockerServiceConnection Serializer @@ -43343,10 +46263,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' throw_error: type: boolean PatchedDuoDeviceRequest: @@ -43374,10 +46290,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' use_global_settings: type: boolean description: When enabled, global Email connection settings will be used @@ -43432,17 +46344,28 @@ components: further attempts will be rate-limited. (Format: hours=1;minutes=2;seconds=3).' PatchedEndpointDeviceRequest: type: object - description: Serializer for Endpoint authenticator devices properties: - pk: + device_uuid: type: string format: uuid - title: Uuid name: type: string minLength: 1 - description: The human-readable name of this device. - maxLength: 64 + access_group: + type: string + format: uuid + nullable: true + access_group_obj: + $ref: '#/components/schemas/DeviceAccessGroupRequest' + expiring: + type: boolean + expires: + type: string + format: date-time + nullable: true + attributes: + type: object + additionalProperties: {} PatchedEndpointRequest: type: object description: Endpoint Serializer @@ -43471,6 +46394,37 @@ components: type: integer maximum: 2147483647 minimum: -2147483648 + PatchedEndpointStageRequest: + type: object + description: EndpointStage Serializer + properties: + name: + type: string + minLength: 1 + connector: + type: string + format: uuid + mode: + $ref: '#/components/schemas/StageModeEnum' + PatchedEnrollmentTokenRequest: + type: object + properties: + device_group: + type: string + format: uuid + nullable: true + connector: + type: string + format: uuid + name: + type: string + minLength: 1 + expiring: + type: boolean + expires: + type: string + format: date-time + nullable: true PatchedEventMatcherPolicyRequest: type: object description: Event Matcher Policy Serializer @@ -43546,20 +46500,6 @@ components: expression: type: string minLength: 1 - PatchedExtraRoleObjectPermissionRequest: - type: object - description: User permission with additional object-related data - properties: - object_pk: - type: string - minLength: 1 - PatchedExtraUserObjectPermissionRequest: - type: object - description: User permission with additional object-related data - properties: - object_pk: - type: string - minLength: 1 PatchedFlowRequest: type: object description: Flow Serializer @@ -43571,7 +46511,6 @@ components: type: string minLength: 1 description: Visible in the URL. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ title: type: string @@ -43582,6 +46521,9 @@ components: - $ref: '#/components/schemas/FlowDesignationEnum' description: Decides what this Flow is used for. For example, the Authentication flow is redirect to when an un-authenticated user visits authentik. + background: + type: string + description: Background shown during execution policy_engine_mode: $ref: '#/components/schemas/PolicyEngineMode' compatibility_mode: @@ -43672,6 +46614,19 @@ components: type: integer maximum: 2147483647 minimum: 0 + PatchedGoogleEndpointDeviceRequest: + type: object + description: Serializer for Endpoint authenticator devices + properties: + pk: + type: string + format: uuid + title: Uuid + name: + type: string + minLength: 1 + description: The human-readable name of this device. + maxLength: 64 PatchedGoogleWorkspaceProviderMappingRequest: type: object description: GoogleWorkspaceProviderMapping Serializer @@ -43733,6 +46688,15 @@ components: default_group_email_domain: type: string minLength: 1 + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + minLength: 1 + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -43799,10 +46763,11 @@ components: is_superuser: type: boolean description: Users added to this group will be superusers. - parent: - type: string - format: uuid - nullable: true + parents: + type: array + items: + type: string + format: uuid users: type: array items: @@ -43815,11 +46780,6 @@ components: items: type: string format: uuid - children: - type: array - items: - type: string - format: uuid PatchedGroupSAMLSourceConnectionRequest: type: object description: Group Source Connection @@ -43866,10 +46826,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' user_fields: type: array items: @@ -43930,6 +46886,12 @@ components: type: boolean description: Show the user the 'Remember me on this device' toggle, allowing repeat users to skip straight to entering their password. + webauthn_stage: + type: string + format: uuid + nullable: true + description: When set, and conditional WebAuthn is available, allow the + user to use their passkey as a first factor. PatchedInitialPermissionsRequest: type: object description: InitialPermissions serializer @@ -43938,8 +46900,6 @@ components: type: string minLength: 1 maxLength: 150 - mode: - $ref: '#/components/schemas/InitialPermissionsModeEnum' role: type: string format: uuid @@ -43954,7 +46914,6 @@ components: name: type: string minLength: 1 - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ expires: type: string @@ -43978,10 +46937,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' continue_flow_without_invitation: type: boolean description: If this flag is set, this Stage will jump to the next Stage @@ -44018,10 +46973,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -44052,6 +47010,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -44106,6 +47066,10 @@ components: type: boolean description: If enabled, the authentik-stored password will be updated upon login with the Kerberos password backend + sync_outgoing_trigger_mode: + allOf: + - $ref: '#/components/schemas/SyncOutgoingTriggerModeEnum' + description: When to trigger sync for outgoing providers PatchedKubernetesServiceConnectionRequest: type: object description: KubernetesServiceConnection Serializer @@ -44218,10 +47182,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -44252,6 +47219,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string server_uri: type: string minLength: 1 @@ -44335,6 +47304,10 @@ components: type: boolean description: Delete authentik users and groups which were previously supplied by this source, but are now missing from it. + sync_outgoing_trigger_mode: + allOf: + - $ref: '#/components/schemas/SyncOutgoingTriggerModeEnum' + description: When to trigger sync for outgoing providers PatchedLicenseRequest: type: object description: License Serializer @@ -44398,6 +47371,15 @@ components: $ref: '#/components/schemas/OutgoingSyncDeleteAction' group_delete_action: $ref: '#/components/schemas/OutgoingSyncDeleteAction' + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + minLength: 1 + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -44409,12 +47391,8 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' mode: - $ref: '#/components/schemas/MutualTLSStageModeEnum' + $ref: '#/components/schemas/StageModeEnum' certificate_authorities: type: array items: @@ -44431,6 +47409,13 @@ components: type: object description: Notification Serializer properties: + hyperlink: + type: string + nullable: true + maxLength: 4096 + hyperlink_label: + type: string + nullable: true event: $ref: '#/components/schemas/EventRequest' seen: @@ -44647,10 +47632,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -44681,6 +47669,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -44709,6 +47699,8 @@ components: nullable: true description: URL used by authentik to get user information. maxLength: 255 + pkce: + $ref: '#/components/schemas/PKCEMethodEnum' consumer_key: type: string minLength: 1 @@ -44843,10 +47835,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' backends: type: array items: @@ -44913,10 +47901,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -44947,6 +47938,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -45050,10 +48043,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' fields: type: array items: @@ -45283,10 +48272,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' keep_context: type: boolean mode: @@ -45509,10 +48494,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -45543,6 +48531,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -45675,12 +48665,26 @@ components: - $ref: '#/components/schemas/CompatibilityModeEnum' title: SCIM Compatibility Mode description: Alter authentik behavior for vendor-specific SCIM implementations. + service_provider_config_cache_timeout: + type: string + minLength: 1 + description: Cache duration for ServiceProviderConfig responses. Set minutes=0 + to disable. exclude_users_service_account: type: boolean filter_group: type: string format: uuid nullable: true + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + minLength: 1 + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -45735,7 +48739,6 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean @@ -45891,12 +48894,28 @@ components: maximum: 2147483647 minimum: 1 description: Default token length + pagination_default_page_size: + type: integer + maximum: 2147483647 + minimum: 0 + description: Default page size for API responses, if no size was requested. + pagination_max_page_size: + type: integer + maximum: 2147483647 + minimum: 0 + description: Maximum page size flags: type: object properties: policies_buffered_access_view: type: boolean + flows_continuous_login: + type: boolean + flows_refresh_others: + type: boolean required: + - flows_continuous_login + - flows_refresh_others - policies_buffered_access_view PatchedSourceStageRequest: type: object @@ -45905,10 +48924,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' source: type: string format: uuid @@ -45966,10 +48981,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -46000,6 +49018,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string bot_username: type: string minLength: 1 @@ -46087,10 +49107,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' PatchedUserKerberosSourceConnectionRequest: type: object description: User source connection @@ -46122,10 +49138,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' session_duration: type: string minLength: 1 @@ -46162,10 +49174,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' PatchedUserOAuthSourceConnectionRequest: type: object description: User source connection @@ -46226,6 +49234,11 @@ components: items: type: string format: uuid + roles: + type: array + items: + type: string + format: uuid email: type: string format: email @@ -46282,10 +49295,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' user_creation_mode: $ref: '#/components/schemas/UserCreationModeEnum' create_users_as_inactive: @@ -46413,10 +49422,13 @@ components: slug: type: string description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -46473,7 +49485,14 @@ components: type: string icon: type: string + icon_url: + type: string readOnly: true + icon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -46496,7 +49515,8 @@ components: description: Plex token used to check friends required: - component - - icon + - icon_themed_urls + - icon_url - managed - meta_model_name - name @@ -46584,10 +49604,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -46618,6 +49641,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -46830,6 +49855,32 @@ components: - log_messages - messages - passing + Process: + type: object + properties: + id: + type: integer + name: + type: string + user: + type: string + required: + - id + - name + ProcessRequest: + type: object + properties: + id: + type: integer + name: + type: string + minLength: 1 + user: + type: string + minLength: 1 + required: + - id + - name Prompt: type: object description: Prompt Serializer @@ -46914,6 +49965,17 @@ components: minLength: 1 default: ak-stage-prompt additionalProperties: {} + PromptChoice: + type: object + description: Serializer for a single Choice field + properties: + value: + type: string + label: + type: string + required: + - label + - value PromptRequest: type: object description: Prompt Serializer @@ -46988,6 +50050,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true fields: type: array items: @@ -47001,6 +50064,7 @@ components: required: - component - fields + - flow_set - meta_model_name - name - pk @@ -47013,10 +50077,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' fields: type: array items: @@ -47177,18 +50237,22 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_application_name: type: string description: Application's display Name. readOnly: true + nullable: true assigned_backchannel_application_slug: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -47247,8 +50311,10 @@ components: - okta - patreon - reddit + - slack - twitch - twitter + - wechat type: string ProxyMode: enum: @@ -47389,18 +50455,22 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_application_name: type: string description: Application's display Name. readOnly: true + nullable: true assigned_backchannel_application_slug: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -47708,18 +50778,22 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_application_name: type: string description: Application's display Name. readOnly: true + nullable: true assigned_backchannel_application_slug: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -47881,18 +50955,22 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_application_name: type: string description: Application's display Name. readOnly: true + nullable: true assigned_backchannel_application_slug: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -48124,6 +51202,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true keep_context: type: boolean mode: @@ -48136,6 +51215,7 @@ components: nullable: true required: - component + - flow_set - meta_model_name - mode - name @@ -48154,10 +51234,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' keep_context: type: boolean mode: @@ -48194,6 +51270,32 @@ components: required: - matching_mode - url + RelatedGroup: + type: object + description: Stripped down group serializer to show relevant children/parents + for groups + properties: + pk: + type: string + format: uuid + readOnly: true + title: Group uuid + name: + type: string + is_superuser: + type: boolean + description: Users added to this group will be superusers. + attributes: + type: object + additionalProperties: {} + group_uuid: + type: string + format: uuid + readOnly: true + required: + - group_uuid + - name + - pk Reputation: type: object description: Reputation Serializer @@ -48328,14 +51430,45 @@ components: name: type: string readOnly: true - permissions: + object_permissions: type: array items: $ref: '#/components/schemas/RoleObjectPermission' + model_permissions: + type: array + items: + $ref: '#/components/schemas/RoleModelPermission' required: + - model_permissions - name - - permissions + - object_permissions - role_pk + RoleModelPermission: + type: object + description: Role-bound object level permission + properties: + id: + type: integer + readOnly: true + codename: + type: string + readOnly: true + model: + type: string + title: Python model class name + readOnly: true + app_label: + type: string + readOnly: true + name: + type: string + readOnly: true + required: + - app_label + - codename + - id + - model + - name RoleObjectPermission: type: object description: Role-bound object level permission @@ -48519,18 +51652,22 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_application_name: type: string description: Application's display Name. readOnly: true + nullable: true assigned_backchannel_application_slug: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -48861,10 +51998,13 @@ components: slug: type: string description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -48921,7 +52061,14 @@ components: type: string icon: type: string + icon_url: + type: string readOnly: true + icon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -48992,7 +52139,8 @@ components: type: boolean required: - component - - icon + - icon_themed_urls + - icon_url - managed - meta_model_name - name @@ -49081,10 +52229,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -49115,6 +52266,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string group_matching_mode: allOf: - $ref: '#/components/schemas/GroupMatchingModeEnum' @@ -49291,10 +52444,12 @@ components: type: string description: Internal application name, used in URLs. readOnly: true + nullable: true assigned_backchannel_application_name: type: string description: Application's display Name. readOnly: true + nullable: true verbose_name: type: string description: Return object's verbose_name @@ -49331,12 +52486,24 @@ components: - $ref: '#/components/schemas/CompatibilityModeEnum' title: SCIM Compatibility Mode description: Alter authentik behavior for vendor-specific SCIM implementations. + service_provider_config_cache_timeout: + type: string + description: Cache duration for ServiceProviderConfig responses. Set minutes=0 + to disable. exclude_users_service_account: type: boolean filter_group: type: string format: uuid nullable: true + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -49440,12 +52607,26 @@ components: - $ref: '#/components/schemas/CompatibilityModeEnum' title: SCIM Compatibility Mode description: Alter authentik behavior for vendor-specific SCIM implementations. + service_provider_config_cache_timeout: + type: string + minLength: 1 + description: Cache duration for ServiceProviderConfig responses. Set minutes=0 + to disable. exclude_users_service_account: type: boolean filter_group: type: string format: uuid nullable: true + sync_page_size: + type: integer + maximum: 2147483647 + minimum: 1 + description: Controls the number of objects synced in a single task + sync_page_timeout: + type: string + minLength: 1 + description: Timeout for synchronization of a single page dry_run: type: boolean description: When enabled, provider will not modify or create objects in @@ -49512,7 +52693,6 @@ components: slug: type: string description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean @@ -49700,7 +52880,6 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean @@ -50237,12 +53416,28 @@ components: maximum: 2147483647 minimum: 1 description: Default token length + pagination_default_page_size: + type: integer + maximum: 2147483647 + minimum: 0 + description: Default page size for API responses, if no size was requested. + pagination_max_page_size: + type: integer + maximum: 2147483647 + minimum: 0 + description: Maximum page size flags: type: object properties: policies_buffered_access_view: type: boolean + flows_continuous_login: + type: boolean + flows_refresh_others: + type: boolean required: + - flows_continuous_login + - flows_refresh_others - policies_buffered_access_view required: - flags @@ -50299,12 +53494,28 @@ components: maximum: 2147483647 minimum: 1 description: Default token length + pagination_default_page_size: + type: integer + maximum: 2147483647 + minimum: 0 + description: Default page size for API responses, if no size was requested. + pagination_max_page_size: + type: integer + maximum: 2147483647 + minimum: 0 + description: Maximum page size flags: type: object properties: policies_buffered_access_view: type: boolean + flows_continuous_login: + type: boolean + flows_refresh_others: + type: boolean required: + - flows_continuous_login + - flows_refresh_others - policies_buffered_access_view required: - flags @@ -50345,6 +53556,37 @@ components: - http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512 - http://www.w3.org/2000/09/xmldsig#dsa-sha1 type: string + Software: + type: object + properties: + name: + type: string + version: + type: string + source: + type: string + path: + type: string + required: + - name + - source + SoftwareRequest: + type: object + properties: + name: + type: string + minLength: 1 + version: + type: string + source: + type: string + minLength: 1 + path: + type: string + minLength: 1 + required: + - name + - source Source: type: object description: Source Serializer @@ -50360,10 +53602,13 @@ components: slug: type: string description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -50420,14 +53665,20 @@ components: type: string icon: type: string + icon_url: + type: string nullable: true - description: |- - Get the URL to the Icon. If the name is /static or - starts with http it is returned as-is + description: Get the URL to the source icon + readOnly: true + icon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' readOnly: true + nullable: true required: - component - - icon + - icon_themed_urls + - icon_url - managed - meta_model_name - name @@ -50466,6 +53717,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true source: type: string format: uuid @@ -50475,6 +53727,7 @@ components: continue the flow (Format: hours=-1;minutes=-2;seconds=-3)' required: - component + - flow_set - meta_model_name - name - pk @@ -50488,10 +53741,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' source: type: string format: uuid @@ -50578,13 +53827,20 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true required: - component + - flow_set - meta_model_name - name - pk - verbose_name - verbose_name_plural + StageModeEnum: + enum: + - optional + - required + type: string StagePrompt: type: object description: Serializer for a single Prompt field @@ -50608,7 +53864,7 @@ components: choices: type: array items: - type: string + $ref: '#/components/schemas/PromptChoice' nullable: true required: - choices @@ -50673,7 +53929,7 @@ components: properties: token: type: string - maxLength: 16 + maxLength: 100 required: - token SubModeEnum: @@ -50716,6 +53972,12 @@ components: readOnly: true required: - messages + SyncOutgoingTriggerModeEnum: + enum: + - none + - immediate + - deferred_end + type: string SyncStatus: type: object description: Provider/source sync status @@ -50917,14 +54179,41 @@ components: - warning - error type: string - TelegramChallengeResponseRequest: + TelegramAuthRequest: type: object - description: Base class for all challenge responses properties: - component: + id: + type: integer + first_name: type: string minLength: 1 - default: ak-source-telegram + maxLength: 255 + last_name: + type: string + minLength: 1 + maxLength: 255 + username: + type: string + minLength: 1 + maxLength: 255 + photo_url: + type: string + format: uri + minLength: 1 + auth_date: + type: integer + hash: + type: string + minLength: 1 + maxLength: 64 + required: + - auth_date + - hash + - id + TelegramChallengeResponseRequest: + type: object + description: Base class for all challenge responses + properties: id: type: integer first_name: @@ -50949,6 +54238,10 @@ components: type: string minLength: 1 maxLength: 64 + component: + type: string + minLength: 1 + default: ak-source-telegram required: - auth_date - hash @@ -50991,10 +54284,13 @@ components: slug: type: string description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -51051,8 +54347,15 @@ components: type: string icon: type: string + icon_url: + type: string nullable: true readOnly: true + icon_themed_urls: + allOf: + - $ref: '#/components/schemas/ThemedUrls' + readOnly: true + nullable: true bot_username: type: string description: Telegram bot username @@ -51066,7 +54369,8 @@ components: required: - bot_username - component - - icon + - icon_themed_urls + - icon_url - managed - meta_model_name - name @@ -51154,10 +54458,13 @@ components: type: string minLength: 1 description: Internal source name, used in URLs. - maxLength: 50 pattern: ^[-a-zA-Z0-9_]+$ enabled: type: boolean + promoted: + type: boolean + description: When enabled, this source will be displayed as a prominent + button on the login page, instead of a small icon. authentication_flow: type: string format: uuid @@ -51188,6 +54495,8 @@ components: user_path_template: type: string minLength: 1 + icon: + type: string bot_username: type: string minLength: 1 @@ -51278,6 +54587,16 @@ components: required: - name - schema_name + ThemedUrls: + type: object + description: Themed URLs - maps theme names to URLs for light and dark themes + properties: + light: + type: string + nullable: true + dark: + type: string + nullable: true Token: type: object description: Token Serializer @@ -51328,7 +54647,7 @@ components: readOnly: true title: ID provider: - $ref: '#/components/schemas/OAuth2Provider' + $ref: '#/components/schemas/Provider' user: $ref: '#/components/schemas/User' is_expired: @@ -51390,6 +54709,7 @@ components: - identifier TokenSetKeyRequest: type: object + description: Set token's key properties: key: type: string @@ -51488,6 +54808,9 @@ components: requires_enterprise: type: boolean default: false + deprecated: + type: boolean + default: false required: - component - description @@ -51600,6 +54923,7 @@ components: - cascade_many - set_null - set_default + - left_dangling type: string User: type: object @@ -51642,6 +54966,17 @@ components: $ref: '#/components/schemas/PartialGroup' readOnly: true nullable: true + roles: + type: array + items: + type: string + format: uuid + roles_obj: + type: array + items: + $ref: '#/components/schemas/Role' + readOnly: true + nullable: true email: type: string format: email @@ -51682,6 +55017,7 @@ components: - name - password_change_date - pk + - roles_obj - uid - username - uuid @@ -51693,56 +55029,14 @@ components: type: integer required: - pk - UserAssignedObjectPermission: + UserAccountSerializerForRoleRequest: type: object - description: Users assigned object permission serializer + description: Account adding/removing operations properties: pk: type: integer - readOnly: true - title: ID - username: - type: string - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - name: - type: string - description: User's display name. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - last_login: - type: string - format: date-time - nullable: true - email: - type: string - format: email - title: Email address - maxLength: 254 - attributes: - type: object - additionalProperties: {} - uid: - type: string - readOnly: true - permissions: - type: array - items: - $ref: '#/components/schemas/UserObjectPermission' - is_superuser: - type: boolean required: - - is_superuser - - name - - permissions - pk - - uid - - username UserAttributeEnum: enum: - username @@ -51810,8 +55104,10 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true required: - component + - flow_set - meta_model_name - name - pk @@ -51824,10 +55120,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' required: - name UserFieldsEnum: @@ -52003,6 +55295,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true session_duration: type: string description: 'Determines how long a session lasts. Default of 0 means that @@ -52031,6 +55324,7 @@ components: (Format: hours=-1;minutes=-2;seconds=-3)' required: - component + - flow_set - meta_model_name - name - pk @@ -52043,10 +55337,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' session_duration: type: string minLength: 1 @@ -52109,8 +55399,10 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true required: - component + - flow_set - meta_model_name - name - pk @@ -52123,10 +55415,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' required: - name UserMatchingModeEnum: @@ -52198,35 +55486,6 @@ components: - identifier - source - user - UserObjectPermission: - type: object - description: User-bound object level permission - properties: - id: - type: integer - readOnly: true - codename: - type: string - readOnly: true - model: - type: string - title: Python model class name - readOnly: true - app_label: - type: string - readOnly: true - object_pk: - type: string - name: - type: string - readOnly: true - required: - - app_label - - codename - - id - - model - - name - - object_pk UserPasswordSetRequest: type: object description: Payload to set a users' password directly @@ -52327,6 +55586,11 @@ components: items: type: string format: uuid + roles: + type: array + items: + type: string + format: uuid email: type: string format: email @@ -52425,6 +55689,11 @@ components: items: $ref: '#/components/schemas/UserSelfGroups' readOnly: true + roles: + type: array + items: + $ref: '#/components/schemas/UserSelfRoles' + readOnly: true email: type: string format: email @@ -52457,6 +55726,7 @@ components: - is_superuser - name - pk + - roles - settings - system_permissions - uid @@ -52473,6 +55743,18 @@ components: required: - name - pk + UserSelfRoles: + type: object + properties: + name: + type: string + readOnly: true + pk: + type: string + readOnly: true + required: + - name + - pk UserServiceAccountRequest: type: object description: Payload to create a service account @@ -52674,6 +55956,7 @@ components: type: array items: $ref: '#/components/schemas/FlowSet' + readOnly: true user_creation_mode: $ref: '#/components/schemas/UserCreationModeEnum' create_users_as_inactive: @@ -52690,6 +55973,7 @@ components: type: string required: - component + - flow_set - meta_model_name - name - pk @@ -52702,10 +55986,6 @@ components: name: type: string minLength: 1 - flow_set: - type: array - items: - $ref: '#/components/schemas/FlowSetRequest' user_creation_mode: $ref: '#/components/schemas/UserCreationModeEnum' create_users_as_inactive: diff --git a/setup.py b/setup.py index 8faafd573..d16343444 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.5 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,14 +22,13 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "authentik-client" -VERSION = "2025.10.0-rc1-1760140185" +VERSION = "2025.12.5" PYTHON_REQUIRES = ">= 3.9" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", "python-dateutil >= 2.8.2", "pydantic >= 2", "typing-extensions >= 4.7.1", - "lazy-imports >= 1, < 2", ] setup( diff --git a/test/test_access_denied_challenge.py b/test/test_access_denied_challenge.py index 3453062fe..ea4ea8f19 100644 --- a/test/test_access_denied_challenge.py +++ b/test/test_access_denied_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AccessDeniedChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-access-denied', diff --git a/test/test_admin_api.py b/test/test_admin_api.py index 7dbdb5197..21b0210f6 100644 --- a/test/test_admin_api.py +++ b/test/test_admin_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -33,6 +33,30 @@ def test_admin_apps_list(self) -> None: """ pass + def test_admin_file_create(self) -> None: + """Test case for admin_file_create + + """ + pass + + def test_admin_file_destroy(self) -> None: + """Test case for admin_file_destroy + + """ + pass + + def test_admin_file_list(self) -> None: + """Test case for admin_file_list + + """ + pass + + def test_admin_file_used_by_list(self) -> None: + """Test case for admin_file_used_by_list + + """ + pass + def test_admin_models_list(self) -> None: """Test case for admin_models_list diff --git a/test/test_extra_user_object_permission_request.py b/test/test_agent_authentication_response.py similarity index 51% rename from test/test_extra_user_object_permission_request.py rename to test/test_agent_authentication_response.py index ec9403583..4a7f07b21 100644 --- a/test/test_extra_user_object_permission_request.py +++ b/test/test_agent_authentication_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from authentik_client.models.extra_user_object_permission_request import ExtraUserObjectPermissionRequest +from authentik_client.models.agent_authentication_response import AgentAuthenticationResponse -class TestExtraUserObjectPermissionRequest(unittest.TestCase): - """ExtraUserObjectPermissionRequest unit test stubs""" +class TestAgentAuthenticationResponse(unittest.TestCase): + """AgentAuthenticationResponse unit test stubs""" def setUp(self): pass @@ -26,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> ExtraUserObjectPermissionRequest: - """Test ExtraUserObjectPermissionRequest + def make_instance(self, include_optional) -> AgentAuthenticationResponse: + """Test AgentAuthenticationResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `ExtraUserObjectPermissionRequest` + # uncomment below to create an instance of `AgentAuthenticationResponse` """ - model = ExtraUserObjectPermissionRequest() + model = AgentAuthenticationResponse() if include_optional: - return ExtraUserObjectPermissionRequest( - object_pk = '0' + return AgentAuthenticationResponse( + url = '' ) else: - return ExtraUserObjectPermissionRequest( - object_pk = '0', + return AgentAuthenticationResponse( + url = '', ) """ - def testExtraUserObjectPermissionRequest(self): - """Test ExtraUserObjectPermissionRequest""" + def testAgentAuthenticationResponse(self): + """Test AgentAuthenticationResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_agent_config.py b/test/test_agent_config.py new file mode 100644 index 000000000..291deec1b --- /dev/null +++ b/test/test_agent_config.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.agent_config import AgentConfig + +class TestAgentConfig(unittest.TestCase): + """AgentConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AgentConfig: + """Test AgentConfig + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AgentConfig` + """ + model = AgentConfig() + if include_optional: + return AgentConfig( + device_id = '', + refresh_interval = 56, + authorization_flow = '', + jwks_auth = { + 'key' : null + }, + jwks_challenge = { + 'key' : null + }, + nss_uid_offset = 56, + nss_gid_offset = 56, + auth_terminate_session_on_expiry = True, + system_config = authentik_client.models.config.Config( + error_reporting = authentik_client.models.error_reporting_config.ErrorReportingConfig( + enabled = True, + sentry_dsn = '', + environment = '', + send_pii = True, + traces_sample_rate = 1.337, ), + capabilities = [ + 'can_save_media' + ], + cache_timeout = 56, + cache_timeout_flows = 56, + cache_timeout_policies = 56, ), + license_status = 'unlicensed' + ) + else: + return AgentConfig( + device_id = '', + refresh_interval = 56, + authorization_flow = '', + jwks_auth = { + 'key' : null + }, + jwks_challenge = { + 'key' : null + }, + nss_uid_offset = 56, + nss_gid_offset = 56, + auth_terminate_session_on_expiry = True, + system_config = authentik_client.models.config.Config( + error_reporting = authentik_client.models.error_reporting_config.ErrorReportingConfig( + enabled = True, + sentry_dsn = '', + environment = '', + send_pii = True, + traces_sample_rate = 1.337, ), + capabilities = [ + 'can_save_media' + ], + cache_timeout = 56, + cache_timeout_flows = 56, + cache_timeout_policies = 56, ), + license_status = 'unlicensed', + ) + """ + + def testAgentConfig(self): + """Test AgentConfig""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_connector.py b/test/test_agent_connector.py new file mode 100644 index 000000000..738f70fa0 --- /dev/null +++ b/test/test_agent_connector.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.agent_connector import AgentConnector + +class TestAgentConnector(unittest.TestCase): + """AgentConnector unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AgentConnector: + """Test AgentConnector + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AgentConnector` + """ + model = AgentConnector() + if include_optional: + return AgentConnector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + snapshot_expiry = '', + auth_session_duration = '', + auth_terminate_session_on_expiry = True, + refresh_interval = '', + authorization_flow = '', + nss_uid_offset = 0, + nss_gid_offset = 0, + challenge_key = '', + challenge_idle_timeout = '', + challenge_trigger_check_in = True, + jwt_federation_providers = [ + 56 + ] + ) + else: + return AgentConnector( + name = '', + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + ) + """ + + def testAgentConnector(self): + """Test AgentConnector""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_connector_request.py b/test/test_agent_connector_request.py new file mode 100644 index 000000000..b507c21e7 --- /dev/null +++ b/test/test_agent_connector_request.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.agent_connector_request import AgentConnectorRequest + +class TestAgentConnectorRequest(unittest.TestCase): + """AgentConnectorRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AgentConnectorRequest: + """Test AgentConnectorRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AgentConnectorRequest` + """ + model = AgentConnectorRequest() + if include_optional: + return AgentConnectorRequest( + connector_uuid = '', + name = '0', + enabled = True, + snapshot_expiry = '0', + auth_session_duration = '0', + auth_terminate_session_on_expiry = True, + refresh_interval = '0', + authorization_flow = '', + nss_uid_offset = 0, + nss_gid_offset = 0, + challenge_key = '', + challenge_idle_timeout = '0', + challenge_trigger_check_in = True, + jwt_federation_providers = [ + 56 + ] + ) + else: + return AgentConnectorRequest( + name = '0', + ) + """ + + def testAgentConnectorRequest(self): + """Test AgentConnectorRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_psso_device_registration_request.py b/test/test_agent_psso_device_registration_request.py new file mode 100644 index 000000000..df7d6f1e2 --- /dev/null +++ b/test/test_agent_psso_device_registration_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.agent_psso_device_registration_request import AgentPSSODeviceRegistrationRequest + +class TestAgentPSSODeviceRegistrationRequest(unittest.TestCase): + """AgentPSSODeviceRegistrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AgentPSSODeviceRegistrationRequest: + """Test AgentPSSODeviceRegistrationRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AgentPSSODeviceRegistrationRequest` + """ + model = AgentPSSODeviceRegistrationRequest() + if include_optional: + return AgentPSSODeviceRegistrationRequest( + device_signing_key = '0', + device_encryption_key = '0', + sign_key_id = '0', + enc_key_id = '0' + ) + else: + return AgentPSSODeviceRegistrationRequest( + device_signing_key = '0', + device_encryption_key = '0', + sign_key_id = '0', + enc_key_id = '0', + ) + """ + + def testAgentPSSODeviceRegistrationRequest(self): + """Test AgentPSSODeviceRegistrationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_psso_device_registration_response.py b/test/test_agent_psso_device_registration_response.py new file mode 100644 index 000000000..6c9fabe09 --- /dev/null +++ b/test/test_agent_psso_device_registration_response.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.agent_psso_device_registration_response import AgentPSSODeviceRegistrationResponse + +class TestAgentPSSODeviceRegistrationResponse(unittest.TestCase): + """AgentPSSODeviceRegistrationResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AgentPSSODeviceRegistrationResponse: + """Test AgentPSSODeviceRegistrationResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AgentPSSODeviceRegistrationResponse` + """ + model = AgentPSSODeviceRegistrationResponse() + if include_optional: + return AgentPSSODeviceRegistrationResponse( + client_id = '', + issuer = '', + token_endpoint = '', + jwks_endpoint = '', + audience = '', + nonce_endpoint = '' + ) + else: + return AgentPSSODeviceRegistrationResponse( + client_id = '', + issuer = '', + token_endpoint = '', + jwks_endpoint = '', + audience = '', + nonce_endpoint = '', + ) + """ + + def testAgentPSSODeviceRegistrationResponse(self): + """Test AgentPSSODeviceRegistrationResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_psso_user_registration_request.py b/test/test_agent_psso_user_registration_request.py new file mode 100644 index 000000000..5d7e458a1 --- /dev/null +++ b/test/test_agent_psso_user_registration_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.agent_psso_user_registration_request import AgentPSSOUserRegistrationRequest + +class TestAgentPSSOUserRegistrationRequest(unittest.TestCase): + """AgentPSSOUserRegistrationRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AgentPSSOUserRegistrationRequest: + """Test AgentPSSOUserRegistrationRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AgentPSSOUserRegistrationRequest` + """ + model = AgentPSSOUserRegistrationRequest() + if include_optional: + return AgentPSSOUserRegistrationRequest( + user_auth = '0', + user_secure_enclave_key = '0', + enclave_key_id = '0' + ) + else: + return AgentPSSOUserRegistrationRequest( + user_auth = '0', + user_secure_enclave_key = '0', + enclave_key_id = '0', + ) + """ + + def testAgentPSSOUserRegistrationRequest(self): + """Test AgentPSSOUserRegistrationRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_agent_token_response.py b/test/test_agent_token_response.py new file mode 100644 index 000000000..4047a6226 --- /dev/null +++ b/test/test_agent_token_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.agent_token_response import AgentTokenResponse + +class TestAgentTokenResponse(unittest.TestCase): + """AgentTokenResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AgentTokenResponse: + """Test AgentTokenResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AgentTokenResponse` + """ + model = AgentTokenResponse() + if include_optional: + return AgentTokenResponse( + token = '', + expires_in = 56 + ) + else: + return AgentTokenResponse( + token = '', + ) + """ + + def testAgentTokenResponse(self): + """Test AgentTokenResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_alg_enum.py b/test/test_alg_enum.py index c3e65184a..1eefdefbf 100644 --- a/test/test_alg_enum.py +++ b/test/test_alg_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_app.py b/test/test_app.py index def9936ad..c920d3605 100644 --- a/test/test_app.py +++ b/test/test_app.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_app_enum.py b/test/test_app_enum.py index afa424aa4..ab9bcbc52 100644 --- a/test/test_app_enum.py +++ b/test/test_app_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_apple_challenge_response_request.py b/test/test_apple_challenge_response_request.py index c4733f719..da141392e 100644 --- a/test/test_apple_challenge_response_request.py +++ b/test/test_apple_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_apple_login_challenge.py b/test/test_apple_login_challenge.py index eac46a0ab..8f767b1d0 100644 --- a/test/test_apple_login_challenge.py +++ b/test/test_apple_login_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AppleLoginChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-source-oauth-apple', diff --git a/test/test_application.py b/test/test_application.py index 9e6fbbc1e..bc56983e7 100644 --- a/test/test_application.py +++ b/test/test_application.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -83,6 +83,10 @@ def make_instance(self, include_optional) -> Application: open_in_new_tab = True, meta_launch_url = '', meta_icon = '', + meta_icon_url = '', + meta_icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), meta_description = '', meta_publisher = '', policy_engine_mode = 'all', @@ -130,7 +134,10 @@ def make_instance(self, include_optional) -> Application: meta_model_name = '', ) ], launch_url = '', - meta_icon = '', + meta_icon_url = '', + meta_icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), ) """ diff --git a/test/test_application_entitlement.py b/test/test_application_entitlement.py index 0f77b5086..f69914c39 100644 --- a/test/test_application_entitlement.py +++ b/test/test_application_entitlement.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_application_entitlement_request.py b/test/test_application_entitlement_request.py index 6491b5df4..598c7a2de 100644 --- a/test/test_application_entitlement_request.py +++ b/test/test_application_entitlement_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_application_request.py b/test/test_application_request.py index 6d2d1ae21..a68d75b47 100644 --- a/test/test_application_request.py +++ b/test/test_application_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> ApplicationRequest: ], open_in_new_tab = True, meta_launch_url = '', + meta_icon = '', meta_description = '', meta_publisher = '', policy_engine_mode = 'all', diff --git a/test/test_auth_type_enum.py b/test/test_auth_type_enum.py index 83815f974..9a30d69ff 100644 --- a/test/test_auth_type_enum.py +++ b/test/test_auth_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticated_session.py b/test/test_authenticated_session.py index 30bbb23a2..942218e0e 100644 --- a/test/test_authenticated_session.py +++ b/test/test_authenticated_session.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticated_session_asn.py b/test/test_authenticated_session_asn.py index c73f4a7c0..aaba6051f 100644 --- a/test/test_authenticated_session_asn.py +++ b/test/test_authenticated_session_asn.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticated_session_geo_ip.py b/test/test_authenticated_session_geo_ip.py index 0a0d4dbd0..bd4e9c352 100644 --- a/test/test_authenticated_session_geo_ip.py +++ b/test/test_authenticated_session_geo_ip.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticated_session_user_agent.py b/test/test_authenticated_session_user_agent.py index 62796ba2b..ac8160c08 100644 --- a/test/test_authenticated_session_user_agent.py +++ b/test/test_authenticated_session_user_agent.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticated_session_user_agent_device.py b/test/test_authenticated_session_user_agent_device.py index 39cfbe90c..0a662aaa8 100644 --- a/test/test_authenticated_session_user_agent_device.py +++ b/test/test_authenticated_session_user_agent_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticated_session_user_agent_os.py b/test/test_authenticated_session_user_agent_os.py index ac6d59435..95f2062b3 100644 --- a/test/test_authenticated_session_user_agent_os.py +++ b/test/test_authenticated_session_user_agent_os.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticated_session_user_agent_user_agent.py b/test/test_authenticated_session_user_agent_user_agent.py index d6476f722..318787691 100644 --- a/test/test_authenticated_session_user_agent_user_agent.py +++ b/test/test_authenticated_session_user_agent_user_agent.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authentication_enum.py b/test/test_authentication_enum.py index 9658c7fa9..4b6ff8d96 100644 --- a/test/test_authentication_enum.py +++ b/test/test_authentication_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticator_attachment_enum.py b/test/test_authenticator_attachment_enum.py index 6cccc5f12..42df76fd1 100644 --- a/test/test_authenticator_attachment_enum.py +++ b/test/test_authenticator_attachment_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticator_duo_challenge.py b/test/test_authenticator_duo_challenge.py index 763a5f7af..438276e80 100644 --- a/test/test_authenticator_duo_challenge.py +++ b/test/test_authenticator_duo_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AuthenticatorDuoChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-authenticator-duo', diff --git a/test/test_authenticator_duo_challenge_response_request.py b/test/test_authenticator_duo_challenge_response_request.py index 2ba9d61b0..3f16a71bc 100644 --- a/test/test_authenticator_duo_challenge_response_request.py +++ b/test/test_authenticator_duo_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticator_duo_stage.py b/test/test_authenticator_duo_stage.py index 237370cc1..6173a537a 100644 --- a/test/test_authenticator_duo_stage.py +++ b/test/test_authenticator_duo_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> AuthenticatorDuoStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -71,6 +71,21 @@ def make_instance(self, include_optional) -> AuthenticatorDuoStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], client_id = '', api_hostname = '', ) diff --git a/test/test_authenticator_duo_stage_device_import_response.py b/test/test_authenticator_duo_stage_device_import_response.py index 0cbd2e190..5bfe6e80d 100644 --- a/test/test_authenticator_duo_stage_device_import_response.py +++ b/test/test_authenticator_duo_stage_device_import_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticator_duo_stage_manual_device_import_request.py b/test/test_authenticator_duo_stage_manual_device_import_request.py index 010d8785a..4864e7081 100644 --- a/test/test_authenticator_duo_stage_manual_device_import_request.py +++ b/test/test_authenticator_duo_stage_manual_device_import_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticator_duo_stage_request.py b/test/test_authenticator_duo_stage_request.py index 4034c14b6..cb8f87571 100644 --- a/test/test_authenticator_duo_stage_request.py +++ b/test/test_authenticator_duo_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> AuthenticatorDuoStageRequest: if include_optional: return AuthenticatorDuoStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', client_id = '0', diff --git a/test/test_authenticator_email_challenge.py b/test/test_authenticator_email_challenge.py index d81251bd3..dd869e6a8 100644 --- a/test/test_authenticator_email_challenge.py +++ b/test/test_authenticator_email_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AuthenticatorEmailChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-authenticator-email', diff --git a/test/test_authenticator_email_challenge_response_request.py b/test/test_authenticator_email_challenge_response_request.py index e5e78ab9e..835ee6e85 100644 --- a/test/test_authenticator_email_challenge_response_request.py +++ b/test/test_authenticator_email_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> AuthenticatorEmailChallengeResponse if include_optional: return AuthenticatorEmailChallengeResponseRequest( component = 'ak-stage-authenticator-email', - code = 56, + code = '0', email = '0' ) else: diff --git a/test/test_authenticator_email_stage.py b/test/test_authenticator_email_stage.py index 412b8e715..bf0c9fc7f 100644 --- a/test/test_authenticator_email_stage.py +++ b/test/test_authenticator_email_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> AuthenticatorEmailStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -80,6 +80,21 @@ def make_instance(self, include_optional) -> AuthenticatorEmailStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_authenticator_email_stage_request.py b/test/test_authenticator_email_stage_request.py index f90381920..d2636cd31 100644 --- a/test/test_authenticator_email_stage_request.py +++ b/test/test_authenticator_email_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> AuthenticatorEmailStageRequest: if include_optional: return AuthenticatorEmailStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', use_global_settings = True, diff --git a/test/test_authenticator_endpoint_gdtc_stage.py b/test/test_authenticator_endpoint_gdtc_stage.py index 0a96b8cbd..1eb70dde7 100644 --- a/test/test_authenticator_endpoint_gdtc_stage.py +++ b/test/test_authenticator_endpoint_gdtc_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> AuthenticatorEndpointGDTCStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -71,6 +71,21 @@ def make_instance(self, include_optional) -> AuthenticatorEndpointGDTCStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], credentials = { 'key' : null }, diff --git a/test/test_authenticator_endpoint_gdtc_stage_request.py b/test/test_authenticator_endpoint_gdtc_stage_request.py index e316e0339..4c338373d 100644 --- a/test/test_authenticator_endpoint_gdtc_stage_request.py +++ b/test/test_authenticator_endpoint_gdtc_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> AuthenticatorEndpointGDTCStageReque if include_optional: return AuthenticatorEndpointGDTCStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', credentials = { diff --git a/test/test_authenticator_sms_challenge.py b/test/test_authenticator_sms_challenge.py index 1ab5a9095..f012f84d9 100644 --- a/test/test_authenticator_sms_challenge.py +++ b/test/test_authenticator_sms_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AuthenticatorSMSChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-authenticator-sms', diff --git a/test/test_authenticator_sms_challenge_response_request.py b/test/test_authenticator_sms_challenge_response_request.py index 101969d31..884a496a5 100644 --- a/test/test_authenticator_sms_challenge_response_request.py +++ b/test/test_authenticator_sms_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> AuthenticatorSMSChallengeResponseRe if include_optional: return AuthenticatorSMSChallengeResponseRequest( component = 'ak-stage-authenticator-sms', - code = 56, + code = '0', phone_number = '0' ) else: diff --git a/test/test_authenticator_sms_stage.py b/test/test_authenticator_sms_stage.py index d1ac71d5c..bc3b0abab 100644 --- a/test/test_authenticator_sms_stage.py +++ b/test/test_authenticator_sms_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> AuthenticatorSMSStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -76,6 +76,21 @@ def make_instance(self, include_optional) -> AuthenticatorSMSStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], provider = 'twilio', from_number = '', account_sid = '', diff --git a/test/test_authenticator_sms_stage_request.py b/test/test_authenticator_sms_stage_request.py index 5f32e998a..23dfab7fc 100644 --- a/test/test_authenticator_sms_stage_request.py +++ b/test/test_authenticator_sms_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> AuthenticatorSMSStageRequest: if include_optional: return AuthenticatorSMSStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', provider = 'twilio', diff --git a/test/test_authenticator_static_challenge.py b/test/test_authenticator_static_challenge.py index 320427fed..dcb02f1fe 100644 --- a/test/test_authenticator_static_challenge.py +++ b/test/test_authenticator_static_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AuthenticatorStaticChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-authenticator-static', diff --git a/test/test_authenticator_static_challenge_response_request.py b/test/test_authenticator_static_challenge_response_request.py index 2fa29966c..46ef55682 100644 --- a/test/test_authenticator_static_challenge_response_request.py +++ b/test/test_authenticator_static_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticator_static_stage.py b/test/test_authenticator_static_stage.py index f88a561b1..b1a34450d 100644 --- a/test/test_authenticator_static_stage.py +++ b/test/test_authenticator_static_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> AuthenticatorStaticStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -70,6 +70,21 @@ def make_instance(self, include_optional) -> AuthenticatorStaticStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_authenticator_static_stage_request.py b/test/test_authenticator_static_stage_request.py index f9b5fba7a..9fb62629d 100644 --- a/test/test_authenticator_static_stage_request.py +++ b/test/test_authenticator_static_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> AuthenticatorStaticStageRequest: if include_optional: return AuthenticatorStaticStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', token_count = 0, diff --git a/test/test_authenticator_totp_challenge.py b/test/test_authenticator_totp_challenge.py index 708a66c4f..b4afb3d66 100644 --- a/test/test_authenticator_totp_challenge.py +++ b/test/test_authenticator_totp_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AuthenticatorTOTPChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-authenticator-totp', diff --git a/test/test_authenticator_totp_challenge_response_request.py b/test/test_authenticator_totp_challenge_response_request.py index 339b4d2ee..0fd8ea53b 100644 --- a/test/test_authenticator_totp_challenge_response_request.py +++ b/test/test_authenticator_totp_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,11 +37,11 @@ def make_instance(self, include_optional) -> AuthenticatorTOTPChallengeResponseR if include_optional: return AuthenticatorTOTPChallengeResponseRequest( component = 'ak-stage-authenticator-totp', - code = 56 + code = '0' ) else: return AuthenticatorTOTPChallengeResponseRequest( - code = 56, + code = '0', ) """ diff --git a/test/test_authenticator_totp_stage.py b/test/test_authenticator_totp_stage.py index c4032efe9..2c135073c 100644 --- a/test/test_authenticator_totp_stage.py +++ b/test/test_authenticator_totp_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> AuthenticatorTOTPStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -69,6 +69,21 @@ def make_instance(self, include_optional) -> AuthenticatorTOTPStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], digits = '6', ) """ diff --git a/test/test_authenticator_totp_stage_request.py b/test/test_authenticator_totp_stage_request.py index d79e18c32..1789b7cd6 100644 --- a/test/test_authenticator_totp_stage_request.py +++ b/test/test_authenticator_totp_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> AuthenticatorTOTPStageRequest: if include_optional: return AuthenticatorTOTPStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', digits = '6' diff --git a/test/test_authenticator_validate_stage.py b/test/test_authenticator_validate_stage.py index c4eb7f011..6cf797da5 100644 --- a/test/test_authenticator_validate_stage.py +++ b/test/test_authenticator_validate_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> AuthenticatorValidateStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -83,6 +83,21 @@ def make_instance(self, include_optional) -> AuthenticatorValidateStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], webauthn_allowed_device_types_obj = [ authentik_client.models.web_authn_device_type.WebAuthnDeviceType( aaguid = '', diff --git a/test/test_authenticator_validate_stage_request.py b/test/test_authenticator_validate_stage_request.py index 30cbb458d..6a907e43a 100644 --- a/test/test_authenticator_validate_stage_request.py +++ b/test/test_authenticator_validate_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> AuthenticatorValidateStageRequest: if include_optional: return AuthenticatorValidateStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], not_configured_action = 'skip', device_classes = [ 'static' diff --git a/test/test_authenticator_validation_challenge.py b/test/test_authenticator_validation_challenge.py index 033faf87a..eeffa3aca 100644 --- a/test/test_authenticator_validation_challenge.py +++ b/test/test_authenticator_validation_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AuthenticatorValidationChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-authenticator-validate', diff --git a/test/test_authenticator_validation_challenge_response_request.py b/test/test_authenticator_validation_challenge_response_request.py index a1efb14e5..7cff9eb0f 100644 --- a/test/test_authenticator_validation_challenge_response_request.py +++ b/test/test_authenticator_validation_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticator_web_authn_challenge.py b/test/test_authenticator_web_authn_challenge.py index 84a77ff21..14a715723 100644 --- a/test/test_authenticator_web_authn_challenge.py +++ b/test/test_authenticator_web_authn_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AuthenticatorWebAuthnChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-authenticator-webauthn', diff --git a/test/test_authenticator_web_authn_challenge_response_request.py b/test/test_authenticator_web_authn_challenge_response_request.py index e264e2825..c795718a9 100644 --- a/test/test_authenticator_web_authn_challenge_response_request.py +++ b/test/test_authenticator_web_authn_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authenticator_web_authn_stage.py b/test/test_authenticator_web_authn_stage.py index 7b8fe203e..b678cd04c 100644 --- a/test/test_authenticator_web_authn_stage.py +++ b/test/test_authenticator_web_authn_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> AuthenticatorWebAuthnStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -80,6 +80,21 @@ def make_instance(self, include_optional) -> AuthenticatorWebAuthnStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], device_type_restrictions_obj = [ authentik_client.models.web_authn_device_type.WebAuthnDeviceType( aaguid = '', diff --git a/test/test_authenticator_web_authn_stage_request.py b/test/test_authenticator_web_authn_stage_request.py index 32cb44c91..dd9e58478 100644 --- a/test/test_authenticator_web_authn_stage_request.py +++ b/test/test_authenticator_web_authn_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> AuthenticatorWebAuthnStageRequest: if include_optional: return AuthenticatorWebAuthnStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', user_verification = 'required', diff --git a/test/test_authenticators_api.py b/test/test_authenticators_api.py index 096be21c7..56f7ced68 100644 --- a/test/test_authenticators_api.py +++ b/test/test_authenticators_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_authorization_code_auth_method_enum.py b/test/test_authorization_code_auth_method_enum.py index e9ee61438..3bd928743 100644 --- a/test/test_authorization_code_auth_method_enum.py +++ b/test/test_authorization_code_auth_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_auto_submit_challenge_response_request.py b/test/test_auto_submit_challenge_response_request.py index a9a6cd139..62bfc1792 100644 --- a/test/test_auto_submit_challenge_response_request.py +++ b/test/test_auto_submit_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_autosubmit_challenge.py b/test/test_autosubmit_challenge.py index 6b42bce03..61e6c400c 100644 --- a/test/test_autosubmit_challenge.py +++ b/test/test_autosubmit_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> AutosubmitChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-autosubmit', diff --git a/test/test_backends_enum.py b/test/test_backends_enum.py index e78f98446..d9f800633 100644 --- a/test/test_backends_enum.py +++ b/test/test_backends_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_binding_type_enum.py b/test/test_binding_type_enum.py index 326e48638..d47b36a27 100644 --- a/test/test_binding_type_enum.py +++ b/test/test_binding_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_blueprint_file.py b/test/test_blueprint_file.py index 5cedecb80..317550d0a 100644 --- a/test/test_blueprint_file.py +++ b/test/test_blueprint_file.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_blueprint_instance.py b/test/test_blueprint_instance.py index f10edd337..3fe16ee5a 100644 --- a/test/test_blueprint_instance.py +++ b/test/test_blueprint_instance.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_blueprint_instance_request.py b/test/test_blueprint_instance_request.py index 08392c388..7bfd2c8f7 100644 --- a/test/test_blueprint_instance_request.py +++ b/test/test_blueprint_instance_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_blueprint_instance_status_enum.py b/test/test_blueprint_instance_status_enum.py index 9b6a0038e..bc0120ebd 100644 --- a/test/test_blueprint_instance_status_enum.py +++ b/test/test_blueprint_instance_status_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_brand.py b/test/test_brand.py index 03ff5d7de..cc0c5bdb5 100644 --- a/test/test_brand.py +++ b/test/test_brand.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_brand_request.py b/test/test_brand_request.py index 42e37953c..32ba23fab 100644 --- a/test/test_brand_request.py +++ b/test/test_brand_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_cache.py b/test/test_cache.py index 7afc857b7..919ec9449 100644 --- a/test/test_cache.py +++ b/test/test_cache.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_capabilities_enum.py b/test/test_capabilities_enum.py index a9e94bdcf..735f9d85c 100644 --- a/test/test_capabilities_enum.py +++ b/test/test_capabilities_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_captcha_challenge.py b/test/test_captcha_challenge.py index de8d4ba13..b9f54b2b0 100644 --- a/test/test_captcha_challenge.py +++ b/test/test_captcha_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> CaptchaChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-captcha', diff --git a/test/test_captcha_challenge_response_request.py b/test/test_captcha_challenge_response_request.py index 3c9c6cbb7..c2c649589 100644 --- a/test/test_captcha_challenge_response_request.py +++ b/test/test_captcha_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_captcha_stage.py b/test/test_captcha_stage.py index fce233de4..72486dd55 100644 --- a/test/test_captcha_stage.py +++ b/test/test_captcha_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> CaptchaStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -73,6 +73,21 @@ def make_instance(self, include_optional) -> CaptchaStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], public_key = '', ) """ diff --git a/test/test_captcha_stage_request.py b/test/test_captcha_stage_request.py index 796c628f0..649fbb06b 100644 --- a/test/test_captcha_stage_request.py +++ b/test/test_captcha_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> CaptchaStageRequest: if include_optional: return CaptchaStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], public_key = '0', private_key = '0', js_url = '0', diff --git a/test/test_cert_attribute_enum.py b/test/test_cert_attribute_enum.py index 12c5a94b3..19689ff80 100644 --- a/test/test_cert_attribute_enum.py +++ b/test/test_cert_attribute_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_certificate_data.py b/test/test_certificate_data.py index e4fad49fb..b4927ef80 100644 --- a/test/test_certificate_data.py +++ b/test/test_certificate_data.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_certificate_generation_request.py b/test/test_certificate_generation_request.py index 558d47af3..876a20b2e 100644 --- a/test/test_certificate_generation_request.py +++ b/test/test_certificate_generation_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_certificate_key_pair.py b/test/test_certificate_key_pair.py index 66fcf27af..f913c4573 100644 --- a/test/test_certificate_key_pair.py +++ b/test/test_certificate_key_pair.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> CertificateKeyPair: cert_expiry = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), cert_subject = '', private_key_available = True, - private_key_type = '', + key_type = 'rsa', certificate_download_url = '', private_key_download_url = '', managed = '' @@ -57,7 +57,7 @@ def make_instance(self, include_optional) -> CertificateKeyPair: cert_expiry = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), cert_subject = '', private_key_available = True, - private_key_type = '', + key_type = 'rsa', certificate_download_url = '', private_key_download_url = '', managed = '', diff --git a/test/test_certificate_key_pair_request.py b/test/test_certificate_key_pair_request.py index 8e33c5a82..912b233e6 100644 --- a/test/test_certificate_key_pair_request.py +++ b/test/test_certificate_key_pair_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_challenge_types.py b/test/test_challenge_types.py index fdbf46680..d2da9a107 100644 --- a/test/test_challenge_types.py +++ b/test/test_challenge_types.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> ChallengeTypes: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-user-login', @@ -106,6 +107,8 @@ def make_instance(self, include_optional) -> ChallengeTypes: ], token = '', name = '', + challenge = '', + challenge_idle_timeout = 56, request_id = '', error = '', traceback = '', @@ -122,6 +125,7 @@ def make_instance(self, include_optional) -> ChallengeTypes: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-captcha', @@ -145,10 +149,14 @@ def make_instance(self, include_optional) -> ChallengeTypes: authentik_client.models.login_source.LoginSource( name = '', icon_url = '', + promoted = True, challenge = null, ) ], show_source_labels = True, enable_remember_me = True, + passkey_challenge = { + 'key' : None + }, logout_urls = [ { 'key' : None @@ -173,7 +181,9 @@ def make_instance(self, include_optional) -> ChallengeTypes: order = 56, sub_text = '', choices = [ - '' + authentik_client.models.prompt_choice.PromptChoice( + value = '', + label = '', ) ], ) ], to = '', @@ -238,6 +248,8 @@ def make_instance(self, include_optional) -> ChallengeTypes: ], token = '', name = '', + challenge = '', + challenge_idle_timeout = 56, request_id = '', loading_text = '', user_fields = [ @@ -259,7 +271,9 @@ def make_instance(self, include_optional) -> ChallengeTypes: order = 56, sub_text = '', choices = [ - '' + authentik_client.models.prompt_choice.PromptChoice( + value = '', + label = '', ) ], ) ], to = '', diff --git a/test/test_client_type_enum.py b/test/test_client_type_enum.py index a5649d7ea..523755de0 100644 --- a/test/test_client_type_enum.py +++ b/test/test_client_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_compatibility_mode_enum.py b/test/test_compatibility_mode_enum.py index dd3cc1eb0..94280d319 100644 --- a/test/test_compatibility_mode_enum.py +++ b/test/test_compatibility_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_config.py b/test/test_config.py index 10e226aa4..24c226fd7 100644 --- a/test/test_config.py +++ b/test/test_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_connection_token.py b/test/test_connection_token.py index c81acb0b3..b9e20fe1d 100644 --- a/test/test_connection_token.py +++ b/test/test_connection_token.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_connection_token_request.py b/test/test_connection_token_request.py index 50dfda794..161cffe46 100644 --- a/test/test_connection_token_request.py +++ b/test/test_connection_token_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_connector.py b/test/test_connector.py new file mode 100644 index 000000000..511bd4b45 --- /dev/null +++ b/test/test_connector.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.connector import Connector + +class TestConnector(unittest.TestCase): + """Connector unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Connector: + """Test Connector + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Connector` + """ + model = Connector() + if include_optional: + return Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '' + ) + else: + return Connector( + name = '', + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + ) + """ + + def testConnector(self): + """Test Connector""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_consent_challenge.py b/test/test_consent_challenge.py index a2dddac43..ea02ed8a1 100644 --- a/test/test_consent_challenge.py +++ b/test/test_consent_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> ConsentChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-consent', diff --git a/test/test_consent_challenge_response_request.py b/test/test_consent_challenge_response_request.py index ab2f7e7c4..3712249f5 100644 --- a/test/test_consent_challenge_response_request.py +++ b/test/test_consent_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_consent_permission.py b/test/test_consent_permission.py index 0aa75c031..2fc613961 100644 --- a/test/test_consent_permission.py +++ b/test/test_consent_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_consent_stage.py b/test/test_consent_stage.py index 803572f8d..e586689d6 100644 --- a/test/test_consent_stage.py +++ b/test/test_consent_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> ConsentStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -68,6 +68,21 @@ def make_instance(self, include_optional) -> ConsentStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_consent_stage_mode_enum.py b/test/test_consent_stage_mode_enum.py index 037562727..8d55146f1 100644 --- a/test/test_consent_stage_mode_enum.py +++ b/test/test_consent_stage_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_consent_stage_request.py b/test/test_consent_stage_request.py index cbbcb48d8..56d1a3f34 100644 --- a/test/test_consent_stage_request.py +++ b/test/test_consent_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> ConsentStageRequest: if include_optional: return ConsentStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], mode = 'always_require', consent_expire_in = '0' ) diff --git a/test/test_content_type.py b/test/test_content_type.py new file mode 100644 index 000000000..b1e5f8840 --- /dev/null +++ b/test/test_content_type.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.content_type import ContentType + +class TestContentType(unittest.TestCase): + """ContentType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ContentType: + """Test ContentType + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ContentType` + """ + model = ContentType() + if include_optional: + return ContentType( + id = 56, + app_label = '', + model = '', + verbose_name_plural = '' + ) + else: + return ContentType( + id = 56, + app_label = '', + model = '', + verbose_name_plural = '', + ) + """ + + def testContentType(self): + """Test ContentType""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contextual_flow_info.py b/test/test_contextual_flow_info.py index 44484d9e8..a122a9d1d 100644 --- a/test/test_contextual_flow_info.py +++ b/test/test_contextual_flow_info.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,6 +38,9 @@ def make_instance(self, include_optional) -> ContextualFlowInfo: return ContextualFlowInfo( title = '', background = '', + background_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), cancel_url = '', layout = 'stacked' ) diff --git a/test/test_contextual_flow_info_layout_enum.py b/test/test_contextual_flow_info_layout_enum.py index ee299d4bb..731d98ce8 100644 --- a/test/test_contextual_flow_info_layout_enum.py +++ b/test/test_contextual_flow_info_layout_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_core_api.py b/test/test_core_api.py index 73a7bb1c3..bfa1834c6 100644 --- a/test/test_core_api.py +++ b/test/test_core_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -105,18 +105,6 @@ def test_core_applications_retrieve(self) -> None: """ pass - def test_core_applications_set_icon_create(self) -> None: - """Test case for core_applications_set_icon_create - - """ - pass - - def test_core_applications_set_icon_url_create(self) -> None: - """Test case for core_applications_set_icon_url_create - - """ - pass - def test_core_applications_update(self) -> None: """Test case for core_applications_update @@ -351,6 +339,12 @@ def test_core_users_destroy(self) -> None: """ pass + def test_core_users_export_create(self) -> None: + """Test case for core_users_export_create + + """ + pass + def test_core_users_impersonate_create(self) -> None: """Test case for core_users_impersonate_create diff --git a/test/test_country_code_enum.py b/test/test_country_code_enum.py index bc4d273c2..d7cf91883 100644 --- a/test/test_country_code_enum.py +++ b/test/test_country_code_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_crypto_api.py b/test/test_crypto_api.py index aae5ea647..1c5ae53e1 100644 --- a/test/test_crypto_api.py +++ b/test/test_crypto_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_current_brand.py b/test/test_current_brand.py index b7959ebc7..21a2f1643 100644 --- a/test/test_current_brand.py +++ b/test/test_current_brand.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,7 +39,13 @@ def make_instance(self, include_optional) -> CurrentBrand: matched_domain = '', branding_title = '', branding_logo = '', + branding_logo_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), branding_favicon = '', + branding_favicon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), branding_custom_css = '', ui_footer_links = [ authentik_client.models.footer_link.FooterLink( @@ -55,14 +61,21 @@ def make_instance(self, include_optional) -> CurrentBrand: flow_device_code = '', default_locale = '', flags = authentik_client.models.current_brand_flags.CurrentBrand_flags( - policies_buffered_access_view = True, ) + policies_buffered_access_view = True, + flows_refresh_others = True, ) ) else: return CurrentBrand( matched_domain = '', branding_title = '', branding_logo = '', + branding_logo_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), branding_favicon = '', + branding_favicon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), branding_custom_css = '', ui_footer_links = [ authentik_client.models.footer_link.FooterLink( @@ -72,7 +85,8 @@ def make_instance(self, include_optional) -> CurrentBrand: ui_theme = 'automatic', default_locale = '', flags = authentik_client.models.current_brand_flags.CurrentBrand_flags( - policies_buffered_access_view = True, ), + policies_buffered_access_view = True, + flows_refresh_others = True, ), ) """ diff --git a/test/test_current_brand_flags.py b/test/test_current_brand_flags.py index fee9fe38e..fae1157be 100644 --- a/test/test_current_brand_flags.py +++ b/test/test_current_brand_flags.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,11 +36,13 @@ def make_instance(self, include_optional) -> CurrentBrandFlags: model = CurrentBrandFlags() if include_optional: return CurrentBrandFlags( - policies_buffered_access_view = True + policies_buffered_access_view = True, + flows_refresh_others = True ) else: return CurrentBrandFlags( policies_buffered_access_view = True, + flows_refresh_others = True, ) """ diff --git a/test/test_data_export.py b/test/test_data_export.py new file mode 100644 index 000000000..5f1d42098 --- /dev/null +++ b/test/test_data_export.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.data_export import DataExport + +class TestDataExport(unittest.TestCase): + """DataExport unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataExport: + """Test DataExport + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DataExport` + """ + model = DataExport() + if include_optional: + return DataExport( + id = '', + requested_by = authentik_client.models.partial_user.PartialUser( + pk = 56, + username = 'A', + name = '', + is_active = True, + last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + email = '', + attributes = { + 'key' : null + }, + uid = '', ), + requested_on = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + content_type = authentik_client.models.content_type.ContentType( + id = 56, + app_label = '', + model = '', + verbose_name_plural = '', ), + var_query_params = { + 'key' : null + }, + file_url = '', + completed = True + ) + else: + return DataExport( + id = '', + requested_by = authentik_client.models.partial_user.PartialUser( + pk = 56, + username = 'A', + name = '', + is_active = True, + last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + email = '', + attributes = { + 'key' : null + }, + uid = '', ), + requested_on = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + content_type = authentik_client.models.content_type.ContentType( + id = 56, + app_label = '', + model = '', + verbose_name_plural = '', ), + var_query_params = { + 'key' : null + }, + file_url = '', + completed = True, + ) + """ + + def testDataExport(self): + """Test DataExport""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_delivery_method_enum.py b/test/test_delivery_method_enum.py index 7f5a0c297..7cc497a28 100644 --- a/test/test_delivery_method_enum.py +++ b/test/test_delivery_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_denied_action_enum.py b/test/test_denied_action_enum.py index b2cf95c7c..6f7469c1a 100644 --- a/test/test_denied_action_enum.py +++ b/test/test_denied_action_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_deny_stage.py b/test/test_deny_stage.py index dad29dc8c..b10d81906 100644 --- a/test/test_deny_stage.py +++ b/test/test_deny_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> DenyStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -67,6 +67,21 @@ def make_instance(self, include_optional) -> DenyStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_deny_stage_request.py b/test/test_deny_stage_request.py index f01d45a9a..a2d6a94b7 100644 --- a/test/test_deny_stage_request.py +++ b/test/test_deny_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> DenyStageRequest: if include_optional: return DenyStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], deny_message = '' ) else: diff --git a/test/test_detailed_country.py b/test/test_detailed_country.py index 607f4c1c8..f22229d56 100644 --- a/test/test_detailed_country.py +++ b/test/test_detailed_country.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_detailed_country_field.py b/test/test_detailed_country_field.py index ed3e3b0fd..5d9158626 100644 --- a/test/test_detailed_country_field.py +++ b/test/test_detailed_country_field.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_device.py b/test/test_device.py index b20fd025e..777d6b0f1 100644 --- a/test/test_device.py +++ b/test/test_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_device_access_group.py b/test/test_device_access_group.py new file mode 100644 index 000000000..173e0d1bb --- /dev/null +++ b/test/test_device_access_group.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_access_group import DeviceAccessGroup + +class TestDeviceAccessGroup(unittest.TestCase): + """DeviceAccessGroup unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceAccessGroup: + """Test DeviceAccessGroup + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceAccessGroup` + """ + model = DeviceAccessGroup() + if include_optional: + return DeviceAccessGroup( + pbm_uuid = '', + name = '' + ) + else: + return DeviceAccessGroup( + pbm_uuid = '', + name = '', + ) + """ + + def testDeviceAccessGroup(self): + """Test DeviceAccessGroup""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_access_group_request.py b/test/test_device_access_group_request.py new file mode 100644 index 000000000..39b3b8f3e --- /dev/null +++ b/test/test_device_access_group_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_access_group_request import DeviceAccessGroupRequest + +class TestDeviceAccessGroupRequest(unittest.TestCase): + """DeviceAccessGroupRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceAccessGroupRequest: + """Test DeviceAccessGroupRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceAccessGroupRequest` + """ + model = DeviceAccessGroupRequest() + if include_optional: + return DeviceAccessGroupRequest( + name = '0' + ) + else: + return DeviceAccessGroupRequest( + name = '0', + ) + """ + + def testDeviceAccessGroupRequest(self): + """Test DeviceAccessGroupRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_challenge.py b/test/test_device_challenge.py index 4805c236f..187acce90 100644 --- a/test/test_device_challenge.py +++ b/test/test_device_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_device_challenge_request.py b/test/test_device_challenge_request.py index 6892dbeaf..4542d65b1 100644 --- a/test/test_device_challenge_request.py +++ b/test/test_device_challenge_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_device_classes_enum.py b/test/test_device_classes_enum.py index 1f48f3b7f..da6aed98b 100644 --- a/test/test_device_classes_enum.py +++ b/test/test_device_classes_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_device_connection.py b/test/test_device_connection.py new file mode 100644 index 000000000..2c70c168b --- /dev/null +++ b/test/test_device_connection.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_connection import DeviceConnection + +class TestDeviceConnection(unittest.TestCase): + """DeviceConnection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceConnection: + """Test DeviceConnection + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceConnection` + """ + model = DeviceConnection() + if include_optional: + return DeviceConnection( + device = '', + connector = '', + connector_obj = authentik_client.models.connector.Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', ), + latest_snapshot = authentik_client.models.device_fact_snapshot.DeviceFactSnapshot( + data = authentik_client.models.device_facts.DeviceFacts( + os = null, + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = null, + hardware = null, + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + }, ), + connection = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ) + else: + return DeviceConnection( + device = '', + connector = '', + connector_obj = authentik_client.models.connector.Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', ), + latest_snapshot = authentik_client.models.device_fact_snapshot.DeviceFactSnapshot( + data = authentik_client.models.device_facts.DeviceFacts( + os = null, + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = null, + hardware = null, + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + }, ), + connection = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + ) + """ + + def testDeviceConnection(self): + """Test DeviceConnection""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_fact_snapshot.py b/test/test_device_fact_snapshot.py new file mode 100644 index 000000000..33c6a3d9f --- /dev/null +++ b/test/test_device_fact_snapshot.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_fact_snapshot import DeviceFactSnapshot + +class TestDeviceFactSnapshot(unittest.TestCase): + """DeviceFactSnapshot unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceFactSnapshot: + """Test DeviceFactSnapshot + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceFactSnapshot` + """ + model = DeviceFactSnapshot() + if include_optional: + return DeviceFactSnapshot( + data = authentik_client.models.device_facts.DeviceFacts( + os = null, + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = null, + hardware = null, + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + }, ), + connection = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return DeviceFactSnapshot( + data = authentik_client.models.device_facts.DeviceFacts( + os = null, + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = null, + hardware = null, + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + }, ), + connection = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ) + """ + + def testDeviceFactSnapshot(self): + """Test DeviceFactSnapshot""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_facts.py b/test/test_device_facts.py new file mode 100644 index 000000000..417c26365 --- /dev/null +++ b/test/test_device_facts.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_facts import DeviceFacts + +class TestDeviceFacts(unittest.TestCase): + """DeviceFacts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceFacts: + """Test DeviceFacts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceFacts` + """ + model = DeviceFacts() + if include_optional: + return DeviceFacts( + os = authentik_client.models.operating_system.OperatingSystem( + family = 'linux', + name = '', + version = '', + arch = '', ), + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = authentik_client.models.network.Network( + hostname = '', + firewall_enabled = True, + interfaces = [ + authentik_client.models.network_interface.NetworkInterface( + name = '', + hardware_address = '', + ip_addresses = [ + '' + ], + dns_servers = [ + '' + ], ) + ], + gateway = '', ), + hardware = authentik_client.models.hardware.Hardware( + model = '', + manufacturer = '', + serial = '', + cpu_name = '', + cpu_count = 56, + memory_bytes = 56, ), + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + } + ) + else: + return DeviceFacts( + ) + """ + + def testDeviceFacts(self): + """Test DeviceFacts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mutual_tls_stage_mode_enum.py b/test/test_device_facts_os_family.py similarity index 50% rename from test/test_mutual_tls_stage_mode_enum.py rename to test/test_device_facts_os_family.py index 6dd0dc1ad..a342b465e 100644 --- a/test/test_mutual_tls_stage_mode_enum.py +++ b/test/test_device_facts_os_family.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from authentik_client.models.mutual_tls_stage_mode_enum import MutualTLSStageModeEnum +from authentik_client.models.device_facts_os_family import DeviceFactsOSFamily -class TestMutualTLSStageModeEnum(unittest.TestCase): - """MutualTLSStageModeEnum unit test stubs""" +class TestDeviceFactsOSFamily(unittest.TestCase): + """DeviceFactsOSFamily unit test stubs""" def setUp(self): pass @@ -26,9 +26,9 @@ def setUp(self): def tearDown(self): pass - def testMutualTLSStageModeEnum(self): - """Test MutualTLSStageModeEnum""" - # inst = MutualTLSStageModeEnum() + def testDeviceFactsOSFamily(self): + """Test DeviceFactsOSFamily""" + # inst = DeviceFactsOSFamily() if __name__ == '__main__': unittest.main() diff --git a/test/test_device_facts_request.py b/test/test_device_facts_request.py new file mode 100644 index 000000000..794db7a0a --- /dev/null +++ b/test/test_device_facts_request.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_facts_request import DeviceFactsRequest + +class TestDeviceFactsRequest(unittest.TestCase): + """DeviceFactsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceFactsRequest: + """Test DeviceFactsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceFactsRequest` + """ + model = DeviceFactsRequest() + if include_optional: + return DeviceFactsRequest( + os = authentik_client.models.operating_system_request.OperatingSystemRequest( + family = 'linux', + name = '0', + version = '0', + arch = '0', ), + disks = [ + authentik_client.models.disk_request.DiskRequest( + name = '0', + mountpoint = '0', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = authentik_client.models.network_request.NetworkRequest( + hostname = '0', + firewall_enabled = True, + interfaces = [ + authentik_client.models.network_interface_request.NetworkInterfaceRequest( + name = '0', + hardware_address = '0', + ip_addresses = [ + '0' + ], + dns_servers = [ + '0' + ], ) + ], + gateway = '0', ), + hardware = authentik_client.models.hardware_request.HardwareRequest( + model = '0', + manufacturer = '0', + serial = '0', + cpu_name = '0', + cpu_count = 56, + memory_bytes = 56, ), + software = [ + authentik_client.models.software_request.SoftwareRequest( + name = '0', + version = '', + source = '0', + path = '0', ) + ], + processes = [ + authentik_client.models.process_request.ProcessRequest( + id = 56, + name = '0', + user = '0', ) + ], + users = [ + authentik_client.models.device_user_request.DeviceUserRequest( + id = '0', + username = '0', + name = '0', + home = '0', ) + ], + groups = [ + authentik_client.models.device_group_request.DeviceGroupRequest( + id = '0', + name = '0', ) + ], + vendor = { + 'key' : null + } + ) + else: + return DeviceFactsRequest( + ) + """ + + def testDeviceFactsRequest(self): + """Test DeviceFactsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_file_path_request.py b/test/test_device_group.py similarity index 56% rename from test/test_file_path_request.py rename to test/test_device_group.py index d529b364e..b1c3fae86 100644 --- a/test/test_file_path_request.py +++ b/test/test_device_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from authentik_client.models.file_path_request import FilePathRequest +from authentik_client.models.device_group import DeviceGroup -class TestFilePathRequest(unittest.TestCase): - """FilePathRequest unit test stubs""" +class TestDeviceGroup(unittest.TestCase): + """DeviceGroup unit test stubs""" def setUp(self): pass @@ -26,26 +26,27 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FilePathRequest: - """Test FilePathRequest + def make_instance(self, include_optional) -> DeviceGroup: + """Test DeviceGroup include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `FilePathRequest` + # uncomment below to create an instance of `DeviceGroup` """ - model = FilePathRequest() + model = DeviceGroup() if include_optional: - return FilePathRequest( - url = '0' + return DeviceGroup( + id = '', + name = '' ) else: - return FilePathRequest( - url = '0', + return DeviceGroup( + id = '', ) """ - def testFilePathRequest(self): - """Test FilePathRequest""" + def testDeviceGroup(self): + """Test DeviceGroup""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_device_group_request.py b/test/test_device_group_request.py new file mode 100644 index 000000000..7d7cfb842 --- /dev/null +++ b/test/test_device_group_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_group_request import DeviceGroupRequest + +class TestDeviceGroupRequest(unittest.TestCase): + """DeviceGroupRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceGroupRequest: + """Test DeviceGroupRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceGroupRequest` + """ + model = DeviceGroupRequest() + if include_optional: + return DeviceGroupRequest( + id = '0', + name = '0' + ) + else: + return DeviceGroupRequest( + id = '0', + ) + """ + + def testDeviceGroupRequest(self): + """Test DeviceGroupRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_summary.py b/test/test_device_summary.py new file mode 100644 index 000000000..a550edeb5 --- /dev/null +++ b/test/test_device_summary.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_summary import DeviceSummary + +class TestDeviceSummary(unittest.TestCase): + """DeviceSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceSummary: + """Test DeviceSummary + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceSummary` + """ + model = DeviceSummary() + if include_optional: + return DeviceSummary( + total_count = 56, + unreachable_count = 56, + outdated_agent_count = 56 + ) + else: + return DeviceSummary( + total_count = 56, + unreachable_count = 56, + outdated_agent_count = 56, + ) + """ + + def testDeviceSummary(self): + """Test DeviceSummary""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_user.py b/test/test_device_user.py new file mode 100644 index 000000000..818ca8473 --- /dev/null +++ b/test/test_device_user.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_user import DeviceUser + +class TestDeviceUser(unittest.TestCase): + """DeviceUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceUser: + """Test DeviceUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceUser` + """ + model = DeviceUser() + if include_optional: + return DeviceUser( + id = '', + username = '', + name = '', + home = '' + ) + else: + return DeviceUser( + id = '', + ) + """ + + def testDeviceUser(self): + """Test DeviceUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_user_binding.py b/test/test_device_user_binding.py new file mode 100644 index 000000000..4013a4a75 --- /dev/null +++ b/test/test_device_user_binding.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_user_binding import DeviceUserBinding + +class TestDeviceUserBinding(unittest.TestCase): + """DeviceUserBinding unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceUserBinding: + """Test DeviceUserBinding + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceUserBinding` + """ + model = DeviceUserBinding() + if include_optional: + return DeviceUserBinding( + pk = '', + policy = '', + group = '', + user = 56, + policy_obj = authentik_client.models.policy.Policy( + pk = '', + name = '', + execution_logging = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + bound_to = 56, ), + group_obj = authentik_client.models.partial_group.PartialGroup( + pk = '', + num_pk = 56, + name = '', + is_superuser = True, + attributes = { + 'key' : null + }, ), + user_obj = authentik_client.models.partial_user.PartialUser( + pk = 56, + username = 'A', + name = '', + is_active = True, + last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + email = '', + attributes = { + 'key' : null + }, + uid = '', ), + target = '', + negate = True, + enabled = True, + order = -2147483648, + timeout = 0, + failure_result = True, + is_primary = True, + connector = '', + connector_obj = authentik_client.models.connector.Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', ) + ) + else: + return DeviceUserBinding( + pk = '', + policy_obj = authentik_client.models.policy.Policy( + pk = '', + name = '', + execution_logging = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + bound_to = 56, ), + group_obj = authentik_client.models.partial_group.PartialGroup( + pk = '', + num_pk = 56, + name = '', + is_superuser = True, + attributes = { + 'key' : null + }, ), + user_obj = authentik_client.models.partial_user.PartialUser( + pk = 56, + username = 'A', + name = '', + is_active = True, + last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + email = '', + attributes = { + 'key' : null + }, + uid = '', ), + target = '', + order = -2147483648, + connector = '', + connector_obj = authentik_client.models.connector.Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', ), + ) + """ + + def testDeviceUserBinding(self): + """Test DeviceUserBinding""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_user_binding_request.py b/test/test_device_user_binding_request.py new file mode 100644 index 000000000..170120a91 --- /dev/null +++ b/test/test_device_user_binding_request.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_user_binding_request import DeviceUserBindingRequest + +class TestDeviceUserBindingRequest(unittest.TestCase): + """DeviceUserBindingRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceUserBindingRequest: + """Test DeviceUserBindingRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceUserBindingRequest` + """ + model = DeviceUserBindingRequest() + if include_optional: + return DeviceUserBindingRequest( + policy = '', + group = '', + user = 56, + target = '', + negate = True, + enabled = True, + order = -2147483648, + timeout = 0, + failure_result = True, + is_primary = True + ) + else: + return DeviceUserBindingRequest( + target = '', + order = -2147483648, + ) + """ + + def testDeviceUserBindingRequest(self): + """Test DeviceUserBindingRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_device_user_request.py b/test/test_device_user_request.py new file mode 100644 index 000000000..9e51fc361 --- /dev/null +++ b/test/test_device_user_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.device_user_request import DeviceUserRequest + +class TestDeviceUserRequest(unittest.TestCase): + """DeviceUserRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DeviceUserRequest: + """Test DeviceUserRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DeviceUserRequest` + """ + model = DeviceUserRequest() + if include_optional: + return DeviceUserRequest( + id = '0', + username = '0', + name = '0', + home = '0' + ) + else: + return DeviceUserRequest( + id = '0', + ) + """ + + def testDeviceUserRequest(self): + """Test DeviceUserRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_digest_algorithm_enum.py b/test/test_digest_algorithm_enum.py index d97d1e062..2823df69a 100644 --- a/test/test_digest_algorithm_enum.py +++ b/test/test_digest_algorithm_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_digits_enum.py b/test/test_digits_enum.py index 890710352..7a1474111 100644 --- a/test/test_digits_enum.py +++ b/test/test_digits_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_disk.py b/test/test_disk.py new file mode 100644 index 000000000..7a7ecb74a --- /dev/null +++ b/test/test_disk.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.disk import Disk + +class TestDisk(unittest.TestCase): + """Disk unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Disk: + """Test Disk + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Disk` + """ + model = Disk() + if include_optional: + return Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True + ) + else: + return Disk( + name = '', + mountpoint = '', + ) + """ + + def testDisk(self): + """Test Disk""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_disk_request.py b/test/test_disk_request.py new file mode 100644 index 000000000..35ac31942 --- /dev/null +++ b/test/test_disk_request.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.disk_request import DiskRequest + +class TestDiskRequest(unittest.TestCase): + """DiskRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DiskRequest: + """Test DiskRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `DiskRequest` + """ + model = DiskRequest() + if include_optional: + return DiskRequest( + name = '0', + mountpoint = '0', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True + ) + else: + return DiskRequest( + name = '0', + mountpoint = '0', + ) + """ + + def testDiskRequest(self): + """Test DiskRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_docker_service_connection.py b/test/test_docker_service_connection.py index 7e005447e..e03ebce6d 100644 --- a/test/test_docker_service_connection.py +++ b/test/test_docker_service_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_docker_service_connection_request.py b/test/test_docker_service_connection_request.py index e28fe2add..a16c09016 100644 --- a/test/test_docker_service_connection_request.py +++ b/test/test_docker_service_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_domain.py b/test/test_domain.py index 048a981ff..eeea2a7a1 100644 --- a/test/test_domain.py +++ b/test/test_domain.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_domain_request.py b/test/test_domain_request.py index 4f59b66fc..46c559774 100644 --- a/test/test_domain_request.py +++ b/test/test_domain_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_dummy_challenge.py b/test/test_dummy_challenge.py index 3c6a6242d..31e31591f 100644 --- a/test/test_dummy_challenge.py +++ b/test/test_dummy_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> DummyChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-dummy', diff --git a/test/test_dummy_challenge_response_request.py b/test/test_dummy_challenge_response_request.py index 73e68afcb..54efdd627 100644 --- a/test/test_dummy_challenge_response_request.py +++ b/test/test_dummy_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_dummy_policy.py b/test/test_dummy_policy.py index bc4a1b728..419f455c8 100644 --- a/test/test_dummy_policy.py +++ b/test/test_dummy_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_dummy_policy_request.py b/test/test_dummy_policy_request.py index 22d22151e..366adf160 100644 --- a/test/test_dummy_policy_request.py +++ b/test/test_dummy_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_dummy_stage.py b/test/test_dummy_stage.py index a46f1fd83..9c3438098 100644 --- a/test/test_dummy_stage.py +++ b/test/test_dummy_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> DummyStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -67,6 +67,21 @@ def make_instance(self, include_optional) -> DummyStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_dummy_stage_request.py b/test/test_dummy_stage_request.py index bbbc0c0d5..3cc56fc97 100644 --- a/test/test_dummy_stage_request.py +++ b/test/test_dummy_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> DummyStageRequest: if include_optional: return DummyStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], throw_error = True ) else: diff --git a/test/test_duo_device.py b/test/test_duo_device.py index fa73a8316..2662c1273 100644 --- a/test/test_duo_device.py +++ b/test/test_duo_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_duo_device_enrollment_status.py b/test/test_duo_device_enrollment_status.py index 699626645..cd4565fae 100644 --- a/test/test_duo_device_enrollment_status.py +++ b/test/test_duo_device_enrollment_status.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_duo_device_request.py b/test/test_duo_device_request.py index 1a8840ee8..477b4cb67 100644 --- a/test/test_duo_device_request.py +++ b/test/test_duo_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_duo_response_enum.py b/test/test_duo_response_enum.py index a1b8418c3..2d7b3adc8 100644 --- a/test/test_duo_response_enum.py +++ b/test/test_duo_response_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_email_challenge.py b/test/test_email_challenge.py index 9c7fb8dfa..e4e441aa7 100644 --- a/test/test_email_challenge.py +++ b/test/test_email_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> EmailChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-email', diff --git a/test/test_email_challenge_response_request.py b/test/test_email_challenge_response_request.py index edae07a87..e78756542 100644 --- a/test/test_email_challenge_response_request.py +++ b/test/test_email_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_email_device.py b/test/test_email_device.py index e8514f562..4ed5b76da 100644 --- a/test/test_email_device.py +++ b/test/test_email_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_email_device_request.py b/test/test_email_device_request.py index a960bf45b..9bc510f06 100644 --- a/test/test_email_device_request.py +++ b/test/test_email_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_email_stage.py b/test/test_email_stage.py index f24a34725..78a60d426 100644 --- a/test/test_email_stage.py +++ b/test/test_email_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> EmailStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -80,6 +80,21 @@ def make_instance(self, include_optional) -> EmailStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_email_stage_request.py b/test/test_email_stage_request.py index 452ac89fb..c9454e002 100644 --- a/test/test_email_stage_request.py +++ b/test/test_email_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> EmailStageRequest: if include_optional: return EmailStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], use_global_settings = True, host = '0', port = -2147483648, diff --git a/test/test_endpoint.py b/test/test_endpoint.py index 9913d8539..9b8427857 100644 --- a/test/test_endpoint.py +++ b/test/test_endpoint.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_endpoint_agent_challenge.py b/test/test_endpoint_agent_challenge.py new file mode 100644 index 000000000..91c9fa125 --- /dev/null +++ b/test/test_endpoint_agent_challenge.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.endpoint_agent_challenge import EndpointAgentChallenge + +class TestEndpointAgentChallenge(unittest.TestCase): + """EndpointAgentChallenge unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EndpointAgentChallenge: + """Test EndpointAgentChallenge + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `EndpointAgentChallenge` + """ + model = EndpointAgentChallenge() + if include_optional: + return EndpointAgentChallenge( + flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( + title = '', + background = '', + background_themed_urls = null, + cancel_url = '', + layout = 'stacked', ), + component = 'ak-stage-endpoint-agent', + response_errors = { + 'key' : [ + authentik_client.models.error_detail.ErrorDetail( + string = '', + code = '', ) + ] + }, + challenge = '', + challenge_idle_timeout = 56 + ) + else: + return EndpointAgentChallenge( + challenge = '', + challenge_idle_timeout = 56, + ) + """ + + def testEndpointAgentChallenge(self): + """Test EndpointAgentChallenge""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_endpoint_agent_challenge_response_request.py b/test/test_endpoint_agent_challenge_response_request.py new file mode 100644 index 000000000..9eac1ff5c --- /dev/null +++ b/test/test_endpoint_agent_challenge_response_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.endpoint_agent_challenge_response_request import EndpointAgentChallengeResponseRequest + +class TestEndpointAgentChallengeResponseRequest(unittest.TestCase): + """EndpointAgentChallengeResponseRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EndpointAgentChallengeResponseRequest: + """Test EndpointAgentChallengeResponseRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `EndpointAgentChallengeResponseRequest` + """ + model = EndpointAgentChallengeResponseRequest() + if include_optional: + return EndpointAgentChallengeResponseRequest( + component = 'ak-stage-endpoint-agent', + response = '0' + ) + else: + return EndpointAgentChallengeResponseRequest( + ) + """ + + def testEndpointAgentChallengeResponseRequest(self): + """Test EndpointAgentChallengeResponseRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_endpoint_auth_mode_enum.py b/test/test_endpoint_auth_mode_enum.py index a6e8b945e..d867b7ec7 100644 --- a/test/test_endpoint_auth_mode_enum.py +++ b/test/test_endpoint_auth_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_endpoint_device.py b/test/test_endpoint_device.py index cea62c5a1..2a664df32 100644 --- a/test/test_endpoint_device.py +++ b/test/test_endpoint_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,12 +36,113 @@ def make_instance(self, include_optional) -> EndpointDevice: model = EndpointDevice() if include_optional: return EndpointDevice( - pk = '', - name = '' + device_uuid = '', + pbm_uuid = '', + name = '', + access_group = '', + access_group_obj = authentik_client.models.device_access_group.DeviceAccessGroup( + pbm_uuid = '', + name = '', ), + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + facts = authentik_client.models.device_fact_snapshot.DeviceFactSnapshot( + data = authentik_client.models.device_facts.DeviceFacts( + os = null, + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = null, + hardware = null, + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + }, ), + connection = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + attributes = { + 'key' : null + } ) else: return EndpointDevice( + pbm_uuid = '', name = '', + facts = authentik_client.models.device_fact_snapshot.DeviceFactSnapshot( + data = authentik_client.models.device_facts.DeviceFacts( + os = null, + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = null, + hardware = null, + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + }, ), + connection = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) """ diff --git a/test/test_endpoint_device_details.py b/test/test_endpoint_device_details.py new file mode 100644 index 000000000..14e03a00f --- /dev/null +++ b/test/test_endpoint_device_details.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.endpoint_device_details import EndpointDeviceDetails + +class TestEndpointDeviceDetails(unittest.TestCase): + """EndpointDeviceDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EndpointDeviceDetails: + """Test EndpointDeviceDetails + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `EndpointDeviceDetails` + """ + model = EndpointDeviceDetails() + if include_optional: + return EndpointDeviceDetails( + device_uuid = '', + pbm_uuid = '', + name = '', + access_group = '', + access_group_obj = authentik_client.models.device_access_group.DeviceAccessGroup( + pbm_uuid = '', + name = '', ), + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + facts = authentik_client.models.device_fact_snapshot.DeviceFactSnapshot( + data = authentik_client.models.device_facts.DeviceFacts( + os = null, + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = null, + hardware = null, + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + }, ), + connection = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + attributes = { + 'key' : null + }, + connections_obj = [ + authentik_client.models.device_connection.DeviceConnection( + device = '', + connector = '', + connector_obj = null, + latest_snapshot = null, ) + ], + policies = [ + '' + ], + connections = [ + '' + ] + ) + else: + return EndpointDeviceDetails( + pbm_uuid = '', + name = '', + facts = authentik_client.models.device_fact_snapshot.DeviceFactSnapshot( + data = authentik_client.models.device_facts.DeviceFacts( + os = null, + disks = [ + authentik_client.models.disk.Disk( + name = '', + mountpoint = '', + label = '', + capacity_total_bytes = 56, + capacity_used_bytes = 56, + encryption_enabled = True, ) + ], + network = null, + hardware = null, + software = [ + authentik_client.models.software.Software( + name = '', + version = '', + source = '', + path = '', ) + ], + processes = [ + authentik_client.models.process.Process( + id = 56, + name = '', + user = '', ) + ], + users = [ + authentik_client.models.device_user.DeviceUser( + id = '', + username = '', + name = '', + home = '', ) + ], + groups = [ + authentik_client.models.device_group.DeviceGroup( + id = '', + name = '', ) + ], + vendor = { + 'key' : null + }, ), + connection = '', + created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + connections_obj = [ + authentik_client.models.device_connection.DeviceConnection( + device = '', + connector = '', + connector_obj = null, + latest_snapshot = null, ) + ], + policies = [ + '' + ], + connections = [ + '' + ], + ) + """ + + def testEndpointDeviceDetails(self): + """Test EndpointDeviceDetails""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_endpoint_device_request.py b/test/test_endpoint_device_request.py index 0f5889c84..6ded897d7 100644 --- a/test/test_endpoint_device_request.py +++ b/test/test_endpoint_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,8 +36,16 @@ def make_instance(self, include_optional) -> EndpointDeviceRequest: model = EndpointDeviceRequest() if include_optional: return EndpointDeviceRequest( - pk = '', - name = '0' + device_uuid = '', + name = '0', + access_group = '', + access_group_obj = authentik_client.models.device_access_group_request.DeviceAccessGroupRequest( + name = '0', ), + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + attributes = { + 'key' : null + } ) else: return EndpointDeviceRequest( diff --git a/test/test_endpoint_request.py b/test/test_endpoint_request.py index 86ef4ae25..128bcdfd4 100644 --- a/test/test_endpoint_request.py +++ b/test/test_endpoint_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_endpoint_stage.py b/test/test_endpoint_stage.py new file mode 100644 index 000000000..98b7f7cce --- /dev/null +++ b/test/test_endpoint_stage.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.endpoint_stage import EndpointStage + +class TestEndpointStage(unittest.TestCase): + """EndpointStage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EndpointStage: + """Test EndpointStage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `EndpointStage` + """ + model = EndpointStage() + if include_optional: + return EndpointStage( + pk = '', + name = '', + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], + connector = '', + connector_obj = authentik_client.models.connector.Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', ), + mode = 'optional' + ) + else: + return EndpointStage( + pk = '', + name = '', + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], + connector = '', + connector_obj = authentik_client.models.connector.Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', ), + ) + """ + + def testEndpointStage(self): + """Test EndpointStage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_endpoint_stage_request.py b/test/test_endpoint_stage_request.py new file mode 100644 index 000000000..18ecc2103 --- /dev/null +++ b/test/test_endpoint_stage_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.endpoint_stage_request import EndpointStageRequest + +class TestEndpointStageRequest(unittest.TestCase): + """EndpointStageRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EndpointStageRequest: + """Test EndpointStageRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `EndpointStageRequest` + """ + model = EndpointStageRequest() + if include_optional: + return EndpointStageRequest( + name = '0', + connector = '', + mode = 'optional' + ) + else: + return EndpointStageRequest( + name = '0', + connector = '', + ) + """ + + def testEndpointStageRequest(self): + """Test EndpointStageRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_endpoints_api.py b/test/test_endpoints_api.py new file mode 100644 index 000000000..891dba46d --- /dev/null +++ b/test/test_endpoints_api.py @@ -0,0 +1,326 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.api.endpoints_api import EndpointsApi + + +class TestEndpointsApi(unittest.TestCase): + """EndpointsApi unit test stubs""" + + def setUp(self) -> None: + self.api = EndpointsApi() + + def tearDown(self) -> None: + pass + + def test_endpoints_agents_connectors_agent_config_retrieve(self) -> None: + """Test case for endpoints_agents_connectors_agent_config_retrieve + + """ + pass + + def test_endpoints_agents_connectors_auth_fed_create(self) -> None: + """Test case for endpoints_agents_connectors_auth_fed_create + + """ + pass + + def test_endpoints_agents_connectors_auth_ia_create(self) -> None: + """Test case for endpoints_agents_connectors_auth_ia_create + + """ + pass + + def test_endpoints_agents_connectors_check_in_create(self) -> None: + """Test case for endpoints_agents_connectors_check_in_create + + """ + pass + + def test_endpoints_agents_connectors_create(self) -> None: + """Test case for endpoints_agents_connectors_create + + """ + pass + + def test_endpoints_agents_connectors_destroy(self) -> None: + """Test case for endpoints_agents_connectors_destroy + + """ + pass + + def test_endpoints_agents_connectors_enroll_create(self) -> None: + """Test case for endpoints_agents_connectors_enroll_create + + """ + pass + + def test_endpoints_agents_connectors_list(self) -> None: + """Test case for endpoints_agents_connectors_list + + """ + pass + + def test_endpoints_agents_connectors_mdm_config_create(self) -> None: + """Test case for endpoints_agents_connectors_mdm_config_create + + """ + pass + + def test_endpoints_agents_connectors_partial_update(self) -> None: + """Test case for endpoints_agents_connectors_partial_update + + """ + pass + + def test_endpoints_agents_connectors_retrieve(self) -> None: + """Test case for endpoints_agents_connectors_retrieve + + """ + pass + + def test_endpoints_agents_connectors_update(self) -> None: + """Test case for endpoints_agents_connectors_update + + """ + pass + + def test_endpoints_agents_connectors_used_by_list(self) -> None: + """Test case for endpoints_agents_connectors_used_by_list + + """ + pass + + def test_endpoints_agents_enrollment_tokens_create(self) -> None: + """Test case for endpoints_agents_enrollment_tokens_create + + """ + pass + + def test_endpoints_agents_enrollment_tokens_destroy(self) -> None: + """Test case for endpoints_agents_enrollment_tokens_destroy + + """ + pass + + def test_endpoints_agents_enrollment_tokens_list(self) -> None: + """Test case for endpoints_agents_enrollment_tokens_list + + """ + pass + + def test_endpoints_agents_enrollment_tokens_partial_update(self) -> None: + """Test case for endpoints_agents_enrollment_tokens_partial_update + + """ + pass + + def test_endpoints_agents_enrollment_tokens_retrieve(self) -> None: + """Test case for endpoints_agents_enrollment_tokens_retrieve + + """ + pass + + def test_endpoints_agents_enrollment_tokens_update(self) -> None: + """Test case for endpoints_agents_enrollment_tokens_update + + """ + pass + + def test_endpoints_agents_enrollment_tokens_used_by_list(self) -> None: + """Test case for endpoints_agents_enrollment_tokens_used_by_list + + """ + pass + + def test_endpoints_agents_enrollment_tokens_view_key_retrieve(self) -> None: + """Test case for endpoints_agents_enrollment_tokens_view_key_retrieve + + """ + pass + + def test_endpoints_agents_psso_register_device_create(self) -> None: + """Test case for endpoints_agents_psso_register_device_create + + """ + pass + + def test_endpoints_agents_psso_register_user_create(self) -> None: + """Test case for endpoints_agents_psso_register_user_create + + """ + pass + + def test_endpoints_connectors_destroy(self) -> None: + """Test case for endpoints_connectors_destroy + + """ + pass + + def test_endpoints_connectors_list(self) -> None: + """Test case for endpoints_connectors_list + + """ + pass + + def test_endpoints_connectors_retrieve(self) -> None: + """Test case for endpoints_connectors_retrieve + + """ + pass + + def test_endpoints_connectors_types_list(self) -> None: + """Test case for endpoints_connectors_types_list + + """ + pass + + def test_endpoints_connectors_used_by_list(self) -> None: + """Test case for endpoints_connectors_used_by_list + + """ + pass + + def test_endpoints_device_access_groups_create(self) -> None: + """Test case for endpoints_device_access_groups_create + + """ + pass + + def test_endpoints_device_access_groups_destroy(self) -> None: + """Test case for endpoints_device_access_groups_destroy + + """ + pass + + def test_endpoints_device_access_groups_list(self) -> None: + """Test case for endpoints_device_access_groups_list + + """ + pass + + def test_endpoints_device_access_groups_partial_update(self) -> None: + """Test case for endpoints_device_access_groups_partial_update + + """ + pass + + def test_endpoints_device_access_groups_retrieve(self) -> None: + """Test case for endpoints_device_access_groups_retrieve + + """ + pass + + def test_endpoints_device_access_groups_update(self) -> None: + """Test case for endpoints_device_access_groups_update + + """ + pass + + def test_endpoints_device_access_groups_used_by_list(self) -> None: + """Test case for endpoints_device_access_groups_used_by_list + + """ + pass + + def test_endpoints_device_bindings_create(self) -> None: + """Test case for endpoints_device_bindings_create + + """ + pass + + def test_endpoints_device_bindings_destroy(self) -> None: + """Test case for endpoints_device_bindings_destroy + + """ + pass + + def test_endpoints_device_bindings_list(self) -> None: + """Test case for endpoints_device_bindings_list + + """ + pass + + def test_endpoints_device_bindings_partial_update(self) -> None: + """Test case for endpoints_device_bindings_partial_update + + """ + pass + + def test_endpoints_device_bindings_retrieve(self) -> None: + """Test case for endpoints_device_bindings_retrieve + + """ + pass + + def test_endpoints_device_bindings_update(self) -> None: + """Test case for endpoints_device_bindings_update + + """ + pass + + def test_endpoints_device_bindings_used_by_list(self) -> None: + """Test case for endpoints_device_bindings_used_by_list + + """ + pass + + def test_endpoints_devices_destroy(self) -> None: + """Test case for endpoints_devices_destroy + + """ + pass + + def test_endpoints_devices_list(self) -> None: + """Test case for endpoints_devices_list + + """ + pass + + def test_endpoints_devices_partial_update(self) -> None: + """Test case for endpoints_devices_partial_update + + """ + pass + + def test_endpoints_devices_retrieve(self) -> None: + """Test case for endpoints_devices_retrieve + + """ + pass + + def test_endpoints_devices_summary_retrieve(self) -> None: + """Test case for endpoints_devices_summary_retrieve + + """ + pass + + def test_endpoints_devices_update(self) -> None: + """Test case for endpoints_devices_update + + """ + pass + + def test_endpoints_devices_used_by_list(self) -> None: + """Test case for endpoints_devices_used_by_list + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_enroll_request.py b/test/test_enroll_request.py new file mode 100644 index 000000000..cc405a533 --- /dev/null +++ b/test/test_enroll_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.enroll_request import EnrollRequest + +class TestEnrollRequest(unittest.TestCase): + """EnrollRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EnrollRequest: + """Test EnrollRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `EnrollRequest` + """ + model = EnrollRequest() + if include_optional: + return EnrollRequest( + device_serial = '0', + device_name = '0' + ) + else: + return EnrollRequest( + device_serial = '0', + device_name = '0', + ) + """ + + def testEnrollRequest(self): + """Test EnrollRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_enrollment_token.py b/test/test_enrollment_token.py new file mode 100644 index 000000000..c2229630a --- /dev/null +++ b/test/test_enrollment_token.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.enrollment_token import EnrollmentToken + +class TestEnrollmentToken(unittest.TestCase): + """EnrollmentToken unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EnrollmentToken: + """Test EnrollmentToken + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `EnrollmentToken` + """ + model = EnrollmentToken() + if include_optional: + return EnrollmentToken( + token_uuid = '', + device_group = '', + device_group_obj = authentik_client.models.device_access_group.DeviceAccessGroup( + pbm_uuid = '', + name = '', ), + connector = '', + name = '', + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return EnrollmentToken( + token_uuid = '', + device_group_obj = authentik_client.models.device_access_group.DeviceAccessGroup( + pbm_uuid = '', + name = '', ), + connector = '', + name = '', + ) + """ + + def testEnrollmentToken(self): + """Test EnrollmentToken""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_enrollment_token_request.py b/test/test_enrollment_token_request.py new file mode 100644 index 000000000..aebd448e5 --- /dev/null +++ b/test/test_enrollment_token_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.enrollment_token_request import EnrollmentTokenRequest + +class TestEnrollmentTokenRequest(unittest.TestCase): + """EnrollmentTokenRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> EnrollmentTokenRequest: + """Test EnrollmentTokenRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `EnrollmentTokenRequest` + """ + model = EnrollmentTokenRequest() + if include_optional: + return EnrollmentTokenRequest( + device_group = '', + connector = '', + name = '0', + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return EnrollmentTokenRequest( + connector = '', + name = '0', + ) + """ + + def testEnrollmentTokenRequest(self): + """Test EnrollmentTokenRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_enterprise_api.py b/test/test_enterprise_api.py index e4d27a154..b10160519 100644 --- a/test/test_enterprise_api.py +++ b/test/test_enterprise_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_error_detail.py b/test/test_error_detail.py index 871eba38e..d9346ca3a 100644 --- a/test/test_error_detail.py +++ b/test/test_error_detail.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_error_reporting_config.py b/test/test_error_reporting_config.py index 2c6d24e1c..ff9ca3b60 100644 --- a/test/test_error_reporting_config.py +++ b/test/test_error_reporting_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_event.py b/test/test_event.py index c779f746e..0111db64e 100644 --- a/test/test_event.py +++ b/test/test_event.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_event_actions.py b/test/test_event_actions.py index 90a7a44ae..373d15f04 100644 --- a/test/test_event_actions.py +++ b/test/test_event_actions.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_event_matcher_policy.py b/test/test_event_matcher_policy.py index f10aafde0..079f231f6 100644 --- a/test/test_event_matcher_policy.py +++ b/test/test_event_matcher_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_event_matcher_policy_request.py b/test/test_event_matcher_policy_request.py index 3c151aa8c..2f5508e3c 100644 --- a/test/test_event_matcher_policy_request.py +++ b/test/test_event_matcher_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_event_request.py b/test/test_event_request.py index 38d9056f3..200b73fe2 100644 --- a/test/test_event_request.py +++ b/test/test_event_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_event_top_per_user.py b/test/test_event_top_per_user.py index ef9620ade..08ff1be7b 100644 --- a/test/test_event_top_per_user.py +++ b/test/test_event_top_per_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_event_volume.py b/test/test_event_volume.py index 9266a1963..764dfa924 100644 --- a/test/test_event_volume.py +++ b/test/test_event_volume.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_events_api.py b/test/test_events_api.py index e5838bd01..d668dceac 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -45,6 +45,12 @@ def test_events_events_destroy(self) -> None: """ pass + def test_events_events_export_create(self) -> None: + """Test case for events_events_export_create + + """ + pass + def test_events_events_list(self) -> None: """Test case for events_events_list diff --git a/test/test_events_requested_enum.py b/test/test_events_requested_enum.py index 43a7e2488..a89a2cf13 100644 --- a/test/test_events_requested_enum.py +++ b/test/test_events_requested_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_expiring_base_grant_model.py b/test/test_expiring_base_grant_model.py index 4477a99aa..cd3e728a1 100644 --- a/test/test_expiring_base_grant_model.py +++ b/test/test_expiring_base_grant_model.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -96,12 +96,18 @@ def make_instance(self, include_optional) -> ExpiringBaseGrantModel: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -181,12 +187,18 @@ def make_instance(self, include_optional) -> ExpiringBaseGrantModel: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { diff --git a/test/test_expression_policy.py b/test/test_expression_policy.py index b7cfce15c..e04a203ee 100644 --- a/test/test_expression_policy.py +++ b/test/test_expression_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_expression_policy_request.py b/test/test_expression_policy_request.py index ba8ebc17f..5faa4fe3f 100644 --- a/test/test_expression_policy_request.py +++ b/test/test_expression_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_extra_role_object_permission.py b/test/test_extra_role_object_permission.py index 9bc7e07ac..f04137406 100644 --- a/test/test_extra_role_object_permission.py +++ b/test/test_extra_role_object_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_extra_role_object_permission_request.py b/test/test_extra_role_object_permission_request.py deleted file mode 100644 index 84caf3146..000000000 --- a/test/test_extra_role_object_permission_request.py +++ /dev/null @@ -1,53 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.extra_role_object_permission_request import ExtraRoleObjectPermissionRequest - -class TestExtraRoleObjectPermissionRequest(unittest.TestCase): - """ExtraRoleObjectPermissionRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtraRoleObjectPermissionRequest: - """Test ExtraRoleObjectPermissionRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExtraRoleObjectPermissionRequest` - """ - model = ExtraRoleObjectPermissionRequest() - if include_optional: - return ExtraRoleObjectPermissionRequest( - object_pk = '0' - ) - else: - return ExtraRoleObjectPermissionRequest( - object_pk = '0', - ) - """ - - def testExtraRoleObjectPermissionRequest(self): - """Test ExtraRoleObjectPermissionRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_extra_user_object_permission.py b/test/test_extra_user_object_permission.py deleted file mode 100644 index 8b9479d80..000000000 --- a/test/test_extra_user_object_permission.py +++ /dev/null @@ -1,69 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.extra_user_object_permission import ExtraUserObjectPermission - -class TestExtraUserObjectPermission(unittest.TestCase): - """ExtraUserObjectPermission unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ExtraUserObjectPermission: - """Test ExtraUserObjectPermission - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ExtraUserObjectPermission` - """ - model = ExtraUserObjectPermission() - if include_optional: - return ExtraUserObjectPermission( - id = 56, - codename = '', - model = '', - app_label = '', - object_pk = '', - name = '', - app_label_verbose = '', - model_verbose = '', - object_description = '' - ) - else: - return ExtraUserObjectPermission( - id = 56, - codename = '', - model = '', - app_label = '', - object_pk = '', - name = '', - app_label_verbose = '', - model_verbose = '', - object_description = '', - ) - """ - - def testExtraUserObjectPermission(self): - """Test ExtraUserObjectPermission""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_file_list.py b/test/test_file_list.py new file mode 100644 index 000000000..297410d8d --- /dev/null +++ b/test/test_file_list.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.file_list import FileList + +class TestFileList(unittest.TestCase): + """FileList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FileList: + """Test FileList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `FileList` + """ + model = FileList() + if include_optional: + return FileList( + name = '', + mime_type = '', + url = '', + themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ) + ) + else: + return FileList( + name = '', + mime_type = '', + url = '', + ) + """ + + def testFileList(self): + """Test FileList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_flow.py b/test/test_flow.py index c6267f2bc..eac4c3884 100644 --- a/test/test_flow.py +++ b/test/test_flow.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -43,6 +43,10 @@ def make_instance(self, include_optional) -> Flow: title = '', designation = 'authentication', background = '', + background_url = '', + background_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), stages = [ '' ], @@ -65,7 +69,10 @@ def make_instance(self, include_optional) -> Flow: slug = 'z', title = '', designation = 'authentication', - background = '', + background_url = '', + background_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), stages = [ '' ], diff --git a/test/test_flow_challenge_response_request.py b/test/test_flow_challenge_response_request.py index a70d252a3..c0c209f3c 100644 --- a/test/test_flow_challenge_response_request.py +++ b/test/test_flow_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -52,13 +52,14 @@ def make_instance(self, include_optional) -> FlowChallengeResponseRequest: 'key' : None }, duo = 56, - response = { - 'key' : None - }, + response = '0', token = '0', - uid_field = '0', + uid_field = '', password = '0', captcha_token = '', + passkey = { + 'key' : None + }, to = '0', id = 56, first_name = '0', @@ -72,11 +73,8 @@ def make_instance(self, include_optional) -> FlowChallengeResponseRequest: else: return FlowChallengeResponseRequest( code = '0', - response = { - 'key' : None - }, + response = '0', token = '0', - uid_field = '0', password = '0', to = '0', id = 56, diff --git a/test/test_flow_designation_enum.py b/test/test_flow_designation_enum.py index 2a5040775..5763c2ba9 100644 --- a/test/test_flow_designation_enum.py +++ b/test/test_flow_designation_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_flow_diagram.py b/test/test_flow_diagram.py index 0c969236c..ee4dc1421 100644 --- a/test/test_flow_diagram.py +++ b/test/test_flow_diagram.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_flow_error_challenge.py b/test/test_flow_error_challenge.py index 30ee01bcc..45ac497e4 100644 --- a/test/test_flow_error_challenge.py +++ b/test/test_flow_error_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> FlowErrorChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-flow-error', diff --git a/test/test_flow_import_result.py b/test/test_flow_import_result.py index df81b21c2..c44b4ad14 100644 --- a/test/test_flow_import_result.py +++ b/test/test_flow_import_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_flow_inspection.py b/test/test_flow_inspection.py index 3861e4726..3c20a92ae 100644 --- a/test/test_flow_inspection.py +++ b/test/test_flow_inspection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_flow_inspector_plan.py b/test/test_flow_inspector_plan.py index 4d94be3c3..1c89a0f6c 100644 --- a/test/test_flow_inspector_plan.py +++ b/test/test_flow_inspector_plan.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_flow_layout_enum.py b/test/test_flow_layout_enum.py index 2a6001ac9..2d6205672 100644 --- a/test/test_flow_layout_enum.py +++ b/test/test_flow_layout_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_flow_request.py b/test/test_flow_request.py index bebef2f46..bd5b45a02 100644 --- a/test/test_flow_request.py +++ b/test/test_flow_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> FlowRequest: slug = 'z0', title = '0', designation = 'authentication', + background = '', policy_engine_mode = 'all', compatibility_mode = True, layout = 'stacked', diff --git a/test/test_flow_set.py b/test/test_flow_set.py index f896214de..5ee2cfc81 100644 --- a/test/test_flow_set.py +++ b/test/test_flow_set.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,7 +42,7 @@ def make_instance(self, include_optional) -> FlowSet: slug = 'z', title = '', designation = 'authentication', - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -57,7 +57,7 @@ def make_instance(self, include_optional) -> FlowSet: slug = 'z', title = '', designation = 'authentication', - background = '', + background_url = '', export_url = '', ) """ diff --git a/test/test_flow_set_request.py b/test/test_flow_set_request.py deleted file mode 100644 index 601631c00..000000000 --- a/test/test_flow_set_request.py +++ /dev/null @@ -1,63 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.flow_set_request import FlowSetRequest - -class TestFlowSetRequest(unittest.TestCase): - """FlowSetRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FlowSetRequest: - """Test FlowSetRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FlowSetRequest` - """ - model = FlowSetRequest() - if include_optional: - return FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = 'authentication', - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = 'message_continue' - ) - else: - return FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = 'authentication', - ) - """ - - def testFlowSetRequest(self): - """Test FlowSetRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_flow_stage_binding.py b/test/test_flow_stage_binding.py index d8877eb82..85be9a5e4 100644 --- a/test/test_flow_stage_binding.py +++ b/test/test_flow_stage_binding.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> FlowStageBinding: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -89,7 +89,7 @@ def make_instance(self, include_optional) -> FlowStageBinding: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_flow_stage_binding_request.py b/test/test_flow_stage_binding_request.py index 71093e7f1..d22f728a9 100644 --- a/test/test_flow_stage_binding_request.py +++ b/test/test_flow_stage_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_flows_api.py b/test/test_flows_api.py index f4bdf3206..7b42f52c7 100644 --- a/test/test_flows_api.py +++ b/test/test_flows_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -153,18 +153,6 @@ def test_flows_instances_retrieve(self) -> None: """ pass - def test_flows_instances_set_background_create(self) -> None: - """Test case for flows_instances_set_background_create - - """ - pass - - def test_flows_instances_set_background_url_create(self) -> None: - """Test case for flows_instances_set_background_url_create - - """ - pass - def test_flows_instances_update(self) -> None: """Test case for flows_instances_update diff --git a/test/test_footer_link.py b/test/test_footer_link.py index 830b3ef7a..1ee5979a0 100644 --- a/test/test_footer_link.py +++ b/test/test_footer_link.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_frame_challenge.py b/test/test_frame_challenge.py index fe3931337..8341c46d5 100644 --- a/test/test_frame_challenge.py +++ b/test/test_frame_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> FrameChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'xak-flow-frame', diff --git a/test/test_frame_challenge_response_request.py b/test/test_frame_challenge_response_request.py index 69cfa0433..09d05262c 100644 --- a/test/test_frame_challenge_response_request.py +++ b/test/test_frame_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_generic_error.py b/test/test_generic_error.py index b91fde155..04c2c669a 100644 --- a/test/test_generic_error.py +++ b/test/test_generic_error.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_geo_ip_policy.py b/test/test_geo_ip_policy.py index 2cfb0727c..d161151a9 100644 --- a/test/test_geo_ip_policy.py +++ b/test/test_geo_ip_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_geo_ip_policy_request.py b/test/test_geo_ip_policy_request.py index 27b3d608b..49f00387f 100644 --- a/test/test_geo_ip_policy_request.py +++ b/test/test_geo_ip_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_geoip_binding_enum.py b/test/test_geoip_binding_enum.py index 3e6e2d576..6f343409b 100644 --- a/test/test_geoip_binding_enum.py +++ b/test/test_geoip_binding_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_global_task_status.py b/test/test_global_task_status.py index 5eb28a7ce..ed47893bf 100644 --- a/test/test_global_task_status.py +++ b/test/test_global_task_status.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_google_endpoint_device.py b/test/test_google_endpoint_device.py new file mode 100644 index 000000000..77831ce32 --- /dev/null +++ b/test/test_google_endpoint_device.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.google_endpoint_device import GoogleEndpointDevice + +class TestGoogleEndpointDevice(unittest.TestCase): + """GoogleEndpointDevice unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GoogleEndpointDevice: + """Test GoogleEndpointDevice + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GoogleEndpointDevice` + """ + model = GoogleEndpointDevice() + if include_optional: + return GoogleEndpointDevice( + pk = '', + name = '' + ) + else: + return GoogleEndpointDevice( + name = '', + ) + """ + + def testGoogleEndpointDevice(self): + """Test GoogleEndpointDevice""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_google_endpoint_device_request.py b/test/test_google_endpoint_device_request.py new file mode 100644 index 000000000..f1e28952a --- /dev/null +++ b/test/test_google_endpoint_device_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.google_endpoint_device_request import GoogleEndpointDeviceRequest + +class TestGoogleEndpointDeviceRequest(unittest.TestCase): + """GoogleEndpointDeviceRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GoogleEndpointDeviceRequest: + """Test GoogleEndpointDeviceRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GoogleEndpointDeviceRequest` + """ + model = GoogleEndpointDeviceRequest() + if include_optional: + return GoogleEndpointDeviceRequest( + pk = '', + name = '0' + ) + else: + return GoogleEndpointDeviceRequest( + name = '0', + ) + """ + + def testGoogleEndpointDeviceRequest(self): + """Test GoogleEndpointDeviceRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_google_workspace_provider.py b/test/test_google_workspace_provider.py index c85862f7d..be75046f8 100644 --- a/test/test_google_workspace_provider.py +++ b/test/test_google_workspace_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,6 +60,8 @@ def make_instance(self, include_optional) -> GoogleWorkspaceProvider: user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', default_group_email_domain = '', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True ) else: diff --git a/test/test_google_workspace_provider_group.py b/test/test_google_workspace_provider_group.py index d6251686b..f5290fd99 100644 --- a/test/test_google_workspace_provider_group.py +++ b/test/test_google_workspace_provider_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,8 +44,6 @@ def make_instance(self, include_optional) -> GoogleWorkspaceProviderGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), @@ -64,8 +62,6 @@ def make_instance(self, include_optional) -> GoogleWorkspaceProviderGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), diff --git a/test/test_google_workspace_provider_group_request.py b/test/test_google_workspace_provider_group_request.py index 9d633f16b..07f7d2847 100644 --- a/test/test_google_workspace_provider_group_request.py +++ b/test/test_google_workspace_provider_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_google_workspace_provider_mapping.py b/test/test_google_workspace_provider_mapping.py index 9eff9330d..bbf7ee35b 100644 --- a/test/test_google_workspace_provider_mapping.py +++ b/test/test_google_workspace_provider_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_google_workspace_provider_mapping_request.py b/test/test_google_workspace_provider_mapping_request.py index 1a202be09..135ea2d2c 100644 --- a/test/test_google_workspace_provider_mapping_request.py +++ b/test/test_google_workspace_provider_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_google_workspace_provider_request.py b/test/test_google_workspace_provider_request.py index e4fc94f36..521f0d101 100644 --- a/test/test_google_workspace_provider_request.py +++ b/test/test_google_workspace_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -53,6 +53,8 @@ def make_instance(self, include_optional) -> GoogleWorkspaceProviderRequest: user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', default_group_email_domain = '0', + sync_page_size = 1, + sync_page_timeout = '0', dry_run = True ) else: diff --git a/test/test_google_workspace_provider_user.py b/test/test_google_workspace_provider_user.py index bcfac358e..6447867f2 100644 --- a/test/test_google_workspace_provider_user.py +++ b/test/test_google_workspace_provider_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_google_workspace_provider_user_request.py b/test/test_google_workspace_provider_user_request.py index 33608cd8c..29200a923 100644 --- a/test/test_google_workspace_provider_user_request.py +++ b/test/test_google_workspace_provider_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group.py b/test/test_group.py index 3082a19b6..c34c63c86 100644 --- a/test/test_group.py +++ b/test/test_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,8 +40,19 @@ def make_instance(self, include_optional) -> Group: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', + parents = [ + '' + ], + parents_obj = [ + authentik_client.models.related_group.RelatedGroup( + pk = '', + name = '', + is_superuser = True, + attributes = { + 'key' : null + }, + group_uuid = '', ) + ], users = [ 56 ], @@ -69,11 +80,16 @@ def make_instance(self, include_optional) -> Group: pk = '', name = '', ) ], + inherited_roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], children = [ '' ], children_obj = [ - authentik_client.models.group_child.GroupChild( + authentik_client.models.related_group.RelatedGroup( pk = '', name = '', is_superuser = True, @@ -88,7 +104,16 @@ def make_instance(self, include_optional) -> Group: pk = '', num_pk = 56, name = '', - parent_name = '', + parents_obj = [ + authentik_client.models.related_group.RelatedGroup( + pk = '', + name = '', + is_superuser = True, + attributes = { + 'key' : null + }, + group_uuid = '', ) + ], users_obj = [ authentik_client.models.partial_user.PartialUser( pk = 56, @@ -107,8 +132,16 @@ def make_instance(self, include_optional) -> Group: pk = '', name = '', ) ], + inherited_roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], + children = [ + '' + ], children_obj = [ - authentik_client.models.group_child.GroupChild( + authentik_client.models.related_group.RelatedGroup( pk = '', name = '', is_superuser = True, diff --git a/test/test_group_kerberos_source_connection.py b/test/test_group_kerberos_source_connection.py index ba9b174de..9c5b08270 100644 --- a/test/test_group_kerberos_source_connection.py +++ b/test/test_group_kerberos_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> GroupKerberosSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> GroupKerberosSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> GroupKerberosSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> GroupKerberosSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_group_kerberos_source_connection_request.py b/test/test_group_kerberos_source_connection_request.py index 8e73ed5e4..374648655 100644 --- a/test/test_group_kerberos_source_connection_request.py +++ b/test/test_group_kerberos_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group_ldap_source_connection.py b/test/test_group_ldap_source_connection.py index 18236f8d8..2ae72e866 100644 --- a/test/test_group_ldap_source_connection.py +++ b/test/test_group_ldap_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> GroupLDAPSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> GroupLDAPSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> GroupLDAPSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> GroupLDAPSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_group_ldap_source_connection_request.py b/test/test_group_ldap_source_connection_request.py index bc497f720..399811811 100644 --- a/test/test_group_ldap_source_connection_request.py +++ b/test/test_group_ldap_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group_matching_mode_enum.py b/test/test_group_matching_mode_enum.py index 3b2197ba2..58d6cf59c 100644 --- a/test/test_group_matching_mode_enum.py +++ b/test/test_group_matching_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group_o_auth_source_connection.py b/test/test_group_o_auth_source_connection.py index 7ccc6275b..3f8f2f5be 100644 --- a/test/test_group_o_auth_source_connection.py +++ b/test/test_group_o_auth_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> GroupOAuthSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> GroupOAuthSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> GroupOAuthSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> GroupOAuthSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_group_o_auth_source_connection_request.py b/test/test_group_o_auth_source_connection_request.py index dee1fe3d3..7e0e04b8c 100644 --- a/test/test_group_o_auth_source_connection_request.py +++ b/test/test_group_o_auth_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group_plex_source_connection.py b/test/test_group_plex_source_connection.py index 0b23d97d7..dc8f3eda3 100644 --- a/test/test_group_plex_source_connection.py +++ b/test/test_group_plex_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> GroupPlexSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> GroupPlexSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> GroupPlexSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> GroupPlexSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_group_plex_source_connection_request.py b/test/test_group_plex_source_connection_request.py index 7f6e5b4b6..d47ca8c56 100644 --- a/test/test_group_plex_source_connection_request.py +++ b/test/test_group_plex_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group_request.py b/test/test_group_request.py index 46d66c97c..0b40e52c4 100644 --- a/test/test_group_request.py +++ b/test/test_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,7 +38,9 @@ def make_instance(self, include_optional) -> GroupRequest: return GroupRequest( name = '0', is_superuser = True, - parent = '', + parents = [ + '' + ], users = [ 56 ], @@ -46,9 +48,6 @@ def make_instance(self, include_optional) -> GroupRequest: 'key' : null }, roles = [ - '' - ], - children = [ '' ] ) diff --git a/test/test_group_saml_source_connection.py b/test/test_group_saml_source_connection.py index b4faf64a6..5257784f4 100644 --- a/test/test_group_saml_source_connection.py +++ b/test/test_group_saml_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> GroupSAMLSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> GroupSAMLSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> GroupSAMLSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> GroupSAMLSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_group_saml_source_connection_request.py b/test/test_group_saml_source_connection_request.py index ede118107..ae4292ef5 100644 --- a/test/test_group_saml_source_connection_request.py +++ b/test/test_group_saml_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group_source_connection.py b/test/test_group_source_connection.py index 6dd173fcf..26702243f 100644 --- a/test/test_group_source_connection.py +++ b/test/test_group_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> GroupSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> GroupSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> GroupSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> GroupSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_group_source_connection_request.py b/test/test_group_source_connection_request.py index a87073744..6567f1550 100644 --- a/test/test_group_source_connection_request.py +++ b/test/test_group_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group_telegram_source_connection.py b/test/test_group_telegram_source_connection.py index 19b76eb5d..227e9ac71 100644 --- a/test/test_group_telegram_source_connection.py +++ b/test/test_group_telegram_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> GroupTelegramSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> GroupTelegramSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> GroupTelegramSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> GroupTelegramSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_group_telegram_source_connection_request.py b/test/test_group_telegram_source_connection_request.py index cc69dfd69..78cbd22ee 100644 --- a/test/test_group_telegram_source_connection_request.py +++ b/test/test_group_telegram_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_hardware.py b/test/test_hardware.py new file mode 100644 index 000000000..2664ed250 --- /dev/null +++ b/test/test_hardware.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.hardware import Hardware + +class TestHardware(unittest.TestCase): + """Hardware unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Hardware: + """Test Hardware + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Hardware` + """ + model = Hardware() + if include_optional: + return Hardware( + model = '', + manufacturer = '', + serial = '', + cpu_name = '', + cpu_count = 56, + memory_bytes = 56 + ) + else: + return Hardware( + serial = '', + ) + """ + + def testHardware(self): + """Test Hardware""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_hardware_request.py b/test/test_hardware_request.py new file mode 100644 index 000000000..f1b321cbb --- /dev/null +++ b/test/test_hardware_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.hardware_request import HardwareRequest + +class TestHardwareRequest(unittest.TestCase): + """HardwareRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HardwareRequest: + """Test HardwareRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `HardwareRequest` + """ + model = HardwareRequest() + if include_optional: + return HardwareRequest( + model = '0', + manufacturer = '0', + serial = '0', + cpu_name = '0', + cpu_count = 56, + memory_bytes = 56 + ) + else: + return HardwareRequest( + serial = '0', + ) + """ + + def testHardwareRequest(self): + """Test HardwareRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_identification_challenge.py b/test/test_identification_challenge.py index 321931b47..47f682a0a 100644 --- a/test/test_identification_challenge.py +++ b/test/test_identification_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> IdentificationChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-identification', @@ -60,6 +61,7 @@ def make_instance(self, include_optional) -> IdentificationChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-captcha', @@ -83,10 +85,14 @@ def make_instance(self, include_optional) -> IdentificationChallenge: authentik_client.models.login_source.LoginSource( name = '', icon_url = '', + promoted = True, challenge = null, ) ], show_source_labels = True, - enable_remember_me = True + enable_remember_me = True, + passkey_challenge = { + 'key' : null + } ) else: return IdentificationChallenge( diff --git a/test/test_identification_challenge_response_request.py b/test/test_identification_challenge_response_request.py index 1795a29a1..65374ac6f 100644 --- a/test/test_identification_challenge_response_request.py +++ b/test/test_identification_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,13 +37,15 @@ def make_instance(self, include_optional) -> IdentificationChallengeResponseRequ if include_optional: return IdentificationChallengeResponseRequest( component = 'ak-stage-identification', - uid_field = '0', + uid_field = '', password = '', - captcha_token = '' + captcha_token = '', + passkey = { + 'key' : null + } ) else: return IdentificationChallengeResponseRequest( - uid_field = '0', ) """ diff --git a/test/test_identification_stage.py b/test/test_identification_stage.py index 6b14f1cf2..9f5f4bf4a 100644 --- a/test/test_identification_stage.py +++ b/test/test_identification_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> IdentificationStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -72,7 +72,8 @@ def make_instance(self, include_optional) -> IdentificationStage: ], show_source_labels = True, pretend_user_exists = True, - enable_remember_me = True + enable_remember_me = True, + webauthn_stage = '' ) else: return IdentificationStage( @@ -82,6 +83,21 @@ def make_instance(self, include_optional) -> IdentificationStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_identification_stage_request.py b/test/test_identification_stage_request.py index 5fb220018..4e2414260 100644 --- a/test/test_identification_stage_request.py +++ b/test/test_identification_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> IdentificationStageRequest: if include_optional: return IdentificationStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], user_fields = [ 'email' ], @@ -63,7 +52,8 @@ def make_instance(self, include_optional) -> IdentificationStageRequest: ], show_source_labels = True, pretend_user_exists = True, - enable_remember_me = True + enable_remember_me = True, + webauthn_stage = '' ) else: return IdentificationStageRequest( diff --git a/test/test_iframe_logout_challenge.py b/test/test_iframe_logout_challenge.py index e652a334d..dddfe3542 100644 --- a/test/test_iframe_logout_challenge.py +++ b/test/test_iframe_logout_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> IframeLogoutChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-provider-iframe-logout', diff --git a/test/test_iframe_logout_challenge_response_request.py b/test/test_iframe_logout_challenge_response_request.py index f878b4307..613366fc8 100644 --- a/test/test_iframe_logout_challenge_response_request.py +++ b/test/test_iframe_logout_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_impersonation_request.py b/test/test_impersonation_request.py index c47cdd862..ea04cc355 100644 --- a/test/test_impersonation_request.py +++ b/test/test_impersonation_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_initial_permissions.py b/test/test_initial_permissions.py index 40a465595..2caaf9bb8 100644 --- a/test/test_initial_permissions.py +++ b/test/test_initial_permissions.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,7 +38,6 @@ def make_instance(self, include_optional) -> InitialPermissions: return InitialPermissions( pk = 56, name = '', - mode = 'user', role = '', permissions = [ 56 @@ -58,7 +57,6 @@ def make_instance(self, include_optional) -> InitialPermissions: return InitialPermissions( pk = 56, name = '', - mode = 'user', role = '', permissions_obj = [ authentik_client.models.permission.Permission( diff --git a/test/test_initial_permissions_mode_enum.py b/test/test_initial_permissions_mode_enum.py deleted file mode 100644 index b1f47b26b..000000000 --- a/test/test_initial_permissions_mode_enum.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.initial_permissions_mode_enum import InitialPermissionsModeEnum - -class TestInitialPermissionsModeEnum(unittest.TestCase): - """InitialPermissionsModeEnum unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testInitialPermissionsModeEnum(self): - """Test InitialPermissionsModeEnum""" - # inst = InitialPermissionsModeEnum() - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_initial_permissions_request.py b/test/test_initial_permissions_request.py index 6c8cbc522..2aa5866da 100644 --- a/test/test_initial_permissions_request.py +++ b/test/test_initial_permissions_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,6 @@ def make_instance(self, include_optional) -> InitialPermissionsRequest: if include_optional: return InitialPermissionsRequest( name = '0', - mode = 'user', role = '', permissions = [ 56 @@ -46,7 +45,6 @@ def make_instance(self, include_optional) -> InitialPermissionsRequest: else: return InitialPermissionsRequest( name = '0', - mode = 'user', role = '', ) """ diff --git a/test/test_install_id.py b/test/test_install_id.py index cf9d9048c..688c7529f 100644 --- a/test/test_install_id.py +++ b/test/test_install_id.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_intent_enum.py b/test/test_intent_enum.py index 7ef05f542..65b8d3798 100644 --- a/test/test_intent_enum.py +++ b/test/test_intent_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_invalid_response_action_enum.py b/test/test_invalid_response_action_enum.py index 06283e34b..56fcc9205 100644 --- a/test/test_invalid_response_action_enum.py +++ b/test/test_invalid_response_action_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_invitation.py b/test/test_invitation.py index b89c40926..7e8d60d45 100644 --- a/test/test_invitation.py +++ b/test/test_invitation.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -63,6 +63,8 @@ def make_instance(self, include_optional) -> Invitation: title = '', designation = null, background = '', + background_url = '', + background_themed_urls = null, stages = [ '' ], @@ -100,6 +102,8 @@ def make_instance(self, include_optional) -> Invitation: title = '', designation = null, background = '', + background_url = '', + background_themed_urls = null, stages = [ '' ], diff --git a/test/test_invitation_request.py b/test/test_invitation_request.py index b7c562d4d..e04000221 100644 --- a/test/test_invitation_request.py +++ b/test/test_invitation_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_invitation_stage.py b/test/test_invitation_stage.py index 56994bd50..d95f4fe4b 100644 --- a/test/test_invitation_stage.py +++ b/test/test_invitation_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> InvitationStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -67,6 +67,21 @@ def make_instance(self, include_optional) -> InvitationStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_invitation_stage_request.py b/test/test_invitation_stage_request.py index 677655ab6..594317cfc 100644 --- a/test/test_invitation_stage_request.py +++ b/test/test_invitation_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> InvitationStageRequest: if include_optional: return InvitationStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], continue_flow_without_invitation = True ) else: diff --git a/test/test_issuer_mode_enum.py b/test/test_issuer_mode_enum.py index 88e5b77b4..7b4de5a32 100644 --- a/test/test_issuer_mode_enum.py +++ b/test/test_issuer_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_kadmin_type_enum.py b/test/test_kadmin_type_enum.py index 38803eb19..bfb6a09e3 100644 --- a/test/test_kadmin_type_enum.py +++ b/test/test_kadmin_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_kerberos_source.py b/test/test_kerberos_source.py index dfd4a5ebf..cbe9eaa7a 100644 --- a/test/test_kerberos_source.py +++ b/test/test_kerberos_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> KerberosSource: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -57,6 +58,10 @@ def make_instance(self, include_optional) -> KerberosSource: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), group_matching_mode = 'identifier', realm = '', krb5_conf = '', @@ -70,7 +75,8 @@ def make_instance(self, include_optional) -> KerberosSource: }, spnego_server_name = '', spnego_ccache = '', - password_login_update_internal_password = True + password_login_update_internal_password = True, + sync_outgoing_trigger_mode = 'none' ) else: return KerberosSource( @@ -82,7 +88,10 @@ def make_instance(self, include_optional) -> KerberosSource: verbose_name_plural = '', meta_model_name = '', managed = '', - icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), realm = '', connectivity = { 'key' : '' diff --git a/test/test_kerberos_source_property_mapping.py b/test/test_kerberos_source_property_mapping.py index dac39502e..aede32a8c 100644 --- a/test/test_kerberos_source_property_mapping.py +++ b/test/test_kerberos_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_kerberos_source_property_mapping_request.py b/test/test_kerberos_source_property_mapping_request.py index 2c124b2d1..a81fb195f 100644 --- a/test/test_kerberos_source_property_mapping_request.py +++ b/test/test_kerberos_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_kerberos_source_request.py b/test/test_kerberos_source_request.py index bacf119f2..9d4a1ff68 100644 --- a/test/test_kerberos_source_request.py +++ b/test/test_kerberos_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> KerberosSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> KerberosSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', group_matching_mode = 'identifier', realm = '0', krb5_conf = '', @@ -63,7 +65,8 @@ def make_instance(self, include_optional) -> KerberosSourceRequest: spnego_server_name = '', spnego_keytab = '', spnego_ccache = '', - password_login_update_internal_password = True + password_login_update_internal_password = True, + sync_outgoing_trigger_mode = 'none' ) else: return KerberosSourceRequest( diff --git a/test/test_key_type_enum.py b/test/test_key_type_enum.py new file mode 100644 index 000000000..1505d9d2f --- /dev/null +++ b/test/test_key_type_enum.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.key_type_enum import KeyTypeEnum + +class TestKeyTypeEnum(unittest.TestCase): + """KeyTypeEnum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testKeyTypeEnum(self): + """Test KeyTypeEnum""" + # inst = KeyTypeEnum() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_kubernetes_service_connection.py b/test/test_kubernetes_service_connection.py index 97ffbbe02..8e207aacd 100644 --- a/test/test_kubernetes_service_connection.py +++ b/test/test_kubernetes_service_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_kubernetes_service_connection_request.py b/test/test_kubernetes_service_connection_request.py index f5690bac5..ca7628262 100644 --- a/test/test_kubernetes_service_connection_request.py +++ b/test/test_kubernetes_service_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_last_task_status_enum.py b/test/test_last_task_status_enum.py index c72c72650..653513efd 100644 --- a/test/test_last_task_status_enum.py +++ b/test/test_last_task_status_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ldap_check_access.py b/test/test_ldap_check_access.py index 29fb73e6f..f707a1b59 100644 --- a/test/test_ldap_check_access.py +++ b/test/test_ldap_check_access.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ldap_debug.py b/test/test_ldap_debug.py index f2e0dbdea..d89acb813 100644 --- a/test/test_ldap_debug.py +++ b/test/test_ldap_debug.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ldap_outpost_config.py b/test/test_ldap_outpost_config.py index 0c7bb0b59..98efb43fc 100644 --- a/test/test_ldap_outpost_config.py +++ b/test/test_ldap_outpost_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ldap_provider.py b/test/test_ldap_provider.py index 55eb2b484..d100602bb 100644 --- a/test/test_ldap_provider.py +++ b/test/test_ldap_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ldap_provider_request.py b/test/test_ldap_provider_request.py index 57e1eb547..ffe92406d 100644 --- a/test/test_ldap_provider_request.py +++ b/test/test_ldap_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ldap_source.py b/test/test_ldap_source.py index a31e3afd8..b9d4345db 100644 --- a/test/test_ldap_source.py +++ b/test/test_ldap_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> LDAPSource: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -57,6 +58,10 @@ def make_instance(self, include_optional) -> LDAPSource: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), server_uri = '', peer_certificate = '', client_certificate = '', @@ -82,7 +87,8 @@ def make_instance(self, include_optional) -> LDAPSource: } }, lookup_groups_from_user = True, - delete_not_found_objects = True + delete_not_found_objects = True, + sync_outgoing_trigger_mode = 'none' ) else: return LDAPSource( @@ -94,7 +100,10 @@ def make_instance(self, include_optional) -> LDAPSource: verbose_name_plural = '', meta_model_name = '', managed = '', - icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), server_uri = '', base_dn = '', connectivity = { diff --git a/test/test_ldap_source_property_mapping.py b/test/test_ldap_source_property_mapping.py index c98a5dedb..a270e2b06 100644 --- a/test/test_ldap_source_property_mapping.py +++ b/test/test_ldap_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ldap_source_property_mapping_request.py b/test/test_ldap_source_property_mapping_request.py index a2364d352..8d13981fc 100644 --- a/test/test_ldap_source_property_mapping_request.py +++ b/test/test_ldap_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ldap_source_request.py b/test/test_ldap_source_request.py index 0cfd52220..2611c955b 100644 --- a/test/test_ldap_source_request.py +++ b/test/test_ldap_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> LDAPSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> LDAPSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', server_uri = '0', peer_certificate = '', client_certificate = '', @@ -71,7 +73,8 @@ def make_instance(self, include_optional) -> LDAPSourceRequest: sync_groups = True, sync_parent_group = '', lookup_groups_from_user = True, - delete_not_found_objects = True + delete_not_found_objects = True, + sync_outgoing_trigger_mode = 'none' ) else: return LDAPSourceRequest( diff --git a/test/test_ldapapi_access_mode.py b/test/test_ldapapi_access_mode.py index 44c471cbc..2c81e8904 100644 --- a/test/test_ldapapi_access_mode.py +++ b/test/test_ldapapi_access_mode.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_license.py b/test/test_license.py index 55f45b925..ca76831f8 100644 --- a/test/test_license.py +++ b/test/test_license.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_license_flags_enum.py b/test/test_license_flags_enum.py index 955387b0a..a94101cbb 100644 --- a/test/test_license_flags_enum.py +++ b/test/test_license_flags_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_license_forecast.py b/test/test_license_forecast.py index bc047c002..ba19ecb44 100644 --- a/test/test_license_forecast.py +++ b/test/test_license_forecast.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_license_request.py b/test/test_license_request.py index 0463cafa4..ffe798499 100644 --- a/test/test_license_request.py +++ b/test/test_license_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_license_status_enum.py b/test/test_license_status_enum.py new file mode 100644 index 000000000..a158633cb --- /dev/null +++ b/test/test_license_status_enum.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.license_status_enum import LicenseStatusEnum + +class TestLicenseStatusEnum(unittest.TestCase): + """LicenseStatusEnum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLicenseStatusEnum(self): + """Test LicenseStatusEnum""" + # inst = LicenseStatusEnum() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_license_summary.py b/test/test_license_summary.py index 65f64d989..4467fc766 100644 --- a/test/test_license_summary.py +++ b/test/test_license_summary.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_license_summary_status_enum.py b/test/test_license_summary_status_enum.py index 3fafb3483..d6c605188 100644 --- a/test/test_license_summary_status_enum.py +++ b/test/test_license_summary_status_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_link.py b/test/test_link.py index 6cbced974..e5af773b2 100644 --- a/test/test_link.py +++ b/test/test_link.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_log_event.py b/test/test_log_event.py index 0e9123880..aae67bc01 100644 --- a/test/test_log_event.py +++ b/test/test_log_event.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_log_level_enum.py b/test/test_log_level_enum.py index b9546ac91..ec0b0e1b6 100644 --- a/test/test_log_level_enum.py +++ b/test/test_log_level_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_login_challenge_types.py b/test/test_login_challenge_types.py index e2392839d..3f7c66970 100644 --- a/test/test_login_challenge_types.py +++ b/test/test_login_challenge_types.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> LoginChallengeTypes: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-source-telegram', diff --git a/test/test_login_source.py b/test/test_login_source.py index 8b9fa2e83..e9265f555 100644 --- a/test/test_login_source.py +++ b/test/test_login_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> LoginSource: return LoginSource( name = '', icon_url = '', + promoted = True, challenge = None ) else: diff --git a/test/test_managed_api.py b/test/test_managed_api.py index bb13bb63d..9873aa92c 100644 --- a/test/test_managed_api.py +++ b/test/test_managed_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_matching_mode_enum.py b/test/test_matching_mode_enum.py index 703c07ffd..ba69eefc3 100644 --- a/test/test_matching_mode_enum.py +++ b/test/test_matching_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_mdm_config_request.py b/test/test_mdm_config_request.py new file mode 100644 index 000000000..ef366f675 --- /dev/null +++ b/test/test_mdm_config_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.mdm_config_request import MDMConfigRequest + +class TestMDMConfigRequest(unittest.TestCase): + """MDMConfigRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MDMConfigRequest: + """Test MDMConfigRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MDMConfigRequest` + """ + model = MDMConfigRequest() + if include_optional: + return MDMConfigRequest( + platform = 'linux', + enrollment_token = '' + ) + else: + return MDMConfigRequest( + platform = 'linux', + enrollment_token = '', + ) + """ + + def testMDMConfigRequest(self): + """Test MDMConfigRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mdm_config_response.py b/test/test_mdm_config_response.py new file mode 100644 index 000000000..39fb5efb1 --- /dev/null +++ b/test/test_mdm_config_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.mdm_config_response import MDMConfigResponse + +class TestMDMConfigResponse(unittest.TestCase): + """MDMConfigResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> MDMConfigResponse: + """Test MDMConfigResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `MDMConfigResponse` + """ + model = MDMConfigResponse() + if include_optional: + return MDMConfigResponse( + config = '', + mime_type = '', + filename = '' + ) + else: + return MDMConfigResponse( + config = '', + mime_type = '', + filename = '', + ) + """ + + def testMDMConfigResponse(self): + """Test MDMConfigResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metadata.py b/test/test_metadata.py index d5b814306..466df53f5 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_microsoft_entra_provider.py b/test/test_microsoft_entra_provider.py index 62b359ce6..beca61586 100644 --- a/test/test_microsoft_entra_provider.py +++ b/test/test_microsoft_entra_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -57,6 +57,8 @@ def make_instance(self, include_optional) -> MicrosoftEntraProvider: filter_group = '', user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True ) else: diff --git a/test/test_microsoft_entra_provider_group.py b/test/test_microsoft_entra_provider_group.py index 6088e9cf6..149e4e468 100644 --- a/test/test_microsoft_entra_provider_group.py +++ b/test/test_microsoft_entra_provider_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,8 +44,6 @@ def make_instance(self, include_optional) -> MicrosoftEntraProviderGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), @@ -64,8 +62,6 @@ def make_instance(self, include_optional) -> MicrosoftEntraProviderGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), diff --git a/test/test_microsoft_entra_provider_group_request.py b/test/test_microsoft_entra_provider_group_request.py index 9bcd208b9..70cd65ed5 100644 --- a/test/test_microsoft_entra_provider_group_request.py +++ b/test/test_microsoft_entra_provider_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_microsoft_entra_provider_mapping.py b/test/test_microsoft_entra_provider_mapping.py index ae6e9700d..3a41d4404 100644 --- a/test/test_microsoft_entra_provider_mapping.py +++ b/test/test_microsoft_entra_provider_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_microsoft_entra_provider_mapping_request.py b/test/test_microsoft_entra_provider_mapping_request.py index b5679e1ae..2f0209148 100644 --- a/test/test_microsoft_entra_provider_mapping_request.py +++ b/test/test_microsoft_entra_provider_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_microsoft_entra_provider_request.py b/test/test_microsoft_entra_provider_request.py index bd5d78440..66306e9a2 100644 --- a/test/test_microsoft_entra_provider_request.py +++ b/test/test_microsoft_entra_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,8 @@ def make_instance(self, include_optional) -> MicrosoftEntraProviderRequest: filter_group = '', user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', + sync_page_size = 1, + sync_page_timeout = '0', dry_run = True ) else: diff --git a/test/test_microsoft_entra_provider_user.py b/test/test_microsoft_entra_provider_user.py index eb5ff088a..421345d4a 100644 --- a/test/test_microsoft_entra_provider_user.py +++ b/test/test_microsoft_entra_provider_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_microsoft_entra_provider_user_request.py b/test/test_microsoft_entra_provider_user_request.py index fa59e7adf..94b49a7b1 100644 --- a/test/test_microsoft_entra_provider_user_request.py +++ b/test/test_microsoft_entra_provider_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_model_enum.py b/test/test_model_enum.py index 2fe3586f6..855423fc3 100644 --- a/test/test_model_enum.py +++ b/test/test_model_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_model_request.py b/test/test_model_request.py index 0170d098d..7748a1032 100644 --- a/test/test_model_request.py +++ b/test/test_model_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -53,6 +53,8 @@ def make_instance(self, include_optional) -> ModelRequest: user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', default_group_email_domain = '0', + sync_page_size = 1, + sync_page_timeout = '0', dry_run = True, authentication_flow = '', authorization_flow = '', @@ -138,6 +140,7 @@ def make_instance(self, include_optional) -> ModelRequest: 'key' : None }, compatibility_mode = 'default', + service_provider_config_cache_timeout = '0', oidc_auth_providers = [ 56 ], diff --git a/test/test_mutual_tls_stage.py b/test/test_mutual_tls_stage.py index 683b06c01..f7d4ff987 100644 --- a/test/test_mutual_tls_stage.py +++ b/test/test_mutual_tls_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> MutualTLSStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -72,6 +72,21 @@ def make_instance(self, include_optional) -> MutualTLSStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], mode = 'optional', cert_attribute = 'subject', user_attribute = 'username', diff --git a/test/test_mutual_tls_stage_request.py b/test/test_mutual_tls_stage_request.py index 42df89239..6fbcf4de4 100644 --- a/test/test_mutual_tls_stage_request.py +++ b/test/test_mutual_tls_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> MutualTLSStageRequest: if include_optional: return MutualTLSStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], mode = 'optional', certificate_authorities = [ '' diff --git a/test/test_native_logout_challenge.py b/test/test_native_logout_challenge.py index 4acdab323..2972d0596 100644 --- a/test/test_native_logout_challenge.py +++ b/test/test_native_logout_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> NativeLogoutChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-provider-saml-native-logout', diff --git a/test/test_native_logout_challenge_response_request.py b/test/test_native_logout_challenge_response_request.py index 0ba4efedb..9a8218907 100644 --- a/test/test_native_logout_challenge_response_request.py +++ b/test/test_native_logout_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_network.py b/test/test_network.py new file mode 100644 index 000000000..0b93dff3e --- /dev/null +++ b/test/test_network.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.network import Network + +class TestNetwork(unittest.TestCase): + """Network unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Network: + """Test Network + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Network` + """ + model = Network() + if include_optional: + return Network( + hostname = '', + firewall_enabled = True, + interfaces = [ + authentik_client.models.network_interface.NetworkInterface( + name = '', + hardware_address = '', + ip_addresses = [ + '' + ], + dns_servers = [ + '' + ], ) + ], + gateway = '' + ) + else: + return Network( + hostname = '', + interfaces = [ + authentik_client.models.network_interface.NetworkInterface( + name = '', + hardware_address = '', + ip_addresses = [ + '' + ], + dns_servers = [ + '' + ], ) + ], + ) + """ + + def testNetwork(self): + """Test Network""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_network_binding_enum.py b/test/test_network_binding_enum.py index 3ff30f05b..0c9fa3b93 100644 --- a/test/test_network_binding_enum.py +++ b/test/test_network_binding_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_network_interface.py b/test/test_network_interface.py new file mode 100644 index 000000000..16e756f96 --- /dev/null +++ b/test/test_network_interface.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.network_interface import NetworkInterface + +class TestNetworkInterface(unittest.TestCase): + """NetworkInterface unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkInterface: + """Test NetworkInterface + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NetworkInterface` + """ + model = NetworkInterface() + if include_optional: + return NetworkInterface( + name = '', + hardware_address = '', + ip_addresses = [ + '' + ], + dns_servers = [ + '' + ] + ) + else: + return NetworkInterface( + name = '', + hardware_address = '', + ) + """ + + def testNetworkInterface(self): + """Test NetworkInterface""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_network_interface_request.py b/test/test_network_interface_request.py new file mode 100644 index 000000000..2b83c2fd9 --- /dev/null +++ b/test/test_network_interface_request.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.network_interface_request import NetworkInterfaceRequest + +class TestNetworkInterfaceRequest(unittest.TestCase): + """NetworkInterfaceRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkInterfaceRequest: + """Test NetworkInterfaceRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NetworkInterfaceRequest` + """ + model = NetworkInterfaceRequest() + if include_optional: + return NetworkInterfaceRequest( + name = '0', + hardware_address = '0', + ip_addresses = [ + '0' + ], + dns_servers = [ + '0' + ] + ) + else: + return NetworkInterfaceRequest( + name = '0', + hardware_address = '0', + ) + """ + + def testNetworkInterfaceRequest(self): + """Test NetworkInterfaceRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_network_request.py b/test/test_network_request.py new file mode 100644 index 000000000..8d13bd120 --- /dev/null +++ b/test/test_network_request.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.network_request import NetworkRequest + +class TestNetworkRequest(unittest.TestCase): + """NetworkRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NetworkRequest: + """Test NetworkRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `NetworkRequest` + """ + model = NetworkRequest() + if include_optional: + return NetworkRequest( + hostname = '0', + firewall_enabled = True, + interfaces = [ + authentik_client.models.network_interface_request.NetworkInterfaceRequest( + name = '0', + hardware_address = '0', + ip_addresses = [ + '0' + ], + dns_servers = [ + '0' + ], ) + ], + gateway = '0' + ) + else: + return NetworkRequest( + hostname = '0', + interfaces = [ + authentik_client.models.network_interface_request.NetworkInterfaceRequest( + name = '0', + hardware_address = '0', + ip_addresses = [ + '0' + ], + dns_servers = [ + '0' + ], ) + ], + ) + """ + + def testNetworkRequest(self): + """Test NetworkRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_not_configured_action_enum.py b/test/test_not_configured_action_enum.py index 37f81059b..2ab0c0ac9 100644 --- a/test/test_not_configured_action_enum.py +++ b/test/test_not_configured_action_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_notification.py b/test/test_notification.py index 78cd2a369..0d6072938 100644 --- a/test/test_notification.py +++ b/test/test_notification.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,8 @@ def make_instance(self, include_optional) -> Notification: pk = '', severity = 'notice', body = '', + hyperlink = '', + hyperlink_label = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), event = authentik_client.models.event.Event( pk = '', diff --git a/test/test_notification_request.py b/test/test_notification_request.py index 718bc2773..d080a031a 100644 --- a/test/test_notification_request.py +++ b/test/test_notification_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,6 +36,8 @@ def make_instance(self, include_optional) -> NotificationRequest: model = NotificationRequest() if include_optional: return NotificationRequest( + hyperlink = '', + hyperlink_label = '', event = authentik_client.models.event_request.EventRequest( user = { 'key' : null diff --git a/test/test_notification_rule.py b/test/test_notification_rule.py index f1be4e6b8..bd44dd68f 100644 --- a/test/test_notification_rule.py +++ b/test/test_notification_rule.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -48,8 +48,19 @@ def make_instance(self, include_optional) -> NotificationRule: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', + parents = [ + '' + ], + parents_obj = [ + authentik_client.models.related_group.RelatedGroup( + pk = '', + name = '', + is_superuser = True, + attributes = { + 'key' : null + }, + group_uuid = '', ) + ], users = [ 56 ], @@ -61,9 +72,6 @@ def make_instance(self, include_optional) -> NotificationRule: is_active = True, last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), email = '', - attributes = { - 'key' : null - }, uid = '', ) ], attributes = { @@ -77,11 +85,16 @@ def make_instance(self, include_optional) -> NotificationRule: pk = '', name = '', ) ], + inherited_roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], children = [ '' ], children_obj = [ - authentik_client.models.group_child.GroupChild( + authentik_client.models.related_group.RelatedGroup( pk = '', name = '', is_superuser = True, @@ -98,8 +111,19 @@ def make_instance(self, include_optional) -> NotificationRule: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', + parents = [ + '' + ], + parents_obj = [ + authentik_client.models.related_group.RelatedGroup( + pk = '', + name = '', + is_superuser = True, + attributes = { + 'key' : null + }, + group_uuid = '', ) + ], users = [ 56 ], @@ -111,9 +135,6 @@ def make_instance(self, include_optional) -> NotificationRule: is_active = True, last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), email = '', - attributes = { - 'key' : null - }, uid = '', ) ], attributes = { @@ -127,11 +148,16 @@ def make_instance(self, include_optional) -> NotificationRule: pk = '', name = '', ) ], + inherited_roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], children = [ '' ], children_obj = [ - authentik_client.models.group_child.GroupChild( + authentik_client.models.related_group.RelatedGroup( pk = '', name = '', is_superuser = True, diff --git a/test/test_notification_rule_request.py b/test/test_notification_rule_request.py index 131d0fbb1..76a7f9a4e 100644 --- a/test/test_notification_rule_request.py +++ b/test/test_notification_rule_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_notification_transport.py b/test/test_notification_transport.py index 7e1a9f78b..e24380cb6 100644 --- a/test/test_notification_transport.py +++ b/test/test_notification_transport.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_notification_transport_mode_enum.py b/test/test_notification_transport_mode_enum.py index 989fe7938..5f40ea547 100644 --- a/test/test_notification_transport_mode_enum.py +++ b/test/test_notification_transport_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_notification_transport_request.py b/test/test_notification_transport_request.py index 6692bb55e..2f2c73eff 100644 --- a/test/test_notification_transport_request.py +++ b/test/test_notification_transport_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_notification_transport_test.py b/test/test_notification_transport_test.py index 63625f3c3..ddc05f694 100644 --- a/test/test_notification_transport_test.py +++ b/test/test_notification_transport_test.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_notification_webhook_mapping.py b/test/test_notification_webhook_mapping.py index 07f9e62b0..82e59fa24 100644 --- a/test/test_notification_webhook_mapping.py +++ b/test/test_notification_webhook_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_notification_webhook_mapping_request.py b/test/test_notification_webhook_mapping_request.py index 42ebf5ca0..0ba01fd5a 100644 --- a/test/test_notification_webhook_mapping_request.py +++ b/test/test_notification_webhook_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth2_provider.py b/test/test_o_auth2_provider.py index 40f09d896..be6736b48 100644 --- a/test/test_o_auth2_provider.py +++ b/test/test_o_auth2_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth2_provider_logout_method_enum.py b/test/test_o_auth2_provider_logout_method_enum.py index ead294f8f..bdbad6bc6 100644 --- a/test/test_o_auth2_provider_logout_method_enum.py +++ b/test/test_o_auth2_provider_logout_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth2_provider_request.py b/test/test_o_auth2_provider_request.py index 452e9d9d7..d3d7ca108 100644 --- a/test/test_o_auth2_provider_request.py +++ b/test/test_o_auth2_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth2_provider_setup_urls.py b/test/test_o_auth2_provider_setup_urls.py index bbdd13629..2fb43c1b0 100644 --- a/test/test_o_auth2_provider_setup_urls.py +++ b/test/test_o_auth2_provider_setup_urls.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth_device_code_challenge.py b/test/test_o_auth_device_code_challenge.py index 3d11037ed..874fdcf45 100644 --- a/test/test_o_auth_device_code_challenge.py +++ b/test/test_o_auth_device_code_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> OAuthDeviceCodeChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-provider-oauth2-device-code', diff --git a/test/test_o_auth_device_code_challenge_response_request.py b/test/test_o_auth_device_code_challenge_response_request.py index ee0d9a2bc..03bda271f 100644 --- a/test/test_o_auth_device_code_challenge_response_request.py +++ b/test/test_o_auth_device_code_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth_device_code_finish_challenge.py b/test/test_o_auth_device_code_finish_challenge.py index 836c9fdee..65462b99d 100644 --- a/test/test_o_auth_device_code_finish_challenge.py +++ b/test/test_o_auth_device_code_finish_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> OAuthDeviceCodeFinishChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-provider-oauth2-device-code-finish', diff --git a/test/test_o_auth_device_code_finish_challenge_response_request.py b/test/test_o_auth_device_code_finish_challenge_response_request.py index 9ffcac9cc..f1de1a00f 100644 --- a/test/test_o_auth_device_code_finish_challenge_response_request.py +++ b/test/test_o_auth_device_code_finish_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth_source.py b/test/test_o_auth_source.py index 0650092e0..11740d976 100644 --- a/test/test_o_auth_source.py +++ b/test/test_o_auth_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> OAuthSource: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -57,12 +58,17 @@ def make_instance(self, include_optional) -> OAuthSource: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), group_matching_mode = 'identifier', provider_type = 'apple', request_token_url = '', authorization_url = '', access_token_url = '', profile_url = '', + pkce = 'none', consumer_key = '', callback_url = '', additional_scopes = '', @@ -93,7 +99,10 @@ def make_instance(self, include_optional) -> OAuthSource: verbose_name_plural = '', meta_model_name = '', managed = '', - icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), provider_type = 'apple', consumer_key = '', callback_url = '', diff --git a/test/test_o_auth_source_property_mapping.py b/test/test_o_auth_source_property_mapping.py index 1b7571bed..f5fd2d2e2 100644 --- a/test/test_o_auth_source_property_mapping.py +++ b/test/test_o_auth_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth_source_property_mapping_request.py b/test/test_o_auth_source_property_mapping_request.py index 111e8d6cb..3f693b69f 100644 --- a/test/test_o_auth_source_property_mapping_request.py +++ b/test/test_o_auth_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_o_auth_source_request.py b/test/test_o_auth_source_request.py index 19fcb727a..fa33e0d48 100644 --- a/test/test_o_auth_source_request.py +++ b/test/test_o_auth_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> OAuthSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,12 +51,14 @@ def make_instance(self, include_optional) -> OAuthSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', group_matching_mode = 'identifier', provider_type = 'apple', request_token_url = '', authorization_url = '', access_token_url = '', profile_url = '', + pkce = 'none', consumer_key = '0', consumer_secret = '0', additional_scopes = '', diff --git a/test/test_oauth2_api.py b/test/test_oauth2_api.py index b52781f51..f6bc5d7c3 100644 --- a/test/test_oauth2_api.py +++ b/test/test_oauth2_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_open_id_connect_configuration.py b/test/test_open_id_connect_configuration.py index 5c21b8d71..a627ae753 100644 --- a/test/test_open_id_connect_configuration.py +++ b/test/test_open_id_connect_configuration.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_operating_system.py b/test/test_operating_system.py new file mode 100644 index 000000000..f588c3722 --- /dev/null +++ b/test/test_operating_system.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.operating_system import OperatingSystem + +class TestOperatingSystem(unittest.TestCase): + """OperatingSystem unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OperatingSystem: + """Test OperatingSystem + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `OperatingSystem` + """ + model = OperatingSystem() + if include_optional: + return OperatingSystem( + family = 'linux', + name = '', + version = '', + arch = '' + ) + else: + return OperatingSystem( + family = 'linux', + arch = '', + ) + """ + + def testOperatingSystem(self): + """Test OperatingSystem""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_operating_system_request.py b/test/test_operating_system_request.py new file mode 100644 index 000000000..47cfa20db --- /dev/null +++ b/test/test_operating_system_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.operating_system_request import OperatingSystemRequest + +class TestOperatingSystemRequest(unittest.TestCase): + """OperatingSystemRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OperatingSystemRequest: + """Test OperatingSystemRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `OperatingSystemRequest` + """ + model = OperatingSystemRequest() + if include_optional: + return OperatingSystemRequest( + family = 'linux', + name = '0', + version = '0', + arch = '0' + ) + else: + return OperatingSystemRequest( + family = 'linux', + arch = '0', + ) + """ + + def testOperatingSystemRequest(self): + """Test OperatingSystemRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_outgoing_sync_delete_action.py b/test/test_outgoing_sync_delete_action.py index 34bee6dc4..694c576e2 100644 --- a/test/test_outgoing_sync_delete_action.py +++ b/test/test_outgoing_sync_delete_action.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_outpost.py b/test/test_outpost.py index c18615714..eee83b320 100644 --- a/test/test_outpost.py +++ b/test/test_outpost.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_outpost_default_config.py b/test/test_outpost_default_config.py index c075e4aa5..3e5fb3fee 100644 --- a/test/test_outpost_default_config.py +++ b/test/test_outpost_default_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_outpost_health.py b/test/test_outpost_health.py index d86704f66..37822a078 100644 --- a/test/test_outpost_health.py +++ b/test/test_outpost_health.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_outpost_request.py b/test/test_outpost_request.py index 26103382f..431428cd7 100644 --- a/test/test_outpost_request.py +++ b/test/test_outpost_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_outpost_type_enum.py b/test/test_outpost_type_enum.py index ce9130407..088ae4cb2 100644 --- a/test/test_outpost_type_enum.py +++ b/test/test_outpost_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_outposts_api.py b/test/test_outposts_api.py index f2f38b294..b2f2742c3 100644 --- a/test/test_outposts_api.py +++ b/test/test_outposts_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_agent_connector_list.py b/test/test_paginated_agent_connector_list.py new file mode 100644 index 000000000..319ca9c0f --- /dev/null +++ b/test/test_paginated_agent_connector_list.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.paginated_agent_connector_list import PaginatedAgentConnectorList + +class TestPaginatedAgentConnectorList(unittest.TestCase): + """PaginatedAgentConnectorList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedAgentConnectorList: + """Test PaginatedAgentConnectorList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedAgentConnectorList` + """ + model = PaginatedAgentConnectorList() + if include_optional: + return PaginatedAgentConnectorList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.agent_connector.AgentConnector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + snapshot_expiry = '', + auth_session_duration = '', + auth_terminate_session_on_expiry = True, + refresh_interval = '', + authorization_flow = '', + nss_uid_offset = 0, + nss_gid_offset = 0, + challenge_key = '', + challenge_idle_timeout = '', + challenge_trigger_check_in = True, + jwt_federation_providers = [ + 56 + ], ) + ], + autocomplete = { + 'key' : null + } + ) + else: + return PaginatedAgentConnectorList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.agent_connector.AgentConnector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + snapshot_expiry = '', + auth_session_duration = '', + auth_terminate_session_on_expiry = True, + refresh_interval = '', + authorization_flow = '', + nss_uid_offset = 0, + nss_gid_offset = 0, + challenge_key = '', + challenge_idle_timeout = '', + challenge_trigger_check_in = True, + jwt_federation_providers = [ + 56 + ], ) + ], + autocomplete = { + 'key' : null + }, + ) + """ + + def testPaginatedAgentConnectorList(self): + """Test PaginatedAgentConnectorList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paginated_application_entitlement_list.py b/test/test_paginated_application_entitlement_list.py index 5986aed6b..0617e6875 100644 --- a/test/test_paginated_application_entitlement_list.py +++ b/test/test_paginated_application_entitlement_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_application_list.py b/test/test_paginated_application_list.py index aef7a40b9..d85019980 100644 --- a/test/test_paginated_application_list.py +++ b/test/test_paginated_application_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -77,6 +77,8 @@ def make_instance(self, include_optional) -> PaginatedApplicationList: open_in_new_tab = True, meta_launch_url = '', meta_icon = '', + meta_icon_url = '', + meta_icon_themed_urls = null, meta_description = '', meta_publisher = '', policy_engine_mode = 'all', @@ -129,6 +131,8 @@ def make_instance(self, include_optional) -> PaginatedApplicationList: open_in_new_tab = True, meta_launch_url = '', meta_icon = '', + meta_icon_url = '', + meta_icon_themed_urls = null, meta_description = '', meta_publisher = '', policy_engine_mode = 'all', diff --git a/test/test_paginated_authenticated_session_list.py b/test/test_paginated_authenticated_session_list.py index d9564aa97..d24bd7779 100644 --- a/test/test_paginated_authenticated_session_list.py +++ b/test/test_paginated_authenticated_session_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_authenticator_duo_stage_list.py b/test/test_paginated_authenticator_duo_stage_list.py index 6b4adfc63..436892703 100644 --- a/test/test_paginated_authenticator_duo_stage_list.py +++ b/test/test_paginated_authenticator_duo_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorDuoStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -103,7 +103,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorDuoStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_authenticator_email_stage_list.py b/test/test_paginated_authenticator_email_stage_list.py index b985847d8..2f9b53282 100644 --- a/test/test_paginated_authenticator_email_stage_list.py +++ b/test/test_paginated_authenticator_email_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorEmailStageLis slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -112,7 +112,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorEmailStageLis slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_authenticator_endpoint_gdtc_stage_list.py b/test/test_paginated_authenticator_endpoint_gdtc_stage_list.py index a81005910..7b38f2170 100644 --- a/test/test_paginated_authenticator_endpoint_gdtc_stage_list.py +++ b/test/test_paginated_authenticator_endpoint_gdtc_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorEndpointGDTCS slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -103,7 +103,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorEndpointGDTCS slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_authenticator_sms_stage_list.py b/test/test_paginated_authenticator_sms_stage_list.py index ee94b19b6..564c6ceb5 100644 --- a/test/test_paginated_authenticator_sms_stage_list.py +++ b/test/test_paginated_authenticator_sms_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorSMSStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -108,7 +108,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorSMSStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_authenticator_static_stage_list.py b/test/test_paginated_authenticator_static_stage_list.py index df053da3a..17da3cbfd 100644 --- a/test/test_paginated_authenticator_static_stage_list.py +++ b/test/test_paginated_authenticator_static_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorStaticStageLi slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -102,7 +102,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorStaticStageLi slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_authenticator_totp_stage_list.py b/test/test_paginated_authenticator_totp_stage_list.py index 37a44bd54..c2967cba5 100644 --- a/test/test_paginated_authenticator_totp_stage_list.py +++ b/test/test_paginated_authenticator_totp_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorTOTPStageList slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -101,7 +101,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorTOTPStageList slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_authenticator_validate_stage_list.py b/test/test_paginated_authenticator_validate_stage_list.py index 1700a2e7f..71bf7fe3d 100644 --- a/test/test_paginated_authenticator_validate_stage_list.py +++ b/test/test_paginated_authenticator_validate_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorValidateStage slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -115,7 +115,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorValidateStage slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_authenticator_web_authn_stage_list.py b/test/test_paginated_authenticator_web_authn_stage_list.py index 1d7ea5f39..e1188b780 100644 --- a/test/test_paginated_authenticator_web_authn_stage_list.py +++ b/test/test_paginated_authenticator_web_authn_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorWebAuthnStage slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -112,7 +112,7 @@ def make_instance(self, include_optional) -> PaginatedAuthenticatorWebAuthnStage slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_blueprint_instance_list.py b/test/test_paginated_blueprint_instance_list.py index 0a7c2f3ca..339d1fda2 100644 --- a/test/test_paginated_blueprint_instance_list.py +++ b/test/test_paginated_blueprint_instance_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_brand_list.py b/test/test_paginated_brand_list.py index 47d501b3c..7a5dfd937 100644 --- a/test/test_paginated_brand_list.py +++ b/test/test_paginated_brand_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_captcha_stage_list.py b/test/test_paginated_captcha_stage_list.py index 2b1716aca..cbf2cf671 100644 --- a/test/test_paginated_captcha_stage_list.py +++ b/test/test_paginated_captcha_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedCaptchaStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -105,7 +105,7 @@ def make_instance(self, include_optional) -> PaginatedCaptchaStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_certificate_key_pair_list.py b/test/test_paginated_certificate_key_pair_list.py index c4e6ce6a5..910d0e694 100644 --- a/test/test_paginated_certificate_key_pair_list.py +++ b/test/test_paginated_certificate_key_pair_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -53,7 +53,7 @@ def make_instance(self, include_optional) -> PaginatedCertificateKeyPairList: cert_expiry = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), cert_subject = '', private_key_available = True, - private_key_type = '', + key_type = null, certificate_download_url = '', private_key_download_url = '', managed = '', ) @@ -81,7 +81,7 @@ def make_instance(self, include_optional) -> PaginatedCertificateKeyPairList: cert_expiry = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), cert_subject = '', private_key_available = True, - private_key_type = '', + key_type = null, certificate_download_url = '', private_key_download_url = '', managed = '', ) diff --git a/test/test_paginated_connection_token_list.py b/test/test_paginated_connection_token_list.py index de77de2d3..e534a1c9f 100644 --- a/test/test_paginated_connection_token_list.py +++ b/test/test_paginated_connection_token_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_connector_list.py b/test/test_paginated_connector_list.py new file mode 100644 index 000000000..f76587488 --- /dev/null +++ b/test/test_paginated_connector_list.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.paginated_connector_list import PaginatedConnectorList + +class TestPaginatedConnectorList(unittest.TestCase): + """PaginatedConnectorList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedConnectorList: + """Test PaginatedConnectorList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedConnectorList` + """ + model = PaginatedConnectorList() + if include_optional: + return PaginatedConnectorList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.connector.Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', ) + ], + autocomplete = { + 'key' : null + } + ) + else: + return PaginatedConnectorList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.connector.Connector( + connector_uuid = '', + name = '', + enabled = True, + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', ) + ], + autocomplete = { + 'key' : null + }, + ) + """ + + def testPaginatedConnectorList(self): + """Test PaginatedConnectorList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paginated_consent_stage_list.py b/test/test_paginated_consent_stage_list.py index 27e5c94e9..aa8a75d28 100644 --- a/test/test_paginated_consent_stage_list.py +++ b/test/test_paginated_consent_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedConsentStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -100,7 +100,7 @@ def make_instance(self, include_optional) -> PaginatedConsentStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_data_export_list.py b/test/test_paginated_data_export_list.py new file mode 100644 index 000000000..00cb7cd20 --- /dev/null +++ b/test/test_paginated_data_export_list.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.paginated_data_export_list import PaginatedDataExportList + +class TestPaginatedDataExportList(unittest.TestCase): + """PaginatedDataExportList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedDataExportList: + """Test PaginatedDataExportList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedDataExportList` + """ + model = PaginatedDataExportList() + if include_optional: + return PaginatedDataExportList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.data_export.DataExport( + id = '', + requested_by = null, + requested_on = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + content_type = null, + query_params = { + 'key' : null + }, + file_url = '', + completed = True, ) + ], + autocomplete = { + 'key' : null + } + ) + else: + return PaginatedDataExportList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.data_export.DataExport( + id = '', + requested_by = null, + requested_on = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + content_type = null, + query_params = { + 'key' : null + }, + file_url = '', + completed = True, ) + ], + autocomplete = { + 'key' : null + }, + ) + """ + + def testPaginatedDataExportList(self): + """Test PaginatedDataExportList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paginated_deny_stage_list.py b/test/test_paginated_deny_stage_list.py index f81d475be..184187cd2 100644 --- a/test/test_paginated_deny_stage_list.py +++ b/test/test_paginated_deny_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedDenyStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -99,7 +99,7 @@ def make_instance(self, include_optional) -> PaginatedDenyStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_device_access_group_list.py b/test/test_paginated_device_access_group_list.py new file mode 100644 index 000000000..2e88880d2 --- /dev/null +++ b/test/test_paginated_device_access_group_list.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.paginated_device_access_group_list import PaginatedDeviceAccessGroupList + +class TestPaginatedDeviceAccessGroupList(unittest.TestCase): + """PaginatedDeviceAccessGroupList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedDeviceAccessGroupList: + """Test PaginatedDeviceAccessGroupList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedDeviceAccessGroupList` + """ + model = PaginatedDeviceAccessGroupList() + if include_optional: + return PaginatedDeviceAccessGroupList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.device_access_group.DeviceAccessGroup( + pbm_uuid = '', + name = '', ) + ], + autocomplete = { + 'key' : null + } + ) + else: + return PaginatedDeviceAccessGroupList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.device_access_group.DeviceAccessGroup( + pbm_uuid = '', + name = '', ) + ], + autocomplete = { + 'key' : null + }, + ) + """ + + def testPaginatedDeviceAccessGroupList(self): + """Test PaginatedDeviceAccessGroupList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paginated_device_user_binding_list.py b/test/test_paginated_device_user_binding_list.py new file mode 100644 index 000000000..6599d8626 --- /dev/null +++ b/test/test_paginated_device_user_binding_list.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.paginated_device_user_binding_list import PaginatedDeviceUserBindingList + +class TestPaginatedDeviceUserBindingList(unittest.TestCase): + """PaginatedDeviceUserBindingList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedDeviceUserBindingList: + """Test PaginatedDeviceUserBindingList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedDeviceUserBindingList` + """ + model = PaginatedDeviceUserBindingList() + if include_optional: + return PaginatedDeviceUserBindingList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.device_user_binding.DeviceUserBinding( + pk = '', + policy = '', + group = '', + user = 56, + policy_obj = null, + group_obj = null, + user_obj = null, + target = '', + negate = True, + enabled = True, + order = -2147483648, + timeout = 0, + failure_result = True, + is_primary = True, + connector = '', + connector_obj = null, ) + ], + autocomplete = { + 'key' : null + } + ) + else: + return PaginatedDeviceUserBindingList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.device_user_binding.DeviceUserBinding( + pk = '', + policy = '', + group = '', + user = 56, + policy_obj = null, + group_obj = null, + user_obj = null, + target = '', + negate = True, + enabled = True, + order = -2147483648, + timeout = 0, + failure_result = True, + is_primary = True, + connector = '', + connector_obj = null, ) + ], + autocomplete = { + 'key' : null + }, + ) + """ + + def testPaginatedDeviceUserBindingList(self): + """Test PaginatedDeviceUserBindingList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paginated_docker_service_connection_list.py b/test/test_paginated_docker_service_connection_list.py index 0ce365d0b..2071062f1 100644 --- a/test/test_paginated_docker_service_connection_list.py +++ b/test/test_paginated_docker_service_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_domain_list.py b/test/test_paginated_domain_list.py index c4b219a29..2fe0173d8 100644 --- a/test/test_paginated_domain_list.py +++ b/test/test_paginated_domain_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_dummy_policy_list.py b/test/test_paginated_dummy_policy_list.py index e507a857d..e1983f858 100644 --- a/test/test_paginated_dummy_policy_list.py +++ b/test/test_paginated_dummy_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_dummy_stage_list.py b/test/test_paginated_dummy_stage_list.py index 84a548de6..91861ffe9 100644 --- a/test/test_paginated_dummy_stage_list.py +++ b/test/test_paginated_dummy_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedDummyStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -99,7 +99,7 @@ def make_instance(self, include_optional) -> PaginatedDummyStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_duo_device_list.py b/test/test_paginated_duo_device_list.py index 316d91c95..399beb8e0 100644 --- a/test/test_paginated_duo_device_list.py +++ b/test/test_paginated_duo_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_email_device_list.py b/test/test_paginated_email_device_list.py index 17c8fea28..1ab7463ec 100644 --- a/test/test_paginated_email_device_list.py +++ b/test/test_paginated_email_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_email_stage_list.py b/test/test_paginated_email_stage_list.py index 45215bdc2..25dc097d0 100644 --- a/test/test_paginated_email_stage_list.py +++ b/test/test_paginated_email_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedEmailStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -112,7 +112,7 @@ def make_instance(self, include_optional) -> PaginatedEmailStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_endpoint_device_list.py b/test/test_paginated_endpoint_device_list.py index e7b9109e0..fcf08a8de 100644 --- a/test/test_paginated_endpoint_device_list.py +++ b/test/test_paginated_endpoint_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -46,8 +46,19 @@ def make_instance(self, include_optional) -> PaginatedEndpointDeviceList: end_index = 1.337, ), results = [ authentik_client.models.endpoint_device.EndpointDevice( - pk = '', - name = '', ) + device_uuid = '', + pbm_uuid = '', + name = '', + access_group = '', + access_group_obj = authentik_client.models.device_access_group.DeviceAccessGroup( + pbm_uuid = '', + name = '', ), + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + facts = null, + attributes = { + 'key' : null + }, ) ], autocomplete = { 'key' : null @@ -65,8 +76,19 @@ def make_instance(self, include_optional) -> PaginatedEndpointDeviceList: end_index = 1.337, ), results = [ authentik_client.models.endpoint_device.EndpointDevice( - pk = '', - name = '', ) + device_uuid = '', + pbm_uuid = '', + name = '', + access_group = '', + access_group_obj = authentik_client.models.device_access_group.DeviceAccessGroup( + pbm_uuid = '', + name = '', ), + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + facts = null, + attributes = { + 'key' : null + }, ) ], autocomplete = { 'key' : null diff --git a/test/test_paginated_endpoint_list.py b/test/test_paginated_endpoint_list.py index 59c494383..282305fba 100644 --- a/test/test_paginated_endpoint_list.py +++ b/test/test_paginated_endpoint_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_endpoint_stage_list.py b/test/test_paginated_endpoint_stage_list.py new file mode 100644 index 000000000..2ebdde34a --- /dev/null +++ b/test/test_paginated_endpoint_stage_list.py @@ -0,0 +1,127 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.paginated_endpoint_stage_list import PaginatedEndpointStageList + +class TestPaginatedEndpointStageList(unittest.TestCase): + """PaginatedEndpointStageList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedEndpointStageList: + """Test PaginatedEndpointStageList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedEndpointStageList` + """ + model = PaginatedEndpointStageList() + if include_optional: + return PaginatedEndpointStageList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.endpoint_stage.EndpointStage( + pk = '', + name = '', + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], + connector = '', + connector_obj = null, + mode = 'optional', ) + ], + autocomplete = { + 'key' : null + } + ) + else: + return PaginatedEndpointStageList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.endpoint_stage.EndpointStage( + pk = '', + name = '', + component = '', + verbose_name = '', + verbose_name_plural = '', + meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], + connector = '', + connector_obj = null, + mode = 'optional', ) + ], + autocomplete = { + 'key' : null + }, + ) + """ + + def testPaginatedEndpointStageList(self): + """Test PaginatedEndpointStageList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paginated_enrollment_token_list.py b/test/test_paginated_enrollment_token_list.py new file mode 100644 index 000000000..9f9817097 --- /dev/null +++ b/test/test_paginated_enrollment_token_list.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.paginated_enrollment_token_list import PaginatedEnrollmentTokenList + +class TestPaginatedEnrollmentTokenList(unittest.TestCase): + """PaginatedEnrollmentTokenList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedEnrollmentTokenList: + """Test PaginatedEnrollmentTokenList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedEnrollmentTokenList` + """ + model = PaginatedEnrollmentTokenList() + if include_optional: + return PaginatedEnrollmentTokenList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.enrollment_token.EnrollmentToken( + token_uuid = '', + device_group = '', + device_group_obj = null, + connector = '', + name = '', + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + autocomplete = { + 'key' : null + } + ) + else: + return PaginatedEnrollmentTokenList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.enrollment_token.EnrollmentToken( + token_uuid = '', + device_group = '', + device_group_obj = null, + connector = '', + name = '', + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + ], + autocomplete = { + 'key' : null + }, + ) + """ + + def testPaginatedEnrollmentTokenList(self): + """Test PaginatedEnrollmentTokenList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paginated_event_list.py b/test/test_paginated_event_list.py index 1a3819896..1be58db72 100644 --- a/test/test_paginated_event_list.py +++ b/test/test_paginated_event_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_event_matcher_policy_list.py b/test/test_paginated_event_matcher_policy_list.py index 7b192a9be..2268ef689 100644 --- a/test/test_paginated_event_matcher_policy_list.py +++ b/test/test_paginated_event_matcher_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_expiring_base_grant_model_list.py b/test/test_paginated_expiring_base_grant_model_list.py index bebf05492..4bdaea45f 100644 --- a/test/test_paginated_expiring_base_grant_model_list.py +++ b/test/test_paginated_expiring_base_grant_model_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -106,12 +106,18 @@ def make_instance(self, include_optional) -> PaginatedExpiringBaseGrantModelList num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -205,12 +211,18 @@ def make_instance(self, include_optional) -> PaginatedExpiringBaseGrantModelList num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { diff --git a/test/test_paginated_expression_policy_list.py b/test/test_paginated_expression_policy_list.py index 0864238e5..cdb30bbc0 100644 --- a/test/test_paginated_expression_policy_list.py +++ b/test/test_paginated_expression_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_extra_role_object_permission_list.py b/test/test_paginated_extra_role_object_permission_list.py index 22e150101..b533eae73 100644 --- a/test/test_paginated_extra_role_object_permission_list.py +++ b/test/test_paginated_extra_role_object_permission_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_extra_user_object_permission_list.py b/test/test_paginated_extra_user_object_permission_list.py deleted file mode 100644 index 0540d3360..000000000 --- a/test/test_paginated_extra_user_object_permission_list.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.paginated_extra_user_object_permission_list import PaginatedExtraUserObjectPermissionList - -class TestPaginatedExtraUserObjectPermissionList(unittest.TestCase): - """PaginatedExtraUserObjectPermissionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PaginatedExtraUserObjectPermissionList: - """Test PaginatedExtraUserObjectPermissionList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PaginatedExtraUserObjectPermissionList` - """ - model = PaginatedExtraUserObjectPermissionList() - if include_optional: - return PaginatedExtraUserObjectPermissionList( - pagination = authentik_client.models.pagination.Pagination( - next = 1.337, - previous = 1.337, - count = 1.337, - current = 1.337, - total_pages = 1.337, - start_index = 1.337, - end_index = 1.337, ), - results = [ - authentik_client.models.extra_user_object_permission.ExtraUserObjectPermission( - id = 56, - codename = '', - model = '', - app_label = '', - object_pk = '', - name = '', - app_label_verbose = '', - model_verbose = '', - object_description = '', ) - ] - ) - else: - return PaginatedExtraUserObjectPermissionList( - pagination = authentik_client.models.pagination.Pagination( - next = 1.337, - previous = 1.337, - count = 1.337, - current = 1.337, - total_pages = 1.337, - start_index = 1.337, - end_index = 1.337, ), - results = [ - authentik_client.models.extra_user_object_permission.ExtraUserObjectPermission( - id = 56, - codename = '', - model = '', - app_label = '', - object_pk = '', - name = '', - app_label_verbose = '', - model_verbose = '', - object_description = '', ) - ], - ) - """ - - def testPaginatedExtraUserObjectPermissionList(self): - """Test PaginatedExtraUserObjectPermissionList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paginated_flow_list.py b/test/test_paginated_flow_list.py index 5a840e4cd..1a8017dca 100644 --- a/test/test_paginated_flow_list.py +++ b/test/test_paginated_flow_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -53,6 +53,8 @@ def make_instance(self, include_optional) -> PaginatedFlowList: title = '', designation = null, background = '', + background_url = '', + background_themed_urls = null, stages = [ '' ], @@ -90,6 +92,8 @@ def make_instance(self, include_optional) -> PaginatedFlowList: title = '', designation = null, background = '', + background_url = '', + background_themed_urls = null, stages = [ '' ], diff --git a/test/test_paginated_flow_stage_binding_list.py b/test/test_paginated_flow_stage_binding_list.py index 556b9fd6e..e6dd93c61 100644 --- a/test/test_paginated_flow_stage_binding_list.py +++ b/test/test_paginated_flow_stage_binding_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_geo_ip_policy_list.py b/test/test_paginated_geo_ip_policy_list.py index 25ec18cc7..73850fcb7 100644 --- a/test/test_paginated_geo_ip_policy_list.py +++ b/test/test_paginated_geo_ip_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_google_endpoint_device_list.py b/test/test_paginated_google_endpoint_device_list.py new file mode 100644 index 000000000..030f33daa --- /dev/null +++ b/test/test_paginated_google_endpoint_device_list.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.paginated_google_endpoint_device_list import PaginatedGoogleEndpointDeviceList + +class TestPaginatedGoogleEndpointDeviceList(unittest.TestCase): + """PaginatedGoogleEndpointDeviceList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PaginatedGoogleEndpointDeviceList: + """Test PaginatedGoogleEndpointDeviceList + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PaginatedGoogleEndpointDeviceList` + """ + model = PaginatedGoogleEndpointDeviceList() + if include_optional: + return PaginatedGoogleEndpointDeviceList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.google_endpoint_device.GoogleEndpointDevice( + pk = '', + name = '', ) + ], + autocomplete = { + 'key' : null + } + ) + else: + return PaginatedGoogleEndpointDeviceList( + pagination = authentik_client.models.pagination.Pagination( + next = 1.337, + previous = 1.337, + count = 1.337, + current = 1.337, + total_pages = 1.337, + start_index = 1.337, + end_index = 1.337, ), + results = [ + authentik_client.models.google_endpoint_device.GoogleEndpointDevice( + pk = '', + name = '', ) + ], + autocomplete = { + 'key' : null + }, + ) + """ + + def testPaginatedGoogleEndpointDeviceList(self): + """Test PaginatedGoogleEndpointDeviceList""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_paginated_google_workspace_provider_group_list.py b/test/test_paginated_google_workspace_provider_group_list.py index 5296b7a1f..adbb1065e 100644 --- a/test/test_paginated_google_workspace_provider_group_list.py +++ b/test/test_paginated_google_workspace_provider_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_google_workspace_provider_list.py b/test/test_paginated_google_workspace_provider_list.py index 114fbff0b..72a55c6e3 100644 --- a/test/test_paginated_google_workspace_provider_list.py +++ b/test/test_paginated_google_workspace_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -70,6 +70,8 @@ def make_instance(self, include_optional) -> PaginatedGoogleWorkspaceProviderLis user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', default_group_email_domain = '', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True, ) ], autocomplete = { @@ -112,6 +114,8 @@ def make_instance(self, include_optional) -> PaginatedGoogleWorkspaceProviderLis user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', default_group_email_domain = '', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True, ) ], autocomplete = { diff --git a/test/test_paginated_google_workspace_provider_mapping_list.py b/test/test_paginated_google_workspace_provider_mapping_list.py index af6637e87..9e7ba1492 100644 --- a/test/test_paginated_google_workspace_provider_mapping_list.py +++ b/test/test_paginated_google_workspace_provider_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_google_workspace_provider_user_list.py b/test/test_paginated_google_workspace_provider_user_list.py index cb5ecadb3..7b46d4864 100644 --- a/test/test_paginated_google_workspace_provider_user_list.py +++ b/test/test_paginated_google_workspace_provider_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_group_kerberos_source_connection_list.py b/test/test_paginated_group_kerberos_source_connection_list.py index 7b04870e1..0c5857e11 100644 --- a/test/test_paginated_group_kerberos_source_connection_list.py +++ b/test/test_paginated_group_kerberos_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_group_ldap_source_connection_list.py b/test/test_paginated_group_ldap_source_connection_list.py index a0f458b8a..4ea91e14a 100644 --- a/test/test_paginated_group_ldap_source_connection_list.py +++ b/test/test_paginated_group_ldap_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_group_list.py b/test/test_paginated_group_list.py index 647f34457..fe29e5eb4 100644 --- a/test/test_paginated_group_list.py +++ b/test/test_paginated_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,8 +50,19 @@ def make_instance(self, include_optional) -> PaginatedGroupList: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', + parents = [ + '' + ], + parents_obj = [ + authentik_client.models.related_group.RelatedGroup( + pk = '', + name = '', + is_superuser = True, + attributes = { + 'key' : null + }, + group_uuid = '', ) + ], users = [ 56 ], @@ -63,9 +74,6 @@ def make_instance(self, include_optional) -> PaginatedGroupList: is_active = True, last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), email = '', - attributes = { - 'key' : null - }, uid = '', ) ], attributes = { @@ -79,11 +87,16 @@ def make_instance(self, include_optional) -> PaginatedGroupList: pk = '', name = '', ) ], + inherited_roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], children = [ '' ], children_obj = [ - authentik_client.models.group_child.GroupChild( + authentik_client.models.related_group.RelatedGroup( pk = '', name = '', is_superuser = True, @@ -110,8 +123,19 @@ def make_instance(self, include_optional) -> PaginatedGroupList: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', + parents = [ + '' + ], + parents_obj = [ + authentik_client.models.related_group.RelatedGroup( + pk = '', + name = '', + is_superuser = True, + attributes = { + 'key' : null + }, + group_uuid = '', ) + ], users = [ 56 ], @@ -123,9 +147,6 @@ def make_instance(self, include_optional) -> PaginatedGroupList: is_active = True, last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), email = '', - attributes = { - 'key' : null - }, uid = '', ) ], attributes = { @@ -139,11 +160,16 @@ def make_instance(self, include_optional) -> PaginatedGroupList: pk = '', name = '', ) ], + inherited_roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], children = [ '' ], children_obj = [ - authentik_client.models.group_child.GroupChild( + authentik_client.models.related_group.RelatedGroup( pk = '', name = '', is_superuser = True, diff --git a/test/test_paginated_group_o_auth_source_connection_list.py b/test/test_paginated_group_o_auth_source_connection_list.py index 72fad4609..ba985fe28 100644 --- a/test/test_paginated_group_o_auth_source_connection_list.py +++ b/test/test_paginated_group_o_auth_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_group_plex_source_connection_list.py b/test/test_paginated_group_plex_source_connection_list.py index f416f0ac6..d1cb76950 100644 --- a/test/test_paginated_group_plex_source_connection_list.py +++ b/test/test_paginated_group_plex_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_group_saml_source_connection_list.py b/test/test_paginated_group_saml_source_connection_list.py index a9a581929..0258f20c0 100644 --- a/test/test_paginated_group_saml_source_connection_list.py +++ b/test/test_paginated_group_saml_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_group_source_connection_list.py b/test/test_paginated_group_source_connection_list.py index a318da314..50a764fe2 100644 --- a/test/test_paginated_group_source_connection_list.py +++ b/test/test_paginated_group_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_group_telegram_source_connection_list.py b/test/test_paginated_group_telegram_source_connection_list.py index cb47d92ed..6aa8c36e4 100644 --- a/test/test_paginated_group_telegram_source_connection_list.py +++ b/test/test_paginated_group_telegram_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_identification_stage_list.py b/test/test_paginated_identification_stage_list.py index 10ee50c95..c0568fa4c 100644 --- a/test/test_paginated_identification_stage_list.py +++ b/test/test_paginated_identification_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedIdentificationStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -82,7 +82,8 @@ def make_instance(self, include_optional) -> PaginatedIdentificationStageList: ], show_source_labels = True, pretend_user_exists = True, - enable_remember_me = True, ) + enable_remember_me = True, + webauthn_stage = '', ) ], autocomplete = { 'key' : null @@ -114,7 +115,7 @@ def make_instance(self, include_optional) -> PaginatedIdentificationStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -136,7 +137,8 @@ def make_instance(self, include_optional) -> PaginatedIdentificationStageList: ], show_source_labels = True, pretend_user_exists = True, - enable_remember_me = True, ) + enable_remember_me = True, + webauthn_stage = '', ) ], autocomplete = { 'key' : null diff --git a/test/test_paginated_initial_permissions_list.py b/test/test_paginated_initial_permissions_list.py index fcb557a4f..8a277adfd 100644 --- a/test/test_paginated_initial_permissions_list.py +++ b/test/test_paginated_initial_permissions_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -48,7 +48,6 @@ def make_instance(self, include_optional) -> PaginatedInitialPermissionsList: authentik_client.models.initial_permissions.InitialPermissions( pk = 56, name = '', - mode = 'user', role = '', permissions = [ 56 @@ -82,7 +81,6 @@ def make_instance(self, include_optional) -> PaginatedInitialPermissionsList: authentik_client.models.initial_permissions.InitialPermissions( pk = 56, name = '', - mode = 'user', role = '', permissions = [ 56 diff --git a/test/test_paginated_invitation_list.py b/test/test_paginated_invitation_list.py index 3b1fd1b97..98040761f 100644 --- a/test/test_paginated_invitation_list.py +++ b/test/test_paginated_invitation_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_invitation_stage_list.py b/test/test_paginated_invitation_stage_list.py index 920bba160..eb42f6b8c 100644 --- a/test/test_paginated_invitation_stage_list.py +++ b/test/test_paginated_invitation_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedInvitationStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -99,7 +99,7 @@ def make_instance(self, include_optional) -> PaginatedInvitationStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_kerberos_source_list.py b/test/test_paginated_kerberos_source_list.py index 6fb7083d9..9d9232eac 100644 --- a/test/test_paginated_kerberos_source_list.py +++ b/test/test_paginated_kerberos_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> PaginatedKerberosSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -67,6 +68,8 @@ def make_instance(self, include_optional) -> PaginatedKerberosSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, group_matching_mode = null, realm = '', krb5_conf = '', @@ -80,7 +83,8 @@ def make_instance(self, include_optional) -> PaginatedKerberosSourceList: }, spnego_server_name = '', spnego_ccache = '', - password_login_update_internal_password = True, ) + password_login_update_internal_password = True, + sync_outgoing_trigger_mode = null, ) ], autocomplete = { 'key' : null @@ -102,6 +106,7 @@ def make_instance(self, include_optional) -> PaginatedKerberosSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -119,6 +124,8 @@ def make_instance(self, include_optional) -> PaginatedKerberosSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, group_matching_mode = null, realm = '', krb5_conf = '', @@ -132,7 +139,8 @@ def make_instance(self, include_optional) -> PaginatedKerberosSourceList: }, spnego_server_name = '', spnego_ccache = '', - password_login_update_internal_password = True, ) + password_login_update_internal_password = True, + sync_outgoing_trigger_mode = null, ) ], autocomplete = { 'key' : null diff --git a/test/test_paginated_kerberos_source_property_mapping_list.py b/test/test_paginated_kerberos_source_property_mapping_list.py index 148f66594..ec9f25b05 100644 --- a/test/test_paginated_kerberos_source_property_mapping_list.py +++ b/test/test_paginated_kerberos_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_kubernetes_service_connection_list.py b/test/test_paginated_kubernetes_service_connection_list.py index 27cc1d168..c54699e75 100644 --- a/test/test_paginated_kubernetes_service_connection_list.py +++ b/test/test_paginated_kubernetes_service_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_ldap_outpost_config_list.py b/test/test_paginated_ldap_outpost_config_list.py index b64b0f0b7..99bba3e47 100644 --- a/test/test_paginated_ldap_outpost_config_list.py +++ b/test/test_paginated_ldap_outpost_config_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_ldap_provider_list.py b/test/test_paginated_ldap_provider_list.py index a904aad31..a5bb1d9d0 100644 --- a/test/test_paginated_ldap_provider_list.py +++ b/test/test_paginated_ldap_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_ldap_source_list.py b/test/test_paginated_ldap_source_list.py index be8055a3d..0baaf1dd3 100644 --- a/test/test_paginated_ldap_source_list.py +++ b/test/test_paginated_ldap_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> PaginatedLDAPSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -67,6 +68,8 @@ def make_instance(self, include_optional) -> PaginatedLDAPSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, server_uri = '', peer_certificate = '', client_certificate = '', @@ -92,7 +95,8 @@ def make_instance(self, include_optional) -> PaginatedLDAPSourceList: } }, lookup_groups_from_user = True, - delete_not_found_objects = True, ) + delete_not_found_objects = True, + sync_outgoing_trigger_mode = null, ) ], autocomplete = { 'key' : null @@ -114,6 +118,7 @@ def make_instance(self, include_optional) -> PaginatedLDAPSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -131,6 +136,8 @@ def make_instance(self, include_optional) -> PaginatedLDAPSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, server_uri = '', peer_certificate = '', client_certificate = '', @@ -156,7 +163,8 @@ def make_instance(self, include_optional) -> PaginatedLDAPSourceList: } }, lookup_groups_from_user = True, - delete_not_found_objects = True, ) + delete_not_found_objects = True, + sync_outgoing_trigger_mode = null, ) ], autocomplete = { 'key' : null diff --git a/test/test_paginated_ldap_source_property_mapping_list.py b/test/test_paginated_ldap_source_property_mapping_list.py index 6da85bd07..3f7177286 100644 --- a/test/test_paginated_ldap_source_property_mapping_list.py +++ b/test/test_paginated_ldap_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_license_list.py b/test/test_paginated_license_list.py index ce7d6f5ce..728cf89be 100644 --- a/test/test_paginated_license_list.py +++ b/test/test_paginated_license_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_microsoft_entra_provider_group_list.py b/test/test_paginated_microsoft_entra_provider_group_list.py index 39c70cdd3..53abdd20b 100644 --- a/test/test_paginated_microsoft_entra_provider_group_list.py +++ b/test/test_paginated_microsoft_entra_provider_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_microsoft_entra_provider_list.py b/test/test_paginated_microsoft_entra_provider_list.py index 548c84794..6be6e32ba 100644 --- a/test/test_paginated_microsoft_entra_provider_list.py +++ b/test/test_paginated_microsoft_entra_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -67,6 +67,8 @@ def make_instance(self, include_optional) -> PaginatedMicrosoftEntraProviderList filter_group = '', user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True, ) ], autocomplete = { @@ -106,6 +108,8 @@ def make_instance(self, include_optional) -> PaginatedMicrosoftEntraProviderList filter_group = '', user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True, ) ], autocomplete = { diff --git a/test/test_paginated_microsoft_entra_provider_mapping_list.py b/test/test_paginated_microsoft_entra_provider_mapping_list.py index f4c0af357..7d35c315b 100644 --- a/test/test_paginated_microsoft_entra_provider_mapping_list.py +++ b/test/test_paginated_microsoft_entra_provider_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_microsoft_entra_provider_user_list.py b/test/test_paginated_microsoft_entra_provider_user_list.py index afb2ecc3f..96edd36d5 100644 --- a/test/test_paginated_microsoft_entra_provider_user_list.py +++ b/test/test_paginated_microsoft_entra_provider_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_mutual_tls_stage_list.py b/test/test_paginated_mutual_tls_stage_list.py index 833c9a2e9..376388def 100644 --- a/test/test_paginated_mutual_tls_stage_list.py +++ b/test/test_paginated_mutual_tls_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedMutualTLSStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -104,7 +104,7 @@ def make_instance(self, include_optional) -> PaginatedMutualTLSStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_notification_list.py b/test/test_paginated_notification_list.py index d4441eb9b..726e1a32c 100644 --- a/test/test_paginated_notification_list.py +++ b/test/test_paginated_notification_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -49,6 +49,8 @@ def make_instance(self, include_optional) -> PaginatedNotificationList: pk = '', severity = null, body = '', + hyperlink = '', + hyperlink_label = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), event = authentik_client.models.event.Event( pk = '', @@ -87,6 +89,8 @@ def make_instance(self, include_optional) -> PaginatedNotificationList: pk = '', severity = null, body = '', + hyperlink = '', + hyperlink_label = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), event = authentik_client.models.event.Event( pk = '', diff --git a/test/test_paginated_notification_rule_list.py b/test/test_paginated_notification_rule_list.py index bde36561b..da3604cfa 100644 --- a/test/test_paginated_notification_rule_list.py +++ b/test/test_paginated_notification_rule_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_notification_transport_list.py b/test/test_paginated_notification_transport_list.py index 5544d3079..8e09c4128 100644 --- a/test/test_paginated_notification_transport_list.py +++ b/test/test_paginated_notification_transport_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_notification_webhook_mapping_list.py b/test/test_paginated_notification_webhook_mapping_list.py index 7a1356b14..10b7141ee 100644 --- a/test/test_paginated_notification_webhook_mapping_list.py +++ b/test/test_paginated_notification_webhook_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_o_auth2_provider_list.py b/test/test_paginated_o_auth2_provider_list.py index a6b1c5d7e..cb1820eac 100644 --- a/test/test_paginated_o_auth2_provider_list.py +++ b/test/test_paginated_o_auth2_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_o_auth_source_list.py b/test/test_paginated_o_auth_source_list.py index 6228fca0e..024473d50 100644 --- a/test/test_paginated_o_auth_source_list.py +++ b/test/test_paginated_o_auth_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> PaginatedOAuthSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -67,12 +68,15 @@ def make_instance(self, include_optional) -> PaginatedOAuthSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, group_matching_mode = null, provider_type = 'apple', request_token_url = '', authorization_url = '', access_token_url = '', profile_url = '', + pkce = 'none', consumer_key = '', callback_url = '', additional_scopes = '', @@ -104,6 +108,7 @@ def make_instance(self, include_optional) -> PaginatedOAuthSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -121,12 +126,15 @@ def make_instance(self, include_optional) -> PaginatedOAuthSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, group_matching_mode = null, provider_type = 'apple', request_token_url = '', authorization_url = '', access_token_url = '', profile_url = '', + pkce = 'none', consumer_key = '', callback_url = '', additional_scopes = '', diff --git a/test/test_paginated_o_auth_source_property_mapping_list.py b/test/test_paginated_o_auth_source_property_mapping_list.py index fd295d557..df5ddd1e2 100644 --- a/test/test_paginated_o_auth_source_property_mapping_list.py +++ b/test/test_paginated_o_auth_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_outpost_list.py b/test/test_paginated_outpost_list.py index e078303a2..6f3ccc453 100644 --- a/test/test_paginated_outpost_list.py +++ b/test/test_paginated_outpost_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_password_expiry_policy_list.py b/test/test_paginated_password_expiry_policy_list.py index 4a28d08aa..9963f3984 100644 --- a/test/test_paginated_password_expiry_policy_list.py +++ b/test/test_paginated_password_expiry_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_password_policy_list.py b/test/test_paginated_password_policy_list.py index 345614639..92a6e4449 100644 --- a/test/test_paginated_password_policy_list.py +++ b/test/test_paginated_password_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_password_stage_list.py b/test/test_paginated_password_stage_list.py index c17524b73..261da429e 100644 --- a/test/test_paginated_password_stage_list.py +++ b/test/test_paginated_password_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedPasswordStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -104,7 +104,7 @@ def make_instance(self, include_optional) -> PaginatedPasswordStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_permission_list.py b/test/test_paginated_permission_list.py index 9918f643b..3910e259e 100644 --- a/test/test_paginated_permission_list.py +++ b/test/test_paginated_permission_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_plex_source_list.py b/test/test_paginated_plex_source_list.py index 53006ff9e..04598dfd8 100644 --- a/test/test_paginated_plex_source_list.py +++ b/test/test_paginated_plex_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> PaginatedPlexSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -67,6 +68,8 @@ def make_instance(self, include_optional) -> PaginatedPlexSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, group_matching_mode = null, client_id = '', allowed_servers = [ @@ -95,6 +98,7 @@ def make_instance(self, include_optional) -> PaginatedPlexSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -112,6 +116,8 @@ def make_instance(self, include_optional) -> PaginatedPlexSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, group_matching_mode = null, client_id = '', allowed_servers = [ diff --git a/test/test_paginated_plex_source_property_mapping_list.py b/test/test_paginated_plex_source_property_mapping_list.py index 56fa012ed..ba6ec27bc 100644 --- a/test/test_paginated_plex_source_property_mapping_list.py +++ b/test/test_paginated_plex_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_policy_binding_list.py b/test/test_paginated_policy_binding_list.py index 1c4e03286..7dd2ebf49 100644 --- a/test/test_paginated_policy_binding_list.py +++ b/test/test_paginated_policy_binding_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_policy_list.py b/test/test_paginated_policy_list.py index 58ed6ee06..8c6fe9aad 100644 --- a/test/test_paginated_policy_list.py +++ b/test/test_paginated_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_prompt_list.py b/test/test_paginated_prompt_list.py index 4df2e09d9..541d46772 100644 --- a/test/test_paginated_prompt_list.py +++ b/test/test_paginated_prompt_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -71,7 +71,7 @@ def make_instance(self, include_optional) -> PaginatedPromptList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -130,7 +130,7 @@ def make_instance(self, include_optional) -> PaginatedPromptList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_prompt_stage_list.py b/test/test_paginated_prompt_stage_list.py index 8ad05316d..35ca28676 100644 --- a/test/test_paginated_prompt_stage_list.py +++ b/test/test_paginated_prompt_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedPromptStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -104,7 +104,7 @@ def make_instance(self, include_optional) -> PaginatedPromptStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_property_mapping_list.py b/test/test_paginated_property_mapping_list.py index 7195dcbe5..696ad1a68 100644 --- a/test/test_paginated_property_mapping_list.py +++ b/test/test_paginated_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_provider_list.py b/test/test_paginated_provider_list.py index c9fdc5abc..bc003ffda 100644 --- a/test/test_paginated_provider_list.py +++ b/test/test_paginated_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_proxy_outpost_config_list.py b/test/test_paginated_proxy_outpost_config_list.py index c5ddfb4b5..d66bcbde1 100644 --- a/test/test_paginated_proxy_outpost_config_list.py +++ b/test/test_paginated_proxy_outpost_config_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_proxy_provider_list.py b/test/test_paginated_proxy_provider_list.py index 518bc946e..8e3393a14 100644 --- a/test/test_paginated_proxy_provider_list.py +++ b/test/test_paginated_proxy_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_rac_property_mapping_list.py b/test/test_paginated_rac_property_mapping_list.py index 5cb837455..dc24009fa 100644 --- a/test/test_paginated_rac_property_mapping_list.py +++ b/test/test_paginated_rac_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_rac_provider_list.py b/test/test_paginated_rac_provider_list.py index 7ce639a38..826705b3f 100644 --- a/test/test_paginated_rac_provider_list.py +++ b/test/test_paginated_rac_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_radius_outpost_config_list.py b/test/test_paginated_radius_outpost_config_list.py index 8715ce34f..ade090d6d 100644 --- a/test/test_paginated_radius_outpost_config_list.py +++ b/test/test_paginated_radius_outpost_config_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_radius_provider_list.py b/test/test_paginated_radius_provider_list.py index 37dac906c..d6463cdde 100644 --- a/test/test_paginated_radius_provider_list.py +++ b/test/test_paginated_radius_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_radius_provider_property_mapping_list.py b/test/test_paginated_radius_provider_property_mapping_list.py index 95dbd590a..3d8140547 100644 --- a/test/test_paginated_radius_provider_property_mapping_list.py +++ b/test/test_paginated_radius_provider_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_redirect_stage_list.py b/test/test_paginated_redirect_stage_list.py index 7a2a577e6..0e1856542 100644 --- a/test/test_paginated_redirect_stage_list.py +++ b/test/test_paginated_redirect_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedRedirectStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -102,7 +102,7 @@ def make_instance(self, include_optional) -> PaginatedRedirectStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_reputation_list.py b/test/test_paginated_reputation_list.py index 50b6d1920..382bd7c31 100644 --- a/test/test_paginated_reputation_list.py +++ b/test/test_paginated_reputation_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_reputation_policy_list.py b/test/test_paginated_reputation_policy_list.py index a2d9f61a3..583be9061 100644 --- a/test/test_paginated_reputation_policy_list.py +++ b/test/test_paginated_reputation_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_role_assigned_object_permission_list.py b/test/test_paginated_role_assigned_object_permission_list.py index 8429b9123..fcfae52d7 100644 --- a/test/test_paginated_role_assigned_object_permission_list.py +++ b/test/test_paginated_role_assigned_object_permission_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> PaginatedRoleAssignedObjectPermissi authentik_client.models.role_assigned_object_permission.RoleAssignedObjectPermission( role_pk = '', name = '', - permissions = [ + object_permissions = [ authentik_client.models.role_object_permission.RoleObjectPermission( id = 56, codename = '', @@ -56,6 +56,14 @@ def make_instance(self, include_optional) -> PaginatedRoleAssignedObjectPermissi app_label = '', object_pk = '', name = '', ) + ], + model_permissions = [ + authentik_client.models.role_model_permission.RoleModelPermission( + id = 56, + codename = '', + model = '', + app_label = '', + name = '', ) ], ) ], autocomplete = { @@ -76,7 +84,7 @@ def make_instance(self, include_optional) -> PaginatedRoleAssignedObjectPermissi authentik_client.models.role_assigned_object_permission.RoleAssignedObjectPermission( role_pk = '', name = '', - permissions = [ + object_permissions = [ authentik_client.models.role_object_permission.RoleObjectPermission( id = 56, codename = '', @@ -84,6 +92,14 @@ def make_instance(self, include_optional) -> PaginatedRoleAssignedObjectPermissi app_label = '', object_pk = '', name = '', ) + ], + model_permissions = [ + authentik_client.models.role_model_permission.RoleModelPermission( + id = 56, + codename = '', + model = '', + app_label = '', + name = '', ) ], ) ], autocomplete = { diff --git a/test/test_paginated_role_list.py b/test/test_paginated_role_list.py index 5b9c314d2..2a3396953 100644 --- a/test/test_paginated_role_list.py +++ b/test/test_paginated_role_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_saml_property_mapping_list.py b/test/test_paginated_saml_property_mapping_list.py index a0806bcf2..1705c48ba 100644 --- a/test/test_paginated_saml_property_mapping_list.py +++ b/test/test_paginated_saml_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_saml_provider_list.py b/test/test_paginated_saml_provider_list.py index 3908bc5b5..6e3d2bafd 100644 --- a/test/test_paginated_saml_provider_list.py +++ b/test/test_paginated_saml_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_saml_source_list.py b/test/test_paginated_saml_source_list.py index b65c471b5..356b4d653 100644 --- a/test/test_paginated_saml_source_list.py +++ b/test/test_paginated_saml_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> PaginatedSAMLSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -67,6 +68,8 @@ def make_instance(self, include_optional) -> PaginatedSAMLSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, group_matching_mode = null, pre_authentication_flow = '', issuer = '', @@ -104,6 +107,7 @@ def make_instance(self, include_optional) -> PaginatedSAMLSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -121,6 +125,8 @@ def make_instance(self, include_optional) -> PaginatedSAMLSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, group_matching_mode = null, pre_authentication_flow = '', issuer = '', diff --git a/test/test_paginated_saml_source_property_mapping_list.py b/test/test_paginated_saml_source_property_mapping_list.py index a8f6babb4..5a4c4cbe5 100644 --- a/test/test_paginated_saml_source_property_mapping_list.py +++ b/test/test_paginated_saml_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_schedule_list.py b/test/test_paginated_schedule_list.py index 3cdb3e606..67f5e2bf2 100644 --- a/test/test_paginated_schedule_list.py +++ b/test/test_paginated_schedule_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_scim_mapping_list.py b/test/test_paginated_scim_mapping_list.py index 508e17dfb..e20296e04 100644 --- a/test/test_paginated_scim_mapping_list.py +++ b/test/test_paginated_scim_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_scim_provider_group_list.py b/test/test_paginated_scim_provider_group_list.py index e08a612cd..0ac179168 100644 --- a/test/test_paginated_scim_provider_group_list.py +++ b/test/test_paginated_scim_provider_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_scim_provider_list.py b/test/test_paginated_scim_provider_list.py index 0f16382e6..f92bedbe1 100644 --- a/test/test_paginated_scim_provider_list.py +++ b/test/test_paginated_scim_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -69,8 +69,11 @@ def make_instance(self, include_optional) -> PaginatedSCIMProviderList: 'key' : null }, compatibility_mode = null, + service_provider_config_cache_timeout = '', exclude_users_service_account = True, filter_group = '', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True, ) ], autocomplete = { @@ -112,8 +115,11 @@ def make_instance(self, include_optional) -> PaginatedSCIMProviderList: 'key' : null }, compatibility_mode = null, + service_provider_config_cache_timeout = '', exclude_users_service_account = True, filter_group = '', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True, ) ], autocomplete = { diff --git a/test/test_paginated_scim_provider_user_list.py b/test/test_paginated_scim_provider_user_list.py index c38a913ba..f3f72009e 100644 --- a/test/test_paginated_scim_provider_user_list.py +++ b/test/test_paginated_scim_provider_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_scim_source_group_list.py b/test/test_paginated_scim_source_group_list.py index dc88b8225..d73985ee6 100644 --- a/test/test_paginated_scim_source_group_list.py +++ b/test/test_paginated_scim_source_group_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_scim_source_list.py b/test/test_paginated_scim_source_list.py index 1f0176186..6a72a1778 100644 --- a/test/test_paginated_scim_source_list.py +++ b/test/test_paginated_scim_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_scim_source_property_mapping_list.py b/test/test_paginated_scim_source_property_mapping_list.py index fb1b73adc..9aba34e19 100644 --- a/test/test_paginated_scim_source_property_mapping_list.py +++ b/test/test_paginated_scim_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_scim_source_user_list.py b/test/test_paginated_scim_source_user_list.py index 9121a0da0..1144a48e5 100644 --- a/test/test_paginated_scim_source_user_list.py +++ b/test/test_paginated_scim_source_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_scope_mapping_list.py b/test/test_paginated_scope_mapping_list.py index 88b8c27ba..37c6bc151 100644 --- a/test/test_paginated_scope_mapping_list.py +++ b/test/test_paginated_scope_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_service_connection_list.py b/test/test_paginated_service_connection_list.py index ca5c3ce3b..2f36f9d8b 100644 --- a/test/test_paginated_service_connection_list.py +++ b/test/test_paginated_service_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_sms_device_list.py b/test/test_paginated_sms_device_list.py index 9ffd8a5f5..dd4171d32 100644 --- a/test/test_paginated_sms_device_list.py +++ b/test/test_paginated_sms_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_source_list.py b/test/test_paginated_source_list.py index ea02c3ba4..15a3dd6dd 100644 --- a/test/test_paginated_source_list.py +++ b/test/test_paginated_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> PaginatedSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -66,7 +67,9 @@ def make_instance(self, include_optional) -> PaginatedSourceList: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ) + icon = '', + icon_url = '', + icon_themed_urls = null, ) ], autocomplete = { 'key' : null @@ -88,6 +91,7 @@ def make_instance(self, include_optional) -> PaginatedSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -104,7 +108,9 @@ def make_instance(self, include_optional) -> PaginatedSourceList: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ) + icon = '', + icon_url = '', + icon_themed_urls = null, ) ], autocomplete = { 'key' : null diff --git a/test/test_paginated_source_stage_list.py b/test/test_paginated_source_stage_list.py index 2be6de2d3..9ecca4ae7 100644 --- a/test/test_paginated_source_stage_list.py +++ b/test/test_paginated_source_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedSourceStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -100,7 +100,7 @@ def make_instance(self, include_optional) -> PaginatedSourceStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_ssf_provider_list.py b/test/test_paginated_ssf_provider_list.py index 76f8a7a7a..c5795e1b4 100644 --- a/test/test_paginated_ssf_provider_list.py +++ b/test/test_paginated_ssf_provider_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_ssf_stream_list.py b/test/test_paginated_ssf_stream_list.py index fd5f56814..8c5a2fc80 100644 --- a/test/test_paginated_ssf_stream_list.py +++ b/test/test_paginated_ssf_stream_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_stage_list.py b/test/test_paginated_stage_list.py index 717c146b9..5243aa903 100644 --- a/test/test_paginated_stage_list.py +++ b/test/test_paginated_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -98,7 +98,7 @@ def make_instance(self, include_optional) -> PaginatedStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_static_device_list.py b/test/test_paginated_static_device_list.py index 6558b6222..0816a8b8e 100644 --- a/test/test_paginated_static_device_list.py +++ b/test/test_paginated_static_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_task_list.py b/test/test_paginated_task_list.py index fb4613fcc..82e56c623 100644 --- a/test/test_paginated_task_list.py +++ b/test/test_paginated_task_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_telegram_source_list.py b/test/test_paginated_telegram_source_list.py index ffc24b018..d9281d899 100644 --- a/test/test_paginated_telegram_source_list.py +++ b/test/test_paginated_telegram_source_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> PaginatedTelegramSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -67,6 +68,8 @@ def make_instance(self, include_optional) -> PaginatedTelegramSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, bot_username = '', request_message_access = True, pre_authentication_flow = '', ) @@ -91,6 +94,7 @@ def make_instance(self, include_optional) -> PaginatedTelegramSourceList: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -108,6 +112,8 @@ def make_instance(self, include_optional) -> PaginatedTelegramSourceList: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = null, bot_username = '', request_message_access = True, pre_authentication_flow = '', ) diff --git a/test/test_paginated_telegram_source_property_mapping_list.py b/test/test_paginated_telegram_source_property_mapping_list.py index 06a6db2ac..3c715a078 100644 --- a/test/test_paginated_telegram_source_property_mapping_list.py +++ b/test/test_paginated_telegram_source_property_mapping_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_tenant_list.py b/test/test_paginated_tenant_list.py index 40a3853e4..a626eed87 100644 --- a/test/test_paginated_tenant_list.py +++ b/test/test_paginated_tenant_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_token_list.py b/test/test_paginated_token_list.py index 07c51740f..364a6fff9 100644 --- a/test/test_paginated_token_list.py +++ b/test/test_paginated_token_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_token_model_list.py b/test/test_paginated_token_model_list.py index eca798dc7..a81e8167a 100644 --- a/test/test_paginated_token_model_list.py +++ b/test/test_paginated_token_model_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -106,12 +106,18 @@ def make_instance(self, include_optional) -> PaginatedTokenModelList: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -207,12 +213,18 @@ def make_instance(self, include_optional) -> PaginatedTokenModelList: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { diff --git a/test/test_paginated_totp_device_list.py b/test/test_paginated_totp_device_list.py index 04af55882..79e5aa48f 100644 --- a/test/test_paginated_totp_device_list.py +++ b/test/test_paginated_totp_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_unique_password_policy_list.py b/test/test_paginated_unique_password_policy_list.py index 0783a2dea..1a28432ea 100644 --- a/test/test_paginated_unique_password_policy_list.py +++ b/test/test_paginated_unique_password_policy_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_user_assigned_object_permission_list.py b/test/test_paginated_user_assigned_object_permission_list.py deleted file mode 100644 index 8b7a6adb1..000000000 --- a/test/test_paginated_user_assigned_object_permission_list.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.paginated_user_assigned_object_permission_list import PaginatedUserAssignedObjectPermissionList - -class TestPaginatedUserAssignedObjectPermissionList(unittest.TestCase): - """PaginatedUserAssignedObjectPermissionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PaginatedUserAssignedObjectPermissionList: - """Test PaginatedUserAssignedObjectPermissionList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PaginatedUserAssignedObjectPermissionList` - """ - model = PaginatedUserAssignedObjectPermissionList() - if include_optional: - return PaginatedUserAssignedObjectPermissionList( - pagination = authentik_client.models.pagination.Pagination( - next = 1.337, - previous = 1.337, - count = 1.337, - current = 1.337, - total_pages = 1.337, - start_index = 1.337, - end_index = 1.337, ), - results = [ - authentik_client.models.user_assigned_object_permission.UserAssignedObjectPermission( - pk = 56, - username = 'A', - name = '', - is_active = True, - last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - email = '', - attributes = { - 'key' : null - }, - uid = '', - permissions = [ - authentik_client.models.user_object_permission.UserObjectPermission( - id = 56, - codename = '', - model = '', - app_label = '', - object_pk = '', - name = '', ) - ], - is_superuser = True, ) - ], - autocomplete = { - 'key' : null - } - ) - else: - return PaginatedUserAssignedObjectPermissionList( - pagination = authentik_client.models.pagination.Pagination( - next = 1.337, - previous = 1.337, - count = 1.337, - current = 1.337, - total_pages = 1.337, - start_index = 1.337, - end_index = 1.337, ), - results = [ - authentik_client.models.user_assigned_object_permission.UserAssignedObjectPermission( - pk = 56, - username = 'A', - name = '', - is_active = True, - last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - email = '', - attributes = { - 'key' : null - }, - uid = '', - permissions = [ - authentik_client.models.user_object_permission.UserObjectPermission( - id = 56, - codename = '', - model = '', - app_label = '', - object_pk = '', - name = '', ) - ], - is_superuser = True, ) - ], - autocomplete = { - 'key' : null - }, - ) - """ - - def testPaginatedUserAssignedObjectPermissionList(self): - """Test PaginatedUserAssignedObjectPermissionList""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_paginated_user_consent_list.py b/test/test_paginated_user_consent_list.py index e028c2d21..ed1aee548 100644 --- a/test/test_paginated_user_consent_list.py +++ b/test/test_paginated_user_consent_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -66,12 +66,18 @@ def make_instance(self, include_optional) -> PaginatedUserConsentList: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -115,6 +121,8 @@ def make_instance(self, include_optional) -> PaginatedUserConsentList: open_in_new_tab = True, meta_launch_url = '', meta_icon = '', + meta_icon_url = '', + meta_icon_themed_urls = null, meta_description = '', meta_publisher = '', policy_engine_mode = 'all', @@ -157,12 +165,18 @@ def make_instance(self, include_optional) -> PaginatedUserConsentList: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -206,6 +220,8 @@ def make_instance(self, include_optional) -> PaginatedUserConsentList: open_in_new_tab = True, meta_launch_url = '', meta_icon = '', + meta_icon_url = '', + meta_icon_themed_urls = null, meta_description = '', meta_publisher = '', policy_engine_mode = 'all', diff --git a/test/test_paginated_user_delete_stage_list.py b/test/test_paginated_user_delete_stage_list.py index 7d2bc0acb..700668647 100644 --- a/test/test_paginated_user_delete_stage_list.py +++ b/test/test_paginated_user_delete_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedUserDeleteStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -98,7 +98,7 @@ def make_instance(self, include_optional) -> PaginatedUserDeleteStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_user_kerberos_source_connection_list.py b/test/test_paginated_user_kerberos_source_connection_list.py index 35fcd15c5..838ba261f 100644 --- a/test/test_paginated_user_kerberos_source_connection_list.py +++ b/test/test_paginated_user_kerberos_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_user_ldap_source_connection_list.py b/test/test_paginated_user_ldap_source_connection_list.py index d0895098b..2a94cce34 100644 --- a/test/test_paginated_user_ldap_source_connection_list.py +++ b/test/test_paginated_user_ldap_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_user_list.py b/test/test_paginated_user_list.py index 4aa152e82..9e392c317 100644 --- a/test/test_paginated_user_list.py +++ b/test/test_paginated_user_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -62,12 +62,18 @@ def make_instance(self, include_optional) -> PaginatedUserList: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -112,12 +118,18 @@ def make_instance(self, include_optional) -> PaginatedUserList: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { diff --git a/test/test_paginated_user_login_stage_list.py b/test/test_paginated_user_login_stage_list.py index cf8464303..8c53a007b 100644 --- a/test/test_paginated_user_login_stage_list.py +++ b/test/test_paginated_user_login_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedUserLoginStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -104,7 +104,7 @@ def make_instance(self, include_optional) -> PaginatedUserLoginStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_user_logout_stage_list.py b/test/test_paginated_user_logout_stage_list.py index 9527bebd2..38950a3d8 100644 --- a/test/test_paginated_user_logout_stage_list.py +++ b/test/test_paginated_user_logout_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedUserLogoutStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -98,7 +98,7 @@ def make_instance(self, include_optional) -> PaginatedUserLogoutStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_user_o_auth_source_connection_list.py b/test/test_paginated_user_o_auth_source_connection_list.py index ca8e63672..c8a350022 100644 --- a/test/test_paginated_user_o_auth_source_connection_list.py +++ b/test/test_paginated_user_o_auth_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_user_plex_source_connection_list.py b/test/test_paginated_user_plex_source_connection_list.py index 795b83f88..f5af20d64 100644 --- a/test/test_paginated_user_plex_source_connection_list.py +++ b/test/test_paginated_user_plex_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_user_saml_source_connection_list.py b/test/test_paginated_user_saml_source_connection_list.py index df52e4b25..14ff8a63f 100644 --- a/test/test_paginated_user_saml_source_connection_list.py +++ b/test/test_paginated_user_saml_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_user_source_connection_list.py b/test/test_paginated_user_source_connection_list.py index 38d2f5f22..c550572c1 100644 --- a/test/test_paginated_user_source_connection_list.py +++ b/test/test_paginated_user_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_user_telegram_source_connection_list.py b/test/test_paginated_user_telegram_source_connection_list.py index 8f0f66402..2465bd966 100644 --- a/test/test_paginated_user_telegram_source_connection_list.py +++ b/test/test_paginated_user_telegram_source_connection_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_user_write_stage_list.py b/test/test_paginated_user_write_stage_list.py index b57a149e4..cd8547fba 100644 --- a/test/test_paginated_user_write_stage_list.py +++ b/test/test_paginated_user_write_stage_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> PaginatedUserWriteStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -103,7 +103,7 @@ def make_instance(self, include_optional) -> PaginatedUserWriteStageList: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_paginated_web_authn_device_list.py b/test/test_paginated_web_authn_device_list.py index f620eea96..12c1a19e3 100644 --- a/test/test_paginated_web_authn_device_list.py +++ b/test/test_paginated_web_authn_device_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_paginated_web_authn_device_type_list.py b/test/test_paginated_web_authn_device_type_list.py index 308cefc7e..34d2fcd55 100644 --- a/test/test_paginated_web_authn_device_type_list.py +++ b/test/test_paginated_web_authn_device_type_list.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_pagination.py b/test/test_pagination.py index 14a2075f8..4cb288113 100644 --- a/test/test_pagination.py +++ b/test/test_pagination.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_partial_group.py b/test/test_partial_group.py index 6e94fe75a..4a9a764ba 100644 --- a/test/test_partial_group.py +++ b/test/test_partial_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,8 +40,6 @@ def make_instance(self, include_optional) -> PartialGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null } @@ -51,7 +49,6 @@ def make_instance(self, include_optional) -> PartialGroup: pk = '', num_pk = 56, name = '', - parent_name = '', ) """ diff --git a/test/test_partial_user.py b/test/test_partial_user.py index ed13b9098..efcaf4888 100644 --- a/test/test_partial_user.py +++ b/test/test_partial_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_password_challenge.py b/test/test_password_challenge.py index 76071d04f..22a43e56e 100644 --- a/test/test_password_challenge.py +++ b/test/test_password_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PasswordChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-password', diff --git a/test/test_password_challenge_response_request.py b/test/test_password_challenge_response_request.py index cc63cb2e9..487a6c4b8 100644 --- a/test/test_password_challenge_response_request.py +++ b/test/test_password_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_password_expiry_policy.py b/test/test_password_expiry_policy.py index 0b90237f3..09f4b2f54 100644 --- a/test/test_password_expiry_policy.py +++ b/test/test_password_expiry_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_password_expiry_policy_request.py b/test/test_password_expiry_policy_request.py index 90b2edb62..e7821ed84 100644 --- a/test/test_password_expiry_policy_request.py +++ b/test/test_password_expiry_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_password_policy.py b/test/test_password_policy.py index d4a61cb24..aab2b1d86 100644 --- a/test/test_password_policy.py +++ b/test/test_password_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_password_policy_request.py b/test/test_password_policy_request.py index 9b19e1a1b..6a2d01d7c 100644 --- a/test/test_password_policy_request.py +++ b/test/test_password_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_password_stage.py b/test/test_password_stage.py index 700d11f2c..2d196829d 100644 --- a/test/test_password_stage.py +++ b/test/test_password_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> PasswordStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -72,6 +72,21 @@ def make_instance(self, include_optional) -> PasswordStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], backends = [ 'authentik.core.auth.InbuiltBackend' ], diff --git a/test/test_password_stage_request.py b/test/test_password_stage_request.py index 06ac6eed0..944dc65c1 100644 --- a/test/test_password_stage_request.py +++ b/test/test_password_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PasswordStageRequest: if include_optional: return PasswordStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], backends = [ 'authentik.core.auth.InbuiltBackend' ], diff --git a/test/test_patched_agent_connector_request.py b/test/test_patched_agent_connector_request.py new file mode 100644 index 000000000..9ebb3e15a --- /dev/null +++ b/test/test_patched_agent_connector_request.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.patched_agent_connector_request import PatchedAgentConnectorRequest + +class TestPatchedAgentConnectorRequest(unittest.TestCase): + """PatchedAgentConnectorRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PatchedAgentConnectorRequest: + """Test PatchedAgentConnectorRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PatchedAgentConnectorRequest` + """ + model = PatchedAgentConnectorRequest() + if include_optional: + return PatchedAgentConnectorRequest( + connector_uuid = '', + name = '0', + enabled = True, + snapshot_expiry = '0', + auth_session_duration = '0', + auth_terminate_session_on_expiry = True, + refresh_interval = '0', + authorization_flow = '', + nss_uid_offset = 0, + nss_gid_offset = 0, + challenge_key = '', + challenge_idle_timeout = '0', + challenge_trigger_check_in = True, + jwt_federation_providers = [ + 56 + ] + ) + else: + return PatchedAgentConnectorRequest( + ) + """ + + def testPatchedAgentConnectorRequest(self): + """Test PatchedAgentConnectorRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_patched_application_entitlement_request.py b/test/test_patched_application_entitlement_request.py index d791bd071..7d432cfec 100644 --- a/test/test_patched_application_entitlement_request.py +++ b/test/test_patched_application_entitlement_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_application_request.py b/test/test_patched_application_request.py index a3051f022..5642454bc 100644 --- a/test/test_patched_application_request.py +++ b/test/test_patched_application_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> PatchedApplicationRequest: ], open_in_new_tab = True, meta_launch_url = '', + meta_icon = '', meta_description = '', meta_publisher = '', policy_engine_mode = 'all', diff --git a/test/test_patched_authenticator_duo_stage_request.py b/test/test_patched_authenticator_duo_stage_request.py index 11722f251..496e2ec79 100644 --- a/test/test_patched_authenticator_duo_stage_request.py +++ b/test/test_patched_authenticator_duo_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedAuthenticatorDuoStageRequest if include_optional: return PatchedAuthenticatorDuoStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', client_id = '0', diff --git a/test/test_patched_authenticator_email_stage_request.py b/test/test_patched_authenticator_email_stage_request.py index 6ca1f2846..98e27d2a0 100644 --- a/test/test_patched_authenticator_email_stage_request.py +++ b/test/test_patched_authenticator_email_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedAuthenticatorEmailStageReque if include_optional: return PatchedAuthenticatorEmailStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', use_global_settings = True, diff --git a/test/test_patched_authenticator_endpoint_gdtc_stage_request.py b/test/test_patched_authenticator_endpoint_gdtc_stage_request.py index 5ee218b5a..657a01ef1 100644 --- a/test/test_patched_authenticator_endpoint_gdtc_stage_request.py +++ b/test/test_patched_authenticator_endpoint_gdtc_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedAuthenticatorEndpointGDTCSta if include_optional: return PatchedAuthenticatorEndpointGDTCStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', credentials = { diff --git a/test/test_patched_authenticator_sms_stage_request.py b/test/test_patched_authenticator_sms_stage_request.py index 189e49266..dddee7166 100644 --- a/test/test_patched_authenticator_sms_stage_request.py +++ b/test/test_patched_authenticator_sms_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedAuthenticatorSMSStageRequest if include_optional: return PatchedAuthenticatorSMSStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', provider = 'twilio', diff --git a/test/test_patched_authenticator_static_stage_request.py b/test/test_patched_authenticator_static_stage_request.py index c6d30063d..10f371d9a 100644 --- a/test/test_patched_authenticator_static_stage_request.py +++ b/test/test_patched_authenticator_static_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedAuthenticatorStaticStageRequ if include_optional: return PatchedAuthenticatorStaticStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', token_count = 0, diff --git a/test/test_patched_authenticator_totp_stage_request.py b/test/test_patched_authenticator_totp_stage_request.py index 0c061d1f4..62fdbf44b 100644 --- a/test/test_patched_authenticator_totp_stage_request.py +++ b/test/test_patched_authenticator_totp_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedAuthenticatorTOTPStageReques if include_optional: return PatchedAuthenticatorTOTPStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', digits = '6' diff --git a/test/test_patched_authenticator_validate_stage_request.py b/test/test_patched_authenticator_validate_stage_request.py index a241efd40..3ad3f118b 100644 --- a/test/test_patched_authenticator_validate_stage_request.py +++ b/test/test_patched_authenticator_validate_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedAuthenticatorValidateStageRe if include_optional: return PatchedAuthenticatorValidateStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], not_configured_action = 'skip', device_classes = [ 'static' diff --git a/test/test_patched_authenticator_web_authn_stage_request.py b/test/test_patched_authenticator_web_authn_stage_request.py index 27e084c59..9e8b50e4b 100644 --- a/test/test_patched_authenticator_web_authn_stage_request.py +++ b/test/test_patched_authenticator_web_authn_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedAuthenticatorWebAuthnStageRe if include_optional: return PatchedAuthenticatorWebAuthnStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], configure_flow = '', friendly_name = '', user_verification = 'required', diff --git a/test/test_patched_blueprint_instance_request.py b/test/test_patched_blueprint_instance_request.py index e0ecbc374..1e6e9b555 100644 --- a/test/test_patched_blueprint_instance_request.py +++ b/test/test_patched_blueprint_instance_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_brand_request.py b/test/test_patched_brand_request.py index 43e6f4a68..d3b183b79 100644 --- a/test/test_patched_brand_request.py +++ b/test/test_patched_brand_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_captcha_stage_request.py b/test/test_patched_captcha_stage_request.py index f4cac4e7e..685b737b5 100644 --- a/test/test_patched_captcha_stage_request.py +++ b/test/test_patched_captcha_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedCaptchaStageRequest: if include_optional: return PatchedCaptchaStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], public_key = '0', private_key = '0', js_url = '0', diff --git a/test/test_patched_certificate_key_pair_request.py b/test/test_patched_certificate_key_pair_request.py index 5c7bf5db1..a6f576291 100644 --- a/test/test_patched_certificate_key_pair_request.py +++ b/test/test_patched_certificate_key_pair_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_connection_token_request.py b/test/test_patched_connection_token_request.py index 5b2cc60c4..95939effd 100644 --- a/test/test_patched_connection_token_request.py +++ b/test/test_patched_connection_token_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_consent_stage_request.py b/test/test_patched_consent_stage_request.py index 7cf609abe..a9c1f4550 100644 --- a/test/test_patched_consent_stage_request.py +++ b/test/test_patched_consent_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedConsentStageRequest: if include_optional: return PatchedConsentStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], mode = 'always_require', consent_expire_in = '0' ) diff --git a/test/test_patched_deny_stage_request.py b/test/test_patched_deny_stage_request.py index e63dbc140..972420c58 100644 --- a/test/test_patched_deny_stage_request.py +++ b/test/test_patched_deny_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedDenyStageRequest: if include_optional: return PatchedDenyStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], deny_message = '' ) else: diff --git a/test/test_patched_device_access_group_request.py b/test/test_patched_device_access_group_request.py new file mode 100644 index 000000000..7cac26710 --- /dev/null +++ b/test/test_patched_device_access_group_request.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.patched_device_access_group_request import PatchedDeviceAccessGroupRequest + +class TestPatchedDeviceAccessGroupRequest(unittest.TestCase): + """PatchedDeviceAccessGroupRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PatchedDeviceAccessGroupRequest: + """Test PatchedDeviceAccessGroupRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PatchedDeviceAccessGroupRequest` + """ + model = PatchedDeviceAccessGroupRequest() + if include_optional: + return PatchedDeviceAccessGroupRequest( + name = '0' + ) + else: + return PatchedDeviceAccessGroupRequest( + ) + """ + + def testPatchedDeviceAccessGroupRequest(self): + """Test PatchedDeviceAccessGroupRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_patched_device_user_binding_request.py b/test/test_patched_device_user_binding_request.py new file mode 100644 index 000000000..2fd741f9d --- /dev/null +++ b/test/test_patched_device_user_binding_request.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.patched_device_user_binding_request import PatchedDeviceUserBindingRequest + +class TestPatchedDeviceUserBindingRequest(unittest.TestCase): + """PatchedDeviceUserBindingRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PatchedDeviceUserBindingRequest: + """Test PatchedDeviceUserBindingRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PatchedDeviceUserBindingRequest` + """ + model = PatchedDeviceUserBindingRequest() + if include_optional: + return PatchedDeviceUserBindingRequest( + policy = '', + group = '', + user = 56, + target = '', + negate = True, + enabled = True, + order = -2147483648, + timeout = 0, + failure_result = True, + is_primary = True + ) + else: + return PatchedDeviceUserBindingRequest( + ) + """ + + def testPatchedDeviceUserBindingRequest(self): + """Test PatchedDeviceUserBindingRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_patched_docker_service_connection_request.py b/test/test_patched_docker_service_connection_request.py index 8169d5e6f..1c89e1162 100644 --- a/test/test_patched_docker_service_connection_request.py +++ b/test/test_patched_docker_service_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_domain_request.py b/test/test_patched_domain_request.py index 95075fb20..b347bca83 100644 --- a/test/test_patched_domain_request.py +++ b/test/test_patched_domain_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_dummy_policy_request.py b/test/test_patched_dummy_policy_request.py index 7ae17c9bd..cacafd171 100644 --- a/test/test_patched_dummy_policy_request.py +++ b/test/test_patched_dummy_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_dummy_stage_request.py b/test/test_patched_dummy_stage_request.py index 64c12d8b4..e681fb54f 100644 --- a/test/test_patched_dummy_stage_request.py +++ b/test/test_patched_dummy_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedDummyStageRequest: if include_optional: return PatchedDummyStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], throw_error = True ) else: diff --git a/test/test_patched_duo_device_request.py b/test/test_patched_duo_device_request.py index 9967cffa8..01398664d 100644 --- a/test/test_patched_duo_device_request.py +++ b/test/test_patched_duo_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_email_device_request.py b/test/test_patched_email_device_request.py index ee45ba8f2..a6b7bdf18 100644 --- a/test/test_patched_email_device_request.py +++ b/test/test_patched_email_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_email_stage_request.py b/test/test_patched_email_stage_request.py index b20d81a7e..c7da5f48a 100644 --- a/test/test_patched_email_stage_request.py +++ b/test/test_patched_email_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedEmailStageRequest: if include_optional: return PatchedEmailStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], use_global_settings = True, host = '0', port = -2147483648, diff --git a/test/test_patched_endpoint_device_request.py b/test/test_patched_endpoint_device_request.py index b2c15f895..8359f939f 100644 --- a/test/test_patched_endpoint_device_request.py +++ b/test/test_patched_endpoint_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,8 +36,16 @@ def make_instance(self, include_optional) -> PatchedEndpointDeviceRequest: model = PatchedEndpointDeviceRequest() if include_optional: return PatchedEndpointDeviceRequest( - pk = '', - name = '0' + device_uuid = '', + name = '0', + access_group = '', + access_group_obj = authentik_client.models.device_access_group_request.DeviceAccessGroupRequest( + name = '0', ), + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + attributes = { + 'key' : null + } ) else: return PatchedEndpointDeviceRequest( diff --git a/test/test_patched_endpoint_request.py b/test/test_patched_endpoint_request.py index d20c7b5f8..628c35176 100644 --- a/test/test_patched_endpoint_request.py +++ b/test/test_patched_endpoint_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_endpoint_stage_request.py b/test/test_patched_endpoint_stage_request.py new file mode 100644 index 000000000..186b8e8b7 --- /dev/null +++ b/test/test_patched_endpoint_stage_request.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.patched_endpoint_stage_request import PatchedEndpointStageRequest + +class TestPatchedEndpointStageRequest(unittest.TestCase): + """PatchedEndpointStageRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PatchedEndpointStageRequest: + """Test PatchedEndpointStageRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PatchedEndpointStageRequest` + """ + model = PatchedEndpointStageRequest() + if include_optional: + return PatchedEndpointStageRequest( + name = '0', + connector = '', + mode = 'optional' + ) + else: + return PatchedEndpointStageRequest( + ) + """ + + def testPatchedEndpointStageRequest(self): + """Test PatchedEndpointStageRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_patched_enrollment_token_request.py b/test/test_patched_enrollment_token_request.py new file mode 100644 index 000000000..406b21599 --- /dev/null +++ b/test/test_patched_enrollment_token_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.patched_enrollment_token_request import PatchedEnrollmentTokenRequest + +class TestPatchedEnrollmentTokenRequest(unittest.TestCase): + """PatchedEnrollmentTokenRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PatchedEnrollmentTokenRequest: + """Test PatchedEnrollmentTokenRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PatchedEnrollmentTokenRequest` + """ + model = PatchedEnrollmentTokenRequest() + if include_optional: + return PatchedEnrollmentTokenRequest( + device_group = '', + connector = '', + name = '0', + expiring = True, + expires = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + ) + else: + return PatchedEnrollmentTokenRequest( + ) + """ + + def testPatchedEnrollmentTokenRequest(self): + """Test PatchedEnrollmentTokenRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_patched_event_matcher_policy_request.py b/test/test_patched_event_matcher_policy_request.py index f4c761a60..18a2dd1f5 100644 --- a/test/test_patched_event_matcher_policy_request.py +++ b/test/test_patched_event_matcher_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_event_request.py b/test/test_patched_event_request.py index 56a3c053b..97963b06b 100644 --- a/test/test_patched_event_request.py +++ b/test/test_patched_event_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_expression_policy_request.py b/test/test_patched_expression_policy_request.py index 86cf06d86..0d314f8b4 100644 --- a/test/test_patched_expression_policy_request.py +++ b/test/test_patched_expression_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_extra_role_object_permission_request.py b/test/test_patched_extra_role_object_permission_request.py deleted file mode 100644 index 3af4ec877..000000000 --- a/test/test_patched_extra_role_object_permission_request.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.patched_extra_role_object_permission_request import PatchedExtraRoleObjectPermissionRequest - -class TestPatchedExtraRoleObjectPermissionRequest(unittest.TestCase): - """PatchedExtraRoleObjectPermissionRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PatchedExtraRoleObjectPermissionRequest: - """Test PatchedExtraRoleObjectPermissionRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PatchedExtraRoleObjectPermissionRequest` - """ - model = PatchedExtraRoleObjectPermissionRequest() - if include_optional: - return PatchedExtraRoleObjectPermissionRequest( - object_pk = '0' - ) - else: - return PatchedExtraRoleObjectPermissionRequest( - ) - """ - - def testPatchedExtraRoleObjectPermissionRequest(self): - """Test PatchedExtraRoleObjectPermissionRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_patched_extra_user_object_permission_request.py b/test/test_patched_extra_user_object_permission_request.py deleted file mode 100644 index f4cac8967..000000000 --- a/test/test_patched_extra_user_object_permission_request.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.patched_extra_user_object_permission_request import PatchedExtraUserObjectPermissionRequest - -class TestPatchedExtraUserObjectPermissionRequest(unittest.TestCase): - """PatchedExtraUserObjectPermissionRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PatchedExtraUserObjectPermissionRequest: - """Test PatchedExtraUserObjectPermissionRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PatchedExtraUserObjectPermissionRequest` - """ - model = PatchedExtraUserObjectPermissionRequest() - if include_optional: - return PatchedExtraUserObjectPermissionRequest( - object_pk = '0' - ) - else: - return PatchedExtraUserObjectPermissionRequest( - ) - """ - - def testPatchedExtraUserObjectPermissionRequest(self): - """Test PatchedExtraUserObjectPermissionRequest""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_patched_flow_request.py b/test/test_patched_flow_request.py index 9168e989a..02e16ea67 100644 --- a/test/test_patched_flow_request.py +++ b/test/test_patched_flow_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> PatchedFlowRequest: slug = 'z0', title = '0', designation = 'authentication', + background = '', policy_engine_mode = 'all', compatibility_mode = True, layout = 'stacked', diff --git a/test/test_patched_flow_stage_binding_request.py b/test/test_patched_flow_stage_binding_request.py index 6ecc789cc..cbe4e6dcf 100644 --- a/test/test_patched_flow_stage_binding_request.py +++ b/test/test_patched_flow_stage_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_geo_ip_policy_request.py b/test/test_patched_geo_ip_policy_request.py index 7a1c7cc28..66373c329 100644 --- a/test/test_patched_geo_ip_policy_request.py +++ b/test/test_patched_geo_ip_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_google_endpoint_device_request.py b/test/test_patched_google_endpoint_device_request.py new file mode 100644 index 000000000..3924a8158 --- /dev/null +++ b/test/test_patched_google_endpoint_device_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.patched_google_endpoint_device_request import PatchedGoogleEndpointDeviceRequest + +class TestPatchedGoogleEndpointDeviceRequest(unittest.TestCase): + """PatchedGoogleEndpointDeviceRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PatchedGoogleEndpointDeviceRequest: + """Test PatchedGoogleEndpointDeviceRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PatchedGoogleEndpointDeviceRequest` + """ + model = PatchedGoogleEndpointDeviceRequest() + if include_optional: + return PatchedGoogleEndpointDeviceRequest( + pk = '', + name = '0' + ) + else: + return PatchedGoogleEndpointDeviceRequest( + ) + """ + + def testPatchedGoogleEndpointDeviceRequest(self): + """Test PatchedGoogleEndpointDeviceRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_patched_google_workspace_provider_mapping_request.py b/test/test_patched_google_workspace_provider_mapping_request.py index f04dc38ea..0f4df1014 100644 --- a/test/test_patched_google_workspace_provider_mapping_request.py +++ b/test/test_patched_google_workspace_provider_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_google_workspace_provider_request.py b/test/test_patched_google_workspace_provider_request.py index 019fe0c5a..a94ec25bf 100644 --- a/test/test_patched_google_workspace_provider_request.py +++ b/test/test_patched_google_workspace_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -53,6 +53,8 @@ def make_instance(self, include_optional) -> PatchedGoogleWorkspaceProviderReque user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', default_group_email_domain = '0', + sync_page_size = 1, + sync_page_timeout = '0', dry_run = True ) else: diff --git a/test/test_patched_group_kerberos_source_connection_request.py b/test/test_patched_group_kerberos_source_connection_request.py index e99d757f1..662793c21 100644 --- a/test/test_patched_group_kerberos_source_connection_request.py +++ b/test/test_patched_group_kerberos_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_group_ldap_source_connection_request.py b/test/test_patched_group_ldap_source_connection_request.py index 8deda08a1..f17bd5e7b 100644 --- a/test/test_patched_group_ldap_source_connection_request.py +++ b/test/test_patched_group_ldap_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_group_o_auth_source_connection_request.py b/test/test_patched_group_o_auth_source_connection_request.py index 892ed385b..5d779fb8b 100644 --- a/test/test_patched_group_o_auth_source_connection_request.py +++ b/test/test_patched_group_o_auth_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_group_plex_source_connection_request.py b/test/test_patched_group_plex_source_connection_request.py index 8f3299086..61f105059 100644 --- a/test/test_patched_group_plex_source_connection_request.py +++ b/test/test_patched_group_plex_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_group_request.py b/test/test_patched_group_request.py index 66e42dc2e..e7bec758f 100644 --- a/test/test_patched_group_request.py +++ b/test/test_patched_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,7 +38,9 @@ def make_instance(self, include_optional) -> PatchedGroupRequest: return PatchedGroupRequest( name = '0', is_superuser = True, - parent = '', + parents = [ + '' + ], users = [ 56 ], @@ -46,9 +48,6 @@ def make_instance(self, include_optional) -> PatchedGroupRequest: 'key' : null }, roles = [ - '' - ], - children = [ '' ] ) diff --git a/test/test_patched_group_saml_source_connection_request.py b/test/test_patched_group_saml_source_connection_request.py index 54a9cb2f9..95f5b5803 100644 --- a/test/test_patched_group_saml_source_connection_request.py +++ b/test/test_patched_group_saml_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_group_source_connection_request.py b/test/test_patched_group_source_connection_request.py index 6de356edf..8975dfed9 100644 --- a/test/test_patched_group_source_connection_request.py +++ b/test/test_patched_group_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_group_telegram_source_connection_request.py b/test/test_patched_group_telegram_source_connection_request.py index 2a8c66b07..c54085c94 100644 --- a/test/test_patched_group_telegram_source_connection_request.py +++ b/test/test_patched_group_telegram_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_identification_stage_request.py b/test/test_patched_identification_stage_request.py index 490065c94..9920c293c 100644 --- a/test/test_patched_identification_stage_request.py +++ b/test/test_patched_identification_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedIdentificationStageRequest: if include_optional: return PatchedIdentificationStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], user_fields = [ 'email' ], @@ -63,7 +52,8 @@ def make_instance(self, include_optional) -> PatchedIdentificationStageRequest: ], show_source_labels = True, pretend_user_exists = True, - enable_remember_me = True + enable_remember_me = True, + webauthn_stage = '' ) else: return PatchedIdentificationStageRequest( diff --git a/test/test_patched_initial_permissions_request.py b/test/test_patched_initial_permissions_request.py index 0c32bb356..11a37a9d9 100644 --- a/test/test_patched_initial_permissions_request.py +++ b/test/test_patched_initial_permissions_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,7 +37,6 @@ def make_instance(self, include_optional) -> PatchedInitialPermissionsRequest: if include_optional: return PatchedInitialPermissionsRequest( name = '0', - mode = 'user', role = '', permissions = [ 56 diff --git a/test/test_patched_invitation_request.py b/test/test_patched_invitation_request.py index 58145df31..4b01a0309 100644 --- a/test/test_patched_invitation_request.py +++ b/test/test_patched_invitation_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_invitation_stage_request.py b/test/test_patched_invitation_stage_request.py index a4e8bc23d..642fa6073 100644 --- a/test/test_patched_invitation_stage_request.py +++ b/test/test_patched_invitation_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedInvitationStageRequest: if include_optional: return PatchedInvitationStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], continue_flow_without_invitation = True ) else: diff --git a/test/test_patched_kerberos_source_property_mapping_request.py b/test/test_patched_kerberos_source_property_mapping_request.py index a50dc56b2..3f68bdf2d 100644 --- a/test/test_patched_kerberos_source_property_mapping_request.py +++ b/test/test_patched_kerberos_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_kerberos_source_request.py b/test/test_patched_kerberos_source_request.py index aeee49bdd..d6e12bb69 100644 --- a/test/test_patched_kerberos_source_request.py +++ b/test/test_patched_kerberos_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PatchedKerberosSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> PatchedKerberosSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', group_matching_mode = 'identifier', realm = '0', krb5_conf = '', @@ -63,7 +65,8 @@ def make_instance(self, include_optional) -> PatchedKerberosSourceRequest: spnego_server_name = '', spnego_keytab = '', spnego_ccache = '', - password_login_update_internal_password = True + password_login_update_internal_password = True, + sync_outgoing_trigger_mode = 'none' ) else: return PatchedKerberosSourceRequest( diff --git a/test/test_patched_kubernetes_service_connection_request.py b/test/test_patched_kubernetes_service_connection_request.py index 34a2c01ca..de8a60c44 100644 --- a/test/test_patched_kubernetes_service_connection_request.py +++ b/test/test_patched_kubernetes_service_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_ldap_provider_request.py b/test/test_patched_ldap_provider_request.py index 02bfc3913..220b9ea65 100644 --- a/test/test_patched_ldap_provider_request.py +++ b/test/test_patched_ldap_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_ldap_source_property_mapping_request.py b/test/test_patched_ldap_source_property_mapping_request.py index 3c4f88042..7441e56ed 100644 --- a/test/test_patched_ldap_source_property_mapping_request.py +++ b/test/test_patched_ldap_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_ldap_source_request.py b/test/test_patched_ldap_source_request.py index 37e0e2600..4b5963669 100644 --- a/test/test_patched_ldap_source_request.py +++ b/test/test_patched_ldap_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PatchedLDAPSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> PatchedLDAPSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', server_uri = '0', peer_certificate = '', client_certificate = '', @@ -71,7 +73,8 @@ def make_instance(self, include_optional) -> PatchedLDAPSourceRequest: sync_groups = True, sync_parent_group = '', lookup_groups_from_user = True, - delete_not_found_objects = True + delete_not_found_objects = True, + sync_outgoing_trigger_mode = 'none' ) else: return PatchedLDAPSourceRequest( diff --git a/test/test_patched_license_request.py b/test/test_patched_license_request.py index c57af3821..ac5e33a4c 100644 --- a/test/test_patched_license_request.py +++ b/test/test_patched_license_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_microsoft_entra_provider_mapping_request.py b/test/test_patched_microsoft_entra_provider_mapping_request.py index bbb6ae269..f3e7b2f8f 100644 --- a/test/test_patched_microsoft_entra_provider_mapping_request.py +++ b/test/test_patched_microsoft_entra_provider_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_microsoft_entra_provider_request.py b/test/test_patched_microsoft_entra_provider_request.py index 94e04ca95..3fb990ab4 100644 --- a/test/test_patched_microsoft_entra_provider_request.py +++ b/test/test_patched_microsoft_entra_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,6 +50,8 @@ def make_instance(self, include_optional) -> PatchedMicrosoftEntraProviderReques filter_group = '', user_delete_action = 'do_nothing', group_delete_action = 'do_nothing', + sync_page_size = 1, + sync_page_timeout = '0', dry_run = True ) else: diff --git a/test/test_patched_mutual_tls_stage_request.py b/test/test_patched_mutual_tls_stage_request.py index 75bc34801..d9a1fb9b1 100644 --- a/test/test_patched_mutual_tls_stage_request.py +++ b/test/test_patched_mutual_tls_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedMutualTLSStageRequest: if include_optional: return PatchedMutualTLSStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], mode = 'optional', certificate_authorities = [ '' diff --git a/test/test_patched_notification_request.py b/test/test_patched_notification_request.py index 701122ab5..35d4446ce 100644 --- a/test/test_patched_notification_request.py +++ b/test/test_patched_notification_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,6 +36,8 @@ def make_instance(self, include_optional) -> PatchedNotificationRequest: model = PatchedNotificationRequest() if include_optional: return PatchedNotificationRequest( + hyperlink = '', + hyperlink_label = '', event = authentik_client.models.event_request.EventRequest( user = { 'key' : null diff --git a/test/test_patched_notification_rule_request.py b/test/test_patched_notification_rule_request.py index d559bfbd6..c3f08230d 100644 --- a/test/test_patched_notification_rule_request.py +++ b/test/test_patched_notification_rule_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_notification_transport_request.py b/test/test_patched_notification_transport_request.py index 648168f2d..787f47058 100644 --- a/test/test_patched_notification_transport_request.py +++ b/test/test_patched_notification_transport_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_notification_webhook_mapping_request.py b/test/test_patched_notification_webhook_mapping_request.py index 62fd01f7f..8b420116f 100644 --- a/test/test_patched_notification_webhook_mapping_request.py +++ b/test/test_patched_notification_webhook_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_o_auth2_provider_request.py b/test/test_patched_o_auth2_provider_request.py index fb48c44fe..5744dead4 100644 --- a/test/test_patched_o_auth2_provider_request.py +++ b/test/test_patched_o_auth2_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_o_auth_source_property_mapping_request.py b/test/test_patched_o_auth_source_property_mapping_request.py index cd35bc00b..506586df7 100644 --- a/test/test_patched_o_auth_source_property_mapping_request.py +++ b/test/test_patched_o_auth_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_o_auth_source_request.py b/test/test_patched_o_auth_source_request.py index 310e7737f..0fcd2a5cb 100644 --- a/test/test_patched_o_auth_source_request.py +++ b/test/test_patched_o_auth_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PatchedOAuthSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,12 +51,14 @@ def make_instance(self, include_optional) -> PatchedOAuthSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', group_matching_mode = 'identifier', provider_type = 'apple', request_token_url = '', authorization_url = '', access_token_url = '', profile_url = '', + pkce = 'none', consumer_key = '0', consumer_secret = '0', additional_scopes = '', diff --git a/test/test_patched_outpost_request.py b/test/test_patched_outpost_request.py index 72a212ef5..06ca1c3dc 100644 --- a/test/test_patched_outpost_request.py +++ b/test/test_patched_outpost_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_password_expiry_policy_request.py b/test/test_patched_password_expiry_policy_request.py index cf064c0f8..e2af17545 100644 --- a/test/test_patched_password_expiry_policy_request.py +++ b/test/test_patched_password_expiry_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_password_policy_request.py b/test/test_patched_password_policy_request.py index 9ab575fd3..884a02fb5 100644 --- a/test/test_patched_password_policy_request.py +++ b/test/test_patched_password_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_password_stage_request.py b/test/test_patched_password_stage_request.py index 9bfd6c957..f5d891e31 100644 --- a/test/test_patched_password_stage_request.py +++ b/test/test_patched_password_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedPasswordStageRequest: if include_optional: return PatchedPasswordStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], backends = [ 'authentik.core.auth.InbuiltBackend' ], diff --git a/test/test_patched_permission_assign_request.py b/test/test_patched_permission_assign_request.py index 7f09e7fbb..5ba5cff39 100644 --- a/test/test_patched_permission_assign_request.py +++ b/test/test_patched_permission_assign_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_plex_source_property_mapping_request.py b/test/test_patched_plex_source_property_mapping_request.py index 6a8e7daf4..8c7303519 100644 --- a/test/test_patched_plex_source_property_mapping_request.py +++ b/test/test_patched_plex_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_plex_source_request.py b/test/test_patched_plex_source_request.py index 2050d43d1..0e2e1eddf 100644 --- a/test/test_patched_plex_source_request.py +++ b/test/test_patched_plex_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PatchedPlexSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> PatchedPlexSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', group_matching_mode = 'identifier', client_id = '0', allowed_servers = [ diff --git a/test/test_patched_policy_binding_request.py b/test/test_patched_policy_binding_request.py index 51daa17b4..aeda8bd34 100644 --- a/test/test_patched_policy_binding_request.py +++ b/test/test_patched_policy_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_prompt_request.py b/test/test_patched_prompt_request.py index 41d293ba4..6092837a6 100644 --- a/test/test_patched_prompt_request.py +++ b/test/test_patched_prompt_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_prompt_stage_request.py b/test/test_patched_prompt_stage_request.py index f85ea2991..0254df1ee 100644 --- a/test/test_patched_prompt_stage_request.py +++ b/test/test_patched_prompt_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedPromptStageRequest: if include_optional: return PatchedPromptStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], fields = [ '' ], diff --git a/test/test_patched_proxy_provider_request.py b/test/test_patched_proxy_provider_request.py index 679bcafe9..fc4a4ece3 100644 --- a/test/test_patched_proxy_provider_request.py +++ b/test/test_patched_proxy_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_rac_property_mapping_request.py b/test/test_patched_rac_property_mapping_request.py index 3cc3adb04..71a29cba9 100644 --- a/test/test_patched_rac_property_mapping_request.py +++ b/test/test_patched_rac_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_rac_provider_request.py b/test/test_patched_rac_provider_request.py index d7a4444a9..3773f0540 100644 --- a/test/test_patched_rac_provider_request.py +++ b/test/test_patched_rac_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_radius_provider_property_mapping_request.py b/test/test_patched_radius_provider_property_mapping_request.py index 26e796cf0..058aca237 100644 --- a/test/test_patched_radius_provider_property_mapping_request.py +++ b/test/test_patched_radius_provider_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_radius_provider_request.py b/test/test_patched_radius_provider_request.py index 3f4ef345a..083e7fdbf 100644 --- a/test/test_patched_radius_provider_request.py +++ b/test/test_patched_radius_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_redirect_stage_request.py b/test/test_patched_redirect_stage_request.py index f2d0af5d1..3c875e58a 100644 --- a/test/test_patched_redirect_stage_request.py +++ b/test/test_patched_redirect_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedRedirectStageRequest: if include_optional: return PatchedRedirectStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], keep_context = True, mode = 'static', target_static = '', diff --git a/test/test_patched_reputation_policy_request.py b/test/test_patched_reputation_policy_request.py index 4f6ad9b2c..f3bd6d98c 100644 --- a/test/test_patched_reputation_policy_request.py +++ b/test/test_patched_reputation_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_role_request.py b/test/test_patched_role_request.py index dfd0e1e4f..8f35a14fc 100644 --- a/test/test_patched_role_request.py +++ b/test/test_patched_role_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_saml_property_mapping_request.py b/test/test_patched_saml_property_mapping_request.py index f7beb7cdd..e57e21dab 100644 --- a/test/test_patched_saml_property_mapping_request.py +++ b/test/test_patched_saml_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_saml_provider_request.py b/test/test_patched_saml_provider_request.py index f8898a6ea..d32bbe5c5 100644 --- a/test/test_patched_saml_provider_request.py +++ b/test/test_patched_saml_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_saml_source_property_mapping_request.py b/test/test_patched_saml_source_property_mapping_request.py index d46ad13f5..c468e99ca 100644 --- a/test/test_patched_saml_source_property_mapping_request.py +++ b/test/test_patched_saml_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_saml_source_request.py b/test/test_patched_saml_source_request.py index c1145a15a..c2ae70597 100644 --- a/test/test_patched_saml_source_request.py +++ b/test/test_patched_saml_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PatchedSAMLSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> PatchedSAMLSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', group_matching_mode = 'identifier', pre_authentication_flow = '', issuer = '', diff --git a/test/test_patched_schedule_request.py b/test/test_patched_schedule_request.py index 15ce3c0c7..a4f56f2c1 100644 --- a/test/test_patched_schedule_request.py +++ b/test/test_patched_schedule_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_scim_mapping_request.py b/test/test_patched_scim_mapping_request.py index 8feda5666..1a6e71531 100644 --- a/test/test_patched_scim_mapping_request.py +++ b/test/test_patched_scim_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_scim_provider_request.py b/test/test_patched_scim_provider_request.py index 535e42733..361331653 100644 --- a/test/test_patched_scim_provider_request.py +++ b/test/test_patched_scim_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -52,8 +52,11 @@ def make_instance(self, include_optional) -> PatchedSCIMProviderRequest: 'key' : null }, compatibility_mode = 'default', + service_provider_config_cache_timeout = '0', exclude_users_service_account = True, filter_group = '', + sync_page_size = 1, + sync_page_timeout = '0', dry_run = True ) else: diff --git a/test/test_patched_scim_source_group_request.py b/test/test_patched_scim_source_group_request.py index 8796f612c..702d46e31 100644 --- a/test/test_patched_scim_source_group_request.py +++ b/test/test_patched_scim_source_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_scim_source_property_mapping_request.py b/test/test_patched_scim_source_property_mapping_request.py index b0346bb29..7cf408355 100644 --- a/test/test_patched_scim_source_property_mapping_request.py +++ b/test/test_patched_scim_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_scim_source_request.py b/test/test_patched_scim_source_request.py index 8c552a677..294ced8ca 100644 --- a/test/test_patched_scim_source_request.py +++ b/test/test_patched_scim_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_scim_source_user_request.py b/test/test_patched_scim_source_user_request.py index bcb29efa2..e6e3f598e 100644 --- a/test/test_patched_scim_source_user_request.py +++ b/test/test_patched_scim_source_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_scope_mapping_request.py b/test/test_patched_scope_mapping_request.py index db3616421..3307e9035 100644 --- a/test/test_patched_scope_mapping_request.py +++ b/test/test_patched_scope_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_settings_request.py b/test/test_patched_settings_request.py index ae4bf1cc4..48eefdae7 100644 --- a/test/test_patched_settings_request.py +++ b/test/test_patched_settings_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -49,8 +49,11 @@ def make_instance(self, include_optional) -> PatchedSettingsRequest: impersonation_require_reason = True, default_token_duration = '0', default_token_length = 1, + pagination_default_page_size = 0, + pagination_max_page_size = 0, flags = authentik_client.models.patched_settings_request_flags.PatchedSettingsRequest_flags( - policies_buffered_access_view = True, ) + policies_buffered_access_view = True, + flows_refresh_others = True, ) ) else: return PatchedSettingsRequest( diff --git a/test/test_patched_settings_request_flags.py b/test/test_patched_settings_request_flags.py index 3b2f6123a..bc1a64caf 100644 --- a/test/test_patched_settings_request_flags.py +++ b/test/test_patched_settings_request_flags.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,11 +36,13 @@ def make_instance(self, include_optional) -> PatchedSettingsRequestFlags: model = PatchedSettingsRequestFlags() if include_optional: return PatchedSettingsRequestFlags( - policies_buffered_access_view = True + policies_buffered_access_view = True, + flows_refresh_others = True ) else: return PatchedSettingsRequestFlags( policies_buffered_access_view = True, + flows_refresh_others = True, ) """ diff --git a/test/test_patched_sms_device_request.py b/test/test_patched_sms_device_request.py index 480f2167c..1a9ab257a 100644 --- a/test/test_patched_sms_device_request.py +++ b/test/test_patched_sms_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_source_stage_request.py b/test/test_patched_source_stage_request.py index 3e5916817..499721f55 100644 --- a/test/test_patched_source_stage_request.py +++ b/test/test_patched_source_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedSourceStageRequest: if include_optional: return PatchedSourceStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], source = '', resume_timeout = '0' ) diff --git a/test/test_patched_ssf_provider_request.py b/test/test_patched_ssf_provider_request.py index a65c1b173..1b6a92eec 100644 --- a/test/test_patched_ssf_provider_request.py +++ b/test/test_patched_ssf_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_static_device_request.py b/test/test_patched_static_device_request.py index b3226c04d..965517f37 100644 --- a/test/test_patched_static_device_request.py +++ b/test/test_patched_static_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_telegram_source_property_mapping_request.py b/test/test_patched_telegram_source_property_mapping_request.py index 5ad0fb291..e8767d6ed 100644 --- a/test/test_patched_telegram_source_property_mapping_request.py +++ b/test/test_patched_telegram_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_telegram_source_request.py b/test/test_patched_telegram_source_request.py index df035fabe..a90fd306d 100644 --- a/test/test_patched_telegram_source_request.py +++ b/test/test_patched_telegram_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PatchedTelegramSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> PatchedTelegramSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', bot_username = '0', bot_token = '0', request_message_access = True, diff --git a/test/test_patched_tenant_request.py b/test/test_patched_tenant_request.py index eb0eca129..595226c5e 100644 --- a/test/test_patched_tenant_request.py +++ b/test/test_patched_tenant_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_token_request.py b/test/test_patched_token_request.py index 1ca67983b..3be2a999e 100644 --- a/test/test_patched_token_request.py +++ b/test/test_patched_token_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_totp_device_request.py b/test/test_patched_totp_device_request.py index d16b68035..92663c0e0 100644 --- a/test/test_patched_totp_device_request.py +++ b/test/test_patched_totp_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_unique_password_policy_request.py b/test/test_patched_unique_password_policy_request.py index 87c1fb8c3..e8d52551b 100644 --- a/test/test_patched_unique_password_policy_request.py +++ b/test/test_patched_unique_password_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_user_delete_stage_request.py b/test/test_patched_user_delete_stage_request.py index c4a192600..305fa2521 100644 --- a/test/test_patched_user_delete_stage_request.py +++ b/test/test_patched_user_delete_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,18 +36,7 @@ def make_instance(self, include_optional) -> PatchedUserDeleteStageRequest: model = PatchedUserDeleteStageRequest() if include_optional: return PatchedUserDeleteStageRequest( - name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ] + name = '0' ) else: return PatchedUserDeleteStageRequest( diff --git a/test/test_patched_user_kerberos_source_connection_request.py b/test/test_patched_user_kerberos_source_connection_request.py index 56f2e31ad..e599dcc00 100644 --- a/test/test_patched_user_kerberos_source_connection_request.py +++ b/test/test_patched_user_kerberos_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_user_ldap_source_connection_request.py b/test/test_patched_user_ldap_source_connection_request.py index 0fc415d1e..7c0010fa8 100644 --- a/test/test_patched_user_ldap_source_connection_request.py +++ b/test/test_patched_user_ldap_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_user_login_stage_request.py b/test/test_patched_user_login_stage_request.py index 34250bd4e..096477195 100644 --- a/test/test_patched_user_login_stage_request.py +++ b/test/test_patched_user_login_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedUserLoginStageRequest: if include_optional: return PatchedUserLoginStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], session_duration = '0', terminate_other_sessions = True, remember_me_offset = '0', diff --git a/test/test_patched_user_logout_stage_request.py b/test/test_patched_user_logout_stage_request.py index 4bcc10233..27bdea1ca 100644 --- a/test/test_patched_user_logout_stage_request.py +++ b/test/test_patched_user_logout_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,18 +36,7 @@ def make_instance(self, include_optional) -> PatchedUserLogoutStageRequest: model = PatchedUserLogoutStageRequest() if include_optional: return PatchedUserLogoutStageRequest( - name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ] + name = '0' ) else: return PatchedUserLogoutStageRequest( diff --git a/test/test_patched_user_o_auth_source_connection_request.py b/test/test_patched_user_o_auth_source_connection_request.py index 5f9708695..b4c3632a5 100644 --- a/test/test_patched_user_o_auth_source_connection_request.py +++ b/test/test_patched_user_o_auth_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_user_plex_source_connection_request.py b/test/test_patched_user_plex_source_connection_request.py index a53b09983..2ccb63bdb 100644 --- a/test/test_patched_user_plex_source_connection_request.py +++ b/test/test_patched_user_plex_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_user_request.py b/test/test_patched_user_request.py index 71b7e0246..930206420 100644 --- a/test/test_patched_user_request.py +++ b/test/test_patched_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -43,6 +43,9 @@ def make_instance(self, include_optional) -> PatchedUserRequest: groups = [ '' ], + roles = [ + '' + ], email = '', attributes = { 'key' : null diff --git a/test/test_patched_user_saml_source_connection_request.py b/test/test_patched_user_saml_source_connection_request.py index 4b51fb5b1..302a092d7 100644 --- a/test/test_patched_user_saml_source_connection_request.py +++ b/test/test_patched_user_saml_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_user_source_connection_request.py b/test/test_patched_user_source_connection_request.py index d7b08f3dd..79ab9aa51 100644 --- a/test/test_patched_user_source_connection_request.py +++ b/test/test_patched_user_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_user_telegram_source_connection_request.py b/test/test_patched_user_telegram_source_connection_request.py index a0239ea1b..60de294b6 100644 --- a/test/test_patched_user_telegram_source_connection_request.py +++ b/test/test_patched_user_telegram_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_patched_user_write_stage_request.py b/test/test_patched_user_write_stage_request.py index 9af66de38..533e9373f 100644 --- a/test/test_patched_user_write_stage_request.py +++ b/test/test_patched_user_write_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PatchedUserWriteStageRequest: if include_optional: return PatchedUserWriteStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], user_creation_mode = 'never_create', create_users_as_inactive = True, create_users_group = '', diff --git a/test/test_patched_web_authn_device_request.py b/test/test_patched_web_authn_device_request.py index d3abfd3f6..b3145ebe5 100644 --- a/test/test_patched_web_authn_device_request.py +++ b/test/test_patched_web_authn_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_permission.py b/test/test_permission.py index 1995766e3..d584b002e 100644 --- a/test/test_permission.py +++ b/test/test_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_permission_assign_request.py b/test/test_permission_assign_request.py index 2b82b04aa..eb18593a7 100644 --- a/test/test_permission_assign_request.py +++ b/test/test_permission_assign_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_permission_assign_result.py b/test/test_permission_assign_result.py index ab9ad5376..f4d0e90a4 100644 --- a/test/test_permission_assign_result.py +++ b/test/test_permission_assign_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_pkce_method_enum.py b/test/test_pkce_method_enum.py new file mode 100644 index 000000000..34caadfb6 --- /dev/null +++ b/test/test_pkce_method_enum.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.pkce_method_enum import PKCEMethodEnum + +class TestPKCEMethodEnum(unittest.TestCase): + """PKCEMethodEnum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPKCEMethodEnum(self): + """Test PKCEMethodEnum""" + # inst = PKCEMethodEnum() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_plex_authentication_challenge.py b/test/test_plex_authentication_challenge.py index 96ad30d65..2e818aafb 100644 --- a/test/test_plex_authentication_challenge.py +++ b/test/test_plex_authentication_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PlexAuthenticationChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-source-plex', diff --git a/test/test_plex_authentication_challenge_response_request.py b/test/test_plex_authentication_challenge_response_request.py index 20c1d64ad..4d4d74d4a 100644 --- a/test/test_plex_authentication_challenge_response_request.py +++ b/test/test_plex_authentication_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_plex_source.py b/test/test_plex_source.py index dcbae632f..194004938 100644 --- a/test/test_plex_source.py +++ b/test/test_plex_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> PlexSource: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -57,6 +58,10 @@ def make_instance(self, include_optional) -> PlexSource: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), group_matching_mode = 'identifier', client_id = '', allowed_servers = [ @@ -75,7 +80,10 @@ def make_instance(self, include_optional) -> PlexSource: verbose_name_plural = '', meta_model_name = '', managed = '', - icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), plex_token = '', ) """ diff --git a/test/test_plex_source_property_mapping.py b/test/test_plex_source_property_mapping.py index 6fee2cbbb..dfa370e15 100644 --- a/test/test_plex_source_property_mapping.py +++ b/test/test_plex_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_plex_source_property_mapping_request.py b/test/test_plex_source_property_mapping_request.py index 736c9b9f3..a6614dd84 100644 --- a/test/test_plex_source_property_mapping_request.py +++ b/test/test_plex_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_plex_source_request.py b/test/test_plex_source_request.py index a1f897bcd..d130edddb 100644 --- a/test/test_plex_source_request.py +++ b/test/test_plex_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PlexSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> PlexSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', group_matching_mode = 'identifier', client_id = '0', allowed_servers = [ diff --git a/test/test_plex_token_redeem_request.py b/test/test_plex_token_redeem_request.py index d3a7d7240..3e414dd0a 100644 --- a/test/test_plex_token_redeem_request.py +++ b/test/test_plex_token_redeem_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_policies_api.py b/test/test_policies_api.py index ee931d577..69e037934 100644 --- a/test/test_policies_api.py +++ b/test/test_policies_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_policy.py b/test/test_policy.py index 3524ffdd7..4d979fef1 100644 --- a/test/test_policy.py +++ b/test/test_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_policy_binding.py b/test/test_policy_binding.py index bfb1177bc..3c3e72572 100644 --- a/test/test_policy_binding.py +++ b/test/test_policy_binding.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -54,8 +54,6 @@ def make_instance(self, include_optional) -> PolicyBinding: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), @@ -94,8 +92,6 @@ def make_instance(self, include_optional) -> PolicyBinding: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), diff --git a/test/test_policy_binding_request.py b/test/test_policy_binding_request.py index 5f36ca16a..0f86b4ce9 100644 --- a/test/test_policy_binding_request.py +++ b/test/test_policy_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_policy_engine_mode.py b/test/test_policy_engine_mode.py index ef4cdf06f..954319173 100644 --- a/test/test_policy_engine_mode.py +++ b/test/test_policy_engine_mode.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_policy_test_request.py b/test/test_policy_test_request.py index 82720b5d6..f2e71a3e9 100644 --- a/test/test_policy_test_request.py +++ b/test/test_policy_test_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_policy_test_result.py b/test/test_policy_test_result.py index 5e7170ee9..e1f09653f 100644 --- a/test/test_policy_test_result.py +++ b/test/test_policy_test_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_process.py b/test/test_process.py new file mode 100644 index 000000000..9204b123f --- /dev/null +++ b/test/test_process.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.process import Process + +class TestProcess(unittest.TestCase): + """Process unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Process: + """Test Process + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Process` + """ + model = Process() + if include_optional: + return Process( + id = 56, + name = '', + user = '' + ) + else: + return Process( + id = 56, + name = '', + ) + """ + + def testProcess(self): + """Test Process""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_process_request.py b/test/test_process_request.py new file mode 100644 index 000000000..4f43134da --- /dev/null +++ b/test/test_process_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.process_request import ProcessRequest + +class TestProcessRequest(unittest.TestCase): + """ProcessRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ProcessRequest: + """Test ProcessRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ProcessRequest` + """ + model = ProcessRequest() + if include_optional: + return ProcessRequest( + id = 56, + name = '0', + user = '0' + ) + else: + return ProcessRequest( + id = 56, + name = '0', + ) + """ + + def testProcessRequest(self): + """Test ProcessRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_prompt.py b/test/test_prompt.py index 7b4589248..1d490ad09 100644 --- a/test/test_prompt.py +++ b/test/test_prompt.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -61,7 +61,7 @@ def make_instance(self, include_optional) -> Prompt: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -102,7 +102,7 @@ def make_instance(self, include_optional) -> Prompt: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', diff --git a/test/test_prompt_challenge.py b/test/test_prompt_challenge.py index fd4492e4e..8ea735f8a 100644 --- a/test/test_prompt_challenge.py +++ b/test/test_prompt_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> PromptChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-prompt', @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> PromptChallenge: order = 56, sub_text = '', choices = [ - '' + authentik_client.models.prompt_choice.PromptChoice( + value = '', + label = '', ) ], ) ] ) @@ -77,7 +80,9 @@ def make_instance(self, include_optional) -> PromptChallenge: order = 56, sub_text = '', choices = [ - '' + authentik_client.models.prompt_choice.PromptChoice( + value = '', + label = '', ) ], ) ], ) diff --git a/test/test_prompt_challenge_response_request.py b/test/test_prompt_challenge_response_request.py index 832c4275b..30b659c31 100644 --- a/test/test_prompt_challenge_response_request.py +++ b/test/test_prompt_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_prompt_choice.py b/test/test_prompt_choice.py new file mode 100644 index 000000000..a8b8ed24a --- /dev/null +++ b/test/test_prompt_choice.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.prompt_choice import PromptChoice + +class TestPromptChoice(unittest.TestCase): + """PromptChoice unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PromptChoice: + """Test PromptChoice + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PromptChoice` + """ + model = PromptChoice() + if include_optional: + return PromptChoice( + value = '', + label = '' + ) + else: + return PromptChoice( + value = '', + label = '', + ) + """ + + def testPromptChoice(self): + """Test PromptChoice""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_prompt_request.py b/test/test_prompt_request.py index f6825a977..7cc50f1bc 100644 --- a/test/test_prompt_request.py +++ b/test/test_prompt_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_prompt_stage.py b/test/test_prompt_stage.py index 9f3a7c40f..3066353ad 100644 --- a/test/test_prompt_stage.py +++ b/test/test_prompt_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> PromptStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -72,6 +72,21 @@ def make_instance(self, include_optional) -> PromptStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], fields = [ '' ], diff --git a/test/test_prompt_stage_request.py b/test/test_prompt_stage_request.py index 9fd4b2589..286e073ac 100644 --- a/test/test_prompt_stage_request.py +++ b/test/test_prompt_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> PromptStageRequest: if include_optional: return PromptStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], fields = [ '' ], diff --git a/test/test_prompt_type_enum.py b/test/test_prompt_type_enum.py index c577035cb..2023c7029 100644 --- a/test/test_prompt_type_enum.py +++ b/test/test_prompt_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_property_mapping.py b/test/test_property_mapping.py index a4e2dbf34..9138d9aa9 100644 --- a/test/test_property_mapping.py +++ b/test/test_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_property_mapping_preview.py b/test/test_property_mapping_preview.py index f2b5ec07b..3476d7a5f 100644 --- a/test/test_property_mapping_preview.py +++ b/test/test_property_mapping_preview.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_property_mapping_test_request.py b/test/test_property_mapping_test_request.py index 2bdc9878c..8151e254a 100644 --- a/test/test_property_mapping_test_request.py +++ b/test/test_property_mapping_test_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_property_mapping_test_result.py b/test/test_property_mapping_test_result.py index e26462e2a..255f8ec6e 100644 --- a/test/test_property_mapping_test_result.py +++ b/test/test_property_mapping_test_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_propertymappings_api.py b/test/test_propertymappings_api.py index 7f32aae5d..292d651c2 100644 --- a/test/test_propertymappings_api.py +++ b/test/test_propertymappings_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_protocol_enum.py b/test/test_protocol_enum.py index 755a0fbc6..c0f231945 100644 --- a/test/test_protocol_enum.py +++ b/test/test_protocol_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_provider.py b/test/test_provider.py index 1ef9254cb..7d675d41d 100644 --- a/test/test_provider.py +++ b/test/test_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_provider_enum.py b/test/test_provider_enum.py index cb4c690da..0aad33bc4 100644 --- a/test/test_provider_enum.py +++ b/test/test_provider_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_provider_model_enum.py b/test/test_provider_model_enum.py index 1c65a3123..8455e3964 100644 --- a/test/test_provider_model_enum.py +++ b/test/test_provider_model_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_provider_type_enum.py b/test/test_provider_type_enum.py index 4bd912c78..3a9d13800 100644 --- a/test/test_provider_type_enum.py +++ b/test/test_provider_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_providers_api.py b/test/test_providers_api.py index cdc8b941c..59ffbf4cc 100644 --- a/test/test_providers_api.py +++ b/test/test_providers_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_proxy_mode.py b/test/test_proxy_mode.py index ff012476d..3450a52ca 100644 --- a/test/test_proxy_mode.py +++ b/test/test_proxy_mode.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_proxy_outpost_config.py b/test/test_proxy_outpost_config.py index 54f7eb3a1..077216899 100644 --- a/test/test_proxy_outpost_config.py +++ b/test/test_proxy_outpost_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_proxy_provider.py b/test/test_proxy_provider.py index 807950a8c..08d534175 100644 --- a/test/test_proxy_provider.py +++ b/test/test_proxy_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_proxy_provider_request.py b/test/test_proxy_provider_request.py index d21b0df14..630b55eac 100644 --- a/test/test_proxy_provider_request.py +++ b/test/test_proxy_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rac_api.py b/test/test_rac_api.py index 807aa5ce2..b49ed9681 100644 --- a/test/test_rac_api.py +++ b/test/test_rac_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rac_property_mapping.py b/test/test_rac_property_mapping.py index 96abb77bc..49c01662c 100644 --- a/test/test_rac_property_mapping.py +++ b/test/test_rac_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rac_property_mapping_request.py b/test/test_rac_property_mapping_request.py index c167ca656..7d962a72d 100644 --- a/test/test_rac_property_mapping_request.py +++ b/test/test_rac_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rac_provider.py b/test/test_rac_provider.py index 033130212..7c772ebd8 100644 --- a/test/test_rac_provider.py +++ b/test/test_rac_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rac_provider_request.py b/test/test_rac_provider_request.py index 13852c589..f9af4656e 100644 --- a/test/test_rac_provider_request.py +++ b/test/test_rac_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_radius_check_access.py b/test/test_radius_check_access.py index 8a4a05e54..0ef4b37e2 100644 --- a/test/test_radius_check_access.py +++ b/test/test_radius_check_access.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_radius_outpost_config.py b/test/test_radius_outpost_config.py index b1a32028c..14480078e 100644 --- a/test/test_radius_outpost_config.py +++ b/test/test_radius_outpost_config.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_radius_provider.py b/test/test_radius_provider.py index 5722f149c..858c41d44 100644 --- a/test/test_radius_provider.py +++ b/test/test_radius_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_radius_provider_property_mapping.py b/test/test_radius_provider_property_mapping.py index 0b5459f07..779e62876 100644 --- a/test/test_radius_provider_property_mapping.py +++ b/test/test_radius_provider_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_radius_provider_property_mapping_request.py b/test/test_radius_provider_property_mapping_request.py index cbd6c2eb0..f4fced2d5 100644 --- a/test/test_radius_provider_property_mapping_request.py +++ b/test/test_radius_provider_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_radius_provider_request.py b/test/test_radius_provider_request.py index f772c78bd..02edcb46b 100644 --- a/test/test_radius_provider_request.py +++ b/test/test_radius_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_rbac_api.py b/test/test_rbac_api.py index 6cf36e4cc..709a1e73e 100644 --- a/test/test_rbac_api.py +++ b/test/test_rbac_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -87,24 +87,6 @@ def test_rbac_permissions_assigned_by_roles_unassign_partial_update(self) -> Non """ pass - def test_rbac_permissions_assigned_by_users_assign(self) -> None: - """Test case for rbac_permissions_assigned_by_users_assign - - """ - pass - - def test_rbac_permissions_assigned_by_users_list(self) -> None: - """Test case for rbac_permissions_assigned_by_users_list - - """ - pass - - def test_rbac_permissions_assigned_by_users_unassign_partial_update(self) -> None: - """Test case for rbac_permissions_assigned_by_users_unassign_partial_update - - """ - pass - def test_rbac_permissions_list(self) -> None: """Test case for rbac_permissions_list @@ -117,62 +99,14 @@ def test_rbac_permissions_retrieve(self) -> None: """ pass - def test_rbac_permissions_roles_destroy(self) -> None: - """Test case for rbac_permissions_roles_destroy - - """ - pass - def test_rbac_permissions_roles_list(self) -> None: """Test case for rbac_permissions_roles_list """ pass - def test_rbac_permissions_roles_partial_update(self) -> None: - """Test case for rbac_permissions_roles_partial_update - - """ - pass - - def test_rbac_permissions_roles_retrieve(self) -> None: - """Test case for rbac_permissions_roles_retrieve - - """ - pass - - def test_rbac_permissions_roles_update(self) -> None: - """Test case for rbac_permissions_roles_update - - """ - pass - - def test_rbac_permissions_users_destroy(self) -> None: - """Test case for rbac_permissions_users_destroy - - """ - pass - - def test_rbac_permissions_users_list(self) -> None: - """Test case for rbac_permissions_users_list - - """ - pass - - def test_rbac_permissions_users_partial_update(self) -> None: - """Test case for rbac_permissions_users_partial_update - - """ - pass - - def test_rbac_permissions_users_retrieve(self) -> None: - """Test case for rbac_permissions_users_retrieve - - """ - pass - - def test_rbac_permissions_users_update(self) -> None: - """Test case for rbac_permissions_users_update + def test_rbac_roles_add_user_create(self) -> None: + """Test case for rbac_roles_add_user_create """ pass @@ -201,6 +135,12 @@ def test_rbac_roles_partial_update(self) -> None: """ pass + def test_rbac_roles_remove_user_create(self) -> None: + """Test case for rbac_roles_remove_user_create + + """ + pass + def test_rbac_roles_retrieve(self) -> None: """Test case for rbac_roles_retrieve diff --git a/test/test_redirect_challenge.py b/test/test_redirect_challenge.py index eea513c24..5c265b8df 100644 --- a/test/test_redirect_challenge.py +++ b/test/test_redirect_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> RedirectChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'xak-flow-redirect', diff --git a/test/test_redirect_challenge_response_request.py b/test/test_redirect_challenge_response_request.py index c2da92137..4786d5ed4 100644 --- a/test/test_redirect_challenge_response_request.py +++ b/test/test_redirect_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_redirect_stage.py b/test/test_redirect_stage.py index b7c31a202..065f51d0c 100644 --- a/test/test_redirect_stage.py +++ b/test/test_redirect_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> RedirectStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -70,6 +70,21 @@ def make_instance(self, include_optional) -> RedirectStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], mode = 'static', ) """ diff --git a/test/test_redirect_stage_mode_enum.py b/test/test_redirect_stage_mode_enum.py index fbb14110c..0166bbd5e 100644 --- a/test/test_redirect_stage_mode_enum.py +++ b/test/test_redirect_stage_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_redirect_stage_request.py b/test/test_redirect_stage_request.py index c14e03f88..4fc96044a 100644 --- a/test/test_redirect_stage_request.py +++ b/test/test_redirect_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> RedirectStageRequest: if include_optional: return RedirectStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], keep_context = True, mode = 'static', target_static = '', diff --git a/test/test_redirect_uri.py b/test/test_redirect_uri.py index b0dddea77..6616d2093 100644 --- a/test/test_redirect_uri.py +++ b/test/test_redirect_uri.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_redirect_uri_request.py b/test/test_redirect_uri_request.py index bf69d7844..81a7ccfeb 100644 --- a/test/test_redirect_uri_request.py +++ b/test/test_redirect_uri_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_group_child.py b/test/test_related_group.py similarity index 67% rename from test/test_group_child.py rename to test/test_related_group.py index 04adb8df5..38a709d12 100644 --- a/test/test_group_child.py +++ b/test/test_related_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from authentik_client.models.group_child import GroupChild +from authentik_client.models.related_group import RelatedGroup -class TestGroupChild(unittest.TestCase): - """GroupChild unit test stubs""" +class TestRelatedGroup(unittest.TestCase): + """RelatedGroup unit test stubs""" def setUp(self): pass @@ -26,16 +26,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GroupChild: - """Test GroupChild + def make_instance(self, include_optional) -> RelatedGroup: + """Test RelatedGroup include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GroupChild` + # uncomment below to create an instance of `RelatedGroup` """ - model = GroupChild() + model = RelatedGroup() if include_optional: - return GroupChild( + return RelatedGroup( pk = '', name = '', is_superuser = True, @@ -45,15 +45,15 @@ def make_instance(self, include_optional) -> GroupChild: group_uuid = '' ) else: - return GroupChild( + return RelatedGroup( pk = '', name = '', group_uuid = '', ) """ - def testGroupChild(self): - """Test GroupChild""" + def testRelatedGroup(self): + """Test RelatedGroup""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_reports_api.py b/test/test_reports_api.py new file mode 100644 index 000000000..7f257af70 --- /dev/null +++ b/test/test_reports_api.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.api.reports_api import ReportsApi + + +class TestReportsApi(unittest.TestCase): + """ReportsApi unit test stubs""" + + def setUp(self) -> None: + self.api = ReportsApi() + + def tearDown(self) -> None: + pass + + def test_reports_exports_destroy(self) -> None: + """Test case for reports_exports_destroy + + """ + pass + + def test_reports_exports_list(self) -> None: + """Test case for reports_exports_list + + """ + pass + + def test_reports_exports_retrieve(self) -> None: + """Test case for reports_exports_retrieve + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reputation.py b/test/test_reputation.py index 23c1ccca1..af42b40be 100644 --- a/test/test_reputation.py +++ b/test/test_reputation.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_reputation_policy.py b/test/test_reputation_policy.py index 859d10a14..5663728f9 100644 --- a/test/test_reputation_policy.py +++ b/test/test_reputation_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_reputation_policy_request.py b/test/test_reputation_policy_request.py index 8c2fc638a..763c36744 100644 --- a/test/test_reputation_policy_request.py +++ b/test/test_reputation_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_resident_key_requirement_enum.py b/test/test_resident_key_requirement_enum.py index edcc32a85..4447f4a27 100644 --- a/test/test_resident_key_requirement_enum.py +++ b/test/test_resident_key_requirement_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_role.py b/test/test_role.py index 36d74f926..d4fd49450 100644 --- a/test/test_role.py +++ b/test/test_role.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_role_assigned_object_permission.py b/test/test_role_assigned_object_permission.py index 3394718bf..3f1b8caa0 100644 --- a/test/test_role_assigned_object_permission.py +++ b/test/test_role_assigned_object_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> RoleAssignedObjectPermission: return RoleAssignedObjectPermission( role_pk = '', name = '', - permissions = [ + object_permissions = [ authentik_client.models.role_object_permission.RoleObjectPermission( id = 56, codename = '', @@ -46,13 +46,21 @@ def make_instance(self, include_optional) -> RoleAssignedObjectPermission: app_label = '', object_pk = '', name = '', ) + ], + model_permissions = [ + authentik_client.models.role_model_permission.RoleModelPermission( + id = 56, + codename = '', + model = '', + app_label = '', + name = '', ) ] ) else: return RoleAssignedObjectPermission( role_pk = '', name = '', - permissions = [ + object_permissions = [ authentik_client.models.role_object_permission.RoleObjectPermission( id = 56, codename = '', @@ -61,6 +69,14 @@ def make_instance(self, include_optional) -> RoleAssignedObjectPermission: object_pk = '', name = '', ) ], + model_permissions = [ + authentik_client.models.role_model_permission.RoleModelPermission( + id = 56, + codename = '', + model = '', + app_label = '', + name = '', ) + ], ) """ diff --git a/test/test_user_object_permission.py b/test/test_role_model_permission.py similarity index 61% rename from test/test_user_object_permission.py rename to test/test_role_model_permission.py index ea6ee681c..276f8c65e 100644 --- a/test/test_user_object_permission.py +++ b/test/test_role_model_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,10 +15,10 @@ import unittest -from authentik_client.models.user_object_permission import UserObjectPermission +from authentik_client.models.role_model_permission import RoleModelPermission -class TestUserObjectPermission(unittest.TestCase): - """UserObjectPermission unit test stubs""" +class TestRoleModelPermission(unittest.TestCase): + """RoleModelPermission unit test stubs""" def setUp(self): pass @@ -26,36 +26,34 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> UserObjectPermission: - """Test UserObjectPermission + def make_instance(self, include_optional) -> RoleModelPermission: + """Test RoleModelPermission include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `UserObjectPermission` + # uncomment below to create an instance of `RoleModelPermission` """ - model = UserObjectPermission() + model = RoleModelPermission() if include_optional: - return UserObjectPermission( + return RoleModelPermission( id = 56, codename = '', model = '', app_label = '', - object_pk = '', name = '' ) else: - return UserObjectPermission( + return RoleModelPermission( id = 56, codename = '', model = '', app_label = '', - object_pk = '', name = '', ) """ - def testUserObjectPermission(self): - """Test UserObjectPermission""" + def testRoleModelPermission(self): + """Test RoleModelPermission""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_role_object_permission.py b/test/test_role_object_permission.py index ed9efda16..6d5c1dfee 100644 --- a/test/test_role_object_permission.py +++ b/test/test_role_object_permission.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_role_request.py b/test/test_role_request.py index 7f866227a..ae0c89dc7 100644 --- a/test/test_role_request.py +++ b/test/test_role_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_root_api.py b/test/test_root_api.py index 561d0d8e3..25e9c418b 100644 --- a/test/test_root_api.py +++ b/test/test_root_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_bindings_enum.py b/test/test_saml_bindings_enum.py index 7be911654..e66ddbead 100644 --- a/test/test_saml_bindings_enum.py +++ b/test/test_saml_bindings_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_metadata.py b/test/test_saml_metadata.py index aa14f4047..6b307e295 100644 --- a/test/test_saml_metadata.py +++ b/test/test_saml_metadata.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_name_id_policy_enum.py b/test/test_saml_name_id_policy_enum.py index c9310ac14..aa3de96b4 100644 --- a/test/test_saml_name_id_policy_enum.py +++ b/test/test_saml_name_id_policy_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_property_mapping.py b/test/test_saml_property_mapping.py index c14d29e4e..55751bcea 100644 --- a/test/test_saml_property_mapping.py +++ b/test/test_saml_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_property_mapping_request.py b/test/test_saml_property_mapping_request.py index b40edfa9f..b13a2ab74 100644 --- a/test/test_saml_property_mapping_request.py +++ b/test/test_saml_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_provider.py b/test/test_saml_provider.py index 156291817..f6f65dcee 100644 --- a/test/test_saml_provider.py +++ b/test/test_saml_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_provider_logout_method_enum.py b/test/test_saml_provider_logout_method_enum.py index 444506baa..3199af19b 100644 --- a/test/test_saml_provider_logout_method_enum.py +++ b/test/test_saml_provider_logout_method_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_provider_request.py b/test/test_saml_provider_request.py index 2fff42497..29165563b 100644 --- a/test/test_saml_provider_request.py +++ b/test/test_saml_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_source.py b/test/test_saml_source.py index e24e70ae1..e9a4bae39 100644 --- a/test/test_saml_source.py +++ b/test/test_saml_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> SAMLSource: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -57,6 +58,10 @@ def make_instance(self, include_optional) -> SAMLSource: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), group_matching_mode = 'identifier', pre_authentication_flow = '', issuer = '', @@ -84,7 +89,10 @@ def make_instance(self, include_optional) -> SAMLSource: verbose_name_plural = '', meta_model_name = '', managed = '', - icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), pre_authentication_flow = '', sso_url = '', ) diff --git a/test/test_saml_source_property_mapping.py b/test/test_saml_source_property_mapping.py index ba18dae50..fcfa1e10e 100644 --- a/test/test_saml_source_property_mapping.py +++ b/test/test_saml_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_source_property_mapping_request.py b/test/test_saml_source_property_mapping_request.py index 8b4669b9b..23eb06aa5 100644 --- a/test/test_saml_source_property_mapping_request.py +++ b/test/test_saml_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_saml_source_request.py b/test/test_saml_source_request.py index dbfca9ea2..ba142ab8f 100644 --- a/test/test_saml_source_request.py +++ b/test/test_saml_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> SAMLSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> SAMLSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', group_matching_mode = 'identifier', pre_authentication_flow = '', issuer = '', diff --git a/test/test_schedule.py b/test/test_schedule.py index ebb5e3822..64556aaea 100644 --- a/test/test_schedule.py +++ b/test/test_schedule.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_schedule_request.py b/test/test_schedule_request.py index 36752b620..ce6437396 100644 --- a/test/test_schedule_request.py +++ b/test/test_schedule_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_schema_api.py b/test/test_schema_api.py index 572f195e7..35fb4bfab 100644 --- a/test/test_schema_api.py +++ b/test/test_schema_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_authentication_mode_enum.py b/test/test_scim_authentication_mode_enum.py index 30a55d7eb..32de62ec9 100644 --- a/test/test_scim_authentication_mode_enum.py +++ b/test/test_scim_authentication_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_mapping.py b/test/test_scim_mapping.py index 421cc2993..ea489048b 100644 --- a/test/test_scim_mapping.py +++ b/test/test_scim_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_mapping_request.py b/test/test_scim_mapping_request.py index 17c9df747..5f1205784 100644 --- a/test/test_scim_mapping_request.py +++ b/test/test_scim_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_provider.py b/test/test_scim_provider.py index e0ad13ec8..b084b849c 100644 --- a/test/test_scim_provider.py +++ b/test/test_scim_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -59,8 +59,11 @@ def make_instance(self, include_optional) -> SCIMProvider: 'key' : null }, compatibility_mode = 'default', + service_provider_config_cache_timeout = '', exclude_users_service_account = True, filter_group = '', + sync_page_size = 1, + sync_page_timeout = '', dry_run = True ) else: diff --git a/test/test_scim_provider_group.py b/test/test_scim_provider_group.py index 3f8fa48c1..1185cad13 100644 --- a/test/test_scim_provider_group.py +++ b/test/test_scim_provider_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,8 +44,6 @@ def make_instance(self, include_optional) -> SCIMProviderGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), @@ -64,8 +62,6 @@ def make_instance(self, include_optional) -> SCIMProviderGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), diff --git a/test/test_scim_provider_group_request.py b/test/test_scim_provider_group_request.py index 23c77de2e..7ab64e1f6 100644 --- a/test/test_scim_provider_group_request.py +++ b/test/test_scim_provider_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_provider_request.py b/test/test_scim_provider_request.py index e9a5ec323..2ebed0a6b 100644 --- a/test/test_scim_provider_request.py +++ b/test/test_scim_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -52,8 +52,11 @@ def make_instance(self, include_optional) -> SCIMProviderRequest: 'key' : null }, compatibility_mode = 'default', + service_provider_config_cache_timeout = '0', exclude_users_service_account = True, filter_group = '', + sync_page_size = 1, + sync_page_timeout = '0', dry_run = True ) else: diff --git a/test/test_scim_provider_user.py b/test/test_scim_provider_user.py index adb714594..5ef4e5b54 100644 --- a/test/test_scim_provider_user.py +++ b/test/test_scim_provider_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_provider_user_request.py b/test/test_scim_provider_user_request.py index f528fc843..e728489f2 100644 --- a/test/test_scim_provider_user_request.py +++ b/test/test_scim_provider_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_source.py b/test/test_scim_source.py index ecb9f8748..190714d46 100644 --- a/test/test_scim_source.py +++ b/test/test_scim_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_source_group.py b/test/test_scim_source_group.py index 6ca1e1236..eb6293206 100644 --- a/test/test_scim_source_group.py +++ b/test/test_scim_source_group.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,8 +44,6 @@ def make_instance(self, include_optional) -> SCIMSourceGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), @@ -63,8 +61,6 @@ def make_instance(self, include_optional) -> SCIMSourceGroup: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ), diff --git a/test/test_scim_source_group_request.py b/test/test_scim_source_group_request.py index 3462dbf75..1c0eb1b48 100644 --- a/test/test_scim_source_group_request.py +++ b/test/test_scim_source_group_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_source_property_mapping.py b/test/test_scim_source_property_mapping.py index 742da7f99..5c1e640dc 100644 --- a/test/test_scim_source_property_mapping.py +++ b/test/test_scim_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_source_property_mapping_request.py b/test/test_scim_source_property_mapping_request.py index 39add032e..b13b123b2 100644 --- a/test/test_scim_source_property_mapping_request.py +++ b/test/test_scim_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_source_request.py b/test/test_scim_source_request.py index c94cc4cee..e3b3770cc 100644 --- a/test/test_scim_source_request.py +++ b/test/test_scim_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_source_user.py b/test/test_scim_source_user.py index 573f3a084..886ca92b9 100644 --- a/test/test_scim_source_user.py +++ b/test/test_scim_source_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scim_source_user_request.py b/test/test_scim_source_user_request.py index d994771b7..d00174a4a 100644 --- a/test/test_scim_source_user_request.py +++ b/test/test_scim_source_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scope_mapping.py b/test/test_scope_mapping.py index 16981e1ae..c86195d6e 100644 --- a/test/test_scope_mapping.py +++ b/test/test_scope_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_scope_mapping_request.py b/test/test_scope_mapping_request.py index f27b919e0..3c36d06f1 100644 --- a/test/test_scope_mapping_request.py +++ b/test/test_scope_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_selectable_stage.py b/test/test_selectable_stage.py index d13471942..fb7b01dcd 100644 --- a/test/test_selectable_stage.py +++ b/test/test_selectable_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_service_connection.py b/test/test_service_connection.py index 5e21dc8da..6982e77f1 100644 --- a/test/test_service_connection.py +++ b/test/test_service_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_service_connection_state.py b/test/test_service_connection_state.py index f16377dc5..9f8812d6e 100644 --- a/test/test_service_connection_state.py +++ b/test/test_service_connection_state.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_session_end_challenge.py b/test/test_session_end_challenge.py index 25a6b4ec0..30f0bb907 100644 --- a/test/test_session_end_challenge.py +++ b/test/test_session_end_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> SessionEndChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-session-end', diff --git a/test/test_session_user.py b/test/test_session_user.py index 301066f04..c2d6f4bcf 100644 --- a/test/test_session_user.py +++ b/test/test_session_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -47,6 +47,11 @@ def make_instance(self, include_optional) -> SessionUser: name = '', pk = '', ) ], + roles = [ + authentik_client.models.user_self_roles.UserSelfRoles( + name = '', + pk = '', ) + ], email = '', avatar = '', uid = '', @@ -68,6 +73,11 @@ def make_instance(self, include_optional) -> SessionUser: name = '', pk = '', ) ], + roles = [ + authentik_client.models.user_self_roles.UserSelfRoles( + name = '', + pk = '', ) + ], email = '', avatar = '', uid = '', @@ -92,6 +102,11 @@ def make_instance(self, include_optional) -> SessionUser: name = '', pk = '', ) ], + roles = [ + authentik_client.models.user_self_roles.UserSelfRoles( + name = '', + pk = '', ) + ], email = '', avatar = '', uid = '', diff --git a/test/test_settings.py b/test/test_settings.py index 6619c68f9..e9950973a 100644 --- a/test/test_settings.py +++ b/test/test_settings.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -49,13 +49,17 @@ def make_instance(self, include_optional) -> Settings: impersonation_require_reason = True, default_token_duration = '', default_token_length = 1, + pagination_default_page_size = 0, + pagination_max_page_size = 0, flags = authentik_client.models.patched_settings_request_flags.PatchedSettingsRequest_flags( - policies_buffered_access_view = True, ) + policies_buffered_access_view = True, + flows_refresh_others = True, ) ) else: return Settings( flags = authentik_client.models.patched_settings_request_flags.PatchedSettingsRequest_flags( - policies_buffered_access_view = True, ), + policies_buffered_access_view = True, + flows_refresh_others = True, ), ) """ diff --git a/test/test_settings_request.py b/test/test_settings_request.py index 27cb8bbee..94c20fff4 100644 --- a/test/test_settings_request.py +++ b/test/test_settings_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -49,13 +49,17 @@ def make_instance(self, include_optional) -> SettingsRequest: impersonation_require_reason = True, default_token_duration = '0', default_token_length = 1, + pagination_default_page_size = 0, + pagination_max_page_size = 0, flags = authentik_client.models.patched_settings_request_flags.PatchedSettingsRequest_flags( - policies_buffered_access_view = True, ) + policies_buffered_access_view = True, + flows_refresh_others = True, ) ) else: return SettingsRequest( flags = authentik_client.models.patched_settings_request_flags.PatchedSettingsRequest_flags( - policies_buffered_access_view = True, ), + policies_buffered_access_view = True, + flows_refresh_others = True, ), ) """ diff --git a/test/test_severity_enum.py b/test/test_severity_enum.py index ac6e0c81c..7b9e2642d 100644 --- a/test/test_severity_enum.py +++ b/test/test_severity_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_shell_challenge.py b/test/test_shell_challenge.py index 5d634ac50..6abd7798f 100644 --- a/test/test_shell_challenge.py +++ b/test/test_shell_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> ShellChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'xak-flow-shell', diff --git a/test/test_signature_algorithm_enum.py b/test/test_signature_algorithm_enum.py index c8284beef..be16a936b 100644 --- a/test/test_signature_algorithm_enum.py +++ b/test/test_signature_algorithm_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_sms_device.py b/test/test_sms_device.py index c00e05dad..88f4783e8 100644 --- a/test/test_sms_device.py +++ b/test/test_sms_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_sms_device_request.py b/test/test_sms_device_request.py index 0efc6084f..35c574548 100644 --- a/test/test_sms_device_request.py +++ b/test/test_sms_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_software.py b/test/test_software.py new file mode 100644 index 000000000..bbc847bdf --- /dev/null +++ b/test/test_software.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.software import Software + +class TestSoftware(unittest.TestCase): + """Software unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Software: + """Test Software + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `Software` + """ + model = Software() + if include_optional: + return Software( + name = '', + version = '', + source = '', + path = '' + ) + else: + return Software( + name = '', + source = '', + ) + """ + + def testSoftware(self): + """Test Software""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_software_request.py b/test/test_software_request.py new file mode 100644 index 000000000..e1897ecfe --- /dev/null +++ b/test/test_software_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.software_request import SoftwareRequest + +class TestSoftwareRequest(unittest.TestCase): + """SoftwareRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SoftwareRequest: + """Test SoftwareRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SoftwareRequest` + """ + model = SoftwareRequest() + if include_optional: + return SoftwareRequest( + name = '0', + version = '', + source = '0', + path = '0' + ) + else: + return SoftwareRequest( + name = '0', + source = '0', + ) + """ + + def testSoftwareRequest(self): + """Test SoftwareRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_source.py b/test/test_source.py index 146260a5b..b66c2aa50 100644 --- a/test/test_source.py +++ b/test/test_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> Source: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -56,7 +57,11 @@ def make_instance(self, include_optional) -> Source: user_matching_mode = 'identifier', managed = '', user_path_template = '', - icon = '' + icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ) ) else: return Source( @@ -68,7 +73,10 @@ def make_instance(self, include_optional) -> Source: verbose_name_plural = '', meta_model_name = '', managed = '', - icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), ) """ diff --git a/test/test_source_stage.py b/test/test_source_stage.py index 569146b10..a4740e563 100644 --- a/test/test_source_stage.py +++ b/test/test_source_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> SourceStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -68,6 +68,21 @@ def make_instance(self, include_optional) -> SourceStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], source = '', ) """ diff --git a/test/test_source_stage_request.py b/test/test_source_stage_request.py index 901955745..8b4c0d13c 100644 --- a/test/test_source_stage_request.py +++ b/test/test_source_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> SourceStageRequest: if include_optional: return SourceStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], source = '', resume_timeout = '0' ) diff --git a/test/test_source_type.py b/test/test_source_type.py index bbc568b3a..26eb31ebc 100644 --- a/test/test_source_type.py +++ b/test/test_source_type.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_sources_api.py b/test/test_sources_api.py index d56dea3d1..8a38dc8ba 100644 --- a/test/test_sources_api.py +++ b/test/test_sources_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -45,18 +45,6 @@ def test_sources_all_retrieve(self) -> None: """ pass - def test_sources_all_set_icon_create(self) -> None: - """Test case for sources_all_set_icon_create - - """ - pass - - def test_sources_all_set_icon_url_create(self) -> None: - """Test case for sources_all_set_icon_url_create - - """ - pass - def test_sources_all_types_list(self) -> None: """Test case for sources_all_types_list @@ -741,6 +729,12 @@ def test_sources_scim_users_used_by_list(self) -> None: """ pass + def test_sources_telegram_connect_user_create(self) -> None: + """Test case for sources_telegram_connect_user_create + + """ + pass + def test_sources_telegram_create(self) -> None: """Test case for sources_telegram_create diff --git a/test/test_ssf_api.py b/test/test_ssf_api.py index c451f7107..a52c6dd5a 100644 --- a/test/test_ssf_api.py +++ b/test/test_ssf_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ssf_provider.py b/test/test_ssf_provider.py index 73e71c4c3..f6863d76a 100644 --- a/test/test_ssf_provider.py +++ b/test/test_ssf_provider.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ssf_provider_request.py b/test/test_ssf_provider_request.py index a6542e42e..613b33c81 100644 --- a/test/test_ssf_provider_request.py +++ b/test/test_ssf_provider_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_ssf_stream.py b/test/test_ssf_stream.py index 6be8d52b8..90dce43e5 100644 --- a/test/test_ssf_stream.py +++ b/test/test_ssf_stream.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_stage.py b/test/test_stage.py index 1f1bb601a..bd7b309d2 100644 --- a/test/test_stage.py +++ b/test/test_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> Stage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -66,6 +66,21 @@ def make_instance(self, include_optional) -> Stage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_stage_mode_enum.py b/test/test_stage_mode_enum.py new file mode 100644 index 000000000..311ed0473 --- /dev/null +++ b/test/test_stage_mode_enum.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.stage_mode_enum import StageModeEnum + +class TestStageModeEnum(unittest.TestCase): + """StageModeEnum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testStageModeEnum(self): + """Test StageModeEnum""" + # inst = StageModeEnum() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_stage_prompt.py b/test/test_stage_prompt.py index 46f5fa52c..80eb47403 100644 --- a/test/test_stage_prompt.py +++ b/test/test_stage_prompt.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -45,7 +45,9 @@ def make_instance(self, include_optional) -> StagePrompt: order = 56, sub_text = '', choices = [ - '' + authentik_client.models.prompt_choice.PromptChoice( + value = '', + label = '', ) ] ) else: @@ -59,7 +61,9 @@ def make_instance(self, include_optional) -> StagePrompt: order = 56, sub_text = '', choices = [ - '' + authentik_client.models.prompt_choice.PromptChoice( + value = '', + label = '', ) ], ) """ diff --git a/test/test_stages_api.py b/test/test_stages_api.py index 7dbff3e58..7c4b0b50c 100644 --- a/test/test_stages_api.py +++ b/test/test_stages_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -645,6 +645,48 @@ def test_stages_email_used_by_list(self) -> None: """ pass + def test_stages_endpoints_create(self) -> None: + """Test case for stages_endpoints_create + + """ + pass + + def test_stages_endpoints_destroy(self) -> None: + """Test case for stages_endpoints_destroy + + """ + pass + + def test_stages_endpoints_list(self) -> None: + """Test case for stages_endpoints_list + + """ + pass + + def test_stages_endpoints_partial_update(self) -> None: + """Test case for stages_endpoints_partial_update + + """ + pass + + def test_stages_endpoints_retrieve(self) -> None: + """Test case for stages_endpoints_retrieve + + """ + pass + + def test_stages_endpoints_update(self) -> None: + """Test case for stages_endpoints_update + + """ + pass + + def test_stages_endpoints_used_by_list(self) -> None: + """Test case for stages_endpoints_used_by_list + + """ + pass + def test_stages_identification_create(self) -> None: """Test case for stages_identification_create diff --git a/test/test_state_enum.py b/test/test_state_enum.py index fb71a33e3..d073b73e6 100644 --- a/test/test_state_enum.py +++ b/test/test_state_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_static_device.py b/test/test_static_device.py index dae7146a2..a64a49bcc 100644 --- a/test/test_static_device.py +++ b/test/test_static_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_static_device_request.py b/test/test_static_device_request.py index f9f400e1b..f0eb8f2ac 100644 --- a/test/test_static_device_request.py +++ b/test/test_static_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_static_device_token.py b/test/test_static_device_token.py index 48024626d..5a73a226d 100644 --- a/test/test_static_device_token.py +++ b/test/test_static_device_token.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_sub_mode_enum.py b/test/test_sub_mode_enum.py index 256c30c5f..d97533b7a 100644 --- a/test/test_sub_mode_enum.py +++ b/test/test_sub_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_sync_object_model_enum.py b/test/test_sync_object_model_enum.py index 656e9e668..29d493ff8 100644 --- a/test/test_sync_object_model_enum.py +++ b/test/test_sync_object_model_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_sync_object_request.py b/test/test_sync_object_request.py index bd6cd41e7..5208bf14e 100644 --- a/test/test_sync_object_request.py +++ b/test/test_sync_object_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_sync_object_result.py b/test/test_sync_object_result.py index 9042c1931..6a4e7a78c 100644 --- a/test/test_sync_object_result.py +++ b/test/test_sync_object_result.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_sync_outgoing_trigger_mode_enum.py b/test/test_sync_outgoing_trigger_mode_enum.py new file mode 100644 index 000000000..7cd7aca63 --- /dev/null +++ b/test/test_sync_outgoing_trigger_mode_enum.py @@ -0,0 +1,34 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.sync_outgoing_trigger_mode_enum import SyncOutgoingTriggerModeEnum + +class TestSyncOutgoingTriggerModeEnum(unittest.TestCase): + """SyncOutgoingTriggerModeEnum unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSyncOutgoingTriggerModeEnum(self): + """Test SyncOutgoingTriggerModeEnum""" + # inst = SyncOutgoingTriggerModeEnum() + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sync_status.py b/test/test_sync_status.py index af101b4c9..be86e3c25 100644 --- a/test/test_sync_status.py +++ b/test/test_sync_status.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_system_info.py b/test/test_system_info.py index 07a321acb..982ade547 100644 --- a/test/test_system_info.py +++ b/test/test_system_info.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_system_info_runtime.py b/test/test_system_info_runtime.py index d50348131..ad1a7c206 100644 --- a/test/test_system_info_runtime.py +++ b/test/test_system_info_runtime.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_task.py b/test/test_task.py index f9bc42828..33424f6b5 100644 --- a/test/test_task.py +++ b/test/test_task.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_task_aggregated_status_enum.py b/test/test_task_aggregated_status_enum.py index 26a44c652..8582e97c4 100644 --- a/test/test_task_aggregated_status_enum.py +++ b/test/test_task_aggregated_status_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_tasks_api.py b/test/test_tasks_api.py index 1ddf54d01..9e62e7741 100644 --- a/test/test_tasks_api.py +++ b/test/test_tasks_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_telegram_auth_request.py b/test/test_telegram_auth_request.py new file mode 100644 index 000000000..b7e95ab3a --- /dev/null +++ b/test/test_telegram_auth_request.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.telegram_auth_request import TelegramAuthRequest + +class TestTelegramAuthRequest(unittest.TestCase): + """TelegramAuthRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TelegramAuthRequest: + """Test TelegramAuthRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TelegramAuthRequest` + """ + model = TelegramAuthRequest() + if include_optional: + return TelegramAuthRequest( + id = 56, + first_name = '0', + last_name = '0', + username = '0', + photo_url = '0', + auth_date = 56, + hash = '0' + ) + else: + return TelegramAuthRequest( + id = 56, + auth_date = 56, + hash = '0', + ) + """ + + def testTelegramAuthRequest(self): + """Test TelegramAuthRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_telegram_challenge_response_request.py b/test/test_telegram_challenge_response_request.py index 111457616..7a331e4d5 100644 --- a/test/test_telegram_challenge_response_request.py +++ b/test/test_telegram_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> TelegramChallengeResponseRequest: model = TelegramChallengeResponseRequest() if include_optional: return TelegramChallengeResponseRequest( - component = 'ak-source-telegram', id = 56, first_name = '0', last_name = '0', username = '0', photo_url = '0', auth_date = 56, - hash = '0' + hash = '0', + component = 'ak-source-telegram' ) else: return TelegramChallengeResponseRequest( diff --git a/test/test_telegram_login_challenge.py b/test/test_telegram_login_challenge.py index b855fae6a..3774fe279 100644 --- a/test/test_telegram_login_challenge.py +++ b/test/test_telegram_login_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> TelegramLoginChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-source-telegram', diff --git a/test/test_telegram_source.py b/test/test_telegram_source.py index d8fdbee3d..8ae2fa81b 100644 --- a/test/test_telegram_source.py +++ b/test/test_telegram_source.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> TelegramSource: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -57,6 +58,10 @@ def make_instance(self, include_optional) -> TelegramSource: managed = '', user_path_template = '', icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), bot_username = '', request_message_access = True, pre_authentication_flow = '' @@ -71,7 +76,10 @@ def make_instance(self, include_optional) -> TelegramSource: verbose_name_plural = '', meta_model_name = '', managed = '', - icon = '', + icon_url = '', + icon_themed_urls = authentik_client.models.themed_urls.ThemedUrls( + light = '', + dark = '', ), bot_username = '', pre_authentication_flow = '', ) diff --git a/test/test_telegram_source_property_mapping.py b/test/test_telegram_source_property_mapping.py index 2ffedecb2..2aab79876 100644 --- a/test/test_telegram_source_property_mapping.py +++ b/test/test_telegram_source_property_mapping.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_telegram_source_property_mapping_request.py b/test/test_telegram_source_property_mapping_request.py index ab476cbaf..f6bb13102 100644 --- a/test/test_telegram_source_property_mapping_request.py +++ b/test/test_telegram_source_property_mapping_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_telegram_source_request.py b/test/test_telegram_source_request.py index adf05752e..52e57e0f7 100644 --- a/test/test_telegram_source_request.py +++ b/test/test_telegram_source_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> TelegramSourceRequest: name = '0', slug = 'z0', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -50,6 +51,7 @@ def make_instance(self, include_optional) -> TelegramSourceRequest: policy_engine_mode = 'all', user_matching_mode = 'identifier', user_path_template = '0', + icon = '', bot_username = '0', bot_token = '0', request_message_access = True, diff --git a/test/test_tenant.py b/test/test_tenant.py index bf7ec7517..138d092c0 100644 --- a/test/test_tenant.py +++ b/test/test_tenant.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_tenant_admin_group_request_request.py b/test/test_tenant_admin_group_request_request.py index f310b4cbb..3c81432c0 100644 --- a/test/test_tenant_admin_group_request_request.py +++ b/test/test_tenant_admin_group_request_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_tenant_recovery_key_request_request.py b/test/test_tenant_recovery_key_request_request.py index 5005dff65..702f43056 100644 --- a/test/test_tenant_recovery_key_request_request.py +++ b/test/test_tenant_recovery_key_request_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_tenant_recovery_key_response.py b/test/test_tenant_recovery_key_response.py index 05788ded3..b69b65316 100644 --- a/test/test_tenant_recovery_key_response.py +++ b/test/test_tenant_recovery_key_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_tenant_request.py b/test/test_tenant_request.py index 53ec4da59..a2c4e15db 100644 --- a/test/test_tenant_request.py +++ b/test/test_tenant_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_tenants_api.py b/test/test_tenants_api.py index f2e2ce457..dc3e7ee20 100644 --- a/test/test_tenants_api.py +++ b/test/test_tenants_api.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_themed_urls.py b/test/test_themed_urls.py new file mode 100644 index 000000000..d137fc2b3 --- /dev/null +++ b/test/test_themed_urls.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.themed_urls import ThemedUrls + +class TestThemedUrls(unittest.TestCase): + """ThemedUrls unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ThemedUrls: + """Test ThemedUrls + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ThemedUrls` + """ + model = ThemedUrls() + if include_optional: + return ThemedUrls( + light = '', + dark = '' + ) + else: + return ThemedUrls( + ) + """ + + def testThemedUrls(self): + """Test ThemedUrls""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_token.py b/test/test_token.py index 5d57dd308..c735c28df 100644 --- a/test/test_token.py +++ b/test/test_token.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -58,12 +58,18 @@ def make_instance(self, include_optional) -> Token: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -100,12 +106,18 @@ def make_instance(self, include_optional) -> Token: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { diff --git a/test/test_token_model.py b/test/test_token_model.py index ecb667cbc..1123bdb21 100644 --- a/test/test_token_model.py +++ b/test/test_token_model.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -96,12 +96,18 @@ def make_instance(self, include_optional) -> TokenModel: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -183,12 +189,18 @@ def make_instance(self, include_optional) -> TokenModel: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { diff --git a/test/test_token_request.py b/test/test_token_request.py index cfbf4b391..2b8555330 100644 --- a/test/test_token_request.py +++ b/test/test_token_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_token_set_key_request.py b/test/test_token_set_key_request.py index 173a7611b..aaacffd21 100644 --- a/test/test_token_set_key_request.py +++ b/test/test_token_set_key_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_token_view.py b/test/test_token_view.py index a79f6d6c8..582f9e2db 100644 --- a/test/test_token_view.py +++ b/test/test_token_view.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_totp_device.py b/test/test_totp_device.py index 21cff9154..ec14325e3 100644 --- a/test/test_totp_device.py +++ b/test/test_totp_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_totp_device_request.py b/test/test_totp_device_request.py index 1e84b94cf..86882ea02 100644 --- a/test/test_totp_device_request.py +++ b/test/test_totp_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_transaction_application_request.py b/test/test_transaction_application_request.py index 37872f7e1..e936f40db 100644 --- a/test/test_transaction_application_request.py +++ b/test/test_transaction_application_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> TransactionApplicationRequest: ], open_in_new_tab = True, meta_launch_url = '', + meta_icon = '', meta_description = '', meta_publisher = '', policy_engine_mode = 'all', @@ -74,6 +75,7 @@ def make_instance(self, include_optional) -> TransactionApplicationRequest: ], open_in_new_tab = True, meta_launch_url = '', + meta_icon = '', meta_description = '', meta_publisher = '', policy_engine_mode = 'all', diff --git a/test/test_transaction_application_response.py b/test/test_transaction_application_response.py index 65f1d5137..4e0aa7fe7 100644 --- a/test/test_transaction_application_response.py +++ b/test/test_transaction_application_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_transaction_policy_binding_request.py b/test/test_transaction_policy_binding_request.py index 79a359ed3..2fb2552fa 100644 --- a/test/test_transaction_policy_binding_request.py +++ b/test/test_transaction_policy_binding_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_type_create.py b/test/test_type_create.py index 7e723c7cd..921285e35 100644 --- a/test/test_type_create.py +++ b/test/test_type_create.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -41,7 +41,8 @@ def make_instance(self, include_optional) -> TypeCreate: component = '', model_name = '', icon_url = '', - requires_enterprise = True + requires_enterprise = True, + deprecated = True ) else: return TypeCreate( diff --git a/test/test_ui_theme_enum.py b/test/test_ui_theme_enum.py index 6ab401bea..6849eb558 100644 --- a/test/test_ui_theme_enum.py +++ b/test/test_ui_theme_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_unique_password_policy.py b/test/test_unique_password_policy.py index 1dd832577..7771e498b 100644 --- a/test/test_unique_password_policy.py +++ b/test/test_unique_password_policy.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_unique_password_policy_request.py b/test/test_unique_password_policy_request.py index 5eb47d808..e3aa4425c 100644 --- a/test/test_unique_password_policy_request.py +++ b/test/test_unique_password_policy_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_used_by.py b/test/test_used_by.py index 90d9ebf63..4d3b23311 100644 --- a/test/test_used_by.py +++ b/test/test_used_by.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_used_by_action_enum.py b/test/test_used_by_action_enum.py index ab9a4ca73..58ba978cf 100644 --- a/test/test_used_by_action_enum.py +++ b/test/test_used_by_action_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user.py b/test/test_user.py index c4d04ef7d..b26d17932 100644 --- a/test/test_user.py +++ b/test/test_user.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -52,12 +52,18 @@ def make_instance(self, include_optional) -> User: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -83,12 +89,15 @@ def make_instance(self, include_optional) -> User: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], avatar = '', uid = '', uuid = '', diff --git a/test/test_user_account_request.py b/test/test_user_account_request.py index f90c52030..b80912252 100644 --- a/test/test_user_account_request.py +++ b/test/test_user_account_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_account_serializer_for_role_request.py b/test/test_user_account_serializer_for_role_request.py new file mode 100644 index 000000000..d94fc1de6 --- /dev/null +++ b/test/test_user_account_serializer_for_role_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.user_account_serializer_for_role_request import UserAccountSerializerForRoleRequest + +class TestUserAccountSerializerForRoleRequest(unittest.TestCase): + """UserAccountSerializerForRoleRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserAccountSerializerForRoleRequest: + """Test UserAccountSerializerForRoleRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UserAccountSerializerForRoleRequest` + """ + model = UserAccountSerializerForRoleRequest() + if include_optional: + return UserAccountSerializerForRoleRequest( + pk = 56 + ) + else: + return UserAccountSerializerForRoleRequest( + pk = 56, + ) + """ + + def testUserAccountSerializerForRoleRequest(self): + """Test UserAccountSerializerForRoleRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_assigned_object_permission.py b/test/test_user_assigned_object_permission.py deleted file mode 100644 index dc8b64174..000000000 --- a/test/test_user_assigned_object_permission.py +++ /dev/null @@ -1,85 +0,0 @@ -# coding: utf-8 - -""" - authentik - - Making authentication simple. - - The version of the OpenAPI document: 2025.10.0-rc1 - Contact: hello@goauthentik.io - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from authentik_client.models.user_assigned_object_permission import UserAssignedObjectPermission - -class TestUserAssignedObjectPermission(unittest.TestCase): - """UserAssignedObjectPermission unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UserAssignedObjectPermission: - """Test UserAssignedObjectPermission - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UserAssignedObjectPermission` - """ - model = UserAssignedObjectPermission() - if include_optional: - return UserAssignedObjectPermission( - pk = 56, - username = 'A', - name = '', - is_active = True, - last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - email = '', - attributes = { - 'key' : null - }, - uid = '', - permissions = [ - authentik_client.models.user_object_permission.UserObjectPermission( - id = 56, - codename = '', - model = '', - app_label = '', - object_pk = '', - name = '', ) - ], - is_superuser = True - ) - else: - return UserAssignedObjectPermission( - pk = 56, - username = 'A', - name = '', - uid = '', - permissions = [ - authentik_client.models.user_object_permission.UserObjectPermission( - id = 56, - codename = '', - model = '', - app_label = '', - object_pk = '', - name = '', ) - ], - is_superuser = True, - ) - """ - - def testUserAssignedObjectPermission(self): - """Test UserAssignedObjectPermission""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_user_attribute_enum.py b/test/test_user_attribute_enum.py index 021c88b58..4b353c4ff 100644 --- a/test/test_user_attribute_enum.py +++ b/test/test_user_attribute_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_consent.py b/test/test_user_consent.py index ad4ce5a7f..0a6e6851f 100644 --- a/test/test_user_consent.py +++ b/test/test_user_consent.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -56,12 +56,18 @@ def make_instance(self, include_optional) -> UserConsent: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -105,6 +111,8 @@ def make_instance(self, include_optional) -> UserConsent: open_in_new_tab = True, meta_launch_url = '', meta_icon = '', + meta_icon_url = '', + meta_icon_themed_urls = null, meta_description = '', meta_publisher = '', policy_engine_mode = 'all', @@ -131,12 +139,18 @@ def make_instance(self, include_optional) -> UserConsent: num_pk = 56, name = '', is_superuser = True, - parent = '', - parent_name = '', attributes = { 'key' : null }, ) ], + roles = [ + '' + ], + roles_obj = [ + authentik_client.models.role.Role( + pk = '', + name = '', ) + ], email = '', avatar = '', attributes = { @@ -180,6 +194,8 @@ def make_instance(self, include_optional) -> UserConsent: open_in_new_tab = True, meta_launch_url = '', meta_icon = '', + meta_icon_url = '', + meta_icon_themed_urls = null, meta_description = '', meta_publisher = '', policy_engine_mode = 'all', diff --git a/test/test_user_creation_mode_enum.py b/test/test_user_creation_mode_enum.py index 540ee6120..7ac1b9dfe 100644 --- a/test/test_user_creation_mode_enum.py +++ b/test/test_user_creation_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_delete_stage.py b/test/test_user_delete_stage.py index 54efd3a54..6b07c79c9 100644 --- a/test/test_user_delete_stage.py +++ b/test/test_user_delete_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> UserDeleteStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -66,6 +66,21 @@ def make_instance(self, include_optional) -> UserDeleteStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_user_delete_stage_request.py b/test/test_user_delete_stage_request.py index a12f327ee..cdec95a0d 100644 --- a/test/test_user_delete_stage_request.py +++ b/test/test_user_delete_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,18 +36,7 @@ def make_instance(self, include_optional) -> UserDeleteStageRequest: model = UserDeleteStageRequest() if include_optional: return UserDeleteStageRequest( - name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ] + name = '0' ) else: return UserDeleteStageRequest( diff --git a/test/test_user_fields_enum.py b/test/test_user_fields_enum.py index 93f225403..32e412240 100644 --- a/test/test_user_fields_enum.py +++ b/test/test_user_fields_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_kerberos_source_connection.py b/test/test_user_kerberos_source_connection.py index 912170fd4..419adeab3 100644 --- a/test/test_user_kerberos_source_connection.py +++ b/test/test_user_kerberos_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> UserKerberosSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> UserKerberosSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> UserKerberosSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> UserKerberosSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_user_kerberos_source_connection_request.py b/test/test_user_kerberos_source_connection_request.py index 2ccc645e0..d9735fb62 100644 --- a/test/test_user_kerberos_source_connection_request.py +++ b/test/test_user_kerberos_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_ldap_source_connection.py b/test/test_user_ldap_source_connection.py index badf0875e..cd4df3744 100644 --- a/test/test_user_ldap_source_connection.py +++ b/test/test_user_ldap_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> UserLDAPSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> UserLDAPSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> UserLDAPSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> UserLDAPSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_user_ldap_source_connection_request.py b/test/test_user_ldap_source_connection_request.py index 2f05843a0..2db5e4f28 100644 --- a/test/test_user_ldap_source_connection_request.py +++ b/test/test_user_ldap_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_login_challenge.py b/test/test_user_login_challenge.py index 0bd117277..249920e2b 100644 --- a/test/test_user_login_challenge.py +++ b/test/test_user_login_challenge.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> UserLoginChallenge: flow_info = authentik_client.models.contextual_flow_info.ContextualFlowInfo( title = '', background = '', + background_themed_urls = null, cancel_url = '', layout = 'stacked', ), component = 'ak-stage-user-login', diff --git a/test/test_user_login_challenge_response_request.py b/test/test_user_login_challenge_response_request.py index 9f63a287d..78c21a485 100644 --- a/test/test_user_login_challenge_response_request.py +++ b/test/test_user_login_challenge_response_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_login_stage.py b/test/test_user_login_stage.py index acba525dc..1c89eb493 100644 --- a/test/test_user_login_stage.py +++ b/test/test_user_login_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> UserLoginStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -72,6 +72,21 @@ def make_instance(self, include_optional) -> UserLoginStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_user_login_stage_request.py b/test/test_user_login_stage_request.py index 97ccb97e2..0d17ac020 100644 --- a/test/test_user_login_stage_request.py +++ b/test/test_user_login_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> UserLoginStageRequest: if include_optional: return UserLoginStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], session_duration = '0', terminate_other_sessions = True, remember_me_offset = '0', diff --git a/test/test_user_logout_stage.py b/test/test_user_logout_stage.py index d6c140a42..1e976be88 100644 --- a/test/test_user_logout_stage.py +++ b/test/test_user_logout_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> UserLogoutStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -66,6 +66,21 @@ def make_instance(self, include_optional) -> UserLogoutStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_user_logout_stage_request.py b/test/test_user_logout_stage_request.py index 7a727697b..ea9338b27 100644 --- a/test/test_user_logout_stage_request.py +++ b/test/test_user_logout_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -36,18 +36,7 @@ def make_instance(self, include_optional) -> UserLogoutStageRequest: model = UserLogoutStageRequest() if include_optional: return UserLogoutStageRequest( - name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ] + name = '0' ) else: return UserLogoutStageRequest( diff --git a/test/test_user_matching_mode_enum.py b/test/test_user_matching_mode_enum.py index 0fd8d8c24..3bd297371 100644 --- a/test/test_user_matching_mode_enum.py +++ b/test/test_user_matching_mode_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_o_auth_source_connection.py b/test/test_user_o_auth_source_connection.py index ea2ad715c..97e00193c 100644 --- a/test/test_user_o_auth_source_connection.py +++ b/test/test_user_o_auth_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> UserOAuthSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> UserOAuthSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), @@ -76,6 +79,7 @@ def make_instance(self, include_optional) -> UserOAuthSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -92,7 +96,9 @@ def make_instance(self, include_optional) -> UserOAuthSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_user_o_auth_source_connection_request.py b/test/test_user_o_auth_source_connection_request.py index 0140c0c68..a414c521a 100644 --- a/test/test_user_o_auth_source_connection_request.py +++ b/test/test_user_o_auth_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_password_set_request.py b/test/test_user_password_set_request.py index 9fd013728..900c08529 100644 --- a/test/test_user_password_set_request.py +++ b/test/test_user_password_set_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_path.py b/test/test_user_path.py index f168eda2a..894acaec0 100644 --- a/test/test_user_path.py +++ b/test/test_user_path.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_plex_source_connection.py b/test/test_user_plex_source_connection.py index 9863c0b0d..87463fa37 100644 --- a/test/test_user_plex_source_connection.py +++ b/test/test_user_plex_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> UserPlexSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> UserPlexSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> UserPlexSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> UserPlexSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_user_plex_source_connection_request.py b/test/test_user_plex_source_connection_request.py index 88a0edba4..9db49ce8e 100644 --- a/test/test_user_plex_source_connection_request.py +++ b/test/test_user_plex_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_request.py b/test/test_user_request.py index 780e3e850..df3aa9c59 100644 --- a/test/test_user_request.py +++ b/test/test_user_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -43,6 +43,9 @@ def make_instance(self, include_optional) -> UserRequest: groups = [ '' ], + roles = [ + '' + ], email = '', attributes = { 'key' : null diff --git a/test/test_user_saml_source_connection.py b/test/test_user_saml_source_connection.py index 2bc8282e5..eb9bfe5eb 100644 --- a/test/test_user_saml_source_connection.py +++ b/test/test_user_saml_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> UserSAMLSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> UserSAMLSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> UserSAMLSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> UserSAMLSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_user_saml_source_connection_request.py b/test/test_user_saml_source_connection_request.py index 1a4a71cc9..99cfe99ce 100644 --- a/test/test_user_saml_source_connection_request.py +++ b/test/test_user_saml_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_self.py b/test/test_user_self.py index d1ab05c23..47f2f46ab 100644 --- a/test/test_user_self.py +++ b/test/test_user_self.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -46,6 +46,11 @@ def make_instance(self, include_optional) -> UserSelf: name = '', pk = '', ) ], + roles = [ + authentik_client.models.user_self_roles.UserSelfRoles( + name = '', + pk = '', ) + ], email = '', avatar = '', uid = '', @@ -69,6 +74,11 @@ def make_instance(self, include_optional) -> UserSelf: name = '', pk = '', ) ], + roles = [ + authentik_client.models.user_self_roles.UserSelfRoles( + name = '', + pk = '', ) + ], avatar = '', uid = '', settings = { diff --git a/test/test_user_self_groups.py b/test/test_user_self_groups.py index d8797f9c3..29a0adce3 100644 --- a/test/test_user_self_groups.py +++ b/test/test_user_self_groups.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_self_roles.py b/test/test_user_self_roles.py new file mode 100644 index 000000000..3cec30495 --- /dev/null +++ b/test/test_user_self_roles.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + authentik + + Making authentication simple. + + The version of the OpenAPI document: 2025.12.4 + Contact: hello@goauthentik.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from authentik_client.models.user_self_roles import UserSelfRoles + +class TestUserSelfRoles(unittest.TestCase): + """UserSelfRoles unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UserSelfRoles: + """Test UserSelfRoles + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UserSelfRoles` + """ + model = UserSelfRoles() + if include_optional: + return UserSelfRoles( + name = '', + pk = '' + ) + else: + return UserSelfRoles( + name = '', + pk = '', + ) + """ + + def testUserSelfRoles(self): + """Test UserSelfRoles""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_user_service_account_request.py b/test/test_user_service_account_request.py index 437220279..fee8de202 100644 --- a/test/test_user_service_account_request.py +++ b/test/test_user_service_account_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_service_account_response.py b/test/test_user_service_account_response.py index 6d72c459e..51eaa2f22 100644 --- a/test/test_user_service_account_response.py +++ b/test/test_user_service_account_response.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_setting.py b/test/test_user_setting.py index 4f8e171a8..e90b11250 100644 --- a/test/test_user_setting.py +++ b/test/test_user_setting.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_source_connection.py b/test/test_user_source_connection.py index a1acfe2fe..902d483e9 100644 --- a/test/test_user_source_connection.py +++ b/test/test_user_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> UserSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> UserSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> UserSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> UserSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_user_source_connection_request.py b/test/test_user_source_connection_request.py index c94e0cabb..b7aeaac62 100644 --- a/test/test_user_source_connection_request.py +++ b/test/test_user_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_telegram_source_connection.py b/test/test_user_telegram_source_connection.py index 05fbe48be..9c6456674 100644 --- a/test/test_user_telegram_source_connection.py +++ b/test/test_user_telegram_source_connection.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -44,6 +44,7 @@ def make_instance(self, include_optional) -> UserTelegramSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -60,7 +61,9 @@ def make_instance(self, include_optional) -> UserTelegramSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') @@ -75,6 +78,7 @@ def make_instance(self, include_optional) -> UserTelegramSourceConnection: name = '', slug = 'z', enabled = True, + promoted = True, authentication_flow = '', enrollment_flow = '', user_property_mappings = [ @@ -91,7 +95,9 @@ def make_instance(self, include_optional) -> UserTelegramSourceConnection: user_matching_mode = null, managed = '', user_path_template = '', - icon = '', ), + icon = '', + icon_url = '', + icon_themed_urls = null, ), identifier = '', created = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), diff --git a/test/test_user_telegram_source_connection_request.py b/test/test_user_telegram_source_connection_request.py index 0a92b5935..b6252faed 100644 --- a/test/test_user_telegram_source_connection_request.py +++ b/test/test_user_telegram_source_connection_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_type_enum.py b/test/test_user_type_enum.py index 022b24ee4..d29a01d34 100644 --- a/test/test_user_type_enum.py +++ b/test/test_user_type_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_verification_enum.py b/test/test_user_verification_enum.py index 44e872b85..c1de799f1 100644 --- a/test/test_user_verification_enum.py +++ b/test/test_user_verification_enum.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_user_write_stage.py b/test/test_user_write_stage.py index f98781161..0c6e0af5d 100644 --- a/test/test_user_write_stage.py +++ b/test/test_user_write_stage.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> UserWriteStage: slug = 'z', title = '', designation = null, - background = '', + background_url = '', policy_engine_mode = 'all', compatibility_mode = True, export_url = '', @@ -71,6 +71,21 @@ def make_instance(self, include_optional) -> UserWriteStage: verbose_name = '', verbose_name_plural = '', meta_model_name = '', + flow_set = [ + authentik_client.models.flow_set.FlowSet( + pk = '', + policybindingmodel_ptr_id = '', + name = '', + slug = 'z', + title = '', + designation = null, + background_url = '', + policy_engine_mode = 'all', + compatibility_mode = True, + export_url = '', + layout = 'stacked', + denied_action = null, ) + ], ) """ diff --git a/test/test_user_write_stage_request.py b/test/test_user_write_stage_request.py index 4084124a6..bf27706d6 100644 --- a/test/test_user_write_stage_request.py +++ b/test/test_user_write_stage_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -37,17 +37,6 @@ def make_instance(self, include_optional) -> UserWriteStageRequest: if include_optional: return UserWriteStageRequest( name = '0', - flow_set = [ - authentik_client.models.flow_set_request.FlowSetRequest( - name = '0', - slug = 'z0', - title = '0', - designation = null, - policy_engine_mode = 'all', - compatibility_mode = True, - layout = 'stacked', - denied_action = null, ) - ], user_creation_mode = 'never_create', create_users_as_inactive = True, create_users_group = '', diff --git a/test/test_validation_error.py b/test/test_validation_error.py index fd9b3c386..2746bdf53 100644 --- a/test/test_validation_error.py +++ b/test/test_validation_error.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_version.py b/test/test_version.py index d741266ae..0215a9256 100644 --- a/test/test_version.py +++ b/test/test_version.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_version_history.py b/test/test_version_history.py index 8bad29119..0d3ef66d6 100644 --- a/test/test_version_history.py +++ b/test/test_version_history.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_web_authn_device.py b/test/test_web_authn_device.py index cb101ff1d..5e075173d 100644 --- a/test/test_web_authn_device.py +++ b/test/test_web_authn_device.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_web_authn_device_request.py b/test/test_web_authn_device_request.py index 59bfacf8b..6dd115596 100644 --- a/test/test_web_authn_device_request.py +++ b/test/test_web_authn_device_request.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_web_authn_device_type.py b/test/test_web_authn_device_type.py index eae0ab385..c820668f5 100644 --- a/test/test_web_authn_device_type.py +++ b/test/test_web_authn_device_type.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_worker.py b/test/test_worker.py index 41bd7373a..a46dc2161 100644 --- a/test/test_worker.py +++ b/test/test_worker.py @@ -5,7 +5,7 @@ Making authentication simple. - The version of the OpenAPI document: 2025.10.0-rc1 + The version of the OpenAPI document: 2025.12.4 Contact: hello@goauthentik.io Generated by OpenAPI Generator (https://openapi-generator.tech)