Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions scaleway-async/scaleway_async/mongodb/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,6 +1223,8 @@ async def set_user_role(
roles: Optional[List[UserRole]] = None,
) -> User:
"""
Apply user roles.
Apply preset roles for a user in a Database Instance.
:param instance_id: UUID of the Database Instance the user belongs to.
:param user_name: Name of the database user.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/mongodb/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ class SnapshotVolumeType:
@dataclass
class UserRole:
role: UserRoleRole
"""
Name of the preset role.
"""

database: Optional[str]

Expand Down
2 changes: 2 additions & 0 deletions scaleway/scaleway/mongodb/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,8 @@ def set_user_role(
roles: Optional[List[UserRole]] = None,
) -> User:
"""
Apply user roles.
Apply preset roles for a user in a Database Instance.
:param instance_id: UUID of the Database Instance the user belongs to.
:param user_name: Name of the database user.
:param region: Region to target. If none is passed will use default region from the config.
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/mongodb/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ class SnapshotVolumeType:
@dataclass
class UserRole:
role: UserRoleRole
"""
Name of the preset role.
"""

database: Optional[str]

Expand Down