@scaleway/sdk 1.6.0 → 1.8.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 (38) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.js +5 -4
  2. package/dist/api/baremetal/v1/api.gen.js +6 -6
  3. package/dist/api/baremetal/v1/api.utils.js +1 -1
  4. package/dist/api/cockpit/v1beta1/api.gen.js +39 -30
  5. package/dist/api/container/v1beta1/api.gen.js +35 -33
  6. package/dist/api/container/v1beta1/marshalling.gen.js +3 -1
  7. package/dist/api/domain/v2beta1/api.gen.js +63 -54
  8. package/dist/api/flexibleip/v1alpha1/api.gen.js +28 -15
  9. package/dist/api/function/v1beta1/api.gen.js +39 -30
  10. package/dist/api/function/v1beta1/marshalling.gen.js +1 -0
  11. package/dist/api/iam/v1alpha1/api.gen.js +2 -3
  12. package/dist/api/iam/v1alpha1/marshalling.gen.js +1 -0
  13. package/dist/api/instance/v1/api.gen.js +2 -2
  14. package/dist/api/instance/v1/api.utils.js +7 -13
  15. package/dist/api/iot/v1/api.gen.js +68 -36
  16. package/dist/api/k8s/v1/api.gen.js +4 -4
  17. package/dist/api/lb/v1/api.gen.js +4 -4
  18. package/dist/api/lb/v1/api.utils.js +4 -4
  19. package/dist/api/marketplace/v2/api.gen.js +46 -3
  20. package/dist/api/mnq/v1alpha1/api.gen.js +36 -13
  21. package/dist/api/mnq/v1alpha1/marshalling.gen.js +3 -9
  22. package/dist/api/rdb/v1/api.gen.js +5 -5
  23. package/dist/api/redis/v1/api.gen.js +1 -1
  24. package/dist/api/registry/v1/api.gen.js +44 -22
  25. package/dist/api/secret/v1alpha1/api.gen.js +29 -18
  26. package/dist/api/secret/v1alpha1/marshalling.gen.js +8 -1
  27. package/dist/api/tem/v1alpha1/api.gen.js +3 -7
  28. package/dist/api/test/v1/api.gen.js +1 -1
  29. package/dist/api/vpc/v1/api.gen.js +13 -5
  30. package/dist/api/vpcgw/v1/api.gen.js +2 -2
  31. package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
  32. package/dist/helpers/marshalling.js +1 -1
  33. package/dist/index.cjs +457 -269
  34. package/dist/index.d.ts +1412 -736
  35. package/dist/internal/async/interval-retrier.js +2 -2
  36. package/dist/scw/constants.js +1 -1
  37. package/dist/scw/custom-marshalling.js +4 -7
  38. package/package.json +2 -2
@@ -11,9 +11,9 @@ const jsonContentHeaders = {
11
11
  };
12
12
 
13
13
  /**
14
- * IoT API.
14
+ * IoT Hub API.
15
15
  *
16
- * This API allows you to manage IoT hubs and devices. IoT API.
16
+ * This API allows you to manage IoT hubs and devices. IoT Hub API.
17
17
  */
18
18
  class API extends API$1 {
19
19
  constructor() {
@@ -31,7 +31,9 @@ class API extends API$1 {
31
31
  }, unmarshalListHubsResponse);
32
32
  };
33
33
  /**
34
- * List hubs.
34
+ * List hubs. List all Hubs in the specified zone. By default, returned Hubs
35
+ * are ordered by creation date in ascending order, though this can be
36
+ * modified via the `order_by` field.
35
37
  *
36
38
  * @param request - The request {@link ListHubsRequest}
37
39
  * @returns A Promise of ListHubsResponse
@@ -43,7 +45,8 @@ class API extends API$1 {
43
45
  return enrichForPagination('hubs', _this.pageOfListHubs, request);
44
46
  };
45
47
  /**
46
- * Create a hub.
48
+ * Create a hub. Create a new Hub in the targeted region, specifying its
49
+ * configuration including name and product plan.
47
50
  *
48
51
  * @param request - The request {@link CreateHubRequest}
49
52
  * @returns A Promise of Hub
@@ -55,7 +58,9 @@ class API extends API$1 {
55
58
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs`
56
59
  }, unmarshalHub);
57
60
  /**
58
- * Get a hub.
61
+ * Get a hub. Retrieve information about an existing IoT Hub, specified by its
62
+ * Hub ID. Its full details, including name, status and endpoint, are returned
63
+ * in the response object.
59
64
  *
60
65
  * @param request - The request {@link GetHubRequest}
61
66
  * @returns A Promise of Hub
@@ -71,9 +76,10 @@ class API extends API$1 {
71
76
  * @param options - The waiting options
72
77
  * @returns A Promise of Hub
73
78
  */
