@scaleway/sdk 2.72.0 → 2.73.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.
- package/dist/api/account/v3/api.gen.cjs +13 -32
- package/dist/api/account/v3/api.gen.d.ts +17 -36
- package/dist/api/account/v3/api.gen.js +13 -32
- package/dist/api/account/v3/types.gen.d.ts +187 -85
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
- package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
- package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
- package/dist/api/baremetal/v1/api.gen.cjs +28 -61
- package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
- package/dist/api/baremetal/v1/api.gen.js +28 -61
- package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
- package/dist/api/baremetal/v3/api.gen.cjs +7 -14
- package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
- package/dist/api/baremetal/v3/api.gen.js +7 -14
- package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
- package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
- package/dist/api/billing/v2beta1/api.gen.js +11 -20
- package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
- package/dist/api/block/v1/api.gen.cjs +37 -55
- package/dist/api/block/v1/api.gen.d.ts +19 -37
- package/dist/api/block/v1/api.gen.js +37 -55
- package/dist/api/block/v1/types.gen.d.ts +306 -125
- package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
- package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
- package/dist/api/block/v1alpha1/api.gen.js +45 -64
- package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
- package/dist/api/cockpit/v1/api.gen.cjs +100 -156
- package/dist/api/cockpit/v1/api.gen.d.ts +53 -112
- package/dist/api/cockpit/v1/api.gen.js +100 -156
- package/dist/api/cockpit/v1/types.gen.d.ts +567 -246
- package/dist/api/container/v1beta1/api.gen.cjs +7 -14
- package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
- package/dist/api/container/v1beta1/api.gen.js +7 -14
- package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
- package/dist/api/dedibox/v1/api.gen.cjs +45 -69
- package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
- package/dist/api/dedibox/v1/api.gen.js +45 -69
- package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
- package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
- package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
- package/dist/api/domain/v2beta1/api.gen.js +119 -178
- package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
- package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
- package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
- package/dist/api/inference/v1/api.gen.cjs +8 -11
- package/dist/api/inference/v1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1/api.gen.js +8 -11
- package/dist/api/inference/v1/types.gen.d.ts +330 -150
- package/dist/api/inference/v1beta1/api.gen.cjs +8 -11
- package/dist/api/inference/v1beta1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1beta1/api.gen.js +8 -11
- package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
- package/dist/api/instance/v1/api.gen.cjs +64 -113
- package/dist/api/instance/v1/api.gen.d.ts +54 -103
- package/dist/api/instance/v1/api.gen.js +64 -113
- package/dist/api/instance/v1/types.gen.d.ts +1351 -598
- package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
- package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
- package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
- package/dist/api/interlink/v1beta1/api.gen.js +21 -67
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
- package/dist/api/iot/v1/api.gen.cjs +37 -70
- package/dist/api/iot/v1/api.gen.d.ts +34 -67
- package/dist/api/iot/v1/api.gen.js +37 -70
- package/dist/api/iot/v1/types.gen.d.ts +566 -321
- package/dist/api/ipam/v1/api.gen.cjs +6 -26
- package/dist/api/ipam/v1/api.gen.d.ts +8 -29
- package/dist/api/ipam/v1/api.gen.js +6 -26
- package/dist/api/ipam/v1/types.gen.d.ts +146 -105
- package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
- package/dist/api/k8s/v1/api.gen.cjs +33 -78
- package/dist/api/k8s/v1/api.gen.d.ts +27 -72
- package/dist/api/k8s/v1/api.gen.js +33 -78
- package/dist/api/k8s/v1/types.gen.d.ts +743 -506
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
- package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
- package/dist/api/marketplace/v2/api.gen.cjs +8 -21
- package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
- package/dist/api/marketplace/v2/api.gen.js +8 -21
- package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
- package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
- package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
- package/dist/api/mnq/v1beta1/api.gen.js +24 -76
- package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
- package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
- package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
- package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
- package/dist/api/rdb/v1/api.gen.cjs +62 -202
- package/dist/api/rdb/v1/api.gen.d.ts +60 -201
- package/dist/api/rdb/v1/api.gen.js +62 -202
- package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
- package/dist/api/redis/v1/api.gen.cjs +23 -83
- package/dist/api/redis/v1/api.gen.d.ts +25 -85
- package/dist/api/redis/v1/api.gen.js +23 -83
- package/dist/api/redis/v1/types.gen.d.ts +447 -170
- package/dist/api/registry/v1/api.gen.cjs +12 -40
- package/dist/api/registry/v1/api.gen.d.ts +14 -42
- package/dist/api/registry/v1/api.gen.js +12 -40
- package/dist/api/registry/v1/types.gen.d.ts +200 -116
- package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
- package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
- package/dist/api/secret/v1beta1/api.gen.js +19 -47
- package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
- package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
- package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
- package/dist/api/tem/v1alpha1/api.gen.js +22 -58
- package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
- package/dist/api/test/v1/api.gen.cjs +8 -11
- package/dist/api/test/v1/api.gen.d.ts +6 -9
- package/dist/api/test/v1/api.gen.js +8 -11
- package/dist/api/test/v1/types.gen.d.ts +21 -10
- package/dist/client/dist/package.json.cjs +1 -1
- package/dist/client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/package.json +1 -2
- package/package.json +2 -2
- package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
|
@@ -40,8 +40,7 @@ class API extends api.API {
|
|
|
40
40
|
marshalling_gen.unmarshalGetServerTypesAvailabilityResponse
|
|
41
41
|
);
|
|
42
42
|
/**
|
|
43
|
-
* List Instance types. List available Instance types and their technical
|
|
44
|
-
* details.
|
|
43
|
+
* List Instance types. List available Instance types and their technical details.
|
|
45
44
|
*
|
|
46
45
|
* @param request - The request {@link ListServersTypesRequest}
|
|
47
46
|
* @returns A Promise of ListServersTypesResponse
|
|
@@ -109,8 +108,7 @@ class API extends api.API {
|
|
|
109
108
|
marshalling_gen.unmarshalListServersResponse
|
|
110
109
|
);
|
|
111
110
|
/**
|
|
112
|
-
* List all Instances. List all Instances in a specified Availability Zone,
|
|
113
|
-
* e.g. `fr-par-1`.
|
|
111
|
+
* List all Instances. List all Instances in a specified Availability Zone, e.g. `fr-par-1`.
|
|
114
112
|
*
|
|
115
113
|
* @param request - The request {@link ListServersRequest}
|
|
116
114
|
* @returns A Promise of ListServersResponse
|
|
@@ -172,8 +170,7 @@ class API extends api.API {
|
|
|
172
170
|
marshalling_gen.unmarshalUpdateServerResponse
|
|
173
171
|
);
|
|
174
172
|
/**
|
|
175
|
-
* List Instance actions. List all actions (e.g. power on, power off, reboot)
|
|
176
|
-
* that can currently be performed on an Instance.
|
|
173
|
+
* List Instance actions. List all actions (e.g. power on, power off, reboot) that can currently be performed on an Instance.
|
|
177
174
|
*
|
|
178
175
|
* @param request - The request {@link ListServerActionsRequest}
|
|
179
176
|
* @returns A Promise of ListServerActionsResponse
|
|
@@ -186,30 +183,26 @@ class API extends api.API {
|
|
|
186
183
|
marshalling_gen.unmarshalListServerActionsResponse
|
|
187
184
|
);
|
|
188
185
|
/**
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
*
|
|
210
|
-
* @param request - The request {@link ServerActionRequest}
|
|
211
|
-
* @returns A Promise of ServerActionResponse
|
|
212
|
-
*/
|
|
186
|
+
* Perform action. Perform an action on an Instance.
|
|
187
|
+
Available actions are:
|
|
188
|
+
* `poweron`: Start a stopped Instance.
|
|
189
|
+
* `poweroff`: Fully stop the Instance and release the hypervisor slot.
|
|
190
|
+
* `stop_in_place`: Stop the Instance, but keep the slot on the hypervisor.
|
|
191
|
+
* `reboot`: Stop the instance and restart it.
|
|
192
|
+
* `backup`: Create an image with all the volumes of an Instance.
|
|
193
|
+
* `terminate`: Delete the Instance along with its attached volumes, except for SBS volumes.
|
|
194
|
+
* `enable_routed_ip`: Migrate the Instance to the new network stack.
|
|
195
|
+
|
|
196
|
+
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.
|
|
197
|
+
If you want to preserve your volumes, you should detach them before the Instance deletion or `terminate` action.
|
|
198
|
+
|
|
199
|
+
The `backup` action can be done with:
|
|
200
|
+
* No `volumes` key in the body: an image is created with snapshots of all the server volumes, except for the `scratch` volumes types.
|
|
201
|
+
* `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.
|
|
202
|
+
*
|
|
203
|
+
* @param request - The request {@link ServerActionRequest}
|
|
204
|
+
* @returns A Promise of ServerActionResponse
|
|
205
|
+
*/
|
|
213
206
|
serverAction = (request) => this.client.fetch(
|
|
214
207
|
{
|
|
215
208
|
body: JSON.stringify(
|
|
@@ -244,16 +237,16 @@ class API extends api.API {
|
|
|
244
237
|
path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/user_data/${marshalling.validatePathParam("key", request.key)}`
|
|
245
238
|
});
|
|
246
239
|
/**
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
240
|
+
* 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:
|
|
241
|
+
* the CPU architecture
|
|
242
|
+
* the OS type
|
|
243
|
+
* the required l_ssd storage size
|
|
244
|
+
* the required scratch storage size
|
|
245
|
+
If the specified Instance offer is flagged as end of service, the best compatible offer is the first returned.
|
|
246
|
+
*
|
|
247
|
+
* @param request - The request {@link GetServerCompatibleTypesRequest}
|
|
248
|
+
* @returns A Promise of ServerCompatibleTypes
|
|
249
|
+
*/
|
|
257
250
|
getServerCompatibleTypes = (request) => this.client.fetch(
|
|
258
251
|
{
|
|
259
252
|
method: "GET",
|
|
@@ -321,8 +314,7 @@ class API extends api.API {
|
|
|
321
314
|
marshalling_gen.unmarshalGetImageResponse
|
|
322
315
|
);
|
|
323
316
|
/**
|
|
324
|
-
* Create an Instance image. Create an Instance image from the specified
|
|
325
|
-
* snapshot ID.
|
|
317
|
+
* Create an Instance image. Create an Instance image from the specified snapshot ID.
|
|
326
318
|
*
|
|
327
319
|
* @param request - The request {@link CreateImageRequest}
|
|
328
320
|
* @returns A Promise of CreateImageResponse
|
|
@@ -392,17 +384,14 @@ class API extends api.API {
|
|
|
392
384
|
marshalling_gen.unmarshalListSnapshotsResponse
|
|
393
385
|
);
|
|
394
386
|
/**
|
|
395
|
-
* List snapshots. List all snapshots of an Organization in a specified
|
|
396
|
-
* Availability Zone.
|
|
387
|
+
* List snapshots. List all snapshots of an Organization in a specified Availability Zone.
|
|
397
388
|
*
|
|
398
389
|
* @param request - The request {@link ListSnapshotsRequest}
|
|
399
390
|
* @returns A Promise of ListSnapshotsResponse
|
|
400
391
|
*/
|
|
401
392
|
listSnapshots = (request = {}) => resourcePaginator.enrichForPagination("snapshots", this.pageOfListSnapshots, request);
|
|
402
393
|
/**
|
|
403
|
-
* Create a snapshot from a specified volume or from a QCOW2 file. Create a
|
|
404
|
-
* snapshot from a specified volume or from a QCOW2 file in a specified
|
|
405
|
-
* Availability Zone.
|
|
394
|
+
* 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.
|
|
406
395
|
*
|
|
407
396
|
* @param request - The request {@link CreateSnapshotRequest}
|
|
408
397
|
* @returns A Promise of CreateSnapshotResponse
|
|
@@ -469,8 +458,7 @@ class API extends api.API {
|
|
|
469
458
|
path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${marshalling.validatePathParam("snapshotId", request.snapshotId)}`
|
|
470
459
|
});
|
|
471
460
|
/**
|
|
472
|
-
* Export a snapshot. Export a snapshot to a specified Object Storage bucket
|
|
473
|
-
* in the same region.
|
|
461
|
+
* Export a snapshot. Export a snapshot to a specified Object Storage bucket in the same region.
|
|
474
462
|
*
|
|
475
463
|
* @param request - The request {@link ExportSnapshotRequest}
|
|
476
464
|
* @returns A Promise of ExportSnapshotResponse
|
|
@@ -506,16 +494,14 @@ class API extends api.API {
|
|
|
506
494
|
marshalling_gen.unmarshalListVolumesResponse
|
|
507
495
|
);
|
|
508
496
|
/**
|
|
509
|
-
* List volumes. List volumes in the specified Availability Zone. You can
|
|
510
|
-
* filter the output by volume type.
|
|
497
|
+
* List volumes. List volumes in the specified Availability Zone. You can filter the output by volume type.
|
|
511
498
|
*
|
|
512
499
|
* @param request - The request {@link ListVolumesRequest}
|
|
513
500
|
* @returns A Promise of ListVolumesResponse
|
|
514
501
|
*/
|
|
515
502
|
listVolumes = (request = {}) => resourcePaginator.enrichForPagination("volumes", this.pageOfListVolumes, request);
|
|
516
503
|
/**
|
|
517
|
-
* Create a volume. Create a volume of a specified type in an Availability
|
|
518
|
-
* Zone.
|
|
504
|
+
* Create a volume. Create a volume of a specified type in an Availability Zone.
|
|
519
505
|
*
|
|
520
506
|
* @param request - The request {@link CreateVolumeRequest}
|
|
521
507
|
* @returns A Promise of CreateVolumeResponse
|
|
@@ -545,9 +531,7 @@ class API extends api.API {
|
|
|
545
531
|
marshalling_gen.unmarshalGetVolumeResponse
|
|
546
532
|
);
|
|
547
533
|
/**
|
|
548
|
-
* Update a volume. Replace the name and/or size properties of a volume
|
|
549
|
-
* specified by its ID, with the specified value(s). Any volume name can be
|
|
550
|
-
* changed, however only `b_ssd` volumes can currently be increased in size.
|
|
534
|
+
* 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.
|
|
551
535
|
*
|
|
552
536
|
* @param request - The request {@link UpdateVolumeRequest}
|
|
553
537
|
* @returns A Promise of UpdateVolumeResponse
|
|
@@ -603,8 +587,7 @@ class API extends api.API {
|
|
|
603
587
|
request
|
|
604
588
|
);
|
|
605
589
|
/**
|
|
606
|
-
* Create a security group. Create a security group with a specified name and
|
|
607
|
-
* description.
|
|
590
|
+
* Create a security group. Create a security group with a specified name and description.
|
|
608
591
|
*
|
|
609
592
|
* @param request - The request {@link CreateSecurityGroupRequest}
|
|
610
593
|
* @returns A Promise of CreateSecurityGroupResponse
|
|
@@ -621,8 +604,7 @@ class API extends api.API {
|
|
|
621
604
|
marshalling_gen.unmarshalCreateSecurityGroupResponse
|
|
622
605
|
);
|
|
623
606
|
/**
|
|
624
|
-
* Get a security group. Get the details of a security group with the
|
|
625
|
-
* specified ID.
|
|
607
|
+
* Get a security group. Get the details of a security group with the specified ID.
|
|
626
608
|
*
|
|
627
609
|
* @param request - The request {@link GetSecurityGroupRequest}
|
|
628
610
|
* @returns A Promise of GetSecurityGroupResponse
|
|
@@ -672,8 +654,7 @@ class API extends api.API {
|
|
|
672
654
|
marshalling_gen.unmarshalUpdateSecurityGroupResponse
|
|
673
655
|
);
|
|
674
656
|
/**
|
|
675
|
-
* Get default rules. Lists the default rules applied to all the security
|
|
676
|
-
* groups.
|
|
657
|
+
* Get default rules. Lists the default rules applied to all the security groups.
|
|
677
658
|
*
|
|
678
659
|
* @param request - The request {@link ListDefaultSecurityGroupRulesRequest}
|
|
679
660
|
* @returns A Promise of ListSecurityGroupRulesResponse
|
|
@@ -721,10 +702,7 @@ class API extends api.API {
|
|
|
721
702
|
marshalling_gen.unmarshalCreateSecurityGroupRuleResponse
|
|
722
703
|
);
|
|
723
704
|
/**
|
|
724
|
-
* Update all the rules of a security group. Replaces the existing rules of
|
|
725
|
-
* the security group with the rules provided. This endpoint supports the
|
|
726
|
-
* update of existing rules, creation of new rules and deletion of existing
|
|
727
|
-
* rules when they are not passed in the request.
|
|
705
|
+
* 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.
|
|
728
706
|
*
|
|
729
707
|
* @param request - The request {@link SetSecurityGroupRulesRequest}
|
|
730
708
|
* @returns A Promise of SetSecurityGroupRulesResponse
|
|
@@ -774,8 +752,7 @@ class API extends api.API {
|
|
|
774
752
|
marshalling_gen.unmarshalSetSecurityGroupRuleResponse
|
|
775
753
|
);
|
|
776
754
|
/**
|
|
777
|
-
* Update security group rule. Update the properties of a rule from a
|
|
778
|
-
* specified security group.
|
|
755
|
+
* Update security group rule. Update the properties of a rule from a specified security group.
|
|
779
756
|
*
|
|
780
757
|
* @param request - The request {@link UpdateSecurityGroupRuleRequest}
|
|
781
758
|
* @returns A Promise of UpdateSecurityGroupRuleResponse
|
|
@@ -810,8 +787,7 @@ class API extends api.API {
|
|
|
810
787
|
marshalling_gen.unmarshalListPlacementGroupsResponse
|
|
811
788
|
);
|
|
812
789
|
/**
|
|
813
|
-
* List placement groups. List all placement groups in a specified
|
|
814
|
-
* Availability Zone.
|
|
790
|
+
* List placement groups. List all placement groups in a specified Availability Zone.
|
|
815
791
|
*
|
|
816
792
|
* @param request - The request {@link ListPlacementGroupsRequest}
|
|
817
793
|
* @returns A Promise of ListPlacementGroupsResponse
|
|
@@ -822,8 +798,7 @@ class API extends api.API {
|
|
|
822
798
|
request
|
|
823
799
|
);
|
|
824
800
|
/**
|
|
825
|
-
* Create a placement group. Create a new placement group in a specified
|
|
826
|
-
* Availability Zone.
|
|
801
|
+
* Create a placement group. Create a new placement group in a specified Availability Zone.
|
|
827
802
|
*
|
|
828
803
|
* @param request - The request {@link CreatePlacementGroupRequest}
|
|
829
804
|
* @returns A Promise of CreatePlacementGroupResponse
|
|
@@ -870,8 +845,7 @@ class API extends api.API {
|
|
|
870
845
|
marshalling_gen.unmarshalSetPlacementGroupResponse
|
|
871
846
|
);
|
|
872
847
|
/**
|
|
873
|
-
* Update a placement group. Update one or more parameter of the specified
|
|
874
|
-
* placement group.
|
|
848
|
+
* Update a placement group. Update one or more parameter of the specified placement group.
|
|
875
849
|
*
|
|
876
850
|
* @param request - The request {@link UpdatePlacementGroupRequest}
|
|
877
851
|
* @returns A Promise of UpdatePlacementGroupResponse
|
|
@@ -897,8 +871,7 @@ class API extends api.API {
|
|
|
897
871
|
path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/placement_groups/${marshalling.validatePathParam("placementGroupId", request.placementGroupId)}`
|
|
898
872
|
});
|
|
899
873
|
/**
|
|
900
|
-
* Get placement group servers. Get all Instances belonging to the specified
|
|
901
|
-
* placement group.
|
|
874
|
+
* Get placement group servers. Get all Instances belonging to the specified placement group.
|
|
902
875
|
*
|
|
903
876
|
* @param request - The request {@link GetPlacementGroupServersRequest}
|
|
904
877
|
* @returns A Promise of GetPlacementGroupServersResponse
|
|
@@ -911,8 +884,7 @@ class API extends api.API {
|
|
|
911
884
|
marshalling_gen.unmarshalGetPlacementGroupServersResponse
|
|
912
885
|
);
|
|
913
886
|
/**
|
|
914
|
-
* Set placement group servers. Set all Instances belonging to the specified
|
|
915
|
-
* placement group.
|
|
887
|
+
* Set placement group servers. Set all Instances belonging to the specified placement group.
|
|
916
888
|
*
|
|
917
889
|
* @param request - The request {@link SetPlacementGroupServersRequest}
|
|
918
890
|
* @returns A Promise of SetPlacementGroupServersResponse
|
|
@@ -929,8 +901,7 @@ class API extends api.API {
|
|
|
929
901
|
marshalling_gen.unmarshalSetPlacementGroupServersResponse
|
|
930
902
|
);
|
|
931
903
|
/**
|
|
932
|
-
* Update placement group servers. Update all Instances belonging to the
|
|
933
|
-
* specified placement group.
|
|
904
|
+
* Update placement group servers. Update all Instances belonging to the specified placement group.
|
|
934
905
|
*
|
|
935
906
|
* @param request - The request {@link UpdatePlacementGroupServersRequest}
|
|
936
907
|
* @returns A Promise of UpdatePlacementGroupServersResponse
|
|
@@ -976,8 +947,7 @@ class API extends api.API {
|
|
|
976
947
|
*/
|
|
977
948
|
listIps = (request = {}) => resourcePaginator.enrichForPagination("ips", this.pageOfListIps, request);
|
|
978
949
|
/**
|
|
979
|
-
* Reserve a flexible IP. Reserve a flexible IP and attach it to the specified
|
|
980
|
-
* Instance.
|
|
950
|
+
* Reserve a flexible IP. Reserve a flexible IP and attach it to the specified Instance.
|
|
981
951
|
*
|
|
982
952
|
* @param request - The request {@link CreateIpRequest}
|
|
983
953
|
* @returns A Promise of CreateIpResponse
|
|
@@ -1007,8 +977,7 @@ class API extends api.API {
|
|
|
1007
977
|
marshalling_gen.unmarshalGetIpResponse
|
|
1008
978
|
);
|
|
1009
979
|
/**
|
|
1010
|
-
* Update a flexible IP. Update a flexible IP in the specified zone with the
|
|
1011
|
-
* specified ID.
|
|
980
|
+
* Update a flexible IP. Update a flexible IP in the specified zone with the specified ID.
|
|
1012
981
|
*
|
|
1013
982
|
* @param request - The request {@link UpdateIpRequest}
|
|
1014
983
|
* @returns A Promise of UpdateIpResponse
|
|
@@ -1086,8 +1055,7 @@ class API extends api.API {
|
|
|
1086
1055
|
marshalling_gen.unmarshalGetPrivateNICResponse
|
|
1087
1056
|
);
|
|
1088
1057
|
/**
|
|
1089
|
-
* Update a private NIC. Update one or more parameter(s) of a specified
|
|
1090
|
-
* private NIC.
|
|
1058
|
+
* Update a private NIC. Update one or more parameter(s) of a specified private NIC.
|
|
1091
1059
|
*
|
|
1092
1060
|
* @param request - The request {@link UpdatePrivateNICRequest}
|
|
1093
1061
|
* @returns A Promise of PrivateNIC
|
|
@@ -1124,27 +1092,15 @@ class API extends api.API {
|
|
|
1124
1092
|
marshalling_gen.unmarshalGetDashboardResponse
|
|
1125
1093
|
);
|
|
1126
1094
|
/**
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
* to plan a volume migration.
|
|
1137
|
-
* - The base volume of the snapshot (if the volume is not deleted) and its
|
|
1138
|
-
* related snapshots, if the call was made to plan a snapshot migration. The
|
|
1139
|
-
* endpoint also returns the validation_key, which must be provided to the
|
|
1140
|
-
* [Migrate a volume and/or snapshots to
|
|
1141
|
-
* SBS](#path-volumes-migrate-a-volume-andor-snapshots-to-sbs-scaleway-block-storage)
|
|
1142
|
-
* endpoint to confirm that all resources listed in the plan should be
|
|
1143
|
-
* migrated.
|
|
1144
|
-
*
|
|
1145
|
-
* @param request - The request {@link PlanBlockMigrationRequest}
|
|
1146
|
-
* @returns A Promise of MigrationPlan
|
|
1147
|
-
*/
|
|
1095
|
+
* 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.
|
|
1096
|
+
The endpoint returns the resources that should be migrated together:
|
|
1097
|
+
- the volume and any snapshots created from the volume, if the call was made to plan a volume migration.
|
|
1098
|
+
- 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.
|
|
1099
|
+
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.
|
|
1100
|
+
*
|
|
1101
|
+
* @param request - The request {@link PlanBlockMigrationRequest}
|
|
1102
|
+
* @returns A Promise of MigrationPlan
|
|
1103
|
+
*/
|
|
1148
1104
|
planBlockMigration = (request = {}) => this.client.fetch(
|
|
1149
1105
|
{
|
|
1150
1106
|
body: JSON.stringify(
|
|
@@ -1157,12 +1113,7 @@ class API extends api.API {
|
|
|
1157
1113
|
marshalling_gen.unmarshalMigrationPlan
|
|
1158
1114
|
);
|
|
1159
1115
|
/**
|
|
1160
|
-
* Migrate a volume and/or snapshots to SBS (Scaleway Block Storage). To be
|
|
1161
|
-
* used, the call to this endpoint must be preceded by a call to the [Get a
|
|
1162
|
-
* volume or snapshot's migration
|
|
1163
|
-
* plan](#path-volumes-get-a-volume-or-snapshots-migration-plan) endpoint. To
|
|
1164
|
-
* migrate all resources mentioned in the migration plan, the validation_key
|
|
1165
|
-
* returned in the plan must be provided.
|
|
1116
|
+
* 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.
|
|
1166
1117
|
*
|
|
1167
1118
|
* @param request - The request {@link ApplyBlockMigrationRequest}
|
|
1168
1119
|
*/
|