@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
|
@@ -3,16 +3,15 @@ import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client';
|
|
|
3
3
|
import type { CreateSnapshotRequest, CreateVolumeRequest, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Block Storage API.
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
|
|
7
|
+
This API allows you to manage your Block Storage volumes.
|
|
8
8
|
*/
|
|
9
9
|
export declare class API extends ParentAPI {
|
|
10
10
|
/** Lists the available zones of the API. */
|
|
11
11
|
static readonly LOCALITIES: ScwZone[];
|
|
12
12
|
protected pageOfListVolumeTypes: (request?: Readonly<ListVolumeTypesRequest>) => Promise<ListVolumeTypesResponse>;
|
|
13
13
|
/**
|
|
14
|
-
* List volume types. List all available volume types in a specified zone. The
|
|
15
|
-
* volume types listed are ordered by name in ascending order.
|
|
14
|
+
* List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
|
|
16
15
|
*
|
|
17
16
|
* @param request - The request {@link ListVolumeTypesRequest}
|
|
18
17
|
* @returns A Promise of ListVolumeTypesResponse
|
|
@@ -23,9 +22,7 @@ export declare class API extends ParentAPI {
|
|
|
23
22
|
};
|
|
24
23
|
protected pageOfListVolumes: (request?: Readonly<ListVolumesRequest>) => Promise<ListVolumesResponse>;
|
|
25
24
|
/**
|
|
26
|
-
* List volumes. List all existing volumes in a specified zone. By default,
|
|
27
|
-
* the volumes listed are ordered by creation date in ascending order. This
|
|
28
|
-
* can be modified via the `order_by` field.
|
|
25
|
+
* List volumes. List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
|
|
29
26
|
*
|
|
30
27
|
* @param request - The request {@link ListVolumesRequest}
|
|
31
28
|
* @returns A Promise of ListVolumesResponse
|
|
@@ -35,20 +32,15 @@ export declare class API extends ParentAPI {
|
|
|
35
32
|
[Symbol.asyncIterator]: () => AsyncGenerator<Volume[], void, void>;
|
|
36
33
|
};
|
|
37
34
|
/**
|
|
38
|
-
* Create a volume. To create a new volume from scratch, you must specify
|
|
39
|
-
|
|
40
|
-
* specify `from_snapshot` and the `snapshot_id` in the request payload
|
|
41
|
-
* instead, size is optional and can be specified if you need to extend the
|
|
42
|
-
* original size. The volume will take on the same volume class and underlying
|
|
43
|
-
* IOPS limitations as the original snapshot.
|
|
35
|
+
* Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
|
|
36
|
+
To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
|
|
44
37
|
*
|
|
45
38
|
* @param request - The request {@link CreateVolumeRequest}
|
|
46
39
|
* @returns A Promise of Volume
|
|
47
40
|
*/
|
|
48
41
|
createVolume: (request?: Readonly<CreateVolumeRequest>) => Promise<Volume>;
|
|
49
42
|
/**
|
|
50
|
-
* Get a volume. Retrieve technical information about a specific volume.
|
|
51
|
-
* Details such as size, type, and status are returned in the response.
|
|
43
|
+
* Get a volume. Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
|
|
52
44
|
*
|
|
53
45
|
* @param request - The request {@link GetVolumeRequest}
|
|
54
46
|
* @returns A Promise of Volume
|
|
@@ -63,17 +55,14 @@ export declare class API extends ParentAPI {
|
|
|
63
55
|
*/
|
|
64
56
|
waitForVolume: (request: Readonly<GetVolumeRequest>, options?: Readonly<WaitForOptions<Volume>>) => Promise<Volume>;
|
|
65
57
|
/**
|
|
66
|
-
* Delete a detached volume. You must specify the `volume_id` of the volume
|
|
67
|
-
* you want to delete. The volume must not be in the `in_use` status.
|
|
58
|
+
* Delete a detached volume. You must specify the `volume_id` of the volume you want to delete. The volume must not be in the `in_use` status.
|
|
68
59
|
*
|
|
69
60
|
* @param request - The request {@link DeleteVolumeRequest}
|
|
70
61
|
*/
|
|
71
62
|
deleteVolume: (request: Readonly<DeleteVolumeRequest>) => Promise<void>;
|
|
72
63
|
/**
|
|
73
|
-
* Update a volume. Update the technical details of a volume, such as its
|
|
74
|
-
|
|
75
|
-
* Storage class). You can only resize a volume to a larger size. It is
|
|
76
|
-
* currently not possible to change your Block Storage Class.
|
|
64
|
+
* Update a volume. Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
|
|
65
|
+
You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
|
|
77
66
|
*
|
|
78
67
|
* @param request - The request {@link UpdateVolumeRequest}
|
|
79
68
|
* @returns A Promise of Volume
|
|
@@ -81,9 +70,7 @@ export declare class API extends ParentAPI {
|
|
|
81
70
|
updateVolume: (request: Readonly<UpdateVolumeRequest>) => Promise<Volume>;
|
|
82
71
|
protected pageOfListSnapshots: (request?: Readonly<ListSnapshotsRequest>) => Promise<ListSnapshotsResponse>;
|
|
83
72
|
/**
|
|
84
|
-
* List all snapshots. List all available snapshots in a specified zone. By
|
|
85
|
-
* default, the snapshots listed are ordered by creation date in ascending
|
|
86
|
-
* order. This can be modified via the `order_by` field.
|
|
73
|
+
* List all snapshots. List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
|
|
87
74
|
*
|
|
88
75
|
* @param request - The request {@link ListSnapshotsRequest}
|
|
89
76
|
* @returns A Promise of ListSnapshotsResponse
|
|
@@ -93,9 +80,7 @@ export declare class API extends ParentAPI {
|
|
|
93
80
|
[Symbol.asyncIterator]: () => AsyncGenerator<Snapshot[], void, void>;
|
|
94
81
|
};
|
|
95
82
|
/**
|
|
96
|
-
* Get a snapshot. Retrieve technical information about a specific snapshot.
|
|
97
|
-
* Details such as size, volume type, and status are returned in the
|
|
98
|
-
* response.
|
|
83
|
+
* Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
|
|
99
84
|
*
|
|
100
85
|
* @param request - The request {@link GetSnapshotRequest}
|
|
101
86
|
* @returns A Promise of Snapshot
|
|
@@ -110,34 +95,31 @@ export declare class API extends ParentAPI {
|
|
|
110
95
|
*/
|
|
111
96
|
waitForSnapshot: (request: Readonly<GetSnapshotRequest>, options?: Readonly<WaitForOptions<Snapshot>>) => Promise<Snapshot>;
|
|
112
97
|
/**
|
|
113
|
-
* Create a snapshot of a volume. To create a snapshot, the volume must be in
|
|
114
|
-
|
|
115
|
-
* state, you need to wait until the end of the current operation.
|
|
98
|
+
* Create a snapshot of a volume. To create a snapshot, the volume must be in the `in_use` or the `available` status.
|
|
99
|
+
If your volume is in a transient state, you need to wait until the end of the current operation.
|
|
116
100
|
*
|
|
117
101
|
* @param request - The request {@link CreateSnapshotRequest}
|
|
118
102
|
* @returns A Promise of Snapshot
|
|
119
103
|
*/
|
|
120
104
|
createSnapshot: (request: Readonly<CreateSnapshotRequest>) => Promise<Snapshot>;
|
|
121
105
|
/**
|
|
122
|
-
* Import a snapshot from a Scaleway Object Storage bucket. The bucket must
|
|
123
|
-
|
|
124
|
-
* Zone as long as it is in the same region as the bucket.
|
|
106
|
+
* Import a snapshot from a Scaleway Object Storage bucket. The bucket must contain a QCOW2 image.
|
|
107
|
+
The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
|
|
125
108
|
*
|
|
126
109
|
* @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
|
|
127
110
|
* @returns A Promise of Snapshot
|
|
128
111
|
*/
|
|
129
112
|
importSnapshotFromObjectStorage: (request: Readonly<ImportSnapshotFromObjectStorageRequest>) => Promise<Snapshot>;
|
|
130
113
|
/**
|
|
131
|
-
* Export a snapshot to a Scaleway Object Storage bucket. The snapshot is
|
|
132
|
-
|
|
114
|
+
* Export a snapshot to a Scaleway Object Storage bucket. The snapshot is exported in QCOW2 format.
|
|
115
|
+
The snapshot must not be in transient state.
|
|
133
116
|
*
|
|
134
117
|
* @param request - The request {@link ExportSnapshotToObjectStorageRequest}
|
|
135
118
|
* @returns A Promise of Snapshot
|
|
136
119
|
*/
|
|
137
120
|
exportSnapshotToObjectStorage: (request: Readonly<ExportSnapshotToObjectStorageRequest>) => Promise<Snapshot>;
|
|
138
121
|
/**
|
|
139
|
-
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
|
|
140
|
-
* want to delete. The snapshot must not be in use.
|
|
122
|
+
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use.
|
|
141
123
|
*
|
|
142
124
|
* @param request - The request {@link DeleteSnapshotRequest}
|
|
143
125
|
*/
|
|
@@ -37,8 +37,7 @@ class API extends API$1 {
|
|
|
37
37
|
unmarshalListVolumeTypesResponse
|
|
38
38
|
);
|
|
39
39
|
/**
|
|
40
|
-
* List volume types. List all available volume types in a specified zone. The
|
|
41
|
-
* volume types listed are ordered by name in ascending order.
|
|
40
|
+
* List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
|
|
42
41
|
*
|
|
43
42
|
* @param request - The request {@link ListVolumeTypesRequest}
|
|
44
43
|
* @returns A Promise of ListVolumeTypesResponse
|
|
@@ -65,25 +64,19 @@ class API extends API$1 {
|
|
|
65
64
|
unmarshalListVolumesResponse
|
|
66
65
|
);
|
|
67
66
|
/**
|
|
68
|
-
* List volumes. List all existing volumes in a specified zone. By default,
|
|
69
|
-
* the volumes listed are ordered by creation date in ascending order. This
|
|
70
|
-
* can be modified via the `order_by` field.
|
|
67
|
+
* List volumes. List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
|
|
71
68
|
*
|
|
72
69
|
* @param request - The request {@link ListVolumesRequest}
|
|
73
70
|
* @returns A Promise of ListVolumesResponse
|
|
74
71
|
*/
|
|
75
72
|
listVolumes = (request = {}) => enrichForPagination("volumes", this.pageOfListVolumes, request);
|
|
76
73
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
*
|
|
84
|
-
* @param request - The request {@link CreateVolumeRequest}
|
|
85
|
-
* @returns A Promise of Volume
|
|
86
|
-
*/
|
|
74
|
+
* Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
|
|
75
|
+
To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
|
|
76
|
+
*
|
|
77
|
+
* @param request - The request {@link CreateVolumeRequest}
|
|
78
|
+
* @returns A Promise of Volume
|
|
79
|
+
*/
|
|
87
80
|
createVolume = (request = {}) => this.client.fetch(
|
|
88
81
|
{
|
|
89
82
|
body: JSON.stringify(
|
|
@@ -96,8 +89,7 @@ class API extends API$1 {
|
|
|
96
89
|
unmarshalVolume
|
|
97
90
|
);
|
|
98
91
|
/**
|
|
99
|
-
* Get a volume. Retrieve technical information about a specific volume.
|
|
100
|
-
* Details such as size, type, and status are returned in the response.
|
|
92
|
+
* Get a volume. Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
|
|
101
93
|
*
|
|
102
94
|
* @param request - The request {@link GetVolumeRequest}
|
|
103
95
|
* @returns A Promise of Volume
|
|
@@ -125,8 +117,7 @@ class API extends API$1 {
|
|
|
125
117
|
options
|
|
126
118
|
);
|
|
127
119
|
/**
|
|
128
|
-
* Delete a detached volume. You must specify the `volume_id` of the volume
|
|
129
|
-
* you want to delete. The volume must not be in the `in_use` status.
|
|
120
|
+
* Delete a detached volume. You must specify the `volume_id` of the volume you want to delete. The volume must not be in the `in_use` status.
|
|
130
121
|
*
|
|
131
122
|
* @param request - The request {@link DeleteVolumeRequest}
|
|
132
123
|
*/
|
|
@@ -135,14 +126,12 @@ class API extends API$1 {
|
|
|
135
126
|
path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam("volumeId", request.volumeId)}`
|
|
136
127
|
});
|
|
137
128
|
/**
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
* @returns A Promise of Volume
|
|
145
|
-
*/
|
|
129
|
+
* Update a volume. Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
|
|
130
|
+
You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
|
|
131
|
+
*
|
|
132
|
+
* @param request - The request {@link UpdateVolumeRequest}
|
|
133
|
+
* @returns A Promise of Volume
|
|
134
|
+
*/
|
|
146
135
|
updateVolume = (request) => this.client.fetch(
|
|
147
136
|
{
|
|
148
137
|
body: JSON.stringify(
|
|
@@ -175,18 +164,14 @@ class API extends API$1 {
|
|
|
175
164
|
unmarshalListSnapshotsResponse
|
|
176
165
|
);
|
|
177
166
|
/**
|
|
178
|
-
* List all snapshots. List all available snapshots in a specified zone. By
|
|
179
|
-
* default, the snapshots listed are ordered by creation date in ascending
|
|
180
|
-
* order. This can be modified via the `order_by` field.
|
|
167
|
+
* List all snapshots. List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
|
|
181
168
|
*
|
|
182
169
|
* @param request - The request {@link ListSnapshotsRequest}
|
|
183
170
|
* @returns A Promise of ListSnapshotsResponse
|
|
184
171
|
*/
|
|
185
172
|
listSnapshots = (request = {}) => enrichForPagination("snapshots", this.pageOfListSnapshots, request);
|
|
186
173
|
/**
|
|
187
|
-
* Get a snapshot. Retrieve technical information about a specific snapshot.
|
|
188
|
-
* Details such as size, volume type, and status are returned in the
|
|
189
|
-
* response.
|
|
174
|
+
* Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
|
|
190
175
|
*
|
|
191
176
|
* @param request - The request {@link GetSnapshotRequest}
|
|
192
177
|
* @returns A Promise of Snapshot
|
|
@@ -214,13 +199,12 @@ class API extends API$1 {
|
|
|
214
199
|
options
|
|
215
200
|
);
|
|
216
201
|
/**
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
*/
|
|
202
|
+
* Create a snapshot of a volume. To create a snapshot, the volume must be in the `in_use` or the `available` status.
|
|
203
|
+
If your volume is in a transient state, you need to wait until the end of the current operation.
|
|
204
|
+
*
|
|
205
|
+
* @param request - The request {@link CreateSnapshotRequest}
|
|
206
|
+
* @returns A Promise of Snapshot
|
|
207
|
+
*/
|
|
224
208
|
createSnapshot = (request) => this.client.fetch(
|
|
225
209
|
{
|
|
226
210
|
body: JSON.stringify(
|
|
@@ -233,13 +217,12 @@ class API extends API$1 {
|
|
|
233
217
|
unmarshalSnapshot
|
|
234
218
|
);
|
|
235
219
|
/**
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
*/
|
|
220
|
+
* Import a snapshot from a Scaleway Object Storage bucket. The bucket must contain a QCOW2 image.
|
|
221
|
+
The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
|
|
222
|
+
*
|
|
223
|
+
* @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
|
|
224
|
+
* @returns A Promise of Snapshot
|
|
225
|
+
*/
|
|
243
226
|
importSnapshotFromObjectStorage = (request) => this.client.fetch(
|
|
244
227
|
{
|
|
245
228
|
body: JSON.stringify(
|
|
@@ -255,12 +238,12 @@ class API extends API$1 {
|
|
|
255
238
|
unmarshalSnapshot
|
|
256
239
|
);
|
|
257
240
|
/**
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
241
|
+
* Export a snapshot to a Scaleway Object Storage bucket. The snapshot is exported in QCOW2 format.
|
|
242
|
+
The snapshot must not be in transient state.
|
|
243
|
+
*
|
|
244
|
+
* @param request - The request {@link ExportSnapshotToObjectStorageRequest}
|
|
245
|
+
* @returns A Promise of Snapshot
|
|
246
|
+
*/
|
|
264
247
|
exportSnapshotToObjectStorage = (request) => this.client.fetch(
|
|
265
248
|
{
|
|
266
249
|
body: JSON.stringify(
|
|
@@ -276,8 +259,7 @@ class API extends API$1 {
|
|
|
276
259
|
unmarshalSnapshot
|
|
277
260
|
);
|
|
278
261
|
/**
|
|
279
|
-
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
|
|
280
|
-
* want to delete. The snapshot must not be in use.
|
|
262
|
+
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use.
|
|
281
263
|
*
|
|
282
264
|
* @param request - The request {@link DeleteSnapshotRequest}
|
|
283
265
|
*/
|