From 40b53584e448f9f6d2f42378cbdeb632d8925dda Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 18 Dec 2025 17:12:25 +0000 Subject: [PATCH 1/2] Generate mongodbflex --- .../src/stackit/mongodbflex/models/create_user_payload.py | 2 +- .../stackit/mongodbflex/models/partial_update_user_payload.py | 2 +- .../src/stackit/mongodbflex/models/update_user_payload.py | 2 +- services/mongodbflex/src/stackit/mongodbflex/models/user.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py index a6fe49690..f03b4e90e 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py @@ -29,7 +29,7 @@ class CreateUserPayload(BaseModel): database: StrictStr roles: List[StrictStr] = Field( - description="The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**" + description="The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**" ) username: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["database", "roles", "username"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py index d32cef59f..311b60afd 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py @@ -30,7 +30,7 @@ class PartialUpdateUserPayload(BaseModel): database: Optional[StrictStr] = None roles: Optional[List[StrictStr]] = Field( default=None, - description="The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**", + description="The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**", ) __properties: ClassVar[List[str]] = ["database", "roles"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py b/services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py index 097ba1438..be3239525 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py @@ -29,7 +29,7 @@ class UpdateUserPayload(BaseModel): database: StrictStr roles: List[StrictStr] = Field( - description="The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**" + description="The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**" ) __properties: ClassVar[List[str]] = ["database", "roles"] diff --git a/services/mongodbflex/src/stackit/mongodbflex/models/user.py b/services/mongodbflex/src/stackit/mongodbflex/models/user.py index 2a7747dc2..23f45e68d 100644 --- a/services/mongodbflex/src/stackit/mongodbflex/models/user.py +++ b/services/mongodbflex/src/stackit/mongodbflex/models/user.py @@ -34,7 +34,7 @@ class User(BaseModel): port: Optional[StrictInt] = None roles: Optional[List[StrictStr]] = Field( default=None, - description="The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**", + description="The roles defined for a user. Currently only one role in the list is supported, therefore only the first role from this list is used. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.**", ) uri: Optional[StrictStr] = None username: Optional[StrictStr] = None From 3c673b4a94dc60a44414b0d7601221a1784b9e9c Mon Sep 17 00:00:00 2001 From: Marcel Jacek Date: Fri, 19 Dec 2025 14:02:32 +0100 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 2 ++ services/mongodbflex/CHANGELOG.md | 3 +++ services/mongodbflex/pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f3069ecb..b2b61bc88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ - **Feature:** Add `SystemRoutes` to `UpdateRoutingTableOfAreaPayload` - `kms`: [v0.5.0](services/kms/CHANGELOG.md#v050) - **Feature:** Add regex field validator for `display_name` attribute in model classes `CreateKeyPayload`, `CreateKeyRingPayload`, `CreateWrappingKeyPayload` +- `mongodbflex`: [v1.2.2](services/mongodbflex/CHANGELOG.md#v122) + - **Docs:** Extend description of `Roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model ## Release (2025-12-08) - `scf`: [v0.3.0](services/scf/CHANGELOG.md#v030) diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index 5c48237a3..57a8493f5 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.2.2 +- **Docs:** Extend description of `roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model + ## v1.2.1 - **Improvement:** Improve documentation for user roles field with descriptions of available values and behavior diff --git a/services/mongodbflex/pyproject.toml b/services/mongodbflex/pyproject.toml index 58d3af162..85f064dde 100644 --- a/services/mongodbflex/pyproject.toml +++ b/services/mongodbflex/pyproject.toml @@ -3,7 +3,7 @@ name = "stackit-mongodbflex" [tool.poetry] name = "stackit-mongodbflex" -version = "v1.2.1" +version = "v1.2.2" authors = [ "STACKIT Developer Tools ", ]