@scaleway/sdk 2.64.0 → 2.66.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 +19 -1
- package/dist/api/cockpit/v1/api.gen.d.ts +4 -3
- package/dist/api/cockpit/v1/api.gen.js +20 -2
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +13 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +13 -0
- package/dist/api/cockpit/v1/types.gen.d.ts +50 -31
- 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/ipam/v1/api.gen.cjs +5 -1
- package/dist/api/ipam/v1/api.gen.d.ts +2 -2
- package/dist/api/ipam/v1/api.gen.js +5 -1
- package/dist/api/ipam/v1/types.gen.d.ts +13 -13
- 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/key_manager/v1alpha1/api.gen.cjs +41 -37
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +38 -38
- package/dist/api/key_manager/v1alpha1/api.gen.js +41 -37
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +31 -30
- package/dist/api/lb/v1/api.gen.cjs +5 -1
- package/dist/api/lb/v1/api.gen.d.ts +3 -3
- package/dist/api/lb/v1/api.gen.js +5 -1
- package/dist/api/lb/v1/types.gen.d.ts +116 -116
- 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 +5 -1
- package/dist/api/secret/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/secret/v1beta1/api.gen.js +5 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +22 -22
- 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.d.ts +2 -2
- package/dist/api/vpcgw/v1/types.gen.d.ts +44 -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/api.gen.cjs +58 -2
- package/dist/api/webhosting/v1/api.gen.d.ts +31 -3
- package/dist/api/webhosting/v1/api.gen.js +60 -4
- package/dist/api/webhosting/v1/content.gen.cjs +4 -0
- package/dist/api/webhosting/v1/content.gen.d.ts +5 -1
- package/dist/api/webhosting/v1/content.gen.js +4 -0
- package/dist/api/webhosting/v1/index.gen.cjs +2 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/index.gen.js +3 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +45 -0
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +3 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +45 -0
- package/dist/api/webhosting/v1/types.gen.d.ts +66 -0
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +1 -1
- package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
- 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, TimeSeries } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion, TimeSeries } from '../../../bridge';
|
|
2
2
|
export type DeviceMessageFiltersRulePolicy = 'unknown' | 'accept' | 'reject';
|
|
3
3
|
export type DeviceStatus = 'unknown' | 'error' | 'enabled' | 'disabled';
|
|
4
4
|
export type HubProductPlan = 'plan_unknown' | 'plan_shared' | 'plan_dedicated' | 'plan_ha';
|
|
@@ -137,7 +137,7 @@ export interface Hub {
|
|
|
137
137
|
/** Hub events topic prefix. */
|
|
138
138
|
eventsTopicPrefix: string;
|
|
139
139
|
/** Region of the Hub. */
|
|
140
|
-
region:
|
|
140
|
+
region: ScwRegion;
|
|
141
141
|
/** Hub creation date. */
|
|
142
142
|
createdAt?: Date;
|
|
143
143
|
/** Hub last modification date. */
|
|
@@ -259,7 +259,7 @@ export type CreateDeviceRequest = {
|
|
|
259
259
|
* Region to target. If none is passed will use default region from the
|
|
260
260
|
* config.
|
|
261
261
|
*/
|
|
262
|
-
region?:
|
|
262
|
+
region?: ScwRegion;
|
|
263
263
|
/** Device name. */
|
|
264
264
|
name?: string;
|
|
265
265
|
/** Hub ID of the device. */
|
|
@@ -293,7 +293,7 @@ export type CreateHubRequest = {
|
|
|
293
293
|
* Region to target. If none is passed will use default region from the
|
|
294
294
|
* config.
|
|
295
295
|
*/
|
|
296
|
-
region?:
|
|
296
|
+
region?: ScwRegion;
|
|
297
297
|
/** Hub name (up to 255 characters). */
|
|
298
298
|
name?: string;
|
|
299
299
|
/**
|
|
@@ -320,7 +320,7 @@ export type CreateNetworkRequest = {
|
|
|
320
320
|
* Region to target. If none is passed will use default region from the
|
|
321
321
|
* config.
|
|
322
322
|
*/
|
|
323
|
-
region?:
|
|
323
|
+
region?: ScwRegion;
|
|
324
324
|
/** Network name. */
|
|
325
325
|
name?: string;
|
|
326
326
|
/** Type of network to connect with. */
|
|
@@ -341,7 +341,7 @@ export type CreateRouteRequest = {
|
|
|
341
341
|
* Region to target. If none is passed will use default region from the
|
|
342
342
|
* config.
|
|
343
343
|
*/
|
|
344
|
-
region?:
|
|
344
|
+
region?: ScwRegion;
|
|
345
345
|
/** Route name. */
|
|
346
346
|
name?: string;
|
|
347
347
|
/** Hub ID of the route. */
|
|
@@ -378,7 +378,7 @@ export type DeleteDeviceRequest = {
|
|
|
378
378
|
* Region to target. If none is passed will use default region from the
|
|
379
379
|
* config.
|
|
380
380
|
*/
|
|
381
|
-
region?:
|
|
381
|
+
region?: ScwRegion;
|
|
382
382
|
/** Device ID. */
|
|
383
383
|
deviceId: string;
|
|
384
384
|
};
|
|
@@ -387,7 +387,7 @@ export type DeleteHubRequest = {
|
|
|
387
387
|
* Region to target. If none is passed will use default region from the
|
|
388
388
|
* config.
|
|
389
389
|
*/
|
|
390
|
-
region?:
|
|
390
|
+
region?: ScwRegion;
|
|
391
391
|
/** Hub ID. */
|
|
392
392
|
hubId: string;
|
|
393
393
|
/**
|
|
@@ -401,7 +401,7 @@ export type DeleteNetworkRequest = {
|
|
|
401
401
|
* Region to target. If none is passed will use default region from the
|
|
402
402
|
* config.
|
|
403
403
|
*/
|
|
404
|
-
region?:
|
|
404
|
+
region?: ScwRegion;
|
|
405
405
|
/** Network ID. */
|
|
406
406
|
networkId: string;
|
|
407
407
|
};
|
|
@@ -410,7 +410,7 @@ export type DeleteRouteRequest = {
|
|
|
410
410
|
* Region to target. If none is passed will use default region from the
|
|
411
411
|
* config.
|
|
412
412
|
*/
|
|
413
|
-
region?:
|
|
413
|
+
region?: ScwRegion;
|
|
414
414
|
/** Route ID. */
|
|
415
415
|
routeId: string;
|
|
416
416
|
};
|
|
@@ -419,7 +419,7 @@ export type DeleteTwinDocumentRequest = {
|
|
|
419
419
|
* Region to target. If none is passed will use default region from the
|
|
420
420
|
* config.
|
|
421
421
|
*/
|
|
422
|
-
region?:
|
|
422
|
+
region?: ScwRegion;
|
|
423
423
|
/** Twin ID. */
|
|
424
424
|
twinId: string;
|
|
425
425
|
/** Name of the document. */
|
|
@@ -430,7 +430,7 @@ export type DeleteTwinDocumentsRequest = {
|
|
|
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
|
/** Twin ID. */
|
|
435
435
|
twinId: string;
|
|
436
436
|
};
|
|
@@ -439,7 +439,7 @@ export type DisableDeviceRequest = {
|
|
|
439
439
|
* Region to target. If none is passed will use default region from the
|
|
440
440
|
* config.
|
|
441
441
|
*/
|
|
442
|
-
region?:
|
|
442
|
+
region?: ScwRegion;
|
|
443
443
|
/** Device ID. */
|
|
444
444
|
deviceId: string;
|
|
445
445
|
};
|
|
@@ -448,7 +448,7 @@ export type DisableHubRequest = {
|
|
|
448
448
|
* Region to target. If none is passed will use default region from the
|
|
449
449
|
* config.
|
|
450
450
|
*/
|
|
451
|
-
region?:
|
|
451
|
+
region?: ScwRegion;
|
|
452
452
|
/** Hub ID. */
|
|
453
453
|
hubId: string;
|
|
454
454
|
};
|
|
@@ -457,7 +457,7 @@ export type EnableDeviceRequest = {
|
|
|
457
457
|
* Region to target. If none is passed will use default region from the
|
|
458
458
|
* config.
|
|
459
459
|
*/
|
|
460
|
-
region?:
|
|
460
|
+
region?: ScwRegion;
|
|
461
461
|
/** Device ID. */
|
|
462
462
|
deviceId: string;
|
|
463
463
|
};
|
|
@@ -466,7 +466,7 @@ export type EnableHubRequest = {
|
|
|
466
466
|
* Region to target. If none is passed will use default region from the
|
|
467
467
|
* config.
|
|
468
468
|
*/
|
|
469
|
-
region?:
|
|
469
|
+
region?: ScwRegion;
|
|
470
470
|
/** Hub ID. */
|
|
471
471
|
hubId: string;
|
|
472
472
|
};
|
|
@@ -475,7 +475,7 @@ export type GetDeviceCertificateRequest = {
|
|
|
475
475
|
* Region to target. If none is passed will use default region from the
|
|
476
476
|
* config.
|
|
477
477
|
*/
|
|
478
|
-
region?:
|
|
478
|
+
region?: ScwRegion;
|
|
479
479
|
/** Device ID. */
|
|
480
480
|
deviceId: string;
|
|
481
481
|
};
|
|
@@ -490,7 +490,7 @@ export type GetDeviceMetricsRequest = {
|
|
|
490
490
|
* Region to target. If none is passed will use default region from the
|
|
491
491
|
* config.
|
|
492
492
|
*/
|
|
493
|
-
region?:
|
|
493
|
+
region?: ScwRegion;
|
|
494
494
|
/** Device ID. */
|
|
495
495
|
deviceId: string;
|
|
496
496
|
/** Start date used to compute the best scale for the returned metrics. */
|
|
@@ -505,7 +505,7 @@ export type GetDeviceRequest = {
|
|
|
505
505
|
* Region to target. If none is passed will use default region from the
|
|
506
506
|
* config.
|
|
507
507
|
*/
|
|
508
|
-
region?:
|
|
508
|
+
region?: ScwRegion;
|
|
509
509
|
/** Device ID. */
|
|
510
510
|
deviceId: string;
|
|
511
511
|
};
|
|
@@ -514,7 +514,7 @@ export type GetHubCARequest = {
|
|
|
514
514
|
* Region to target. If none is passed will use default region from the
|
|
515
515
|
* config.
|
|
516
516
|
*/
|
|
517
|
-
region?:
|
|
517
|
+
region?: ScwRegion;
|
|
518
518
|
hubId: string;
|
|
519
519
|
};
|
|
520
520
|
export interface GetHubCAResponse {
|
|
@@ -525,7 +525,7 @@ export type GetHubMetricsRequest = {
|
|
|
525
525
|
* Region to target. If none is passed will use default region from the
|
|
526
526
|
* config.
|
|
527
527
|
*/
|
|
528
|
-
region?:
|
|
528
|
+
region?: ScwRegion;
|
|
529
529
|
/** Hub ID. */
|
|
530
530
|
hubId: string;
|
|
531
531
|
/** Start date used to compute the best scale for returned metrics. */
|
|
@@ -540,7 +540,7 @@ export type GetHubRequest = {
|
|
|
540
540
|
* Region to target. If none is passed will use default region from the
|
|
541
541
|
* config.
|
|
542
542
|
*/
|
|
543
|
-
region?:
|
|
543
|
+
region?: ScwRegion;
|
|
544
544
|
/** Hub ID. */
|
|
545
545
|
hubId: string;
|
|
546
546
|
};
|
|
@@ -549,7 +549,7 @@ export type GetNetworkRequest = {
|
|
|
549
549
|
* Region to target. If none is passed will use default region from the
|
|
550
550
|
* config.
|
|
551
551
|
*/
|
|
552
|
-
region?:
|
|
552
|
+
region?: ScwRegion;
|
|
553
553
|
/** Network ID. */
|
|
554
554
|
networkId: string;
|
|
555
555
|
};
|
|
@@ -558,7 +558,7 @@ export type GetRouteRequest = {
|
|
|
558
558
|
* Region to target. If none is passed will use default region from the
|
|
559
559
|
* config.
|
|
560
560
|
*/
|
|
561
|
-
region?:
|
|
561
|
+
region?: ScwRegion;
|
|
562
562
|
/** Route ID. */
|
|
563
563
|
routeId: string;
|
|
564
564
|
};
|
|
@@ -567,7 +567,7 @@ export type GetTwinDocumentRequest = {
|
|
|
567
567
|
* Region to target. If none is passed will use default region from the
|
|
568
568
|
* config.
|
|
569
569
|
*/
|
|
570
|
-
region?:
|
|
570
|
+
region?: ScwRegion;
|
|
571
571
|
/** Twin ID. */
|
|
572
572
|
twinId: string;
|
|
573
573
|
/** Name of the document. */
|
|
@@ -578,7 +578,7 @@ export type ListDevicesRequest = {
|
|
|
578
578
|
* Region to target. If none is passed will use default region from the
|
|
579
579
|
* config.
|
|
580
580
|
*/
|
|
581
|
-
region?:
|
|
581
|
+
region?: ScwRegion;
|
|
582
582
|
/** Page number to return, from the paginated results. */
|
|
583
583
|
page?: number;
|
|
584
584
|
/** Number of devices to return within a page. Maximum value is 100. */
|
|
@@ -605,7 +605,7 @@ export type ListHubsRequest = {
|
|
|
605
605
|
* Region to target. If none is passed will use default region from the
|
|
606
606
|
* config.
|
|
607
607
|
*/
|
|
608
|
-
region?:
|
|
608
|
+
region?: ScwRegion;
|
|
609
609
|
/** Page number to return, from the paginated results. */
|
|
610
610
|
page?: number;
|
|
611
611
|
/** Number of Hubs to return within a page. Maximum value is 100. */
|
|
@@ -630,7 +630,7 @@ export type ListNetworksRequest = {
|
|
|
630
630
|
* Region to target. If none is passed will use default region from the
|
|
631
631
|
* config.
|
|
632
632
|
*/
|
|
633
|
-
region?:
|
|
633
|
+
region?: ScwRegion;
|
|
634
634
|
/** Page number to return, from the paginated results. */
|
|
635
635
|
page?: number;
|
|
636
636
|
/** Number of networks to return. The maximum value is 100. */
|
|
@@ -655,7 +655,7 @@ export type ListRoutesRequest = {
|
|
|
655
655
|
* Region to target. If none is passed will use default region from the
|
|
656
656
|
* config.
|
|
657
657
|
*/
|
|
658
|
-
region?:
|
|
658
|
+
region?: ScwRegion;
|
|
659
659
|
/** Page number to return, from the paginated results. */
|
|
660
660
|
page?: number;
|
|
661
661
|
/** Number of routes to return within a page. Maximum value is 100. */
|
|
@@ -678,7 +678,7 @@ export type ListTwinDocumentsRequest = {
|
|
|
678
678
|
* Region to target. If none is passed will use default region from the
|
|
679
679
|
* config.
|
|
680
680
|
*/
|
|
681
|
-
region?:
|
|
681
|
+
region?: ScwRegion;
|
|
682
682
|
/** Twin ID. */
|
|
683
683
|
twinId: string;
|
|
684
684
|
};
|
|
@@ -691,7 +691,7 @@ export type PatchTwinDocumentRequest = {
|
|
|
691
691
|
* Region to target. If none is passed will use default region from the
|
|
692
692
|
* config.
|
|
693
693
|
*/
|
|
694
|
-
region?:
|
|
694
|
+
region?: ScwRegion;
|
|
695
695
|
/** Twin ID. */
|
|
696
696
|
twinId: string;
|
|
697
697
|
/** Name of the document. */
|
|
@@ -716,7 +716,7 @@ export type PutTwinDocumentRequest = {
|
|
|
716
716
|
* Region to target. If none is passed will use default region from the
|
|
717
717
|
* config.
|
|
718
718
|
*/
|
|
719
|
-
region?:
|
|
719
|
+
region?: ScwRegion;
|
|
720
720
|
/** Twin ID. */
|
|
721
721
|
twinId: string;
|
|
722
722
|
/** Name of the document. */
|
|
@@ -734,7 +734,7 @@ export type RenewDeviceCertificateRequest = {
|
|
|
734
734
|
* Region to target. If none is passed will use default region from the
|
|
735
735
|
* config.
|
|
736
736
|
*/
|
|
737
|
-
region?:
|
|
737
|
+
region?: ScwRegion;
|
|
738
738
|
/** Device ID. */
|
|
739
739
|
deviceId: string;
|
|
740
740
|
};
|
|
@@ -789,7 +789,7 @@ export type SetDeviceCertificateRequest = {
|
|
|
789
789
|
* Region to target. If none is passed will use default region from the
|
|
790
790
|
* config.
|
|
791
791
|
*/
|
|
792
|
-
region?:
|
|
792
|
+
region?: ScwRegion;
|
|
793
793
|
/** Device ID. */
|
|
794
794
|
deviceId: string;
|
|
795
795
|
/** PEM-encoded custom certificate. */
|
|
@@ -804,7 +804,7 @@ export type SetHubCARequest = {
|
|
|
804
804
|
* Region to target. If none is passed will use default region from the
|
|
805
805
|
* config.
|
|
806
806
|
*/
|
|
807
|
-
region?:
|
|
807
|
+
region?: ScwRegion;
|
|
808
808
|
/** Hub ID. */
|
|
809
809
|
hubId: string;
|
|
810
810
|
/** CA's PEM-encoded certificate. */
|
|
@@ -831,7 +831,7 @@ export type UpdateDeviceRequest = {
|
|
|
831
831
|
* Region to target. If none is passed will use default region from the
|
|
832
832
|
* config.
|
|
833
833
|
*/
|
|
834
|
-
region?:
|
|
834
|
+
region?: ScwRegion;
|
|
835
835
|
/** Device ID. */
|
|
836
836
|
deviceId: string;
|
|
837
837
|
/** Description for the device. */
|
|
@@ -856,7 +856,7 @@ export type UpdateHubRequest = {
|
|
|
856
856
|
* Region to target. If none is passed will use default region from the
|
|
857
857
|
* config.
|
|
858
858
|
*/
|
|
859
|
-
region?:
|
|
859
|
+
region?: ScwRegion;
|
|
860
860
|
/** ID of the Hub you want to update. */
|
|
861
861
|
hubId: string;
|
|
862
862
|
/** Hub name (up to 255 characters). */
|
|
@@ -882,7 +882,7 @@ export type UpdateRouteRequest = {
|
|
|
882
882
|
* Region to target. If none is passed will use default region from the
|
|
883
883
|
* config.
|
|
884
884
|
*/
|
|
885
|
-
region?:
|
|
885
|
+
region?: ScwRegion;
|
|
886
886
|
/** Route id. */
|
|
887
887
|
routeId: string;
|
|
888
888
|
/** Route name. */
|
|
@@ -10,7 +10,11 @@ const jsonContentHeaders = {
|
|
|
10
10
|
};
|
|
11
11
|
class API extends api.API {
|
|
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
|
/**
|
|
15
19
|
* Reserve a new IP. Reserve a new IP from the specified source. Currently IPs
|
|
16
20
|
* can only be reserved from a Private Network.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { Region } from '../../../bridge';
|
|
2
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
3
3
|
import type { AttachIPRequest, BookIPRequest, DetachIPRequest, GetIPRequest, IP, ListIPsRequest, ListIPsResponse, MoveIPRequest, ReleaseIPRequest, ReleaseIPSetRequest, UpdateIPRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* IPAM API.
|
|
@@ -9,7 +9,7 @@ import type { AttachIPRequest, BookIPRequest, DetachIPRequest, GetIPRequest, IP,
|
|
|
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
|
/**
|
|
14
14
|
* Reserve a new IP. Reserve a new IP from the specified source. Currently IPs
|
|
15
15
|
* can only be reserved from a Private Network.
|
|
@@ -8,7 +8,11 @@ const jsonContentHeaders = {
|
|
|
8
8
|
};
|
|
9
9
|
class API extends API$1 {
|
|
10
10
|
/** Lists the available regions of the API. */
|
|
11
|
-
static LOCALITIES = [
|
|
11
|
+
static LOCALITIES = [
|
|
12
|
+
"fr-par",
|
|
13
|
+
"nl-ams",
|
|
14
|
+
"pl-waw"
|
|
15
|
+
];
|
|
12
16
|
/**
|
|
13
17
|
* Reserve a new IP. Reserve a new IP from the specified source. Currently IPs
|
|
14
18
|
* can only be reserved from a Private Network.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Region, Zone } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion, Zone as ScwZone } from '../../../bridge';
|
|
2
2
|
export type ListIPsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'attached_at_desc' | 'attached_at_asc';
|
|
3
|
-
export type ResourceType = 'unknown_type' | 'custom' | 'instance_server' | 'instance_ip' | 'instance_private_nic' | 'lb_server' | 'fip_ip' | 'vpc_gateway' | 'vpc_gateway_network' | 'k8s_node' | 'k8s_cluster' | 'rdb_instance' | 'redis_cluster' | 'baremetal_server' | 'baremetal_private_nic' | 'llm_deployment' | 'mgdb_instance' | 'apple_silicon_server' | 'apple_silicon_private_nic';
|
|
3
|
+
export type ResourceType = 'unknown_type' | 'custom' | 'instance_server' | 'instance_ip' | 'instance_private_nic' | 'lb_server' | 'fip_ip' | 'vpc_gateway' | 'vpc_gateway_network' | 'k8s_node' | 'k8s_cluster' | 'rdb_instance' | 'redis_cluster' | 'baremetal_server' | 'baremetal_private_nic' | 'llm_deployment' | 'mgdb_instance' | 'apple_silicon_server' | 'apple_silicon_private_nic' | 'serverless_container' | 'serverless_function';
|
|
4
4
|
export interface Resource {
|
|
5
5
|
/** Type of resource the IP is attached to. */
|
|
6
6
|
type: ResourceType;
|
|
@@ -74,16 +74,16 @@ export interface IP {
|
|
|
74
74
|
/** Array of reverses associated with the IP. */
|
|
75
75
|
reverses: Reverse[];
|
|
76
76
|
/** Region of the IP. */
|
|
77
|
-
region:
|
|
77
|
+
region: ScwRegion;
|
|
78
78
|
/** Zone of the IP, if zonal. */
|
|
79
|
-
zone?:
|
|
79
|
+
zone?: ScwZone;
|
|
80
80
|
}
|
|
81
81
|
export type AttachIPRequest = {
|
|
82
82
|
/**
|
|
83
83
|
* Region to target. If none is passed will use default region from the
|
|
84
84
|
* config.
|
|
85
85
|
*/
|
|
86
|
-
region?:
|
|
86
|
+
region?: ScwRegion;
|
|
87
87
|
/** IP ID. */
|
|
88
88
|
ipId: string;
|
|
89
89
|
/** Custom resource to be attached to the IP. */
|
|
@@ -94,7 +94,7 @@ export type BookIPRequest = {
|
|
|
94
94
|
* Region to target. If none is passed will use default region from the
|
|
95
95
|
* config.
|
|
96
96
|
*/
|
|
97
|
-
region?:
|
|
97
|
+
region?: ScwRegion;
|
|
98
98
|
/**
|
|
99
99
|
* When creating an IP in a Private Network, the Project must match the
|
|
100
100
|
* Private Network's Project.
|
|
@@ -128,7 +128,7 @@ export type DetachIPRequest = {
|
|
|
128
128
|
* Region to target. If none is passed will use default region from the
|
|
129
129
|
* config.
|
|
130
130
|
*/
|
|
131
|
-
region?:
|
|
131
|
+
region?: ScwRegion;
|
|
132
132
|
/** IP ID. */
|
|
133
133
|
ipId: string;
|
|
134
134
|
/** Custom resource currently attached to the IP. */
|
|
@@ -139,7 +139,7 @@ export type GetIPRequest = {
|
|
|
139
139
|
* Region to target. If none is passed will use default region from the
|
|
140
140
|
* config.
|
|
141
141
|
*/
|
|
142
|
-
region?:
|
|
142
|
+
region?: ScwRegion;
|
|
143
143
|
/** IP ID. */
|
|
144
144
|
ipId: string;
|
|
145
145
|
};
|
|
@@ -148,7 +148,7 @@ export type ListIPsRequest = {
|
|
|
148
148
|
* Region to target. If none is passed will use default region from the
|
|
149
149
|
* config.
|
|
150
150
|
*/
|
|
151
|
-
region?:
|
|
151
|
+
region?: ScwRegion;
|
|
152
152
|
/** Sort order of the returned IPs. */
|
|
153
153
|
orderBy?: ListIPsRequestOrderBy;
|
|
154
154
|
/** Page number to return, from the paginated results. */
|
|
@@ -240,7 +240,7 @@ export type MoveIPRequest = {
|
|
|
240
240
|
* Region to target. If none is passed will use default region from the
|
|
241
241
|
* config.
|
|
242
242
|
*/
|
|
243
|
-
region?:
|
|
243
|
+
region?: ScwRegion;
|
|
244
244
|
/** IP ID. */
|
|
245
245
|
ipId: string;
|
|
246
246
|
/** Custom resource currently attached to the IP. */
|
|
@@ -253,7 +253,7 @@ export type ReleaseIPRequest = {
|
|
|
253
253
|
* Region to target. If none is passed will use default region from the
|
|
254
254
|
* config.
|
|
255
255
|
*/
|
|
256
|
-
region?:
|
|
256
|
+
region?: ScwRegion;
|
|
257
257
|
/** IP ID. */
|
|
258
258
|
ipId: string;
|
|
259
259
|
};
|
|
@@ -262,7 +262,7 @@ export type ReleaseIPSetRequest = {
|
|
|
262
262
|
* Region to target. If none is passed will use default region from the
|
|
263
263
|
* config.
|
|
264
264
|
*/
|
|
265
|
-
region?:
|
|
265
|
+
region?: ScwRegion;
|
|
266
266
|
ipIds?: string[];
|
|
267
267
|
};
|
|
268
268
|
export type UpdateIPRequest = {
|
|
@@ -270,7 +270,7 @@ export type UpdateIPRequest = {
|
|
|
270
270
|
* Region to target. If none is passed will use default region from the
|
|
271
271
|
* config.
|
|
272
272
|
*/
|
|
273
|
-
region?:
|
|
273
|
+
region?: ScwRegion;
|
|
274
274
|
/** IP ID. */
|
|
275
275
|
ipId: string;
|
|
276
276
|
/** Tags for the IP. */
|
|
@@ -10,7 +10,11 @@ const jsonContentHeaders = {
|
|
|
10
10
|
};
|
|
11
11
|
class API extends api.API {
|
|
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
|
/**
|
|
15
19
|
* Create a new job definition in a specified Project.
|
|
16
20
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
|
-
import type { Region } from '../../../bridge';
|
|
2
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
3
3
|
import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, CreateJobDefinitionSecretsResponse, DeleteJobDefinitionRequest, DeleteJobDefinitionSecretRequest, GetJobDefinitionRequest, GetJobDefinitionSecretRequest, GetJobRunRequest, GetJobsLimitsRequest, JobDefinition, JobRun, JobsLimits, ListJobDefinitionSecretsRequest, ListJobDefinitionSecretsResponse, ListJobDefinitionsRequest, ListJobDefinitionsResponse, ListJobRunsRequest, ListJobRunsResponse, ListJobsResourcesRequest, ListJobsResourcesResponse, Secret, StartJobDefinitionRequest, StartJobDefinitionResponse, StopJobRunRequest, UpdateJobDefinitionRequest, UpdateJobDefinitionSecretRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Serverless Jobs API.
|
|
@@ -8,7 +8,7 @@ import type { CreateJobDefinitionRequest, CreateJobDefinitionSecretsRequest, Cre
|
|
|
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
|
/**
|
|
13
13
|
* Create a new job definition in a specified Project.
|
|
14
14
|
*
|
|
@@ -8,7 +8,11 @@ const jsonContentHeaders = {
|
|
|
8
8
|
};
|
|
9
9
|
class API extends API$1 {
|
|
10
10
|
/** Lists the available regions of the API. */
|
|
11
|
-
static LOCALITIES = [
|
|
11
|
+
static LOCALITIES = [
|
|
12
|
+
"fr-par",
|
|
13
|
+
"nl-ams",
|
|
14
|
+
"pl-waw"
|
|
15
|
+
];
|
|
12
16
|
/**
|
|
13
17
|
* Create a new job definition in a specified Project.
|
|
14
18
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Region } from '../../../bridge';
|
|
1
|
+
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
2
|
export type JobRunState = 'unknown_state' | 'queued' | 'scheduled' | 'running' | 'succeeded' | 'failed' | 'canceled' | 'internal_error';
|
|
3
3
|
export type ListJobDefinitionsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
4
4
|
export type ListJobRunsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
@@ -68,7 +68,7 @@ export interface JobDefinition {
|
|
|
68
68
|
* Region to target. If none is passed will use default region from the
|
|
69
69
|
* config.
|
|
70
70
|
*/
|
|
71
|
-
region:
|
|
71
|
+
region: ScwRegion;
|
|
72
72
|
}
|
|
73
73
|
export interface JobRun {
|
|
74
74
|
id: string;
|
|
@@ -90,7 +90,7 @@ export interface JobRun {
|
|
|
90
90
|
* Region to target. If none is passed will use default region from the
|
|
91
91
|
* config.
|
|
92
92
|
*/
|
|
93
|
-
region:
|
|
93
|
+
region: ScwRegion;
|
|
94
94
|
}
|
|
95
95
|
export interface Resource {
|
|
96
96
|
cpuLimit: number;
|
|
@@ -105,7 +105,7 @@ export type CreateJobDefinitionRequest = {
|
|
|
105
105
|
* Region to target. If none is passed will use default region from the
|
|
106
106
|
* config.
|
|
107
107
|
*/
|
|
108
|
-
region?:
|
|
108
|
+
region?: ScwRegion;
|
|
109
109
|
/** Name of the job definition. */
|
|
110
110
|
name?: string;
|
|
111
111
|
/** CPU limit of the job. */
|
|
@@ -137,7 +137,7 @@ export type CreateJobDefinitionSecretsRequest = {
|
|
|
137
137
|
* Region to target. If none is passed will use default region from the
|
|
138
138
|
* config.
|
|
139
139
|
*/
|
|
140
|
-
region?:
|
|
140
|
+
region?: ScwRegion;
|
|
141
141
|
/** UUID of the job definition. */
|
|
142
142
|
jobDefinitionId: string;
|
|
143
143
|
/** List of secrets to inject into the job. */
|
|
@@ -152,7 +152,7 @@ export type DeleteJobDefinitionRequest = {
|
|
|
152
152
|
* Region to target. If none is passed will use default region from the
|
|
153
153
|
* config.
|
|
154
154
|
*/
|
|
155
|
-
region?:
|
|
155
|
+
region?: ScwRegion;
|
|
156
156
|
/** UUID of the job definition to delete. */
|
|
157
157
|
jobDefinitionId: string;
|
|
158
158
|
};
|
|
@@ -161,7 +161,7 @@ export type DeleteJobDefinitionSecretRequest = {
|
|
|
161
161
|
* Region to target. If none is passed will use default region from the
|
|
162
162
|
* config.
|
|
163
163
|
*/
|
|
164
|
-
region?:
|
|
164
|
+
region?: ScwRegion;
|
|
165
165
|
/** UUID of the job definition. */
|
|
166
166
|
jobDefinitionId: string;
|
|
167
167
|
/** UUID of the secret reference within the job. */
|
|
@@ -172,7 +172,7 @@ export type GetJobDefinitionRequest = {
|
|
|
172
172
|
* Region to target. If none is passed will use default region from the
|
|
173
173
|
* config.
|
|
174
174
|
*/
|
|
175
|
-
region?:
|
|
175
|
+
region?: ScwRegion;
|
|
176
176
|
/** UUID of the job definition to get. */
|
|
177
177
|
jobDefinitionId: string;
|
|
178
178
|
};
|
|
@@ -181,7 +181,7 @@ export type GetJobDefinitionSecretRequest = {
|
|
|
181
181
|
* Region to target. If none is passed will use default region from the
|
|
182
182
|
* config.
|
|
183
183
|
*/
|
|
184
|
-
region?:
|
|
184
|
+
region?: ScwRegion;
|
|
185
185
|
/** UUID of the job definition. */
|
|
186
186
|
jobDefinitionId: string;
|
|
187
187
|
/** UUID of the secret reference within the job. */
|
|
@@ -192,7 +192,7 @@ export type GetJobRunRequest = {
|
|
|
192
192
|
* Region to target. If none is passed will use default region from the
|
|
193
193
|
* config.
|
|
194
194
|
*/
|
|
195
|
-
region?:
|
|
195
|
+
region?: ScwRegion;
|
|
196
196
|
/** UUID of the job run to get. */
|
|
197
197
|
jobRunId: string;
|
|
198
198
|
};
|
|
@@ -201,7 +201,7 @@ export type GetJobsLimitsRequest = {
|
|
|
201
201
|
* Region to target. If none is passed will use default region from the
|
|
202
202
|
* config.
|
|
203
203
|
*/
|
|
204
|
-
region?:
|
|
204
|
+
region?: ScwRegion;
|
|
205
205
|
};
|
|
206
206
|
export interface JobsLimits {
|
|
207
207
|
secretsPerJobDefinition: number;
|
|
@@ -211,7 +211,7 @@ export type ListJobDefinitionSecretsRequest = {
|
|
|
211
211
|
* Region to target. If none is passed will use default region from the
|
|
212
212
|
* config.
|
|
213
213
|
*/
|
|
214
|
-
region?:
|
|
214
|
+
region?: ScwRegion;
|
|
215
215
|
/** UUID of the job definition. */
|
|
216
216
|
jobDefinitionId: string;
|
|
217
217
|
};
|
|
@@ -226,7 +226,7 @@ export type ListJobDefinitionsRequest = {
|
|
|
226
226
|
* Region to target. If none is passed will use default region from the
|
|
227
227
|
* config.
|
|
228
228
|
*/
|
|
229
|
-
region?:
|
|
229
|
+
region?: ScwRegion;
|
|
230
230
|
page?: number;
|
|
231
231
|
pageSize?: number;
|
|
232
232
|
orderBy?: ListJobDefinitionsRequestOrderBy;
|
|
@@ -242,7 +242,7 @@ export type ListJobRunsRequest = {
|
|
|
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
|
page?: number;
|
|
247
247
|
pageSize?: number;
|
|
248
248
|
orderBy?: ListJobRunsRequestOrderBy;
|
|
@@ -260,7 +260,7 @@ export type ListJobsResourcesRequest = {
|
|
|
260
260
|
* Region to target. If none is passed will use default region from the
|
|
261
261
|
* config.
|
|
262
262
|
*/
|
|
263
|
-
region?:
|
|
263
|
+
region?: ScwRegion;
|
|
264
264
|
};
|
|
265
265
|
export interface ListJobsResourcesResponse {
|
|
266
266
|
resources: Resource[];
|
|
@@ -270,7 +270,7 @@ export type StartJobDefinitionRequest = {
|
|
|
270
270
|
* Region to target. If none is passed will use default region from the
|
|
271
271
|
* config.
|
|
272
272
|
*/
|
|
273
|
-
region?:
|
|
273
|
+
region?: ScwRegion;
|
|
274
274
|
/** UUID of the job definition to start. */
|
|
275
275
|
jobDefinitionId: string;
|
|
276
276
|
/** Contextual startup command for this specific job run. */
|
|
@@ -288,7 +288,7 @@ export type StopJobRunRequest = {
|
|
|
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
|
/** UUID of the job run to stop. */
|
|
293
293
|
jobRunId: string;
|
|
294
294
|
};
|
|
@@ -297,7 +297,7 @@ export type UpdateJobDefinitionRequest = {
|
|
|
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
|
/** UUID of the job definition to update. */
|
|
302
302
|
jobDefinitionId: string;
|
|
303
303
|
/** Name of the job definition. */
|
|
@@ -325,7 +325,7 @@ export type UpdateJobDefinitionSecretRequest = {
|
|
|
325
325
|
* Region to target. If none is passed will use default region from the
|
|
326
326
|
* config.
|
|
327
327
|
*/
|
|
328
|
-
region?:
|
|
328
|
+
region?: ScwRegion;
|
|
329
329
|
/** UUID of the job definition. */
|
|
330
330
|
jobDefinitionId: string;
|
|
331
331
|
/** UUID of the secret reference within the job. */
|