@scaleway/sdk 1.13.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.
Files changed (50) hide show
  1. package/dist/api/account/v2/api.gen.js +77 -60
  2. package/dist/api/applesilicon/v1alpha1/api.gen.js +175 -173
  3. package/dist/api/baremetal/v1/api.gen.js +434 -378
  4. package/dist/api/baremetal/v1/api.utils.js +19 -22
  5. package/dist/api/billing/v2alpha1/api.gen.js +21 -17
  6. package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
  7. package/dist/api/container/v1beta1/api.gen.js +384 -337
  8. package/dist/api/domain/v2beta1/api.gen.js +754 -668
  9. package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
  10. package/dist/api/function/v1beta1/api.gen.js +467 -407
  11. package/dist/api/iam/v1alpha1/api.gen.js +641 -557
  12. package/dist/api/instance/v1/api.gen.js +802 -677
  13. package/dist/api/instance/v1/api.utils.js +337 -325
  14. package/dist/api/instance/v1/marshalling.gen.js +2 -1
  15. package/dist/api/iot/v1/api.gen.js +508 -452
  16. package/dist/api/ipfs/index.js +2 -0
  17. package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
  18. package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
  19. package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
  20. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
  21. package/dist/api/k8s/v1/api.gen.js +403 -342
  22. package/dist/api/k8s/v1/api.utils.js +7 -10
  23. package/dist/api/k8s/v1/marshalling.gen.js +19 -1
  24. package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
  25. package/dist/api/lb/v1/api.gen.js +1501 -1363
  26. package/dist/api/lb/v1/api.utils.js +71 -75
  27. package/dist/api/lb/v1/marshalling.gen.js +6 -0
  28. package/dist/api/marketplace/v1/api.gen.js +35 -32
  29. package/dist/api/marketplace/v2/api.gen.js +117 -102
  30. package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
  31. package/dist/api/rdb/v1/api.gen.js +897 -819
  32. package/dist/api/redis/v1/api.gen.js +358 -333
  33. package/dist/api/registry/v1/api.gen.js +211 -189
  34. package/dist/api/secret/v1alpha1/api.gen.js +265 -245
  35. package/dist/api/secret/v1alpha1/marshalling.gen.js +1 -0
  36. package/dist/api/tem/v1alpha1/api.gen.js +183 -156
  37. package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
  38. package/dist/api/test/v1/api.gen.js +116 -104
  39. package/dist/api/vpc/v1/api.gen.js +74 -65
  40. package/dist/api/vpc/v2/api.gen.js +200 -178
  41. package/dist/api/vpc/v2/marshalling.gen.js +2 -0
  42. package/dist/api/vpcgw/v1/api.gen.js +575 -501
  43. package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
  44. package/dist/index.cjs +738 -343
  45. package/dist/index.d.ts +2067 -1592
  46. package/dist/index.js +28 -26
  47. package/dist/internal/logger/console-logger.js +4 -5
  48. package/dist/scw/constants.js +1 -1
  49. package/dist/scw/errors/scw-error.js +0 -1
  50. 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
- constructor() {
5
- super(...arguments);
6
- /**
7
- * Get configuration of a kube cluster.
8
- *
9
- * @param request - The request {@link GetClusterKubeConfigRequest}
10
- * @returns A Promise of Blob
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 };