@scaleway/sdk-k8s 2.9.0 → 2.10.1

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.
@@ -1,13 +1,10 @@
1
1
  import { API } from "./api.gen.js";
2
2
  //#region src/v1/api.utils.ts
3
3
  var K8SUtilsAPI = class extends API {
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);
4
+ constructor(..._args) {
5
+ super(..._args);
6
+ this.getClusterKubeConfig = (request) => this._getClusterKubeConfig(request);
7
+ }
11
8
  };
12
9
  //#endregion
13
10
  export { K8SUtilsAPI };
@@ -1,12 +1,12 @@
1
1
  //#region src/v1/content.gen.ts
2
2
  /** Lists transient statutes of the enum {@link ClusterStatus}. */
3
- var CLUSTER_TRANSIENT_STATUSES = [
3
+ const CLUSTER_TRANSIENT_STATUSES = [
4
4
  "creating",
5
5
  "deleting",
6
6
  "updating"
7
7
  ];
8
8
  /** Lists transient statutes of the enum {@link NodeStatus}. */
9
- var NODE_TRANSIENT_STATUSES = [
9
+ const NODE_TRANSIENT_STATUSES = [
10
10
  "creating",
11
11
  "deleting",
12
12
  "rebooting",
@@ -15,7 +15,7 @@ var NODE_TRANSIENT_STATUSES = [
15
15
  "registering"
16
16
  ];
17
17
  /** Lists transient statutes of the enum {@link PoolStatus}. */
18
- var POOL_TRANSIENT_STATUSES = [
18
+ const POOL_TRANSIENT_STATUSES = [
19
19
  "deleting",
20
20
  "scaling",
21
21
  "upgrading"
@@ -1,7 +1,7 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
2
  import randomName from "@scaleway/random-name";
3
3
  //#region src/v1/marshalling.gen.ts
4
- var unmarshalVersion = (data) => {
4
+ const unmarshalVersion = (data) => {
5
5
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Version' failed as data isn't a dictionary.`);
6
6
  return {
7
7
  availableAdmissionPlugins: data.available_admission_plugins,
@@ -17,21 +17,21 @@ var unmarshalVersion = (data) => {
17
17
  releasedAt: unmarshalDate(data.released_at)
18
18
  };
19
19
  };
20
- var unmarshalMaintenanceWindow = (data) => {
20
+ const unmarshalMaintenanceWindow = (data) => {
21
21
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'MaintenanceWindow' failed as data isn't a dictionary.`);
22
22
  return {
23
23
  day: data.day,
24
24
  startHour: data.start_hour
25
25
  };
26
26
  };
27
- var unmarshalClusterAutoUpgrade = (data) => {
27
+ const unmarshalClusterAutoUpgrade = (data) => {
28
28
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterAutoUpgrade' failed as data isn't a dictionary.`);
29
29
  return {
30
30
  enabled: data.enabled,
31
31
  maintenanceWindow: data.maintenance_window ? unmarshalMaintenanceWindow(data.maintenance_window) : void 0
32
32
  };
33
33
  };
34
- var unmarshalClusterAutoscalerConfig = (data) => {
34
+ const unmarshalClusterAutoscalerConfig = (data) => {
35
35
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterAutoscalerConfig' failed as data isn't a dictionary.`);
36
36
  return {
37
37
  balanceSimilarNodeGroups: data.balance_similar_node_groups,
@@ -48,7 +48,7 @@ var unmarshalClusterAutoscalerConfig = (data) => {
48
48
  skipNodesWithLocalStorage: data.skip_nodes_with_local_storage
49
49
  };
50
50
  };
51
- var unmarshalClusterOpenIDConnectConfig = (data) => {
51
+ const unmarshalClusterOpenIDConnectConfig = (data) => {
52
52
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterOpenIDConnectConfig' failed as data isn't a dictionary.`);
53
53
  return {
54
54
  clientId: data.client_id,
@@ -60,7 +60,7 @@ var unmarshalClusterOpenIDConnectConfig = (data) => {
60
60
  usernamePrefix: data.username_prefix
61
61
  };
62
62
  };
63
- var unmarshalCluster = (data) => {
63
+ const unmarshalCluster = (data) => {
64
64
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Cluster' failed as data isn't a dictionary.`);
65
65
  return {
66
66
  aclAvailable: data.acl_available,
@@ -94,7 +94,7 @@ var unmarshalCluster = (data) => {
94
94
  version: data.version
95
95
  };
96
96
  };
97
- var unmarshalNode = (data) => {
97
+ const unmarshalNode = (data) => {
98
98
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Node' failed as data isn't a dictionary.`);
99
99
  return {
100
100
  clusterId: data.cluster_id,
@@ -112,7 +112,7 @@ var unmarshalNode = (data) => {
112
112
  updatedAt: unmarshalDate(data.updated_at)
113
113
  };
114
114
  };
115
- var unmarshalCoreV1Taint = (data) => {
115
+ const unmarshalCoreV1Taint = (data) => {
116
116
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CoreV1Taint' failed as data isn't a dictionary.`);
117
117
  return {
118
118
  effect: data.effect,
@@ -120,14 +120,14 @@ var unmarshalCoreV1Taint = (data) => {
120
120
  value: data.value
121
121
  };
122
122
  };
123
- var unmarshalPoolUpgradePolicy = (data) => {
123
+ const unmarshalPoolUpgradePolicy = (data) => {
124
124
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PoolUpgradePolicy' failed as data isn't a dictionary.`);
125
125
  return {
126
126
  maxSurge: data.max_surge,
127
127
  maxUnavailable: data.max_unavailable
128
128
  };
129
129
  };
130
- var unmarshalPool = (data) => {
130
+ const unmarshalPool = (data) => {
131
131
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Pool' failed as data isn't a dictionary.`);
132
132
  return {
133
133
  autohealing: data.autohealing,
@@ -159,7 +159,7 @@ var unmarshalPool = (data) => {
159
159
  zone: data.zone
160
160
  };
161
161
  };
162
- var unmarshalACLRule = (data) => {
162
+ const unmarshalACLRule = (data) => {
163
163
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ACLRule' failed as data isn't a dictionary.`);
164
164
  return {
165
165
  description: data.description,
@@ -168,11 +168,11 @@ var unmarshalACLRule = (data) => {
168
168
  scalewayRanges: data.scaleway_ranges
169
169
  };
170
170
  };
171
- var unmarshalAddClusterACLRulesResponse = (data) => {
171
+ const unmarshalAddClusterACLRulesResponse = (data) => {
172
172
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddClusterACLRulesResponse' failed as data isn't a dictionary.`);
173
173
  return { rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule) };
174
174
  };
175
- var unmarshalExternalNodeCoreV1Taint = (data) => {
175
+ const unmarshalExternalNodeCoreV1Taint = (data) => {
176
176
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNodeCoreV1Taint' failed as data isn't a dictionary.`);
177
177
  return {
178
178
  effect: data.effect,
@@ -180,7 +180,7 @@ var unmarshalExternalNodeCoreV1Taint = (data) => {
180
180
  value: data.value
181
181
  };
182
182
  };
183
- var unmarshalExternalNode = (data) => {
183
+ const unmarshalExternalNode = (data) => {
184
184
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNode' failed as data isn't a dictionary.`);
185
185
  return {
186
186
  clusterCa: data.cluster_ca,
@@ -199,21 +199,21 @@ var unmarshalExternalNode = (data) => {
199
199
  runcVersion: data.runc_version
200
200
  };
201
201
  };
202
- var unmarshalExternalNodeAuth = (data) => {
202
+ const unmarshalExternalNodeAuth = (data) => {
203
203
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ExternalNodeAuth' failed as data isn't a dictionary.`);
204
204
  return {
205
205
  metadataUrl: data.metadata_url,
206
206
  nodeSecretKey: data.node_secret_key
207
207
  };
208
208
  };
209
- var unmarshalListClusterACLRulesResponse = (data) => {
209
+ const unmarshalListClusterACLRulesResponse = (data) => {
210
210
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterACLRulesResponse' failed as data isn't a dictionary.`);
211
211
  return {
212
212
  rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule),
213
213
  totalCount: data.total_count
214
214
  };
215
215
  };
216
- var unmarshalClusterType = (data) => {
216
+ const unmarshalClusterType = (data) => {
217
217
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ClusterType' failed as data isn't a dictionary.`);
218
218
  return {
219
219
  auditLogsSupported: data.audit_logs_supported,
@@ -228,50 +228,50 @@ var unmarshalClusterType = (data) => {
228
228
  sla: data.sla
229
229
  };
230
230
  };
231
- var unmarshalListClusterAvailableTypesResponse = (data) => {
231
+ const unmarshalListClusterAvailableTypesResponse = (data) => {
232
232
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterAvailableTypesResponse' failed as data isn't a dictionary.`);
233
233
  return {
234
234
  clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
235
235
  totalCount: data.total_count
236
236
  };
237
237
  };
238
- var unmarshalListClusterAvailableVersionsResponse = (data) => {
238
+ const unmarshalListClusterAvailableVersionsResponse = (data) => {
239
239
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterAvailableVersionsResponse' failed as data isn't a dictionary.`);
240
240
  return { versions: unmarshalArrayOfObject(data.versions, unmarshalVersion) };
241
241
  };
242
- var unmarshalListClusterTypesResponse = (data) => {
242
+ const unmarshalListClusterTypesResponse = (data) => {
243
243
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClusterTypesResponse' failed as data isn't a dictionary.`);
244
244
  return {
245
245
  clusterTypes: unmarshalArrayOfObject(data.cluster_types, unmarshalClusterType),
246
246
  totalCount: data.total_count
247
247
  };
248
248
  };
249
- var unmarshalListClustersResponse = (data) => {
249
+ const unmarshalListClustersResponse = (data) => {
250
250
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListClustersResponse' failed as data isn't a dictionary.`);
251
251
  return {
252
252
  clusters: unmarshalArrayOfObject(data.clusters, unmarshalCluster),
253
253
  totalCount: data.total_count
254
254
  };
255
255
  };
256
- var unmarshalListNodesResponse = (data) => {
256
+ const unmarshalListNodesResponse = (data) => {
257
257
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodesResponse' failed as data isn't a dictionary.`);
258
258
  return {
259
259
  nodes: unmarshalArrayOfObject(data.nodes, unmarshalNode),
260
260
  totalCount: data.total_count
261
261
  };
262
262
  };
263
- var unmarshalListPoolsResponse = (data) => {
263
+ const unmarshalListPoolsResponse = (data) => {
264
264
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPoolsResponse' failed as data isn't a dictionary.`);
265
265
  return {
266
266
  pools: unmarshalArrayOfObject(data.pools, unmarshalPool),
267
267
  totalCount: data.total_count
268
268
  };
269
269
  };
270
- var unmarshalListVersionsResponse = (data) => {
270
+ const unmarshalListVersionsResponse = (data) => {
271
271
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
272
272
  return { versions: unmarshalArrayOfObject(data.versions, unmarshalVersion) };
273
273
  };
274
- var unmarshalNodeMetadataCoreV1Taint = (data) => {
274
+ const unmarshalNodeMetadataCoreV1Taint = (data) => {
275
275
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NodeMetadataCoreV1Taint' failed as data isn't a dictionary.`);
276
276
  return {
277
277
  effect: data.effect,
@@ -279,7 +279,7 @@ var unmarshalNodeMetadataCoreV1Taint = (data) => {
279
279
  value: data.value
280
280
  };
281
281
  };
282
- var unmarshalNodeMetadata = (data) => {
282
+ const unmarshalNodeMetadata = (data) => {
283
283
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NodeMetadata' failed as data isn't a dictionary.`);
284
284
  return {
285
285
  clusterCa: data.cluster_ca,
@@ -303,11 +303,11 @@ var unmarshalNodeMetadata = (data) => {
303
303
  updaterBinVersion: data.updater_bin_version
304
304
  };
305
305
  };
306
- var unmarshalSetClusterACLRulesResponse = (data) => {
306
+ const unmarshalSetClusterACLRulesResponse = (data) => {
307
307
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetClusterACLRulesResponse' failed as data isn't a dictionary.`);
308
308
  return { rules: unmarshalArrayOfObject(data.rules, unmarshalACLRule) };
309
309
  };
310
- var marshalACLRuleRequest = (request, defaults) => ({
310
+ const marshalACLRuleRequest = (request, defaults) => ({
311
311
  description: request.description,
312
312
  ...resolveOneOf([{
313
313
  param: "ip",
@@ -317,25 +317,25 @@ var marshalACLRuleRequest = (request, defaults) => ({
317
317
  value: request.scalewayRanges
318
318
  }])
319
319
  });
320
- var marshalAddClusterACLRulesRequest = (request, defaults) => ({ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt, defaults)) : void 0 });
321
- var marshalMaintenanceWindow = (request, defaults) => ({
320
+ const marshalAddClusterACLRulesRequest = (request, defaults) => ({ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt, defaults)) : void 0 });
321
+ const marshalMaintenanceWindow = (request, defaults) => ({
322
322
  day: request.day,
323
323
  start_hour: request.startHour
324
324
  });
325
- var marshalCoreV1Taint = (request, defaults) => ({
325
+ const marshalCoreV1Taint = (request, defaults) => ({
326
326
  effect: request.effect,
327
327
  key: request.key,
328
328
  value: request.value
329
329
  });
330
- var marshalCreateClusterRequestPoolConfigUpgradePolicy = (request, defaults) => ({
330
+ const marshalCreateClusterRequestPoolConfigUpgradePolicy = (request, defaults) => ({
331
331
  max_surge: request.maxSurge,
332
332
  max_unavailable: request.maxUnavailable
333
333
  });
334
- var marshalCreateClusterRequestAutoUpgrade = (request, defaults) => ({
334
+ const marshalCreateClusterRequestAutoUpgrade = (request, defaults) => ({
335
335
  enable: request.enable,
336
336
  maintenance_window: request.maintenanceWindow !== void 0 ? marshalMaintenanceWindow(request.maintenanceWindow, defaults) : void 0
337
337
  });
338
- var marshalCreateClusterRequestAutoscalerConfig = (request, defaults) => ({
338
+ const marshalCreateClusterRequestAutoscalerConfig = (request, defaults) => ({
339
339
  balance_similar_node_groups: request.balanceSimilarNodeGroups,
340
340
  estimator: request.estimator,
341
341
  expander: request.expander,
@@ -349,7 +349,7 @@ var marshalCreateClusterRequestAutoscalerConfig = (request, defaults) => ({
349
349
  scale_down_utilization_threshold: request.scaleDownUtilizationThreshold,
350
350
  skip_nodes_with_local_storage: request.skipNodesWithLocalStorage
351
351
  });
352
- var marshalCreateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
352
+ const marshalCreateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
353
353
  client_id: request.clientId,
354
354
  groups_claim: request.groupsClaim,
355
355
  groups_prefix: request.groupsPrefix,
@@ -358,7 +358,7 @@ var marshalCreateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
358
358
  username_claim: request.usernameClaim,
359
359
  username_prefix: request.usernamePrefix
360
360
  });
361
- var marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
361
+ const marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
362
362
  autohealing: request.autohealing,
363
363
  autoscaling: request.autoscaling,
364
364
  container_runtime: request.containerRuntime,
@@ -380,7 +380,7 @@ var marshalCreateClusterRequestPoolConfig = (request, defaults) => ({
380
380
  upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreateClusterRequestPoolConfigUpgradePolicy(request.upgradePolicy, defaults) : void 0,
381
381
  zone: request.zone
382
382
  });
383
- var marshalCreateClusterRequest = (request, defaults) => ({
383
+ const marshalCreateClusterRequest = (request, defaults) => ({
384
384
  admission_plugins: request.admissionPlugins,
385
385
  apiserver_cert_sans: request.apiserverCertSans,
386
386
  auto_upgrade: request.autoUpgrade !== void 0 ? marshalCreateClusterRequestAutoUpgrade(request.autoUpgrade, defaults) : void 0,
@@ -408,11 +408,11 @@ var marshalCreateClusterRequest = (request, defaults) => ({
408
408
  value: request.organizationId
409
409
  }])
410
410
  });
411
- var marshalCreatePoolRequestUpgradePolicy = (request, defaults) => ({
411
+ const marshalCreatePoolRequestUpgradePolicy = (request, defaults) => ({
412
412
  max_surge: request.maxSurge,
413
413
  max_unavailable: request.maxUnavailable
414
414
  });
415
- var marshalCreatePoolRequest = (request, defaults) => ({
415
+ const marshalCreatePoolRequest = (request, defaults) => ({
416
416
  autohealing: request.autohealing,
417
417
  autoscaling: request.autoscaling,
418
418
  container_runtime: request.containerRuntime,
@@ -434,16 +434,16 @@ var marshalCreatePoolRequest = (request, defaults) => ({
434
434
  upgrade_policy: request.upgradePolicy !== void 0 ? marshalCreatePoolRequestUpgradePolicy(request.upgradePolicy, defaults) : void 0,
435
435
  zone: request.zone ?? defaults.defaultZone
436
436
  });
437
- var marshalSetClusterACLRulesRequest = (request, defaults) => ({ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt, defaults)) : void 0 });
438
- var marshalSetClusterTypeRequest = (request, defaults) => ({ type: request.type });
439
- var marshalSetPoolLabelsRequest = (request, defaults) => ({ labels: request.labels !== void 0 ? request.labels : void 0 });
440
- var marshalSetPoolStartupTaintsRequest = (request, defaults) => ({ startup_taints: request.startupTaints !== void 0 ? request.startupTaints.map((elt) => marshalCoreV1Taint(elt, defaults)) : void 0 });
441
- var marshalSetPoolTaintsRequest = (request, defaults) => ({ taints: request.taints !== void 0 ? request.taints.map((elt) => marshalCoreV1Taint(elt, defaults)) : void 0 });
442
- var marshalUpdateClusterRequestAutoUpgrade = (request, defaults) => ({
437
+ const marshalSetClusterACLRulesRequest = (request, defaults) => ({ acls: request.acls !== void 0 ? request.acls.map((elt) => marshalACLRuleRequest(elt, defaults)) : void 0 });
438
+ const marshalSetClusterTypeRequest = (request, defaults) => ({ type: request.type });
439
+ const marshalSetPoolLabelsRequest = (request, defaults) => ({ labels: request.labels !== void 0 ? request.labels : void 0 });
440
+ const marshalSetPoolStartupTaintsRequest = (request, defaults) => ({ startup_taints: request.startupTaints !== void 0 ? request.startupTaints.map((elt) => marshalCoreV1Taint(elt, defaults)) : void 0 });
441
+ const marshalSetPoolTaintsRequest = (request, defaults) => ({ taints: request.taints !== void 0 ? request.taints.map((elt) => marshalCoreV1Taint(elt, defaults)) : void 0 });
442
+ const marshalUpdateClusterRequestAutoUpgrade = (request, defaults) => ({
443
443
  enable: request.enable,
444
444
  maintenance_window: request.maintenanceWindow !== void 0 ? marshalMaintenanceWindow(request.maintenanceWindow, defaults) : void 0
445
445
  });
446
- var marshalUpdateClusterRequestAutoscalerConfig = (request, defaults) => ({
446
+ const marshalUpdateClusterRequestAutoscalerConfig = (request, defaults) => ({
447
447
  balance_similar_node_groups: request.balanceSimilarNodeGroups,
448
448
  estimator: request.estimator,
449
449
  expander: request.expander,
@@ -457,7 +457,7 @@ var marshalUpdateClusterRequestAutoscalerConfig = (request, defaults) => ({
457
457
  scale_down_utilization_threshold: request.scaleDownUtilizationThreshold,
458
458
  skip_nodes_with_local_storage: request.skipNodesWithLocalStorage
459
459
  });
460
- var marshalUpdateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
460
+ const marshalUpdateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
461
461
  client_id: request.clientId,
462
462
  groups_claim: request.groupsClaim,
463
463
  groups_prefix: request.groupsPrefix,
@@ -466,7 +466,7 @@ var marshalUpdateClusterRequestOpenIDConnectConfig = (request, defaults) => ({
466
466
  username_claim: request.usernameClaim,
467
467
  username_prefix: request.usernamePrefix
468
468
  });
469
- var marshalUpdateClusterRequest = (request, defaults) => ({
469
+ const marshalUpdateClusterRequest = (request, defaults) => ({
470
470
  admission_plugins: request.admissionPlugins,
471
471
  apiserver_cert_sans: request.apiserverCertSans,
472
472
  auto_upgrade: request.autoUpgrade !== void 0 ? marshalUpdateClusterRequestAutoUpgrade(request.autoUpgrade, defaults) : void 0,
@@ -477,11 +477,11 @@ var marshalUpdateClusterRequest = (request, defaults) => ({
477
477
  open_id_connect_config: request.openIdConnectConfig !== void 0 ? marshalUpdateClusterRequestOpenIDConnectConfig(request.openIdConnectConfig, defaults) : void 0,
478
478
  tags: request.tags
479
479
  });
480
- var marshalUpdatePoolRequestUpgradePolicy = (request, defaults) => ({
480
+ const marshalUpdatePoolRequestUpgradePolicy = (request, defaults) => ({
481
481
  max_surge: request.maxSurge,
482
482
  max_unavailable: request.maxUnavailable
483
483
  });
484
- var marshalUpdatePoolRequest = (request, defaults) => ({
484
+ const marshalUpdatePoolRequest = (request, defaults) => ({
485
485
  autohealing: request.autohealing,
486
486
  autoscaling: request.autoscaling,
487
487
  kubelet_args: request.kubeletArgs,
@@ -492,10 +492,10 @@ var marshalUpdatePoolRequest = (request, defaults) => ({
492
492
  tags: request.tags,
493
493
  upgrade_policy: request.upgradePolicy !== void 0 ? marshalUpdatePoolRequestUpgradePolicy(request.upgradePolicy, defaults) : void 0
494
494
  });
495
- var marshalUpgradeClusterRequest = (request, defaults) => ({
495
+ const marshalUpgradeClusterRequest = (request, defaults) => ({
496
496
  upgrade_pools: request.upgradePools,
497
497
  version: request.version
498
498
  });
499
- var marshalUpgradePoolRequest = (request, defaults) => ({ version: request.version });
499
+ const marshalUpgradePoolRequest = (request, defaults) => ({ version: request.version });
500
500
  //#endregion
501
501
  export { marshalAddClusterACLRulesRequest, marshalCreateClusterRequest, marshalCreatePoolRequest, marshalSetClusterACLRulesRequest, marshalSetClusterTypeRequest, marshalSetPoolLabelsRequest, marshalSetPoolStartupTaintsRequest, marshalSetPoolTaintsRequest, marshalUpdateClusterRequest, marshalUpdatePoolRequest, marshalUpgradeClusterRequest, marshalUpgradePoolRequest, unmarshalAddClusterACLRulesResponse, unmarshalCluster, unmarshalExternalNode, unmarshalExternalNodeAuth, unmarshalListClusterACLRulesResponse, unmarshalListClusterAvailableTypesResponse, unmarshalListClusterAvailableVersionsResponse, unmarshalListClusterTypesResponse, unmarshalListClustersResponse, unmarshalListNodesResponse, unmarshalListPoolsResponse, unmarshalListVersionsResponse, unmarshalNode, unmarshalNodeMetadata, unmarshalPool, unmarshalSetClusterACLRulesResponse, unmarshalVersion };
@@ -1,5 +1,5 @@
1
1
  //#region src/v1/metadata.gen.ts
2
- var queriesMetadata = {
2
+ const queriesMetadata = {
3
3
  namespace: "k8s",
4
4
  version: "v1",
5
5
  folderName: "k8Sv1",
@@ -1,5 +1,5 @@
1
1
  //#region src/v1/utils-metadata.ts
2
- var queriesMetadata = {
2
+ const queriesMetadata = {
3
3
  namespace: "k8s",
4
4
  version: "v1",
5
5
  folderName: "k8Sv1",
@@ -19,8 +19,8 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
19
19
  UpdateClusterRequestOpenIDConnectConfig: () => UpdateClusterRequestOpenIDConnectConfig,
20
20
  UpgradeClusterRequest: () => UpgradeClusterRequest
21
21
  });
22
- var ACLRuleRequest = { description: { maxLength: 2e3 } };
23
- var CoreV1Taint = {
22
+ const ACLRuleRequest = { description: { maxLength: 2e3 } };
23
+ const CoreV1Taint = {
24
24
  key: {
25
25
  maxLength: 316,
26
26
  minLength: 1,
@@ -28,7 +28,7 @@ var CoreV1Taint = {
28
28
  },
29
29
  value: { maxLength: 63 }
30
30
  };
31
- var CreateClusterRequest = {
31
+ const CreateClusterRequest = {
32
32
  description: { maxLength: 4096 },
33
33
  name: {
34
34
  maxLength: 100,
@@ -37,36 +37,36 @@ var CreateClusterRequest = {
37
37
  type: { maxLength: 100 },
38
38
  version: { maxLength: 10 }
39
39
  };
40
- var CreateClusterRequestAutoscalerConfig = {
40
+ const CreateClusterRequestAutoscalerConfig = {
41
41
  scaleDownDelayAfterAdd: { maxLength: 100 },
42
42
  scaleDownUtilizationThreshold: {
43
43
  greaterThan: 0,
44
44
  lessThan: 1
45
45
  }
46
46
  };
47
- var CreateClusterRequestOpenIDConnectConfig = {
47
+ const CreateClusterRequestOpenIDConnectConfig = {
48
48
  clientId: { maxLength: 255 },
49
49
  groupsPrefix: { maxLength: 100 },
50
50
  issuerUrl: { maxLength: 255 },
51
51
  usernameClaim: { maxLength: 100 },
52
52
  usernamePrefix: { maxLength: 100 }
53
53
  };
54
- var CreateClusterRequestPoolConfig = { name: {
54
+ const CreateClusterRequestPoolConfig = { name: {
55
55
  maxLength: 100,
56
56
  minLength: 1
57
57
  } };
58
- var CreatePoolRequest = { name: {
58
+ const CreatePoolRequest = { name: {
59
59
  maxLength: 100,
60
60
  minLength: 1
61
61
  } };
62
- var ListClusterTypesRequest = {
62
+ const ListClusterTypesRequest = {
63
63
  page: { greaterThan: 0 },
64
64
  pageSize: {
65
65
  greaterThan: 0,
66
66
  lessThanOrEqual: 100
67
67
  }
68
68
  };
69
- var ListClustersRequest = {
69
+ const ListClustersRequest = {
70
70
  name: { minLength: 1 },
71
71
  page: { greaterThan: 0 },
72
72
  pageSize: {
@@ -74,7 +74,7 @@ var ListClustersRequest = {
74
74
  lessThanOrEqual: 100
75
75
  }
76
76
  };
77
- var ListNodesRequest = {
77
+ const ListNodesRequest = {
78
78
  name: { minLength: 1 },
79
79
  page: { greaterThan: 0 },
80
80
  pageSize: {
@@ -82,7 +82,7 @@ var ListNodesRequest = {
82
82
  lessThanOrEqual: 100
83
83
  }
84
84
  };
85
- var ListPoolsRequest = {
85
+ const ListPoolsRequest = {
86
86
  name: { minLength: 1 },
87
87
  page: { greaterThan: 0 },
88
88
  pageSize: {
@@ -90,29 +90,29 @@ var ListPoolsRequest = {
90
90
  lessThanOrEqual: 100
91
91
  }
92
92
  };
93
- var MaintenanceWindow = { startHour: { lessThanOrEqual: 23 } };
94
- var SetClusterTypeRequest = { type: { maxLength: 100 } };
95
- var UpdateClusterRequest = {
93
+ const MaintenanceWindow = { startHour: { lessThanOrEqual: 23 } };
94
+ const SetClusterTypeRequest = { type: { maxLength: 100 } };
95
+ const UpdateClusterRequest = {
96
96
  description: { maxLength: 4096 },
97
97
  name: {
98
98
  maxLength: 100,
99
99
  minLength: 1
100
100
  }
101
101
  };
102
- var UpdateClusterRequestAutoscalerConfig = {
102
+ const UpdateClusterRequestAutoscalerConfig = {
103
103
  scaleDownDelayAfterAdd: { maxLength: 100 },
104
104
  scaleDownUtilizationThreshold: {
105
105
  greaterThan: 0,
106
106
  lessThan: 1
107
107
  }
108
108
  };
109
- var UpdateClusterRequestOpenIDConnectConfig = {
109
+ const UpdateClusterRequestOpenIDConnectConfig = {
110
110
  clientId: { maxLength: 255 },
111
111
  groupsPrefix: { maxLength: 100 },
112
112
  issuerUrl: { maxLength: 255 },
113
113
  usernameClaim: { maxLength: 100 },
114
114
  usernamePrefix: { maxLength: 100 }
115
115
  };
116
- var UpgradeClusterRequest = { version: { maxLength: 10 } };
116
+ const UpgradeClusterRequest = { version: { maxLength: 10 } };
117
117
  //#endregion
118
118
  export { ACLRuleRequest, CoreV1Taint, CreateClusterRequest, CreateClusterRequestAutoscalerConfig, CreateClusterRequestOpenIDConnectConfig, CreateClusterRequestPoolConfig, CreatePoolRequest, ListClusterTypesRequest, ListClustersRequest, ListNodesRequest, ListPoolsRequest, MaintenanceWindow, SetClusterTypeRequest, UpdateClusterRequest, UpdateClusterRequestAutoscalerConfig, UpdateClusterRequestOpenIDConnectConfig, UpgradeClusterRequest, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-k8s",
3
- "version": "2.9.0",
3
+ "version": "2.10.1",
4
4
  "description": "Scaleway SDK k8s",
5
5
  "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "directory": "packages_generated/k8s"
9
+ },
6
10
  "files": [
7
11
  "README.md",
8
12
  "dist"
@@ -26,27 +30,24 @@
26
30
  "default": "./dist/*/metadata.gen.js"
27
31
  }
28
32
  },
29
- "repository": {
30
- "type": "git",
31
- "directory": "packages_generated/k8s"
32
- },
33
- "engines": {
34
- "node": ">=20.19.6"
35
- },
36
33
  "dependencies": {
37
34
  "@scaleway/random-name": "5.1.4",
38
- "@scaleway/sdk-std": "2.3.0"
35
+ "@scaleway/sdk-std": "2.4.1"
36
+ },
37
+ "devDependencies": {
38
+ "@repo/configs": "^0.1.1",
39
+ "@scaleway/sdk-client": "^2.3.1"
39
40
  },
40
41
  "peerDependencies": {
41
- "@scaleway/sdk-client": "^2.2.2"
42
+ "@scaleway/sdk-client": "^2.3.1"
42
43
  },
43
- "devDependencies": {
44
- "@scaleway/sdk-client": "^2.2.2"
44
+ "engines": {
45
+ "node": ">=20.19.6"
45
46
  },
46
47
  "scripts": {
47
48
  "package:check": "pnpm publint",
48
- "typecheck": "tsc --noEmit",
49
- "type:generate": "tsc --declaration -p tsconfig.build.json",
49
+ "typecheck": "tsgo --noEmit",
50
+ "type:generate": "tsgo --declaration -p tsconfig.build.json",
50
51
  "build": "vite build --config vite.config.ts && pnpm run type:generate",
51
52
  "build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
52
53
  }