@scaleway/sdk-block 2.17.0 → 2.18.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.
Files changed (40) hide show
  1. package/LICENSE +191 -0
  2. package/dist/_virtual/_rolldown/runtime.js +11 -6
  3. package/dist/index.gen.d.ts +3 -6
  4. package/dist/index.gen.js +2 -1
  5. package/dist/metadata.gen.d.ts +7 -5
  6. package/dist/metadata.gen.js +2 -1
  7. package/dist/v1/api.gen.d.ts +103 -101
  8. package/dist/v1/api.gen.js +5 -3
  9. package/dist/v1/constants.gen.d.ts +3 -1
  10. package/dist/v1/constants.gen.js +2 -1
  11. package/dist/v1/content.gen.d.ts +3 -1
  12. package/dist/v1/content.gen.js +2 -1
  13. package/dist/v1/index.gen.d.ts +11 -6
  14. package/dist/v1/index.gen.js +3 -1
  15. package/dist/v1/marshalling.gen.d.ts +4 -2
  16. package/dist/v1/marshalling.gen.js +3 -1
  17. package/dist/v1/metadata.gen.d.ts +67 -65
  18. package/dist/v1/metadata.gen.js +2 -1
  19. package/dist/v1/types.gen.d.ts +515 -513
  20. package/dist/v1/validation-rules.gen.d.ts +38 -33
  21. package/dist/v1/validation-rules.gen.js +3 -1
  22. package/dist/v1alpha1/api.gen.d.ts +105 -103
  23. package/dist/v1alpha1/api.gen.js +5 -3
  24. package/dist/v1alpha1/constants.gen.d.ts +3 -1
  25. package/dist/v1alpha1/constants.gen.js +2 -1
  26. package/dist/v1alpha1/content.gen.d.ts +3 -1
  27. package/dist/v1alpha1/content.gen.js +2 -1
  28. package/dist/v1alpha1/index.gen.d.ts +11 -6
  29. package/dist/v1alpha1/index.gen.js +3 -1
  30. package/dist/v1alpha1/marshalling.gen.d.ts +4 -2
  31. package/dist/v1alpha1/marshalling.gen.js +3 -1
  32. package/dist/v1alpha1/metadata.gen.d.ts +67 -65
  33. package/dist/v1alpha1/metadata.gen.js +2 -1
  34. package/dist/v1alpha1/types.gen.d.ts +487 -485
  35. package/dist/v1alpha1/validation-rules.gen.d.ts +41 -36
  36. package/dist/v1alpha1/validation-rules.gen.js +3 -1
  37. package/package.json +5 -7
  38. package/dist/.vite/license.md +0 -3
  39. package/dist/v1/types.gen.js +0 -0
  40. package/dist/v1alpha1/types.gen.js +0 -0
@@ -1,4 +1,5 @@
1
- import type { Money, Zone as ScwZone } from '@scaleway/sdk-client';
1
+ import { Money, Zone } from "@scaleway/sdk-client";
2
+ //#region src/v1alpha1/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,539 +8,540 @@ 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
- * 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;
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
- * 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;
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
- * 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;
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
- * Must be compliant with the minimum (1 GB) and maximum (10 TB) allowed size.
66
- */
67
- size: number;
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
- size?: number;
75
- /**
76
- * Source snapshot from which volume will be created.
77
- */
78
- snapshotId: string;
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
- * 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;
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;
129
130
  }
130
131
  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;
132
+ /**
133
+ * Volume type.
134
+ */
135
+ type: string;
136
+ /**
137
+ * Price of the volume billed in GB/hour.
138
+ */
139
+ pricing?: Money;
140
+ /**
141
+ * Price of the snapshot billed in GB/hour.
142
+ */
143
+ snapshotPricing?: Money;
144
+ /**
145
+ * Volume specifications of the volume type.
146
+ */
147
+ specs?: VolumeSpecifications;
147
148
  }
148
149
  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;
