@scaleway/sdk-mongodb 1.0.1 → 1.0.4

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.
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-mongodb",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "description": "Scaleway SDK mongodb",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -26,21 +26,18 @@
26
26
  "directory": "packages_generated/mongodb"
27
27
  },
28
28
  "engines": {
29
- "node": ">=20.18.3"
29
+ "node": ">=20.19.1"
30
30
  },
31
31
  "dependencies": {
32
32
  "@scaleway/random-name": "5.1.1",
33
- "@scaleway/sdk-std": "1.0.1"
33
+ "@scaleway/sdk-std": "1.0.3"
34
34
  },
35
35
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.2.1"
36
+ "@scaleway/sdk-client": "^1.2.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.2.1"
39
+ "@scaleway/sdk-client": "^1.2.2"
40
40
  },
41
- "bundledDependencies": [
42
- "@scaleway/random-name"
43
- ],
44
41
  "scripts": {
45
42
  "package:check": "pnpm publint",
46
43
  "typecheck": "tsc --noEmit",