Skip to content

Commit bb2c98c

Browse files
-e Update API Client
#### What's Changed --- ##### `GET` /rbac/roles/ ###### Parameters: Added: `name` in `query` Deleted: `group__name` in `query` ##### `GET` /tasks/tasks/{message_id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Added property `retries` (integer) > Number of retries * Added property `eta` (string) > Planned execution time ##### `GET` /tasks/tasks/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): * Added property `retries` (integer) > Number of retries * Added property `eta` (string) > Planned execution time
1 parent 99aab20 commit bb2c98c

File tree

13 files changed

+56
-27
lines changed

13 files changed

+56
-27
lines changed

README.md

Lines changed: 1 addition & 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-1759854394
19+
- Package version: 2025.10.0-rc1-1759935059
2020
- Generator version: 7.15.0
2121
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
2222

authentik_client/__init__.py

Lines changed: 1 addition & 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-1759854394"
18+
__version__ = "2025.10.0-rc1-1759935059"
1919

2020
# Define package exports
2121
__all__ = [

authentik_client/api/rbac_api.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8104,7 +8104,7 @@ def _rbac_roles_destroy_serialize(
81048104
@validate_call
81058105
def rbac_roles_list(
81068106
self,
8107-
group__name: Optional[StrictStr] = None,
8107+
name: Optional[StrictStr] = None,
81088108
ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None,
81098109
page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None,
81108110
page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
@@ -8126,8 +8126,8 @@ def rbac_roles_list(
81268126
81278127
Role viewset
81288128
8129-
:param group__name:
8130-
:type group__name: str
8129+
:param name:
8130+
:type name: str
81318131
:param ordering: Which field to use when ordering the results.
81328132
:type ordering: str
81338133
:param page: A page number within the paginated result set.
@@ -8159,7 +8159,7 @@ def rbac_roles_list(
81598159
""" # noqa: E501
81608160

81618161
_param = self._rbac_roles_list_serialize(
8162-
group__name=group__name,
8162+
name=name,
81638163
ordering=ordering,
81648164
page=page,
81658165
page_size=page_size,
@@ -8189,7 +8189,7 @@ def rbac_roles_list(
81898189
@validate_call
81908190
def rbac_roles_list_with_http_info(
81918191
self,
8192-
group__name: Optional[StrictStr] = None,
8192+
name: Optional[StrictStr] = None,
81938193
ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None,
81948194
page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None,
81958195
page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
@@ -8211,8 +8211,8 @@ def rbac_roles_list_with_http_info(
82118211
82128212
Role viewset
82138213
8214-
:param group__name:
8215-
:type group__name: str
8214+
:param name:
8215+
:type name: str
82168216
:param ordering: Which field to use when ordering the results.
82178217
:type ordering: str
82188218
:param page: A page number within the paginated result set.
@@ -8244,7 +8244,7 @@ def rbac_roles_list_with_http_info(
82448244
""" # noqa: E501
82458245

82468246
_param = self._rbac_roles_list_serialize(
8247-
group__name=group__name,
8247+
name=name,
82488248
ordering=ordering,
82498249
page=page,
82508250
page_size=page_size,
@@ -8274,7 +8274,7 @@ def rbac_roles_list_with_http_info(
82748274
@validate_call
82758275
def rbac_roles_list_without_preload_content(
82768276
self,
8277-
group__name: Optional[StrictStr] = None,
8277+
name: Optional[StrictStr] = None,
82788278
ordering: Annotated[Optional[StrictStr], Field(description="Which field to use when ordering the results.")] = None,
82798279
page: Annotated[Optional[StrictInt], Field(description="A page number within the paginated result set.")] = None,
82808280
page_size: Annotated[Optional[StrictInt], Field(description="Number of results to return per page.")] = None,
@@ -8296,8 +8296,8 @@ def rbac_roles_list_without_preload_content(
82968296
82978297
Role viewset
82988298
8299-
:param group__name:
8300-
:type group__name: str
8299+
:param name:
8300+
:type name: str
83018301
:param ordering: Which field to use when ordering the results.
83028302
:type ordering: str
83038303
:param page: A page number within the paginated result set.
@@ -8329,7 +8329,7 @@ def rbac_roles_list_without_preload_content(
83298329
""" # noqa: E501
83308330

83318331
_param = self._rbac_roles_list_serialize(
8332-
group__name=group__name,
8332+
name=name,
83338333
ordering=ordering,
83348334
page=page,
83358335
page_size=page_size,
@@ -8354,7 +8354,7 @@ def rbac_roles_list_without_preload_content(
83548354

83558355
def _rbac_roles_list_serialize(
83568356
self,
8357-
group__name,
8357+
name,
83588358
ordering,
83598359
page,
83608360
page_size,
@@ -8381,9 +8381,9 @@ def _rbac_roles_list_serialize(
83818381

83828382
# process the path parameters
83838383
# process the query parameters
8384-
if group__name is not None:
8384+
if name is not None:
83858385

8386-
_query_params.append(('group__name', group__name))
8386+
_query_params.append(('name', name))
83878387

83888388
if ordering is not None:
83898389

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-1759854394/python'
95+
self.user_agent = 'OpenAPI-Generator/2025.10.0-rc1-1759935059/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-1759854394".\
514+
"SDK Package Version: 2025.10.0-rc1-1759935059".\
515515
format(env=sys.platform, pyversion=sys.version)
516516

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

authentik_client/models/task.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from datetime import datetime
2222
from pydantic import BaseModel, ConfigDict, Field, StrictStr
2323
from typing import Any, ClassVar, Dict, List, Optional
24+
from typing_extensions import Annotated
2425
from uuid import UUID
2526
from authentik_client.models.log_event import LogEvent
2627
from authentik_client.models.state_enum import StateEnum
@@ -37,6 +38,8 @@ class Task(BaseModel):
3738
actor_name: StrictStr = Field(description="Dramatiq actor name")
3839
state: Optional[StateEnum] = Field(default=None, description="Task status")
3940
mtime: Optional[datetime] = Field(default=None, description="Task last modified time")
41+
retries: Optional[Annotated[int, Field(le=9223372036854775807, strict=True, ge=0)]] = Field(default=None, description="Number of retries")
42+
eta: Optional[datetime] = Field(default=None, description="Planned execution time")
4043
rel_obj_app_label: StrictStr
4144
rel_obj_model: StrictStr
4245
rel_obj_id: Optional[StrictStr] = None
@@ -45,7 +48,7 @@ class Task(BaseModel):
4548
previous_messages: List[LogEvent]
4649
aggregated_status: TaskAggregatedStatusEnum
4750
description: Optional[StrictStr]
48-
__properties: ClassVar[List[str]] = ["message_id", "queue_name", "actor_name", "state", "mtime", "rel_obj_app_label", "rel_obj_model", "rel_obj_id", "uid", "messages", "previous_messages", "aggregated_status", "description"]
51+
__properties: ClassVar[List[str]] = ["message_id", "queue_name", "actor_name", "state", "mtime", "retries", "eta", "rel_obj_app_label", "rel_obj_model", "rel_obj_id", "uid", "messages", "previous_messages", "aggregated_status", "description"]
4952

5053
model_config = ConfigDict(
5154
populate_by_name=True,
@@ -108,6 +111,11 @@ def to_dict(self) -> Dict[str, Any]:
108111
if _item_previous_messages:
109112
_items.append(_item_previous_messages.to_dict())
110113
_dict['previous_messages'] = _items
114+
# set to None if eta (nullable) is None
115+
# and model_fields_set contains the field
116+
if self.eta is None and "eta" in self.model_fields_set:
117+
_dict['eta'] = None
118+
111119
# set to None if rel_obj_id (nullable) is None
112120
# and model_fields_set contains the field
113121
if self.rel_obj_id is None and "rel_obj_id" in self.model_fields_set:
@@ -135,6 +143,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
135143
"actor_name": obj.get("actor_name"),
136144
"state": obj.get("state"),
137145
"mtime": obj.get("mtime"),
146+
"retries": obj.get("retries"),
147+
"eta": obj.get("eta"),
138148
"rel_obj_app_label": obj.get("rel_obj_app_label"),
139149
"rel_obj_model": obj.get("rel_obj_model"),
140150
"rel_obj_id": obj.get("rel_obj_id"),

docs/RbacApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ void (empty response body)
21952195
[[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)
21962196

21972197
# **rbac_roles_list**
2198-
> PaginatedRoleList rbac_roles_list(group__name=group__name, ordering=ordering, page=page, page_size=page_size, search=search)
2198+
> PaginatedRoleList rbac_roles_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search)
21992199
22002200
Role viewset
22012201

@@ -2229,14 +2229,14 @@ configuration = authentik_client.Configuration(
22292229
with authentik_client.ApiClient(configuration) as api_client:
22302230
# Create an instance of the API class
22312231
api_instance = authentik_client.RbacApi(api_client)
2232-
group__name = 'group__name_example' # str | (optional)
2232+
name = 'name_example' # str | (optional)
22332233
ordering = 'ordering_example' # str | Which field to use when ordering the results. (optional)
22342234
page = 56 # int | A page number within the paginated result set. (optional)
22352235
page_size = 56 # int | Number of results to return per page. (optional)
22362236
search = 'search_example' # str | A search term. (optional)
22372237

22382238
try:
2239-
api_response = api_instance.rbac_roles_list(group__name=group__name, ordering=ordering, page=page, page_size=page_size, search=search)
2239+
api_response = api_instance.rbac_roles_list(name=name, ordering=ordering, page=page, page_size=page_size, search=search)
22402240
print("The response of RbacApi->rbac_roles_list:\n")
22412241
pprint(api_response)
22422242
except Exception as e:
@@ -2250,7 +2250,7 @@ with authentik_client.ApiClient(configuration) as api_client:
22502250

22512251
Name | Type | Description | Notes
22522252
------------- | ------------- | ------------- | -------------
2253-
**group__name** | **str**| | [optional]
2253+
**name** | **str**| | [optional]
22542254
**ordering** | **str**| Which field to use when ordering the results. | [optional]
22552255
**page** | **int**| A page number within the paginated result set. | [optional]
22562256
**page_size** | **int**| Number of results to return per page. | [optional]

docs/Task.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
1010
**actor_name** | **str** | Dramatiq actor name |
1111
**state** | [**StateEnum**](StateEnum.md) | Task status | [optional]
1212
**mtime** | **datetime** | Task last modified time | [optional]
13+
**retries** | **int** | Number of retries | [optional]
14+
**eta** | **datetime** | Planned execution time | [optional]
1315
**rel_obj_app_label** | **str** | | [readonly]
1416
**rel_obj_model** | **str** | | [readonly]
1517
**rel_obj_id** | **str** | | [optional]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "authentik_client"
3-
version = "2025.10.0-rc1-1759854394"
3+
version = "2025.10.0-rc1-1759935059"
44
description = "authentik"
55
authors = [
66
{name = "authentik Team",email = "[email protected]"},

schema.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23994,7 +23994,7 @@ paths:
2399423994
description: Role viewset
2399523995
parameters:
2399623996
- in: query
23997-
name: group__name
23997+
name: name
2399823998
schema:
2399923999
type: string
2400024000
- $ref: '#/components/parameters/QueryPaginationOrdering'
@@ -59263,6 +59263,17 @@ components:
5926359263
type: string
5926459264
format: date-time
5926559265
description: Task last modified time
59266+
retries:
59267+
type: integer
59268+
maximum: 9223372036854775807
59269+
minimum: 0
59270+
format: int64
59271+
description: Number of retries
59272+
eta:
59273+
type: string
59274+
format: date-time
59275+
nullable: true
59276+
description: Planned execution time
5926659277
rel_obj_app_label:
5926759278
type: string
5926859279
readOnly: true

0 commit comments

Comments
 (0)