diff --git a/CHANGELOG.md b/CHANGELOG.md index b50d4e2da..2b9f6d664 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -50,6 +50,9 @@ - **Breaking Change/Fix:** `create_backup` operation now returns `CreateBackupResponseItem` instead of `List[CreateBackupResponseItem]` The return type now correctly models the actual JSON response, this operation was broken beforehand. - **Deprecation:** Redis service has been deprecated and will be removed after 2027-08-25. Please use the Key Value Store (valkey) service instead. +- `resourcemanager` + - [v0.10.0](services/resourcemanager/CHANGELOG.md#0100) + - **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]]]` - `secretsmanager`: - [v0.7.0](services/secretsmanager/CHANGELOG.md#v070) - **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 diff --git a/services/resourcemanager/CHANGELOG.md b/services/resourcemanager/CHANGELOG.md index 3e5af0b3a..1507f17da 100644 --- a/services/resourcemanager/CHANGELOG.md +++ b/services/resourcemanager/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.10.0 +- **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]]]` + ## v0.9.1 - Update description of the `labels` attribute in model classes diff --git a/services/resourcemanager/oas_commit b/services/resourcemanager/oas_commit index b687a3969..42d3f2f4f 100644 --- a/services/resourcemanager/oas_commit +++ b/services/resourcemanager/oas_commit @@ -1 +1 @@ -f22dd14374388602d895c8892b3e5b110dc16582 +79a99bf8bc8175f2f384c7636da1fae5f6a9bd60 diff --git a/services/resourcemanager/pyproject.toml b/services/resourcemanager/pyproject.toml index 23186d46f..0299c8a52 100644 --- a/services/resourcemanager/pyproject.toml +++ b/services/resourcemanager/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "stackit-resourcemanager" -version = "v0.9.1" +version = "v0.10.0" description = "Resource Manager API" authors = [{ name = "STACKIT Developer Tools", email = "developer-tools@stackit.cloud" }] requires-python = ">=3.10,<4.0" diff --git a/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_folder_payload.py b/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_folder_payload.py index 2a148b269..4dd64595c 100644 --- a/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_folder_payload.py +++ b/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_folder_payload.py @@ -33,9 +33,9 @@ class PartialUpdateFolderPayload(BaseModel): description="New parent identifier for the resource container - containerId as well as UUID identifier is supported.", alias="containerParentId", ) - labels: Optional[Dict[str, StrictStr]] = Field( + labels: Optional[Dict[str, Optional[StrictStr]]] = Field( default=None, - 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.*", + 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.*", ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, diff --git a/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_organization_payload.py b/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_organization_payload.py index bf1744e27..7041404b8 100644 --- a/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_organization_payload.py +++ b/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_organization_payload.py @@ -28,9 +28,9 @@ class PartialUpdateOrganizationPayload(BaseModel): PartialUpdateOrganizationPayload """ # noqa: E501 - labels: Optional[Dict[str, StrictStr]] = Field( + labels: Optional[Dict[str, Optional[StrictStr]]] = Field( default=None, - 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.*", + 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.*", ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, diff --git a/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_project_payload.py b/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_project_payload.py index e78b03157..1df33cd1c 100644 --- a/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_project_payload.py +++ b/services/resourcemanager/src/stackit/resourcemanager/models/partial_update_project_payload.py @@ -33,9 +33,9 @@ class PartialUpdateProjectPayload(BaseModel): description="New parent identifier for the resource container - containerId as well as UUID identifier is supported.", alias="containerParentId", ) - labels: Optional[Dict[str, StrictStr]] = Field( + labels: Optional[Dict[str, Optional[StrictStr]]] = Field( default=None, - 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.*", + 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.*", ) name: Optional[Annotated[str, Field(strict=True)]] = Field( default=None, diff --git a/services/resourcemanager/uv.lock b/services/resourcemanager/uv.lock index 388c908e9..deea462df 100644 --- a/services/resourcemanager/uv.lock +++ b/services/resourcemanager/uv.lock @@ -1057,7 +1057,7 @@ dev = [ [[package]] name = "stackit-resourcemanager" -version = "0.9.1" +version = "0.10.0" source = { editable = "." } dependencies = [ { name = "pydantic" },