diff --git a/scaleway-async/scaleway_async/mongodb/v1alpha1/api.py b/scaleway-async/scaleway_async/mongodb/v1alpha1/api.py index dc413e65a..cc969f592 100644 --- a/scaleway-async/scaleway_async/mongodb/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/mongodb/v1alpha1/api.py @@ -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. diff --git a/scaleway-async/scaleway_async/mongodb/v1alpha1/types.py b/scaleway-async/scaleway_async/mongodb/v1alpha1/types.py index 200da3848..3703f280c 100644 --- a/scaleway-async/scaleway_async/mongodb/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/mongodb/v1alpha1/types.py @@ -234,6 +234,9 @@ class SnapshotVolumeType: @dataclass class UserRole: role: UserRoleRole + """ + Name of the preset role. + """ database: Optional[str] diff --git a/scaleway/scaleway/mongodb/v1alpha1/api.py b/scaleway/scaleway/mongodb/v1alpha1/api.py index 1af856560..6d9734626 100644 --- a/scaleway/scaleway/mongodb/v1alpha1/api.py +++ b/scaleway/scaleway/mongodb/v1alpha1/api.py @@ -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. diff --git a/scaleway/scaleway/mongodb/v1alpha1/types.py b/scaleway/scaleway/mongodb/v1alpha1/types.py index 200da3848..3703f280c 100644 --- a/scaleway/scaleway/mongodb/v1alpha1/types.py +++ b/scaleway/scaleway/mongodb/v1alpha1/types.py @@ -234,6 +234,9 @@ class SnapshotVolumeType: @dataclass class UserRole: role: UserRoleRole + """ + Name of the preset role. + """ database: Optional[str]