@scaleway/sdk-block 2.17.0 → 2.18.1
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/LICENSE +191 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -6
- package/dist/index.gen.d.ts +3 -6
- package/dist/index.gen.js +2 -1
- package/dist/metadata.gen.d.ts +7 -5
- package/dist/metadata.gen.js +2 -1
- package/dist/v1/api.gen.d.ts +103 -101
- package/dist/v1/api.gen.js +5 -3
- package/dist/v1/constants.gen.d.ts +3 -1
- package/dist/v1/constants.gen.js +2 -1
- package/dist/v1/content.gen.d.ts +3 -1
- package/dist/v1/content.gen.js +2 -1
- package/dist/v1/index.gen.d.ts +11 -6
- package/dist/v1/index.gen.js +3 -1
- package/dist/v1/marshalling.gen.d.ts +4 -2
- package/dist/v1/marshalling.gen.js +3 -1
- package/dist/v1/metadata.gen.d.ts +67 -65
- package/dist/v1/metadata.gen.js +2 -1
- package/dist/v1/types.gen.d.ts +515 -513
- package/dist/v1/validation-rules.gen.d.ts +38 -33
- package/dist/v1/validation-rules.gen.js +3 -1
- package/dist/v1alpha1/api.gen.d.ts +105 -103
- package/dist/v1alpha1/api.gen.js +5 -3
- package/dist/v1alpha1/constants.gen.d.ts +3 -1
- package/dist/v1alpha1/constants.gen.js +2 -1
- package/dist/v1alpha1/content.gen.d.ts +3 -1
- package/dist/v1alpha1/content.gen.js +2 -1
- package/dist/v1alpha1/index.gen.d.ts +11 -6
- package/dist/v1alpha1/index.gen.js +3 -1
- package/dist/v1alpha1/marshalling.gen.d.ts +4 -2
- package/dist/v1alpha1/marshalling.gen.js +3 -1
- package/dist/v1alpha1/metadata.gen.d.ts +67 -65
- package/dist/v1alpha1/metadata.gen.js +2 -1
- package/dist/v1alpha1/types.gen.d.ts +487 -485
- package/dist/v1alpha1/validation-rules.gen.d.ts +41 -36
- package/dist/v1alpha1/validation-rules.gen.js +3 -1
- package/package.json +5 -7
- package/dist/.vite/license.md +0 -3
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1alpha1/types.gen.js +0 -0
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Money, Zone } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1/types.gen.d.ts
|
|
2
3
|
export type ListSnapshotsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
3
4
|
export type ListVolumesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
|
|
4
5
|
export type ReferenceStatus = 'unknown_status' | 'attaching' | 'attached' | 'detaching' | 'detached' | 'creating' | 'error';
|
|
@@ -7,565 +8,566 @@ export type SnapshotStatus = 'unknown_status' | 'creating' | 'available' | 'erro
|
|
|
7
8
|
export type StorageClass = 'unknown_storage_class' | 'unspecified' | 'bssd' | 'sbs';
|
|
8
9
|
export type VolumeStatus = 'unknown_status' | 'creating' | 'available' | 'in_use' | 'deleting' | 'deleted' | 'resizing' | 'error' | 'snapshotting' | 'locked' | 'updating';
|
|
9
10
|
export interface Reference {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
/**
|
|
12
|
+
* UUID of the reference.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Type of resource to which the reference is associated.
|
|
17
|
+
*/
|
|
18
|
+
productResourceType: string;
|
|
19
|
+
/**
|
|
20
|
+
* UUID of the product resource it refers to (according to the product_resource_type).
|
|
21
|
+
*/
|
|
22
|
+
productResourceId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Creation date of the reference.
|
|
25
|
+
*/
|
|
26
|
+
createdAt?: Date;
|
|
27
|
+
/**
|
|
28
|
+
* Type of reference (link, exclusive, read_only).
|
|
29
|
+
*/
|
|
30
|
+
type: ReferenceType;
|
|
31
|
+
/**
|
|
32
|
+
* Status of the reference. Statuses include `attaching`, `attached`, and `detaching`.
|
|
33
|
+
*/
|
|
34
|
+
status: ReferenceStatus;
|
|
34
35
|
}
|
|
35
36
|
export interface SnapshotParentVolume {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Parent volume UUID (volume from which the snapshot originates).
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Name of the parent volume.
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Volume type of the parent volume.
|
|
47
|
+
*/
|
|
48
|
+
type: string;
|
|
49
|
+
/**
|
|
50
|
+
* Current status the parent volume.
|
|
51
|
+
*/
|
|
52
|
+
status: VolumeStatus;
|
|
52
53
|
}
|
|
53
54
|
export interface VolumeSpecifications {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
/**
|
|
56
|
+
* The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`).
|
|
57
|
+
*/
|
|
58
|
+
perfIops?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The storage class of the volume.
|
|
61
|
+
*/
|
|
62
|
+
class: StorageClass;
|
|
62
63
|
}
|
|
63
64
|
export interface CreateVolumeRequestFromEmpty {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
/**
|
|
66
|
+
* Must be compliant with the minimum (1 GB) and maximum (10 TB) allowed size.
|
|
67
|
+
*/
|
|
68
|
+
size: number;
|
|
68
69
|
}
|
|
69
70
|
export interface CreateVolumeRequestFromSnapshot {
|
|
70
|
-
|
|
71
|
+
/**
|
|
71
72
|
* Must be compliant with the minimum (1 GB) and maximum (10 TB) allowed size.
|
|
72
73
|
Size is optional and is used only if a resize of the volume is requested, otherwise original snapshot size will be used.
|
|
73
74
|
*/
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
size?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Source snapshot from which volume will be created.
|
|
78
|
+
*/
|
|
79
|
+
snapshotId: string;
|
|
79
80
|
}
|
|
80
81
|
export interface Snapshot {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
82
|
+
/**
|
|
83
|
+
* UUID of the snapshot.
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Name of the snapshot.
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
/**
|
|
91
|
+
* If the parent volume was deleted, value is null.
|
|
92
|
+
*/
|
|
93
|
+
parentVolume?: SnapshotParentVolume;
|
|
94
|
+
/**
|
|
95
|
+
* Size in bytes of the snapshot.
|
|
96
|
+
*/
|
|
97
|
+
size: number;
|
|
98
|
+
/**
|
|
99
|
+
* UUID of the project the snapshot belongs to.
|
|
100
|
+
*/
|
|
101
|
+
projectId: string;
|
|
102
|
+
/**
|
|
103
|
+
* Creation date of the snapshot.
|
|
104
|
+
*/
|
|
105
|
+
createdAt?: Date;
|
|
106
|
+
/**
|
|
107
|
+
* Last modification date of the properties of a snapshot.
|
|
108
|
+
*/
|
|
109
|
+
updatedAt?: Date;
|
|
110
|
+
/**
|
|
111
|
+
* List of the references to the snapshot.
|
|
112
|
+
*/
|
|
113
|
+
references: Reference[];
|
|
114
|
+
/**
|
|
115
|
+
* Current status of the snapshot (available, in_use, ...).
|
|
116
|
+
*/
|
|
117
|
+
status: SnapshotStatus;
|
|
118
|
+
/**
|
|
119
|
+
* List of tags assigned to the volume.
|
|
120
|
+
*/
|
|
121
|
+
tags: string[];
|
|
122
|
+
/**
|
|
123
|
+
* Snapshot zone.
|
|
124
|
+
*/
|
|
125
|
+
zone: Zone;
|
|
126
|
+
/**
|
|
127
|
+
* Storage class of the snapshot.
|
|
128
|
+
*/
|
|
129
|
+
class: StorageClass;
|
|
130
|
+
/**
|
|
131
|
+
* True if the snapshot can be used by anyone to create a volume from.
|
|
132
|
+
*/
|
|
133
|
+
public: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* KMS Key used for securing the parent volume's encryption.
|
|
136
|
+
*/
|
|
137
|
+
kmsKeyId?: string;
|
|
138
|
+
/**
|
|
139
|
+
* The SRN of the snapshot.
|
|
140
|
+
*/
|
|
141
|
+
srn: string;
|
|
141
142
|
}
|
|
142
143
|
export interface VolumeType {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
144
|
+
/**
|
|
145
|
+
* Volume type.
|
|
146
|
+
*/
|
|
147
|
+
type: string;
|
|
148
|
+
/**
|
|
149
|
+
* Price of the volume billed in GB/hour.
|
|
150
|
+
*/
|
|
151
|
+
pricing?: Money;
|
|
152
|
+
/**
|
|
153
|
+
* Price of the snapshot billed in GB/hour.
|
|
154
|
+
*/
|
|
155
|
+
snapshotPricing?: Money;
|
|
156
|
+
/**
|
|
157
|
+
* Volume specifications of the volume type.
|
|
158
|
+
*/
|
|
159
|
+
specs?: VolumeSpecifications;
|
|
160
|
+
/**
|
|
161
|
+
* Zone of the volume type.
|
|
162
|
+
*/
|
|
163
|
+
zone: Zone;
|
|
164
|
+
/**
|
|
165
|
+
* The SRN of the volume type.
|
|
166
|
+
*/
|
|
167
|
+
srn: string;
|
|
167
168
|
}
|
|
168
169
|
export interface Volume {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
170
|
+
/**
|
|
171
|
+
* UUID of the volume.
|
|
172
|
+
*/
|
|
173
|
+
id: string;
|
|
174
|
+
/**
|
|
175
|
+
* Name of the volume.
|
|
176
|
+
*/
|
|
177
|
+
name: string;
|
|
178
|
+
/**
|
|
179
|
+
* Volume type.
|
|
180
|
+
*/
|
|
181
|
+
type: string;
|
|
182
|
+
/**
|
|
183
|
+
* Volume size in bytes.
|
|
184
|
+
*/
|
|
185
|
+
size: number;
|
|
186
|
+
/**
|
|
187
|
+
* UUID of the project to which the volume belongs.
|
|
188
|
+
*/
|
|
189
|
+
projectId: string;
|
|
190
|
+
/**
|
|
191
|
+
* Creation date of the volume.
|
|
192
|
+
*/
|
|
193
|
+
createdAt?: Date;
|
|
194
|
+
/**
|
|
195
|
+
* Last update of the properties of a volume.
|
|
196
|
+
*/
|
|
197
|
+
updatedAt?: Date;
|
|
198
|
+
/**
|
|
199
|
+
* List of the references to the volume.
|
|
200
|
+
*/
|
|
201
|
+
references: Reference[];
|
|
202
|
+
/**
|
|
203
|
+
* When a volume is created from a snapshot, is the UUID of the snapshot from which the volume has been created.
|
|
204
|
+
*/
|
|
205
|
+
parentSnapshotId?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Current status of the volume (available, in_use, ...).
|
|
208
|
+
*/
|
|
209
|
+
status: VolumeStatus;
|
|
210
|
+
/**
|
|
211
|
+
* List of tags assigned to the volume.
|
|
212
|
+
*/
|
|
213
|
+
tags: string[];
|
|
214
|
+
/**
|
|
215
|
+
* Volume zone.
|
|
216
|
+
*/
|
|
217
|
+
zone: Zone;
|
|
218
|
+
/**
|
|
219
|
+
* Specifications of the volume.
|
|
220
|
+
*/
|
|
221
|
+
specs?: VolumeSpecifications;
|
|
222
|
+
/**
|
|
223
|
+
* Last time the volume was detached.
|
|
224
|
+
*/
|
|
225
|
+
lastDetachedAt?: Date;
|
|
226
|
+
/**
|
|
227
|
+
* KMS Key used for securing the volume's encryption.
|
|
228
|
+
*/
|
|
229
|
+
kmsKeyId?: string;
|
|
230
|
+
/**
|
|
231
|
+
* The SRN of the volume.
|
|
232
|
+
*/
|
|
233
|
+
srn: string;
|
|
233
234
|
}
|
|
234
235
|
export type CreateSnapshotRequest = {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
236
|
+
/**
|
|
237
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
238
|
+
*/
|
|
239
|
+
zone?: Zone;
|
|
240
|
+
/**
|
|
241
|
+
* UUID of the volume to snapshot.
|
|
242
|
+
*/
|
|
243
|
+
volumeId: string;
|
|
244
|
+
/**
|
|
245
|
+
* Name of the snapshot.
|
|
246
|
+
*/
|
|
247
|
+
name?: string;
|
|
248
|
+
/**
|
|
249
|
+
* UUID of the project to which the volume and the snapshot belong.
|
|
250
|
+
*/
|
|
251
|
+
projectId?: string;
|
|
252
|
+
/**
|
|
253
|
+
* List of tags assigned to the snapshot.
|
|
254
|
+
*/
|
|
255
|
+
tags?: string[];
|
|
256
|
+
/**
|
|
257
|
+
* Snapshots are private by default, public snapshots are mainly used to publish OS images.
|
|
258
|
+
*/
|
|
259
|
+
public: boolean;
|
|
259
260
|
};
|
|
260
261
|
export type CreateVolumeRequest = {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
262
|
+
/**
|
|
263
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
264
|
+
*/
|
|
265
|
+
zone?: Zone;
|
|
266
|
+
/**
|
|
267
|
+
* Name of the volume.
|
|
268
|
+
*/
|
|
269
|
+
name?: string;
|
|
270
|
+
/**
|
|
271
|
+
* The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`).
|
|
272
|
+
*
|
|
273
|
+
* One-of ('requirements'): at most one of 'perfIops' could be set.
|
|
274
|
+
*/
|
|
275
|
+
perfIops?: number;
|
|
276
|
+
/**
|
|
277
|
+
* UUID of the project the volume belongs to.
|
|
278
|
+
*/
|
|
279
|
+
projectId?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Specify the size of the new volume if creating a new one from scratch.
|
|
282
|
+
*
|
|
283
|
+
* One-of ('from'): at most one of 'fromEmpty', 'fromSnapshot' could be set.
|
|
284
|
+
*/
|
|
285
|
+
fromEmpty?: CreateVolumeRequestFromEmpty;
|
|
286
|
+
/**
|
|
287
|
+
* Specify the snapshot ID of the original snapshot.
|
|
288
|
+
*
|
|
289
|
+
* One-of ('from'): at most one of 'fromEmpty', 'fromSnapshot' could be set.
|
|
290
|
+
*/
|
|
291
|
+
fromSnapshot?: CreateVolumeRequestFromSnapshot;
|
|
292
|
+
/**
|
|
293
|
+
* List of tags assigned to the volume.
|
|
294
|
+
*/
|
|
295
|
+
tags?: string[];
|
|
296
|
+
/**
|
|
297
|
+
* UUID of the KMS key used to protect the volume's encryption.
|
|
298
|
+
*/
|
|
299
|
+
kmsKeyId?: string;
|
|
299
300
|
};
|
|
300
301
|
export type DeleteSnapshotRequest = {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
302
|
+
/**
|
|
303
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
304
|
+
*/
|
|
305
|
+
zone?: Zone;
|
|
306
|
+
/**
|
|
307
|
+
* UUID of the snapshot.
|
|
308
|
+
*/
|
|
309
|
+
snapshotId: string;
|
|
309
310
|
};
|
|
310
311
|
export type DeleteVolumeRequest = {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
312
|
+
/**
|
|
313
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
314
|
+
*/
|
|
315
|
+
zone?: Zone;
|
|
316
|
+
/**
|
|
317
|
+
* UUID of the volume.
|
|
318
|
+
*/
|
|
319
|
+
volumeId: string;
|
|
319
320
|
};
|
|
320
321
|
export type ExportSnapshotToObjectStorageRequest = {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
322
|
+
/**
|
|
323
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
324
|
+
*/
|
|
325
|
+
zone?: Zone;
|
|
326
|
+
/**
|
|
327
|
+
* UUID of the snapshot.
|
|
328
|
+
*/
|
|
329
|
+
snapshotId: string;
|
|
330
|
+
/**
|
|
331
|
+
* Scaleway Object Storage bucket where the object is stored.
|
|
332
|
+
*/
|
|
333
|
+
bucket: string;
|
|
334
|
+
/**
|
|
335
|
+
* The object key inside the given bucket.
|
|
336
|
+
*/
|
|
337
|
+
key: string;
|
|
337
338
|
};
|
|
338
339
|
export type GetSnapshotRequest = {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
340
|
+
/**
|
|
341
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
342
|
+
*/
|
|
343
|
+
zone?: Zone;
|
|
344
|
+
/**
|
|
345
|
+
* UUID of the snapshot.
|
|
346
|
+
*/
|
|
347
|
+
snapshotId: string;
|
|
347
348
|
};
|
|
348
349
|
export type GetVolumeRequest = {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
350
|
+
/**
|
|
351
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
352
|
+
*/
|
|
353
|
+
zone?: Zone;
|
|
354
|
+
/**
|
|
355
|
+
* UUID of the volume.
|
|
356
|
+
*/
|
|
357
|
+
volumeId: string;
|
|
357
358
|
};
|
|
358
359
|
export type ImportSnapshotFromObjectStorageRequest = {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
360
|
+
/**
|
|
361
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
362
|
+
*/
|
|
363
|
+
zone?: Zone;
|
|
364
|
+
/**
|
|
365
|
+
* Scaleway Object Storage bucket where the object is stored.
|
|
366
|
+
*/
|
|
367
|
+
bucket: string;
|
|
368
|
+
/**
|
|
369
|
+
* The object key inside the given bucket.
|
|
370
|
+
*/
|
|
371
|
+
key: string;
|
|
372
|
+
/**
|
|
373
|
+
* Name of the snapshot.
|
|
374
|
+
*/
|
|
375
|
+
name: string;
|
|
376
|
+
/**
|
|
377
|
+
* UUID of the Project to which the volume and the snapshot belong.
|
|
378
|
+
*/
|
|
379
|
+
projectId?: string;
|
|
380
|
+
/**
|
|
381
|
+
* List of tags assigned to the snapshot.
|
|
382
|
+
*/
|
|
383
|
+
tags?: string[];
|
|
384
|
+
/**
|
|
385
|
+
* Size of the snapshot.
|
|
386
|
+
*/
|
|
387
|
+
size?: number;
|
|
387
388
|
};
|
|
388
389
|
export type ListSnapshotsRequest = {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
390
|
+
/**
|
|
391
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
392
|
+
*/
|
|
393
|
+
zone?: Zone;
|
|
394
|
+
/**
|
|
395
|
+
* Criteria to use when ordering the list.
|
|
396
|
+
*/
|
|
397
|
+
orderBy?: ListSnapshotsRequestOrderBy;
|
|
398
|
+
/**
|
|
399
|
+
* Filter by Project ID.
|
|
400
|
+
*/
|
|
401
|
+
projectId?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Filter by Organization ID.
|
|
404
|
+
*/
|
|
405
|
+
organizationId?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Page number.
|
|
408
|
+
*/
|
|
409
|
+
page?: number;
|
|
410
|
+
/**
|
|
411
|
+
* Page size, defines how many entries are returned in one page, must be lower or equal to 100.
|
|
412
|
+
*/
|
|
413
|
+
pageSize?: number;
|
|
414
|
+
/**
|
|
415
|
+
* Filter snapshots by the ID of the original volume.
|
|
416
|
+
*/
|
|
417
|
+
volumeId?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Filter snapshots by their names.
|
|
420
|
+
*/
|
|
421
|
+
name?: string;
|
|
422
|
+
/**
|
|
423
|
+
* Filter by tags. Only snapshots with one or more matching tags will be returned.
|
|
424
|
+
*/
|
|
425
|
+
tags?: string[];
|
|
426
|
+
/**
|
|
427
|
+
* Display deleted snapshots not erased yet.
|
|
428
|
+
*/
|
|
429
|
+
includeDeleted: boolean;
|
|
429
430
|
};
|
|
430
431
|
export interface ListSnapshotsResponse {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
432
|
+
/**
|
|
433
|
+
* Paginated returned list of snapshots.
|
|
434
|
+
*/
|
|
435
|
+
snapshots: Snapshot[];
|
|
436
|
+
/**
|
|
437
|
+
* Total number of snapshots in the project.
|
|
438
|
+
*/
|
|
439
|
+
totalCount: number;
|
|
439
440
|
}
|
|
440
441
|
export type ListVolumeTypesRequest = {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
442
|
+
/**
|
|
443
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
444
|
+
*/
|
|
445
|
+
zone?: Zone;
|
|
446
|
+
/**
|
|
447
|
+
* Page number.
|
|
448
|
+
*/
|
|
449
|
+
page?: number;
|
|
450
|
+
/**
|
|
451
|
+
* Page size, defines how many entries are returned in one page, must be lower or equal to 100.
|
|
452
|
+
*/
|
|
453
|
+
pageSize?: number;
|
|
453
454
|
};
|
|
454
455
|
export interface ListVolumeTypesResponse {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
456
|
+
/**
|
|
457
|
+
* Returns paginated list of volume-types.
|
|
458
|
+
*/
|
|
459
|
+
volumeTypes: VolumeType[];
|
|
460
|
+
/**
|
|
461
|
+
* Total number of volume-types currently available in stock.
|
|
462
|
+
*/
|
|
463
|
+
totalCount: number;
|
|
463
464
|
}
|
|
464
465
|
export type ListVolumesRequest = {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
466
|
+
/**
|
|
467
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
468
|
+
*/
|
|
469
|
+
zone?: Zone;
|
|
470
|
+
/**
|
|
471
|
+
* Criteria to use when ordering the list.
|
|
472
|
+
*/
|
|
473
|
+
orderBy?: ListVolumesRequestOrderBy;
|
|
474
|
+
/**
|
|
475
|
+
* Filter by Project ID.
|
|
476
|
+
*/
|
|
477
|
+
projectId?: string;
|
|
478
|
+
/**
|
|
479
|
+
* Filter by Organization ID.
|
|
480
|
+
*/
|
|
481
|
+
organizationId?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Page number.
|
|
484
|
+
*/
|
|
485
|
+
page?: number;
|
|
486
|
+
/**
|
|
487
|
+
* Page size, defines how many entries are returned in one page, must be lower or equal to 100.
|
|
488
|
+
*/
|
|
489
|
+
pageSize?: number;
|
|
490
|
+
/**
|
|
491
|
+
* Filter the return volumes by their names.
|
|
492
|
+
*/
|
|
493
|
+
name?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Filter by a product resource ID linked to this volume (such as an Instance ID).
|
|
496
|
+
*/
|
|
497
|
+
productResourceId?: string;
|
|
498
|
+
/**
|
|
499
|
+
* Filter by tags. Only volumes with one or more matching tags will be returned.
|
|
500
|
+
*/
|
|
501
|
+
tags?: string[];
|
|
502
|
+
/**
|
|
503
|
+
* Display deleted volumes not erased yet.
|
|
504
|
+
*/
|
|
505
|
+
includeDeleted: boolean;
|
|
506
|
+
/**
|
|
507
|
+
* Filter by volume type.
|
|
508
|
+
*/
|
|
509
|
+
volumeType?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Filter by volume IDs.
|
|
512
|
+
*/
|
|
513
|
+
volumeIds?: string[];
|
|
513
514
|
};
|
|
514
515
|
export interface ListVolumesResponse {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
516
|
+
/**
|
|
517
|
+
* Paginated returned list of volumes.
|
|
518
|
+
*/
|
|
519
|
+
volumes: Volume[];
|
|
520
|
+
/**
|
|
521
|
+
* Total number of volumes in the project.
|
|
522
|
+
*/
|
|
523
|
+
totalCount: number;
|
|
523
524
|
}
|
|
524
525
|
export type UpdateSnapshotRequest = {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
526
|
+
/**
|
|
527
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
528
|
+
*/
|
|
529
|
+
zone?: Zone;
|
|
530
|
+
/**
|
|
531
|
+
* UUID of the snapshot.
|
|
532
|
+
*/
|
|
533
|
+
snapshotId: string;
|
|
534
|
+
/**
|
|
535
|
+
* When defined, is the name of the snapshot.
|
|
536
|
+
*/
|
|
537
|
+
name?: string;
|
|
538
|
+
/**
|
|
539
|
+
* List of tags assigned to the snapshot.
|
|
540
|
+
*/
|
|
541
|
+
tags?: string[];
|
|
542
|
+
/**
|
|
543
|
+
* Snapshots are private by default, public snapshots are mainly used to publish OS images.
|
|
544
|
+
*/
|
|
545
|
+
public?: boolean;
|
|
545
546
|
};
|
|
546
547
|
export type UpdateVolumeRequest = {
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
548
|
+
/**
|
|
549
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
550
|
+
*/
|
|
551
|
+
zone?: Zone;
|
|
552
|
+
/**
|
|
553
|
+
* UUID of the volume.
|
|
554
|
+
*/
|
|
555
|
+
volumeId: string;
|
|
556
|
+
/**
|
|
557
|
+
* When defined, is the new name of the volume.
|
|
558
|
+
*/
|
|
559
|
+
name?: string;
|
|
560
|
+
/**
|
|
561
|
+
* Size in bytes of the volume, with a granularity of 1 GB (10^9 bytes).
|
|
562
|
+
*/
|
|
563
|
+
size?: number;
|
|
564
|
+
/**
|
|
565
|
+
* List of tags assigned to the volume.
|
|
566
|
+
*/
|
|
567
|
+
tags?: string[];
|
|
568
|
+
/**
|
|
569
|
+
* The selected value must be available for the volume's current storage class.
|
|
570
|
+
*/
|
|
571
|
+
perfIops?: number;
|
|
571
572
|
};
|
|
573
|
+
//#endregion
|