Skip to content

Commit 6438ce4

Browse files
authored
fix(mongodb): add the new SetUserRole endpoint on the documentation (scaleway#989)
1 parent affa47f commit 6438ce4

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

scaleway-async/scaleway_async/mongodb/v1alpha1/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,8 @@ async def set_user_role(
12231223
roles: Optional[List[UserRole]] = None,
12241224
) -> User:
12251225
"""
1226+
Apply user roles.
1227+
Apply preset roles for a user in a Database Instance.
12261228
:param instance_id: UUID of the Database Instance the user belongs to.
12271229
:param user_name: Name of the database user.
12281230
:param region: Region to target. If none is passed will use default region from the config.

scaleway-async/scaleway_async/mongodb/v1alpha1/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ class SnapshotVolumeType:
234234
@dataclass
235235
class UserRole:
236236
role: UserRoleRole
237+
"""
238+
Name of the preset role.
239+
"""
237240

238241
database: Optional[str]
239242

scaleway/scaleway/mongodb/v1alpha1/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,8 @@ def set_user_role(
12191219
roles: Optional[List[UserRole]] = None,
12201220
) -> User:
12211221
"""
1222+
Apply user roles.
1223+
Apply preset roles for a user in a Database Instance.
12221224
:param instance_id: UUID of the Database Instance the user belongs to.
12231225
:param user_name: Name of the database user.
12241226
:param region: Region to target. If none is passed will use default region from the config.

scaleway/scaleway/mongodb/v1alpha1/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ class SnapshotVolumeType:
234234
@dataclass
235235
class UserRole:
236236
role: UserRoleRole
237+
"""
238+
Name of the preset role.
239+
"""
237240

238241
database: Optional[str]
239242

0 commit comments

Comments
 (0)