Skip to content

Commit a8bbff2

Browse files
Generator: Update SDK /services/authorization (#2540)
Co-authored-by: Ruben Hoenle <Ruben.Hoenle@stackit.cloud>
1 parent e4b8ba6 commit a8bbff2

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## Release (2025-XX-XX)
2+
- `authorization`: [v0.5.0](services/authorization/CHANGELOG.md#v050)
3+
- Add new `etag` attribute to `Role` model class
4+
15
## Release (2025-11-14)
26
- `cdn`:
37
- [v2.1.0](services/cdn/CHANGELOG.md#v210)

services/authorization/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.5.0
2+
- Add new `etag` attribute to `Role` model class
3+
14
## v0.4.1
25
- **Bugfix:** Prevent year 0 timestamp issue
36

services/authorization/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "stackit-authorization"
33

44
[tool.poetry]
55
name = "stackit-authorization"
6-
version = "v0.4.1"
6+
version = "v0.5.0"
77
authors = [
88
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
99
]

services/authorization/src/stackit/authorization/models/role.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re # noqa: F401
1919
from typing import Any, ClassVar, Dict, List, Optional, Set
2020

21-
from pydantic import BaseModel, ConfigDict, Field, field_validator
21+
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
2222
from typing_extensions import Annotated, Self
2323

2424
from stackit.authorization.models.permission import Permission
@@ -30,10 +30,11 @@ class Role(BaseModel):
3030
""" # noqa: E501
3131

3232
description: Annotated[str, Field(strict=True, max_length=255)]
33+
etag: Optional[StrictStr] = None
3334
id: Optional[Annotated[str, Field(strict=True)]] = None
3435
name: Annotated[str, Field(strict=True)]
3536
permissions: List[Permission]
36-
__properties: ClassVar[List[str]] = ["description", "id", "name", "permissions"]
37+
__properties: ClassVar[List[str]] = ["description", "etag", "id", "name", "permissions"]
3738

3839
@field_validator("id")
3940
def id_validate_regular_expression(cls, value):
@@ -110,6 +111,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
110111
_obj = cls.model_validate(
111112
{
112113
"description": obj.get("description"),
114+
"etag": obj.get("etag"),
113115
"id": obj.get("id"),
114116
"name": obj.get("name"),
115117
"permissions": (

0 commit comments

Comments
 (0)