@scaleway/sdk 2.65.0 → 2.67.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
- package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
- package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
- package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
- package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
- package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
- package/dist/api/cockpit/v1/api.gen.cjs +14 -17
- package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
- package/dist/api/cockpit/v1/api.gen.js +15 -18
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
- package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
- package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
- package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
- package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
- package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
- package/dist/api/container/v1beta1/api.gen.cjs +5 -1
- package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/container/v1beta1/api.gen.js +5 -1
- package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
- package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
- package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
- package/dist/api/function/v1beta1/api.gen.cjs +5 -1
- package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/function/v1beta1/api.gen.js +5 -1
- package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
- package/dist/api/iot/v1/api.gen.d.ts +2 -2
- package/dist/api/iot/v1/types.gen.d.ts +38 -38
- package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
- package/dist/api/k8s/v1/api.gen.cjs +5 -1
- package/dist/api/k8s/v1/api.gen.d.ts +2 -2
- package/dist/api/k8s/v1/api.gen.js +5 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/types.gen.d.ts +42 -41
- package/dist/api/lb/v1/marshalling.gen.cjs +5 -0
- package/dist/api/lb/v1/marshalling.gen.js +5 -0
- package/dist/api/lb/v1/types.gen.d.ts +25 -0
- package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
- package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
- package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
- package/dist/api/rdb/v1/api.gen.cjs +5 -1
- package/dist/api/rdb/v1/api.gen.d.ts +2 -2
- package/dist/api/rdb/v1/api.gen.js +5 -1
- package/dist/api/rdb/v1/types.gen.d.ts +67 -67
- package/dist/api/redis/v1/api.gen.d.ts +2 -2
- package/dist/api/redis/v1/types.gen.d.ts +28 -28
- package/dist/api/registry/v1/api.gen.cjs +5 -1
- package/dist/api/registry/v1/api.gen.d.ts +2 -2
- package/dist/api/registry/v1/api.gen.js +5 -1
- package/dist/api/registry/v1/types.gen.d.ts +14 -14
- package/dist/api/secret/v1beta1/api.gen.cjs +38 -1
- package/dist/api/secret/v1beta1/api.gen.d.ts +19 -3
- package/dist/api/secret/v1beta1/api.gen.js +38 -1
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/secret/v1beta1/types.gen.d.ts +52 -25
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
- package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
- package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +4 -3
- package/dist/api/vpcgw/v1/api.gen.js +6 -0
- package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
- package/dist/api/vpcgw/v1/types.gen.d.ts +49 -44
- package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
- package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
- package/dist/api/webhosting/v1/marshalling.gen.cjs +7 -3
- package/dist/api/webhosting/v1/marshalling.gen.js +7 -3
- package/dist/api/webhosting/v1/types.gen.d.ts +14 -6
- package/dist/scw/client-settings.cjs +2 -2
- package/dist/scw/client-settings.d.ts +2 -2
- package/dist/scw/client-settings.js +2 -2
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Region, 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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
1266
|
+
region?: ScwRegion;
|
|
1266
1267
|
/** ID of the pool to upgrade. */
|
|
1267
1268
|
poolId: string;
|
|
1268
1269
|
/** New Kubernetes version for the pool. */
|
|
@@ -259,6 +259,7 @@ const unmarshalFrontend = (data) => {
|
|
|
259
259
|
backend: data.backend ? unmarshalBackend(data.backend) : void 0,
|
|
260
260
|
certificate: data.certificate ? unmarshalCertificate(data.certificate) : void 0,
|
|
261
261
|
certificateIds: data.certificate_ids,
|
|
262
|
+
connectionRateLimit: data.connection_rate_limit,
|
|
262
263
|
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
263
264
|
enableHttp3: data.enable_http3,
|
|
264
265
|
id: data.id,
|
|
@@ -740,6 +741,7 @@ const marshalCreateFrontendRequest = (request, defaults) => ({
|
|
|
740
741
|
backend_id: request.backendId,
|
|
741
742
|
certificate_id: request.certificateId,
|
|
742
743
|
certificate_ids: request.certificateIds,
|
|
744
|
+
connection_rate_limit: request.connectionRateLimit,
|
|
743
745
|
enable_http3: request.enableHttp3,
|
|
744
746
|
inbound_port: request.inboundPort,
|
|
745
747
|
name: request.name || randomName("lbf"),
|
|
@@ -874,6 +876,7 @@ const marshalUpdateFrontendRequest = (request, defaults) => ({
|
|
|
874
876
|
backend_id: request.backendId,
|
|
875
877
|
certificate_id: request.certificateId,
|
|
876
878
|
certificate_ids: request.certificateIds,
|
|
879
|
+
connection_rate_limit: request.connectionRateLimit,
|
|
877
880
|
enable_http3: request.enableHttp3,
|
|
878
881
|
inbound_port: request.inboundPort,
|
|
879
882
|
name: request.name,
|
|
@@ -1016,6 +1019,7 @@ const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
|
|
|
1016
1019
|
backend_id: request.backendId,
|
|
1017
1020
|
certificate_id: request.certificateId,
|
|
1018
1021
|
certificate_ids: request.certificateIds,
|
|
1022
|
+
connection_rate_limit: request.connectionRateLimit,
|
|
1019
1023
|
enable_http3: request.enableHttp3,
|
|
1020
1024
|
inbound_port: request.inboundPort,
|
|
1021
1025
|
name: request.name || randomName("lbf"),
|
|
@@ -1148,6 +1152,7 @@ const marshalZonedApiUpdateFrontendRequest = (request, defaults) => ({
|
|
|
1148
1152
|
backend_id: request.backendId,
|
|
1149
1153
|
certificate_id: request.certificateId,
|
|
1150
1154
|
certificate_ids: request.certificateIds,
|
|
1155
|
+
connection_rate_limit: request.connectionRateLimit,
|
|
1151
1156
|
enable_http3: request.enableHttp3,
|
|
1152
1157
|
inbound_port: request.inboundPort,
|
|
1153
1158
|
name: request.name,
|
|
@@ -257,6 +257,7 @@ const unmarshalFrontend = (data) => {
|
|
|
257
257
|
backend: data.backend ? unmarshalBackend(data.backend) : void 0,
|
|
258
258
|
certificate: data.certificate ? unmarshalCertificate(data.certificate) : void 0,
|
|
259
259
|
certificateIds: data.certificate_ids,
|
|
260
|
+
connectionRateLimit: data.connection_rate_limit,
|
|
260
261
|
createdAt: unmarshalDate(data.created_at),
|
|
261
262
|
enableHttp3: data.enable_http3,
|
|
262
263
|
id: data.id,
|
|
@@ -738,6 +739,7 @@ const marshalCreateFrontendRequest = (request, defaults) => ({
|
|
|
738
739
|
backend_id: request.backendId,
|
|
739
740
|
certificate_id: request.certificateId,
|
|
740
741
|
certificate_ids: request.certificateIds,
|
|
742
|
+
connection_rate_limit: request.connectionRateLimit,
|
|
741
743
|
enable_http3: request.enableHttp3,
|
|
742
744
|
inbound_port: request.inboundPort,
|
|
743
745
|
name: request.name || randomName("lbf"),
|
|
@@ -872,6 +874,7 @@ const marshalUpdateFrontendRequest = (request, defaults) => ({
|
|
|
872
874
|
backend_id: request.backendId,
|
|
873
875
|
certificate_id: request.certificateId,
|
|
874
876
|
certificate_ids: request.certificateIds,
|
|
877
|
+
connection_rate_limit: request.connectionRateLimit,
|
|
875
878
|
enable_http3: request.enableHttp3,
|
|
876
879
|
inbound_port: request.inboundPort,
|
|
877
880
|
name: request.name,
|
|
@@ -1014,6 +1017,7 @@ const marshalZonedApiCreateFrontendRequest = (request, defaults) => ({
|
|
|
1014
1017
|
backend_id: request.backendId,
|
|
1015
1018
|
certificate_id: request.certificateId,
|
|
1016
1019
|
certificate_ids: request.certificateIds,
|
|
1020
|
+
connection_rate_limit: request.connectionRateLimit,
|
|
1017
1021
|
enable_http3: request.enableHttp3,
|
|
1018
1022
|
inbound_port: request.inboundPort,
|
|
1019
1023
|
name: request.name || randomName("lbf"),
|
|
@@ -1146,6 +1150,7 @@ const marshalZonedApiUpdateFrontendRequest = (request, defaults) => ({
|
|
|
1146
1150
|
backend_id: request.backendId,
|
|
1147
1151
|
certificate_id: request.certificateId,
|
|
1148
1152
|
certificate_ids: request.certificateIds,
|
|
1153
|
+
connection_rate_limit: request.connectionRateLimit,
|
|
1149
1154
|
enable_http3: request.enableHttp3,
|
|
1150
1155
|
inbound_port: request.inboundPort,
|
|
1151
1156
|
name: request.name,
|
|
@@ -448,6 +448,11 @@ export interface Frontend {
|
|
|
448
448
|
updatedAt?: Date;
|
|
449
449
|
/** Defines whether to enable HTTP/3 protocol on the frontend. */
|
|
450
450
|
enableHttp3: boolean;
|
|
451
|
+
/**
|
|
452
|
+
* Rate limit for new connections established on this frontend. Use 0 value to
|
|
453
|
+
* disable, else value is connections per second.
|
|
454
|
+
*/
|
|
455
|
+
connectionRateLimit?: number;
|
|
451
456
|
}
|
|
452
457
|
export interface PrivateNetworkDHCPConfig {
|
|
453
458
|
/** @deprecated */
|
|
@@ -835,6 +840,11 @@ export type CreateFrontendRequest = {
|
|
|
835
840
|
certificateIds?: string[];
|
|
836
841
|
/** Defines whether to enable HTTP/3 protocol on the frontend. */
|
|
837
842
|
enableHttp3: boolean;
|
|
843
|
+
/**
|
|
844
|
+
* Rate limit for new connections established on this frontend. Use 0 value to
|
|
845
|
+
* disable, else value is connections per second.
|
|
846
|
+
*/
|
|
847
|
+
connectionRateLimit?: number;
|
|
838
848
|
};
|
|
839
849
|
export type CreateIpRequest = {
|
|
840
850
|
/**
|
|
@@ -1629,6 +1639,11 @@ export type UpdateFrontendRequest = {
|
|
|
1629
1639
|
certificateIds?: string[];
|
|
1630
1640
|
/** Defines whether to enable HTTP/3 protocol on the frontend. */
|
|
1631
1641
|
enableHttp3: boolean;
|
|
1642
|
+
/**
|
|
1643
|
+
* Rate limit for new connections established on this frontend. Use 0 value to
|
|
1644
|
+
* disable, else value is connections per second.
|
|
1645
|
+
*/
|
|
1646
|
+
connectionRateLimit?: number;
|
|
1632
1647
|
};
|
|
1633
1648
|
export type UpdateHealthCheckRequest = {
|
|
1634
1649
|
/**
|
|
@@ -1991,6 +2006,11 @@ export type ZonedApiCreateFrontendRequest = {
|
|
|
1991
2006
|
certificateIds?: string[];
|
|
1992
2007
|
/** Defines whether to enable HTTP/3 protocol on the frontend. */
|
|
1993
2008
|
enableHttp3: boolean;
|
|
2009
|
+
/**
|
|
2010
|
+
* Rate limit for new connections established on this frontend. Use 0 value to
|
|
2011
|
+
* disable, else value is connections per second.
|
|
2012
|
+
*/
|
|
2013
|
+
connectionRateLimit?: number;
|
|
1994
2014
|
};
|
|
1995
2015
|
export type ZonedApiCreateIpRequest = {
|
|
1996
2016
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
@@ -2594,6 +2614,11 @@ export type ZonedApiUpdateFrontendRequest = {
|
|
|
2594
2614
|
certificateIds?: string[];
|
|
2595
2615
|
/** Defines whether to enable HTTP/3 protocol on the frontend. */
|
|
2596
2616
|
enableHttp3: boolean;
|
|
2617
|
+
/**
|
|
2618
|
+
* Rate limit for new connections established on this frontend. Use 0 value to
|
|
2619
|
+
* disable, else value is connections per second.
|
|
2620
|
+
*/
|
|
2621
|
+
connectionRateLimit?: number;
|
|
2597
2622
|
};
|
|
2598
2623
|
export type ZonedApiUpdateHealthCheckRequest = {
|
|
2599
2624
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
@@ -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:
|
|
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?:
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|