74
- this.waitForHub = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!HUB_TRANSIENT_STATUSES.includes(res.status))), this.getHub, request, options);
79
+ this.waitForHub = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!HUB_TRANSIENT_STATUSES.includes(res.status))), this.getHub, request, options);
75
80
  /**
76
- * Update a hub.
81
+ * Update a hub. Update the parameters of an existing IoT Hub, specified by
82
+ * its Hub ID.
77
83
  *
78
84
  * @param request - The request {@link UpdateHubRequest}
79
85
  * @returns A Promise of Hub
@@ -85,7 +91,7 @@ class API extends API$1 {
85
91
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}`
86
92
  }, unmarshalHub);
87
93
  /**
88
- * Enable a hub.
94
+ * Enable a hub. Enable an existing IoT Hub, specified by its Hub ID.
89
95
  *
90
96
  * @param request - The request {@link EnableHubRequest}
91
97
  * @returns A Promise of Hub
@@ -97,7 +103,7 @@ class API extends API$1 {
97
103
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/enable`
98
104
  }, unmarshalHub);
99
105
  /**
100
- * Disable a hub.
106
+ * Disable a hub. Disable an existing IoT Hub, specified by its Hub ID.
101
107
  *
102
108
  * @param request - The request {@link DisableHubRequest}
103
109
  * @returns A Promise of Hub
@@ -109,7 +115,8 @@ class API extends API$1 {
109
115
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/disable`
110
116
  }, unmarshalHub);
111
117
  /**
112
- * Delete a hub.
118
+ * Delete a hub. Delete an existing IoT Hub, specified by its Hub ID. Deleting
119
+ * a Hub is permanent, and cannot be undone.
113
120
  *
114
121
  * @param request - The request {@link DeleteHubRequest}
115
122
  */
@@ -119,7 +126,8 @@ class API extends API$1 {
119
126
  urlParams: urlParams(['delete_devices', request.deleteDevices])
120
127
  });
