@scaleway/sdk 1.14.0 → 1.15.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/account/v2/api.gen.js +77 -60
- package/dist/api/applesilicon/v1alpha1/api.gen.js +174 -152
- package/dist/api/baremetal/v1/api.gen.js +434 -378
- package/dist/api/baremetal/v1/api.utils.js +19 -22
- package/dist/api/billing/v2alpha1/api.gen.js +21 -17
- package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
- package/dist/api/container/v1beta1/api.gen.js +384 -337
- package/dist/api/domain/v2beta1/api.gen.js +754 -668
- package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
- package/dist/api/function/v1beta1/api.gen.js +467 -407
- package/dist/api/iam/v1alpha1/api.gen.js +641 -557
- package/dist/api/instance/v1/api.gen.js +802 -677
- package/dist/api/instance/v1/api.utils.js +337 -325
- package/dist/api/instance/v1/marshalling.gen.js +2 -1
- package/dist/api/iot/v1/api.gen.js +508 -452
- package/dist/api/ipfs/index.js +2 -0
- package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
- package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
- package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
- package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
- package/dist/api/k8s/v1/api.gen.js +403 -342
- package/dist/api/k8s/v1/api.utils.js +7 -10
- package/dist/api/k8s/v1/marshalling.gen.js +19 -1
- package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
- package/dist/api/lb/v1/api.gen.js +1501 -1363
- package/dist/api/lb/v1/api.utils.js +71 -75
- package/dist/api/lb/v1/marshalling.gen.js +6 -0
- package/dist/api/marketplace/v1/api.gen.js +35 -32
- package/dist/api/marketplace/v2/api.gen.js +117 -102
- package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
- package/dist/api/rdb/v1/api.gen.js +897 -819
- package/dist/api/redis/v1/api.gen.js +358 -333
- package/dist/api/registry/v1/api.gen.js +211 -189
- package/dist/api/secret/v1alpha1/api.gen.js +265 -245
- package/dist/api/tem/v1alpha1/api.gen.js +182 -147
- package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
- package/dist/api/test/v1/api.gen.js +116 -104
- package/dist/api/vpc/v1/api.gen.js +74 -65
- package/dist/api/vpc/v2/api.gen.js +200 -178
- package/dist/api/vpc/v2/marshalling.gen.js +1 -0
- package/dist/api/vpcgw/v1/api.gen.js +575 -501
- package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
- package/dist/index.cjs +732 -311
- package/dist/index.d.ts +2040 -1540
- package/dist/index.js +28 -26
- package/dist/internal/logger/console-logger.js +4 -5
- package/dist/scw/constants.js +1 -1
- package/dist/scw/errors/scw-error.js +2 -2
- package/package.json +2 -2
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { API } from './api.gen.js';
|
|
2
2
|
|
|
3
3
|
class K8SUtilsAPI extends API {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
this.getClusterKubeConfig = request => this._getClusterKubeConfig(request);
|
|
13
|
-
}
|
|
4
|
+
/**
|
|
5
|
+
* Get configuration of a kube cluster.
|
|
6
|
+
*
|
|
7
|
+
* @param request - The request {@link GetClusterKubeConfigRequest}
|
|
8
|
+
* @returns A Promise of Blob
|
|
9
|
+
*/
|
|
10
|
+
getClusterKubeConfig = request => this._getClusterKubeConfig(request);
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
export { K8SUtilsAPI };
|
|
@@ -94,6 +94,15 @@ const unmarshalCluster = data => {
|
|
|
94
94
|
version: data.version
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
|
+
const unmarshalClusterType = data => {
|
|
98
|
+
if (!isJSONObject(data)) {
|
|
99
|
+
throw new TypeError(`Unmarshalling the type 'ClusterType' failed as data isn't a dictionary.`);
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
availability: data.availability,
|
|
103
|
+
name: data.name
|
|
104
|
+
};
|
|
105
|
+
};
|
|
97
106
|
const unmarshalNode = data => {
|
|
98
107
|
if (!isJSONObject(data)) {
|
|
99
108
|
throw new TypeError(`Unmarshalling the type 'Node' failed as data isn't a dictionary.`);
|
|
@@ -182,6 +191,15 @@ const unmarshalListClusterAvailableVersionsResponse = data => {
|
|
|
182
191
|
versions: unmarshalArrayOfObject(data.versions, unmarshalVersion)
|
|
183
192
|
};
|
|
184
193
|
};
|
|
194
|
+
const unmarshalListClusterTypesResponse = data => {
|
|
195
|
+
if (!isJSONObject(data)) {
|
|
196
|
+
throw new TypeError(`Unmarshalling the type 'ListClusterTypesResponse' failed as data isn't a dictionary.`);
|
|
197
|
+
}
|
|
198
|
+
return {
|
|
199
|
+
clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
|
|
200
|
+
totalCount: data.total_count
|
|
201
|
+
};
|
|
202
|
+
};
|
|
185
203
|
const unmarshalListClustersResponse = data => {
|
|
186
204
|
if (!isJSONObject(data)) {
|
|
187
205
|
throw new TypeError(`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`);
|
|
@@ -381,4 +399,4 @@ const marshalUpgradePoolRequest = (request, defaults) => ({
|
|
|
381
399
|
version: request.version
|
|
382
400
|
});
|
|
383
401
|
|
|
384
|
-
export { marshalCreateClusterRequest, marshalCreatePoolRequest, marshalMigrateToPrivateNetworkClusterRequest, marshalSetClusterTypeRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalCluster, unmarshalExternalNode, unmarshalListClusterAvailableVersionsResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalPool, unmarshalVersion };
|
|
402
|
+
export { marshalCreateClusterRequest, marshalCreatePoolRequest, marshalMigrateToPrivateNetworkClusterRequest, marshalSetClusterTypeRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalCluster, unmarshalExternalNode, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalPool, unmarshalVersion };
|
|
@@ -36,6 +36,15 @@ const CreatePoolRequest = {
|
|
|
36
36
|
minLength: 1
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
+
const ListClusterTypesRequest = {
|
|
40
|
+
page: {
|
|
41
|
+
greaterThan: 0
|
|
42
|
+
},
|
|
43
|
+
pageSize: {
|
|
44
|
+
greaterThan: 0,
|
|
45
|
+
lessThanOrEqual: 100
|
|
46
|
+
}
|
|
47
|
+
};
|
|
39
48
|
const ListClustersRequest = {
|
|
40
49
|
name: {
|
|
41
50
|
minLength: 1
|
|
@@ -89,4 +98,4 @@ const UpdateClusterRequestAutoscalerConfig = {
|
|
|
89
98
|
}
|
|
90
99
|
};
|
|
91
100
|
|
|
92
|
-
export { CreateClusterRequest, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreatePoolRequest, ListClustersRequest, ListNodesRequest, ListPoolsRequest, MaintenanceWindow, UpdateClusterRequest, UpdateClusterRequestAutoscalerConfig };
|
|
101
|
+
export { CreateClusterRequest, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreatePoolRequest, ListClusterTypesRequest, ListClustersRequest, ListNodesRequest, ListPoolsRequest, MaintenanceWindow, UpdateClusterRequest, UpdateClusterRequestAutoscalerConfig };
|