@scaleway/sdk 1.2.0 → 1.5.0

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.
Files changed (52) hide show
  1. package/dist/api/account/index.js +0 -2
  2. package/dist/api/account/v2/api.gen.js +16 -6
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +31 -13
  4. package/dist/api/baremetal/index.js +2 -2
  5. package/dist/api/baremetal/v1/api.gen.js +59 -45
  6. package/dist/api/billing/index.js +2 -0
  7. package/dist/api/billing/v2alpha1/api.gen.js +52 -0
  8. package/dist/api/billing/v2alpha1/index.gen.js +3 -0
  9. package/dist/api/billing/v2alpha1/marshalling.gen.js +52 -0
  10. package/dist/api/cockpit/v1beta1/api.gen.js +36 -23
  11. package/dist/api/cockpit/v1beta1/marshalling.gen.js +2 -1
  12. package/dist/api/container/v1beta1/api.gen.js +34 -27
  13. package/dist/api/domain/v2beta1/api.gen.js +89 -78
  14. package/dist/api/flexibleip/v1alpha1/api.gen.js +18 -11
  15. package/dist/api/function/v1beta1/api.gen.js +39 -30
  16. package/dist/api/function/v1beta1/marshalling.gen.js +3 -0
  17. package/dist/api/iam/v1alpha1/api.gen.js +147 -39
  18. package/dist/api/instance/index.js +2 -2
  19. package/dist/api/instance/v1/api.gen.js +72 -61
  20. package/dist/api/iot/v1/api.gen.js +37 -37
  21. package/dist/api/k8s/index.js +2 -2
  22. package/dist/api/k8s/v1/api.gen.js +65 -46
  23. package/dist/api/k8s/v1/marshalling.gen.js +6 -1
  24. package/dist/api/lb/index.js +2 -2
  25. package/dist/api/lb/v1/api.gen.js +231 -110
  26. package/dist/api/lb/v1/marshalling.gen.js +2 -2
  27. package/dist/api/marketplace/v1/api.gen.js +2 -2
  28. package/dist/api/marketplace/v2/api.gen.js +3 -3
  29. package/dist/api/mnq/v1alpha1/api.gen.js +11 -10
  30. package/dist/api/rdb/v1/api.gen.js +195 -63
  31. package/dist/api/rdb/v1/marshalling.gen.js +16 -2
  32. package/dist/api/redis/v1/api.gen.js +88 -25
  33. package/dist/api/registry/v1/api.gen.js +15 -13
  34. package/dist/api/secret/v1alpha1/api.gen.js +43 -18
  35. package/dist/api/tem/v1alpha1/api.gen.js +26 -14
  36. package/dist/api/tem/v1alpha1/marshalling.gen.js +2 -0
  37. package/dist/api/test/v1/api.gen.js +11 -10
  38. package/dist/api/vpc/v1/api.gen.js +5 -5
  39. package/dist/api/vpcgw/v1/api.gen.js +130 -41
  40. package/dist/api/vpcgw/v1/marshalling.gen.js +18 -15
  41. package/dist/api/webhosting/v1alpha1/api.gen.js +10 -9
  42. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +3 -1
  43. package/dist/helpers/is-response.js +10 -0
  44. package/dist/index.cjs +1598 -928
  45. package/dist/index.d.ts +3970 -2960
  46. package/dist/index.js +44 -42
  47. package/dist/scw/constants.js +1 -1
  48. package/dist/scw/fetch/response-parser.js +2 -1
  49. package/package.json +2 -2
  50. package/dist/api/account/v2alpha1/api.gen.js +0 -85
  51. package/dist/api/account/v2alpha1/index.js +0 -1
  52. package/dist/api/account/v2alpha1/marshalling.gen.js +0 -57
@@ -10,7 +10,7 @@ const jsonContentHeaders = {
10
10
  'Content-Type': 'application/json; charset=utf-8'
11
11
  };
12
12
 
13
- /** Database RDB API. */
13
+ /** Managed Database for PostgreSQL and MySQL API. */
14
14
  class API extends API$1 {
15
15
  constructor() {
16
16
  var _this;
@@ -27,7 +27,8 @@ class API extends API$1 {
27
27
  }, unmarshalListDatabaseEnginesResponse);
28
28
  };