121
128
  /**
122
- * Get a hub's metrics.
129
+ * Get a hub's metrics. Get the metrics of an existing IoT Hub, specified by
130
+ * its Hub ID.
123
131
  *
124
132
  * @deprecated
125
133
  * @param request - The request {@link GetHubMetricsRequest}
@@ -131,7 +139,8 @@ class API extends API$1 {
131
139
  urlParams: urlParams(['start_date', request.startDate])
132
140
  }, unmarshalGetHubMetricsResponse);
133
141
  /**
134
- * Set the certificate authority of a hub.
142
+ * Set the certificate authority of a hub. Set a particular PEM-encoded
143
+ * certificate, specified by the Hub ID.
135
144
  *
136
145
  * @param request - The request {@link SetHubCARequest}
137
146
  * @returns A Promise of Hub
@@ -143,7 +152,8 @@ class API extends API$1 {
143
152
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/hubs/${validatePathParam('hubId', request.hubId)}/ca`
144
153
  }, unmarshalHub);
145
154
  /**
146
- * Get the certificate authority of a hub.
155
+ * Get the certificate authority of a hub. Get information for a particular
156
+ * PEM-encoded certificate, specified by the Hub ID.
147
157
  *
148
158
  * @param request - The request {@link GetHubCARequest}
149
159
  * @returns A Promise of GetHubCAResponse
@@ -163,7 +173,9 @@ class API extends API$1 {
163
173
  }, unmarshalListDevicesResponse);
164
174
  };
165
175
  /**
166
- * List devices.
176
+ * List devices. List all devices in the specified region. By default,
177
+ * returned devices are ordered by creation date in ascending order, though
178
+ * this can be modified via the `order_by` field.
167
179
  *
168
180
  * @param request - The request {@link ListDevicesRequest}
169
181
  * @returns A Promise of ListDevicesResponse
@@ -175,7 +187,7 @@ class API extends API$1 {
175
187
  return enrichForPagination('devices', _this.pageOfListDevices, request);
176
188
  };
177
189
  /**
178
- * Add a device.
190
+ * Add a device. Attach a device to a given Hub.
179
191
  *
180
192
  * @param request - The request {@link CreateDeviceRequest}
181
193
  * @returns A Promise of CreateDeviceResponse
@@ -187,7 +199,9 @@ class API extends API$1 {
187
199
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices`
188
200
  }, unmarshalCreateDeviceResponse);
189
201
  /**
190
- * Get a device.
202
+ * Get a device. Retrieve information about an existing device, specified by
203
+ * its device ID. Its full details, including name, status and ID, are
204
+ * returned in the response object.
191
205
  *
192
206
  * @param request - The request {@link GetDeviceRequest}
193
207
  * @returns A Promise of Device
@@ -197,7 +211,8 @@ class API extends API$1 {
197
211
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
198
212
  }, unmarshalDevice);
199
213
  /**
200
- * Update a device.
214
+ * Update a device. Update the parameters of an existing device, specified by
215
+ * its device ID.
201
216
  *
202
217
  * @param request - The request {@link UpdateDeviceRequest}
203
218
  * @returns A Promise of Device
@@ -209,7 +224,7 @@ class API extends API$1 {
209
224
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
210
225
  }, unmarshalDevice);
211
226
  /**
212
- * Enable a device.
227
+ * Enable a device. Enable a specific device, specified by its device ID.
213
228
  *
214
229
  * @param request - The request {@link EnableDeviceRequest}
215
230
  * @returns A Promise of Device
@@ -221,7 +236,7 @@ class API extends API$1 {
221
236
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/enable`
222
237
  }, unmarshalDevice);
223
238
  /**
224
- * Disable a device.
239
+ * Disable a device. Disable an existing device, specified by its device ID.
225
240
  *
226
241
  * @param request - The request {@link DisableDeviceRequest}
227
242
  * @returns A Promise of Device
@@ -233,7 +248,8 @@ class API extends API$1 {
233
248
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/disable`
234
249
  }, unmarshalDevice);
235
250
  /**
236
- * Renew a device certificate.
251
+ * Renew a device certificate. Renew the certificate of an existing device,
252
+ * specified by its device ID.
237
253
  *
238
254
  * @param request - The request {@link RenewDeviceCertificateRequest}
239
255
  * @returns A Promise of RenewDeviceCertificateResponse
@@ -245,7 +261,8 @@ class API extends API$1 {
245
261
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/renew-certificate`
246
262
  }, unmarshalRenewDeviceCertificateResponse);
247
263
  /**
248
- * Set a custom certificate on a device.
264
+ * Set a custom certificate on a device. Switch the existing certificate of a
265
+ * given device with an EM-encoded custom certificate.
249
266
  *
250
267
  * @param request - The request {@link SetDeviceCertificateRequest}
251
268
  * @returns A Promise of SetDeviceCertificateResponse
@@ -257,7 +274,9 @@ class API extends API$1 {
257
274
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
258
275
  }, unmarshalSetDeviceCertificateResponse);
259
276
  /**
260
- * Get a device's certificate.
277
+ * Get a device's certificate. Get information for a particular PEM-encoded
278
+ * certificate, specified by the device ID. The response returns full details
279
+ * of the device, including its type of certificate.
261
280
  *
262
281
  * @param request - The request {@link GetDeviceCertificateRequest}
263
282
  * @returns A Promise of GetDeviceCertificateResponse
@@ -267,7 +286,8 @@ class API extends API$1 {
267
286
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}/certificate`
268
287
  }, unmarshalGetDeviceCertificateResponse);
269
288
  /**
270
- * Remove a device.
289
+ * Remove a device. Remove a specific device from the specific Hub it is
290
+ * attached to.
271
291
  *
272
292
  * @param request - The request {@link DeleteDeviceRequest}
273
293
  */
