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
6 changes: 3 additions & 3 deletions scaleway-async/scaleway_async/rdb/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ async def create_instance(
Create a new Database Instance. You must set the `engine`, `user_name`, `password` and `node_type` parameters. Optionally, you can specify the volume type and size.
:param engine: Database engine of the Database Instance (PostgreSQL, MySQL, ...).
:param user_name: Username created when the Database Instance is created.
:param password: Password of the user.
:param password: Password of the user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
:param node_type: Type of node to use for the Database Instance.
:param region: Region to target. If none is passed will use default region from the config.
:param organization_id: Please use project_id instead.
Expand Down Expand Up @@ -2313,7 +2313,7 @@ async def create_user(
Create a new user for a Database Instance. You must define the `name`, `password` and `is_admin` parameters.
:param instance_id: UUID of the Database Instance in which you want to create a user.
:param name: Name of the user you want to create.
:param password: Password of the user you want to create.
:param password: Password of the user you want to create. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
:param is_admin: Defines whether the user will have administrative privileges.
:param region: Region to target. If none is passed will use default region from the config.
:return: :class:`User <User>`
Expand Down Expand Up @@ -2367,7 +2367,7 @@ async def update_user(
:param instance_id: UUID of the Database Instance the user belongs to.
:param name: Name of the database user.
:param region: Region to target. If none is passed will use default region from the config.
:param password: Password of the database user.
:param password: Password of the database user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
:param is_admin: Defines whether or not this user got administrative privileges.
:return: :class:`User <User>`

Expand Down
6 changes: 3 additions & 3 deletions scaleway-async/scaleway_async/rdb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ class CreateInstanceRequest:

password: str
"""
Password of the user.
Password of the user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
"""

node_type: str
Expand Down Expand Up @@ -1493,7 +1493,7 @@ class CreateUserRequest:

password: str
"""
Password of the user you want to create.
Password of the user you want to create. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
"""

is_admin: bool
Expand Down Expand Up @@ -2567,7 +2567,7 @@ class UpdateUserRequest:

password: Optional[str]
"""
Password of the database user.
Password of the database user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
"""

is_admin: Optional[bool]
Expand Down
6 changes: 3 additions & 3 deletions scaleway/scaleway/rdb/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ def create_instance(
Create a new Database Instance. You must set the `engine`, `user_name`, `password` and `node_type` parameters. Optionally, you can specify the volume type and size.
:param engine: Database engine of the Database Instance (PostgreSQL, MySQL, ...).
:param user_name: Username created when the Database Instance is created.
:param password: Password of the user.
:param password: Password of the user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
:param node_type: Type of node to use for the Database Instance.
:param region: Region to target. If none is passed will use default region from the config.
:param organization_id: Please use project_id instead.
Expand Down Expand Up @@ -2305,7 +2305,7 @@ def create_user(
Create a new user for a Database Instance. You must define the `name`, `password` and `is_admin` parameters.
:param instance_id: UUID of the Database Instance in which you want to create a user.
:param name: Name of the user you want to create.
:param password: Password of the user you want to create.
:param password: Password of the user you want to create. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
:param is_admin: Defines whether the user will have administrative privileges.
:param region: Region to target. If none is passed will use default region from the config.
:return: :class:`User <User>`
Expand Down Expand Up @@ -2359,7 +2359,7 @@ def update_user(
:param instance_id: UUID of the Database Instance the user belongs to.
:param name: Name of the database user.
:param region: Region to target. If none is passed will use default region from the config.
:param password: Password of the database user.
:param password: Password of the database user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
:param is_admin: Defines whether or not this user got administrative privileges.
:return: :class:`User <User>`

Expand Down
6 changes: 3 additions & 3 deletions scaleway/scaleway/rdb/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ class CreateInstanceRequest:

password: str
"""
Password of the user.
Password of the user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
"""

node_type: str
Expand Down Expand Up @@ -1493,7 +1493,7 @@ class CreateUserRequest:

password: str
"""
Password of the user you want to create.
Password of the user you want to create. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
"""

is_admin: bool
Expand Down Expand Up @@ -2567,7 +2567,7 @@ class UpdateUserRequest:

password: Optional[str]
"""
Password of the database user.
Password of the database user. Password must be between 8 and 128 characters, contain at least one digit, one uppercase, one lowercase and one special character.
"""

is_admin: Optional[bool]
Expand Down