29
29
  /**
30
- * List available database engines
30
+ * List available database engines. List the PostgreSQL and MySQL database
31
+ * engines available at Scaleway.
31
32
  *
32
33
  * @param request - The request {@link ListDatabaseEnginesRequest}
33
34
  * @returns A Promise of ListDatabaseEnginesResponse
@@ -44,7 +45,9 @@ class API extends API$1 {
44
45
  urlParams: urlParams(['include_disabled_types', request.includeDisabledTypes], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
45
46
  }, unmarshalListNodeTypesResponse);
46
47
  /**
47
- * List available node types
48
+ * List available node types. List all available node types. By default, the
49
+ * node types returned in the list are ordered by creation date in ascending
50
+ * order, though this can be modified via the `order_by` field.
48
51
  *
49
52
  * @param request - The request {@link ListNodeTypesRequest}
50
53
  * @returns A Promise of ListNodeTypesResponse
@@ -61,7 +64,10 @@ class API extends API$1 {
61
64
  }, unmarshalListDatabaseBackupsResponse);
62
65
  };
63
66
  /**
64
- * List database backups
67
+ * List database backups. List all backups in a specified region, for a given
68
+ * Scaleway Organization or Scaleway Project. By default, the backups listed
69
+ * are ordered by creation date in ascending order. This can be modified via
70
+ * the `order_by` field.
65
71
  *
66
72
  * @param request - The request {@link ListDatabaseBackupsRequest}
67
73
  * @returns A Promise of ListDatabaseBackupsResponse
@@ -73,7 +79,8 @@ class API extends API$1 {
73
79
  return enrichForPagination('databaseBackups', _this.pageOfListDatabaseBackups, request);
74
80
  };
75
81
  /**
76
- * Create a database backup
82
+ * Create a database backup. Create a new backup. You must set the
83
+ * `instance_id`, `database_name`, `name` and `expires_at` parameters.
77
84
  *
78
85
  * @param request - The request {@link CreateDatabaseBackupRequest}
79
86
  * @returns A Promise of DatabaseBackup
@@ -85,7 +92,9 @@ class API extends API$1 {
85
92
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups`
86
93
  }, unmarshalDatabaseBackup);
87
94
  /**
88
- * Get a database backup
95
+ * Get a database backup. Retrieve information about a given backup, specified
96
+ * by its database backup ID and region. Full details about the backup, like
97
+ * size, URL and expiration date, are returned in the response.
89
98
  *
90
99
  * @param request - The request {@link GetDatabaseBackupRequest}
91
100
  * @returns A Promise of DatabaseBackup
@@ -103,7 +112,8 @@ class API extends API$1 {
103
112
  */
104
113
  this.waitForDatabaseBackup = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!DATABASE_BACKUP_TRANSIENT_STATUSES.includes(res.status))), this.getDatabaseBackup, request, options);
105
114
  /**
106
- * Update a database backup
115
+ * Update a database backup. Update the parameters of a backup, including name
116
+ * and expiration date.
107
117
  *
108
118
  * @param request - The request {@link UpdateDatabaseBackupRequest}
109
119
  * @returns A Promise of DatabaseBackup
@@ -115,7 +125,8 @@ class API extends API$1 {
115
125
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups/${validatePathParam('databaseBackupId', request.databaseBackupId)}`
116
126
  }, unmarshalDatabaseBackup);
117
127
  /**
118
- * Delete a database backup
128
+ * Delete a database backup. Delete a backup, specified by its database backup
129
+ * ID and region. Deleting a backup is permanent, and cannot be undone.
119
130
  *
120
131
  * @param request - The request {@link DeleteDatabaseBackupRequest}
121
132
  * @returns A Promise of DatabaseBackup
@@ -125,7 +136,10 @@ class API extends API$1 {
125
136
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups/${validatePathParam('databaseBackupId', request.databaseBackupId)}`
126
137
  }, unmarshalDatabaseBackup);
127
138
  /**
128
- * Restore a database backup
139
+ * Restore a database backup. Launch the process of restoring database backup.
140
+ * You must specify the `instance_id` of the Database Instance of destination,
141
+ * where the backup will be restored. Note that large database backups can
142
+ * take up to several hours to restore.
129
143
  *
130
144
  * @param request - The request {@link RestoreDatabaseBackupRequest}
131
145
  * @returns A Promise of DatabaseBackup
@@ -137,7 +151,9 @@ class API extends API$1 {
137
151
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups/${validatePathParam('databaseBackupId', request.databaseBackupId)}/restore`
138
152
  }, unmarshalDatabaseBackup);
139
153
  /**
140
- * Export a database backup
154
+ * Export a database backup. Export a backup, specified by the
155
+ * `database_backup_id` and the `region` parameters. The download URL is
156
+ * returned in the response.
141
157
  *
142
158
  * @param request - The request {@link ExportDatabaseBackupRequest}
143
159
  * @returns A Promise of DatabaseBackup
@@ -149,8 +165,10 @@ class API extends API$1 {
149
165
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backups/${validatePathParam('databaseBackupId', request.databaseBackupId)}/export`
150
166
  }, unmarshalDatabaseBackup);
151
167
  /**
152
- * Upgrade your current instance specifications like node type, high
153
- * availability, volume, or db engine version.
168
+ * Upgrade a Database Instance. Upgrade your current Database Instance
169
+ * specifications like node type, high availability, volume, or the database
170
+ * engine version. Note that upon upgrade the `enable_ha` parameter can only
171
+ * be set to `true`.
154
172
  *
155
173
  * @param request - The request {@link UpgradeInstanceRequest}
156
174
  * @returns A Promise of Instance
@@ -172,7 +190,14 @@ class API extends API$1 {
172
190
  }, unmarshalListInstancesResponse);
173
191
  };
174
192
  /**
175
- * List instances
193
+ * List Database Instances. List all Database Instances in the specified
194
+ * region, for a given Scaleway Organization or Scaleway Project. By default,
195
+ * the Database Instances returned in the list are ordered by creation date in
196
+ * ascending order, though this can be modified via the order_by field. You
197
+ * can define additional parameters for your query, such as `tags` and `name`.
198
+ * For the `name` parameter, the value you include will be checked against the
199
+ * whole name string to see if it includes the string you put in the
200
+ * parameter.
176
201
  *
177
202
  * @param request - The request {@link ListInstancesRequest}
178
203
  * @returns A Promise of ListInstancesResponse
@@ -184,7 +209,10 @@ class API extends API$1 {
184
209
  return enrichForPagination('instances', _this.pageOfListInstances, request);
185
210
  };
186
211
  /**
187
- * Get an instance
212
+ * Get a Database Instance. Retrieve information about a given Database
213
+ * Instance, specified by the `region` and `instance_id` parameters. Its full
214
+ * details, including name, status, IP address and port, are returned in the
215
+ * response object.
188
216
  *
189
217
  * @param request - The request {@link GetInstanceRequest}
190
218
  * @returns A Promise of Instance
@@ -202,7 +230,9 @@ class API extends API$1 {
202
230
  */
