Skip to content

Commit 3ec99c6

Browse files
Generator: Update SDK /services/mongodbflex (#2701)
1 parent ca1e877 commit 3ec99c6

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- **Feature:** Add `SystemRoutes` to `UpdateRoutingTableOfAreaPayload`
88
- `kms`: [v0.5.0](services/kms/CHANGELOG.md#v050)
99
- **Feature:** Add regex field validator for `display_name` attribute in model classes `CreateKeyPayload`, `CreateKeyRingPayload`, `CreateWrappingKeyPayload`
10+
- `mongodbflex`: [v1.2.2](services/mongodbflex/CHANGELOG.md#v122)
11+
- **Docs:** Extend description of `Roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model
1012

1113
## Release (2025-12-08)
1214
- `scf`: [v0.3.0](services/scf/CHANGELOG.md#v030)

services/mongodbflex/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v1.2.2
2+
- **Docs:** Extend description of `roles` field in `CreateUserPayload`, `PartialUpdateUserPayload`, `UpdateUserPayload` and `User` model
3+
14
## v1.2.1
25
- **Improvement:** Improve documentation for user roles field with descriptions of available values and behavior
36

services/mongodbflex/pyproject.toml

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

44
[tool.poetry]
55
name = "stackit-mongodbflex"
6-
version = "v1.2.1"
6+
version = "v1.2.2"
77
authors = [
88
"STACKIT Developer Tools <developer-tools@stackit.cloud>",
99
]

services/mongodbflex/src/stackit/mongodbflex/models/create_user_payload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CreateUserPayload(BaseModel):
2929

3030
database: StrictStr
3131
roles: List[StrictStr] = Field(
32-
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.**"
32+
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.**"
3333
)
3434
username: Optional[StrictStr] = None
3535
__properties: ClassVar[List[str]] = ["database", "roles", "username"]

services/mongodbflex/src/stackit/mongodbflex/models/partial_update_user_payload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PartialUpdateUserPayload(BaseModel):
3030
database: Optional[StrictStr] = None
3131
roles: Optional[List[StrictStr]] = Field(
3232
default=None,
33-
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.**",
33+
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.**",
3434
)
3535
__properties: ClassVar[List[str]] = ["database", "roles"]
3636

services/mongodbflex/src/stackit/mongodbflex/models/update_user_payload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UpdateUserPayload(BaseModel):
2929

3030
database: StrictStr
3131
roles: List[StrictStr] = Field(
32-
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.**"
32+
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.**"
3333
)
3434
__properties: ClassVar[List[str]] = ["database", "roles"]
3535

services/mongodbflex/src/stackit/mongodbflex/models/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class User(BaseModel):
3434
port: Optional[StrictInt] = None
3535
roles: Optional[List[StrictStr]] = Field(
3636
default=None,
37-
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.**",
37+
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.**",
3838
)
3939
uri: Optional[StrictStr] = None
4040
username: Optional[StrictStr] = None

0 commit comments

Comments
 (0)