@scaleway/sdk 2.65.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.
Files changed (77) 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/container/v1beta1/api.gen.cjs +5 -1
  17. package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
  18. package/dist/api/container/v1beta1/api.gen.js +5 -1
  19. package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
  20. package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
  21. package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
  22. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  23. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
  24. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
  25. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
  26. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
  27. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
  28. package/dist/api/function/v1beta1/api.gen.cjs +5 -1
  29. package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
  30. package/dist/api/function/v1beta1/api.gen.js +5 -1
  31. package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
  32. package/dist/api/iot/v1/api.gen.d.ts +2 -2
  33. package/dist/api/iot/v1/types.gen.d.ts +38 -38
  34. package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
  35. package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
  36. package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
  37. package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
  38. package/dist/api/k8s/v1/api.gen.cjs +5 -1
  39. package/dist/api/k8s/v1/api.gen.d.ts +2 -2
  40. package/dist/api/k8s/v1/api.gen.js +5 -1
  41. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  42. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  43. package/dist/api/k8s/v1/types.gen.d.ts +42 -41
  44. package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
  45. package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
  46. package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
  47. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
  48. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
  49. package/dist/api/rdb/v1/api.gen.cjs +5 -1
  50. package/dist/api/rdb/v1/api.gen.d.ts +2 -2
  51. package/dist/api/rdb/v1/api.gen.js +5 -1
  52. package/dist/api/rdb/v1/types.gen.d.ts +67 -67
  53. package/dist/api/redis/v1/api.gen.d.ts +2 -2
  54. package/dist/api/redis/v1/types.gen.d.ts +28 -28
  55. package/dist/api/registry/v1/api.gen.cjs +5 -1
  56. package/dist/api/registry/v1/api.gen.d.ts +2 -2
  57. package/dist/api/registry/v1/api.gen.js +5 -1
  58. package/dist/api/registry/v1/types.gen.d.ts +14 -14
  59. package/dist/api/secret/v1beta1/api.gen.cjs +5 -1
  60. package/dist/api/secret/v1beta1/api.gen.d.ts +2 -2
  61. package/dist/api/secret/v1beta1/api.gen.js +5 -1
  62. package/dist/api/secret/v1beta1/types.gen.d.ts +22 -22
  63. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
  64. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
  65. package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
  66. package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
  67. package/dist/api/vpcgw/v1/api.gen.d.ts +2 -2
  68. package/dist/api/vpcgw/v1/types.gen.d.ts +44 -44
  69. package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
  70. package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
  71. package/dist/scw/client-settings.cjs +2 -2
  72. package/dist/scw/client-settings.d.ts +2 -2
  73. package/dist/scw/client-settings.js +2 -2
  74. package/dist/scw/constants.cjs +1 -1
  75. package/dist/scw/constants.d.ts +2 -2
  76. package/dist/scw/constants.js +1 -1
  77. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { Region, Zone } from '../../../bridge';
1
+ import type { Region as ScwRegion, Zone as ScwZone } from '../../../bridge';
2
2
  export type AutoscalerEstimator = 'unknown_estimator' | 'binpacking';
3
3
  export type AutoscalerExpander = 'unknown_expander' | 'random' | 'most_pods' | 'least_waste' | 'priority' | 'price';
4
4
  export type CNI = 'unknown_cni' | 'cilium' | 'calico' | 'weave' | 'flannel' | 'kilo' | 'none';
@@ -170,7 +170,7 @@ export interface Pool {
170
170
  /** Pool upgrade policy. */
171
171
  upgradePolicy?: PoolUpgradePolicy;
172
172
  /** Zone in which the pool's nodes will be spawned. */
173
- zone: Zone;
173
+ zone: ScwZone;
174
174
  /**
175
175
  * - `l_ssd` is a local block storage which means your system is stored locally
176
176
  * on your node's hypervisor. This type is not available for all node types
@@ -192,7 +192,7 @@ export interface Pool {
192
192
  */
193
193
  publicIpDisabled: boolean;
194
194
  /** Cluster region of the pool. */
195
- region: Region;
195
+ region: ScwRegion;
196
196
  }