203
231
  this.waitForInstance = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!INSTANCE_TRANSIENT_STATUSES.includes(res.status))), this.getInstance, request, options);
204
232
  /**
205
- * Create an instance
233
+ * Create a Database Instance. Create a new Database Instance. You must set
234
+ * the `engine`, `user_name`, `password` and `node_type` parameters.
235
+ * Optionally, you can specify the volume type and size.
206
236
  *
207
237
  * @param request - The request {@link CreateInstanceRequest}
208
238
  * @returns A Promise of Instance
@@ -214,7 +244,8 @@ class API extends API$1 {
214
244
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances`
215
245
  }, unmarshalInstance);
216
246
  /**
217
- * Update an instance
247
+ * Update a Database Instance. Update the parameters of a Database Instance,
248
+ * including name, tags and backup schedule details.
218
249
  *
219
250
  * @param request - The request {@link UpdateInstanceRequest}
220
251
  * @returns A Promise of Instance
@@ -226,7 +257,10 @@ class API extends API$1 {
226
257
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}`
227
258
  }, unmarshalInstance);
228
259
  /**
229
- * Delete an instance
260
+ * Delete a Database Instance. Delete a given Database Instance, specified by
261
+ * the `region` and `instance_id` parameters. Deleting a Database Instance is
262
+ * permanent, and cannot be undone. Note that upon deletion all your data will
263
+ * be lost.
230
264
  *
231
265
  * @param request - The request {@link DeleteInstanceRequest}
232
266
  * @returns A Promise of Instance
@@ -236,7 +270,11 @@ class API extends API$1 {
236
270
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}`
237
271
  }, unmarshalInstance);
238
272
  /**
239
- * Clone an instance
273
+ * Clone a Database Instance. Clone a given Database Instance, specified by
274
+ * the `region` and `instance_id` parameters. The clone feature allows you to
275
+ * create a new Database Instance from an existing one. The clone includes all
276
+ * existing databases, users and permissions. You can create a clone on a
277
+ * Database Instance bigger than your current one.
240
278
  *
241
279
  * @param request - The request {@link CloneInstanceRequest}
242
280
  * @returns A Promise of Instance
@@ -248,7 +286,9 @@ class API extends API$1 {
248
286
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/clone`
249
287
  }, unmarshalInstance);
250
288
  /**
251
- * Restart an instance
289
+ * Restart Database Instance. Restart a given Database Instance, specified by
290
+ * the `region` and `instance_id` parameters. The status of the Database
291
+ * Instance returned in the response.
252
292
  *
253
293
  * @param request - The request {@link RestartInstanceRequest}
254
294
  * @returns A Promise of Instance
@@ -260,7 +300,9 @@ class API extends API$1 {
260
300
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/restart`
261
301
  }, unmarshalInstance);
262
302
  /**
263
- * Get the TLS certificate of an instance
303
+ * Get the TLS certificate of a Database Instance. Retrieve information about
304
+ * the TLS certificate of a given Database Instance. Details like name and
305
+ * content are returned in the response.
264
306
  *
265
307
  * @param request - The request {@link GetInstanceCertificateRequest}
266
308
  * @returns A Promise of Blob
@@ -272,7 +314,11 @@ class API extends API$1 {
272
314
  responseType: 'blob'
273
315
  });
274
316
  /**
275
- * Renew the TLS certificate of an instance
317
+ * Renew the TLS certificate of a Database Instance. Renew a TLS for a
318
+ * Database Instance. Renewing a certificate means that you will not be able
319
+ * to connect to your Database Instance using the previous certificate. You
320
+ * will also need to download and update the new certificate for all database
321
+ * clients.
276
322
  *
277
323
  * @param request - The request {@link RenewInstanceCertificateRequest}
278
324
  */
