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