197
197
  export interface ACLRuleRequest {
198
198
  /**
@@ -357,7 +357,7 @@ export interface CreateClusterRequestPoolConfig {
357
357
  /** Pool upgrade policy. */
358
358
  upgradePolicy?: CreateClusterRequestPoolConfigUpgradePolicy;
359
359
  /** Zone in which the pool's nodes will be spawned. */
360
- zone: Zone;
360
+ zone: ScwZone;
361
361
  /**
362
362
  * - `l_ssd` is a local block storage which means your system is stored locally
363
363
  * on your node's hypervisor. This type is not available for all node types
@@ -419,7 +419,7 @@ export interface Version {
419
419
  /** Label of the Kubernetes version. */
420
420
  label: string;
421
421
  /** Region in which this version is available. */
422
- region: Region;
422
+ region: ScwRegion;
423
423
  /** Supported Container Network Interface (CNI) plugins for this version. */
424
424
  availableCnis: CNI[];
425
425
  /** Supported container runtimes for this version. */
@@ -443,7 +443,7 @@ export interface Cluster {
443
443
  /** Kubernetes version of the cluster. */
444
444
  version: string;
445
445
  /** Region in which the cluster is deployed. */
446
- region: Region;
446
+ region: ScwRegion;
447
447
  /** ID of the Organization owning the cluster. */
448
448
  organizationId: string;
449
449
  /** ID of the Project owning the cluster. */
@@ -508,7 +508,7 @@ export interface Node {
508
508
  */
509
509
  providerId: string;
510
510
  /** Cluster region of the node. */
511
- region: Region;
511
+ region: ScwRegion;
512
512
  /** Name of the node. */
513
513
  name: string;
514
514
  /** @deprecated Public IPv4 address of the node. */
@@ -626,7 +626,7 @@ export type AddClusterACLRulesRequest = {
626
626
  * Region to target. If none is passed will use default region from the
627
627
  * config.
628
628
  */
629
- region?: Region;
629
+ region?: ScwRegion;
630
630
  /** ID of the cluster whose ACLs will be added. */
631
631
  clusterId: string;
632
632
  /** ACLs to add. */
@@ -641,7 +641,7 @@ export type AuthExternalNodeRequest = {
641
641
  * Region to target. If none is passed will use default region from the
642
642
  * config.
643
643
  */
644
- region?: Region;
644
+ region?: ScwRegion;
645
645
  /** Pool the node will be attached to. */
646
646
  poolId: string;
647
647
  };
@@ -650,7 +650,7 @@ export type CreateClusterRequest = {
650
650
  * Region to target. If none is passed will use default region from the
651
651
  * config.
652
652
  */
653
- region?: Region;
653
+ region?: ScwRegion;
654
654
  /**
655
655
  * @deprecated Organization ID in which the cluster will be created.
656
656
  *
@@ -721,7 +721,7 @@ export type CreateExternalNodeRequest = {
721
721
  * Region to target. If none is passed will use default region from the
722
722
  * config.
723
723
  */
724
- region?: Region;
724
+ region?: ScwRegion;
725
725
  poolId: string;
726
726
  };
727
727
  export type CreatePoolRequest = {
@@ -729,7 +729,7 @@ export type CreatePoolRequest = {
729
729
  * Region to target. If none is passed will use default region from the
730
730
  * config.
731
731
  */
732
- region?: Region;
732
+ region?: ScwRegion;
733
733
  /** Cluster ID to which the pool will be attached. */
734
734
  clusterId: string;
735
735
  /** Pool name. */
@@ -777,7 +777,7 @@ export type CreatePoolRequest = {
777
777
  /** Pool upgrade policy. */
778
778
  upgradePolicy?: CreatePoolRequestUpgradePolicy;
779
779
  /** Zone in which the pool's nodes will be spawned. */
780
- zone?: Zone;
780
+ zone?: ScwZone;
781
781
  /**
782
782
  * - `l_ssd` is a local block storage which means your system is stored locally
783
783
  * on your node's hypervisor. This type is not available for all node types
@@ -804,7 +804,7 @@ export type DeleteACLRuleRequest = {
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
  /** ID of the ACL rule to delete. */
809
809
  aclId: string;
810
810
  };
@@ -813,7 +813,7 @@ export type DeleteClusterRequest = {
813
813
  * Region to target. If none is passed will use default region from the
814
814
  * config.
815
815
  */
816
- region?: Region;
816
+ region?: ScwRegion;
817
817
  /** ID of the cluster to delete. */
818
818
  clusterId: string;
819
819
  /**
@@ -828,7 +828,7 @@ export type DeleteNodeRequest = {
828
828
  * Region to target. If none is passed will use default region from the
829
829
  * config.
830
830
  */
831
- region?: Region;
831
+ region?: ScwRegion;
832
832
  /** ID of the node to replace. */
833
833
  nodeId: string;
834
834
  /**
@@ -844,7 +844,7 @@ export type DeletePoolRequest = {
844
844
  * Region to target. If none is passed will use default region from the
845
845
  * config.
846
846
  */
847
- region?: Region;
847
+ region?: ScwRegion;
848
848
  /** ID of the pool to delete. */
849
849
  poolId: string;
850
850
  };
@@ -862,6 +862,7 @@ export interface ExternalNode {
862
862
  cniPluginsVersion: string;
863
863
  nodeLabels: Record<string, string>;
864
864
  nodeTaints: ExternalNodeCoreV1Taint[];
865
+ iamToken: string;
865
866
  }
866
867
  export interface ExternalNodeAuth {
867
868
  nodeSecretKey: string;
@@ -872,7 +873,7 @@ export type GetClusterKubeConfigRequest = {
872
873
  * Region to target. If none is passed will use default region from the
873
874
  * config.
874
875
  */
875
- region?: Region;
876
+ region?: ScwRegion;
876
877
  /** Cluster ID for which to download the kubeconfig. */
877
878
  clusterId: string;
878
879
  /** Hide the legacy token from the kubeconfig. */
@@ -883,7 +884,7 @@ export type GetClusterRequest = {
883
884
  * Region to target. If none is passed will use default region from the
884
885
  * config.
885
886
  */
886
- region?: Region;
887
+ region?: ScwRegion;
887
888
  /** ID of the requested cluster. */
888
889
  clusterId: string;
889
890
  };
@@ -892,14 +893,14 @@ export type GetNodeMetadataRequest = {
892
893
  * Region to target. If none is passed will use default region from the
893
894
  * config.
894
895
  */
895
- region?: Region;
896
+ region?: ScwRegion;
896
897
  };
897
898
  export type GetNodeRequest = {
898
899
  /**
899
900
  * Region to target. If none is passed will use default region from the
900
901
  * config.
901
902
  */
902
- region?: Region;
903
+ region?: ScwRegion;
903
904
  /** ID of the requested node. */
904
905
  nodeId: string;
905
906
  };
@@ -908,7 +909,7 @@ export type GetPoolRequest = {
908
909
  * Region to target. If none is passed will use default region from the
909
910
  * config.
910
911
  */
911
- region?: Region;
912
+ region?: ScwRegion;
912
913
  /** ID of the requested pool. */
913
914
  poolId: string;
914
915
  };
@@ -917,7 +918,7 @@ export type GetVersionRequest = {
917
918
  * Region to target. If none is passed will use default region from the
918
919
  * config.
919
920
  */
920
- region?: Region;
921
+ region?: ScwRegion;
921
922
  /** Requested version name. */
922
923
  versionName: string;
923
924
  };
@@ -926,7 +927,7 @@ export type ListClusterACLRulesRequest = {
926
927
  * Region to target. If none is passed will use default region from the
927
928
  * config.
928
929
  */
929
- region?: Region;
930
+ region?: ScwRegion;
930
931
  /** ID of the cluster whose ACLs will be listed. */
931
932
  clusterId: string;
932
933
  /** Page number for the returned ACLs. */
@@ -945,7 +946,7 @@ export type ListClusterAvailableTypesRequest = {
945
946
  * Region to target. If none is passed will use default region from the
946
947
  * config.
947
948
  */
948
- region?: Region;
949
+ region?: ScwRegion;
949
950
  /** Cluster ID for which the available Kubernetes types will be listed. */
950
951
  clusterId: string;
951
952
  };
@@ -960,7 +961,7 @@ export type ListClusterAvailableVersionsRequest = {
960
961
  * Region to target. If none is passed will use default region from the
961
962
  * config.
962
963
  */
963
- region?: Region;
964
+ region?: ScwRegion;
964
965
  /** Cluster ID for which the available Kubernetes versions will be listed. */
965
966
  clusterId: string;
966
967
  };
@@ -973,7 +974,7 @@ export type ListClusterTypesRequest = {
973
974
  * Region to target. If none is passed will use default region from the
974
975
  * config.
975
976
  */
976
- region?: Region;
977
+ region?: ScwRegion;
977
978
  /** Page number, from the paginated results, to return for cluster-types. */
978
979
  page?: number;
979
980
  /** Maximum number of clusters per page. */
@@ -990,7 +991,7 @@ export type ListClustersRequest = {
990
991
  * Region to target. If none is passed will use default region from the
991
992
  * config.
992
993
  */
993
- region?: Region;
994
+ region?: ScwRegion;
994
995
  /** Organization ID on which to filter the returned clusters. */
995
996
  organizationId?: string;
996
997
  /** Project ID on which to filter the returned clusters. */
@@ -1027,7 +1028,7 @@ export type ListNodesRequest = {
1027
1028
  * Region to target. If none is passed will use default region from the
1028
1029
  * config.
1029
1030
  */
1030
- region?: Region;
1031
+ region?: ScwRegion;
1031
1032
  /** Cluster ID from which the nodes will be listed from. */
1032
1033
  clusterId: string;
1033
1034
  /** Pool ID on which to filter the returned nodes. */
@@ -1057,7 +1058,7 @@ export type ListPoolsRequest = {
1057
1058
  * Region to target. If none is passed will use default region from the
1058
1059
  * config.
1059
1060
  */
1060
- region?: Region;
1061
+ region?: ScwRegion;
1061
1062
  /** ID of the cluster whose pools will be listed. */
1062
1063
  clusterId: string;
1063
1064
  /** Sort order of returned pools. */
@@ -1085,7 +1086,7 @@ export type ListVersionsRequest = {
1085
1086
  * Region to target. If none is passed will use default region from the
1086
1087
  * config.
1087
1088
  */
1088
- region?: Region;
1089
+ region?: ScwRegion;
1089
1090
  };
1090
1091
  export interface ListVersionsResponse {
1091
1092
  /** Available Kubernetes versions. */
@@ -1096,7 +1097,7 @@ export type MigrateClusterToSBSCSIRequest = {
1096
1097
  * Region to target. If none is passed will use default region from the
1097
1098
  * config.
1098
1099
  */
1099
- region?: Region;
1100
+ region?: ScwRegion;
1100
1101
  /**
1101
1102
  * Cluster ID for which the latest CSI compatible with Scaleway Block Storage
1102
1103
  * will be enabled.
@@ -1122,7 +1123,7 @@ export type RebootNodeRequest = {
1122
1123
  * Region to target. If none is passed will use default region from the
1123
1124
  * config.
1124
1125
  */
1125
- region?: Region;
1126
+ region?: ScwRegion;
1126
1127
  /** ID of the node to reboot. */
1127
1128
  nodeId: string;
1128
1129
  };
@@ -1131,7 +1132,7 @@ export type ReplaceNodeRequest = {
1131
1132
  * Region to target. If none is passed will use default region from the
1132
1133
  * config.
1133
1134
  */
1134
- region?: Region;
1135
+ region?: ScwRegion;
1135
1136
  /** ID of the node to replace. */
1136
1137
  nodeId: string;
1137
1138
  };
@@ -1140,7 +1141,7 @@ export type ResetClusterAdminTokenRequest = {
1140
1141
  * Region to target. If none is passed will use default region from the
1141
1142
  * config.
1142
1143
  */
1143
- region?: Region;
1144
+ region?: ScwRegion;
1144
1145
  /** Cluster ID on which the admin token will be renewed. */
1145
1146
  clusterId: string;
1146
1147
  };
@@ -1149,7 +1150,7 @@ export type SetClusterACLRulesRequest = {
1149
1150
  * Region to target. If none is passed will use default region from the
1150
1151
  * config.
1151
1152
  */
1152
- region?: Region;
1153
+ region?: ScwRegion;
1153
1154
  /** ID of the cluster whose ACLs will be set. */
1154
1155
  clusterId: string;
1155
1156
  /** ACLs to set. */
@@ -1164,7 +1165,7 @@ export type SetClusterTypeRequest = {
1164
1165
  * Region to target. If none is passed will use default region from the
1165
1166
  * config.
1166
1167
  */
1167
- region?: Region;
1168
+ region?: ScwRegion;
1168
1169
  /** ID of the cluster to migrate from one type to another. */
1169
1170
  clusterId: string;
1170
1171
  /**
@@ -1178,7 +1179,7 @@ export type UpdateClusterRequest = {
1178
1179
  * Region to target. If none is passed will use default region from the
1179
1180
  * config.
1180
1181
  */
1181
- region?: Region;
1182
+ region?: ScwRegion;
1182
1183
  /** ID of the cluster to update. */
1183
1184
  clusterId: string;
1184
1185
  /** New external name for the cluster. */
@@ -1214,7 +1215,7 @@ export type UpdatePoolRequest = {
1214
1215
  * Region to target. If none is passed will use default region from the
1215
1216
  * config.
1216
1217
  */
1217
- region?: Region;
1218
+ region?: ScwRegion;
1218
1219
  /** ID of the pool to update. */
1219
1220
  poolId: string;
1220
1221
  /** New value for the pool autoscaling enablement. */
@@ -1242,7 +1243,7 @@ export type UpgradeClusterRequest = {
1242
1243
  * Region to target. If none is passed will use default region from the
1243
1244
  * config.
1244
1245
  */
1245
- region?: Region;
1246
+ region?: ScwRegion;
1246
1247
  /** ID of the cluster to upgrade. */
1247
1248
  clusterId: string;
1248
1249
  /**
@@ -1262,7 +1263,7 @@ export type UpgradePoolRequest = {
1262
1263
  * Region to target. If none is passed will use default region from the
1263
1264
  * config.
1264
1265
  */
1265
- region?: Region;
1266
+ region?: ScwRegion;
1266
1267
  /** ID of the pool to upgrade. */
1267
1268
  poolId: string;
1268
1269
  /** New Kubernetes version for the pool. */
@@ -1,4 +1,4 @@
1
- import type { Zone } from '../../../bridge';
1
+ import type { Zone as ScwZone } from '../../../bridge';
2
2
  export type ListImagesRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
3
3
  export type ListLocalImagesRequestOrderBy = 'type_asc' | 'type_desc' | 'created_at_asc' | 'created_at_desc';
4
4
  export type ListVersionsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
@@ -39,7 +39,7 @@ export interface LocalImage {
39
39
  /** Supported architecture for this local image. */
40
40
  arch: string;
41
41
  /** Availability Zone where this local image is available. */
42
- zone: Zone;
42
+ zone: ScwZone;
43
43
  /** This label can be used in the image field of the server creation request. */
44
44
  label: string;
45
45
  /** Type of this local image. */
@@ -110,7 +110,7 @@ export type ListLocalImagesRequest = {
110
110
  /** Ordering to use. */
111
111
  orderBy?: ListLocalImagesRequestOrderBy;
112
112
  /** Filter local images available on this Availability Zone. */
113
- zone?: Zone;
113
+ zone?: ScwZone;
114
114
  /**
115
115
  * Filter by image id.
116
116
  *
@@ -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 { ListNatsAccountsResponse, ListNatsCredentialsResponse, ListSnsCredentialsResponse, ListSqsCredentialsResponse, NatsAccount, NatsApiCreateNatsAccountRequest, NatsApiCreateNatsCredentialsRequest, NatsApiDeleteNatsAccountRequest, NatsApiDeleteNatsCredentialsRequest, NatsApiGetNatsAccountRequest, NatsApiGetNatsCredentialsRequest, NatsApiListNatsAccountsRequest, NatsApiListNatsCredentialsRequest, NatsApiUpdateNatsAccountRequest, NatsCredentials, SnsApiActivateSnsRequest, SnsApiCreateSnsCredentialsRequest, SnsApiDeactivateSnsRequest, SnsApiDeleteSnsCredentialsRequest, SnsApiGetSnsCredentialsRequest, SnsApiGetSnsInfoRequest, SnsApiListSnsCredentialsRequest, SnsApiUpdateSnsCredentialsRequest, SnsCredentials, SnsInfo, SqsApiActivateSqsRequest, SqsApiCreateSqsCredentialsRequest, SqsApiDeactivateSqsRequest, SqsApiDeleteSqsCredentialsRequest, SqsApiGetSqsCredentialsRequest, SqsApiGetSqsInfoRequest, SqsApiListSqsCredentialsRequest, SqsApiUpdateSqsCredentialsRequest, SqsCredentials, SqsInfo } from './types.gen';
4
4
  /**
5
5
  * NATS API.
@@ -8,7 +8,7 @@ import type { ListNatsAccountsResponse, ListNatsCredentialsResponse, ListSnsCred
8
8
  */
9
9
  export declare class NatsAPI 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 NATS account. Create a NATS account associated with a Project.
14
14
  *
@@ -105,7 +105,7 @@ export declare class NatsAPI extends ParentAPI {
105
105
  */
106
106
  export declare class SnsAPI extends ParentAPI {
107
107
  /** Lists the available regions of the API. */
108
- static readonly LOCALITIES: Region[];
108
+ static readonly LOCALITIES: ScwRegion[];
109
109
  /**
110
110
  * Activate Topics and Events. Activate Topics and Events for the specified
111
111
  * Project ID. Topics and Events must be activated before any usage.
@@ -190,7 +190,7 @@ export declare class SnsAPI extends ParentAPI {
190
190
  */
191
191
  export declare class SqsAPI extends ParentAPI {
192
192
  /** Lists the available regions of the API. */
193
- static readonly LOCALITIES: Region[];
193
+ static readonly LOCALITIES: ScwRegion[];
194
194
  /**
195
195
  * Activate Queues. Activate Queues for the specified Project ID. Queues must
196
196
  * be activated before any usage such as creating credentials and queues.
@@ -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: 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: 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: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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?: 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: Region;
445
+ region: ScwRegion;
446
446
  /** Queues creation date. */
447
447
  createdAt?: Date;
448
448
  /** Queues last modification date. */