@scaleway/sdk 2.65.0 → 2.67.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/applesilicon/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
- package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
- package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
- package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
- package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
- package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
- package/dist/api/cockpit/v1/api.gen.cjs +14 -17
- package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
- package/dist/api/cockpit/v1/api.gen.js +15 -18
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
- package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
- package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
- package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
- package/dist/api/container/v1beta1/api.gen.cjs +5 -1
- package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/container/v1beta1/api.gen.js +5 -1
- package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
- package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
- package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
- package/dist/api/function/v1beta1/api.gen.cjs +5 -1
- package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/function/v1beta1/api.gen.js +5 -1
- package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
- package/dist/api/iot/v1/api.gen.d.ts +2 -2
- package/dist/api/iot/v1/types.gen.d.ts +38 -38
- package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
- package/dist/api/k8s/v1/api.gen.cjs +5 -1
- package/dist/api/k8s/v1/api.gen.d.ts +2 -2
- package/dist/api/k8s/v1/api.gen.js +5 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/types.gen.d.ts +42 -41
- package/dist/api/lb/v1/marshalling.gen.cjs +5 -0
- package/dist/api/lb/v1/marshalling.gen.js +5 -0
- package/dist/api/lb/v1/types.gen.d.ts +25 -0
- package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
- package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
- package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
- package/dist/api/rdb/v1/api.gen.cjs +5 -1
- package/dist/api/rdb/v1/api.gen.d.ts +2 -2
- package/dist/api/rdb/v1/api.gen.js +5 -1
- package/dist/api/rdb/v1/types.gen.d.ts +67 -67
- package/dist/api/redis/v1/api.gen.d.ts +2 -2
- package/dist/api/redis/v1/types.gen.d.ts +28 -28
- package/dist/api/registry/v1/api.gen.cjs +5 -1
- package/dist/api/registry/v1/api.gen.d.ts +2 -2
- package/dist/api/registry/v1/api.gen.js +5 -1
- package/dist/api/registry/v1/types.gen.d.ts +14 -14
- package/dist/api/secret/v1beta1/api.gen.cjs +38 -1
- package/dist/api/secret/v1beta1/api.gen.d.ts +19 -3
- package/dist/api/secret/v1beta1/api.gen.js +38 -1
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +52 -25
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
- package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
- package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +4 -3
- package/dist/api/vpcgw/v1/api.gen.js +6 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
- package/dist/api/vpcgw/v1/types.gen.d.ts +49 -44
- package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
- package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
- package/dist/api/webhosting/v1/marshalling.gen.cjs +7 -3
- package/dist/api/webhosting/v1/marshalling.gen.js +7 -3
- package/dist/api/webhosting/v1/types.gen.d.ts +14 -6
- package/dist/scw/client-settings.cjs +2 -2
- package/dist/scw/client-settings.d.ts +2 -2
- package/dist/scw/client-settings.js +2 -2
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Region } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
2
|
export type ListNatsAccountsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc';
|
|
3
3
|
export type ListNatsCredentialsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc';
|
|
4
4
|
export type ListSnsCredentialsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc' | 'name_asc' | 'name_desc';
|
|
@@ -55,7 +55,7 @@ export interface NatsAccount {
|
|
|
55
55
|
/** Project ID of the Project containing the NATS account. */
|
|
56
56
|
projectId: string;
|
|
57
57
|
/** Region where the NATS account is deployed. */
|
|
58
|
-
region:
|
|
58
|
+
region: ScwRegion;
|
|
59
59
|
/** NATS account creation date. */
|
|
60
60
|
createdAt?: Date;
|
|
61
61
|
/** NATS account last modification date. */
|
|
@@ -88,7 +88,7 @@ export interface SnsCredentials {
|
|
|
88
88
|
/** Project ID of the Project containing the credentials. */
|
|
89
89
|
projectId: string;
|
|
90
90
|
/** Region where the credentials exists. */
|
|
91
|
-
region:
|
|
91
|
+
region: ScwRegion;
|
|
92
92
|
/** Credentials creation date. */
|
|
93
93
|
createdAt?: Date;
|
|
94
94
|
/** Credentials last modification date. */
|
|
@@ -113,7 +113,7 @@ export interface SqsCredentials {
|
|
|
113
113
|
/** Project ID of the Project containing the credentials. */
|
|
114
114
|
projectId: string;
|
|
115
115
|
/** Region where the credentials exists. */
|
|
116
|
-
region:
|
|
116
|
+
region: ScwRegion;
|
|
117
117
|
/** Credentials creation date. */
|
|
118
118
|
createdAt?: Date;
|
|
119
119
|
/** Credentials last modification date. */
|
|
@@ -156,7 +156,7 @@ export type NatsApiCreateNatsAccountRequest = {
|
|
|
156
156
|
* Region to target. If none is passed will use default region from the
|
|
157
157
|
* config.
|
|
158
158
|
*/
|
|
159
|
-
region?:
|
|
159
|
+
region?: ScwRegion;
|
|
160
160
|
/** NATS account name. */
|
|
161
161
|
name?: string;
|
|
162
162
|
/** Project containing the NATS account. */
|
|
@@ -167,7 +167,7 @@ export type NatsApiCreateNatsCredentialsRequest = {
|
|
|
167
167
|
* Region to target. If none is passed will use default region from the
|
|
168
168
|
* config.
|
|
169
169
|
*/
|
|
170
|
-
region?:
|
|
170
|
+
region?: ScwRegion;
|
|
171
171
|
/** NATS account containing the credentials. */
|
|
172
172
|
natsAccountId: string;
|
|
173
173
|
/** Name of the credentials. */
|
|
@@ -178,7 +178,7 @@ export type NatsApiDeleteNatsAccountRequest = {
|
|
|
178
178
|
* Region to target. If none is passed will use default region from the
|
|
179
179
|
* config.
|
|
180
180
|
*/
|
|
181
|
-
region?:
|
|
181
|
+
region?: ScwRegion;
|
|
182
182
|
/** ID of the NATS account to delete. */
|
|
183
183
|
natsAccountId: string;
|
|
184
184
|
};
|
|
@@ -187,7 +187,7 @@ export type NatsApiDeleteNatsCredentialsRequest = {
|
|
|
187
187
|
* Region to target. If none is passed will use default region from the
|
|
188
188
|
* config.
|
|
189
189
|
*/
|
|
190
|
-
region?:
|
|
190
|
+
region?: ScwRegion;
|
|
191
191
|
/** ID of the credentials to delete. */
|
|
192
192
|
natsCredentialsId: string;
|
|
193
193
|
};
|
|
@@ -196,7 +196,7 @@ export type NatsApiGetNatsAccountRequest = {
|
|
|
196
196
|
* Region to target. If none is passed will use default region from the
|
|
197
197
|
* config.
|
|
198
198
|
*/
|
|
199
|
-
region?:
|
|
199
|
+
region?: ScwRegion;
|
|
200
200
|
/** ID of the NATS account to get. */
|
|
201
201
|
natsAccountId: string;
|
|
202
202
|
};
|
|
@@ -205,7 +205,7 @@ export type NatsApiGetNatsCredentialsRequest = {
|
|
|
205
205
|
* Region to target. If none is passed will use default region from the
|
|
206
206
|
* config.
|
|
207
207
|
*/
|
|
208
|
-
region?:
|
|
208
|
+
region?: ScwRegion;
|
|
209
209
|
/** ID of the credentials to get. */
|
|
210
210
|
natsCredentialsId: string;
|
|
211
211
|
};
|
|
@@ -214,7 +214,7 @@ export type NatsApiListNatsAccountsRequest = {
|
|
|
214
214
|
* Region to target. If none is passed will use default region from the
|
|
215
215
|
* config.
|
|
216
216
|
*/
|
|
217
|
-
region?:
|
|
217
|
+
region?: ScwRegion;
|
|
218
218
|
/** Include only NATS accounts in this Project. */
|
|
219
219
|
projectId?: string;
|
|
220
220
|
/** Page number to return. */
|
|
@@ -229,7 +229,7 @@ export type NatsApiListNatsCredentialsRequest = {
|
|
|
229
229
|
* Region to target. If none is passed will use default region from the
|
|
230
230
|
* config.
|
|
231
231
|
*/
|
|
232
|
-
region?:
|
|
232
|
+
region?: ScwRegion;
|
|
233
233
|
/** Include only NATS accounts in this Project. */
|
|
234
234
|
projectId?: string;
|
|
235
235
|
/** Include only credentials for this NATS account. */
|
|
@@ -246,7 +246,7 @@ export type NatsApiUpdateNatsAccountRequest = {
|
|
|
246
246
|
* Region to target. If none is passed will use default region from the
|
|
247
247
|
* config.
|
|
248
248
|
*/
|
|
249
|
-
region?:
|
|
249
|
+
region?: ScwRegion;
|
|
250
250
|
/** ID of the NATS account to update. */
|
|
251
251
|
natsAccountId: string;
|
|
252
252
|
/** NATS account name. */
|
|
@@ -257,7 +257,7 @@ export type SnsApiActivateSnsRequest = {
|
|
|
257
257
|
* Region to target. If none is passed will use default region from the
|
|
258
258
|
* config.
|
|
259
259
|
*/
|
|
260
|
-
region?:
|
|
260
|
+
region?: ScwRegion;
|
|
261
261
|
/** Project on which to activate the Topics and Events service. */
|
|
262
262
|
projectId?: string;
|
|
263
263
|
};
|
|
@@ -266,7 +266,7 @@ export type SnsApiCreateSnsCredentialsRequest = {
|
|
|
266
266
|
* Region to target. If none is passed will use default region from the
|
|
267
267
|
* config.
|
|
268
268
|
*/
|
|
269
|
-
region?:
|
|
269
|
+
region?: ScwRegion;
|
|
270
270
|
/** Project containing the Topics and Events credentials. */
|
|
271
271
|
projectId?: string;
|
|
272
272
|
/** Name of the credentials. */
|
|
@@ -279,7 +279,7 @@ export type SnsApiDeactivateSnsRequest = {
|
|
|
279
279
|
* Region to target. If none is passed will use default region from the
|
|
280
280
|
* config.
|
|
281
281
|
*/
|
|
282
|
-
region?:
|
|
282
|
+
region?: ScwRegion;
|
|
283
283
|
/** Project on which to deactivate the Topics and Events service. */
|
|
284
284
|
projectId?: string;
|
|
285
285
|
};
|
|
@@ -288,7 +288,7 @@ export type SnsApiDeleteSnsCredentialsRequest = {
|
|
|
288
288
|
* Region to target. If none is passed will use default region from the
|
|
289
289
|
* config.
|
|
290
290
|
*/
|
|
291
|
-
region?:
|
|
291
|
+
region?: ScwRegion;
|
|
292
292
|
/** ID of the credentials to delete. */
|
|
293
293
|
snsCredentialsId: string;
|
|
294
294
|
};
|
|
@@ -297,7 +297,7 @@ export type SnsApiGetSnsCredentialsRequest = {
|
|
|
297
297
|
* Region to target. If none is passed will use default region from the
|
|
298
298
|
* config.
|
|
299
299
|
*/
|
|
300
|
-
region?:
|
|
300
|
+
region?: ScwRegion;
|
|
301
301
|
/** ID of the Topics and Events credentials to get. */
|
|
302
302
|
snsCredentialsId: string;
|
|
303
303
|
};
|
|
@@ -306,7 +306,7 @@ export type SnsApiGetSnsInfoRequest = {
|
|
|
306
306
|
* Region to target. If none is passed will use default region from the
|
|
307
307
|
* config.
|
|
308
308
|
*/
|
|
309
|
-
region?:
|
|
309
|
+
region?: ScwRegion;
|
|
310
310
|
/** Project to retrieve Topics and Events info from. */
|
|
311
311
|
projectId?: string;
|
|
312
312
|
};
|
|
@@ -315,7 +315,7 @@ export type SnsApiListSnsCredentialsRequest = {
|
|
|
315
315
|
* Region to target. If none is passed will use default region from the
|
|
316
316
|
* config.
|
|
317
317
|
*/
|
|
318
|
-
region?:
|
|
318
|
+
region?: ScwRegion;
|
|
319
319
|
/** Include only Topics and Events credentials in this Project. */
|
|
320
320
|
projectId?: string;
|
|
321
321
|
/** Page number to return. */
|
|
@@ -330,7 +330,7 @@ export type SnsApiUpdateSnsCredentialsRequest = {
|
|
|
330
330
|
* Region to target. If none is passed will use default region from the
|
|
331
331
|
* config.
|
|
332
332
|
*/
|
|
333
|
-
region?:
|
|
333
|
+
region?: ScwRegion;
|
|
334
334
|
/** ID of the Topics and Events credentials to update. */
|
|
335
335
|
snsCredentialsId: string;
|
|
336
336
|
/** Name of the credentials. */
|
|
@@ -342,7 +342,7 @@ export interface SnsInfo {
|
|
|
342
342
|
/** Project ID of the Project containing the service. */
|
|
343
343
|
projectId: string;
|
|
344
344
|
/** Region of the service. */
|
|
345
|
-
region:
|
|
345
|
+
region: ScwRegion;
|
|
346
346
|
/** Topics and Events creation date. */
|
|
347
347
|
createdAt?: Date;
|
|
348
348
|
/** Topics and Events last modification date. */
|
|
@@ -357,7 +357,7 @@ export type SqsApiActivateSqsRequest = {
|
|
|
357
357
|
* Region to target. If none is passed will use default region from the
|
|
358
358
|
* config.
|
|
359
359
|
*/
|
|
360
|
-
region?:
|
|
360
|
+
region?: ScwRegion;
|
|
361
361
|
/** Project on which to activate the Queues service. */
|
|
362
362
|
projectId?: string;
|
|
363
363
|
};
|
|
@@ -366,7 +366,7 @@ export type SqsApiCreateSqsCredentialsRequest = {
|
|
|
366
366
|
* Region to target. If none is passed will use default region from the
|
|
367
367
|
* config.
|
|
368
368
|
*/
|
|
369
|
-
region?:
|
|
369
|
+
region?: ScwRegion;
|
|
370
370
|
/** Project containing the Queues credentials. */
|
|
371
371
|
projectId?: string;
|
|
372
372
|
/** Name of the credentials. */
|
|
@@ -379,7 +379,7 @@ export type SqsApiDeactivateSqsRequest = {
|
|
|
379
379
|
* Region to target. If none is passed will use default region from the
|
|
380
380
|
* config.
|
|
381
381
|
*/
|
|
382
|
-
region?:
|
|
382
|
+
region?: ScwRegion;
|
|
383
383
|
/** Project on which to deactivate the Queues service. */
|
|
384
384
|
projectId?: string;
|
|
385
385
|
};
|
|
@@ -388,7 +388,7 @@ export type SqsApiDeleteSqsCredentialsRequest = {
|
|
|
388
388
|
* Region to target. If none is passed will use default region from the
|
|
389
389
|
* config.
|
|
390
390
|
*/
|
|
391
|
-
region?:
|
|
391
|
+
region?: ScwRegion;
|
|
392
392
|
/** ID of the credentials to delete. */
|
|
393
393
|
sqsCredentialsId: string;
|
|
394
394
|
};
|
|
@@ -397,7 +397,7 @@ export type SqsApiGetSqsCredentialsRequest = {
|
|
|
397
397
|
* Region to target. If none is passed will use default region from the
|
|
398
398
|
* config.
|
|
399
399
|
*/
|
|
400
|
-
region?:
|
|
400
|
+
region?: ScwRegion;
|
|
401
401
|
/** ID of the Queues credentials to get. */
|
|
402
402
|
sqsCredentialsId: string;
|
|
403
403
|
};
|
|
@@ -406,7 +406,7 @@ export type SqsApiGetSqsInfoRequest = {
|
|
|
406
406
|
* Region to target. If none is passed will use default region from the
|
|
407
407
|
* config.
|
|
408
408
|
*/
|
|
409
|
-
region?:
|
|
409
|
+
region?: ScwRegion;
|
|
410
410
|
/** Project to retrieve Queues info from. */
|
|
411
411
|
projectId?: string;
|
|
412
412
|
};
|
|
@@ -415,7 +415,7 @@ export type SqsApiListSqsCredentialsRequest = {
|
|
|
415
415
|
* Region to target. If none is passed will use default region from the
|
|
416
416
|
* config.
|
|
417
417
|
*/
|
|
418
|
-
region?:
|
|
418
|
+
region?: ScwRegion;
|
|
419
419
|
/** Include only Queues credentials in this Project. */
|
|
420
420
|
projectId?: string;
|
|
421
421
|
/** Page number to return. */
|
|
@@ -430,7 +430,7 @@ export type SqsApiUpdateSqsCredentialsRequest = {
|
|
|
430
430
|
* Region to target. If none is passed will use default region from the
|
|
431
431
|
* config.
|
|
432
432
|
*/
|
|
433
|
-
region?:
|
|
433
|
+
region?: ScwRegion;
|
|
434
434
|
/** ID of the Queues credentials to update. */
|
|
435
435
|
sqsCredentialsId: string;
|
|
436
436
|
/** Name of the credentials. */
|
|
@@ -442,7 +442,7 @@ export interface SqsInfo {
|
|
|
442
442
|
/** Project ID of the Project containing the service. */
|
|
443
443
|
projectId: string;
|
|
444
444
|
/** Region of the service. */
|
|
445
|
-
region:
|
|
445
|
+
region: ScwRegion;
|
|
446
446
|
/** Queues creation date. */
|
|
447
447
|
createdAt?: Date;
|
|
448
448
|
/** Queues last modification date. */
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { Region, WaitForOptions } from '../../../bridge';
|
|
2
|
+
import type { Region as ScwRegion, WaitForOptions } from '../../../bridge';
|
|
3
3
|
import type { CreateEndpointRequest, CreateInstanceRequest, CreateSnapshotRequest, CreateUserRequest, DeleteEndpointRequest, DeleteInstanceRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, GetInstanceCertificateRequest, GetInstanceRequest, GetSnapshotRequest, Instance, ListInstancesRequest, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListUsersRequest, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, RestoreSnapshotRequest, Snapshot, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User } from './types.gen';
|
|
4
4
|
/**
|
|
5
|
-
* Managed
|
|
5
|
+
* Managed MongoDB®.
|
|
6
6
|
*
|
|
7
7
|
* This API allows you to manage your Managed Databases for MongoDB®.
|
|
8
8
|
*/
|
|
9
9
|
export declare class API extends ParentAPI {
|
|
10
10
|
/** Lists the available regions of the API. */
|
|
11
|
-
static readonly LOCALITIES:
|
|
11
|
+
static readonly LOCALITIES: ScwRegion[];
|
|
12
12
|
protected pageOfListNodeTypes: (request?: Readonly<ListNodeTypesRequest>) => Promise<ListNodeTypesResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* List available node types.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Region } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
2
|
export type InstanceStatus = 'unknown_status' | 'ready' | 'provisioning' | 'configuring' | 'deleting' | 'error' | 'initializing' | 'locked' | 'snapshotting';
|
|
3
3
|
export type ListInstancesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'status_asc' | 'status_desc';
|
|
4
4
|
export type ListSnapshotsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'expires_at_asc' | 'expires_at_desc';
|
|
@@ -131,7 +131,7 @@ export interface Instance {
|
|
|
131
131
|
/** Creation date (must follow the ISO 8601 format). */
|
|
132
132
|
createdAt?: Date;
|
|
133
133
|
/** Region the Database Instance is in. */
|
|
134
|
-
region:
|
|
134
|
+
region: ScwRegion;
|
|
135
135
|
}
|
|
136
136
|
export interface NodeType {
|
|
137
137
|
/** Node type name identifier. */
|
|
@@ -177,7 +177,7 @@ export interface Snapshot {
|
|
|
177
177
|
/** Type of volume where data is stored - sbs_5k or sbs_15k. */
|
|
178
178
|
volumeType?: SnapshotVolumeType;
|
|
179
179
|
/** Region of the snapshot. */
|
|
180
|
-
region:
|
|
180
|
+
region: ScwRegion;
|
|
181
181
|
}
|
|
182
182
|
export interface User {
|
|
183
183
|
/**
|
|
@@ -204,7 +204,7 @@ export type CreateEndpointRequest = {
|
|
|
204
204
|
* Region to target. If none is passed will use default region from the
|
|
205
205
|
* config.
|
|
206
206
|
*/
|
|
207
|
-
region?:
|
|
207
|
+
region?: ScwRegion;
|
|
208
208
|
/** UUID of the Database Instance. */
|
|
209
209
|
instanceId: string;
|
|
210
210
|
/** EndpointSpec used to expose your Database Instance. */
|
|
@@ -215,7 +215,7 @@ export type CreateInstanceRequest = {
|
|
|
215
215
|
* Region to target. If none is passed will use default region from the
|
|
216
216
|
* config.
|
|
217
217
|
*/
|
|
218
|
-
region?:
|
|
218
|
+
region?: ScwRegion;
|
|
219
219
|
/** The Project ID on which the Database Instance will be created. */
|
|
220
220
|
projectId?: string;
|
|
221
221
|
/** Name of the Database Instance. */
|
|
@@ -242,7 +242,7 @@ export type CreateSnapshotRequest = {
|
|
|
242
242
|
* Region to target. If none is passed will use default region from the
|
|
243
243
|
* config.
|
|
244
244
|
*/
|
|
245
|
-
region?:
|
|
245
|
+
region?: ScwRegion;
|
|
246
246
|
/** UUID of the Database Instance to snapshot. */
|
|
247
247
|
instanceId: string;
|
|
248
248
|
/** Name of the snapshot. */
|
|
@@ -255,7 +255,7 @@ export type CreateUserRequest = {
|
|
|
255
255
|
* Region to target. If none is passed will use default region from the
|
|
256
256
|
* config.
|
|
257
257
|
*/
|
|
258
|
-
region?:
|
|
258
|
+
region?: ScwRegion;
|
|
259
259
|
/** UUID of the Database Instance the user belongs to. */
|
|
260
260
|
instanceId: string;
|
|
261
261
|
/** Name of the database user. */
|
|
@@ -268,7 +268,7 @@ export type DeleteEndpointRequest = {
|
|
|
268
268
|
* Region to target. If none is passed will use default region from the
|
|
269
269
|
* config.
|
|
270
270
|
*/
|
|
271
|
-
region?:
|
|
271
|
+
region?: ScwRegion;
|
|
272
272
|
/** UUID of the Endpoint to delete. */
|
|
273
273
|
endpointId: string;
|
|
274
274
|
};
|
|
@@ -277,7 +277,7 @@ export type DeleteInstanceRequest = {
|
|
|
277
277
|
* Region to target. If none is passed will use default region from the
|
|
278
278
|
* config.
|
|
279
279
|
*/
|
|
280
|
-
region?:
|
|
280
|
+
region?: ScwRegion;
|
|
281
281
|
/** UUID of the Database Instance to delete. */
|
|
282
282
|
instanceId: string;
|
|
283
283
|
};
|
|
@@ -286,7 +286,7 @@ export type DeleteSnapshotRequest = {
|
|
|
286
286
|
* Region to target. If none is passed will use default region from the
|
|
287
287
|
* config.
|
|
288
288
|
*/
|
|
289
|
-
region?:
|
|
289
|
+
region?: ScwRegion;
|
|
290
290
|
/** UUID of the snapshot. */
|
|
291
291
|
snapshotId: string;
|
|
292
292
|
};
|
|
@@ -295,7 +295,7 @@ export type DeleteUserRequest = {
|
|
|
295
295
|
* Region to target. If none is passed will use default region from the
|
|
296
296
|
* config.
|
|
297
297
|
*/
|
|
298
|
-
region?:
|
|
298
|
+
region?: ScwRegion;
|
|
299
299
|
/** UUID of the Database Instance the user belongs to. */
|
|
300
300
|
instanceId: string;
|
|
301
301
|
/** Name of the database user. */
|
|
@@ -306,7 +306,7 @@ export type GetInstanceCertificateRequest = {
|
|
|
306
306
|
* Region to target. If none is passed will use default region from the
|
|
307
307
|
* config.
|
|
308
308
|
*/
|
|
309
|
-
region?:
|
|
309
|
+
region?: ScwRegion;
|
|
310
310
|
/** UUID of the Database Instance. */
|
|
311
311
|
instanceId: string;
|
|
312
312
|
};
|
|
@@ -315,7 +315,7 @@ export type GetInstanceRequest = {
|
|
|
315
315
|
* Region to target. If none is passed will use default region from the
|
|
316
316
|
* config.
|
|
317
317
|
*/
|
|
318
|
-
region?:
|
|
318
|
+
region?: ScwRegion;
|
|
319
319
|
/** UUID of the Database Instance. */
|
|
320
320
|
instanceId: string;
|
|
321
321
|
};
|
|
@@ -324,7 +324,7 @@ export type GetSnapshotRequest = {
|
|
|
324
324
|
* Region to target. If none is passed will use default region from the
|
|
325
325
|
* config.
|
|
326
326
|
*/
|
|
327
|
-
region?:
|
|
327
|
+
region?: ScwRegion;
|
|
328
328
|
/** UUID of the snapshot. */
|
|
329
329
|
snapshotId: string;
|
|
330
330
|
};
|
|
@@ -333,7 +333,7 @@ export type ListInstancesRequest = {
|
|
|
333
333
|
* Region to target. If none is passed will use default region from the
|
|
334
334
|
* config.
|
|
335
335
|
*/
|
|
336
|
-
region?:
|
|
336
|
+
region?: ScwRegion;
|
|
337
337
|
/** List Database Instances that have a given tag. */
|
|
338
338
|
tags?: string[];
|
|
339
339
|
/** Lists Database Instances that match a name pattern. */
|
|
@@ -358,7 +358,7 @@ export type ListNodeTypesRequest = {
|
|
|
358
358
|
* Region to target. If none is passed will use default region from the
|
|
359
359
|
* config.
|
|
360
360
|
*/
|
|
361
|
-
region?:
|
|
361
|
+
region?: ScwRegion;
|
|
362
362
|
/** Defines whether or not to include disabled types. */
|
|
363
363
|
includeDisabledTypes?: boolean;
|
|
364
364
|
page?: number;
|
|
@@ -375,7 +375,7 @@ export type ListSnapshotsRequest = {
|
|
|
375
375
|
* Region to target. If none is passed will use default region from the
|
|
376
376
|
* config.
|
|
377
377
|
*/
|
|
378
|
-
region?:
|
|
378
|
+
region?: ScwRegion;
|
|
379
379
|
/** Instance ID the snapshots belongs to. */
|
|
380
380
|
instanceId?: string;
|
|
381
381
|
/** Lists database snapshots that match a name pattern. */
|
|
@@ -400,7 +400,7 @@ export type ListUsersRequest = {
|
|
|
400
400
|
* Region to target. If none is passed will use default region from the
|
|
401
401
|
* config.
|
|
402
402
|
*/
|
|
403
|
-
region?:
|
|
403
|
+
region?: ScwRegion;
|
|
404
404
|
/** UUID of the Database Instance. */
|
|
405
405
|
instanceId: string;
|
|
406
406
|
/** Name of the user. */
|
|
@@ -421,7 +421,7 @@ export type ListVersionsRequest = {
|
|
|
421
421
|
* Region to target. If none is passed will use default region from the
|
|
422
422
|
* config.
|
|
423
423
|
*/
|
|
424
|
-
region?:
|
|
424
|
+
region?: ScwRegion;
|
|
425
425
|
version?: string;
|
|
426
426
|
page?: number;
|
|
427
427
|
pageSize?: number;
|
|
@@ -437,7 +437,7 @@ export type RestoreSnapshotRequest = {
|
|
|
437
437
|
* Region to target. If none is passed will use default region from the
|
|
438
438
|
* config.
|
|
439
439
|
*/
|
|
440
|
-
region?:
|
|
440
|
+
region?: ScwRegion;
|
|
441
441
|
/** UUID of the snapshot. */
|
|
442
442
|
snapshotId: string;
|
|
443
443
|
/** Name of the new Database Instance. */
|
|
@@ -454,7 +454,7 @@ export type UpdateInstanceRequest = {
|
|
|
454
454
|
* Region to target. If none is passed will use default region from the
|
|
455
455
|
* config.
|
|
456
456
|
*/
|
|
457
|
-
region?:
|
|
457
|
+
region?: ScwRegion;
|
|
458
458
|
/** UUID of the Database Instance to update. */
|
|
459
459
|
instanceId: string;
|
|
460
460
|
/** Name of the Database Instance. */
|
|
@@ -467,7 +467,7 @@ export type UpdateSnapshotRequest = {
|
|
|
467
467
|
* Region to target. If none is passed will use default region from the
|
|
468
468
|
* config.
|
|
469
469
|
*/
|
|
470
|
-
region?:
|
|
470
|
+
region?: ScwRegion;
|
|
471
471
|
/** UUID of the Snapshot. */
|
|
472
472
|
snapshotId: string;
|
|
473
473
|
/** Name of the snapshot. */
|
|
@@ -480,7 +480,7 @@ export type UpdateUserRequest = {
|
|
|
480
480
|
* Region to target. If none is passed will use default region from the
|
|
481
481
|
* config.
|
|
482
482
|
*/
|
|
483
|
-
region?:
|
|
483
|
+
region?: ScwRegion;
|
|
484
484
|
/** UUID of the Database Instance the user belongs to. */
|
|
485
485
|
instanceId: string;
|
|
486
486
|
/** Name of the database user. */
|
|
@@ -493,7 +493,7 @@ export type UpgradeInstanceRequest = {
|
|
|
493
493
|
* Region to target. If none is passed will use default region from the
|
|
494
494
|
* config.
|
|
495
495
|
*/
|
|
496
|
-
region?:
|
|
496
|
+
region?: ScwRegion;
|
|
497
497
|
/** UUID of the Database Instance you want to upgrade. */
|
|
498
498
|
instanceId: string;
|
|
499
499
|
/**
|
|
@@ -12,7 +12,11 @@ const jsonContentHeaders = {
|
|
|
12
12
|
};
|
|
13
13
|
class API extends api.API {
|
|
14
14
|
/** Lists the available regions of the API. */
|
|
15
|
-
static LOCALITIES = [
|
|
15
|
+
static LOCALITIES = [
|
|
16
|
+
"fr-par",
|
|
17
|
+
"nl-ams",
|
|
18
|
+
"pl-waw"
|
|
19
|
+
];
|
|
16
20
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch(
|
|
17
21
|
{
|
|
18
22
|
method: "GET",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { Region, WaitForOptions } from '../../../bridge';
|
|
2
|
+
import type { Region as ScwRegion, WaitForOptions } from '../../../bridge';
|
|
3
3
|
import type { AddInstanceACLRulesRequest, AddInstanceACLRulesResponse, AddInstanceSettingsRequest, AddInstanceSettingsResponse, ApplyInstanceMaintenanceRequest, CloneInstanceRequest, CreateDatabaseBackupRequest, CreateDatabaseRequest, CreateEndpointRequest, CreateInstanceFromSnapshotRequest, CreateInstanceRequest, CreateReadReplicaEndpointRequest, CreateReadReplicaRequest, CreateSnapshotRequest, CreateUserRequest, Database, DatabaseBackup, DeleteDatabaseBackupRequest, DeleteDatabaseRequest, DeleteEndpointRequest, DeleteInstanceACLRulesRequest, DeleteInstanceACLRulesResponse, DeleteInstanceRequest, DeleteInstanceSettingsRequest, DeleteInstanceSettingsResponse, DeleteReadReplicaRequest, DeleteSnapshotRequest, DeleteUserRequest, Endpoint, ExportDatabaseBackupRequest, GetDatabaseBackupRequest, GetEndpointRequest, GetInstanceCertificateRequest, GetInstanceLogRequest, GetInstanceMetricsRequest, GetInstanceRequest, GetReadReplicaRequest, GetSnapshotRequest, Instance, InstanceLog, InstanceMetrics, ListDatabaseBackupsRequest, ListDatabaseBackupsResponse, ListDatabaseEnginesRequest, ListDatabaseEnginesResponse, ListDatabasesRequest, ListDatabasesResponse, ListInstanceACLRulesRequest, ListInstanceACLRulesResponse, ListInstanceLogsDetailsRequest, ListInstanceLogsDetailsResponse, ListInstanceLogsRequest, ListInstanceLogsResponse, ListInstancesRequest, ListInstancesResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListPrivilegesRequest, ListPrivilegesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListUsersRequest, ListUsersResponse, Maintenance, MigrateEndpointRequest, PrepareInstanceLogsRequest, PrepareInstanceLogsResponse, Privilege, PromoteReadReplicaRequest, PurgeInstanceLogsRequest, ReadReplica, RenewInstanceCertificateRequest, ResetReadReplicaRequest, RestartInstanceRequest, RestoreDatabaseBackupRequest, SetInstanceACLRulesRequest, SetInstanceACLRulesResponse, SetInstanceSettingsRequest, SetInstanceSettingsResponse, SetPrivilegeRequest, Snapshot, UpdateDatabaseBackupRequest, UpdateInstanceRequest, UpdateSnapshotRequest, UpdateUserRequest, UpgradeInstanceRequest, User } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Managed Database for PostgreSQL and MySQL API.
|
|
@@ -9,7 +9,7 @@ import type { AddInstanceACLRulesRequest, AddInstanceACLRulesResponse, AddInstan
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class API extends ParentAPI {
|
|
11
11
|
/** Lists the available regions of the API. */
|
|
12
|
-
static readonly LOCALITIES:
|
|
12
|
+
static readonly LOCALITIES: ScwRegion[];
|
|
13
13
|
protected pageOfListDatabaseEngines: (request?: Readonly<ListDatabaseEnginesRequest>) => Promise<ListDatabaseEnginesResponse>;
|
|
14
14
|
/**
|
|
15
15
|
* List available database engines. List the PostgreSQL and MySQL database
|
|
@@ -10,7 +10,11 @@ const jsonContentHeaders = {
|
|
|
10
10
|
};
|
|
11
11
|
class API extends API$1 {
|
|
12
12
|
/** Lists the available regions of the API. */
|
|
13
|
-
static LOCALITIES = [
|
|
13
|
+
static LOCALITIES = [
|
|
14
|
+
"fr-par",
|
|
15
|
+
"nl-ams",
|
|
16
|
+
"pl-waw"
|
|
17
|
+
];
|
|
14
18
|
pageOfListDatabaseEngines = (request = {}) => this.client.fetch(
|
|
15
19
|
{
|
|
16
20
|
method: "GET",
|