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