@@ -276,7 +296,8 @@ class API extends API$1 {
276
296
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/devices/${validatePathParam('deviceId', request.deviceId)}`
277
297
  });
278
298
  /**
279
- * Get a device's metrics.
299
+ * Get a device's metrics. Get the metrics of an existing device, specified by
300
+ * its device ID.
280
301
  *
281
302
  * @deprecated
282
303
  * @param request - The request {@link GetDeviceMetricsRequest}
@@ -298,7 +319,9 @@ class API extends API$1 {
298
319
  }, unmarshalListRoutesResponse);
299
320
  };
300
321
  /**
301
- * List routes.
322
+ * List routes. List all routes in the specified region. By default, returned
323
+ * routes are ordered by creation date in ascending order, though this can be
324
+ * modified via the `order_by` field.
302
325
  *
303
326
  * @param request - The request {@link ListRoutesRequest}
304
327
  * @returns A Promise of ListRoutesResponse
@@ -310,15 +333,15 @@ class API extends API$1 {
310
333
  return enrichForPagination('routes', _this.pageOfListRoutes, request);
311
334
  };
312
335
  /**
313
- * Create a route. Multiple route kinds can be created:
336
+ * Create a route. Multiple kinds of routes can be created, such as:
314
337
  *
315
- * - Database Route. Create a route that will record subscribed MQTT messages
338
+ * - Database Route Create a route that will record subscribed MQTT messages
316
339
  * into your database. <b>You need to manage the database by yourself</b>.
317
340
  * - REST Route. Create a route that will call a REST API on received subscribed
318
341
  * MQTT messages.
319
342
  * - S3 Routes. Create a route that will put subscribed MQTT messages into an S3
320
- * bucket. You need to create the bucket yourself and grant us write access.
321
- * The grant can be done with s3cmd (`s3cmd setacl s3://&lt;my-bucket&gt;
343
+ * bucket. You need to create the bucket yourself and grant write access.
344
+ * Granting can be done with s3cmd (`s3cmd setacl s3://&lt;my-bucket&gt;
322
345
  * --acl-grant=write:555c69c3-87d0-4bf8-80f1-99a2f757d031:555c69c3-87d0-4bf8-80f1-99a2f757d031`).
323
346
  *
324
347
  * @param request - The request {@link CreateRouteRequest}
@@ -331,7 +354,8 @@ class API extends API$1 {
331
354
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
332
355
  }, unmarshalRoute);
333
356
  /**
334
- * Update a route.
357
+ * Update a route. Update the parameters of an existing route, specified by
358
+ * its route ID.
335
359
  *
336
360
  * @param request - The request {@link UpdateRouteRequest}
337
361
  * @returns A Promise of Route
@@ -343,7 +367,9 @@ class API extends API$1 {
343
367
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
344
368
  }, unmarshalRoute);
345
369
  /**
346
- * Get a route.
370
+ * Get a route. Get information for a particular route, specified by the route
371
+ * ID. The response returns full details of the route, including its type, the
372
+ * topic it subscribes to and its configuration.
347
373
  *
348
374
  * @param request - The request {@link GetRouteRequest}
349
375
  * @returns A Promise of Route
@@ -353,7 +379,8 @@ class API extends API$1 {
353
379
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
354
380
  }, unmarshalRoute);
355
381
  /**
356
- * Delete a route.
382
+ * Delete a route. Delete an existing route, specified by its route ID.
383
+ * Deleting a route is permanent, and cannot be undone.
357
384
  *
358
385
  * @param request - The request {@link DeleteRouteRequest}
359
386
  */
@@ -372,7 +399,7 @@ class API extends API$1 {
372
399
  }, unmarshalListNetworksResponse);
373
400
  };
374
401
  /**
375
- * List the Networks.
402
+ * List the networks.
376
403
  *
377
404
  * @param request - The request {@link ListNetworksRequest}
378
405
  * @returns A Promise of ListNetworksResponse
@@ -384,7 +411,9 @@ class API extends API$1 {
384
411
  return enrichForPagination('networks', _this.pageOfListNetworks, request);
385
412
  };
386
413
  /**
387
- * Create a new Network.
414
+ * Create a new network. Create a new network for an existing hub. Beside the
415
+ * default network, you can add networks for different data providers.
416
+ * Possible network types are Sigfox and REST.
388
417
  *
389
418
  * @param request - The request {@link CreateNetworkRequest}
390
419
  * @returns A Promise of CreateNetworkResponse
@@ -396,7 +425,9 @@ class API extends API$1 {
396
425
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks`
397
426
  }, unmarshalCreateNetworkResponse);
398
427
  /**
399
- * Retrieve a specific Network.
428
+ * Retrieve a specific network. Retrieve an existing network, specified by its
429
+ * network ID. The response returns full details of the network, including its
430
+ * type, the topic prefix and its endpoint.
400
431
  *
401
432
  * @param request - The request {@link GetNetworkRequest}
402
433
  * @returns A Promise of Network
@@ -406,7 +437,8 @@ class API extends API$1 {
406
437
  path: `/iot/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/networks/${validatePathParam('networkId', request.networkId)}`
407
438
  }, unmarshalNetwork);
408
439
  /**
409
- * Delete a Network.
440
+ * Delete a Network. Delete an existing network, specified by its network ID.
441
+ * Deleting a network is permanent, and cannot be undone.
410
442
  *
411
443
  * @param request - The request {@link DeleteNetworkRequest}
412
444
  */
