@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.
Files changed (100) hide show
  1. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +1 -1
  2. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
  3. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
  4. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
  5. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
  6. package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
  7. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
  8. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
  9. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
  10. package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
  11. package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
  12. package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
  13. package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
  14. package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
  15. package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
  16. package/dist/api/cockpit/v1/api.gen.cjs +14 -17
  17. package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
  18. package/dist/api/cockpit/v1/api.gen.js +15 -18
  19. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  20. package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
  21. package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
  22. package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
  23. package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
  24. package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
  25. package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
  26. package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
  27. package/dist/api/container/v1beta1/api.gen.cjs +5 -1
  28. package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
  29. package/dist/api/container/v1beta1/api.gen.js +5 -1
  30. package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
  31. package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
  32. package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
  33. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  34. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
  35. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
  36. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
  37. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
  38. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
  39. package/dist/api/function/v1beta1/api.gen.cjs +5 -1
  40. package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
  41. package/dist/api/function/v1beta1/api.gen.js +5 -1
  42. package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
  43. package/dist/api/iot/v1/api.gen.d.ts +2 -2
  44. package/dist/api/iot/v1/types.gen.d.ts +38 -38
  45. package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
  46. package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
  47. package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
  48. package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
  49. package/dist/api/k8s/v1/api.gen.cjs +5 -1
  50. package/dist/api/k8s/v1/api.gen.d.ts +2 -2
  51. package/dist/api/k8s/v1/api.gen.js +5 -1
  52. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  53. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  54. package/dist/api/k8s/v1/types.gen.d.ts +42 -41
  55. package/dist/api/lb/v1/marshalling.gen.cjs +5 -0
  56. package/dist/api/lb/v1/marshalling.gen.js +5 -0
  57. package/dist/api/lb/v1/types.gen.d.ts +25 -0
  58. package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
  59. package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
  60. package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
  61. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
  62. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
  63. package/dist/api/rdb/v1/api.gen.cjs +5 -1
  64. package/dist/api/rdb/v1/api.gen.d.ts +2 -2
  65. package/dist/api/rdb/v1/api.gen.js +5 -1
  66. package/dist/api/rdb/v1/types.gen.d.ts +67 -67
  67. package/dist/api/redis/v1/api.gen.d.ts +2 -2
  68. package/dist/api/redis/v1/types.gen.d.ts +28 -28
  69. package/dist/api/registry/v1/api.gen.cjs +5 -1
  70. package/dist/api/registry/v1/api.gen.d.ts +2 -2
  71. package/dist/api/registry/v1/api.gen.js +5 -1
  72. package/dist/api/registry/v1/types.gen.d.ts +14 -14
  73. package/dist/api/secret/v1beta1/api.gen.cjs +38 -1
  74. package/dist/api/secret/v1beta1/api.gen.d.ts +19 -3
  75. package/dist/api/secret/v1beta1/api.gen.js +38 -1
  76. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  77. package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
  78. package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
  79. package/dist/api/secret/v1beta1/types.gen.d.ts +52 -25
  80. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
  81. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
  82. package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
  83. package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
  84. package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
  85. package/dist/api/vpcgw/v1/api.gen.d.ts +4 -3
  86. package/dist/api/vpcgw/v1/api.gen.js +6 -0
  87. package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
  88. package/dist/api/vpcgw/v1/types.gen.d.ts +49 -44
  89. package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
  90. package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
  91. package/dist/api/webhosting/v1/marshalling.gen.cjs +7 -3
  92. package/dist/api/webhosting/v1/marshalling.gen.js +7 -3
  93. package/dist/api/webhosting/v1/types.gen.d.ts +14 -6
  94. package/dist/scw/client-settings.cjs +2 -2
  95. package/dist/scw/client-settings.d.ts +2 -2
  96. package/dist/scw/client-settings.js +2 -2
  97. package/dist/scw/constants.cjs +1 -1
  98. package/dist/scw/constants.d.ts +2 -2
  99. package/dist/scw/constants.js +1 -1
  100. 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: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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 = ["fr-par", "nl-ams", "pl-waw"];
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: Region[];
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 = ["fr-par", "nl-ams", "pl-waw"];
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: 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: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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. */
@@ -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 = ["fr-par", "nl-ams", "pl-waw"];
15
+ static LOCALITIES = [
16
+ "fr-par",
17
+ "nl-ams",
18
+ "pl-waw"
19
+ ];
16
20
  pageOfListClusters = (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 { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExternalNodeRequest, Cluster, CreateClusterRequest, CreateExternalNodeRequest, CreatePoolRequest, DeleteACLRuleRequest, DeleteClusterRequest, DeleteNodeRequest, DeletePoolRequest, ExternalNode, ExternalNodeAuth, GetClusterKubeConfigRequest, GetClusterRequest, GetNodeMetadataRequest, GetNodeRequest, GetPoolRequest, GetVersionRequest, ListClusterACLRulesRequest, ListClusterACLRulesResponse, ListClusterAvailableTypesRequest, ListClusterAvailableTypesResponse, ListClusterAvailableVersionsRequest, ListClusterAvailableVersionsResponse, ListClusterTypesRequest, ListClusterTypesResponse, ListClustersRequest, ListClustersResponse, ListNodesRequest, ListNodesResponse, ListPoolsRequest, ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, MigrateClusterToSBSCSIRequest, Node, NodeMetadata, Pool, RebootNodeRequest, ReplaceNodeRequest, ResetClusterAdminTokenRequest, SetClusterACLRulesRequest, SetClusterACLRulesResponse, SetClusterTypeRequest, UpdateClusterRequest, UpdatePoolRequest, UpgradeClusterRequest, UpgradePoolRequest, Version } from './types.gen';
4
4
  /**
5
5
  * Kubernetes API.
@@ -8,7 +8,7 @@ import type { AddClusterACLRulesRequest, AddClusterACLRulesResponse, AuthExterna
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available regions of the API. */
11
- static readonly LOCALITIES: Region[];
11
+ static readonly LOCALITIES: ScwRegion[];
12
12
  protected pageOfListClusters: (request?: Readonly<ListClustersRequest>) => Promise<ListClustersResponse>;
13
13
  /**
14
14
  * List Clusters. List all existing Kubernetes clusters in a specific region.
@@ -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 = ["fr-par", "nl-ams", "pl-waw"];
13
+ static LOCALITIES = [
14
+ "fr-par",
15
+ "nl-ams",
16
+ "pl-waw"
17
+ ];
14
18
  pageOfListClusters = (request = {}) => this.client.fetch(
15
19
  {
16
20
  method: "GET",
@@ -225,6 +225,7 @@ const unmarshalExternalNode = (data) => {
225
225
  cniPluginsVersion: data.cni_plugins_version,
226
226
  containerdVersion: data.containerd_version,
227
227
  externalIp: data.external_ip,
228
+ iamToken: data.iam_token,
228
229
  id: data.id,
229
230
  kubeToken: data.kube_token,
230
231
  kubeletConfig: data.kubelet_config,
@@ -223,6 +223,7 @@ const unmarshalExternalNode = (data) => {
223
223
  cniPluginsVersion: data.cni_plugins_version,
224
224
  containerdVersion: data.containerd_version,
225
225
  externalIp: data.external_ip,
226
+ iamToken: data.iam_token,
226
227
  id: data.id,
227
228
  kubeToken: data.kube_token,
228
229
  kubeletConfig: data.kubelet_config,