@scaleway/sdk 2.72.0 → 2.74.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 (209) hide show
  1. package/dist/api/account/v3/api.gen.cjs +13 -32
  2. package/dist/api/account/v3/api.gen.d.ts +17 -36
  3. package/dist/api/account/v3/api.gen.js +13 -32
  4. package/dist/api/account/v3/index.gen.d.ts +1 -1
  5. package/dist/api/account/v3/marshalling.gen.cjs +94 -65
  6. package/dist/api/account/v3/marshalling.gen.js +94 -65
  7. package/dist/api/account/v3/types.gen.d.ts +224 -104
  8. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
  9. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
  10. package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
  11. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
  12. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
  13. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
  14. package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
  15. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
  16. package/dist/api/baremetal/v1/api.gen.cjs +28 -61
  17. package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
  18. package/dist/api/baremetal/v1/api.gen.js +28 -61
  19. package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
  20. package/dist/api/baremetal/v3/api.gen.cjs +7 -14
  21. package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
  22. package/dist/api/baremetal/v3/api.gen.js +7 -14
  23. package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
  24. package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
  25. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
  26. package/dist/api/billing/v2beta1/api.gen.js +11 -20
  27. package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
  28. package/dist/api/block/v1/api.gen.cjs +37 -55
  29. package/dist/api/block/v1/api.gen.d.ts +19 -37
  30. package/dist/api/block/v1/api.gen.js +37 -55
  31. package/dist/api/block/v1/types.gen.d.ts +306 -125
  32. package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
  33. package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
  34. package/dist/api/block/v1alpha1/api.gen.js +45 -64
  35. package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
  36. package/dist/api/cockpit/v1/api.gen.cjs +132 -156
  37. package/dist/api/cockpit/v1/api.gen.d.ts +66 -113
  38. package/dist/api/cockpit/v1/api.gen.js +133 -157
  39. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  40. package/dist/api/cockpit/v1/marshalling.gen.cjs +23 -0
  41. package/dist/api/cockpit/v1/marshalling.gen.d.ts +3 -1
  42. package/dist/api/cockpit/v1/marshalling.gen.js +23 -0
  43. package/dist/api/cockpit/v1/types.gen.d.ts +628 -246
  44. package/dist/api/container/v1beta1/api.gen.cjs +7 -14
  45. package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
  46. package/dist/api/container/v1beta1/api.gen.js +7 -14
  47. package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
  48. package/dist/api/dedibox/v1/api.gen.cjs +45 -69
  49. package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
  50. package/dist/api/dedibox/v1/api.gen.js +45 -69
  51. package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
  52. package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
  53. package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
  54. package/dist/api/domain/v2beta1/api.gen.js +119 -178
  55. package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
  56. package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
  57. package/dist/api/edge_services/v1beta1/api.gen.cjs +41 -22
  58. package/dist/api/edge_services/v1beta1/api.gen.d.ts +3 -2
  59. package/dist/api/edge_services/v1beta1/api.gen.js +41 -22
  60. package/dist/api/edge_services/v1beta1/index.gen.d.ts +1 -1
  61. package/dist/api/edge_services/v1beta1/types.gen.d.ts +7 -0
  62. package/dist/api/file/index.gen.cjs +4 -0
  63. package/dist/api/file/index.gen.d.ts +5 -0
  64. package/dist/api/file/index.gen.js +4 -0
  65. package/dist/api/file/v1alpha1/api.gen.cjs +142 -0
  66. package/dist/api/file/v1alpha1/api.gen.d.ts +73 -0
  67. package/dist/api/file/v1alpha1/api.gen.js +142 -0
  68. package/dist/api/file/v1alpha1/content.gen.cjs +7 -0
  69. package/dist/api/file/v1alpha1/content.gen.d.ts +3 -0
  70. package/dist/api/file/v1alpha1/content.gen.js +7 -0
  71. package/dist/api/file/v1alpha1/index.gen.cjs +8 -0
  72. package/dist/api/file/v1alpha1/index.gen.d.ts +4 -0
  73. package/dist/api/file/v1alpha1/index.gen.js +8 -0
  74. package/dist/api/file/v1alpha1/marshalling.gen.cjs +77 -0
  75. package/dist/api/file/v1alpha1/marshalling.gen.d.ts +7 -0
  76. package/dist/api/file/v1alpha1/marshalling.gen.js +77 -0
  77. package/dist/api/file/v1alpha1/types.gen.d.ts +239 -0
  78. package/dist/api/file/v1alpha1/validation-rules.gen.cjs +40 -0
  79. package/dist/api/file/v1alpha1/validation-rules.gen.d.ts +34 -0
  80. package/dist/api/file/v1alpha1/validation-rules.gen.js +40 -0
  81. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
  82. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
  83. package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
  84. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
  85. package/dist/api/function/v1beta1/types.gen.d.ts +6 -6
  86. package/dist/api/iam/v1alpha1/api.gen.cjs +4 -4
  87. package/dist/api/iam/v1alpha1/api.gen.d.ts +4 -4
  88. package/dist/api/iam/v1alpha1/api.gen.js +4 -4
  89. package/dist/api/iam/v1alpha1/types.gen.d.ts +1 -1
  90. package/dist/api/index.gen.d.ts +3 -1
  91. package/dist/api/inference/v1/api.gen.cjs +8 -11
  92. package/dist/api/inference/v1/api.gen.d.ts +6 -9
  93. package/dist/api/inference/v1/api.gen.js +8 -11
  94. package/dist/api/inference/v1/types.gen.d.ts +330 -150
  95. package/dist/api/inference/v1beta1/api.gen.cjs +9 -12
  96. package/dist/api/inference/v1beta1/api.gen.d.ts +7 -10
  97. package/dist/api/inference/v1beta1/api.gen.js +9 -12
  98. package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
  99. package/dist/api/instance/v1/api.gen.cjs +64 -113
  100. package/dist/api/instance/v1/api.gen.d.ts +54 -103
  101. package/dist/api/instance/v1/api.gen.js +64 -113
  102. package/dist/api/instance/v1/marshalling.gen.cjs +4 -1
  103. package/dist/api/instance/v1/marshalling.gen.js +4 -1
  104. package/dist/api/instance/v1/types.gen.d.ts +1368 -600
  105. package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
  106. package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
  107. package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
  108. package/dist/api/interlink/v1beta1/api.gen.js +21 -67
  109. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
  110. package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
  111. package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
  112. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
  113. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
  114. package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
  115. package/dist/api/iot/v1/api.gen.cjs +37 -70
  116. package/dist/api/iot/v1/api.gen.d.ts +34 -67
  117. package/dist/api/iot/v1/api.gen.js +37 -70
  118. package/dist/api/iot/v1/types.gen.d.ts +566 -321
  119. package/dist/api/ipam/v1/api.gen.cjs +6 -26
  120. package/dist/api/ipam/v1/api.gen.d.ts +8 -29
  121. package/dist/api/ipam/v1/api.gen.js +6 -26
  122. package/dist/api/ipam/v1/types.gen.d.ts +146 -105
  123. package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
  124. package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
  125. package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
  126. package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
  127. package/dist/api/k8s/v1/api.gen.cjs +33 -78
  128. package/dist/api/k8s/v1/api.gen.d.ts +27 -72
  129. package/dist/api/k8s/v1/api.gen.js +33 -78
  130. package/dist/api/k8s/v1/types.gen.d.ts +743 -506
  131. package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
  132. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
  133. package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
  134. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
  135. package/dist/api/lb/v1/marshalling.gen.cjs +4 -2
  136. package/dist/api/lb/v1/marshalling.gen.js +4 -2
  137. package/dist/api/lb/v1/types.gen.d.ts +4 -0
  138. package/dist/api/marketplace/v2/api.gen.cjs +8 -21
  139. package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
  140. package/dist/api/marketplace/v2/api.gen.js +8 -21
  141. package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
  142. package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
  143. package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
  144. package/dist/api/mnq/v1beta1/api.gen.js +24 -76
  145. package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
  146. package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
  147. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
  148. package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
  149. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
  150. package/dist/api/product_catalog/index.gen.cjs +4 -0
  151. package/dist/api/product_catalog/index.gen.d.ts +5 -0
  152. package/dist/api/product_catalog/index.gen.js +4 -0
  153. package/dist/api/product_catalog/v2alpha1/api.gen.cjs +36 -0
  154. package/dist/api/product_catalog/v2alpha1/api.gen.d.ts +18 -0
  155. package/dist/api/product_catalog/v2alpha1/api.gen.js +36 -0
  156. package/dist/api/product_catalog/v2alpha1/index.gen.cjs +6 -0
  157. package/dist/api/product_catalog/v2alpha1/index.gen.d.ts +3 -0
  158. package/dist/api/product_catalog/v2alpha1/index.gen.js +6 -0
  159. package/dist/api/product_catalog/v2alpha1/marshalling.gen.cjs +230 -0
  160. package/dist/api/product_catalog/v2alpha1/marshalling.gen.d.ts +2 -0
  161. package/dist/api/product_catalog/v2alpha1/marshalling.gen.js +230 -0
  162. package/dist/api/product_catalog/v2alpha1/types.gen.d.ts +293 -0
  163. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.cjs +11 -0
  164. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.d.ts +8 -0
  165. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.js +11 -0
  166. package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
  167. package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
  168. package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
  169. package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
  170. package/dist/api/rdb/v1/api.gen.cjs +62 -202
  171. package/dist/api/rdb/v1/api.gen.d.ts +60 -201
  172. package/dist/api/rdb/v1/api.gen.js +62 -202
  173. package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
  174. package/dist/api/redis/v1/api.gen.cjs +23 -83
  175. package/dist/api/redis/v1/api.gen.d.ts +25 -85
  176. package/dist/api/redis/v1/api.gen.js +23 -83
  177. package/dist/api/redis/v1/types.gen.d.ts +447 -170
  178. package/dist/api/registry/v1/api.gen.cjs +12 -40
  179. package/dist/api/registry/v1/api.gen.d.ts +14 -42
  180. package/dist/api/registry/v1/api.gen.js +12 -40
  181. package/dist/api/registry/v1/types.gen.d.ts +200 -116
  182. package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
  183. package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
  184. package/dist/api/secret/v1beta1/api.gen.js +19 -47
  185. package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
  186. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
  187. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
  188. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
  189. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
  190. package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
  191. package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
  192. package/dist/api/tem/v1alpha1/api.gen.js +22 -58
  193. package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
  194. package/dist/api/test/v1/api.gen.cjs +8 -11
  195. package/dist/api/test/v1/api.gen.d.ts +6 -9
  196. package/dist/api/test/v1/api.gen.js +8 -11
  197. package/dist/api/test/v1/types.gen.d.ts +21 -10
  198. package/dist/api/vpcgw/v1/api.gen.cjs +37 -0
  199. package/dist/api/vpcgw/v1/api.gen.d.ts +37 -0
  200. package/dist/api/vpcgw/v1/api.gen.js +37 -0
  201. package/dist/client/dist/package.json.cjs +1 -1
  202. package/dist/client/dist/package.json.js +1 -1
  203. package/dist/index.cjs +36 -32
  204. package/dist/index.js +36 -32
  205. package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
  206. package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
  207. package/node_modules/@scaleway/sdk-client/package.json +1 -2
  208. package/package.json +2 -2
  209. package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
