Skip to content

Commit 0396f60

Browse files
authored
fix(rdb): add documentation about password validation (scaleway#2328)
1 parent e059a31 commit 0396f60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/rdb/v1/rdb_sdk.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ type CreateInstanceRequest struct {
18151815
// UserName: username created when the Database Instance is created.
18161816
UserName string `json:"user_name"`
18171817

1818-
// Password: password of the user.
1818+
// 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.
18191819
Password string `json:"password"`
18201820

18211821
// NodeType: type of node to use for the Database Instance.
@@ -1903,7 +1903,7 @@ type CreateUserRequest struct {
19031903
// Name: name of the user you want to create.
19041904
Name string `json:"name"`
19051905

1906-
// Password: password of the user you want to create.
1906+
// 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.
19071907
Password string `json:"password"`
19081908

19091909
// IsAdmin: defines whether the user will have administrative privileges.
@@ -2811,7 +2811,7 @@ type UpdateUserRequest struct {
28112811
// Name: name of the database user.
28122812
Name string `json:"-"`
28132813

2814-
// Password: password of the database user.
2814+
// 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.
28152815
Password *string `json:"password,omitempty"`
28162816

28172817
// IsAdmin: defines whether or not this user got administrative privileges.

0 commit comments

Comments
 (0)