Skip to content

Commit cf47200

Browse files
Generator: Update SDK /services/objectstorage (#2273)
v1.2.0 - **Breaking change:** Set `expires` field in `CreateAccessKeyResponse` model to optional --------- Co-authored-by: Marcel Jacek <[email protected]>
1 parent 5a47421 commit cf47200

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Release (2025-MM-DD)
22
- `modelserving`: [v0.2.1](services/modelserving/CHANGELOG.md#v021)
33
- **Feature:** Extend enums in field `type` in model `Model`: `audio`, `image`
4+
- `objectstorage`: [v1.2.0](services/objectstorage/CHANGELOG.md#v120)
5+
- **Breaking change:** Set `expires` field in `CreateAccessKeyResponse` model to optional
46
- `observability`:
57
- [v0.10.1](services/observability/CHANGELOG.md#v0110)
68
- **Feature:** Add attributes `jaeger_http_traces_url`, `otlp_grpc_traces_url` and `otlp_http_traces_url` to `InstanceSensitiveData` model

services/objectstorage/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.2.0
2+
- **Breaking change:** Set `expires` field in `CreateAccessKeyResponse` model to optional
3+
14
## v1.1.0
25
- **Version**: Minimal version is now python 3.9
36

services/objectstorage/pyproject.toml

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

44
[tool.poetry]
55
name = "stackit-objectstorage"
6-
version = "v1.1.0"
6+
version = "v1.2.0"
77
authors = [
88
"STACKIT Developer Tools <[email protected]>",
99
]

services/objectstorage/src/stackit/objectstorage/models/create_access_key_response.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CreateAccessKeyResponse(BaseModel):
2828

2929
access_key: StrictStr = Field(description="Access key", alias="accessKey")
3030
display_name: StrictStr = Field(description="Obfuscated access key", alias="displayName")
31-
expires: StrictStr = Field(description="Expiration date. Null means never expires.")
31+
expires: Optional[StrictStr] = Field(description="Expiration date. Null means never expires.")
3232
key_id: StrictStr = Field(
3333
description="Identifies the pair of access key and secret access key for deletion", alias="keyId"
3434
)
@@ -73,6 +73,11 @@ def to_dict(self) -> Dict[str, Any]:
7373
exclude=excluded_fields,
7474
exclude_none=True,
7575
)
76+
# set to None if expires (nullable) is None
77+
# and model_fields_set contains the field
78+
if self.expires is None and "expires" in self.model_fields_set:
79+
_dict["expires"] = None
80+
7681
return _dict
7782

7883
@classmethod

0 commit comments

Comments
 (0)