@scaleway/sdk 2.64.0 → 2.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
- package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
- package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
- package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
- package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
- package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
- package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
- package/dist/api/cockpit/v1/api.gen.cjs +19 -1
- package/dist/api/cockpit/v1/api.gen.d.ts +4 -3
- package/dist/api/cockpit/v1/api.gen.js +20 -2
- package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +13 -0
- package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -1
- package/dist/api/cockpit/v1/marshalling.gen.js +13 -0
- package/dist/api/cockpit/v1/types.gen.d.ts +50 -31
- package/dist/api/container/v1beta1/api.gen.cjs +5 -1
- package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/container/v1beta1/api.gen.js +5 -1
- package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
- package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
- package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
- package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
- package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
- package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
- package/dist/api/function/v1beta1/api.gen.cjs +5 -1
- package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/function/v1beta1/api.gen.js +5 -1
- package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
- package/dist/api/iot/v1/api.gen.d.ts +2 -2
- package/dist/api/iot/v1/types.gen.d.ts +38 -38
- package/dist/api/ipam/v1/api.gen.cjs +5 -1
- package/dist/api/ipam/v1/api.gen.d.ts +2 -2
- package/dist/api/ipam/v1/api.gen.js +5 -1
- package/dist/api/ipam/v1/types.gen.d.ts +13 -13
- package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
- package/dist/api/k8s/v1/api.gen.cjs +5 -1
- package/dist/api/k8s/v1/api.gen.d.ts +2 -2
- package/dist/api/k8s/v1/api.gen.js +5 -1
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
- package/dist/api/k8s/v1/marshalling.gen.js +1 -0
- package/dist/api/k8s/v1/types.gen.d.ts +42 -41
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +41 -37
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +38 -38
- package/dist/api/key_manager/v1alpha1/api.gen.js +41 -37
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +31 -30
- package/dist/api/lb/v1/api.gen.cjs +5 -1
- package/dist/api/lb/v1/api.gen.d.ts +3 -3
- package/dist/api/lb/v1/api.gen.js +5 -1
- package/dist/api/lb/v1/types.gen.d.ts +116 -116
- package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
- package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
- package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
- package/dist/api/rdb/v1/api.gen.cjs +5 -1
- package/dist/api/rdb/v1/api.gen.d.ts +2 -2
- package/dist/api/rdb/v1/api.gen.js +5 -1
- package/dist/api/rdb/v1/types.gen.d.ts +67 -67
- package/dist/api/redis/v1/api.gen.d.ts +2 -2
- package/dist/api/redis/v1/types.gen.d.ts +28 -28
- package/dist/api/registry/v1/api.gen.cjs +5 -1
- package/dist/api/registry/v1/api.gen.d.ts +2 -2
- package/dist/api/registry/v1/api.gen.js +5 -1
- package/dist/api/registry/v1/types.gen.d.ts +14 -14
- package/dist/api/secret/v1beta1/api.gen.cjs +5 -1
- package/dist/api/secret/v1beta1/api.gen.d.ts +2 -2
- package/dist/api/secret/v1beta1/api.gen.js +5 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +22 -22
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
- package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
- package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
- package/dist/api/vpcgw/v1/api.gen.d.ts +2 -2
- package/dist/api/vpcgw/v1/types.gen.d.ts +44 -44
- package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
- package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
- package/dist/api/webhosting/v1/api.gen.cjs +58 -2
- package/dist/api/webhosting/v1/api.gen.d.ts +31 -3
- package/dist/api/webhosting/v1/api.gen.js +60 -4
- package/dist/api/webhosting/v1/content.gen.cjs +4 -0
- package/dist/api/webhosting/v1/content.gen.d.ts +5 -1
- package/dist/api/webhosting/v1/content.gen.js +4 -0
- package/dist/api/webhosting/v1/index.gen.cjs +2 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/index.gen.js +3 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +45 -0
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +3 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +45 -0
- package/dist/api/webhosting/v1/types.gen.d.ts +66 -0
- package/dist/api/webhosting/v1alpha1/api.gen.cjs +1 -1
- package/dist/api/webhosting/v1alpha1/api.gen.js +1 -1
- package/dist/scw/client-settings.cjs +2 -2
- package/dist/scw/client-settings.d.ts +2 -2
- package/dist/scw/client-settings.js +2 -2
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -12,7 +12,11 @@ const jsonContentHeaders = {
|
|
|
12
12
|
};
|
|
13
13
|
class API extends api.API {
|
|
14
14
|
/** Lists the available regions of the API. */
|
|
15
|
-
static LOCALITIES = [
|
|
15
|
+
static LOCALITIES = [
|
|
16
|
+
"fr-par",
|
|
17
|
+
"nl-ams",
|
|
18
|
+
"pl-waw"
|
|
19
|
+
];
|
|
16
20
|
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:
|
|
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 = [
|
|
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,
|
|
@@ -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. */
|
|
@@ -10,12 +10,16 @@ const jsonContentHeaders = {
|
|
|
10
10
|
};
|
|
11
11
|
class API extends api.API {
|
|
12
12
|
/** Lists the available regions of the API. */
|
|
13
|
-
static LOCALITIES = [
|
|
13
|
+
static LOCALITIES = [
|
|
14
|
+
"fr-par",
|
|
15
|
+
"nl-ams",
|
|
16
|
+
"pl-waw"
|
|
17
|
+
];
|
|
14
18
|
/**
|
|
15
19
|
* Create a key. Create a key in a given region specified by the `region`
|
|
16
20
|
* parameter. Keys only support symmetric encryption. You can use keys to
|
|
17
|
-
* encrypt or decrypt arbitrary payloads, or to generate data encryption keys
|
|
18
|
-
*
|
|
21
|
+
* encrypt or decrypt arbitrary payloads, or to generate data encryption keys.
|
|
22
|
+
* **Data encryption keys are not stored in Key Manager**.
|
|
19
23
|
*
|
|
20
24
|
* @param request - The request {@link CreateKeyRequest}
|
|
21
25
|
* @returns A Promise of Key
|
|
@@ -32,7 +36,7 @@ class API extends api.API {
|
|
|
32
36
|
marshalling_gen.unmarshalKey
|
|
33
37
|
);
|
|
34
38
|
/**
|
|
35
|
-
* Get key metadata. Retrieve
|
|
39
|
+
* Get key metadata. Retrieve metadata for a specified key using the `region`
|
|
36
40
|
* and `key_id` parameters.
|
|
37
41
|
*
|
|
38
42
|
* @param request - The request {@link GetKeyRequest}
|
|
@@ -46,7 +50,7 @@ class API extends api.API {
|
|
|
46
50
|
marshalling_gen.unmarshalKey
|
|
47
51
|
);
|
|
48
52
|
/**
|
|
49
|
-
* Update a key.
|
|
53
|
+
* Update a key. Modify a key's metadata including name, description and tags,
|
|
50
54
|
* specified by the `key_id` and `region` parameters.
|
|
51
55
|
*
|
|
52
56
|
* @param request - The request {@link UpdateKeyRequest}
|
|
@@ -64,10 +68,9 @@ class API extends api.API {
|
|
|
64
68
|
marshalling_gen.unmarshalKey
|
|
65
69
|
);
|
|
66
70
|
/**
|
|
67
|
-
* Delete a key.
|
|
68
|
-
* parameters.
|
|
69
|
-
*
|
|
70
|
-
* unusable.
|
|
71
|
+
* Delete a key. Permanently delete a key specified by the `region` and
|
|
72
|
+
* `key_id` parameters. This action is irreversible. Any data encrypted with
|
|
73
|
+
* this key, including data encryption keys, will no longer be decipherable.
|
|
71
74
|
*
|
|
72
75
|
* @param request - The request {@link DeleteKeyRequest}
|
|
73
76
|
*/
|
|
@@ -76,10 +79,10 @@ class API extends api.API {
|
|
|
76
79
|
path: `/key-manager/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/keys/${marshalling.validatePathParam("keyId", request.keyId)}`
|
|
77
80
|
});
|
|
78
81
|
/**
|
|
79
|
-
* Rotate a key. Generate a new version of an existing key with
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
82
|
+
* Rotate a key. Generate a new version of an existing key with new key
|
|
83
|
+
* material. Previous key versions remain usable to decrypt previously
|
|
84
|
+
* encrypted data, but the key's new version will be used for subsequent
|
|
85
|
+
* encryption operations and data key generation.
|
|
83
86
|
*
|
|
84
87
|
* @param request - The request {@link RotateKeyRequest}
|
|
85
88
|
* @returns A Promise of Key
|
|
@@ -94,7 +97,7 @@ class API extends api.API {
|
|
|
94
97
|
marshalling_gen.unmarshalKey
|
|
95
98
|
);
|
|
96
99
|
/**
|
|
97
|
-
* Apply key protection. Apply
|
|
100
|
+
* Apply key protection. Apply protection to a given key specified by the
|
|
98
101
|
* `key_id` parameter. Applying key protection means that your key can be used
|
|
99
102
|
* and modified, but it cannot be deleted.
|
|
100
103
|
*
|
|
@@ -145,9 +148,9 @@ class API extends api.API {
|
|
|
145
148
|
marshalling_gen.unmarshalKey
|
|
146
149
|
);
|
|
147
150
|
/**
|
|
148
|
-
* Disable key. Disable a given key to be used for
|
|
149
|
-
* Disabling a key renders it unusable. You must
|
|
150
|
-
* `key_id` parameters.
|
|
151
|
+
* Disable key. Disable a given key, preventing it to be used for
|
|
152
|
+
* cryptographic operations. Disabling a key renders it unusable. You must
|
|
153
|
+
* specify the `region` and `key_id` parameters.
|
|
151
154
|
*
|
|
152
155
|
* @param request - The request {@link DisableKeyRequest}
|
|
153
156
|
* @returns A Promise of Key
|
|
@@ -181,25 +184,24 @@ class API extends api.API {
|
|
|
181
184
|
marshalling_gen.unmarshalListKeysResponse
|
|
182
185
|
);
|
|
183
186
|
/**
|
|
184
|
-
* List keys. Retrieve
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
+
* List keys. Retrieve a list of keys across all Projects in an Organization
|
|
188
|
+
* or within a specific Project. You must specify the `region`, and either the
|
|
189
|
+
* `organization_id` or the `project_id`.
|
|
187
190
|
*
|
|
188
191
|
* @param request - The request {@link ListKeysRequest}
|
|
189
192
|
* @returns A Promise of ListKeysResponse
|
|
190
193
|
*/
|
|
191
194
|
listKeys = (request = {}) => resourcePaginator.enrichForPagination("keys", this.pageOfListKeys, request);
|
|
192
195
|
/**
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
* does not store your data encryption key. The data encryption key is
|
|
196
|
+
* Create a data encryption key. Create a new data encryption key for
|
|
197
|
+
* cryptographic operations outside of Key Manager. The data encryption key is
|
|
196
198
|
* encrypted and must be decrypted using the key you have created in Key
|
|
197
|
-
* Manager.
|
|
198
|
-
* object, for immediate usage.
|
|
199
|
+
* Manager.
|
|
199
200
|
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
201
|
+
* The data encryption key is returned in plaintext and ciphertext but it
|
|
202
|
+
* should only be stored in its encrypted form (ciphertext). Key Manager does
|
|
203
|
+
* not store your data encryption key. To retrieve your key's plaintext, use
|
|
204
|
+
* the `Decrypt` method with your key's ID and ciphertext.
|
|
203
205
|
*
|
|
204
206
|
* @param request - The request {@link GenerateDataKeyRequest}
|
|
205
207
|
* @returns A Promise of DataKey
|
|
@@ -216,10 +218,10 @@ class API extends api.API {
|
|
|
216
218
|
marshalling_gen.unmarshalDataKey
|
|
217
219
|
);
|
|
218
220
|
/**
|
|
219
|
-
* Encrypt
|
|
220
|
-
* parameter. Only keys with a usage set to
|
|
221
|
-
* supported by this method. The maximum payload
|
|
222
|
-
*
|
|
221
|
+
* Encrypt a payload. Encrypt a payload using an existing key, specified by
|
|
222
|
+
* the `key_id` parameter. Only keys with a usage set to
|
|
223
|
+
* `symmetric_encryption` are supported by this method. The maximum payload
|
|
224
|
+
* size that can be encrypted is 64 KB of plaintext.
|
|
223
225
|
*
|
|
224
226
|
* @param request - The request {@link EncryptRequest}
|
|
225
227
|
* @returns A Promise of EncryptResponse
|
|
@@ -236,9 +238,10 @@ class API extends api.API {
|
|
|
236
238
|
marshalling_gen.unmarshalEncryptResponse
|
|
237
239
|
);
|
|
238
240
|
/**
|
|
239
|
-
* Decrypt
|
|
240
|
-
* parameter. The maximum payload size
|
|
241
|
-
* the
|
|
241
|
+
* Decrypt an encrypted payload. Decrypt an encrypted payload using an
|
|
242
|
+
* existing key, specified by the `key_id` parameter. The maximum payload size
|
|
243
|
+
* that can be decrypted is equivalent to the encrypted output of 64 KB of
|
|
244
|
+
* data (around 131 KB).
|
|
242
245
|
*
|
|
243
246
|
* @param request - The request {@link DecryptRequest}
|
|
244
247
|
* @returns A Promise of DecryptResponse
|
|
@@ -255,8 +258,9 @@ class API extends api.API {
|
|
|
255
258
|
marshalling_gen.unmarshalDecryptResponse
|
|
256
259
|
);
|
|
257
260
|
/**
|
|
258
|
-
* Import key material. Import key material
|
|
259
|
-
* cryptographic key. The key's origin must be
|
|
261
|
+
* Import key material. Import externally generated key material into Key
|
|
262
|
+
* Manager to derive a new cryptographic key. The key's origin must be
|
|
263
|
+
* `external`.
|
|
260
264
|
*
|
|
261
265
|
* @param request - The request {@link ImportKeyMaterialRequest}
|
|
262
266
|
* @returns A Promise of Key
|