Skip to content

Commit a2da9d6

Browse files
Generator: Update SDK /services/logs (#2908)
* Generate logs * Generate kms * Generate runcommand * Add changelogs Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent eee58eb commit a2da9d6

26 files changed

+62
-44
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## Release (2026-xx-xx)
2+
3+
- `runcommand`: [v1.1.1](services/runcommand/CHANGELOG.md#v111)
4+
- **Bugfix**: Rename field `ParameterSchema` to `ParametersSchema` in `CommandTemplateSchema` model to match the actually attribute sent by the api
5+
- `kms`: [v0.7.0](services/kms/CHANGELOG.md#v070)
6+
- Set fields `description` to optional in for `Key`, `KeyRing` and `WrappingKey`
7+
- `logs`: [v0.2.0](services/logs/CHANGELOG.md#v020)
8+
- **Feature:** Switch from `v1beta` version to `v1` version of the API.
9+
110
## Release (2026-01-27)
211
- `serverbackup`: [v1.1.1](services/serverbackup/CHANGELOG.md#v111)
312
- **Bugfix:** Update backup status codes to match the backup status codes actually returned by the server backup API

services/kms/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.7.0
2+
- Set fields `description` to optional in for `Key`, `KeyRing` and `WrappingKey`
3+
14
## v0.6.0
25
- Set fields `description` and `import_only` to required in response struct `Key`
36
- Set fields `description` and `public_key` to required in response struct `WrappingKey`

services/kms/pyproject.toml

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

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

services/kms/src/stackit/kms/models/key.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class Key(BaseModel):
5050
description="This date is set when a key is pending deletion and refers to the scheduled date of deletion",
5151
alias="deletionDate",
5252
)
53-
description: Annotated[str, Field(strict=True, max_length=256)] = Field(
54-
description="A user chosen description to distinguish multiple keys."
53+
description: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(
54+
default=None, description="A user chosen description to distinguish multiple keys."
5555
)
5656
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
5757
description="The display name to distinguish multiple keys.", alias="displayName"

services/kms/src/stackit/kms/models/key_ring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class KeyRing(BaseModel):
3131
created_at: datetime = Field(
3232
description="The date and time the creation of the key ring was triggered.", alias="createdAt"
3333
)
34-
description: Annotated[str, Field(strict=True, max_length=256)] = Field(
35-
description="A user chosen description to distinguish multiple key rings."
34+
description: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(
35+
default=None, description="A user chosen description to distinguish multiple key rings."
3636
)
3737
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
3838
description="The display name to distinguish multiple key rings.", alias="displayName"

services/kms/src/stackit/kms/models/wrapping_key.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class WrappingKey(BaseModel):
3838
created_at: datetime = Field(
3939
description="The date and time the creation of the wrapping key was triggered.", alias="createdAt"
4040
)
41-
description: Annotated[str, Field(strict=True, max_length=256)] = Field(
42-
description="A user chosen description to distinguish multiple wrapping keys."
41+
description: Optional[Annotated[str, Field(strict=True, max_length=256)]] = Field(
42+
default=None, description="A user chosen description to distinguish multiple wrapping keys."
4343
)
4444
display_name: Annotated[str, Field(strict=True, max_length=64)] = Field(
4545
description="The display name to distinguish multiple wrapping keys.", alias="displayName"

services/logs/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
## v0.2.0
2+
- **Feature:** Switch from `v1beta` version to `v1` version of the API.
3+
14
## v0.1.0
25
- **New**: STACKIT Logs service

services/logs/pyproject.toml

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

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

services/logs/src/stackit/logs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
This API provides endpoints for managing STACKIT Logs.
99
10-
The version of the OpenAPI document: 1beta.0.3
10+
The version of the OpenAPI document: 1.0.0
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212
1313
Do not edit the class manually.

services/logs/src/stackit/logs/api/default_api.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API provides endpoints for managing STACKIT Logs.
77
8-
The version of the OpenAPI document: 1beta.0.3
8+
The version of the OpenAPI document: 1.0.0
99
Generated by OpenAPI Generator (https://openapi-generator.tech)
1010
1111
Do not edit the class manually.
@@ -336,7 +336,7 @@ def _create_access_token_serialize(
336336

337337
return self.api_client.param_serialize(
338338
method="POST",
339-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
339+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
340340
path_params=_path_params,
341341
query_params=_query_params,
342342
header_params=_header_params,
@@ -621,7 +621,7 @@ def _create_logs_instance_serialize(
621621

622622
return self.api_client.param_serialize(
623623
method="POST",
624-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances",
624+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances",
625625
path_params=_path_params,
626626
query_params=_query_params,
627627
header_params=_header_params,
@@ -913,7 +913,7 @@ def _delete_access_token_serialize(
913913

914914
return self.api_client.param_serialize(
915915
method="DELETE",
916-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
916+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
917917
path_params=_path_params,
918918
query_params=_query_params,
919919
header_params=_header_params,
@@ -1190,7 +1190,7 @@ def _delete_all_access_tokens_serialize(
11901190

11911191
return self.api_client.param_serialize(
11921192
method="DELETE",
1193-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
1193+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
11941194
path_params=_path_params,
11951195
query_params=_query_params,
11961196
header_params=_header_params,
@@ -1467,7 +1467,7 @@ def _delete_all_expired_access_tokens_serialize(
14671467

14681468
return self.api_client.param_serialize(
14691469
method="DELETE",
1470-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/expired",
1470+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/expired",
14711471
path_params=_path_params,
14721472
query_params=_query_params,
14731473
header_params=_header_params,
@@ -1744,7 +1744,7 @@ def _delete_logs_instance_serialize(
17441744

17451745
return self.api_client.param_serialize(
17461746
method="DELETE",
1747-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
1747+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
17481748
path_params=_path_params,
17491749
query_params=_query_params,
17501750
header_params=_header_params,
@@ -2036,7 +2036,7 @@ def _get_access_token_serialize(
20362036

20372037
return self.api_client.param_serialize(
20382038
method="GET",
2039-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
2039+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
20402040
path_params=_path_params,
20412041
query_params=_query_params,
20422042
header_params=_header_params,
@@ -2310,7 +2310,7 @@ def _get_logs_instance_serialize(
23102310

23112311
return self.api_client.param_serialize(
23122312
method="GET",
2313-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
2313+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
23142314
path_params=_path_params,
23152315
query_params=_query_params,
23162316
header_params=_header_params,
@@ -2587,7 +2587,7 @@ def _list_access_tokens_serialize(
25872587

25882588
return self.api_client.param_serialize(
25892589
method="GET",
2590-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
2590+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
25912591
path_params=_path_params,
25922592
query_params=_query_params,
25932593
header_params=_header_params,
@@ -2843,7 +2843,7 @@ def _list_logs_instances_serialize(
28432843

28442844
return self.api_client.param_serialize(
28452845
method="GET",
2846-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances",
2846+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances",
28472847
path_params=_path_params,
28482848
query_params=_query_params,
28492849
header_params=_header_params,
@@ -3158,7 +3158,7 @@ def _update_access_token_serialize(
31583158

31593159
return self.api_client.param_serialize(
31603160
method="PUT",
3161-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
3161+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
31623162
path_params=_path_params,
31633163
query_params=_query_params,
31643164
header_params=_header_params,
@@ -3458,7 +3458,7 @@ def _update_logs_instance_serialize(
34583458

34593459
return self.api_client.param_serialize(
34603460
method="PUT",
3461-
resource_path="/v1beta/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
3461+
resource_path="/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
34623462
path_params=_path_params,
34633463
query_params=_query_params,
34643464
header_params=_header_params,

0 commit comments

Comments
 (0)