@scaleway/sdk-mongodb 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -369,6 +369,12 @@ class API extends sdkClient.API {
|
|
|
369
369
|
method: "DELETE",
|
|
370
370
|
path: `/mongodb/v1alpha1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${sdkClient.validatePathParam("instanceId", request.instanceId)}/users/${sdkClient.validatePathParam("name", request.name)}`
|
|
371
371
|
});
|
|
372
|
+
/**
|
|
373
|
+
* Apply user roles. Apply preset roles for a user in a Database Instance.
|
|
374
|
+
*
|
|
375
|
+
* @param request - The request {@link SetUserRoleRequest}
|
|
376
|
+
* @returns A Promise of User
|
|
377
|
+
*/
|
|
372
378
|
setUserRole = (request) => this.client.fetch(
|
|
373
379
|
{
|
|
374
380
|
body: JSON.stringify(
|
|
@@ -177,6 +177,12 @@ export declare class API extends ParentAPI {
|
|
|
177
177
|
* @param request - The request {@link DeleteUserRequest}
|
|
178
178
|
*/
|
|
179
179
|
deleteUser: (request: Readonly<DeleteUserRequest>) => Promise<void>;
|
|
180
|
+
/**
|
|
181
|
+
* Apply user roles. Apply preset roles for a user in a Database Instance.
|
|
182
|
+
*
|
|
183
|
+
* @param request - The request {@link SetUserRoleRequest}
|
|
184
|
+
* @returns A Promise of User
|
|
185
|
+
*/
|
|
180
186
|
setUserRole: (request: Readonly<SetUserRoleRequest>) => Promise<User>;
|
|
181
187
|
/**
|
|
182
188
|
* Delete a Database Instance endpoint. Delete the endpoint of a Database Instance. You must specify the `endpoint_id` parameter of the endpoint you want to delete. Note that you might need to update any environment configurations that point to the deleted endpoint.
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -367,6 +367,12 @@ class API extends API$1 {
|
|
|
367
367
|
method: "DELETE",
|
|
368
368
|
path: `/mongodb/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam("instanceId", request.instanceId)}/users/${validatePathParam("name", request.name)}`
|
|
369
369
|
});
|
|
370
|
+
/**
|
|
371
|
+
* Apply user roles. Apply preset roles for a user in a Database Instance.
|
|
372
|
+
*
|
|
373
|
+
* @param request - The request {@link SetUserRoleRequest}
|
|
374
|
+
* @returns A Promise of User
|
|
375
|
+
*/
|
|
370
376
|
setUserRole = (request) => this.client.fetch(
|
|
371
377
|
{
|
|
372
378
|
body: JSON.stringify(
|
|
@@ -103,13 +103,18 @@ export interface SnapshotVolumeType {
|
|
|
103
103
|
type: VolumeType;
|
|
104
104
|
}
|
|
105
105
|
export interface UserRole {
|
|
106
|
+
/**
|
|
107
|
+
* Name of the preset role.
|
|
108
|
+
*/
|
|
106
109
|
role: UserRoleRole;
|
|
107
110
|
/**
|
|
111
|
+
* Name of the database on which the preset role will be used.
|
|
108
112
|
*
|
|
109
113
|
* One-of ('scope'): at most one of 'database', 'anyDatabase' could be set.
|
|
110
114
|
*/
|
|
111
115
|
database?: string;
|
|
112
116
|
/**
|
|
117
|
+
* Flag to enable the preset role in all databases.
|
|
113
118
|
*
|
|
114
119
|
* One-of ('scope'): at most one of 'database', 'anyDatabase' could be set.
|
|
115
120
|
*/
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-mongodb",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Scaleway SDK mongodb",
|
|
5
|
-
"
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.1",
|
|
33
|
-
"@scaleway/sdk-std": "1.0.
|
|
33
|
+
"@scaleway/sdk-std": "1.0.4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.2.
|
|
36
|
+
"@scaleway/sdk-client": "^1.2.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.2.
|
|
39
|
+
"@scaleway/sdk-client": "^1.2.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|