Skip to content

Commit 9c92e5b

Browse files
authored
fix(rdb): add documentation about password validation (#1603)
1 parent 9180ab7 commit 9c92e5b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

packages/clients/src/api/rdb/v1/types.gen.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,11 @@ export type CreateInstanceRequest = {
800800
engine: string
801801
/** Username created when the Database Instance is created. */
802802
userName: string
803-
/** Password of the user. */
803+
/**
804+
* Password of the user. Password must be between 8 and 128 characters,
805+
* contain at least one digit, one uppercase, one lowercase and one special
806+
* character.
807+
*/
804808
password: string
805809
/** Type of node to use for the Database Instance. */
806810
nodeType: string
@@ -883,7 +887,11 @@ export type CreateUserRequest = {
883887
instanceId: string
884888
/** Name of the user you want to create. */
885889
name: string
886-
/** Password of the user you want to create. */
890+
/**
891+
* Password of the user you want to create. Password must be between 8 and 128
892+
* characters, contain at least one digit, one uppercase, one lowercase and
893+
* one special character.
894+
*/
887895
password: string
888896
/** Defines whether the user will have administrative privileges. */
889897
isAdmin: boolean
@@ -1559,7 +1567,11 @@ export type UpdateUserRequest = {
15591567
instanceId: string
15601568
/** Name of the database user. */
15611569
name: string
1562-
/** Password of the database user. */
1570+
/**
1571+
* Password of the database user. Password must be between 8 and 128
1572+
* characters, contain at least one digit, one uppercase, one lowercase and
1573+
* one special character.
1574+
*/
15631575
password?: string
15641576
/** Defines whether or not this user got administrative privileges. */
15651577
isAdmin?: boolean

0 commit comments

Comments
 (0)