@@ -38,8 +38,7 @@ class API extends API$1 {
38
38
  unmarshalGetServerTypesAvailabilityResponse
39
39
  );
40
40
  /**
41
- * List Instance types. List available Instance types and their technical
42
- * details.
41
+ * List Instance types. List available Instance types and their technical details.
43
42
  *
44
43
  * @param request - The request {@link ListServersTypesRequest}
45
44
  * @returns A Promise of ListServersTypesResponse
@@ -107,8 +106,7 @@ class API extends API$1 {
107
106
  unmarshalListServersResponse
108
107
  );
109
108
  /**
110
- * List all Instances. List all Instances in a specified Availability Zone,
111
- * e.g. `fr-par-1`.
109
+ * List all Instances. List all Instances in a specified Availability Zone, e.g. `fr-par-1`.
112
110
  *
113
111
  * @param request - The request {@link ListServersRequest}
114
112
  * @returns A Promise of ListServersResponse
@@ -170,8 +168,7 @@ class API extends API$1 {
170
168
  unmarshalUpdateServerResponse
171
169
  );
172
170
  /**
173
- * List Instance actions. List all actions (e.g. power on, power off, reboot)
174
- * that can currently be performed on an Instance.
171
+ * List Instance actions. List all actions (e.g. power on, power off, reboot) that can currently be performed on an Instance.
175
172
  *
176
173
  * @param request - The request {@link ListServerActionsRequest}
177
174
  * @returns A Promise of ListServerActionsResponse
@@ -184,30 +181,26 @@ class API extends API$1 {
184
181
  unmarshalListServerActionsResponse
185
182
  );
186
183
  /**
187
- * Perform action. Perform an action on an Instance. Available actions are:
188
- * `poweron`: Start a stopped Instance. `poweroff`: Fully stop the Instance
189
- * and release the hypervisor slot. `stop_in_place`: Stop the Instance, but
190
- * keep the slot on the hypervisor. `reboot`: Stop the instance and restart
191
- * it. `backup`: Create an image with all the volumes of an Instance.
192
- * `terminate`: Delete the Instance along with its attached volumes, except
193
- * for SBS volumes. `enable_routed_ip`: Migrate the Instance to the new
194
- * network stack.
195
- *
196
- * The `terminate` action will result in the deletion of `l_ssd`, `b_ssd` and
197
- * `scratch` volumes types, `sbs_volume` volumes type will only be detached.
198
- * If you want to preserve your volumes, you should detach them before the
199
- * Instance deletion or `terminate` action.
200
- *
201
- * The `backup` action can be done with: No `volumes` key in the body: an
202
- * image is created with snapshots of all the server volumes, except for the
203
- * `scratch` volumes types. `volumes` key in the body with a dictionary as
204
- * value, in this dictionary volumes UUID as keys and empty dictionaries as
205
- * values : an image is created with the snapshots of the volumes in `volumes`
206
- * key. `scratch` volumes types can't be shapshotted.
207
- *
208
- * @param request - The request {@link ServerActionRequest}
209
- * @returns A Promise of ServerActionResponse
210
- */
184
+ * Perform action. Perform an action on an Instance.
185
+ Available actions are:
186
+ * `poweron`: Start a stopped Instance.
187
+ * `poweroff`: Fully stop the Instance and release the hypervisor slot.
188
+ * `stop_in_place`: Stop the Instance, but keep the slot on the hypervisor.
189
+ * `reboot`: Stop the instance and restart it.
190
+ * `backup`: Create an image with all the volumes of an Instance.
191
+ * `terminate`: Delete the Instance along with its attached volumes, except for SBS volumes.
192
+ * `enable_routed_ip`: Migrate the Instance to the new network stack.
193
+
194
+ The `terminate` action will result in the deletion of `l_ssd`, `b_ssd` and `scratch` volumes types, `sbs_volume` volumes type will only be detached.
195
+ If you want to preserve your volumes, you should detach them before the Instance deletion or `terminate` action.
196
+
197
+ The `backup` action can be done with:
198
+ * No `volumes` key in the body: an image is created with snapshots of all the server volumes, except for the `scratch` volumes types.
199
+ * `volumes` key in the body with a dictionary as value, in this dictionary volumes UUID as keys and empty dictionaries as values : an image is created with the snapshots of the volumes in `volumes` key. `scratch` volumes types can't be shapshotted.
200
+ *
201
+ * @param request - The request {@link ServerActionRequest}
202
+ * @returns A Promise of ServerActionResponse
203
+ */
211
204
  serverAction = (request) => this.client.fetch(
212
205
  {
213
206
  body: JSON.stringify(
@@ -242,16 +235,16 @@ class API extends API$1 {
242
235
  path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/user_data/${validatePathParam("key", request.key)}`
243
236
  });
244
237
  /**
245
- * Get Instance compatible types. Get compatible commercial types that can be
246
- * used to update the Instance. The compatibility of an Instance offer is
247
- * based on: the CPU architecture the OS type the required l_ssd storage size
248
- * the required scratch storage size If the specified Instance offer is
249
- * flagged as end of service, the best compatible offer is the first
250
- * returned.
251
- *
252
- * @param request - The request {@link GetServerCompatibleTypesRequest}
253
- * @returns A Promise of ServerCompatibleTypes
254
- */
238
+ * Get Instance compatible types. Get compatible commercial types that can be used to update the Instance. The compatibility of an Instance offer is based on:
239
+ * the CPU architecture
240
+ * the OS type
241
+ * the required l_ssd storage size
242
+ * the required scratch storage size
243
+ If the specified Instance offer is flagged as end of service, the best compatible offer is the first returned.
244
+ *
245
+ * @param request - The request {@link GetServerCompatibleTypesRequest}
246
+ * @returns A Promise of ServerCompatibleTypes
247
+ */
255
248
  getServerCompatibleTypes = (request) => this.client.fetch(
256
249
  {
257
250
  method: "GET",
@@ -319,8 +312,7 @@ class API extends API$1 {
319
312
  unmarshalGetImageResponse
320
313
  );
321
314
  /**
322
- * Create an Instance image. Create an Instance image from the specified
323
- * snapshot ID.
315
+ * Create an Instance image. Create an Instance image from the specified snapshot ID.
324
316
  *
325
317
  * @param request - The request {@link CreateImageRequest}
326
318
  * @returns A Promise of CreateImageResponse
@@ -390,17 +382,14 @@ class API extends API$1 {
390
382
  unmarshalListSnapshotsResponse
391
383
  );
392
384
  /**
393
- * List snapshots. List all snapshots of an Organization in a specified
394
- * Availability Zone.
385
+ * List snapshots. List all snapshots of an Organization in a specified Availability Zone.
395
386
  *
396
387
  * @param request - The request {@link ListSnapshotsRequest}
397
388
  * @returns A Promise of ListSnapshotsResponse
398
389
  */
399
390
  listSnapshots = (request = {}) => enrichForPagination("snapshots", this.pageOfListSnapshots, request);
400
391
  /**
401
- * Create a snapshot from a specified volume or from a QCOW2 file. Create a
402
- * snapshot from a specified volume or from a QCOW2 file in a specified
403
- * Availability Zone.
392
+ * Create a snapshot from a specified volume or from a QCOW2 file. Create a snapshot from a specified volume or from a QCOW2 file in a specified Availability Zone.
404
393
  *
405
394
  * @param request - The request {@link CreateSnapshotRequest}
406
395
  * @returns A Promise of CreateSnapshotResponse
@@ -467,8 +456,7 @@ class API extends API$1 {
467
456
  path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`
468
457
  });
469
458
  /**
470
- * Export a snapshot. Export a snapshot to a specified Object Storage bucket
471
- * in the same region.
459
+ * Export a snapshot. Export a snapshot to a specified Object Storage bucket in the same region.
472
460
  *
473
461
  * @param request - The request {@link ExportSnapshotRequest}
474
462
  * @returns A Promise of ExportSnapshotResponse
@@ -504,16 +492,14 @@ class API extends API$1 {
504
492
  unmarshalListVolumesResponse
505
493
  );
506
494
  /**
507
- * List volumes. List volumes in the specified Availability Zone. You can
508
- * filter the output by volume type.
495
+ * List volumes. List volumes in the specified Availability Zone. You can filter the output by volume type.
509
496
  *
510
497
  * @param request - The request {@link ListVolumesRequest}
511
498
  * @returns A Promise of ListVolumesResponse
512
499
  */
513
500
  listVolumes = (request = {}) => enrichForPagination("volumes", this.pageOfListVolumes, request);
514
501
  /**
515
- * Create a volume. Create a volume of a specified type in an Availability
516
- * Zone.
502
+ * Create a volume. Create a volume of a specified type in an Availability Zone.
517
503
  *
518
504
  * @param request - The request {@link CreateVolumeRequest}
519
505
  * @returns A Promise of CreateVolumeResponse
@@ -543,9 +529,7 @@ class API extends API$1 {
543
529
  unmarshalGetVolumeResponse
544
530
  );
545
531
  /**
546
- * Update a volume. Replace the name and/or size properties of a volume
547
- * specified by its ID, with the specified value(s). Any volume name can be
548
- * changed, however only `b_ssd` volumes can currently be increased in size.
532
+ * Update a volume. Replace the name and/or size properties of a volume specified by its ID, with the specified value(s). Any volume name can be changed, however only `b_ssd` volumes can currently be increased in size.
549
533
  *
550
534
  * @param request - The request {@link UpdateVolumeRequest}
551
535
  * @returns A Promise of UpdateVolumeResponse
@@ -601,8 +585,7 @@ class API extends API$1 {
601
585
  request
602
586
  );
603
587
  /**
604
- * Create a security group. Create a security group with a specified name and
605
- * description.
588
+ * Create a security group. Create a security group with a specified name and description.
606
589
  *
607
590
  * @param request - The request {@link CreateSecurityGroupRequest}
608
591
  * @returns A Promise of CreateSecurityGroupResponse
@@ -619,8 +602,7 @@ class API extends API$1 {
619
602
  unmarshalCreateSecurityGroupResponse
620
603
  );
621
604
  /**
622
- * Get a security group. Get the details of a security group with the
623
- * specified ID.
605
+ * Get a security group. Get the details of a security group with the specified ID.
624
606
  *
625
607
  * @param request - The request {@link GetSecurityGroupRequest}
626
608
  * @returns A Promise of GetSecurityGroupResponse
@@ -670,8 +652,7 @@ class API extends API$1 {
670
652
  unmarshalUpdateSecurityGroupResponse
671
653
  );
672
654
  /**
673
- * Get default rules. Lists the default rules applied to all the security
674
- * groups.
655
+ * Get default rules. Lists the default rules applied to all the security groups.
675
656
  *
676
657
  * @param request - The request {@link ListDefaultSecurityGroupRulesRequest}
677
658
  * @returns A Promise of ListSecurityGroupRulesResponse
@@ -719,10 +700,7 @@ class API extends API$1 {
719
700
  unmarshalCreateSecurityGroupRuleResponse
720
701
  );
721
702
  /**
722
- * Update all the rules of a security group. Replaces the existing rules of
723
- * the security group with the rules provided. This endpoint supports the
724
- * update of existing rules, creation of new rules and deletion of existing
725
- * rules when they are not passed in the request.
703
+ * Update all the rules of a security group. Replaces the existing rules of the security group with the rules provided. This endpoint supports the update of existing rules, creation of new rules and deletion of existing rules when they are not passed in the request.
726
704
  *
727
705
  * @param request - The request {@link SetSecurityGroupRulesRequest}
728
706
  * @returns A Promise of SetSecurityGroupRulesResponse
@@ -772,8 +750,7 @@ class API extends API$1 {
772
750
  unmarshalSetSecurityGroupRuleResponse
773
751
  );
774
752
  /**
775
- * Update security group rule. Update the properties of a rule from a
776
- * specified security group.
753
+ * Update security group rule. Update the properties of a rule from a specified security group.
777
754
  *
778
755
  * @param request - The request {@link UpdateSecurityGroupRuleRequest}
779
756
  * @returns A Promise of UpdateSecurityGroupRuleResponse
@@ -808,8 +785,7 @@ class API extends API$1 {
808
785
  unmarshalListPlacementGroupsResponse
809
786
  );
810
787
  /**
811
- * List placement groups. List all placement groups in a specified
812
- * Availability Zone.
788
+ * List placement groups. List all placement groups in a specified Availability Zone.
813
789
  *
814
790
  * @param request - The request {@link ListPlacementGroupsRequest}
815
791
  * @returns A Promise of ListPlacementGroupsResponse
@@ -820,8 +796,7 @@ class API extends API$1 {
820
796
  request
821
797
  );
822
798
  /**
823
- * Create a placement group. Create a new placement group in a specified
824
- * Availability Zone.
799
+ * Create a placement group. Create a new placement group in a specified Availability Zone.
825
800
  *
826
801
  * @param request - The request {@link CreatePlacementGroupRequest}
827
802
  * @returns A Promise of CreatePlacementGroupResponse
@@ -868,8 +843,7 @@ class API extends API$1 {
868
843
  unmarshalSetPlacementGroupResponse
869
844
  );
870
845
  /**
871
- * Update a placement group. Update one or more parameter of the specified
872
- * placement group.
846
+ * Update a placement group. Update one or more parameter of the specified placement group.
873
847
  *
874
848
  * @param request - The request {@link UpdatePlacementGroupRequest}
875
849
  * @returns A Promise of UpdatePlacementGroupResponse
@@ -895,8 +869,7 @@ class API extends API$1 {
895
869
  path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${validatePathParam("placementGroupId", request.placementGroupId)}`
896
870
  });
897
871
  /**
898
- * Get placement group servers. Get all Instances belonging to the specified
899
- * placement group.
872
+ * Get placement group servers. Get all Instances belonging to the specified placement group.
900
873
  *
901
874
  * @param request - The request {@link GetPlacementGroupServersRequest}
902
875
  * @returns A Promise of GetPlacementGroupServersResponse
@@ -909,8 +882,7 @@ class API extends API$1 {
909
882
  unmarshalGetPlacementGroupServersResponse
910
883
  );
911
884
  /**
912
- * Set placement group servers. Set all Instances belonging to the specified
913
- * placement group.
885
+ * Set placement group servers. Set all Instances belonging to the specified placement group.
914
886
  *
915
887
  * @param request - The request {@link SetPlacementGroupServersRequest}
916
888
  * @returns A Promise of SetPlacementGroupServersResponse
@@ -927,8 +899,7 @@ class API extends API$1 {
927
899
  unmarshalSetPlacementGroupServersResponse
928
900
  );
929
901
  /**
930
- * Update placement group servers. Update all Instances belonging to the
931
- * specified placement group.
902
+ * Update placement group servers. Update all Instances belonging to the specified placement group.
932
903
  *
933
904
  * @param request - The request {@link UpdatePlacementGroupServersRequest}
934
905
  * @returns A Promise of UpdatePlacementGroupServersResponse
@@ -974,8 +945,7 @@ class API extends API$1 {
974
945
  */
975
946
  listIps = (request = {}) => enrichForPagination("ips", this.pageOfListIps, request);
976
947
  /**
977
- * Reserve a flexible IP. Reserve a flexible IP and attach it to the specified
978
- * Instance.
948
+ * Reserve a flexible IP. Reserve a flexible IP and attach it to the specified Instance.
979
949
  *
980
950
  * @param request - The request {@link CreateIpRequest}
981
951
  * @returns A Promise of CreateIpResponse
@@ -1005,8 +975,7 @@ class API extends API$1 {
1005
975
  unmarshalGetIpResponse
1006
976
  );
1007
977
  /**
1008
- * Update a flexible IP. Update a flexible IP in the specified zone with the
1009
- * specified ID.
978
+ * Update a flexible IP. Update a flexible IP in the specified zone with the specified ID.
1010
979
  *
1011
980
  * @param request - The request {@link UpdateIpRequest}
1012
981
  * @returns A Promise of UpdateIpResponse
@@ -1084,8 +1053,7 @@ class API extends API$1 {
1084
1053
  unmarshalGetPrivateNICResponse
1085
1054
  );
1086
1055
  /**
1087
- * Update a private NIC. Update one or more parameter(s) of a specified
1088
- * private NIC.
1056
+ * Update a private NIC. Update one or more parameter(s) of a specified private NIC.
1089
1057
  *
1090
1058
  * @param request - The request {@link UpdatePrivateNICRequest}
1091
1059
  * @returns A Promise of PrivateNIC
@@ -1122,27 +1090,15 @@ class API extends API$1 {
1122
1090
  unmarshalGetDashboardResponse
1123
1091
  );
1124
1092
  /**
1125
- * Get a volume or snapshot's migration plan. Given a volume or snapshot,
1126
- * returns the migration plan but does not perform the actual migration. To
1127
- * perform the migration, you have to call the [Migrate a volume and/or
1128
- * snapshots to
1129
- * SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage)
1130
- * endpoint afterward. The endpoint returns the resources that should be
1131
- * migrated together:
1132
- *
1133
- * - The volume and any snapshots created from the volume, if the call was made
1134
- * to plan a volume migration.
1135
- * - The base volume of the snapshot (if the volume is not deleted) and its
1136
- * related snapshots, if the call was made to plan a snapshot migration. The
1137
- * endpoint also returns the validation_key, which must be provided to the
1138
- * [Migrate a volume and/or snapshots to
1139
- * SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage)
1140
- * endpoint to confirm that all resources listed in the plan should be
1141
- * migrated.
1142
- *
1143
- * @param request - The request {@link PlanBlockMigrationRequest}
1144
- * @returns A Promise of MigrationPlan
1145
- */
1093
+ * Get a volume or snapshot's migration plan. Given a volume or snapshot, returns the migration plan but does not perform the actual migration. To perform the migration, you have to call the [Migrate a volume and/or snapshots to SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage) endpoint afterward.
1094
+ The endpoint returns the resources that should be migrated together:
1095
+ - the volume and any snapshots created from the volume, if the call was made to plan a volume migration.
1096
+ - the base volume of the snapshot (if the volume is not deleted) and its related snapshots, if the call was made to plan a snapshot migration.
1097
+ The endpoint also returns the validation_key, which must be provided to the [Migrate a volume and/or snapshots to SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage) endpoint to confirm that all resources listed in the plan should be migrated.
1098
+ *
1099
+ * @param request - The request {@link PlanBlockMigrationRequest}
1100
+ * @returns A Promise of MigrationPlan
1101
+ */
1146
1102
  planBlockMigration = (request = {}) => this.client.fetch(
1147
1103
  {
1148
1104
  body: JSON.stringify(
@@ -1155,12 +1111,7 @@ class API extends API$1 {
1155
1111
  unmarshalMigrationPlan
1156
1112
  );
1157
1113
  /**
1158
- * Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
1159
- * used, the call to this endpoint must be preceded by a call to the [Get a
1160
- * volume or snapshot's migration
1161
- * plan](#path-volumes-get-a-volume-or-snapshots-migration-plan) endpoint. To
1162
- * migrate all resources mentioned in the migration plan, the validation_key
1163
- * returned in the plan must be provided.
1114
+ * Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be used, the call to this endpoint must be preceded by a call to the [Get a volume or snapshot's migration plan](#path-volumes-get-a-volume-or-snapshots-migration-plan) endpoint. To migrate all resources mentioned in the migration plan, the validation_key returned in the plan must be provided.
1164
1115
  *
1165
1116
  * @param request - The request {@link ApplyBlockMigrationRequest}
1166
1117
  */
@@ -234,6 +234,7 @@ const unmarshalServer = (data) => {
234
234
  creationDate: marshalling.unmarshalDate(data.creation_date),
235
235
  dynamicIpRequired: data.dynamic_ip_required,
236
236
  enableIpv6: data.enable_ipv6,
237
+ endOfService: data.end_of_service,
237
238
  hostname: data.hostname,
238
239
  id: data.id,
239
240
  image: data.image ? unmarshalImage(data.image) : void 0,
@@ -807,7 +808,8 @@ const unmarshalServerTypeCapabilities = (data) => {
807
808
  }
808
809
  return {
809
810
  blockStorage: data.block_storage,
810
- bootTypes: data.boot_types
811
+ bootTypes: data.boot_types,
812
+ maxFileSystems: data.max_file_systems
811
813
  };
812
814
  };
813
815
  const unmarshalServerTypeGPUInfo = (data) => {
@@ -1303,6 +1305,7 @@ const marshalCreateServerRequest = (request, defaults) => ({
1303
1305
  image: request.image,
1304
1306
  name: request.name || randomName("srv"),
1305
1307
  placement_group: request.placementGroup,
1308
+ protected: request.protected,
1306
1309
  public_ip: request.publicIp,
1307
1310
  public_ips: request.publicIps,
1308
1311
  routed_ip_enabled: request.routedIpEnabled,
@@ -232,6 +232,7 @@ const unmarshalServer = (data) => {
232
232
  creationDate: unmarshalDate(data.creation_date),
233
233
  dynamicIpRequired: data.dynamic_ip_required,
234
234
  enableIpv6: data.enable_ipv6,
235
+ endOfService: data.end_of_service,
235
236
  hostname: data.hostname,
236
237
  id: data.id,
237
238
  image: data.image ? unmarshalImage(data.image) : void 0,
@@ -805,7 +806,8 @@ const unmarshalServerTypeCapabilities = (data) => {
805
806
  }
806
807
  return {
807
808
  blockStorage: data.block_storage,
808
- bootTypes: data.boot_types
809
+ bootTypes: data.boot_types,
810
+ maxFileSystems: data.max_file_systems
809
811
  };
810
812
  };
811
813
  const unmarshalServerTypeGPUInfo = (data) => {
@@ -1301,6 +1303,7 @@ const marshalCreateServerRequest = (request, defaults) => ({
1301
1303
  image: request.image,
1302
1304
  name: request.name || randomName("srv"),
1303
1305
  placement_group: request.placementGroup,
1306
+ protected: request.protected,
1304
1307
  public_ip: request.publicIp,
1305
1308
  public_ips: request.publicIps,
1306
1309
  routed_ip_enabled: request.routedIpEnabled,