@@ -283,7 +329,9 @@ class API extends API$1 {
283
329
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/renew-certificate`
284
330
  });
285
331
  /**
286
- * Get database instance metrics.
332
+ * Get Database Instance metrics. Retrieve the time series metrics of a given
333
+ * Database Instance. You can define the period from which to retrieve metrics
334
+ * by specifying the `start_date` and `end_date`.
287
335
  *
288
336
  * @param request - The request {@link GetInstanceMetricsRequest}
289
337
  * @returns A Promise of InstanceMetrics
@@ -294,7 +342,9 @@ class API extends API$1 {
294
342
  urlParams: urlParams(['end_date', request.endDate], ['metric_name', request.metricName], ['start_date', request.startDate])
295
343
  }, unmarshalInstanceMetrics);
296
344
  /**
297
- * You can only create a maximum of 3 read replicas for one instance.
345
+ * Create a Read Replica. Create a new Read Replica of a Database Instance.
346
+ * You must specify the `region` and the `instance_id`. You can only create a
347
+ * maximum of 3 Read Replicas per Database Instance.
298
348
  *
299
349
  * @param request - The request {@link CreateReadReplicaRequest}
300
350
  * @returns A Promise of ReadReplica
@@ -306,7 +356,9 @@ class API extends API$1 {
306
356
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas`
307
357
  }, unmarshalReadReplica);
308
358
  /**
309
- * Get a read replica
359
+ * Get a Read Replica. Retrieve information about a Database Instance Read
360
+ * Replica. Full details about the Read Replica, like `endpoints`, `status`
361
+ * and `region` are returned in the response.
310
362
  *
311
363
  * @param request - The request {@link GetReadReplicaRequest}
312
364
  * @returns A Promise of ReadReplica
@@ -324,7 +376,9 @@ class API extends API$1 {
324
376
  */
325
377
  this.waitForReadReplica = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!READ_REPLICA_TRANSIENT_STATUSES.includes(res.status))), this.getReadReplica, request, options);
