Skip to content

Commit 99aab20

Browse files
-e Update API Client
#### What's New --- ##### `GET` /tasks/tasks/status/
1 parent 17bb003 commit 99aab20

File tree

15 files changed

+655
-6
lines changed

15 files changed

+655
-6
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ authentik_client/models/generic_error.py
199199
authentik_client/models/geo_ip_policy.py
200200
authentik_client/models/geo_ip_policy_request.py
201201
authentik_client/models/geoip_binding_enum.py
202+
authentik_client/models/global_task_status.py
202203
authentik_client/models/google_workspace_provider.py
203204
authentik_client/models/google_workspace_provider_group.py
204205
authentik_client/models/google_workspace_provider_group_request.py
@@ -975,6 +976,7 @@ docs/GenericError.md
975976
docs/GeoIPPolicy.md
976977
docs/GeoIPPolicyRequest.md
977978
docs/GeoipBindingEnum.md
979+
docs/GlobalTaskStatus.md
978980
docs/GoogleWorkspaceProvider.md
979981
docs/GoogleWorkspaceProviderGroup.md
980982
docs/GoogleWorkspaceProviderGroupRequest.md
@@ -1771,6 +1773,7 @@ test/test_generic_error.py
17711773
test/test_geo_ip_policy.py
17721774
test/test_geo_ip_policy_request.py
17731775
test/test_geoip_binding_enum.py
1776+
test/test_global_task_status.py
17741777
test/test_google_workspace_provider.py
17751778
test/test_google_workspace_provider_group.py
17761779
test/test_google_workspace_provider_group_request.py

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This repo contains a generated API client to talk with authentik's API from Pyth
1616
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1717

1818
- API version: 2025.10.0-rc1
19-
- Package version: 2025.10.0-rc1-1759847168
19+
- Package version: 2025.10.0-rc1-1759854394
2020
- Generator version: 7.15.0
2121
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
2222

