Skip to content

Commit c17a14a

Browse files
fix(mongodb): add the new SetUserRole endpoint on the documentation (#2142)
Co-authored-by: Laure-di <[email protected]>
1 parent ab14ab7 commit c17a14a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

packages_generated/mongodb/src/v1alpha1/api.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,12 @@ export class API extends ParentAPI {
510510
path: `/mongodb/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`,
511511
})
512512

513+
/**
514+
* Apply user roles. Apply preset roles for a user in a Database Instance.
515+
*
516+
* @param request - The request {@link SetUserRoleRequest}
517+
* @returns A Promise of User
518+
*/
513519
setUserRole = (request: Readonly<SetUserRoleRequest>) =>
514520
this.client.fetch<User>(
515521
{

packages_generated/mongodb/src/v1alpha1/types.gen.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,18 @@ export interface SnapshotVolumeType {
159159
}
160160

161161
export interface UserRole {
162+
/**
163+
* Name of the preset role.
164+
*/
162165
role: UserRoleRole
163166
/**
167+
* Name of the database on which the preset role will be used.
164168
*
165169
* One-of ('scope'): at most one of 'database', 'anyDatabase' could be set.
166170
*/
167171
database?: string
168172
/**
173+
* Flag to enable the preset role in all databases.
169174
*
170175
* One-of ('scope'): at most one of 'database', 'anyDatabase' could be set.
171176
*/

0 commit comments

Comments
 (0)