@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
|
@@ -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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
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
|
*/
|