@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
|
@@ -6,301 +6,383 @@ export type KeyState = 'unknown_state' | 'enabled' | 'disabled' | 'pending_key_m
|
|
|
6
6
|
export type ListKeysRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
7
7
|
export interface KeyRotationPolicy {
|
|
8
8
|
/**
|
|
9
|
-
* Time interval between two key rotations. The minimum duration is 24 hours
|
|
10
|
-
* and the maximum duration is 1 year (876000 hours).
|
|
9
|
+
* Time interval between two key rotations. The minimum duration is 24 hours and the maximum duration is 1 year (876000 hours).
|
|
11
10
|
*/
|
|
12
11
|
rotationPeriod?: string;
|
|
13
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Timestamp indicating the next scheduled rotation.
|
|
14
|
+
*/
|
|
14
15
|
nextRotationAt?: Date;
|
|
15
16
|
}
|
|
16
17
|
export interface KeyUsage {
|
|
17
18
|
/**
|
|
18
|
-
* See the `Key.Algorithm.SymmetricEncryption` enum for a description of
|
|
19
|
-
* values.
|
|
19
|
+
* See the `Key.Algorithm.SymmetricEncryption` enum for a description of values.
|
|
20
20
|
*
|
|
21
21
|
* One-of ('usage'): at most one of 'symmetricEncryption' could be set.
|
|
22
22
|
*/
|
|
23
23
|
symmetricEncryption?: KeyAlgorithmSymmetricEncryption;
|
|
24
24
|
}
|
|
25
25
|
export interface Key {
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* ID of the key.
|
|
28
|
+
*/
|
|
27
29
|
id: string;
|
|
28
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* ID of the Project containing the key.
|
|
32
|
+
*/
|
|
29
33
|
projectId: string;
|
|
30
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Name of the key.
|
|
36
|
+
*/
|
|
31
37
|
name: string;
|
|
32
38
|
/**
|
|
33
|
-
* Keys with a usage set to `symmetric_encryption` can encrypt and decrypt
|
|
34
|
-
* data using the `AES-256-GCM` key algorithm. Key Manager currently only
|
|
35
|
-
* supports `AES-256-GCM`.
|
|
39
|
+
* Keys with a usage set to `symmetric_encryption` can encrypt and decrypt data using the `AES-256-GCM` key algorithm. Key Manager currently only supports `AES-256-GCM`.
|
|
36
40
|
*/
|
|
37
41
|
usage?: KeyUsage;
|
|
38
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* See the `Key.State` enum for a description of possible values.
|
|
44
|
+
*/
|
|
39
45
|
state: KeyState;
|
|
40
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* The rotation count tracks the number of times the key has been rotated.
|
|
48
|
+
*/
|
|
41
49
|
rotationCount: number;
|
|
42
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Key creation date.
|
|
52
|
+
*/
|
|
43
53
|
createdAt?: Date;
|
|
44
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Key last modification date.
|
|
56
|
+
*/
|
|
45
57
|
updatedAt?: Date;
|
|
46
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Returns `true` if key protection is applied to the key.
|
|
60
|
+
*/
|
|
47
61
|
protected: boolean;
|
|
48
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* Returns `true` if the key is locked.
|
|
64
|
+
*/
|
|
49
65
|
locked: boolean;
|
|
50
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* Description of the key.
|
|
68
|
+
*/
|
|
51
69
|
description?: string;
|
|
52
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* List of the key's tags.
|
|
72
|
+
*/
|
|
53
73
|
tags: string[];
|
|
54
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* Key last rotation date.
|
|
76
|
+
*/
|
|
55
77
|
rotatedAt?: Date;
|
|
56
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* Key rotation policy.
|
|
80
|
+
*/
|
|
57
81
|
rotationPolicy?: KeyRotationPolicy;
|
|
58
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* Refer to the `Key.Origin` enum for a description of values.
|
|
84
|
+
*/
|
|
59
85
|
origin: KeyOrigin;
|
|
60
|
-
/**
|
|
86
|
+
/**
|
|
87
|
+
* Region where the key is stored.
|
|
88
|
+
*/
|
|
61
89
|
region: ScwRegion;
|
|
62
90
|
}
|
|
63
91
|
export type CreateKeyRequest = {
|
|
64
92
|
/**
|
|
65
|
-
* Region to target. If none is passed will use default region from the
|
|
66
|
-
* config.
|
|
93
|
+
* Region to target. If none is passed will use default region from the config.
|
|
67
94
|
*/
|
|
68
95
|
region?: ScwRegion;
|
|
69
|
-
/**
|
|
96
|
+
/**
|
|
97
|
+
* ID of the Project containing the key.
|
|
98
|
+
*/
|
|
70
99
|
projectId?: string;
|
|
71
|
-
/**
|
|
100
|
+
/**
|
|
101
|
+
* (Optional) Name of the key.
|
|
102
|
+
*/
|
|
72
103
|
name?: string;
|
|
73
104
|
/**
|
|
74
|
-
* See the `Key.Algorithm.SymmetricEncryption` enum for a description of
|
|
75
|
-
* values.
|
|
105
|
+
* See the `Key.Algorithm.SymmetricEncryption` enum for a description of values.
|
|
76
106
|
*/
|
|
77
107
|
usage?: KeyUsage;
|
|
78
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* (Optional) Description of the key.
|
|
110
|
+
*/
|
|
79
111
|
description?: string;
|
|
80
|
-
/**
|
|
112
|
+
/**
|
|
113
|
+
* (Optional) List of the key's tags.
|
|
114
|
+
*/
|
|
81
115
|
tags?: string[];
|
|
82
|
-
/**
|
|
116
|
+
/**
|
|
117
|
+
* If not specified, no rotation policy will be applied to the key.
|
|
118
|
+
*/
|
|
83
119
|
rotationPolicy?: KeyRotationPolicy;
|
|
84
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Default value is `false`.
|
|
122
|
+
*/
|
|
85
123
|
unprotected: boolean;
|
|
86
|
-
/**
|
|
124
|
+
/**
|
|
125
|
+
* Refer to the `Key.Origin` enum for a description of values.
|
|
126
|
+
*/
|
|
87
127
|
origin?: KeyOrigin;
|
|
88
128
|
};
|
|
89
129
|
export interface DataKey {
|
|
90
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* ID of the data encryption key.
|
|
132
|
+
*/
|
|
91
133
|
keyId: string;
|
|
92
|
-
/**
|
|
134
|
+
/**
|
|
135
|
+
* Symmetric encryption algorithm of the data encryption key (`AES-256-GCM`).
|
|
136
|
+
*/
|
|
93
137
|
algorithm: DataKeyAlgorithmSymmetricEncryption;
|
|
94
138
|
/**
|
|
95
|
-
* Your data encryption key's ciphertext can be stored safely. It can only be
|
|
96
|
-
* decrypted through the keys you create in Key Manager, using the relevant
|
|
97
|
-
* key ID.
|
|
139
|
+
* Your data encryption key's ciphertext can be stored safely. It can only be decrypted through the keys you create in Key Manager, using the relevant key ID.
|
|
98
140
|
*/
|
|
99
141
|
ciphertext: string;
|
|
100
142
|
/**
|
|
101
|
-
* (Optional) Your data encryption key's plaintext allows you to use the key
|
|
102
|
-
* immediately upon creation. It must neither be stored or shared.
|
|
143
|
+
* (Optional) Your data encryption key's plaintext allows you to use the key immediately upon creation. It must neither be stored or shared.
|
|
103
144
|
*/
|
|
104
145
|
plaintext?: string;
|
|
105
|
-
/**
|
|
146
|
+
/**
|
|
147
|
+
* Data encryption key creation date.
|
|
148
|
+
*/
|
|
106
149
|
createdAt?: Date;
|
|
107
150
|
}
|
|
108
151
|
export type DecryptRequest = {
|
|
109
152
|
/**
|
|
110
|
-
* Region to target. If none is passed will use default region from the
|
|
111
|
-
* config.
|
|
153
|
+
* Region to target. If none is passed will use default region from the config.
|
|
112
154
|
*/
|
|
113
155
|
region?: ScwRegion;
|
|
114
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* ID of the key to decrypt.
|
|
158
|
+
*/
|
|
115
159
|
keyId: string;
|
|
116
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* Data size must be between 1 and 131071 bytes.
|
|
162
|
+
*/
|
|
117
163
|
ciphertext: string;
|
|
118
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* The additional data must match the value passed in the encryption request.
|
|
166
|
+
*/
|
|
119
167
|
associatedData?: string;
|
|
120
168
|
};
|
|
121
169
|
export interface DecryptResponse {
|
|
122
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* ID of the key used for decryption.
|
|
172
|
+
*/
|
|
123
173
|
keyId: string;
|
|
124
|
-
/**
|
|
174
|
+
/**
|
|
175
|
+
* Key's decrypted data.
|
|
176
|
+
*/
|
|
125
177
|
plaintext: string;
|
|
126
178
|
/**
|
|
127
|
-
* If the data was already encrypted with the latest key rotation, no output
|
|
128
|
-
* will be returned in the response object.
|
|
179
|
+
* If the data was already encrypted with the latest key rotation, no output will be returned in the response object.
|
|
129
180
|
*/
|
|
130
181
|
ciphertext?: string;
|
|
131
182
|
}
|
|
132
183
|
export type DeleteKeyMaterialRequest = {
|
|
133
184
|
/**
|
|
134
|
-
* Region to target. If none is passed will use default region from the
|
|
135
|
-
* config.
|
|
185
|
+
* Region to target. If none is passed will use default region from the config.
|
|
136
186
|
*/
|
|
137
187
|
region?: ScwRegion;
|
|
138
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* ID of the key of which to delete the key material.
|
|
190
|
+
*/
|
|
139
191
|
keyId: string;
|
|
140
192
|
};
|
|
141
193
|
export type DeleteKeyRequest = {
|
|
142
194
|
/**
|
|
143
|
-
* Region to target. If none is passed will use default region from the
|
|
144
|
-
* config.
|
|
195
|
+
* Region to target. If none is passed will use default region from the config.
|
|
145
196
|
*/
|
|
146
197
|
region?: ScwRegion;
|
|
147
|
-
/**
|
|
198
|
+
/**
|
|
199
|
+
* ID of the key to delete.
|
|
200
|
+
*/
|
|
148
201
|
keyId: string;
|
|
149
202
|
};
|
|
150
203
|
export type DisableKeyRequest = {
|
|
151
204
|
/**
|
|
152
|
-
* Region to target. If none is passed will use default region from the
|
|
153
|
-
* config.
|
|
205
|
+
* Region to target. If none is passed will use default region from the config.
|
|
154
206
|
*/
|
|
155
207
|
region?: ScwRegion;
|
|
156
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* ID of the key to disable.
|
|
210
|
+
*/
|
|
157
211
|
keyId: string;
|
|
158
212
|
};
|
|
159
213
|
export type EnableKeyRequest = {
|
|
160
214
|
/**
|
|
161
|
-
* Region to target. If none is passed will use default region from the
|
|
162
|
-
* config.
|
|
215
|
+
* Region to target. If none is passed will use default region from the config.
|
|
163
216
|
*/
|
|
164
217
|
region?: ScwRegion;
|
|
165
|
-
/**
|
|
218
|
+
/**
|
|
219
|
+
* ID of the key to enable.
|
|
220
|
+
*/
|
|
166
221
|
keyId: string;
|
|
167
222
|
};
|
|
168
223
|
export type EncryptRequest = {
|
|
169
224
|
/**
|
|
170
|
-
* Region to target. If none is passed will use default region from the
|
|
171
|
-
* config.
|
|
225
|
+
* Region to target. If none is passed will use default region from the config.
|
|
172
226
|
*/
|
|
173
227
|
region?: ScwRegion;
|
|
174
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* ID of the key to encrypt.
|
|
230
|
+
*/
|
|
175
231
|
keyId: string;
|
|
176
|
-
/**
|
|
232
|
+
/**
|
|
233
|
+
* Data size must be between 1 and 65535 bytes.
|
|
234
|
+
*/
|
|
177
235
|
plaintext: string;
|
|
178
236
|
/**
|
|
179
|
-
* Additional data which will not be encrypted, but authenticated and appended
|
|
180
|
-
* to the encrypted payload.
|
|
237
|
+
* Additional data which will not be encrypted, but authenticated and appended to the encrypted payload.
|
|
181
238
|
*/
|
|
182
239
|
associatedData?: string;
|
|
183
240
|
};
|
|
184
241
|
export interface EncryptResponse {
|
|
185
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* ID of the key used for encryption.
|
|
244
|
+
*/
|
|
186
245
|
keyId: string;
|
|
187
|
-
/**
|
|
246
|
+
/**
|
|
247
|
+
* Key's encrypted data.
|
|
248
|
+
*/
|
|
188
249
|
ciphertext: string;
|
|
189
250
|
}
|
|
190
251
|
export type GenerateDataKeyRequest = {
|
|
191
252
|
/**
|
|
192
|
-
* Region to target. If none is passed will use default region from the
|
|
193
|
-
* config.
|
|
253
|
+
* Region to target. If none is passed will use default region from the config.
|
|
194
254
|
*/
|
|
195
255
|
region?: ScwRegion;
|
|
196
|
-
/**
|
|
256
|
+
/**
|
|
257
|
+
* ID of the key.
|
|
258
|
+
*/
|
|
197
259
|
keyId: string;
|
|
198
260
|
/**
|
|
199
|
-
* See the `DataKey.Algorithm.SymmetricEncryption` enum for a description of
|
|
200
|
-
* values.
|
|
261
|
+
* See the `DataKey.Algorithm.SymmetricEncryption` enum for a description of values.
|
|
201
262
|
*/
|
|
202
263
|
algorithm?: DataKeyAlgorithmSymmetricEncryption;
|
|
203
264
|
/**
|
|
204
|
-
* Default value is `false`, meaning that the plaintext is returned.
|
|
205
|
-
|
|
206
|
-
* object.
|
|
265
|
+
* Default value is `false`, meaning that the plaintext is returned.
|
|
266
|
+
Set it to `true` if you do not wish the plaintext to be returned in the response object.
|
|
207
267
|
*/
|
|
208
268
|
withoutPlaintext: boolean;
|
|
209
269
|
};
|
|
210
270
|
export type GetKeyRequest = {
|
|
211
271
|
/**
|
|
212
|
-
* Region to target. If none is passed will use default region from the
|
|
213
|
-
* config.
|
|
272
|
+
* Region to target. If none is passed will use default region from the config.
|
|
214
273
|
*/
|
|
215
274
|
region?: ScwRegion;
|
|
216
|
-
/**
|
|
275
|
+
/**
|
|
276
|
+
* ID of the key to target.
|
|
277
|
+
*/
|
|
217
278
|
keyId: string;
|
|
218
279
|
};
|
|
219
280
|
export type ImportKeyMaterialRequest = {
|
|
220
281
|
/**
|
|
221
|
-
* Region to target. If none is passed will use default region from the
|
|
222
|
-
* config.
|
|
282
|
+
* Region to target. If none is passed will use default region from the config.
|
|
223
283
|
*/
|
|
224
284
|
region?: ScwRegion;
|
|
225
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* The key's origin must be `external`.
|
|
287
|
+
*/
|
|
226
288
|
keyId: string;
|
|
227
289
|
/**
|
|
228
|
-
* The key material The key material is a random sequence of bytes used to
|
|
229
|
-
* derive a cryptographic key.
|
|
290
|
+
* The key material The key material is a random sequence of bytes used to derive a cryptographic key.
|
|
230
291
|
*/
|
|
231
292
|
keyMaterial: string;
|
|
232
293
|
/**
|
|
233
|
-
* A salt is random data added to key material to ensure unique derived keys,
|
|
234
|
-
* even if the input is similar. It helps strengthen security when the key
|
|
235
|
-
* material has low randomness (low entropy).
|
|
294
|
+
* A salt is random data added to key material to ensure unique derived keys, even if the input is similar. It helps strengthen security when the key material has low randomness (low entropy).
|
|
236
295
|
*/
|
|
237
296
|
salt?: string;
|
|
238
297
|
};
|
|
239
298
|
export type ListKeysRequest = {
|
|
240
299
|
/**
|
|
241
|
-
* Region to target. If none is passed will use default region from the
|
|
242
|
-
* config.
|
|
300
|
+
* Region to target. If none is passed will use default region from the config.
|
|
243
301
|
*/
|
|
244
302
|
region?: ScwRegion;
|
|
245
|
-
/**
|
|
303
|
+
/**
|
|
304
|
+
* (Optional) Filter by Organization ID.
|
|
305
|
+
*/
|
|
246
306
|
organizationId?: string;
|
|
247
|
-
/**
|
|
307
|
+
/**
|
|
308
|
+
* (Optional) Filter by Project ID.
|
|
309
|
+
*/
|
|
248
310
|
projectId?: string;
|
|
249
311
|
orderBy?: ListKeysRequestOrderBy;
|
|
250
312
|
page?: number;
|
|
251
313
|
pageSize?: number;
|
|
252
|
-
/**
|
|
314
|
+
/**
|
|
315
|
+
* (Optional) List of tags to filter on.
|
|
316
|
+
*/
|
|
253
317
|
tags?: string[];
|
|
254
|
-
/**
|
|
318
|
+
/**
|
|
319
|
+
* (Optional) Filter by key name.
|
|
320
|
+
*/
|
|
255
321
|
name?: string;
|
|
256
322
|
};
|
|
257
323
|
export interface ListKeysResponse {
|
|
258
|
-
/**
|
|
324
|
+
/**
|
|
325
|
+
* Single page of keys matching the requested criteria.
|
|
326
|
+
*/
|
|
259
327
|
keys: Key[];
|
|
260
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* Total count of keys matching the requested criteria.
|
|
330
|
+
*/
|
|
261
331
|
totalCount: number;
|
|
262
332
|
}
|
|
263
333
|
export type ProtectKeyRequest = {
|
|
264
334
|
/**
|
|
265
|
-
* Region to target. If none is passed will use default region from the
|
|
266
|
-
* config.
|
|
335
|
+
* Region to target. If none is passed will use default region from the config.
|
|
267
336
|
*/
|
|
268
337
|
region?: ScwRegion;
|
|
269
|
-
/**
|
|
338
|
+
/**
|
|
339
|
+
* ID of the key to apply key protection to.
|
|
340
|
+
*/
|
|
270
341
|
keyId: string;
|
|
271
342
|
};
|
|
272
343
|
export type RotateKeyRequest = {
|
|
273
344
|
/**
|
|
274
|
-
* Region to target. If none is passed will use default region from the
|
|
275
|
-
* config.
|
|
345
|
+
* Region to target. If none is passed will use default region from the config.
|
|
276
346
|
*/
|
|
277
347
|
region?: ScwRegion;
|
|
278
|
-
/**
|
|
348
|
+
/**
|
|
349
|
+
* ID of the key to rotate.
|
|
350
|
+
*/
|
|
279
351
|
keyId: string;
|
|
280
352
|
};
|
|
281
353
|
export type UnprotectKeyRequest = {
|
|
282
354
|
/**
|
|
283
|
-
* Region to target. If none is passed will use default region from the
|
|
284
|
-
* config.
|
|
355
|
+
* Region to target. If none is passed will use default region from the config.
|
|
285
356
|
*/
|
|
286
357
|
region?: ScwRegion;
|
|
287
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* ID of the key to remove key protection from.
|
|
360
|
+
*/
|
|
288
361
|
keyId: string;
|
|
289
362
|
};
|
|
290
363
|
export type UpdateKeyRequest = {
|
|
291
364
|
/**
|
|
292
|
-
* Region to target. If none is passed will use default region from the
|
|
293
|
-
* config.
|
|
365
|
+
* Region to target. If none is passed will use default region from the config.
|
|
294
366
|
*/
|
|
295
367
|
region?: ScwRegion;
|
|
296
|
-
/**
|
|
368
|
+
/**
|
|
369
|
+
* ID of the key to update.
|
|
370
|
+
*/
|
|
297
371
|
keyId: string;
|
|
298
|
-
/**
|
|
372
|
+
/**
|
|
373
|
+
* (Optional) Updated name of the key.
|
|
374
|
+
*/
|
|
299
375
|
name?: string;
|
|
300
|
-
/**
|
|
376
|
+
/**
|
|
377
|
+
* (Optional) Updated description of the key.
|
|
378
|
+
*/
|
|
301
379
|
description?: string;
|
|
302
|
-
/**
|
|
380
|
+
/**
|
|
381
|
+
* (Optional) Updated list of the key's tags.
|
|
382
|
+
*/
|
|
303
383
|
tags?: string[];
|
|
304
|
-
/**
|
|
384
|
+
/**
|
|
385
|
+
* If not specified, the key's existing rotation policy applies.
|
|
386
|
+
*/
|
|
305
387
|
rotationPolicy?: KeyRotationPolicy;
|
|
306
388
|
};
|
|
@@ -26,16 +26,14 @@ class API extends api.API {
|
|
|
26
26
|
marshalling_gen.unmarshalListImagesResponse
|
|
27
27
|
);
|
|
28
28
|
/**
|
|
29
|
-
* List marketplace images. List all available images on the marketplace,
|
|
30
|
-
* their UUID, CPU architecture and description.
|
|
29
|
+
* List marketplace images. List all available images on the marketplace, their UUID, CPU architecture and description.
|
|
31
30
|
*
|
|
32
31
|
* @param request - The request {@link ListImagesRequest}
|
|
33
32
|
* @returns A Promise of ListImagesResponse
|
|
34
33
|
*/
|
|
35
34
|
listImages = (request) => resourcePaginator.enrichForPagination("images", this.pageOfListImages, request);
|
|
36
35
|
/**
|
|
37
|
-
* Get a specific marketplace image. Get detailed information about a
|
|
38
|
-
* marketplace image, specified by its `image_id` (UUID format).
|
|
36
|
+
* Get a specific marketplace image. Get detailed information about a marketplace image, specified by its `image_id` (UUID format).
|
|
39
37
|
*
|
|
40
38
|
* @param request - The request {@link GetImageRequest}
|
|
41
39
|
* @returns A Promise of Image
|
|
@@ -64,17 +62,14 @@ class API extends api.API {
|
|
|
64
62
|
marshalling_gen.unmarshalListVersionsResponse
|
|
65
63
|
);
|
|
66
64
|
/**
|
|
67
|
-
* List versions of an Image. Get a list of all available version of an image,
|
|
68
|
-
* specified by its `image_id` (UUID format).
|
|
65
|
+
* List versions of an Image. Get a list of all available version of an image, specified by its `image_id` (UUID format).
|
|
69
66
|
*
|
|
70
67
|
* @param request - The request {@link ListVersionsRequest}
|
|
71
68
|
* @returns A Promise of ListVersionsResponse
|
|
72
69
|
*/
|
|
73
70
|
listVersions = (request) => resourcePaginator.enrichForPagination("versions", this.pageOfListVersions, request);
|
|
74
71
|
/**
|
|
75
|
-
* Get a specific image version. Get information such as the name, creation
|
|
76
|
-
* date, last update and published date for an image version specified by its
|
|
77
|
-
* `version_id` (UUID format).
|
|
72
|
+
* Get a specific image version. Get information such as the name, creation date, last update and published date for an image version specified by its `version_id` (UUID format).
|
|
78
73
|
*
|
|
79
74
|
* @param request - The request {@link GetVersionRequest}
|
|
80
75
|
* @returns A Promise of Version
|
|
@@ -111,20 +106,14 @@ class API extends api.API {
|
|
|
111
106
|
marshalling_gen.unmarshalListLocalImagesResponse
|
|
112
107
|
);
|
|
113
108
|
/**
|
|
114
|
-
* List local images from a specific image or version. List information about
|
|
115
|
-
* local images in a specific Availability Zone, specified by its `image_id`
|
|
116
|
-
* (UUID format), `version_id` (UUID format) or `image_label`. Only one of
|
|
117
|
-
* these three parameters may be set.
|
|
109
|
+
* List local images from a specific image or version. List information about local images in a specific Availability Zone, specified by its `image_id` (UUID format), `version_id` (UUID format) or `image_label`. Only one of these three parameters may be set.
|
|
118
110
|
*
|
|
119
111
|
* @param request - The request {@link ListLocalImagesRequest}
|
|
120
112
|
* @returns A Promise of ListLocalImagesResponse
|
|
121
113
|
*/
|
|
122
114
|
listLocalImages = (request = {}) => resourcePaginator.enrichForPagination("localImages", this.pageOfListLocalImages, request);
|
|
123
115
|
/**
|
|
124
|
-
* Get a specific local image by ID. Get detailed information about a local
|
|
125
|
-
* image, including compatible commercial types, supported architecture,
|
|
126
|
-
* labels and the Availability Zone of the image, specified by its
|
|
127
|
-
* `local_image_id` (UUID format).
|
|
116
|
+
* Get a specific local image by ID. Get detailed information about a local image, including compatible commercial types, supported architecture, labels and the Availability Zone of the image, specified by its `local_image_id` (UUID format).
|
|
128
117
|
*
|
|
129
118
|
* @param request - The request {@link GetLocalImageRequest}
|
|
130
119
|
* @returns A Promise of LocalImage
|
|
@@ -151,16 +140,14 @@ class API extends api.API {
|
|
|
151
140
|
marshalling_gen.unmarshalListCategoriesResponse
|
|
152
141
|
);
|
|
153
142
|
/**
|
|
154
|
-
* List existing image categories. Get a list of all existing categories. The
|
|
155
|
-
* output can be paginated.
|
|
143
|
+
* List existing image categories. Get a list of all existing categories. The output can be paginated.
|
|
156
144
|
*
|
|
157
145
|
* @param request - The request {@link ListCategoriesRequest}
|
|
158
146
|
* @returns A Promise of ListCategoriesResponse
|
|
159
147
|
*/
|
|
160
148
|
listCategories = (request = {}) => resourcePaginator.enrichForPagination("categories", this.pageOfListCategories, request);
|
|
161
149
|
/**
|
|
162
|
-
* Get a specific category. Get information about a specific category of the
|
|
163
|
-
* marketplace catalog, specified by its `category_id` (UUID format).
|
|
150
|
+
* Get a specific category. Get information about a specific category of the marketplace catalog, specified by its `category_id` (UUID format).
|
|
164
151
|
*
|
|
165
152
|
* @param request - The request {@link GetCategoryRequest}
|
|
166
153
|
* @returns A Promise of Category
|
|
@@ -2,15 +2,13 @@ import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
|
2
2
|
import type { Category, GetCategoryRequest, GetImageRequest, GetLocalImageRequest, GetVersionRequest, Image, ListCategoriesRequest, ListCategoriesResponse, ListImagesRequest, ListImagesResponse, ListLocalImagesRequest, ListLocalImagesResponse, ListVersionsRequest, ListVersionsResponse, LocalImage, Version } from './types.gen';
|
|
3
3
|
/**
|
|
4
4
|
* Marketplace API.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Scaleway Instance.
|
|
5
|
+
|
|
6
|
+
This API allows you to find available images for use when launching a Scaleway Instance.
|
|
8
7
|
*/
|
|
9
8
|
export declare class API extends ParentAPI {
|
|
10
9
|
protected pageOfListImages: (request: Readonly<ListImagesRequest>) => Promise<ListImagesResponse>;
|
|
11
10
|
/**
|
|
12
|
-
* List marketplace images. List all available images on the marketplace,
|
|
13
|
-
* their UUID, CPU architecture and description.
|
|
11
|
+
* List marketplace images. List all available images on the marketplace, their UUID, CPU architecture and description.
|
|
14
12
|
*
|
|
15
13
|
* @param request - The request {@link ListImagesRequest}
|
|
16
14
|
* @returns A Promise of ListImagesResponse
|
|
@@ -20,8 +18,7 @@ export declare class API extends ParentAPI {
|
|
|
20
18
|
[Symbol.asyncIterator]: () => AsyncGenerator<Image[], void, void>;
|
|
21
19
|
};
|
|
22
20
|
/**
|
|
23
|
-
* Get a specific marketplace image. Get detailed information about a
|
|
24
|
-
* marketplace image, specified by its `image_id` (UUID format).
|
|
21
|
+
* Get a specific marketplace image. Get detailed information about a marketplace image, specified by its `image_id` (UUID format).
|
|
25
22
|
*
|
|
26
23
|
* @param request - The request {@link GetImageRequest}
|
|
27
24
|
* @returns A Promise of Image
|
|
@@ -29,8 +26,7 @@ export declare class API extends ParentAPI {
|
|
|
29
26
|
getImage: (request: Readonly<GetImageRequest>) => Promise<Image>;
|
|
30
27
|
protected pageOfListVersions: (request: Readonly<ListVersionsRequest>) => Promise<ListVersionsResponse>;
|
|
31
28
|
/**
|
|
32
|
-
* List versions of an Image. Get a list of all available version of an image,
|
|
33
|
-
* specified by its `image_id` (UUID format).
|
|
29
|
+
* List versions of an Image. Get a list of all available version of an image, specified by its `image_id` (UUID format).
|
|
34
30
|
*
|
|
35
31
|
* @param request - The request {@link ListVersionsRequest}
|
|
36
32
|
* @returns A Promise of ListVersionsResponse
|
|
@@ -40,9 +36,7 @@ export declare class API extends ParentAPI {
|
|
|
40
36
|
[Symbol.asyncIterator]: () => AsyncGenerator<Version[], void, void>;
|
|
41
37
|
};
|
|
42
38
|
/**
|
|
43
|
-
* Get a specific image version. Get information such as the name, creation
|
|
44
|
-
* date, last update and published date for an image version specified by its
|
|
45
|
-
* `version_id` (UUID format).
|
|
39
|
+
* Get a specific image version. Get information such as the name, creation date, last update and published date for an image version specified by its `version_id` (UUID format).
|
|
46
40
|
*
|
|
47
41
|
* @param request - The request {@link GetVersionRequest}
|
|
48
42
|
* @returns A Promise of Version
|
|
@@ -50,10 +44,7 @@ export declare class API extends ParentAPI {
|
|
|
50
44
|
getVersion: (request: Readonly<GetVersionRequest>) => Promise<Version>;
|
|
51
45
|
protected pageOfListLocalImages: (request?: Readonly<ListLocalImagesRequest>) => Promise<ListLocalImagesResponse>;
|
|
52
46
|
/**
|
|
53
|
-
* List local images from a specific image or version. List information about
|
|
54
|
-
* local images in a specific Availability Zone, specified by its `image_id`
|
|
55
|
-
* (UUID format), `version_id` (UUID format) or `image_label`. Only one of
|
|
56
|
-
* these three parameters may be set.
|
|
47
|
+
* List local images from a specific image or version. List information about local images in a specific Availability Zone, specified by its `image_id` (UUID format), `version_id` (UUID format) or `image_label`. Only one of these three parameters may be set.
|
|
57
48
|
*
|
|
58
49
|
* @param request - The request {@link ListLocalImagesRequest}
|
|
59
50
|
* @returns A Promise of ListLocalImagesResponse
|
|
@@ -63,10 +54,7 @@ export declare class API extends ParentAPI {
|
|
|
63
54
|
[Symbol.asyncIterator]: () => AsyncGenerator<LocalImage[], void, void>;
|
|
64
55
|
};
|
|
65
56
|
/**
|
|
66
|
-
* Get a specific local image by ID. Get detailed information about a local
|
|
67
|
-
* image, including compatible commercial types, supported architecture,
|
|
68
|
-
* labels and the Availability Zone of the image, specified by its
|
|
69
|
-
* `local_image_id` (UUID format).
|
|
57
|
+
* Get a specific local image by ID. Get detailed information about a local image, including compatible commercial types, supported architecture, labels and the Availability Zone of the image, specified by its `local_image_id` (UUID format).
|
|
70
58
|
*
|
|
71
59
|
* @param request - The request {@link GetLocalImageRequest}
|
|
72
60
|
* @returns A Promise of LocalImage
|
|
@@ -74,8 +62,7 @@ export declare class API extends ParentAPI {
|
|
|
74
62
|
getLocalImage: (request: Readonly<GetLocalImageRequest>) => Promise<LocalImage>;
|
|
75
63
|
protected pageOfListCategories: (request?: Readonly<ListCategoriesRequest>) => Promise<ListCategoriesResponse>;
|
|
76
64
|
/**
|
|
77
|
-
* List existing image categories. Get a list of all existing categories. The
|
|
78
|
-
* output can be paginated.
|
|
65
|
+
* List existing image categories. Get a list of all existing categories. The output can be paginated.
|
|
79
66
|
*
|
|
80
67
|
* @param request - The request {@link ListCategoriesRequest}
|
|
81
68
|
* @returns A Promise of ListCategoriesResponse
|
|
@@ -85,8 +72,7 @@ export declare class API extends ParentAPI {
|
|
|
85
72
|
[Symbol.asyncIterator]: () => AsyncGenerator<Category[], void, void>;
|
|
86
73
|
};
|
|
87
74
|
/**
|
|
88
|
-
* Get a specific category. Get information about a specific category of the
|
|
89
|
-
* marketplace catalog, specified by its `category_id` (UUID format).
|
|
75
|
+
* Get a specific category. Get information about a specific category of the marketplace catalog, specified by its `category_id` (UUID format).
|
|
90
76
|
*
|
|
91
77
|
* @param request - The request {@link GetCategoryRequest}
|
|
92
78
|
* @returns A Promise of Category
|