326
378
  /**
327
- * Delete a read replica
379
+ * Delete a Read Replica. Delete a Read Replica of a Database Instance. You
380
+ * must specify the `region` and `read_replica_id` parameters of the Read
381
+ * Replica you want to delete.
328
382
  *
329
383
  * @param request - The request {@link DeleteReadReplicaRequest}
330
384
  * @returns A Promise of ReadReplica
@@ -334,10 +388,11 @@ class API extends API$1 {
334
388
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}`
335
389
  }, unmarshalReadReplica);
336
390
  /**
337
- * When you resync a read replica, first it is reset, and then its data is
338
- * resynchronized from the primary node. Your read replica will be unavailable
339
- * during the resync process. The duration of this process is proportional to
340
- * your Database Instance size. The configured endpoints will not change.
391
+ * Resync a Read Replica. When you resync a Read Replica, first it is reset,
392
+ * then its data is resynchronized from the primary node. Your Read Replica
393
+ * remains unavailable during the resync process. The duration of this process
394
+ * is proportional to the size of your Database Instance. The configured
395
+ * endpoints do not change.
341
396
  *
342
397
  * @param request - The request {@link ResetReadReplicaRequest}
343
398
  * @returns A Promise of ReadReplica
@@ -349,8 +404,9 @@ class API extends API$1 {
349
404
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/reset`
350
405
  }, unmarshalReadReplica);
351
406
  /**
352
- * A read replica can have at most one direct access and one private network
353
- * endpoint.
407
+ * Create an endpoint for a Read Replica. Create a new endpoint for a Read
408
+ * Replica. Read Replicas can have at most one direct access and one Private
409
+ * Network endpoint.
354
410
  *
355
411
  * @param request - The request {@link CreateReadReplicaEndpointRequest}
356
412
  * @returns A Promise of ReadReplica
@@ -362,8 +418,12 @@ class API extends API$1 {
362
418
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/read-replicas/${validatePathParam('readReplicaId', request.readReplicaId)}/endpoints`
363
419
  }, unmarshalReadReplica);
364
420
  /**
365
- * Prepare your instance logs. Logs will be grouped on a minimum interval of a
366
- * day.
421
+ * Prepare logs of a Database Instance. Prepare your Database Instance logs.
422
+ * You can define the `start_date` and `end_date` parameters for your query.
423
+ * The download URL is returned in the response. Logs are recorded from 00h00
424
+ * to 23h59 and then aggregated in a `.log` file once a day. Therefore, even
425
+ * if you specify a timeframe from which you want to get the logs, you will
426
+ * receive logs from the full 24 hours.
367
427
  *
368
428
  * @param request - The request {@link PrepareInstanceLogsRequest}
369
429
  * @returns A Promise of PrepareInstanceLogsResponse
@@ -375,7 +435,10 @@ class API extends API$1 {
375
435
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/prepare-logs`
376
436
  }, unmarshalPrepareInstanceLogsResponse);
377
437
  /**
378
- * List available logs of a given instance
438
+ * List available logs of a Database Instance. List the available logs of a
439
+ * Database Instance. By default, the logs returned in the list are ordered by
440
+ * creation date in ascending order, though this can be modified via the
441
+ * order_by field.
379
442
  *
380
443
  * @param request - The request {@link ListInstanceLogsRequest}
381
444
  * @returns A Promise of ListInstanceLogsResponse
@@ -386,7 +449,10 @@ class API extends API$1 {
386
449
  urlParams: urlParams(['order_by', request.orderBy ?? 'created_at_asc'])
387
450
  }, unmarshalListInstanceLogsResponse);
388
451
  /**
389
- * Get specific logs of a given instance
452
+ * Get given logs of a Database Instance. Retrieve information about the logs
453
+ * of a Database Instance. Specify the `instance_log_id` and `region` in your
454
+ * request to get information such as `download_url`, `status`, `expires_at`
455
+ * and `created_at` about your logs in the response.
390
456
  *
391
457
  * @param request - The request {@link GetInstanceLogRequest}
392
458
  * @returns A Promise of InstanceLog
@@ -404,7 +470,9 @@ class API extends API$1 {
404
470
  */
405
471
  this.waitForInstanceLog = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!INSTANCE_LOG_TRANSIENT_STATUSES.includes(res.status))), this.getInstanceLog, request, options);
406
472
  /**
407
- * Purge remote instances logs
473
+ * Purge remote Database Instance logs. Purge a given remote log from a
474
+ * Database Instance. You can specify the `log_name` of the log you wish to
475
+ * clean from your Database Instance.
408
476
  *
409
477
  * @param request - The request {@link PurgeInstanceLogsRequest}
410
478
  */
@@ -415,7 +483,9 @@ class API extends API$1 {
415
483
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/purge-logs`
416
484
  });
417
485
  /**
418
- * List remote instances logs details
486
+ * List remote Database Instance logs details. List remote log details. By
487
+ * default, the details returned in the list are ordered by creation date in
488
+ * ascending order, though this can be modified via the order_by field.
419
489
  *
420
490
  * @param request - The request {@link ListInstanceLogsDetailsRequest}
421
491
  * @returns A Promise of ListInstanceLogsDetailsResponse
@@ -425,7 +495,9 @@ class API extends API$1 {
425
495
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/logs-details`
426
496
  }, unmarshalListInstanceLogsDetailsResponse);