@@ -10,7 +10,7 @@ const jsonContentHeaders = {
10
10
  'Content-Type': 'application/json; charset=utf-8'
11
11
  };
12
12
 
13
- /** Kapsule API. */
13
+ /** Kubernetes API. */
14
14
  class API extends API$1 {
15
15
  constructor() {
16
16
  var _this;
@@ -70,7 +70,7 @@ class API extends API$1 {
70
70
  * @param options - The waiting options
71
71
  * @returns A Promise of Cluster
72
72
  */
73
- this.waitForCluster = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!CLUSTER_TRANSIENT_STATUSES.includes(res.status))), this.getCluster, request, options);
73
+ this.waitForCluster = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!CLUSTER_TRANSIENT_STATUSES.includes(res.status))), this.getCluster, request, options);
74
74
  /**
75
75
  * Update a cluster. Update a specific Kubernetes cluster. Note that this
76
76
  * method is designed to update details such as name, description, tags and
@@ -202,7 +202,7 @@ class API extends API$1 {
202
202
  * @param options - The waiting options
203
203
  * @returns A Promise of Pool
204
204
  */
205
- this.waitForPool = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!POOL_TRANSIENT_STATUSES.includes(res.status))), this.getPool, request, options);
205
+ this.waitForPool = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!POOL_TRANSIENT_STATUSES.includes(res.status))), this.getPool, request, options);
206
206
  /**
207
207
  * Upgrade a pool in a cluster. Upgrade the Kubernetes version of a specific
208
208
  * pool. Note that this will work when the targeted version is the same than
@@ -285,7 +285,7 @@ class API extends API$1 {
285
285
  * @param options - The waiting options
286
286
  * @returns A Promise of Node
287
287
  */
288
- this.waitForNode = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!NODE_TRANSIENT_STATUSES.includes(res.status))), this.getNode, request, options);
288
+ this.waitForNode = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NODE_TRANSIENT_STATUSES.includes(res.status))), this.getNode, request, options);
289
289
  /**
290
290
  * Replace a node in a cluster. Replace a specific node. The node will be set
291
291
  * cordoned, meaning that scheduling will be disabled. Then the existing pods
@@ -71,7 +71,7 @@ class API extends API$1 {
71
71
  * @param options - The waiting options
72
72
  * @returns A Promise of Lb
73
73
  */
74
- this.waitForLb = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
74
+ this.waitForLb = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
75
75
  /**
76
76
  * Update a load balancer.
77
77
  *
@@ -513,7 +513,7 @@ class API extends API$1 {
513
513
  * @param options - The waiting options
514
514
  * @returns A Promise of Certificate
515
515
  */
516
- this.waitForCertificate = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
516
+ this.waitForCertificate = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
517
517
  /**
518
518
  * Update a TLS certificate.
519
519
  *
@@ -743,7 +743,7 @@ class ZonedAPI extends API$1 {
743
743
  * @param options - The waiting options
744
744
  * @returns A Promise of Lb
745
745
  */
746
- this.waitForLb = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
746
+ this.waitForLb = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
747
747
  /**
748
748
  * Update a Load Balancer. Update the parameters of an existing Load Balancer,
749
749
  * specified by its Load Balancer ID. Note that the request type is PUT and
@@ -1285,7 +1285,7 @@ class ZonedAPI extends API$1 {
1285
1285
  * @param options - The waiting options
1286
1286
  * @returns A Promise of Certificate
1287
1287
  */
