Skip to content

Commit

Permalink
fix(rdb): add documentation about password validation (#2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Nov 25, 2024
1 parent e059a31 commit 0396f60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/rdb/v1/rdb_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,7 @@ type CreateInstanceRequest struct {
// UserName: username created when the Database Instance is created.
UserName string `json:"user_name"`

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

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

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

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

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

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

0 comments on commit 0396f60

Please sign in to comment.