427
497
  /**
428
- * Add an instance setting
498
+ * Add Database Instance advanced settings. Add an advanced setting to a
499
+ * Database Instance. You must set the `name` and the `value` of each
500
+ * setting.
429
501
  *
430
502
  * @param request - The request {@link AddInstanceSettingsRequest}
431
503
  * @returns A Promise of AddInstanceSettingsResponse
@@ -437,7 +509,9 @@ class API extends API$1 {
437
509
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
438
510
  }, unmarshalAddInstanceSettingsResponse);
439
511
  /**
440
- * Delete an instance setting
512
+ * Delete Database Instance advanced settings. Delete an advanced setting in a
513
+ * Database Instance. You must specify the names of the settings you want to
514
+ * delete in the request.
441
515
  *
442
516
  * @param request - The request {@link DeleteInstanceSettingsRequest}
443
517
  * @returns A Promise of DeleteInstanceSettingsResponse
@@ -449,7 +523,9 @@ class API extends API$1 {
449
523
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/settings`
450
524
  }, unmarshalDeleteInstanceSettingsResponse);
451
525
  /**
452
- * Set a given instance setting
526
+ * Set Database Instance advanced settings. Update an advanced setting for a
527
+ * Database Instance. Settings added upon database engine initalization can
528
+ * only be defined once, and cannot, therefore, be updated.
453
529
  *
454
530
  * @param request - The request {@link SetInstanceSettingsRequest}
455
531
  * @returns A Promise of SetInstanceSettingsResponse
@@ -466,14 +542,18 @@ class API extends API$1 {
466
542
  urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
467
543
  }, unmarshalListInstanceACLRulesResponse);
468
544
  /**
469
- * List ACL rules of a given instance
545
+ * List ACL rules of a Database Instance. List the ACL rules for a given
546
+ * Database Instance. The response is an array of ACL objects, each one
547
+ * representing an ACL that denies, allows or redirects traffic based on
548
+ * certain conditions.
470
549
  *
471
550
  * @param request - The request {@link ListInstanceACLRulesRequest}
472
551
  * @returns A Promise of ListInstanceACLRulesResponse
473
552
  */
474
553
  this.listInstanceACLRules = request => enrichForPagination('rules', this.pageOfListInstanceACLRules, request);
475
554
  /**
476
- * Add an additional ACL rule to a database instance.
555
+ * Add an ACL rule to a Database Instance. Add an additional ACL rule to a
556
+ * Database Instance.
477
557
  *
478
558
  * @param request - The request {@link AddInstanceACLRulesRequest}
479
559
  * @returns A Promise of AddInstanceACLRulesResponse
@@ -485,7 +565,8 @@ class API extends API$1 {
485
565
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
486
566
  }, unmarshalAddInstanceACLRulesResponse);
487
567
  /**
488
- * Replace all the ACL rules of a database instance.
568
+ * Set ACL rules for a Database Instance. Replace all the ACL rules of a
569
+ * Database Instance.
489
570
  *
490
571
  * @param request - The request {@link SetInstanceACLRulesRequest}
491
572
  * @returns A Promise of SetInstanceACLRulesResponse
@@ -497,7 +578,8 @@ class API extends API$1 {
497
578
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/acls`
498
579
  }, unmarshalSetInstanceACLRulesResponse);
499
580
  /**
500
- * Delete ACL rules of a given instance
581
+ * Delete ACL rules of a Database Instance. Delete one or more ACL rules of a
582
+ * Database Instance.
501
583
  *
502
584
  * @param request - The request {@link DeleteInstanceACLRulesRequest}
503
585
  * @returns A Promise of DeleteInstanceACLRulesResponse
@@ -514,14 +596,19 @@ class API extends API$1 {
514
596
  urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
515
597
  }, unmarshalListUsersResponse);
516
598
  /**
517
- * List users of a given instance
599
+ * List users of a Database Instance. List all users of a given Database
600
+ * Instance. By default, the users returned in the list are ordered by
601
+ * creation date in ascending order, though this can be modified via the
602
+ * order_by field.
518
603
  *
519
604
  * @param request - The request {@link ListUsersRequest}
520
605
  * @returns A Promise of ListUsersResponse
521
606
  */
522
607
  this.listUsers = request => enrichForPagination('users', this.pageOfListUsers, request);
523
608
  /**
524
- * Create a user on a given instance
609
+ * Create a user for a Database Instance. Create a new user for a Database
610
+ * Instance. You must define the `name`, `password` and `is_admin`
611
+ * parameters.
525
612
  *
526
613
  * @param request - The request {@link CreateUserRequest}
527
614
  * @returns A Promise of User
@@ -533,7 +620,9 @@ class API extends API$1 {
533
620
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users`
534
621
  }, unmarshalUser);
535
622
  /**
536
- * Update a user on a given instance
623
+ * Update a user on a Database Instance. Update the parameters of a user on a
624
+ * Database Instance. You can update the `password` and `is_admin` parameters,
625
+ * but you cannot change the name of the user.
537
626
  *
538
627
  * @param request - The request {@link UpdateUserRequest}
539
628
  * @returns A Promise of User
@@ -545,7 +634,9 @@ class API extends API$1 {
545
634
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/users/${validatePathParam('name', request.name)}`
546
635
  }, unmarshalUser);
547
636
  /**
548
- * Delete a user on a given instance
637
+ * Delete a user on a Database Instance. Delete a given user on a Database
638
+ * Instance. You must specify, in the endpoint, the `region`, `instance_id`
639
+ * and `name` parameters of the user you want to delete.
549
640
  *
550
641
  * @param request - The request {@link DeleteUserRequest}
551
642
  */