1288
- this.waitForCertificate = (request, options) => waitForResource((options == null ? void 0 : options.stop) ?? (res => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
1288
+ this.waitForCertificate = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
1289
1289
  /**
1290
1290
  * Update an SSL/TLS certificate. Update the name of a particular SSL/TLS
1291
1291
  * certificate, specified by its certificate ID.
@@ -24,7 +24,7 @@ class LbV1UtilsAPI extends API {
24
24
  done: value.privateNetwork.find(elt => PRIVATE_NETWORK_TRANSIENT_STATUSES.includes(elt.status)) === undefined,
25
25
  value
26
26
  };
27
- }, createExponentialBackoffStrategy((options == null ? void 0 : options.minDelay) ?? 1, (options == null ? void 0 : options.maxDelay) ?? 30), options == null ? void 0 : options.timeout);
27
+ }, createExponentialBackoffStrategy(options?.minDelay ?? 1, options?.maxDelay ?? 30), options?.timeout);
28
28
  /**
29
29
  * Waits for all instances of a load balancer to be in a final state.
30
30
  *
@@ -38,7 +38,7 @@ class LbV1UtilsAPI extends API {
38
38
  done: !LB_TRANSIENT_STATUSES.includes(value.status) && value.instances.find(elt => INSTANCE_TRANSIENT_STATUSES.includes(elt.status)) === undefined,
39
39
  value
40
40
  };
41
- }, createExponentialBackoffStrategy((options == null ? void 0 : options.minDelay) ?? 1, (options == null ? void 0 : options.maxDelay) ?? 30), options == null ? void 0 : options.timeout);
41
+ }, createExponentialBackoffStrategy(options?.minDelay ?? 1, options?.maxDelay ?? 30), options?.timeout);
42
42
  }
43
43
  }
44
44
  class LbZonedV1UtilsAPI extends ZonedAPI {
@@ -64,7 +64,7 @@ class LbZonedV1UtilsAPI extends ZonedAPI {
64
64
  done: value.privateNetwork.find(elt => PRIVATE_NETWORK_TRANSIENT_STATUSES.includes(elt.status)) === undefined,
65
65
  value
66
66
  };
67
- }, createExponentialBackoffStrategy((options == null ? void 0 : options.minDelay) ?? 1, (options == null ? void 0 : options.maxDelay) ?? 30), options == null ? void 0 : options.timeout);
67
+ }, createExponentialBackoffStrategy(options?.minDelay ?? 1, options?.maxDelay ?? 30), options?.timeout);
68
68
  /**
69
69
  * Waits for all instances of a (zoned) load balancer to be in a final state.
70
70
  *
@@ -78,7 +78,7 @@ class LbZonedV1UtilsAPI extends ZonedAPI {
78
78
  done: !LB_TRANSIENT_STATUSES.includes(value.status) && value.instances.find(elt => INSTANCE_TRANSIENT_STATUSES.includes(elt.status)) === undefined,
79
79
  value
80
80
  };
81
- }, createExponentialBackoffStrategy((options == null ? void 0 : options.minDelay) ?? 1, (options == null ? void 0 : options.maxDelay) ?? 30), options == null ? void 0 : options.timeout);
81
+ }, createExponentialBackoffStrategy(options?.minDelay ?? 1, options?.maxDelay ?? 30), options?.timeout);
82
82
  }
83
83
  }
84
84
 
@@ -16,14 +16,16 @@ class API extends API$1 {
16
16
  urlParams: urlParams(['arch', request.arch], ['category', request.category], ['include_eol', request.includeEol], ['order_by', request.orderBy ?? 'name_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
17
17
  }, unmarshalListImagesResponse);
18
18
  /**
19
- * List marketplace images.
19
+ * List marketplace images. List all available images on the marketplace,
20
+ * their UUID, CPU architecture and description.
20
21
  *
21
22
  * @param request - The request {@link ListImagesRequest}
22
23
  * @returns A Promise of ListImagesResponse
23
24
  */
24
25
  this.listImages = request => enrichForPagination('images', this.pageOfListImages, request);
25
26
  /**
26
- * Get a specific marketplace image.
27
+ * Get a specific marketplace image. Get detailed information about a
28
+ * marketplace image, specified by its `image_id` (UUID format).
27
29
  *
28
30
  * @param request - The request {@link GetImageRequest}
29
31
  * @returns A Promise of Image
@@ -37,7 +39,22 @@ class API extends API$1 {
37
39
  path: `/marketplace/v2/versions`,
38
40
  urlParams: urlParams(['image_id', request.imageId], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
39
41
  }, unmarshalListVersionsResponse);
42
+ /**
43
+ * List versions of an Image. Get a list of all available version of an image,
44
+ * specified by its `image_id` (UUID format).
45
+ *
46
+ * @param request - The request {@link ListVersionsRequest}
47
+ * @returns A Promise of ListVersionsResponse
48
+ */
40
49
  this.listVersions = request => enrichForPagination('versions', this.pageOfListVersions, request);
50
+ /**
51
+ * Get a specific image version. Get information such as the name, creation
52
+ * date, last update and published date for an image version specified by its
53
+ * `version_id` (UUID format).
54
+ *
55
+ * @param request - The request {@link GetVersionRequest}
56
+ * @returns A Promise of Version
57
+ */
41
58
  this.getVersion = request => this.client.fetch({
42
59
  method: 'GET',
43
60
  path: `/marketplace/v2/versions/${validatePathParam('versionId', request.versionId)}`
@@ -62,7 +79,10 @@ class API extends API$1 {
62
79
  }, unmarshalListLocalImagesResponse);
63
80
  };
64
81
  /**
65
- * List local images from a specific image or version.
82
+ * List local images from a specific image or version. List information about
83
+ * local images in a specific Availability Zone, specified by its `image_id`
84
+ * (UUID format), `version_id` (UUID format) or `image_label`. Only one of
85
+ * these three parameters may be set.
66
86
  *
67
87
  * @param request - The request {@link ListLocalImagesRequest}
68
88
  * @returns A Promise of ListLocalImagesResponse
@@ -73,6 +93,15 @@ class API extends API$1 {
73
93
  }
74
94
  return enrichForPagination('localImages', _this.pageOfListLocalImages, request);
75
95
  };
96
+ /**
97
+ * Get a specific local image by ID. Get detailed information about a local
98
+ * image, including compatible commercial types, supported architecture,
99
+ * labels and the Availability Zone of the image, specified by its
100
+ * `local_image_id` (UUID format).
101
+ *
102
+ * @param request - The request {@link GetLocalImageRequest}
103
+ * @returns A Promise of LocalImage
104
+ */
76
105
  this.getLocalImage = request => this.client.fetch({
77
106
  method: 'GET',
78
107
  path: `/marketplace/v2/local-images/${validatePathParam('localImageId', request.localImageId)}`
@@ -87,12 +116,26 @@ class API extends API$1 {
87
116
  urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize])
88
117
  }, unmarshalListCategoriesResponse);
89
118
  };
