Skip to content

Commit

Permalink
feat(iam): add doc for UpdateUserPassword (scaleway#1553)
Browse files Browse the repository at this point in the history
Co-authored-by: Laure-di <[email protected]>
  • Loading branch information
scaleway-bot and Laure-di authored Nov 4, 2024
1 parent 3b0ef23 commit 56cb327
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/clients/src/api/iam/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ export class API extends ParentAPI {
unmarshalUser,
)

/**
* Update an user's password.
*
* @param request - The request {@link UpdateUserPasswordRequest}
* @returns A Promise of User
*/
updateUserPassword = (request: Readonly<UpdateUserPasswordRequest>) =>
this.client.fetch<User>(
{
Expand Down
6 changes: 6 additions & 0 deletions packages/clients/src/api/iam/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,14 @@ export type UpdateSSHKeyRequest = {
}

export type UpdateUserPasswordRequest = {
/** ID of the user to update. */
userId: string
/** The new password. */
password: string
/**
* Whether or not to send an email alerting the user their password has
* changed.
*/
sendEmail: boolean
}

Expand Down

0 comments on commit 56cb327

Please sign in to comment.