150
+ /**
151
+ * UUID of the volume.
152
+ */
153
+ id: string;
154
+ /**
155
+ * Name of the volume.
156
+ */
157
+ name: string;
158
+ /**
159
+ * Volume type.
160
+ */
161
+ type: string;
162
+ /**
163
+ * Volume size in bytes.
164
+ */
165
+ size: number;
166
+ /**
167
+ * UUID of the project to which the volume belongs.
168
+ */
169
+ projectId: string;
170
+ /**
171
+ * Creation date of the volume.
172
+ */
173
+ createdAt?: Date;
174
+ /**
175
+ * Last update of the properties of a volume.
176
+ */
177
+ updatedAt?: Date;
178
+ /**
179
+ * List of the references to the volume.
180
+ */
181
+ references: Reference[];
182
+ /**
183
+ * When a volume is created from a snapshot, is the UUID of the snapshot from which the volume has been created.
184
+ */
185
+ parentSnapshotId?: string;
186
+ /**
187
+ * Current status of the volume (available, in_use, ...).
188
+ */
189
+ status: VolumeStatus;
190
+ /**
191
+ * List of tags assigned to the volume.
192
+ */
193
+ tags: string[];
194
+ /**
195
+ * Volume zone.
196
+ */
197
+ zone: Zone;
198
+ /**
199
+ * Specifications of the volume.
200
+ */
201
+ specs?: VolumeSpecifications;
202
+ /**
203
+ * Last time the volume was detached.
204
+ */
205
+ lastDetachedAt?: Date;
205
206
  }
206
207
  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[];
208
+ /**
209
+ * Zone to target. If none is passed will use default zone from the config.
210
+ */
211
+ zone?: Zone;
212
+ /**
213
+ * UUID of the volume to snapshot.
214
+ */
215
+ volumeId: string;
216
+ /**
217
+ * Name of the snapshot.
218
+ */
219
+ name?: string;
220
+ /**
221
+ * UUID of the project to which the volume and the snapshot belong.
222
+ */
223
+ projectId?: string;
224
+ /**
225
+ * List of tags assigned to the snapshot.
226
+ */
227
+ tags?: string[];
227
228
  };
228
229
  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[];
230
+ /**
231
+ * Zone to target. If none is passed will use default zone from the config.
232
+ */
233
+ zone?: Zone;
234
+ /**
235
+ * Name of the volume.
236
+ */
237
+ name?: string;
238
+ /**
239
+ * The maximum IO/s expected, according to the different options available in stock (`5000 | 15000`).
240
+ *
241
+ * One-of ('requirements'): at most one of 'perfIops' could be set.
242
+ */
243
+ perfIops?: number;
244
+ /**
245
+ * UUID of the project the volume belongs to.
246
+ */
247
+ projectId?: string;
248
+ /**
249
+ * Specify the size of the new volume if creating a new one from scratch.
250
+ *
251
+ * One-of ('from'): at most one of 'fromEmpty', 'fromSnapshot' could be set.
252
+ */
253
+ fromEmpty?: CreateVolumeRequestFromEmpty;
254
+ /**
255
+ * Specify the snapshot ID of the original snapshot.
256
+ *
257
+ * One-of ('from'): at most one of 'fromEmpty', 'fromSnapshot' could be set.
258
+ */
259
+ fromSnapshot?: CreateVolumeRequestFromSnapshot;
260
+ /**
261
+ * List of tags assigned to the volume.
262
+ */
263
+ tags?: string[];
263
264
  };
264
265
  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;
266
+ /**
267
+ * Zone to target. If none is passed will use default zone from the config.
268
+ */
269
+ zone?: Zone;
270
+ /**
271
+ * UUID of the snapshot.
272
+ */
273
+ snapshotId: string;
273
274
  };
274
275
  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;
