@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,186 +256,291 @@ 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 ImportSnapshotFromS3Request = {
|
|
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
|
+
* Scaleway Object Storage bucket where the object is stored.
|
|
359
|
+
*/
|
|
226
360
|
bucket: string;
|
|
227
|
-
/**
|
|
361
|
+
/**
|
|
362
|
+
* The object key inside the given bucket.
|
|
363
|
+
*/
|
|
228
364
|
key: string;
|
|
229
|
-
/**
|
|
365
|
+
/**
|
|
366
|
+
* Name of the snapshot.
|
|
367
|
+
*/
|
|
230
368
|
name: string;
|
|
231
|
-
/**
|
|
369
|
+
/**
|
|
370
|
+
* UUID of the Project to which the volume and the snapshot belong.
|
|
371
|
+
*/
|
|
232
372
|
projectId?: string;
|
|
233
|
-
/**
|
|
373
|
+
/**
|
|
374
|
+
* List of tags assigned to the snapshot.
|
|
375
|
+
*/
|
|
234
376
|
tags?: string[];
|
|
235
|
-
/**
|
|
377
|
+
/**
|
|
378
|
+
* Size of the snapshot.
|
|
379
|
+
*/
|
|
236
380
|
size?: number;
|
|
237
381
|
};
|
|
238
382
|
export type ListSnapshotsRequest = {
|
|
239
|
-
/**
|
|
383
|
+
/**
|
|
384
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
385
|
+
*/
|
|
240
386
|
zone?: ScwZone;
|
|
241
|
-
/**
|
|
387
|
+
/**
|
|
388
|
+
* Criteria to use when ordering the list.
|
|
389
|
+
*/
|
|
242
390
|
orderBy?: ListSnapshotsRequestOrderBy;
|
|
243
|
-
/**
|
|
391
|
+
/**
|
|
392
|
+
* Filter by Project ID.
|
|
393
|
+
*/
|
|
244
394
|
projectId?: string;
|
|
245
|
-
/**
|
|
395
|
+
/**
|
|
396
|
+
* Filter by Organization ID.
|
|
397
|
+
*/
|
|
246
398
|
organizationId?: string;
|
|
247
|
-
/**
|
|
399
|
+
/**
|
|
400
|
+
* Page number.
|
|
401
|
+
*/
|
|
248
402
|
page?: number;
|
|
249
403
|
/**
|
|
250
|
-
* Page size, defines how many entries are returned in one page, must be lower
|
|
251
|
-
* or equal to 100.
|
|
404
|
+
* Page size, defines how many entries are returned in one page, must be lower or equal to 100.
|
|
252
405
|
*/
|
|
253
406
|
pageSize?: number;
|
|
254
|
-
/**
|
|
407
|
+
/**
|
|
408
|
+
* Filter snapshots by the ID of the original volume.
|
|
409
|
+
*/
|
|
255
410
|
volumeId?: string;
|
|
256
|
-
/**
|
|
411
|
+
/**
|
|
412
|
+
* Filter snapshots by their names.
|
|
413
|
+
*/
|
|
257
414
|
name?: string;
|
|
258
415
|
/**
|
|
259
|
-
* Filter by tags. Only snapshots with one or more matching tags will be
|
|
260
|
-
* returned.
|
|
416
|
+
* Filter by tags. Only snapshots with one or more matching tags will be returned.
|
|
261
417
|
*/
|
|
262
418
|
tags?: string[];
|
|
263
419
|
};
|
|
264
420
|
export interface ListSnapshotsResponse {
|
|
265
|
-
/**
|
|
421
|
+
/**
|
|
422
|
+
* Paginated returned list of snapshots.
|
|
423
|
+
*/
|
|
266
424
|
snapshots: Snapshot[];
|
|
267
|
-
/**
|
|
425
|
+
/**
|
|
426
|
+
* Total number of snpashots in the project.
|
|
427
|
+
*/
|
|
268
428
|
totalCount: number;
|
|
269
429
|
}
|
|
270
430
|
export type ListVolumeTypesRequest = {
|
|
271
|
-
/**
|
|
431
|
+
/**
|
|
432
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
433
|
+
*/
|
|
272
434
|
zone?: ScwZone;
|
|
273
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* Page number.
|
|
437
|
+
*/
|
|
274
438
|
page?: number;
|
|
275
439
|
/**
|
|
276
|
-
* Page size, defines how many entries are returned in one page, must be lower
|
|
277
|
-
* or equal to 100.
|
|
440
|
+
* Page size, defines how many entries are returned in one page, must be lower or equal to 100.
|
|
278
441
|
*/
|
|
279
442
|
pageSize?: number;
|
|
280
443
|
};
|
|
281
444
|
export interface ListVolumeTypesResponse {
|
|
282
|
-
/**
|
|
445
|
+
/**
|
|
446
|
+
* Returns paginated list of volume-types.
|
|
447
|
+
*/
|
|
283
448
|
volumeTypes: VolumeType[];
|
|
284
|
-
/**
|
|
449
|
+
/**
|
|
450
|
+
* Total number of volume-types currently available in stock.
|
|
451
|
+
*/
|
|
285
452
|
totalCount: number;
|
|
286
453
|
}
|
|
287
454
|
export type ListVolumesRequest = {
|
|
288
|
-
/**
|
|
455
|
+
/**
|
|
456
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
457
|
+
*/
|
|
289
458
|
zone?: ScwZone;
|
|
290
|
-
/**
|
|
459
|
+
/**
|
|
460
|
+
* Criteria to use when ordering the list.
|
|
461
|
+
*/
|
|
291
462
|
orderBy?: ListVolumesRequestOrderBy;
|
|
292
|
-
/**
|
|
463
|
+
/**
|
|
464
|
+
* Filter by Project ID.
|
|
465
|
+
*/
|
|
293
466
|
projectId?: string;
|
|
294
|
-
/**
|
|
467
|
+
/**
|
|
468
|
+
* Filter by Organization ID.
|
|
469
|
+
*/
|
|
295
470
|
organizationId?: string;
|
|
296
|
-
/**
|
|
471
|
+
/**
|
|
472
|
+
* Page number.
|
|
473
|
+
*/
|
|
297
474
|
page?: number;
|
|
298
475
|
/**
|
|
299
|
-
* Page size, defines how many entries are returned in one page, must be lower
|
|
300
|
-
* or equal to 100.
|
|
476
|
+
* Page size, defines how many entries are returned in one page, must be lower or equal to 100.
|
|
301
477
|
*/
|
|
302
478
|
pageSize?: number;
|
|
303
|
-
/**
|
|
479
|
+
/**
|
|
480
|
+
* Filter the return volumes by their names.
|
|
481
|
+
*/
|
|
304
482
|
name?: string;
|
|
305
483
|
/**
|
|
306
|
-
* Filter by a product resource ID linked to this volume (such as an Instance
|
|
307
|
-
* ID).
|
|
484
|
+
* Filter by a product resource ID linked to this volume (such as an Instance ID).
|
|
308
485
|
*/
|
|
309
486
|
productResourceId?: string;
|
|
310
487
|
/**
|
|
311
|
-
* Filter by tags. Only volumes with one or more matching tags will be
|
|
312
|
-
* returned.
|
|
488
|
+
* Filter by tags. Only volumes with one or more matching tags will be returned.
|
|
313
489
|
*/
|
|
314
490
|
tags?: string[];
|
|
315
491
|
};
|
|
316
492
|
export interface ListVolumesResponse {
|
|
317
|
-
/**
|
|
493
|
+
/**
|
|
494
|
+
* Paginated returned list of volumes.
|
|
495
|
+
*/
|
|
318
496
|
volumes: Volume[];
|
|
319
|
-
/**
|
|
497
|
+
/**
|
|
498
|
+
* Total number of volumes in the project.
|
|
499
|
+
*/
|
|
320
500
|
totalCount: number;
|
|
321
501
|
}
|
|
322
502
|
export type UpdateSnapshotRequest = {
|
|
323
|
-
/**
|
|
503
|
+
/**
|
|
504
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
505
|
+
*/
|
|
324
506
|
zone?: ScwZone;
|
|
325
|
-
/**
|
|
507
|
+
/**
|
|
508
|
+
* UUID of the snapshot.
|
|
509
|
+
*/
|
|
326
510
|
snapshotId: string;
|
|
327
|
-
/**
|
|
511
|
+
/**
|
|
512
|
+
* When defined, is the name of the snapshot.
|
|
513
|
+
*/
|
|
328
514
|
name?: string;
|
|
329
|
-
/**
|
|
515
|
+
/**
|
|
516
|
+
* List of tags assigned to the snapshot.
|
|
517
|
+
*/
|
|
330
518
|
tags?: string[];
|
|
331
519
|
};
|
|
332
520
|
export type UpdateVolumeRequest = {
|
|
333
|
-
/**
|
|
521
|
+
/**
|
|
522
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
523
|
+
*/
|
|
334
524
|
zone?: ScwZone;
|
|
335
|
-
/**
|
|
525
|
+
/**
|
|
526
|
+
* UUID of the volume.
|
|
527
|
+
*/
|
|
336
528
|
volumeId: string;
|
|
337
|
-
/**
|
|
529
|
+
/**
|
|
530
|
+
* When defined, is the new name of the volume.
|
|
531
|
+
*/
|
|
338
532
|
name?: string;
|
|
339
533
|
/**
|
|
340
|
-
* Size in bytes of the volume, with a granularity of 1 GB (10^9 bytes).
|
|
341
|
-
|
|
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.
|
|
342
536
|
*/
|
|
343
537
|
size?: number;
|
|
344
|
-
/**
|
|
538
|
+
/**
|
|
539
|
+
* List of tags assigned to the volume.
|
|
540
|
+
*/
|
|
345
541
|
tags?: string[];
|
|
346
542
|
/**
|
|
347
|
-
* The selected value must be available for the volume's current storage
|
|
348
|
-
* class.
|
|
543
|
+
* The selected value must be available for the volume's current storage class.
|
|
349
544
|
*/
|
|
350
545
|
perfIops?: number;
|
|
351
546
|
};
|