119
+ /**
120
+ * List existing image categories. Get a list of all existing categories. The
121
+ * output can be paginated.
122
+ *
123
+ * @param request - The request {@link ListCategoriesRequest}
124
+ * @returns A Promise of ListCategoriesResponse
125
+ */
90
126
  this.listCategories = function (request) {
91
127
  if (request === void 0) {
92
128
  request = {};
93
129
  }
94
130
  return enrichForPagination('categories', _this.pageOfListCategories, request);
95
131
  };
132
+ /**
133
+ * Get a specific category. Get information about a specific category of the
134
+ * marketplace catalog, specified by its `category_id` (UUID format).
135
+ *
136
+ * @param request - The request {@link GetCategoryRequest}
137
+ * @returns A Promise of Category
138
+ */
96
139
  this.getCategory = request => this.client.fetch({
97
140
  method: 'GET',
98
141
  path: `/marketplace/v2/categories/${validatePathParam('categoryId', request.categoryId)}`
@@ -9,9 +9,10 @@ const jsonContentHeaders = {
9
9
  };
10
10
 
11
11
  /**
12
- * MnQ API (beta).
12
+ * Messaging and Queuing API.
13
13
  *
14
- * This API allows you to manage Messaging or Queueing brokers. MnQ API (beta).
14
+ * This API allows you to manage Scaleway Messaging and Queueing brokers.
15
+ * Messaging and Queuing API.
15
16
  */
16
17
  class API extends API$1 {
17
18
  constructor() {
@@ -29,7 +30,10 @@ class API extends API$1 {
29
30
  }, unmarshalListNamespacesResponse);
30
31
  };
31
32
  /**
32
- * List namespaces.
33
+ * List namespaces. List all Messaging and Queuing namespaces in the specified
34
+ * region, for a Scaleway Organization or Project. By default, the namespaces
35
+ * returned in the list are ordered by creation date in ascending order,
36
+ * though this can be modified via the `order_by` field.
33
37
  *
34
38
  * @param request - The request {@link ListNamespacesRequest}
35
39
  * @returns A Promise of ListNamespacesResponse
@@ -41,7 +45,8 @@ class API extends API$1 {
41
45
  return enrichForPagination('namespaces', _this.pageOfListNamespaces, request);
42
46
  };
43
47
  /**
44
- * Create a namespace.
48
+ * Create a namespace. Create a Messaging and Queuing namespace, set to the
49
+ * desired protocol.
45
50
  *
46
51
  * @param request - The request {@link CreateNamespaceRequest}
47
52
  * @returns A Promise of Namespace
@@ -53,7 +58,8 @@ class API extends API$1 {
53
58
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
54
59
  }, unmarshalNamespace);
55
60
  /**
56
- * Update the name of a namespace.
61
+ * Update the name of a namespace. Update the name of a Messaging and Queuing
62
+ * namespace, specified by its namespace ID.
57
63
  *
58
64
  * @param request - The request {@link UpdateNamespaceRequest}
59
65
  * @returns A Promise of Namespace
@@ -65,7 +71,9 @@ class API extends API$1 {
65
71
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
66
72
  }, unmarshalNamespace);
67
73
  /**
68
- * Get a namespace.
74
+ * Get a namespace. Retrieve information about an existing Messaging and
75
+ * Queuing namespace, identified by its namespace ID. Its full details,
76
+ * including name, endpoint and protocol, are returned in the response.
69
77
  *
70
78
  * @param request - The request {@link GetNamespaceRequest}
71
79
  * @returns A Promise of Namespace
@@ -75,7 +83,10 @@ class API extends API$1 {
75
83
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
76
84
  }, unmarshalNamespace);
77
85
  /**
78
- * Delete a namespace.
86
+ * Delete a namespace. Delete a Messaging and Queuing namespace, specified by
87
+ * its namespace ID. Note that deleting a namespace is irreversible, and any
88
+ * URLs, credentials and queued messages belonging to this namespace will also
89
+ * be deleted.
79
90
  *
80
91
  * @param request - The request {@link DeleteNamespaceRequest}
81
92
  */
@@ -84,8 +95,11 @@ class API extends API$1 {
84
95
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
85
96
  });
86
97
  /**
87
- * Create a set of credentials. Create a set of credentials for a specific
88
- * namespace.
98
+ * Create credentials. Create a set of credentials for a Messaging and Queuing
99
+ * namespace, specified by its namespace ID. If creating credentials for a
100
+ * NATS namespace, the `permissions` object must not be included in the
101
+ * request. If creating credentials for an SQS/SNS namespace, the
102
+ * `permissions` object is required, with all three of its child attributes.
89
103
  *
90
104
  * @param request - The request {@link CreateCredentialRequest}
91
105
  * @returns A Promise of Credential
@@ -97,7 +111,9 @@ class API extends API$1 {
97
111
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials`
98
112
  }, unmarshalCredential);
99
113
  /**
100
- * Delete credentials.
114
+ * Delete credentials. Delete a set of credentials, specified by their
115
+ * credential ID. Deleting credentials is irreversible and cannot be undone.
116
+ * The credentials can no longer be used to access the namespace.
101
117
  *
102
118
  * @param request - The request {@link DeleteCredentialRequest}
103
119
  */
@@ -116,7 +132,9 @@ class API extends API$1 {
116
132
  }, unmarshalListCredentialsResponse);