@@ -1124,6 +1124,7 @@ Class | Method | HTTP request | Description
11241124
*TasksApi* | [**tasks_tasks_list**](docs/TasksApi.md#tasks_tasks_list) | **GET** /tasks/tasks/ |
11251125
*TasksApi* | [**tasks_tasks_retrieve**](docs/TasksApi.md#tasks_tasks_retrieve) | **GET** /tasks/tasks/{message_id}/ |
11261126
*TasksApi* | [**tasks_tasks_retry_create**](docs/TasksApi.md#tasks_tasks_retry_create) | **POST** /tasks/tasks/{message_id}/retry/ |
1127+
*TasksApi* | [**tasks_tasks_status_retrieve**](docs/TasksApi.md#tasks_tasks_status_retrieve) | **GET** /tasks/tasks/status/ |
11271128
*TasksApi* | [**tasks_workers_list**](docs/TasksApi.md#tasks_workers_list) | **GET** /tasks/workers |
11281129
*TenantsApi* | [**tenants_domains_create**](docs/TenantsApi.md#tenants_domains_create) | **POST** /tenants/domains/ |
11291130
*TenantsApi* | [**tenants_domains_destroy**](docs/TenantsApi.md#tenants_domains_destroy) | **DELETE** /tenants/domains/{id}/ |
@@ -1310,6 +1311,7 @@ Class | Method | HTTP request | Description
13101311
- [GeoIPPolicy](docs/GeoIPPolicy.md)
13111312
- [GeoIPPolicyRequest](docs/GeoIPPolicyRequest.md)
13121313
- [GeoipBindingEnum](docs/GeoipBindingEnum.md)
1314+
- [GlobalTaskStatus](docs/GlobalTaskStatus.md)
13131315
- [GoogleWorkspaceProvider](docs/GoogleWorkspaceProvider.md)
13141316
- [GoogleWorkspaceProviderGroup](docs/GoogleWorkspaceProviderGroup.md)
13151317
- [GoogleWorkspaceProviderGroupRequest](docs/GoogleWorkspaceProviderGroupRequest.md)

authentik_client/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "2025.10.0-rc1-1759847168"
18+
__version__ = "2025.10.0-rc1-1759854394"
1919

2020
# Define package exports
2121
__all__ = [
@@ -217,6 +217,7 @@
217217
"GeoIPPolicy",
218218
"GeoIPPolicyRequest",
219219
"GeoipBindingEnum",
220+
"GlobalTaskStatus",
220221
"GoogleWorkspaceProvider",
221222
"GoogleWorkspaceProviderGroup",
222223
"GoogleWorkspaceProviderGroupRequest",
@@ -1023,6 +1024,7 @@
10231024
from authentik_client.models.geo_ip_policy import GeoIPPolicy as GeoIPPolicy
10241025
from authentik_client.models.geo_ip_policy_request import GeoIPPolicyRequest as GeoIPPolicyRequest
10251026
from authentik_client.models.geoip_binding_enum import GeoipBindingEnum as GeoipBindingEnum
1027+
from authentik_client.models.global_task_status import GlobalTaskStatus as GlobalTaskStatus
10261028
from authentik_client.models.google_workspace_provider import GoogleWorkspaceProvider as GoogleWorkspaceProvider
10271029
from authentik_client.models.google_workspace_provider_group import GoogleWorkspaceProviderGroup as GoogleWorkspaceProviderGroup
10281030
from authentik_client.models.google_workspace_provider_group_request import GoogleWorkspaceProviderGroupRequest as GoogleWorkspaceProviderGroupRequest
@@ -1835,6 +1837,7 @@
18351837
from authentik_client.models.geo_ip_policy import GeoIPPolicy as GeoIPPolicy
18361838
from authentik_client.models.geo_ip_policy_request import GeoIPPolicyRequest as GeoIPPolicyRequest
18371839
from authentik_client.models.geoip_binding_enum import GeoipBindingEnum as GeoipBindingEnum
1840+
from authentik_client.models.global_task_status import GlobalTaskStatus as GlobalTaskStatus
18381841
from authentik_client.models.google_workspace_provider import GoogleWorkspaceProvider as GoogleWorkspaceProvider
18391842
from authentik_client.models.google_workspace_provider_group import GoogleWorkspaceProviderGroup as GoogleWorkspaceProviderGroup
18401843
from authentik_client.models.google_workspace_provider_group_request import GoogleWorkspaceProviderGroupRequest as GoogleWorkspaceProviderGroupRequest

authentik_client/api/tasks_api.py

Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from typing import List, Optional
2222
from typing_extensions import Annotated
2323
from uuid import UUID
24+
from authentik_client.models.global_task_status import GlobalTaskStatus
2425
from authentik_client.models.paginated_schedule_list import PaginatedScheduleList
2526
from authentik_client.models.paginated_task_list import PaginatedTaskList
2627
from authentik_client.models.patched_schedule_request import PatchedScheduleRequest
@@ -2575,6 +2576,258 @@ def _tasks_tasks_retry_create_serialize(
25752576

25762577

25772578

2579+
@validate_call
2580+
def tasks_tasks_status_retrieve(
2581+
self,
2582+
_request_timeout: Union[
2583+
None,
2584+
Annotated[StrictFloat, Field(gt=0)],
2585+
Tuple[
2586+
Annotated[StrictFloat, Field(gt=0)],
2587+
Annotated[StrictFloat, Field(gt=0)]
2588+
]
2589+
] = None,
2590+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
2591+
_content_type: Optional[StrictStr] = None,
2592+
_headers: Optional[Dict[StrictStr, Any]] = None,
2593+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2594+
) -> GlobalTaskStatus:
2595+
"""tasks_tasks_status_retrieve
2596+
2597+
Global status summary for all tasks
2598+
2599+
:param _request_timeout: timeout setting for this request. If one
2600+
number provided, it will be total request
2601+
timeout. It can also be a pair (tuple) of
2602+
(connection, read) timeouts.
2603+
:type _request_timeout: int, tuple(int, int), optional
2604+
:param _request_auth: set to override the auth_settings for an a single
2605+
request; this effectively ignores the
2606+
authentication in the spec for a single request.
2607+
:type _request_auth: dict, optional
2608+
:param _content_type: force content-type for the request.
2609+
:type _content_type: str, Optional
2610+
:param _headers: set to override the headers for a single
2611+
request; this effectively ignores the headers
2612+
in the spec for a single request.
2613+
:type _headers: dict, optional
2614+
:param _host_index: set to override the host_index for a single
2615+
request; this effectively ignores the host_index
2616+
in the spec for a single request.
2617+
:type _host_index: int, optional
2618+
:return: Returns the result object.
2619+
""" # noqa: E501
2620+
2621+
_param = self._tasks_tasks_status_retrieve_serialize(
2622+
_request_auth=_request_auth,
2623+
_content_type=_content_type,
2624+
_headers=_headers,
2625+
_host_index=_host_index
2626+
)
2627+
2628+
_response_types_map: Dict[str, Optional[str]] = {
2629+
'200': "GlobalTaskStatus",
2630+
'400': "ValidationError",
2631+
'403': "GenericError",
2632+
}
2633+
response_data = self.api_client.call_api(
2634+
*_param,
2635+
_request_timeout=_request_timeout
2636+
)
2637+
response_data.read()
2638+
return self.api_client.response_deserialize(
2639+
response_data=response_data,
2640+
response_types_map=_response_types_map,
2641+
).data
2642+
2643+
2644+
@validate_call
2645+
def tasks_tasks_status_retrieve_with_http_info(
2646+
self,
2647+
_request_timeout: Union[
2648+
None,
2649+
Annotated[StrictFloat, Field(gt=0)],
2650+
Tuple[
2651+
Annotated[StrictFloat, Field(gt=0)],
2652+
Annotated[StrictFloat, Field(gt=0)]
2653+
]
2654+
] = None,
2655+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
2656+
_content_type: Optional[StrictStr] = None,
2657+
_headers: Optional[Dict[StrictStr, Any]] = None,
2658+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2659+
) -> ApiResponse[GlobalTaskStatus]:
2660+
"""tasks_tasks_status_retrieve
2661+
2662+
Global status summary for all tasks
2663+
2664+
:param _request_timeout: timeout setting for this request. If one
2665+
number provided, it will be total request
2666+
timeout. It can also be a pair (tuple) of
2667+
(connection, read) timeouts.
2668+
:type _request_timeout: int, tuple(int, int), optional
2669+
:param _request_auth: set to override the auth_settings for an a single
2670+
request; this effectively ignores the
2671+
authentication in the spec for a single request.
2672+
:type _request_auth: dict, optional
2673+
:param _content_type: force content-type for the request.
2674+
:type _content_type: str, Optional
2675+
:param _headers: set to override the headers for a single
2676+
request; this effectively ignores the headers
2677+
in the spec for a single request.
2678+
:type _headers: dict, optional
2679+
:param _host_index: set to override the host_index for a single
2680+
request; this effectively ignores the host_index
2681+
in the spec for a single request.
2682+
:type _host_index: int, optional
2683+
:return: Returns the result object.
2684+
""" # noqa: E501
2685+
2686+
_param = self._tasks_tasks_status_retrieve_serialize(
2687+
_request_auth=_request_auth,
2688+
_content_type=_content_type,
2689+
_headers=_headers,
2690+
_host_index=_host_index
2691+
)
2692+
2693+
_response_types_map: Dict[str, Optional[str]] = {
2694+
'200': "GlobalTaskStatus",
2695+
'400': "ValidationError",
2696+
'403': "GenericError",
2697+
}
2698+
response_data = self.api_client.call_api(
2699+
*_param,
2700+
_request_timeout=_request_timeout
2701+
)
2702+
response_data.read()
2703+
return self.api_client.response_deserialize(
2704+
response_data=response_data,
2705+
response_types_map=_response_types_map,
2706+
)
2707+
2708+
2709+
@validate_call
2710+
def tasks_tasks_status_retrieve_without_preload_content(
2711+
self,
2712+
_request_timeout: Union[
2713+
None,
2714+
Annotated[StrictFloat, Field(gt=0)],
2715+
Tuple[
2716+
Annotated[StrictFloat, Field(gt=0)],
2717+
Annotated[StrictFloat, Field(gt=0)]
2718+
]
2719+
] = None,
2720+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
2721+
_content_type: Optional[StrictStr] = None,
2722+
_headers: Optional[Dict[StrictStr, Any]] = None,
2723+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2724+
) -> RESTResponseType:
2725+
"""tasks_tasks_status_retrieve
2726+
2727+
Global status summary for all tasks
2728+
2729+
:param _request_timeout: timeout setting for this request. If one
2730+
number provided, it will be total request
2731+
timeout. It can also be a pair (tuple) of
2732+
(connection, read) timeouts.
2733+
:type _request_timeout: int, tuple(int, int), optional
2734+
:param _request_auth: set to override the auth_settings for an a single
2735+
request; this effectively ignores the
2736+
authentication in the spec for a single request.
2737+
:type _request_auth: dict, optional
2738+
:param _content_type: force content-type for the request.
2739+
:type _content_type: str, Optional
2740+
:param _headers: set to override the headers for a single
2741+
request; this effectively ignores the headers
2742+
in the spec for a single request.
2743+
:type _headers: dict, optional
2744+
:param _host_index: set to override the host_index for a single
2745+
request; this effectively ignores the host_index
2746+
in the spec for a single request.
2747+
:type _host_index: int, optional
2748+
:return: Returns the result object.
2749+
""" # noqa: E501
2750+
2751+
_param = self._tasks_tasks_status_retrieve_serialize(
2752+
_request_auth=_request_auth,
2753+
_content_type=_content_type,
2754+
_headers=_headers,
2755+
_host_index=_host_index
2756+
)
2757+
2758+
_response_types_map: Dict[str, Optional[str]] = {
2759+
'200': "GlobalTaskStatus",
2760+
'400': "ValidationError",
2761+
'403': "GenericError",
2762+
}
2763+
response_data = self.api_client.call_api(
2764+
*_param,
2765+
_request_timeout=_request_timeout
2766+
)
2767+
return response_data.response
2768+
2769+
2770+
def _tasks_tasks_status_retrieve_serialize(
2771+
self,
2772+
_request_auth,
2773+
_content_type,
2774+
_headers,
2775+
_host_index,
2776+
) -> RequestSerialized:
2777+
2778+
_host = None
2779+
2780+
_collection_formats: Dict[str, str] = {
2781+
}
2782+
2783+
_path_params: Dict[str, str] = {}
2784+
_query_params: List[Tuple[str, str]] = []
2785+
_header_params: Dict[str, Optional[str]] = _headers or {}
2786+
_form_params: List[Tuple[str, str]] = []
2787+
_files: Dict[
2788+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2789+
] = {}
2790+
_body_params: Optional[bytes] = None
2791+
2792+
# process the path parameters
2793+
# process the query parameters
2794+
# process the header parameters
2795+
# process the form parameters
2796+
# process the body parameter
2797+
2798+
2799+
# set the HTTP header `Accept`
2800+
if 'Accept' not in _header_params:
2801+
_header_params['Accept'] = self.api_client.select_header_accept(
2802+
[
2803+
'application/json'
2804+
]
2805+
)
2806+
2807+
2808+
# authentication setting
2809+
_auth_settings: List[str] = [
2810+
'authentik'
2811+
]
2812+
2813+
return self.api_client.param_serialize(
2814+
method='GET',
2815+
resource_path='/tasks/tasks/status/',
2816+
path_params=_path_params,
2817+
query_params=_query_params,
2818+
header_params=_header_params,
2819+
body=_body_params,
2820+
post_params=_form_params,
2821+
files=_files,
2822+
auth_settings=_auth_settings,
2823+
collection_formats=_collection_formats,
2824+
_host=_host,
2825+
_request_auth=_request_auth
2826+
)
2827+
2828+
2829+
2830+
25782831
@validate_call
25792832
def tasks_workers_list(
25802833
self,

authentik_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(
9292
self.default_headers[header_name] = header_value
9393
self.cookie = cookie
9494
# Set default User-Agent.
95-
self.user_agent = 'OpenAPI-Generator/2025.10.0-rc1-1759847168/python'
95+
self.user_agent = 'OpenAPI-Generator/2025.10.0-rc1-1759854394/python'
9696
self.client_side_validation = configuration.client_side_validation
9797

9898
def __enter__(self):

authentik_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def to_debug_report(self) -> str:
511511
"OS: {env}\n"\
512512
"Python Version: {pyversion}\n"\
513513
"Version of the API: 2025.10.0-rc1\n"\
514-
"SDK Package Version: 2025.10.0-rc1-1759847168".\
514+
"SDK Package Version: 2025.10.0-rc1-1759854394".\
515515
format(env=sys.platform, pyversion=sys.version)
516516

517517
def get_host_settings(self) -> List[HostSetting]:

authentik_client/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@
183183
from authentik_client.models.geo_ip_policy import GeoIPPolicy
184184
from authentik_client.models.geo_ip_policy_request import GeoIPPolicyRequest
185185
from authentik_client.models.geoip_binding_enum import GeoipBindingEnum
186+
from authentik_client.models.global_task_status import GlobalTaskStatus
186187
from authentik_client.models.google_workspace_provider import GoogleWorkspaceProvider
187188
from authentik_client.models.google_workspace_provider_group import GoogleWorkspaceProviderGroup
188189
from authentik_client.models.google_workspace_provider_group_request import GoogleWorkspaceProviderGroupRequest
@@ -958,6 +959,7 @@
958959
from authentik_client.models.geo_ip_policy import GeoIPPolicy
959960
from authentik_client.models.geo_ip_policy_request import GeoIPPolicyRequest
960961
from authentik_client.models.geoip_binding_enum import GeoipBindingEnum
962+
from authentik_client.models.global_task_status import GlobalTaskStatus
961963
from authentik_client.models.google_workspace_provider import GoogleWorkspaceProvider
962964
from authentik_client.models.google_workspace_provider_group import GoogleWorkspaceProviderGroup
963965
from authentik_client.models.google_workspace_provider_group_request import GoogleWorkspaceProviderGroupRequest

0 commit comments

Comments
 (0)