276
+ /**
277
+ * Zone to target. If none is passed will use default zone from the config.
278
+ */
279
+ zone?: Zone;
280
+ /**
281
+ * UUID of the volume.
282
+ */
283
+ volumeId: string;
283
284
  };
284
285
  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;
286
+ /**
287
+ * Zone to target. If none is passed will use default zone from the config.
288
+ */
289
+ zone?: Zone;
290
+ /**
291
+ * UUID of the snapshot.
292
+ */
293
+ snapshotId: string;
294
+ /**
295
+ * Scaleway Object Storage bucket where the object is stored.
296
+ */
297
+ bucket: string;
298
+ /**
299
+ * The object key inside the given bucket.
300
+ */
301
+ key: string;
301
302
  };
302
303
  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;
304
+ /**
305
+ * Zone to target. If none is passed will use default zone from the config.
306
+ */
307
+ zone?: Zone;
308
+ /**
309
+ * UUID of the snapshot.
310
+ */
311
+ snapshotId: string;
311
312
  };
312
313
  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;
314
+ /**
315
+ * Zone to target. If none is passed will use default zone from the config.
316
+ */
317
+ zone?: Zone;
318
+ /**
319
+ * UUID of the volume.
320
+ */
321
+ volumeId: string;
321
322
  };
322
323
  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;
324
+ /**
325
+ * Zone to target. If none is passed will use default zone from the config.
326
+ */
327
+ zone?: Zone;
328
+ /**
329
+ * Scaleway Object Storage bucket where the object is stored.
330
+ */
331
+ bucket: string;
332
+ /**
333
+ * The object key inside the given bucket.
334
+ */
335
+ key: string;
336
+ /**
337
+ * Name of the snapshot.
338
+ */
339
+ name: string;
340
+ /**
341
+ * UUID of the Project to which the volume and the snapshot belong.
342
+ */
343
+ projectId?: string;
344
+ /**
345
+ * List of tags assigned to the snapshot.
346
+ */
347
+ tags?: string[];
348
+ /**
349
+ * Size of the snapshot.
350
+ */
351
+ size?: number;
351
352
  };
352
353
  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;
354
+ /**
355
+ * Zone to target. If none is passed will use default zone from the config.
356
+ */
357
+ zone?: Zone;
358
+ /**
359
+ * Scaleway Object Storage bucket where the object is stored.
360
+ */
361
+ bucket: string;
362
+ /**
363
+ * The object key inside the given bucket.
364
+ */
365
+ key: string;
366
+ /**
367
+ * Name of the snapshot.
368
+ */
369
+ name: string;
370
+ /**
371
+ * UUID of the Project to which the volume and the snapshot belong.
372
+ */
373
+ projectId?: string;
374
+ /**
375
+ * List of tags assigned to the snapshot.
376
+ */
377
+ tags?: string[];
378
+ /**
379
+ * Size of the snapshot.
380
+ */
381
+ size?: number;
381
382
  };
382
383
  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[];
384
+ /**
385
+ * Zone to target. If none is passed will use default zone from the config.
386
+ */
387
+ zone?: Zone;
388
+ /**
389
+ * Criteria to use when ordering the list.
390
+ */
391
+ orderBy?: ListSnapshotsRequestOrderBy;
392
+ /**
393
+ * Filter by Project ID.
394
+ */
395
+ projectId?: string;
396
+ /**
397
+ * Filter by Organization ID.
398
+ */
399
+ organizationId?: string;
400
+ /**
401
+ * Page number.
402
+ */
403
+ page?: number;
404
+ /**
405
+ * Page size, defines how many entries are returned in one page, must be lower or equal to 100.
406
+ */
407
+ pageSize?: number;
408
+ /**
409
+ * Filter snapshots by the ID of the original volume.
410
+ */
411
+ volumeId?: string;
412
+ /**
413
+ * Filter snapshots by their names.
414
+ */
415
+ name?: string;
416
+ /**
417
+ * Filter by tags. Only snapshots with one or more matching tags will be returned.
418
+ */
419
+ tags?: string[];
419
420
  };