117
133
  };
118
134
  /**
119
- * List credentials.
135
+ * List credentials. List existing credentials in the specified region. The
136
+ * response contains only the metadata for the credentials, not the
137
+ * credentials themselves (for this, use **Get Credentials**).
120
138
  *
121
139
  * @param request - The request {@link ListCredentialsRequest}
122
140
  * @returns A Promise of ListCredentialsResponse
@@ -128,7 +146,10 @@ class API extends API$1 {
128
146
  return enrichForPagination('credentials', _this.pageOfListCredentials, request);
129
147
  };
130
148
  /**
131
- * Update a set of credentials.
149
+ * Update credentials. Update a set of credentials. You can update the
150
+ * credentials' name, or (in the case of SQS/SNS credentials only) their
151
+ * permissions. To update the name of NATS credentials, do not include the
152
+ * `permissions` object in your request.
132
153
  *
133
154
  * @param request - The request {@link UpdateCredentialRequest}
134
155
  * @returns A Promise of Credential
@@ -140,7 +161,9 @@ class API extends API$1 {
140
161
  path: `/mnq/v1alpha1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/credentials/${validatePathParam('credentialId', request.credentialId)}`
141
162
  }, unmarshalCredential);
142
163
  /**
143
- * Get a set of credentials.
164
+ * Get credentials. Retrieve an existing set of credentials, identified by the
165
+ * `credential_id`. The credentials themselves, as well as their metadata
166
+ * (protocol, namespace ID etc), are returned in the response.
144
167
  *
145
168
  * @param request - The request {@link GetCredentialRequest}
146
169
  * @returns A Promise of Credential