@@ -559,14 +650,19 @@ class API extends API$1 {
559
650
  urlParams: urlParams(['managed', request.managed], ['name', request.name], ['order_by', request.orderBy ?? 'name_asc'], ['owner', request.owner], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
560
651
  }, unmarshalListDatabasesResponse);
561
652
  /**
562
- * List all database in a given instance
653
+ * List databases in a Database Instance. List all databases of a given
654
+ * Database Instance. By default, the databases returned in the list are
655
+ * ordered by creation date in ascending order, though this can be modified
656
+ * via the order_by field. You can define additional parameters for your
657
+ * query, such as `name`, `managed` and `owner`.
563
658
  *
564
659
  * @param request - The request {@link ListDatabasesRequest}
565
660
  * @returns A Promise of ListDatabasesResponse
566
661
  */
567
662
  this.listDatabases = request => enrichForPagination('databases', this.pageOfListDatabases, request);
568
663
  /**
569
- * Create a database in a given instance
664
+ * Create a database in a Database Instance. Create a new database. You must
665
+ * define the `name` parameter in the request.
570
666
  *
571
667
  * @param request - The request {@link CreateDatabaseRequest}
572
668
  * @returns A Promise of Database
@@ -578,7 +674,9 @@ class API extends API$1 {
578
674
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/databases`
579
675
  }, unmarshalDatabase);
580
676
  /**
581
- * Delete a database in a given instance
677
+ * Delete a database in a Database Instance. Delete a given database on a
678
+ * Database Instance. You must specify, in the endpoint, the `region`,
679
+ * `instance_id` and `name` parameters of the database you want to delete.
582
680
  *
583
681
  * @param request - The request {@link DeleteDatabaseRequest}
584
682
  */
@@ -592,14 +690,20 @@ class API extends API$1 {
592
690
  urlParams: urlParams(['database_name', request.databaseName], ['order_by', request.orderBy ?? 'user_name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['user_name', request.userName])
593
691
  }, unmarshalListPrivilegesResponse);
594
692
  /**
595
- * List privileges of a given user for a given database on a given instance
693
+ * List user privileges for a database. List privileges of a user on a
694
+ * database. By default, the details returned in the list are ordered by
695
+ * creation date in ascending order, though this can be modified via the
696
+ * order_by field. You can define additional parameters for your query, such
697
+ * as `database_name` and `user_name`.
596
698
  *
597
699
  * @param request - The request {@link ListPrivilegesRequest}
598
700
  * @returns A Promise of ListPrivilegesResponse
599
701
  */
600
702
  this.listPrivileges = request => enrichForPagination('privileges', this.pageOfListPrivileges, request);
601
703
  /**
602
- * Set privileges of a given user for a given database on a given instance
704
+ * Set user privileges for a database. Set the privileges of a user on a
705
+ * database. You must define `database_name`, `user_name` and `permission` in
706
+ * the request body.
603
707
  *
604
708
  * @param request - The request {@link SetPrivilegeRequest}
605
709
  * @returns A Promise of Privilege
@@ -621,7 +725,11 @@ class API extends API$1 {
621
725
  }, unmarshalListSnapshotsResponse);
622
726
  };
623
727
  /**
624
- * List instance snapshots
728
+ * List snapshots. List snapshots. You can include the `instance_id` or
729
+ * `project_id` in your query to get the list of snapshots for specific
730
+ * Database Instances and/or Projects. By default, the details returned in the
731
+ * list are ordered by creation date in ascending order, though this can be
732
+ * modified via the `order_by` field.
625
733
  *
626
734
  * @param request - The request {@link ListSnapshotsRequest}
627
735
  * @returns A Promise of ListSnapshotsResponse
@@ -633,7 +741,9 @@ class API extends API$1 {
633
741
  return enrichForPagination('snapshots', _this.pageOfListSnapshots, request);
634
742
  };
635
743
  /**
636
- * Get an instance snapshot
744
+ * Get a Database Instance snapshot. Retrieve information about a given
745
+ * snapshot, specified by its `snapshot_id` and `region`. Full details about
746
+ * the snapshot, like size and expiration date, are returned in the response.
637
747
  *
638
748
  * @param request - The request {@link GetSnapshotRequest}
639
749
  * @returns A Promise of Snapshot
@@ -651,7 +761,8 @@ class API extends API$1 {
651
761
  */
652
762
  this.waitForSnapshot = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))), this.getSnapshot, request, options);
