Skip to content

Commit fe4106d

Browse files
Generator: Update SDK /services/resourcemanager (#9273)
Co-authored-by: Ruben Hoenle <Ruben.Hoenle@digits.schwarz>
1 parent 4d04ef4 commit fe4106d

8 files changed

Lines changed: 15 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
- **Breaking Change/Fix:** `create_backup` operation now returns `CreateBackupResponseItem` instead of `List[CreateBackupResponseItem]`
5151
The return type now correctly models the actual JSON response, this operation was broken beforehand.
5252
- **Deprecation:** Redis service has been deprecated and will be removed after 2027-08-25. Please use the Key Value Store (valkey) service instead.
53+
- `resourcemanager`
54+
- [v0.10.0](services/resourcemanager/CHANGELOG.md#0100)
55+
- **Breaking change:** Labels are nullable now, therefore the `labels` attribute in the `PartialUpdateFolderPayload`, `PartialUpdateOrganizationPayload` and `PartialUpdateProjectPayload` model class changed from `Optional[Dict[str, StrictStr]]` to `Optional[Dict[str, Optional[StrictStr]]]`
5356
- `secretsmanager`:
5457
- [v0.7.0](services/secretsmanager/CHANGELOG.md#v070)
5558
- **Feature:** Add support for managing AppRoles and their secret IDs: new `Approle`, `ApproleList`, `ApproleSecret`, `ApproleSecretList`, `CreateApprolePayload`, `CreateApproleSecretIdPayload`, `UpdateApprolePayload` and `UpdateApproleSecretIdPayload` models, plus new `create_approle`, `get_approle`, `get_approles`, `update_approle`, `delete_approle`, `create_approle_secret_id`, `get_approle_secret_id`, `list_approle_secret_ids`, `update_approle_secret_id` and `delete_approle_secret_id` operations

services/resourcemanager/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v0.10.0
2+
- **Breaking change:** Labels are nullable now, therefore the `labels` attribute in the `PartialUpdateFolderPayload`, `PartialUpdateOrganizationPayload` and `PartialUpdateProjectPayload` model class changed from `Optional[Dict[str, StrictStr]]` to `Optional[Dict[str, Optional[StrictStr]]]`
3+
14
## v0.9.1
25
- Update description of the `labels` attribute in model classes
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f22dd14374388602d895c8892b3e5b110dc16582
1+
79a99bf8bc8175f2f384c7636da1fae5f6a9bd60

services/resourcemanager/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "stackit-resourcemanager"
3-
version = "v0.9.1"
3+
version = "v0.10.0"
44
description = "Resource Manager API"
55
authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }]
66
requires-python = ">=3.10,<4.0"

services/resourcemanager/src/stackit/resourcemanager/models/partial_update_folder_payload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class PartialUpdateFolderPayload(BaseModel):
3333
description="New parent identifier for the resource container - containerId as well as UUID identifier is supported.",
3434
alias="containerParentId",
3535
)
36-
labels: Optional[Dict[str, StrictStr]] = Field(
36+
labels: Optional[Dict[str, Optional[StrictStr]]] = Field(
3737
default=None,
38-
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.*",
38+
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`, or be `null` to delete the label > Note: Additional naming restrictions may apply depending on your specific organization.*",
3939
)
4040
name: Optional[Annotated[str, Field(strict=True)]] = Field(
4141
default=None,

services/resourcemanager/src/stackit/resourcemanager/models/partial_update_organization_payload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ class PartialUpdateOrganizationPayload(BaseModel):
2828
PartialUpdateOrganizationPayload
2929
""" # noqa: E501
3030

31-
labels: Optional[Dict[str, StrictStr]] = Field(
31+
labels: Optional[Dict[str, Optional[StrictStr]]] = Field(
3232
default=None,
33-
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.*",
33+
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`, or be `null` to delete the label > Note: Additional naming restrictions may apply depending on your specific organization.*",
3434
)
3535
name: Optional[Annotated[str, Field(strict=True)]] = Field(
3636
default=None,

services/resourcemanager/src/stackit/resourcemanager/models/partial_update_project_payload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class PartialUpdateProjectPayload(BaseModel):
3333
description="New parent identifier for the resource container - containerId as well as UUID identifier is supported.",
3434
alias="containerParentId",
3535
)
36-
labels: Optional[Dict[str, StrictStr]] = Field(
36+
labels: Optional[Dict[str, Optional[StrictStr]]] = Field(
3737
default=None,
38-
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` > Note: Additional naming restrictions may apply depending on your specific organization.*",
38+
description="Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must match the regex `[A-ZÄÜÖa-zäüöß0-9_-]{1,64}` * **Value:** Must match the regex `^$|[A-ZÄÜÖa-zäüöß0-9_-]{1,64}`, or be `null` to delete the label > Note: Additional naming restrictions may apply depending on your specific organization.*",
3939
)
4040
name: Optional[Annotated[str, Field(strict=True)]] = Field(
4141
default=None,

services/resourcemanager/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)