420
421
  export interface ListSnapshotsResponse {
421
- /**
422
- * Paginated returned list of snapshots.
423
- */
424
- snapshots: Snapshot[];
425
- /**
426
- * Total number of snapshots in the project.
427
- */
428
- totalCount: number;
422
+ /**
423
+ * Paginated returned list of snapshots.
424
+ */
425
+ snapshots: Snapshot[];
426
+ /**
427
+ * Total number of snapshots in the project.
428
+ */
429
+ totalCount: number;
429
430
  }
430
431
  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;
432
+ /**
433
+ * Zone to target. If none is passed will use default zone from the config.
434
+ */
435
+ zone?: Zone;
436
+ /**
437
+ * Page number.
438
+ */
439
+ page?: number;
440
+ /**
441
+ * Page size, defines how many entries are returned in one page, must be lower or equal to 100.
442
+ */
443
+ pageSize?: number;
443
444
  };
444
445
  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;
446
+ /**
447
+ * Returns paginated list of volume-types.
448
+ */
449
+ volumeTypes: VolumeType[];
450
+ /**
451
+ * Total number of volume-types currently available in stock.
452
+ */
453
+ totalCount: number;
453
454
  }
454
455
  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[];
456
+ /**
457
+ * Zone to target. If none is passed will use default zone from the config.
458
+ */
459
+ zone?: Zone;
460
+ /**
461
+ * Criteria to use when ordering the list.
462
+ */
463
+ orderBy?: ListVolumesRequestOrderBy;
464
+ /**
465
+ * Filter by Project ID.
466
+ */
467
+ projectId?: string;
468
+ /**
469
+ * Filter by Organization ID.
470
+ */
471
+ organizationId?: string;
472
+ /**
473
+ * Page number.
474
+ */
475
+ page?: number;
476
+ /**
477
+ * Page size, defines how many entries are returned in one page, must be lower or equal to 100.
478
+ */
479
+ pageSize?: number;
480
+ /**
481
+ * Filter the return volumes by their names.
482
+ */
483
+ name?: string;
484
+ /**
485
+ * Filter by a product resource ID linked to this volume (such as an Instance ID).
486
+ */
487
+ productResourceId?: string;
488
+ /**
489
+ * Filter by tags. Only volumes with one or more matching tags will be returned.
490
+ */
491
+ tags?: string[];
491
492
  };
492
493
  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;
494
+ /**
495
+ * Paginated returned list of volumes.
496
+ */
497
+ volumes: Volume[];
498
+ /**
499
+ * Total number of volumes in the project.
500
+ */
501
+ totalCount: number;
501
502
  }
502
503
  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[];
504
+ /**
505
+ * Zone to target. If none is passed will use default zone from the config.
506
+ */
507
+ zone?: Zone;
508
+ /**
509
+ * UUID of the snapshot.
510
+ */
511
+ snapshotId: string;
512
+ /**
513
+ * When defined, is the name of the snapshot.
514
+ */
515
+ name?: string;
516
+ /**
517
+ * List of tags assigned to the snapshot.
518
+ */
519
+ tags?: string[];
519
520
  };
520
521
  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
- */
536
- size?: number;
537
- /**
538
- * List of tags assigned to the volume.
539
- */
540
- tags?: string[];
541
- /**
542
- * The selected value must be available for the volume's current storage class.
543
- */
544
- perfIops?: number;
522
+ /**
523
+ * Zone to target. If none is passed will use default zone from the config.
524
+ */
525
+ zone?: Zone;
526
+ /**
527
+ * UUID of the volume.
528
+ */
529
+ volumeId: string;
530
+ /**
531
+ * When defined, is the new name of the volume.
532
+ */
533
+ name?: string;
534
+ /**
535
+ * Size in bytes of the volume, with a granularity of 1 GB (10^9 bytes).
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;
545
546
  };
547
+ //#endregion