653
763
  /**
654
- * Create an instance snapshot
764
+ * Create a Database Instance snapshot. Create a new snapshot of a Database
765
+ * Instance. You must define the `name` parameter in the request.
655
766
  *
656
767
  * @param request - The request {@link CreateSnapshotRequest}
657
768
  * @returns A Promise of Snapshot
@@ -663,7 +774,9 @@ class API extends API$1 {
663
774
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/snapshots`
664
775
  }, unmarshalSnapshot);
665
776
  /**
666
- * Update an instance snapshot
777
+ * Update a Database Instance snapshot. Update the parameters of a snapshot of
778
+ * a Database Instance. You can update the `name` and `expires_at`
779
+ * parameters.
667
780
  *
668
781
  * @param request - The request {@link UpdateSnapshotRequest}
669
782
  * @returns A Promise of Snapshot
@@ -675,7 +788,9 @@ class API extends API$1 {
675
788
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
676
789
  }, unmarshalSnapshot);
677
790
  /**
678
- * Delete an instance snapshot
791
+ * Delete a Database Instance snapshot. Delete a given snapshot of a Database
792
+ * Instance. You must specify, in the endpoint, the `region` and `snapshot_id`
793
+ * parameters of the snapshot you want to delete.
679
794
  *
680
795
  * @param request - The request {@link DeleteSnapshotRequest}
681
796
  * @returns A Promise of Snapshot
@@ -685,7 +800,14 @@ class API extends API$1 {
685
800
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}`
686
801
  }, unmarshalSnapshot);
687
802
  /**
688
- * Create a new instance from a given snapshot
803
+ * Create a new Database Instance from a snapshot. Restore a snapshot. When
804
+ * you restore a snapshot, a new Instance is created and billed to your
805
+ * account. Note that is possible to select a larger node type for your new
806
+ * Database Instance. However, the Block volume size will be the same as the
807
+ * size of the restored snapshot. All Instance settings will be restored if
808
+ * you chose a node type with the same or more memory size than the initial
809
+ * Instance. Settings will be reset to the default if your node type has less
810
+ * memory.
689
811
  *
690
812
  * @param request - The request {@link CreateInstanceFromSnapshotRequest}
691
813
  * @returns A Promise of Instance
@@ -697,7 +819,11 @@ class API extends API$1 {
697
819
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/snapshots/${validatePathParam('snapshotId', request.snapshotId)}/create-instance`
698
820
  }, unmarshalInstance);
699
821
  /**
700
- * Create a new instance endpoint
822
+ * Create a new Database Instance endpoint. Create a new endpoint for a
823
+ * Database Instance. You can add `load_balancer` and `private_network`
824
+ * specifications to the body of the request. Note that this action replaces
825
+ * your current endpoint, which means you might need to update any environment
826
+ * configurations that point to the old endpoint.
701
827
  *
702
828
  * @param request - The request {@link CreateEndpointRequest}
703
829
  * @returns A Promise of Endpoint
@@ -709,7 +835,10 @@ class API extends API$1 {
709
835
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/instances/${validatePathParam('instanceId', request.instanceId)}/endpoints`
710
836
  }, unmarshalEndpoint);
711
837
  /**
712
- * Delete an instance endpoint
838
+ * Delete a Database Instance endpoint. Delete the endpoint of a Database
839
+ * Instance. You must specify the `region` and `endpoint_id` parameters of the
840
+ * endpoint you want to delete. Note that might need to update any environment
841
+ * configurations that point to the deleted endpoint.
713
842
  *
714
843
  * @param request - The request {@link DeleteEndpointRequest}
715
844
  */
@@ -718,7 +847,10 @@ class API extends API$1 {
718
847
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}`
719
848
  });
720
849
  /**
721
- * Get an instance endpoint
850
+ * Get a Database Instance endpoint. Retrieve information about a Database
851
+ * Instance endpoint. Full details about the endpoint, like `ip`, `port`,
852
+ * `private_network` and `load_balancer` specifications are returned in the
853
+ * response.
722
854
  *
723
855
  * @param request - The request {@link GetEndpointRequest}
724
856
  * @returns A Promise of Endpoint
@@ -728,7 +860,7 @@ class API extends API$1 {
728
860
  path: `/rdb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam('endpointId', request.endpointId)}`
729
861
  }, unmarshalEndpoint);
730
862
  /**
731
- * Migrate an existing instance endpoint to another instance
863
+ * Migrate an existing instance endpoint to another instance.
732
864
  *
733
865
  * @param request - The request {@link MigrateEndpointRequest}
734
866
  * @returns A Promise of Endpoint