@alicloud/cs20151215 3.0.20 → 3.0.21

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/client.js CHANGED
@@ -165,6 +165,28 @@ class StandardComponentsValue extends $tea.Model {
165
165
  }
166
166
  }
167
167
  exports.StandardComponentsValue = StandardComponentsValue;
168
+ class QuotasValue extends $tea.Model {
169
+ constructor(map) {
170
+ super(map);
171
+ }
172
+ static names() {
173
+ return {
174
+ quota: 'quota',
175
+ operationCode: 'operation_code',
176
+ adjustable: 'adjustable',
177
+ unit: 'unit',
178
+ };
179
+ }
180
+ static types() {
181
+ return {
182
+ quota: 'string',
183
+ operationCode: 'string',
184
+ adjustable: 'boolean',
185
+ unit: 'string',
186
+ };
187
+ }
188
+ }
189
+ exports.QuotasValue = QuotasValue;
168
190
  class AttachInstancesRequest extends $tea.Model {
169
191
  constructor(map) {
170
192
  super(map);
@@ -243,6 +265,66 @@ class AttachInstancesResponse extends $tea.Model {
243
265
  }
244
266
  }
245
267
  exports.AttachInstancesResponse = AttachInstancesResponse;
268
+ class AttachInstancesToNodePoolRequest extends $tea.Model {
269
+ constructor(map) {
270
+ super(map);
271
+ }
272
+ static names() {
273
+ return {
274
+ formatDisk: 'format_disk',
275
+ instances: 'instances',
276
+ keepInstanceName: 'keep_instance_name',
277
+ password: 'password',
278
+ };
279
+ }
280
+ static types() {
281
+ return {
282
+ formatDisk: 'boolean',
283
+ instances: { 'type': 'array', 'itemType': 'string' },
284
+ keepInstanceName: 'boolean',
285
+ password: 'string',
286
+ };
287
+ }
288
+ }
289
+ exports.AttachInstancesToNodePoolRequest = AttachInstancesToNodePoolRequest;
290
+ class AttachInstancesToNodePoolResponseBody extends $tea.Model {
291
+ constructor(map) {
292
+ super(map);
293
+ }
294
+ static names() {
295
+ return {
296
+ requestId: 'request_id',
297
+ taskId: 'task_id',
298
+ };
299
+ }
300
+ static types() {
301
+ return {
302
+ requestId: 'string',
303
+ taskId: 'string',
304
+ };
305
+ }
306
+ }
307
+ exports.AttachInstancesToNodePoolResponseBody = AttachInstancesToNodePoolResponseBody;
308
+ class AttachInstancesToNodePoolResponse extends $tea.Model {
309
+ constructor(map) {
310
+ super(map);
311
+ }
312
+ static names() {
313
+ return {
314
+ headers: 'headers',
315
+ statusCode: 'statusCode',
316
+ body: 'body',
317
+ };
318
+ }
319
+ static types() {
320
+ return {
321
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
322
+ statusCode: 'number',
323
+ body: AttachInstancesToNodePoolResponseBody,
324
+ };
325
+ }
326
+ }
327
+ exports.AttachInstancesToNodePoolResponse = AttachInstancesToNodePoolResponse;
246
328
  class CancelClusterUpgradeResponse extends $tea.Model {
247
329
  constructor(map) {
248
330
  super(map);
@@ -331,6 +413,48 @@ class CancelWorkflowResponse extends $tea.Model {
331
413
  }
332
414
  }
333
415
  exports.CancelWorkflowResponse = CancelWorkflowResponse;
416
+ class CheckControlPlaneLogEnableResponseBody extends $tea.Model {
417
+ constructor(map) {
418
+ super(map);
419
+ }
420
+ static names() {
421
+ return {
422
+ aliuid: 'aliuid',
423
+ components: 'components',
424
+ logProject: 'log_project',
425
+ logTtl: 'log_ttl',
426
+ };
427
+ }
428
+ static types() {
429
+ return {
430
+ aliuid: 'string',
431
+ components: { 'type': 'array', 'itemType': 'string' },
432
+ logProject: 'string',
433
+ logTtl: 'string',
434
+ };
435
+ }
436
+ }
437
+ exports.CheckControlPlaneLogEnableResponseBody = CheckControlPlaneLogEnableResponseBody;
438
+ class CheckControlPlaneLogEnableResponse extends $tea.Model {
439
+ constructor(map) {
440
+ super(map);
441
+ }
442
+ static names() {
443
+ return {
444
+ headers: 'headers',
445
+ statusCode: 'statusCode',
446
+ body: 'body',
447
+ };
448
+ }
449
+ static types() {
450
+ return {
451
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
452
+ statusCode: 'number',
453
+ body: CheckControlPlaneLogEnableResponseBody,
454
+ };
455
+ }
456
+ }
457
+ exports.CheckControlPlaneLogEnableResponse = CheckControlPlaneLogEnableResponse;
334
458
  class CreateAutoscalingConfigRequest extends $tea.Model {
335
459
  constructor(map) {
336
460
  super(map);
@@ -338,10 +462,17 @@ class CreateAutoscalingConfigRequest extends $tea.Model {
338
462
  static names() {
339
463
  return {
340
464
  coolDownDuration: 'cool_down_duration',
465
+ daemonsetEvictionForNodes: 'daemonset_eviction_for_nodes',
341
466
  expander: 'expander',
342
467
  gpuUtilizationThreshold: 'gpu_utilization_threshold',
468
+ maxGracefulTerminationSec: 'max_graceful_termination_sec',
469
+ minReplicaCount: 'min_replica_count',
470
+ recycleNodeDeletionEnabled: 'recycle_node_deletion_enabled',
343
471
  scaleDownEnabled: 'scale_down_enabled',
472
+ scaleUpFromZero: 'scale_up_from_zero',
344
473
  scanInterval: 'scan_interval',
474
+ skipNodesWithLocalStorage: 'skip_nodes_with_local_storage',
475
+ skipNodesWithSystemPods: 'skip_nodes_with_system_pods',
345
476
  unneededDuration: 'unneeded_duration',
346
477
  utilizationThreshold: 'utilization_threshold',
347
478
  };
@@ -349,10 +480,17 @@ class CreateAutoscalingConfigRequest extends $tea.Model {
349
480
  static types() {
350
481
  return {
351
482
  coolDownDuration: 'string',
483
+ daemonsetEvictionForNodes: 'boolean',
352
484
  expander: 'string',
353
485
  gpuUtilizationThreshold: 'string',
486
+ maxGracefulTerminationSec: 'number',
487
+ minReplicaCount: 'number',
488
+ recycleNodeDeletionEnabled: 'boolean',
354
489
  scaleDownEnabled: 'boolean',
490
+ scaleUpFromZero: 'boolean',
355
491
  scanInterval: 'string',
492
+ skipNodesWithLocalStorage: 'boolean',
493
+ skipNodesWithSystemPods: 'boolean',
356
494
  unneededDuration: 'string',
357
495
  utilizationThreshold: 'string',
358
496
  };
@@ -1003,6 +1141,22 @@ class DeleteClusterShrinkRequest extends $tea.Model {
1003
1141
  }
1004
1142
  }
1005
1143
  exports.DeleteClusterShrinkRequest = DeleteClusterShrinkRequest;
1144
+ class DeleteClusterResponseBody extends $tea.Model {
1145
+ constructor(map) {
1146
+ super(map);
1147
+ }
1148
+ static names() {
1149
+ return {
1150
+ taskId: 'task_id',
1151
+ };
1152
+ }
1153
+ static types() {
1154
+ return {
1155
+ taskId: 'string',
1156
+ };
1157
+ }
1158
+ }
1159
+ exports.DeleteClusterResponseBody = DeleteClusterResponseBody;
1006
1160
  class DeleteClusterResponse extends $tea.Model {
1007
1161
  constructor(map) {
1008
1162
  super(map);
@@ -1011,12 +1165,14 @@ class DeleteClusterResponse extends $tea.Model {
1011
1165
  return {
1012
1166
  headers: 'headers',
1013
1167
  statusCode: 'statusCode',
1168
+ body: 'body',
1014
1169
  };
1015
1170
  }
1016
1171
  static types() {
1017
1172
  return {
1018
1173
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1019
1174
  statusCode: 'number',
1175
+ body: DeleteClusterResponseBody,
1020
1176
  };
1021
1177
  }
1022
1178
  }
@@ -1391,13 +1547,19 @@ class DescribeAddonsRequest extends $tea.Model {
1391
1547
  }
1392
1548
  static names() {
1393
1549
  return {
1550
+ clusterProfile: 'cluster_profile',
1551
+ clusterSpec: 'cluster_spec',
1394
1552
  clusterType: 'cluster_type',
1553
+ clusterVersion: 'cluster_version',
1395
1554
  region: 'region',
1396
1555
  };
1397
1556
  }
1398
1557
  static types() {
1399
1558
  return {
1559
+ clusterProfile: 'string',
1560
+ clusterSpec: 'string',
1400
1561
  clusterType: 'string',
1562
+ clusterVersion: 'string',
1401
1563
  region: 'string',
1402
1564
  };
1403
1565
  }
@@ -1441,6 +1603,48 @@ class DescribeAddonsResponse extends $tea.Model {
1441
1603
  }
1442
1604
  }
1443
1605
  exports.DescribeAddonsResponse = DescribeAddonsResponse;
1606
+ class DescribeClusterAddonInstanceResponseBody extends $tea.Model {
1607
+ constructor(map) {
1608
+ super(map);
1609
+ }
1610
+ static names() {
1611
+ return {
1612
+ config: 'config',
1613
+ name: 'name',
1614
+ state: 'state',
1615
+ version: 'version',
1616
+ };
1617
+ }
1618
+ static types() {
1619
+ return {
1620
+ config: 'string',
1621
+ name: 'string',
1622
+ state: 'string',
1623
+ version: 'string',
1624
+ };
1625
+ }
1626
+ }
1627
+ exports.DescribeClusterAddonInstanceResponseBody = DescribeClusterAddonInstanceResponseBody;
1628
+ class DescribeClusterAddonInstanceResponse extends $tea.Model {
1629
+ constructor(map) {
1630
+ super(map);
1631
+ }
1632
+ static names() {
1633
+ return {
1634
+ headers: 'headers',
1635
+ statusCode: 'statusCode',
1636
+ body: 'body',
1637
+ };
1638
+ }
1639
+ static types() {
1640
+ return {
1641
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1642
+ statusCode: 'number',
1643
+ body: DescribeClusterAddonInstanceResponseBody,
1644
+ };
1645
+ }
1646
+ }
1647
+ exports.DescribeClusterAddonInstanceResponse = DescribeClusterAddonInstanceResponse;
1444
1648
  class DescribeClusterAddonMetadataResponseBody extends $tea.Model {
1445
1649
  constructor(map) {
1446
1650
  super(map);
@@ -1640,6 +1844,7 @@ class DescribeClusterDetailResponseBody extends $tea.Model {
1640
1844
  name: 'name',
1641
1845
  networkMode: 'network_mode',
1642
1846
  nextVersion: 'next_version',
1847
+ parameters: 'parameters',
1643
1848
  privateZone: 'private_zone',
1644
1849
  profile: 'profile',
1645
1850
  regionId: 'region_id',
@@ -1673,6 +1878,7 @@ class DescribeClusterDetailResponseBody extends $tea.Model {
1673
1878
  name: 'string',
1674
1879
  networkMode: 'string',
1675
1880
  nextVersion: 'string',
1881
+ parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1676
1882
  privateZone: 'boolean',
1677
1883
  profile: 'string',
1678
1884
  regionId: 'string',
@@ -1726,7 +1932,7 @@ class DescribeClusterEventsRequest extends $tea.Model {
1726
1932
  return {
1727
1933
  pageNumber: 'number',
1728
1934
  pageSize: 'number',
1729
- taskId: 'number',
1935
+ taskId: 'string',
1730
1936
  };
1731
1937
  }
1732
1938
  }
@@ -2109,6 +2315,42 @@ class DescribeClusterV2UserKubeconfigResponse extends $tea.Model {
2109
2315
  }
2110
2316
  }
2111
2317
  exports.DescribeClusterV2UserKubeconfigResponse = DescribeClusterV2UserKubeconfigResponse;
2318
+ class DescribeClusterVulsResponseBody extends $tea.Model {
2319
+ constructor(map) {
2320
+ super(map);
2321
+ }
2322
+ static names() {
2323
+ return {
2324
+ vulRecords: 'vul_records',
2325
+ };
2326
+ }
2327
+ static types() {
2328
+ return {
2329
+ vulRecords: { 'type': 'array', 'itemType': DescribeClusterVulsResponseBodyVulRecords },
2330
+ };
2331
+ }
2332
+ }
2333
+ exports.DescribeClusterVulsResponseBody = DescribeClusterVulsResponseBody;
2334
+ class DescribeClusterVulsResponse extends $tea.Model {
2335
+ constructor(map) {
2336
+ super(map);
2337
+ }
2338
+ static names() {
2339
+ return {
2340
+ headers: 'headers',
2341
+ statusCode: 'statusCode',
2342
+ body: 'body',
2343
+ };
2344
+ }
2345
+ static types() {
2346
+ return {
2347
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2348
+ statusCode: 'number',
2349
+ body: DescribeClusterVulsResponseBody,
2350
+ };
2351
+ }
2352
+ }
2353
+ exports.DescribeClusterVulsResponse = DescribeClusterVulsResponse;
2112
2354
  class DescribeClustersRequest extends $tea.Model {
2113
2355
  constructor(map) {
2114
2356
  super(map);
@@ -2525,6 +2767,7 @@ class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
2525
2767
  return {
2526
2768
  clusterType: 'ClusterType',
2527
2769
  kubernetesVersion: 'KubernetesVersion',
2770
+ mode: 'Mode',
2528
2771
  profile: 'Profile',
2529
2772
  region: 'Region',
2530
2773
  runtime: 'runtime',
@@ -2534,6 +2777,7 @@ class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
2534
2777
  return {
2535
2778
  clusterType: 'string',
2536
2779
  kubernetesVersion: 'string',
2780
+ mode: 'string',
2537
2781
  profile: 'string',
2538
2782
  region: 'string',
2539
2783
  runtime: 'string',
@@ -2561,6 +2805,22 @@ class DescribeKubernetesVersionMetadataResponse extends $tea.Model {
2561
2805
  }
2562
2806
  }
2563
2807
  exports.DescribeKubernetesVersionMetadataResponse = DescribeKubernetesVersionMetadataResponse;
2808
+ class DescribeNodePoolVulsRequest extends $tea.Model {
2809
+ constructor(map) {
2810
+ super(map);
2811
+ }
2812
+ static names() {
2813
+ return {
2814
+ necessity: 'necessity',
2815
+ };
2816
+ }
2817
+ static types() {
2818
+ return {
2819
+ necessity: 'string',
2820
+ };
2821
+ }
2822
+ }
2823
+ exports.DescribeNodePoolVulsRequest = DescribeNodePoolVulsRequest;
2564
2824
  class DescribeNodePoolVulsResponseBody extends $tea.Model {
2565
2825
  constructor(map) {
2566
2826
  super(map);
@@ -2787,6 +3047,62 @@ class DescribePolicyInstancesStatusResponse extends $tea.Model {
2787
3047
  }
2788
3048
  }
2789
3049
  exports.DescribePolicyInstancesStatusResponse = DescribePolicyInstancesStatusResponse;
3050
+ class DescribeSubaccountK8sClusterUserConfigRequest extends $tea.Model {
3051
+ constructor(map) {
3052
+ super(map);
3053
+ }
3054
+ static names() {
3055
+ return {
3056
+ privateIpAddress: 'PrivateIpAddress',
3057
+ temporaryDurationMinutes: 'TemporaryDurationMinutes',
3058
+ };
3059
+ }
3060
+ static types() {
3061
+ return {
3062
+ privateIpAddress: 'boolean',
3063
+ temporaryDurationMinutes: 'number',
3064
+ };
3065
+ }
3066
+ }
3067
+ exports.DescribeSubaccountK8sClusterUserConfigRequest = DescribeSubaccountK8sClusterUserConfigRequest;
3068
+ class DescribeSubaccountK8sClusterUserConfigResponseBody extends $tea.Model {
3069
+ constructor(map) {
3070
+ super(map);
3071
+ }
3072
+ static names() {
3073
+ return {
3074
+ config: 'config',
3075
+ expiration: 'expiration',
3076
+ };
3077
+ }
3078
+ static types() {
3079
+ return {
3080
+ config: 'string',
3081
+ expiration: 'string',
3082
+ };
3083
+ }
3084
+ }
3085
+ exports.DescribeSubaccountK8sClusterUserConfigResponseBody = DescribeSubaccountK8sClusterUserConfigResponseBody;
3086
+ class DescribeSubaccountK8sClusterUserConfigResponse extends $tea.Model {
3087
+ constructor(map) {
3088
+ super(map);
3089
+ }
3090
+ static names() {
3091
+ return {
3092
+ headers: 'headers',
3093
+ statusCode: 'statusCode',
3094
+ body: 'body',
3095
+ };
3096
+ }
3097
+ static types() {
3098
+ return {
3099
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3100
+ statusCode: 'number',
3101
+ body: DescribeSubaccountK8sClusterUserConfigResponseBody,
3102
+ };
3103
+ }
3104
+ }
3105
+ exports.DescribeSubaccountK8sClusterUserConfigResponse = DescribeSubaccountK8sClusterUserConfigResponse;
2790
3106
  class DescribeTaskInfoResponseBody extends $tea.Model {
2791
3107
  constructor(map) {
2792
3108
  super(map);
@@ -2983,7 +3299,7 @@ class DescribeTriggerResponse extends $tea.Model {
2983
3299
  }
2984
3300
  }
2985
3301
  exports.DescribeTriggerResponse = DescribeTriggerResponse;
2986
- class DescribeUserPermissionResponse extends $tea.Model {
3302
+ class DescribeUserClusterNamespacesResponse extends $tea.Model {
2987
3303
  constructor(map) {
2988
3304
  super(map);
2989
3305
  }
@@ -2998,25 +3314,46 @@ class DescribeUserPermissionResponse extends $tea.Model {
2998
3314
  return {
2999
3315
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3000
3316
  statusCode: 'number',
3001
- body: { 'type': 'array', 'itemType': DescribeUserPermissionResponseBody },
3317
+ body: { 'type': 'array', 'itemType': 'string' },
3002
3318
  };
3003
3319
  }
3004
3320
  }
3005
- exports.DescribeUserPermissionResponse = DescribeUserPermissionResponse;
3006
- class DescribeUserQuotaResponseBody extends $tea.Model {
3321
+ exports.DescribeUserClusterNamespacesResponse = DescribeUserClusterNamespacesResponse;
3322
+ class DescribeUserPermissionResponse extends $tea.Model {
3007
3323
  constructor(map) {
3008
3324
  super(map);
3009
3325
  }
3010
3326
  static names() {
3011
3327
  return {
3012
- amkClusterQuota: 'amk_cluster_quota',
3013
- askClusterQuota: 'ask_cluster_quota',
3014
- clusterNodepoolQuota: 'cluster_nodepool_quota',
3015
- clusterQuota: 'cluster_quota',
3016
- edgeImprovedNodepoolQuota: 'edge_improved_nodepool_quota',
3017
- nodeQuota: 'node_quota',
3018
- };
3019
- }
3328
+ headers: 'headers',
3329
+ statusCode: 'statusCode',
3330
+ body: 'body',
3331
+ };
3332
+ }
3333
+ static types() {
3334
+ return {
3335
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3336
+ statusCode: 'number',
3337
+ body: { 'type': 'array', 'itemType': DescribeUserPermissionResponseBody },
3338
+ };
3339
+ }
3340
+ }
3341
+ exports.DescribeUserPermissionResponse = DescribeUserPermissionResponse;
3342
+ class DescribeUserQuotaResponseBody extends $tea.Model {
3343
+ constructor(map) {
3344
+ super(map);
3345
+ }
3346
+ static names() {
3347
+ return {
3348
+ amkClusterQuota: 'amk_cluster_quota',
3349
+ askClusterQuota: 'ask_cluster_quota',
3350
+ clusterNodepoolQuota: 'cluster_nodepool_quota',
3351
+ clusterQuota: 'cluster_quota',
3352
+ edgeImprovedNodepoolQuota: 'edge_improved_nodepool_quota',
3353
+ nodeQuota: 'node_quota',
3354
+ quotas: 'quotas',
3355
+ };
3356
+ }
3020
3357
  static types() {
3021
3358
  return {
3022
3359
  amkClusterQuota: 'number',
@@ -3025,6 +3362,7 @@ class DescribeUserQuotaResponseBody extends $tea.Model {
3025
3362
  clusterQuota: 'number',
3026
3363
  edgeImprovedNodepoolQuota: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota,
3027
3364
  nodeQuota: 'number',
3365
+ quotas: { 'type': 'map', 'keyType': 'string', 'valueType': QuotasValue },
3028
3366
  };
3029
3367
  }
3030
3368
  }
@@ -3151,14 +3489,14 @@ class FixNodePoolVulsRequest extends $tea.Model {
3151
3489
  return {
3152
3490
  nodes: 'nodes',
3153
3491
  rolloutPolicy: 'rollout_policy',
3154
- vulList: 'vul_list',
3492
+ vuls: 'vuls',
3155
3493
  };
3156
3494
  }
3157
3495
  static types() {
3158
3496
  return {
3159
3497
  nodes: { 'type': 'array', 'itemType': 'string' },
3160
3498
  rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
3161
- vulList: { 'type': 'array', 'itemType': 'string' },
3499
+ vuls: { 'type': 'array', 'itemType': 'string' },
3162
3500
  };
3163
3501
  }
3164
3502
  }
@@ -4008,6 +4346,7 @@ class RemoveNodePoolNodesRequest extends $tea.Model {
4008
4346
  static names() {
4009
4347
  return {
4010
4348
  drainNode: 'drain_node',
4349
+ instanceIds: 'instance_ids',
4011
4350
  nodes: 'nodes',
4012
4351
  releaseNode: 'release_node',
4013
4352
  };
@@ -4015,6 +4354,7 @@ class RemoveNodePoolNodesRequest extends $tea.Model {
4015
4354
  static types() {
4016
4355
  return {
4017
4356
  drainNode: 'boolean',
4357
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
4018
4358
  nodes: { 'type': 'array', 'itemType': 'string' },
4019
4359
  releaseNode: 'boolean',
4020
4360
  };
@@ -4028,6 +4368,7 @@ class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
4028
4368
  static names() {
4029
4369
  return {
4030
4370
  drainNode: 'drain_node',
4371
+ instanceIdsShrink: 'instance_ids',
4031
4372
  nodesShrink: 'nodes',
4032
4373
  releaseNode: 'release_node',
4033
4374
  };
@@ -4035,6 +4376,7 @@ class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
4035
4376
  static types() {
4036
4377
  return {
4037
4378
  drainNode: 'boolean',
4379
+ instanceIdsShrink: 'string',
4038
4380
  nodesShrink: 'string',
4039
4381
  releaseNode: 'boolean',
4040
4382
  };
@@ -4445,6 +4787,82 @@ class ScaleOutClusterResponse extends $tea.Model {
4445
4787
  }
4446
4788
  }
4447
4789
  exports.ScaleOutClusterResponse = ScaleOutClusterResponse;
4790
+ class ScanClusterVulsResponseBody extends $tea.Model {
4791
+ constructor(map) {
4792
+ super(map);
4793
+ }
4794
+ static names() {
4795
+ return {
4796
+ requestId: 'request_id',
4797
+ taskId: 'task_id',
4798
+ };
4799
+ }
4800
+ static types() {
4801
+ return {
4802
+ requestId: 'string',
4803
+ taskId: 'string',
4804
+ };
4805
+ }
4806
+ }
4807
+ exports.ScanClusterVulsResponseBody = ScanClusterVulsResponseBody;
4808
+ class ScanClusterVulsResponse extends $tea.Model {
4809
+ constructor(map) {
4810
+ super(map);
4811
+ }
4812
+ static names() {
4813
+ return {
4814
+ headers: 'headers',
4815
+ statusCode: 'statusCode',
4816
+ body: 'body',
4817
+ };
4818
+ }
4819
+ static types() {
4820
+ return {
4821
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4822
+ statusCode: 'number',
4823
+ body: ScanClusterVulsResponseBody,
4824
+ };
4825
+ }
4826
+ }
4827
+ exports.ScanClusterVulsResponse = ScanClusterVulsResponse;
4828
+ class StartAlertResponseBody extends $tea.Model {
4829
+ constructor(map) {
4830
+ super(map);
4831
+ }
4832
+ static names() {
4833
+ return {
4834
+ msg: 'msg',
4835
+ status: 'status',
4836
+ };
4837
+ }
4838
+ static types() {
4839
+ return {
4840
+ msg: 'string',
4841
+ status: 'boolean',
4842
+ };
4843
+ }
4844
+ }
4845
+ exports.StartAlertResponseBody = StartAlertResponseBody;
4846
+ class StartAlertResponse extends $tea.Model {
4847
+ constructor(map) {
4848
+ super(map);
4849
+ }
4850
+ static names() {
4851
+ return {
4852
+ headers: 'headers',
4853
+ statusCode: 'statusCode',
4854
+ body: 'body',
4855
+ };
4856
+ }
4857
+ static types() {
4858
+ return {
4859
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4860
+ statusCode: 'number',
4861
+ body: StartAlertResponseBody,
4862
+ };
4863
+ }
4864
+ }
4865
+ exports.StartAlertResponse = StartAlertResponse;
4448
4866
  class StartWorkflowRequest extends $tea.Model {
4449
4867
  constructor(map) {
4450
4868
  super(map);
@@ -4533,6 +4951,80 @@ class StartWorkflowResponse extends $tea.Model {
4533
4951
  }
4534
4952
  }
4535
4953
  exports.StartWorkflowResponse = StartWorkflowResponse;
4954
+ class StopAlertResponseBody extends $tea.Model {
4955
+ constructor(map) {
4956
+ super(map);
4957
+ }
4958
+ static names() {
4959
+ return {
4960
+ msg: 'msg',
4961
+ status: 'status',
4962
+ };
4963
+ }
4964
+ static types() {
4965
+ return {
4966
+ msg: 'string',
4967
+ status: 'boolean',
4968
+ };
4969
+ }
4970
+ }
4971
+ exports.StopAlertResponseBody = StopAlertResponseBody;
4972
+ class StopAlertResponse extends $tea.Model {
4973
+ constructor(map) {
4974
+ super(map);
4975
+ }
4976
+ static names() {
4977
+ return {
4978
+ headers: 'headers',
4979
+ statusCode: 'statusCode',
4980
+ body: 'body',
4981
+ };
4982
+ }
4983
+ static types() {
4984
+ return {
4985
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4986
+ statusCode: 'number',
4987
+ body: StopAlertResponseBody,
4988
+ };
4989
+ }
4990
+ }
4991
+ exports.StopAlertResponse = StopAlertResponse;
4992
+ class SyncClusterNodePoolResponseBody extends $tea.Model {
4993
+ constructor(map) {
4994
+ super(map);
4995
+ }
4996
+ static names() {
4997
+ return {
4998
+ requestId: 'RequestId',
4999
+ };
5000
+ }
5001
+ static types() {
5002
+ return {
5003
+ requestId: 'string',
5004
+ };
5005
+ }
5006
+ }
5007
+ exports.SyncClusterNodePoolResponseBody = SyncClusterNodePoolResponseBody;
5008
+ class SyncClusterNodePoolResponse extends $tea.Model {
5009
+ constructor(map) {
5010
+ super(map);
5011
+ }
5012
+ static names() {
5013
+ return {
5014
+ headers: 'headers',
5015
+ statusCode: 'statusCode',
5016
+ body: 'body',
5017
+ };
5018
+ }
5019
+ static types() {
5020
+ return {
5021
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5022
+ statusCode: 'number',
5023
+ body: SyncClusterNodePoolResponseBody,
5024
+ };
5025
+ }
5026
+ }
5027
+ exports.SyncClusterNodePoolResponse = SyncClusterNodePoolResponse;
4536
5028
  class TagResourcesRequest extends $tea.Model {
4537
5029
  constructor(map) {
4538
5030
  super(map);
@@ -4649,6 +5141,30 @@ class UntagResourcesRequest extends $tea.Model {
4649
5141
  }
4650
5142
  }
4651
5143
  exports.UntagResourcesRequest = UntagResourcesRequest;
5144
+ class UntagResourcesShrinkRequest extends $tea.Model {
5145
+ constructor(map) {
5146
+ super(map);
5147
+ }
5148
+ static names() {
5149
+ return {
5150
+ all: 'all',
5151
+ regionId: 'region_id',
5152
+ resourceIdsShrink: 'resource_ids',
5153
+ resourceType: 'resource_type',
5154
+ tagKeysShrink: 'tag_keys',
5155
+ };
5156
+ }
5157
+ static types() {
5158
+ return {
5159
+ all: 'boolean',
5160
+ regionId: 'string',
5161
+ resourceIdsShrink: 'string',
5162
+ resourceType: 'string',
5163
+ tagKeysShrink: 'string',
5164
+ };
5165
+ }
5166
+ }
5167
+ exports.UntagResourcesShrinkRequest = UntagResourcesShrinkRequest;
4652
5168
  class UntagResourcesResponseBody extends $tea.Model {
4653
5169
  constructor(map) {
4654
5170
  super(map);
@@ -4703,6 +5219,46 @@ class UpdateContactGroupForAlertResponse extends $tea.Model {
4703
5219
  }
4704
5220
  }
4705
5221
  exports.UpdateContactGroupForAlertResponse = UpdateContactGroupForAlertResponse;
5222
+ class UpdateControlPlaneLogRequest extends $tea.Model {
5223
+ constructor(map) {
5224
+ super(map);
5225
+ }
5226
+ static names() {
5227
+ return {
5228
+ aliuid: 'aliuid',
5229
+ components: 'components',
5230
+ logProject: 'log_project',
5231
+ logTtl: 'log_ttl',
5232
+ };
5233
+ }
5234
+ static types() {
5235
+ return {
5236
+ aliuid: 'string',
5237
+ components: { 'type': 'array', 'itemType': 'string' },
5238
+ logProject: 'string',
5239
+ logTtl: 'string',
5240
+ };
5241
+ }
5242
+ }
5243
+ exports.UpdateControlPlaneLogRequest = UpdateControlPlaneLogRequest;
5244
+ class UpdateControlPlaneLogResponse extends $tea.Model {
5245
+ constructor(map) {
5246
+ super(map);
5247
+ }
5248
+ static names() {
5249
+ return {
5250
+ headers: 'headers',
5251
+ statusCode: 'statusCode',
5252
+ };
5253
+ }
5254
+ static types() {
5255
+ return {
5256
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5257
+ statusCode: 'number',
5258
+ };
5259
+ }
5260
+ }
5261
+ exports.UpdateControlPlaneLogResponse = UpdateControlPlaneLogResponse;
4706
5262
  class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
4707
5263
  constructor(map) {
4708
5264
  super(map);
@@ -4788,6 +5344,7 @@ class UpgradeClusterRequest extends $tea.Model {
4788
5344
  static names() {
4789
5345
  return {
4790
5346
  componentName: 'component_name',
5347
+ masterOnly: 'master_only',
4791
5348
  nextVersion: 'next_version',
4792
5349
  version: 'version',
4793
5350
  };
@@ -4795,6 +5352,7 @@ class UpgradeClusterRequest extends $tea.Model {
4795
5352
  static types() {
4796
5353
  return {
4797
5354
  componentName: 'string',
5355
+ masterOnly: 'boolean',
4798
5356
  nextVersion: 'string',
4799
5357
  version: 'string',
4800
5358
  };
@@ -4861,6 +5419,7 @@ class UpgradeClusterNodepoolRequest extends $tea.Model {
4861
5419
  return {
4862
5420
  imageId: 'image_id',
4863
5421
  kubernetesVersion: 'kubernetes_version',
5422
+ runtimeType: 'runtime_type',
4864
5423
  runtimeVersion: 'runtime_version',
4865
5424
  };
4866
5425
  }
@@ -4868,6 +5427,7 @@ class UpgradeClusterNodepoolRequest extends $tea.Model {
4868
5427
  return {
4869
5428
  imageId: 'string',
4870
5429
  kubernetesVersion: 'string',
5430
+ runtimeType: 'string',
4871
5431
  runtimeVersion: 'string',
4872
5432
  };
4873
5433
  }
@@ -4880,11 +5440,13 @@ class UpgradeClusterNodepoolResponseBody extends $tea.Model {
4880
5440
  static names() {
4881
5441
  return {
4882
5442
  requestId: 'RequestId',
5443
+ taskId: 'task_id',
4883
5444
  };
4884
5445
  }
4885
5446
  static types() {
4886
5447
  return {
4887
5448
  requestId: 'string',
5449
+ taskId: 'string',
4888
5450
  };
4889
5451
  }
4890
5452
  }
@@ -5095,6 +5657,24 @@ class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
5095
5657
  }
5096
5658
  }
5097
5659
  exports.CreateClusterNodePoolRequestNodepoolInfo = CreateClusterNodePoolRequestNodepoolInfo;
5660
+ class CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions extends $tea.Model {
5661
+ constructor(map) {
5662
+ super(map);
5663
+ }
5664
+ static names() {
5665
+ return {
5666
+ id: 'id',
5667
+ matchCriteria: 'match_criteria',
5668
+ };
5669
+ }
5670
+ static types() {
5671
+ return {
5672
+ id: 'string',
5673
+ matchCriteria: 'string',
5674
+ };
5675
+ }
5676
+ }
5677
+ exports.CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions = CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions;
5098
5678
  class CreateClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
5099
5679
  constructor(map) {
5100
5680
  super(map);
@@ -5157,6 +5737,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
5157
5737
  period: 'period',
5158
5738
  periodUnit: 'period_unit',
5159
5739
  platform: 'platform',
5740
+ privatePoolOptions: 'private_pool_options',
5160
5741
  rdsInstances: 'rds_instances',
5161
5742
  scalingPolicy: 'scaling_policy',
5162
5743
  securityGroupId: 'security_group_id',
@@ -5194,6 +5775,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
5194
5775
  period: 'number',
5195
5776
  periodUnit: 'string',
5196
5777
  platform: 'string',
5778
+ privatePoolOptions: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions,
5197
5779
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
5198
5780
  scalingPolicy: 'string',
5199
5781
  securityGroupId: 'string',
@@ -5507,6 +6089,24 @@ class DescribeClusterNodePoolDetailResponseBodyNodepoolInfo extends $tea.Model {
5507
6089
  }
5508
6090
  }
5509
6091
  exports.DescribeClusterNodePoolDetailResponseBodyNodepoolInfo = DescribeClusterNodePoolDetailResponseBodyNodepoolInfo;
6092
+ class DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions extends $tea.Model {
6093
+ constructor(map) {
6094
+ super(map);
6095
+ }
6096
+ static names() {
6097
+ return {
6098
+ id: 'id',
6099
+ matchCriteria: 'match_criteria',
6100
+ };
6101
+ }
6102
+ static types() {
6103
+ return {
6104
+ id: 'string',
6105
+ matchCriteria: 'string',
6106
+ };
6107
+ }
6108
+ }
6109
+ exports.DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions = DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions;
5510
6110
  class DescribeClusterNodePoolDetailResponseBodyScalingGroupSpotPriceLimit extends $tea.Model {
5511
6111
  constructor(map) {
5512
6112
  super(map);
@@ -5550,6 +6150,7 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
5550
6150
  period: 'period',
5551
6151
  periodUnit: 'period_unit',
5552
6152
  platform: 'platform',
6153
+ privatePoolOptions: 'private_pool_options',
5553
6154
  ramPolicy: 'ram_policy',
5554
6155
  rdsInstances: 'rds_instances',
5555
6156
  scalingGroupId: 'scaling_group_id',
@@ -5588,6 +6189,7 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
5588
6189
  period: 'number',
5589
6190
  periodUnit: 'string',
5590
6191
  platform: 'string',
6192
+ privatePoolOptions: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions,
5591
6193
  ramPolicy: 'string',
5592
6194
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
5593
6195
  scalingGroupId: 'string',
@@ -5807,6 +6409,24 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo extends $tea.Mod
5807
6409
  }
5808
6410
  }
5809
6411
  exports.DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo = DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo;
6412
+ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions extends $tea.Model {
6413
+ constructor(map) {
6414
+ super(map);
6415
+ }
6416
+ static names() {
6417
+ return {
6418
+ id: 'id',
6419
+ matchCriteria: 'match_criteria',
6420
+ };
6421
+ }
6422
+ static types() {
6423
+ return {
6424
+ id: 'string',
6425
+ matchCriteria: 'string',
6426
+ };
6427
+ }
6428
+ }
6429
+ exports.DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions = DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions;
5810
6430
  class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupSpotPriceLimit extends $tea.Model {
5811
6431
  constructor(map) {
5812
6432
  super(map);
@@ -5850,6 +6470,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
5850
6470
  period: 'period',
5851
6471
  periodUnit: 'period_unit',
5852
6472
  platform: 'platform',
6473
+ privatePoolOptions: 'private_pool_options',
5853
6474
  ramPolicy: 'ram_policy',
5854
6475
  rdsInstances: 'rds_instances',
5855
6476
  scalingGroupId: 'scaling_group_id',
@@ -5888,6 +6509,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
5888
6509
  period: 'number',
5889
6510
  periodUnit: 'string',
5890
6511
  platform: 'string',
6512
+ privatePoolOptions: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions,
5891
6513
  ramPolicy: 'string',
5892
6514
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
5893
6515
  scalingGroupId: 'string',
@@ -6153,19 +6775,49 @@ class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
6153
6775
  }
6154
6776
  }
6155
6777
  exports.DescribeClusterTasksResponseBodyTasks = DescribeClusterTasksResponseBodyTasks;
6156
- class DescribeClustersResponseBodyTags extends $tea.Model {
6778
+ class DescribeClusterVulsResponseBodyVulRecords extends $tea.Model {
6157
6779
  constructor(map) {
6158
6780
  super(map);
6159
6781
  }
6160
6782
  static names() {
6161
6783
  return {
6162
- key: 'key',
6163
- value: 'value',
6784
+ cveList: 'cve_list',
6785
+ necessity: 'necessity',
6786
+ nodeCount: 'node_count',
6787
+ nodepoolId: 'nodepool_id',
6788
+ nodepoolName: 'nodepool_name',
6789
+ vulAliasName: 'vul_alias_name',
6790
+ vulName: 'vul_name',
6791
+ vulType: 'vul_type',
6164
6792
  };
6165
6793
  }
6166
6794
  static types() {
6167
6795
  return {
6168
- key: 'string',
6796
+ cveList: { 'type': 'array', 'itemType': 'string' },
6797
+ necessity: 'string',
6798
+ nodeCount: 'number',
6799
+ nodepoolId: 'string',
6800
+ nodepoolName: 'string',
6801
+ vulAliasName: 'string',
6802
+ vulName: 'string',
6803
+ vulType: 'string',
6804
+ };
6805
+ }
6806
+ }
6807
+ exports.DescribeClusterVulsResponseBodyVulRecords = DescribeClusterVulsResponseBodyVulRecords;
6808
+ class DescribeClustersResponseBodyTags extends $tea.Model {
6809
+ constructor(map) {
6810
+ super(map);
6811
+ }
6812
+ static names() {
6813
+ return {
6814
+ key: 'key',
6815
+ value: 'value',
6816
+ };
6817
+ }
6818
+ static types() {
6819
+ return {
6820
+ key: 'string',
6169
6821
  value: 'string',
6170
6822
  };
6171
6823
  }
@@ -6528,7 +7180,9 @@ class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
6528
7180
  metaData: 'meta_data',
6529
7181
  runtimes: 'runtimes',
6530
7182
  version: 'version',
6531
- multiAz: 'multi_az',
7183
+ releaseDate: 'release_date',
7184
+ expirationDate: 'expiration_date',
7185
+ creatable: 'creatable',
6532
7186
  };
6533
7187
  }
6534
7188
  static types() {
@@ -6538,7 +7192,9 @@ class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
6538
7192
  metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
6539
7193
  runtimes: { 'type': 'array', 'itemType': Runtime },
6540
7194
  version: 'string',
6541
- multiAz: 'string',
7195
+ releaseDate: 'string',
7196
+ expirationDate: 'string',
7197
+ creatable: 'boolean',
6542
7198
  };
6543
7199
  }
6544
7200
  }
@@ -6572,12 +7228,14 @@ class DescribeNodePoolVulsResponseBodyVulRecords extends $tea.Model {
6572
7228
  static names() {
6573
7229
  return {
6574
7230
  instanceId: 'instance_id',
7231
+ nodeName: 'node_name',
6575
7232
  vulList: 'vul_list',
6576
7233
  };
6577
7234
  }
6578
7235
  static types() {
6579
7236
  return {
6580
7237
  instanceId: 'string',
7238
+ nodeName: 'string',
6581
7239
  vulList: { 'type': 'array', 'itemType': DescribeNodePoolVulsResponseBodyVulRecordsVulList },
6582
7240
  };
6583
7241
  }
@@ -7407,6 +8065,24 @@ class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
7407
8065
  }
7408
8066
  }
7409
8067
  exports.ModifyClusterNodePoolRequestNodepoolInfo = ModifyClusterNodePoolRequestNodepoolInfo;
8068
+ class ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions extends $tea.Model {
8069
+ constructor(map) {
8070
+ super(map);
8071
+ }
8072
+ static names() {
8073
+ return {
8074
+ id: 'id',
8075
+ matchCriteria: 'match_criteria',
8076
+ };
8077
+ }
8078
+ static types() {
8079
+ return {
8080
+ id: 'string',
8081
+ matchCriteria: 'string',
8082
+ };
8083
+ }
8084
+ }
8085
+ exports.ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions = ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions;
7410
8086
  class ModifyClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
7411
8087
  constructor(map) {
7412
8088
  super(map);
@@ -7449,6 +8125,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
7449
8125
  period: 'period',
7450
8126
  periodUnit: 'period_unit',
7451
8127
  platform: 'platform',
8128
+ privatePoolOptions: 'private_pool_options',
7452
8129
  rdsInstances: 'rds_instances',
7453
8130
  scalingPolicy: 'scaling_policy',
7454
8131
  spotInstancePools: 'spot_instance_pools',
@@ -7482,6 +8159,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
7482
8159
  period: 'number',
7483
8160
  periodUnit: 'string',
7484
8161
  platform: 'string',
8162
+ privatePoolOptions: ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions,
7485
8163
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
7486
8164
  scalingPolicy: 'string',
7487
8165
  spotInstancePools: 'number',
@@ -7672,6 +8350,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
7672
8350
  componentName: 'component_name',
7673
8351
  config: 'config',
7674
8352
  nextVersion: 'next_version',
8353
+ policy: 'policy',
7675
8354
  version: 'version',
7676
8355
  };
7677
8356
  }
@@ -7680,6 +8359,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
7680
8359
  componentName: 'string',
7681
8360
  config: 'string',
7682
8361
  nextVersion: 'string',
8362
+ policy: 'string',
7683
8363
  version: 'string',
7684
8364
  };
7685
8365
  }
@@ -7734,11 +8414,6 @@ class Client extends openapi_client_1.default {
7734
8414
  }
7735
8415
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
7736
8416
  }
7737
- async attachInstances(ClusterId, request) {
7738
- let runtime = new $Util.RuntimeOptions({});
7739
- let headers = {};
7740
- return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
7741
- }
7742
8417
  async attachInstancesWithOptions(ClusterId, request, headers, runtime) {
7743
8418
  tea_util_1.default.validateModel(request);
7744
8419
  let body = {};
@@ -7772,7 +8447,7 @@ class Client extends openapi_client_1.default {
7772
8447
  if (!tea_util_1.default.isUnset(request.rdsInstances)) {
7773
8448
  body["rds_instances"] = request.rdsInstances;
7774
8449
  }
7775
- if (!tea_util_1.default.isUnset($tea.toMap(request.runtime))) {
8450
+ if (!tea_util_1.default.isUnset(request.runtime)) {
7776
8451
  body["runtime"] = request.runtime;
7777
8452
  }
7778
8453
  if (!tea_util_1.default.isUnset(request.tags)) {
@@ -7798,10 +8473,47 @@ class Client extends openapi_client_1.default {
7798
8473
  });
7799
8474
  return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
7800
8475
  }
7801
- async cancelClusterUpgrade(ClusterId) {
8476
+ async attachInstances(ClusterId, request) {
7802
8477
  let runtime = new $Util.RuntimeOptions({});
7803
8478
  let headers = {};
7804
- return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
8479
+ return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
8480
+ }
8481
+ async attachInstancesToNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
8482
+ tea_util_1.default.validateModel(request);
8483
+ let body = {};
8484
+ if (!tea_util_1.default.isUnset(request.formatDisk)) {
8485
+ body["format_disk"] = request.formatDisk;
8486
+ }
8487
+ if (!tea_util_1.default.isUnset(request.instances)) {
8488
+ body["instances"] = request.instances;
8489
+ }
8490
+ if (!tea_util_1.default.isUnset(request.keepInstanceName)) {
8491
+ body["keep_instance_name"] = request.keepInstanceName;
8492
+ }
8493
+ if (!tea_util_1.default.isUnset(request.password)) {
8494
+ body["password"] = request.password;
8495
+ }
8496
+ let req = new $OpenApi.OpenApiRequest({
8497
+ headers: headers,
8498
+ body: openapi_util_1.default.parseToMap(body),
8499
+ });
8500
+ let params = new $OpenApi.Params({
8501
+ action: "AttachInstancesToNodePool",
8502
+ version: "2015-12-15",
8503
+ protocol: "HTTPS",
8504
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/attach`,
8505
+ method: "POST",
8506
+ authType: "AK",
8507
+ style: "ROA",
8508
+ reqBodyType: "json",
8509
+ bodyType: "json",
8510
+ });
8511
+ return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesToNodePoolResponse({}));
8512
+ }
8513
+ async attachInstancesToNodePool(ClusterId, NodepoolId, request) {
8514
+ let runtime = new $Util.RuntimeOptions({});
8515
+ let headers = {};
8516
+ return await this.attachInstancesToNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
7805
8517
  }
7806
8518
  async cancelClusterUpgradeWithOptions(ClusterId, headers, runtime) {
7807
8519
  let req = new $OpenApi.OpenApiRequest({
@@ -7820,10 +8532,10 @@ class Client extends openapi_client_1.default {
7820
8532
  });
7821
8533
  return $tea.cast(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
7822
8534
  }
7823
- async cancelComponentUpgrade(clusterId, componentId) {
8535
+ async cancelClusterUpgrade(ClusterId) {
7824
8536
  let runtime = new $Util.RuntimeOptions({});
7825
8537
  let headers = {};
7826
- return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
8538
+ return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
7827
8539
  }
7828
8540
  async cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime) {
7829
8541
  let req = new $OpenApi.OpenApiRequest({
@@ -7842,10 +8554,10 @@ class Client extends openapi_client_1.default {
7842
8554
  });
7843
8555
  return $tea.cast(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
7844
8556
  }
7845
- async cancelTask(taskId) {
8557
+ async cancelComponentUpgrade(clusterId, componentId) {
7846
8558
  let runtime = new $Util.RuntimeOptions({});
7847
8559
  let headers = {};
7848
- return await this.cancelTaskWithOptions(taskId, headers, runtime);
8560
+ return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
7849
8561
  }
7850
8562
  async cancelTaskWithOptions(taskId, headers, runtime) {
7851
8563
  let req = new $OpenApi.OpenApiRequest({
@@ -7864,10 +8576,10 @@ class Client extends openapi_client_1.default {
7864
8576
  });
7865
8577
  return $tea.cast(await this.callApi(params, req, runtime), new CancelTaskResponse({}));
7866
8578
  }
7867
- async cancelWorkflow(workflowName, request) {
8579
+ async cancelTask(taskId) {
7868
8580
  let runtime = new $Util.RuntimeOptions({});
7869
8581
  let headers = {};
7870
- return await this.cancelWorkflowWithOptions(workflowName, request, headers, runtime);
8582
+ return await this.cancelTaskWithOptions(taskId, headers, runtime);
7871
8583
  }
7872
8584
  async cancelWorkflowWithOptions(workflowName, request, headers, runtime) {
7873
8585
  tea_util_1.default.validateModel(request);
@@ -7892,10 +8604,32 @@ class Client extends openapi_client_1.default {
7892
8604
  });
7893
8605
  return $tea.cast(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
7894
8606
  }
7895
- async createAutoscalingConfig(ClusterId, request) {
8607
+ async cancelWorkflow(workflowName, request) {
7896
8608
  let runtime = new $Util.RuntimeOptions({});
7897
8609
  let headers = {};
7898
- return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
8610
+ return await this.cancelWorkflowWithOptions(workflowName, request, headers, runtime);
8611
+ }
8612
+ async checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime) {
8613
+ let req = new $OpenApi.OpenApiRequest({
8614
+ headers: headers,
8615
+ });
8616
+ let params = new $OpenApi.Params({
8617
+ action: "CheckControlPlaneLogEnable",
8618
+ version: "2015-12-15",
8619
+ protocol: "HTTPS",
8620
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/controlplanelog`,
8621
+ method: "GET",
8622
+ authType: "AK",
8623
+ style: "ROA",
8624
+ reqBodyType: "json",
8625
+ bodyType: "json",
8626
+ });
8627
+ return $tea.cast(await this.callApi(params, req, runtime), new CheckControlPlaneLogEnableResponse({}));
8628
+ }
8629
+ async checkControlPlaneLogEnable(ClusterId) {
8630
+ let runtime = new $Util.RuntimeOptions({});
8631
+ let headers = {};
8632
+ return await this.checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime);
7899
8633
  }
7900
8634
  async createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime) {
7901
8635
  tea_util_1.default.validateModel(request);
@@ -7903,18 +8637,39 @@ class Client extends openapi_client_1.default {
7903
8637
  if (!tea_util_1.default.isUnset(request.coolDownDuration)) {
7904
8638
  body["cool_down_duration"] = request.coolDownDuration;
7905
8639
  }
8640
+ if (!tea_util_1.default.isUnset(request.daemonsetEvictionForNodes)) {
8641
+ body["daemonset_eviction_for_nodes"] = request.daemonsetEvictionForNodes;
8642
+ }
7906
8643
  if (!tea_util_1.default.isUnset(request.expander)) {
7907
8644
  body["expander"] = request.expander;
7908
8645
  }
7909
8646
  if (!tea_util_1.default.isUnset(request.gpuUtilizationThreshold)) {
7910
8647
  body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
7911
8648
  }
8649
+ if (!tea_util_1.default.isUnset(request.maxGracefulTerminationSec)) {
8650
+ body["max_graceful_termination_sec"] = request.maxGracefulTerminationSec;
8651
+ }
8652
+ if (!tea_util_1.default.isUnset(request.minReplicaCount)) {
8653
+ body["min_replica_count"] = request.minReplicaCount;
8654
+ }
8655
+ if (!tea_util_1.default.isUnset(request.recycleNodeDeletionEnabled)) {
8656
+ body["recycle_node_deletion_enabled"] = request.recycleNodeDeletionEnabled;
8657
+ }
7912
8658
  if (!tea_util_1.default.isUnset(request.scaleDownEnabled)) {
7913
8659
  body["scale_down_enabled"] = request.scaleDownEnabled;
7914
8660
  }
8661
+ if (!tea_util_1.default.isUnset(request.scaleUpFromZero)) {
8662
+ body["scale_up_from_zero"] = request.scaleUpFromZero;
8663
+ }
7915
8664
  if (!tea_util_1.default.isUnset(request.scanInterval)) {
7916
8665
  body["scan_interval"] = request.scanInterval;
7917
8666
  }
8667
+ if (!tea_util_1.default.isUnset(request.skipNodesWithLocalStorage)) {
8668
+ body["skip_nodes_with_local_storage"] = request.skipNodesWithLocalStorage;
8669
+ }
8670
+ if (!tea_util_1.default.isUnset(request.skipNodesWithSystemPods)) {
8671
+ body["skip_nodes_with_system_pods"] = request.skipNodesWithSystemPods;
8672
+ }
7918
8673
  if (!tea_util_1.default.isUnset(request.unneededDuration)) {
7919
8674
  body["unneeded_duration"] = request.unneededDuration;
7920
8675
  }
@@ -7938,10 +8693,10 @@ class Client extends openapi_client_1.default {
7938
8693
  });
7939
8694
  return $tea.cast(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
7940
8695
  }
7941
- async createCluster(request) {
8696
+ async createAutoscalingConfig(ClusterId, request) {
7942
8697
  let runtime = new $Util.RuntimeOptions({});
7943
8698
  let headers = {};
7944
- return await this.createClusterWithOptions(request, headers, runtime);
8699
+ return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
7945
8700
  }
7946
8701
  async createClusterWithOptions(request, headers, runtime) {
7947
8702
  tea_util_1.default.validateModel(request);
@@ -8123,7 +8878,7 @@ class Client extends openapi_client_1.default {
8123
8878
  if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
8124
8879
  body["resource_group_id"] = request.resourceGroupId;
8125
8880
  }
8126
- if (!tea_util_1.default.isUnset($tea.toMap(request.runtime))) {
8881
+ if (!tea_util_1.default.isUnset(request.runtime)) {
8127
8882
  body["runtime"] = request.runtime;
8128
8883
  }
8129
8884
  if (!tea_util_1.default.isUnset(request.securityGroupId)) {
@@ -8227,42 +8982,42 @@ class Client extends openapi_client_1.default {
8227
8982
  });
8228
8983
  return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
8229
8984
  }
8230
- async createClusterNodePool(ClusterId, request) {
8985
+ async createCluster(request) {
8231
8986
  let runtime = new $Util.RuntimeOptions({});
8232
8987
  let headers = {};
8233
- return await this.createClusterNodePoolWithOptions(ClusterId, request, headers, runtime);
8988
+ return await this.createClusterWithOptions(request, headers, runtime);
8234
8989
  }
8235
8990
  async createClusterNodePoolWithOptions(ClusterId, request, headers, runtime) {
8236
8991
  tea_util_1.default.validateModel(request);
8237
8992
  let body = {};
8238
- if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
8993
+ if (!tea_util_1.default.isUnset(request.autoScaling)) {
8239
8994
  body["auto_scaling"] = request.autoScaling;
8240
8995
  }
8241
8996
  if (!tea_util_1.default.isUnset(request.count)) {
8242
8997
  body["count"] = request.count;
8243
8998
  }
8244
- if (!tea_util_1.default.isUnset($tea.toMap(request.interconnectConfig))) {
8999
+ if (!tea_util_1.default.isUnset(request.interconnectConfig)) {
8245
9000
  body["interconnect_config"] = request.interconnectConfig;
8246
9001
  }
8247
9002
  if (!tea_util_1.default.isUnset(request.interconnectMode)) {
8248
9003
  body["interconnect_mode"] = request.interconnectMode;
8249
9004
  }
8250
- if (!tea_util_1.default.isUnset($tea.toMap(request.kubernetesConfig))) {
9005
+ if (!tea_util_1.default.isUnset(request.kubernetesConfig)) {
8251
9006
  body["kubernetes_config"] = request.kubernetesConfig;
8252
9007
  }
8253
- if (!tea_util_1.default.isUnset($tea.toMap(request.management))) {
9008
+ if (!tea_util_1.default.isUnset(request.management)) {
8254
9009
  body["management"] = request.management;
8255
9010
  }
8256
9011
  if (!tea_util_1.default.isUnset(request.maxNodes)) {
8257
9012
  body["max_nodes"] = request.maxNodes;
8258
9013
  }
8259
- if (!tea_util_1.default.isUnset($tea.toMap(request.nodepoolInfo))) {
9014
+ if (!tea_util_1.default.isUnset(request.nodepoolInfo)) {
8260
9015
  body["nodepool_info"] = request.nodepoolInfo;
8261
9016
  }
8262
- if (!tea_util_1.default.isUnset($tea.toMap(request.scalingGroup))) {
9017
+ if (!tea_util_1.default.isUnset(request.scalingGroup)) {
8263
9018
  body["scaling_group"] = request.scalingGroup;
8264
9019
  }
8265
- if (!tea_util_1.default.isUnset($tea.toMap(request.teeConfig))) {
9020
+ if (!tea_util_1.default.isUnset(request.teeConfig)) {
8266
9021
  body["tee_config"] = request.teeConfig;
8267
9022
  }
8268
9023
  let req = new $OpenApi.OpenApiRequest({
@@ -8282,10 +9037,10 @@ class Client extends openapi_client_1.default {
8282
9037
  });
8283
9038
  return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
8284
9039
  }
8285
- async createEdgeMachine(request) {
9040
+ async createClusterNodePool(ClusterId, request) {
8286
9041
  let runtime = new $Util.RuntimeOptions({});
8287
9042
  let headers = {};
8288
- return await this.createEdgeMachineWithOptions(request, headers, runtime);
9043
+ return await this.createClusterNodePoolWithOptions(ClusterId, request, headers, runtime);
8289
9044
  }
8290
9045
  async createEdgeMachineWithOptions(request, headers, runtime) {
8291
9046
  tea_util_1.default.validateModel(request);
@@ -8316,10 +9071,10 @@ class Client extends openapi_client_1.default {
8316
9071
  });
8317
9072
  return $tea.cast(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
8318
9073
  }
8319
- async createKubernetesTrigger(request) {
9074
+ async createEdgeMachine(request) {
8320
9075
  let runtime = new $Util.RuntimeOptions({});
8321
9076
  let headers = {};
8322
- return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
9077
+ return await this.createEdgeMachineWithOptions(request, headers, runtime);
8323
9078
  }
8324
9079
  async createKubernetesTriggerWithOptions(request, headers, runtime) {
8325
9080
  tea_util_1.default.validateModel(request);
@@ -8353,10 +9108,10 @@ class Client extends openapi_client_1.default {
8353
9108
  });
8354
9109
  return $tea.cast(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
8355
9110
  }
8356
- async createTemplate(request) {
9111
+ async createKubernetesTrigger(request) {
8357
9112
  let runtime = new $Util.RuntimeOptions({});
8358
9113
  let headers = {};
8359
- return await this.createTemplateWithOptions(request, headers, runtime);
9114
+ return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
8360
9115
  }
8361
9116
  async createTemplateWithOptions(request, headers, runtime) {
8362
9117
  tea_util_1.default.validateModel(request);
@@ -8393,10 +9148,10 @@ class Client extends openapi_client_1.default {
8393
9148
  });
8394
9149
  return $tea.cast(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
8395
9150
  }
8396
- async createTrigger(clusterId, request) {
9151
+ async createTemplate(request) {
8397
9152
  let runtime = new $Util.RuntimeOptions({});
8398
9153
  let headers = {};
8399
- return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
9154
+ return await this.createTemplateWithOptions(request, headers, runtime);
8400
9155
  }
8401
9156
  async createTriggerWithOptions(clusterId, request, headers, runtime) {
8402
9157
  tea_util_1.default.validateModel(request);
@@ -8430,10 +9185,10 @@ class Client extends openapi_client_1.default {
8430
9185
  });
8431
9186
  return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
8432
9187
  }
8433
- async deleteAlertContact() {
9188
+ async createTrigger(clusterId, request) {
8434
9189
  let runtime = new $Util.RuntimeOptions({});
8435
9190
  let headers = {};
8436
- return await this.deleteAlertContactWithOptions(headers, runtime);
9191
+ return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
8437
9192
  }
8438
9193
  async deleteAlertContactWithOptions(headers, runtime) {
8439
9194
  let req = new $OpenApi.OpenApiRequest({
@@ -8452,10 +9207,10 @@ class Client extends openapi_client_1.default {
8452
9207
  });
8453
9208
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
8454
9209
  }
8455
- async deleteAlertContactGroup() {
9210
+ async deleteAlertContact() {
8456
9211
  let runtime = new $Util.RuntimeOptions({});
8457
9212
  let headers = {};
8458
- return await this.deleteAlertContactGroupWithOptions(headers, runtime);
9213
+ return await this.deleteAlertContactWithOptions(headers, runtime);
8459
9214
  }
8460
9215
  async deleteAlertContactGroupWithOptions(headers, runtime) {
8461
9216
  let req = new $OpenApi.OpenApiRequest({
@@ -8474,10 +9229,10 @@ class Client extends openapi_client_1.default {
8474
9229
  });
8475
9230
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
8476
9231
  }
8477
- async deleteCluster(ClusterId, request) {
9232
+ async deleteAlertContactGroup() {
8478
9233
  let runtime = new $Util.RuntimeOptions({});
8479
9234
  let headers = {};
8480
- return await this.deleteClusterWithOptions(ClusterId, request, headers, runtime);
9235
+ return await this.deleteAlertContactGroupWithOptions(headers, runtime);
8481
9236
  }
8482
9237
  async deleteClusterWithOptions(ClusterId, tmpReq, headers, runtime) {
8483
9238
  tea_util_1.default.validateModel(tmpReq);
@@ -8509,14 +9264,14 @@ class Client extends openapi_client_1.default {
8509
9264
  authType: "AK",
8510
9265
  style: "ROA",
8511
9266
  reqBodyType: "json",
8512
- bodyType: "none",
9267
+ bodyType: "json",
8513
9268
  });
8514
9269
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
8515
9270
  }
8516
- async deleteClusterNodepool(ClusterId, NodepoolId, request) {
9271
+ async deleteCluster(ClusterId, request) {
8517
9272
  let runtime = new $Util.RuntimeOptions({});
8518
9273
  let headers = {};
8519
- return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
9274
+ return await this.deleteClusterWithOptions(ClusterId, request, headers, runtime);
8520
9275
  }
8521
9276
  async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
8522
9277
  tea_util_1.default.validateModel(request);
@@ -8541,11 +9296,23 @@ class Client extends openapi_client_1.default {
8541
9296
  });
8542
9297
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
8543
9298
  }
8544
- async deleteClusterNodes(ClusterId, request) {
9299
+ async deleteClusterNodepool(ClusterId, NodepoolId, request) {
8545
9300
  let runtime = new $Util.RuntimeOptions({});
8546
9301
  let headers = {};
8547
- return await this.deleteClusterNodesWithOptions(ClusterId, request, headers, runtime);
9302
+ return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
8548
9303
  }
9304
+ /**
9305
+ * >
9306
+ * * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
9307
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
9308
+ * * Nodes remain in the unschedulable state when they are being removed.
9309
+ * * You can remove only worker nodes by calling this operation.
9310
+ *
9311
+ * @param request DeleteClusterNodesRequest
9312
+ * @param headers map
9313
+ * @param runtime runtime options for this request RuntimeOptions
9314
+ * @return DeleteClusterNodesResponse
9315
+ */
8549
9316
  async deleteClusterNodesWithOptions(ClusterId, request, headers, runtime) {
8550
9317
  tea_util_1.default.validateModel(request);
8551
9318
  let body = {};
@@ -8575,10 +9342,20 @@ class Client extends openapi_client_1.default {
8575
9342
  });
8576
9343
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
8577
9344
  }
8578
- async deleteEdgeMachine(edgeMachineid, request) {
9345
+ /**
9346
+ * >
9347
+ * * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
9348
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
9349
+ * * Nodes remain in the unschedulable state when they are being removed.
9350
+ * * You can remove only worker nodes by calling this operation.
9351
+ *
9352
+ * @param request DeleteClusterNodesRequest
9353
+ * @return DeleteClusterNodesResponse
9354
+ */
9355
+ async deleteClusterNodes(ClusterId, request) {
8579
9356
  let runtime = new $Util.RuntimeOptions({});
8580
9357
  let headers = {};
8581
- return await this.deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime);
9358
+ return await this.deleteClusterNodesWithOptions(ClusterId, request, headers, runtime);
8582
9359
  }
8583
9360
  async deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime) {
8584
9361
  tea_util_1.default.validateModel(request);
@@ -8603,10 +9380,10 @@ class Client extends openapi_client_1.default {
8603
9380
  });
8604
9381
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
8605
9382
  }
8606
- async deleteKubernetesTrigger(Id) {
9383
+ async deleteEdgeMachine(edgeMachineid, request) {
8607
9384
  let runtime = new $Util.RuntimeOptions({});
8608
9385
  let headers = {};
8609
- return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
9386
+ return await this.deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime);
8610
9387
  }
8611
9388
  async deleteKubernetesTriggerWithOptions(Id, headers, runtime) {
8612
9389
  let req = new $OpenApi.OpenApiRequest({
@@ -8625,10 +9402,10 @@ class Client extends openapi_client_1.default {
8625
9402
  });
8626
9403
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
8627
9404
  }
8628
- async deletePolicyInstance(clusterId, policyName, request) {
9405
+ async deleteKubernetesTrigger(Id) {
8629
9406
  let runtime = new $Util.RuntimeOptions({});
8630
9407
  let headers = {};
8631
- return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
9408
+ return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
8632
9409
  }
8633
9410
  async deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
8634
9411
  tea_util_1.default.validateModel(request);
@@ -8653,10 +9430,10 @@ class Client extends openapi_client_1.default {
8653
9430
  });
8654
9431
  return $tea.cast(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
8655
9432
  }
8656
- async deleteTemplate(TemplateId) {
9433
+ async deletePolicyInstance(clusterId, policyName, request) {
8657
9434
  let runtime = new $Util.RuntimeOptions({});
8658
9435
  let headers = {};
8659
- return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
9436
+ return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
8660
9437
  }
8661
9438
  async deleteTemplateWithOptions(TemplateId, headers, runtime) {
8662
9439
  let req = new $OpenApi.OpenApiRequest({
@@ -8675,10 +9452,10 @@ class Client extends openapi_client_1.default {
8675
9452
  });
8676
9453
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
8677
9454
  }
8678
- async deleteTrigger(clusterId, Id) {
9455
+ async deleteTemplate(TemplateId) {
8679
9456
  let runtime = new $Util.RuntimeOptions({});
8680
9457
  let headers = {};
8681
- return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
9458
+ return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
8682
9459
  }
8683
9460
  async deleteTriggerWithOptions(clusterId, Id, headers, runtime) {
8684
9461
  let req = new $OpenApi.OpenApiRequest({
@@ -8697,10 +9474,10 @@ class Client extends openapi_client_1.default {
8697
9474
  });
8698
9475
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
8699
9476
  }
8700
- async deployPolicyInstance(clusterId, policyName, request) {
9477
+ async deleteTrigger(clusterId, Id) {
8701
9478
  let runtime = new $Util.RuntimeOptions({});
8702
9479
  let headers = {};
8703
- return await this.deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
9480
+ return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
8704
9481
  }
8705
9482
  async deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
8706
9483
  tea_util_1.default.validateModel(request);
@@ -8731,10 +9508,10 @@ class Client extends openapi_client_1.default {
8731
9508
  });
8732
9509
  return $tea.cast(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
8733
9510
  }
8734
- async descirbeWorkflow(workflowName) {
9511
+ async deployPolicyInstance(clusterId, policyName, request) {
8735
9512
  let runtime = new $Util.RuntimeOptions({});
8736
9513
  let headers = {};
8737
- return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
9514
+ return await this.deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
8738
9515
  }
8739
9516
  async descirbeWorkflowWithOptions(workflowName, headers, runtime) {
8740
9517
  let req = new $OpenApi.OpenApiRequest({
@@ -8753,17 +9530,26 @@ class Client extends openapi_client_1.default {
8753
9530
  });
8754
9531
  return $tea.cast(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
8755
9532
  }
8756
- async describeAddons(request) {
9533
+ async descirbeWorkflow(workflowName) {
8757
9534
  let runtime = new $Util.RuntimeOptions({});
8758
9535
  let headers = {};
8759
- return await this.describeAddonsWithOptions(request, headers, runtime);
9536
+ return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
8760
9537
  }
8761
9538
  async describeAddonsWithOptions(request, headers, runtime) {
8762
9539
  tea_util_1.default.validateModel(request);
8763
9540
  let query = {};
9541
+ if (!tea_util_1.default.isUnset(request.clusterProfile)) {
9542
+ query["cluster_profile"] = request.clusterProfile;
9543
+ }
9544
+ if (!tea_util_1.default.isUnset(request.clusterSpec)) {
9545
+ query["cluster_spec"] = request.clusterSpec;
9546
+ }
8764
9547
  if (!tea_util_1.default.isUnset(request.clusterType)) {
8765
9548
  query["cluster_type"] = request.clusterType;
8766
9549
  }
9550
+ if (!tea_util_1.default.isUnset(request.clusterVersion)) {
9551
+ query["cluster_version"] = request.clusterVersion;
9552
+ }
8767
9553
  if (!tea_util_1.default.isUnset(request.region)) {
8768
9554
  query["region"] = request.region;
8769
9555
  }
@@ -8784,10 +9570,32 @@ class Client extends openapi_client_1.default {
8784
9570
  });
8785
9571
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
8786
9572
  }
8787
- async describeClusterAddonMetadata(clusterId, componentId, version) {
9573
+ async describeAddons(request) {
8788
9574
  let runtime = new $Util.RuntimeOptions({});
8789
9575
  let headers = {};
8790
- return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
9576
+ return await this.describeAddonsWithOptions(request, headers, runtime);
9577
+ }
9578
+ async describeClusterAddonInstanceWithOptions(ClusterID, AddonName, headers, runtime) {
9579
+ let req = new $OpenApi.OpenApiRequest({
9580
+ headers: headers,
9581
+ });
9582
+ let params = new $OpenApi.Params({
9583
+ action: "DescribeClusterAddonInstance",
9584
+ version: "2015-12-15",
9585
+ protocol: "HTTPS",
9586
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterID)}/components/${openapi_util_1.default.getEncodeParam(AddonName)}/instance`,
9587
+ method: "GET",
9588
+ authType: "AK",
9589
+ style: "ROA",
9590
+ reqBodyType: "json",
9591
+ bodyType: "json",
9592
+ });
9593
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonInstanceResponse({}));
9594
+ }
9595
+ async describeClusterAddonInstance(ClusterID, AddonName) {
9596
+ let runtime = new $Util.RuntimeOptions({});
9597
+ let headers = {};
9598
+ return await this.describeClusterAddonInstanceWithOptions(ClusterID, AddonName, headers, runtime);
8791
9599
  }
8792
9600
  async describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime) {
8793
9601
  let req = new $OpenApi.OpenApiRequest({
@@ -8806,11 +9614,19 @@ class Client extends openapi_client_1.default {
8806
9614
  });
8807
9615
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
8808
9616
  }
8809
- async describeClusterAddonUpgradeStatus(ClusterId, ComponentId) {
9617
+ async describeClusterAddonMetadata(clusterId, componentId, version) {
8810
9618
  let runtime = new $Util.RuntimeOptions({});
8811
9619
  let headers = {};
8812
- return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
9620
+ return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
8813
9621
  }
9622
+ /**
9623
+ * @deprecated
9624
+ *
9625
+ * @param headers map
9626
+ * @param runtime runtime options for this request RuntimeOptions
9627
+ * @return DescribeClusterAddonUpgradeStatusResponse
9628
+ */
9629
+ // Deprecated
8814
9630
  async describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime) {
8815
9631
  let req = new $OpenApi.OpenApiRequest({
8816
9632
  headers: headers,
@@ -8828,10 +9644,16 @@ class Client extends openapi_client_1.default {
8828
9644
  });
8829
9645
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
8830
9646
  }
8831
- async describeClusterAddonsUpgradeStatus(ClusterId, request) {
9647
+ /**
9648
+ * @deprecated
9649
+ *
9650
+ * @return DescribeClusterAddonUpgradeStatusResponse
9651
+ */
9652
+ // Deprecated
9653
+ async describeClusterAddonUpgradeStatus(ClusterId, ComponentId) {
8832
9654
  let runtime = new $Util.RuntimeOptions({});
8833
9655
  let headers = {};
8834
- return await this.describeClusterAddonsUpgradeStatusWithOptions(ClusterId, request, headers, runtime);
9656
+ return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
8835
9657
  }
8836
9658
  async describeClusterAddonsUpgradeStatusWithOptions(ClusterId, tmpReq, headers, runtime) {
8837
9659
  tea_util_1.default.validateModel(tmpReq);
@@ -8861,10 +9683,10 @@ class Client extends openapi_client_1.default {
8861
9683
  });
8862
9684
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
8863
9685
  }
8864
- async describeClusterAddonsVersion(ClusterId) {
9686
+ async describeClusterAddonsUpgradeStatus(ClusterId, request) {
8865
9687
  let runtime = new $Util.RuntimeOptions({});
8866
9688
  let headers = {};
8867
- return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
9689
+ return await this.describeClusterAddonsUpgradeStatusWithOptions(ClusterId, request, headers, runtime);
8868
9690
  }
8869
9691
  async describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime) {
8870
9692
  let req = new $OpenApi.OpenApiRequest({
@@ -8883,10 +9705,10 @@ class Client extends openapi_client_1.default {
8883
9705
  });
8884
9706
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
8885
9707
  }
8886
- async describeClusterAttachScripts(ClusterId, request) {
9708
+ async describeClusterAddonsVersion(ClusterId) {
8887
9709
  let runtime = new $Util.RuntimeOptions({});
8888
9710
  let headers = {};
8889
- return await this.describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime);
9711
+ return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
8890
9712
  }
8891
9713
  async describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime) {
8892
9714
  tea_util_1.default.validateModel(request);
@@ -8926,10 +9748,10 @@ class Client extends openapi_client_1.default {
8926
9748
  });
8927
9749
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
8928
9750
  }
8929
- async describeClusterDetail(ClusterId) {
9751
+ async describeClusterAttachScripts(ClusterId, request) {
8930
9752
  let runtime = new $Util.RuntimeOptions({});
8931
9753
  let headers = {};
8932
- return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
9754
+ return await this.describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime);
8933
9755
  }
8934
9756
  async describeClusterDetailWithOptions(ClusterId, headers, runtime) {
8935
9757
  let req = new $OpenApi.OpenApiRequest({
@@ -8948,10 +9770,10 @@ class Client extends openapi_client_1.default {
8948
9770
  });
8949
9771
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
8950
9772
  }
8951
- async describeClusterEvents(ClusterId, request) {
9773
+ async describeClusterDetail(ClusterId) {
8952
9774
  let runtime = new $Util.RuntimeOptions({});
8953
9775
  let headers = {};
8954
- return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
9776
+ return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
8955
9777
  }
8956
9778
  async describeClusterEventsWithOptions(ClusterId, request, headers, runtime) {
8957
9779
  tea_util_1.default.validateModel(request);
@@ -8982,10 +9804,10 @@ class Client extends openapi_client_1.default {
8982
9804
  });
8983
9805
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
8984
9806
  }
8985
- async describeClusterLogs(ClusterId) {
9807
+ async describeClusterEvents(ClusterId, request) {
8986
9808
  let runtime = new $Util.RuntimeOptions({});
8987
9809
  let headers = {};
8988
- return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
9810
+ return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
8989
9811
  }
8990
9812
  async describeClusterLogsWithOptions(ClusterId, headers, runtime) {
8991
9813
  let req = new $OpenApi.OpenApiRequest({
@@ -9004,10 +9826,10 @@ class Client extends openapi_client_1.default {
9004
9826
  });
9005
9827
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
9006
9828
  }
9007
- async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
9829
+ async describeClusterLogs(ClusterId) {
9008
9830
  let runtime = new $Util.RuntimeOptions({});
9009
9831
  let headers = {};
9010
- return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
9832
+ return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
9011
9833
  }
9012
9834
  async describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime) {
9013
9835
  let req = new $OpenApi.OpenApiRequest({
@@ -9026,10 +9848,10 @@ class Client extends openapi_client_1.default {
9026
9848
  });
9027
9849
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
9028
9850
  }
9029
- async describeClusterNodePools(ClusterId) {
9851
+ async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
9030
9852
  let runtime = new $Util.RuntimeOptions({});
9031
9853
  let headers = {};
9032
- return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
9854
+ return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
9033
9855
  }
9034
9856
  async describeClusterNodePoolsWithOptions(ClusterId, headers, runtime) {
9035
9857
  let req = new $OpenApi.OpenApiRequest({
@@ -9048,10 +9870,10 @@ class Client extends openapi_client_1.default {
9048
9870
  });
9049
9871
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
9050
9872
  }
9051
- async describeClusterNodes(ClusterId, request) {
9873
+ async describeClusterNodePools(ClusterId) {
9052
9874
  let runtime = new $Util.RuntimeOptions({});
9053
9875
  let headers = {};
9054
- return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
9876
+ return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
9055
9877
  }
9056
9878
  async describeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
9057
9879
  tea_util_1.default.validateModel(request);
@@ -9088,10 +9910,10 @@ class Client extends openapi_client_1.default {
9088
9910
  });
9089
9911
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
9090
9912
  }
9091
- async describeClusterResources(ClusterId) {
9913
+ async describeClusterNodes(ClusterId, request) {
9092
9914
  let runtime = new $Util.RuntimeOptions({});
9093
9915
  let headers = {};
9094
- return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
9916
+ return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
9095
9917
  }
9096
9918
  async describeClusterResourcesWithOptions(ClusterId, headers, runtime) {
9097
9919
  let req = new $OpenApi.OpenApiRequest({
@@ -9110,10 +9932,10 @@ class Client extends openapi_client_1.default {
9110
9932
  });
9111
9933
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
9112
9934
  }
9113
- async describeClusterTasks(clusterId) {
9935
+ async describeClusterResources(ClusterId) {
9114
9936
  let runtime = new $Util.RuntimeOptions({});
9115
9937
  let headers = {};
9116
- return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
9938
+ return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
9117
9939
  }
9118
9940
  async describeClusterTasksWithOptions(clusterId, headers, runtime) {
9119
9941
  let req = new $OpenApi.OpenApiRequest({
@@ -9132,10 +9954,10 @@ class Client extends openapi_client_1.default {
9132
9954
  });
9133
9955
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
9134
9956
  }
9135
- async describeClusterUserKubeconfig(ClusterId, request) {
9957
+ async describeClusterTasks(clusterId) {
9136
9958
  let runtime = new $Util.RuntimeOptions({});
9137
9959
  let headers = {};
9138
- return await this.describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime);
9960
+ return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
9139
9961
  }
9140
9962
  async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
9141
9963
  tea_util_1.default.validateModel(request);
@@ -9163,11 +9985,20 @@ class Client extends openapi_client_1.default {
9163
9985
  });
9164
9986
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
9165
9987
  }
9166
- async describeClusterV2UserKubeconfig(ClusterId, request) {
9988
+ async describeClusterUserKubeconfig(ClusterId, request) {
9167
9989
  let runtime = new $Util.RuntimeOptions({});
9168
9990
  let headers = {};
9169
- return await this.describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime);
9991
+ return await this.describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime);
9170
9992
  }
9993
+ /**
9994
+ * @deprecated
9995
+ *
9996
+ * @param request DescribeClusterV2UserKubeconfigRequest
9997
+ * @param headers map
9998
+ * @param runtime runtime options for this request RuntimeOptions
9999
+ * @return DescribeClusterV2UserKubeconfigResponse
10000
+ */
10001
+ // Deprecated
9171
10002
  async describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
9172
10003
  tea_util_1.default.validateModel(request);
9173
10004
  let query = {};
@@ -9191,11 +10022,49 @@ class Client extends openapi_client_1.default {
9191
10022
  });
9192
10023
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
9193
10024
  }
9194
- async describeClusters(request) {
10025
+ /**
10026
+ * @deprecated
10027
+ *
10028
+ * @param request DescribeClusterV2UserKubeconfigRequest
10029
+ * @return DescribeClusterV2UserKubeconfigResponse
10030
+ */
10031
+ // Deprecated
10032
+ async describeClusterV2UserKubeconfig(ClusterId, request) {
9195
10033
  let runtime = new $Util.RuntimeOptions({});
9196
10034
  let headers = {};
9197
- return await this.describeClustersWithOptions(request, headers, runtime);
10035
+ return await this.describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime);
10036
+ }
10037
+ async describeClusterVulsWithOptions(clusterId, headers, runtime) {
10038
+ let req = new $OpenApi.OpenApiRequest({
10039
+ headers: headers,
10040
+ });
10041
+ let params = new $OpenApi.Params({
10042
+ action: "DescribeClusterVuls",
10043
+ version: "2015-12-15",
10044
+ protocol: "HTTPS",
10045
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/vuls`,
10046
+ method: "GET",
10047
+ authType: "AK",
10048
+ style: "ROA",
10049
+ reqBodyType: "json",
10050
+ bodyType: "json",
10051
+ });
10052
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterVulsResponse({}));
9198
10053
  }
10054
+ async describeClusterVuls(clusterId) {
10055
+ let runtime = new $Util.RuntimeOptions({});
10056
+ let headers = {};
10057
+ return await this.describeClusterVulsWithOptions(clusterId, headers, runtime);
10058
+ }
10059
+ /**
10060
+ * @deprecated
10061
+ *
10062
+ * @param request DescribeClustersRequest
10063
+ * @param headers map
10064
+ * @param runtime runtime options for this request RuntimeOptions
10065
+ * @return DescribeClustersResponse
10066
+ */
10067
+ // Deprecated
9199
10068
  async describeClustersWithOptions(request, headers, runtime) {
9200
10069
  tea_util_1.default.validateModel(request);
9201
10070
  let query = {};
@@ -9222,10 +10091,17 @@ class Client extends openapi_client_1.default {
9222
10091
  });
9223
10092
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
9224
10093
  }
9225
- async describeClustersV1(request) {
10094
+ /**
10095
+ * @deprecated
10096
+ *
10097
+ * @param request DescribeClustersRequest
10098
+ * @return DescribeClustersResponse
10099
+ */
10100
+ // Deprecated
10101
+ async describeClusters(request) {
9226
10102
  let runtime = new $Util.RuntimeOptions({});
9227
10103
  let headers = {};
9228
- return await this.describeClustersV1WithOptions(request, headers, runtime);
10104
+ return await this.describeClustersWithOptions(request, headers, runtime);
9229
10105
  }
9230
10106
  async describeClustersV1WithOptions(request, headers, runtime) {
9231
10107
  tea_util_1.default.validateModel(request);
@@ -9268,10 +10144,10 @@ class Client extends openapi_client_1.default {
9268
10144
  });
9269
10145
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
9270
10146
  }
9271
- async describeEdgeMachineActiveProcess(edgeMachineid) {
10147
+ async describeClustersV1(request) {
9272
10148
  let runtime = new $Util.RuntimeOptions({});
9273
10149
  let headers = {};
9274
- return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
10150
+ return await this.describeClustersV1WithOptions(request, headers, runtime);
9275
10151
  }
9276
10152
  async describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime) {
9277
10153
  let req = new $OpenApi.OpenApiRequest({
@@ -9290,10 +10166,10 @@ class Client extends openapi_client_1.default {
9290
10166
  });
9291
10167
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
9292
10168
  }
9293
- async describeEdgeMachineModels() {
10169
+ async describeEdgeMachineActiveProcess(edgeMachineid) {
9294
10170
  let runtime = new $Util.RuntimeOptions({});
9295
10171
  let headers = {};
9296
- return await this.describeEdgeMachineModelsWithOptions(headers, runtime);
10172
+ return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
9297
10173
  }
9298
10174
  async describeEdgeMachineModelsWithOptions(headers, runtime) {
9299
10175
  let req = new $OpenApi.OpenApiRequest({
@@ -9312,10 +10188,10 @@ class Client extends openapi_client_1.default {
9312
10188
  });
9313
10189
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
9314
10190
  }
9315
- async describeEdgeMachineTunnelConfigDetail(edgeMachineid) {
10191
+ async describeEdgeMachineModels() {
9316
10192
  let runtime = new $Util.RuntimeOptions({});
9317
10193
  let headers = {};
9318
- return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
10194
+ return await this.describeEdgeMachineModelsWithOptions(headers, runtime);
9319
10195
  }
9320
10196
  async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime) {
9321
10197
  let req = new $OpenApi.OpenApiRequest({
@@ -9334,10 +10210,10 @@ class Client extends openapi_client_1.default {
9334
10210
  });
9335
10211
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
9336
10212
  }
9337
- async describeEdgeMachines(request) {
10213
+ async describeEdgeMachineTunnelConfigDetail(edgeMachineid) {
9338
10214
  let runtime = new $Util.RuntimeOptions({});
9339
10215
  let headers = {};
9340
- return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
10216
+ return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
9341
10217
  }
9342
10218
  async describeEdgeMachinesWithOptions(request, headers, runtime) {
9343
10219
  tea_util_1.default.validateModel(request);
@@ -9377,10 +10253,10 @@ class Client extends openapi_client_1.default {
9377
10253
  });
9378
10254
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
9379
10255
  }
9380
- async describeEvents(request) {
10256
+ async describeEdgeMachines(request) {
9381
10257
  let runtime = new $Util.RuntimeOptions({});
9382
10258
  let headers = {};
9383
- return await this.describeEventsWithOptions(request, headers, runtime);
10259
+ return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
9384
10260
  }
9385
10261
  async describeEventsWithOptions(request, headers, runtime) {
9386
10262
  tea_util_1.default.validateModel(request);
@@ -9414,11 +10290,19 @@ class Client extends openapi_client_1.default {
9414
10290
  });
9415
10291
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
9416
10292
  }
9417
- async describeExternalAgent(ClusterId, request) {
10293
+ async describeEvents(request) {
9418
10294
  let runtime = new $Util.RuntimeOptions({});
9419
10295
  let headers = {};
9420
- return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
10296
+ return await this.describeEventsWithOptions(request, headers, runtime);
9421
10297
  }
10298
+ /**
10299
+ * For more information, see [Register an external Kubernetes cluster](~~121053~~).
10300
+ *
10301
+ * @param request DescribeExternalAgentRequest
10302
+ * @param headers map
10303
+ * @param runtime runtime options for this request RuntimeOptions
10304
+ * @return DescribeExternalAgentResponse
10305
+ */
9422
10306
  async describeExternalAgentWithOptions(ClusterId, request, headers, runtime) {
9423
10307
  tea_util_1.default.validateModel(request);
9424
10308
  let query = {};
@@ -9442,10 +10326,16 @@ class Client extends openapi_client_1.default {
9442
10326
  });
9443
10327
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
9444
10328
  }
9445
- async describeKubernetesVersionMetadata(request) {
10329
+ /**
10330
+ * For more information, see [Register an external Kubernetes cluster](~~121053~~).
10331
+ *
10332
+ * @param request DescribeExternalAgentRequest
10333
+ * @return DescribeExternalAgentResponse
10334
+ */
10335
+ async describeExternalAgent(ClusterId, request) {
9446
10336
  let runtime = new $Util.RuntimeOptions({});
9447
10337
  let headers = {};
9448
- return await this.describeKubernetesVersionMetadataWithOptions(request, headers, runtime);
10338
+ return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
9449
10339
  }
9450
10340
  async describeKubernetesVersionMetadataWithOptions(request, headers, runtime) {
9451
10341
  tea_util_1.default.validateModel(request);
@@ -9456,6 +10346,9 @@ class Client extends openapi_client_1.default {
9456
10346
  if (!tea_util_1.default.isUnset(request.kubernetesVersion)) {
9457
10347
  query["KubernetesVersion"] = request.kubernetesVersion;
9458
10348
  }
10349
+ if (!tea_util_1.default.isUnset(request.mode)) {
10350
+ query["Mode"] = request.mode;
10351
+ }
9459
10352
  if (!tea_util_1.default.isUnset(request.profile)) {
9460
10353
  query["Profile"] = request.profile;
9461
10354
  }
@@ -9482,14 +10375,20 @@ class Client extends openapi_client_1.default {
9482
10375
  });
9483
10376
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
9484
10377
  }
9485
- async describeNodePoolVuls(clusterId, nodepoolId) {
10378
+ async describeKubernetesVersionMetadata(request) {
9486
10379
  let runtime = new $Util.RuntimeOptions({});
9487
10380
  let headers = {};
9488
- return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime);
10381
+ return await this.describeKubernetesVersionMetadataWithOptions(request, headers, runtime);
9489
10382
  }
9490
- async describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime) {
10383
+ async describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
10384
+ tea_util_1.default.validateModel(request);
10385
+ let query = {};
10386
+ if (!tea_util_1.default.isUnset(request.necessity)) {
10387
+ query["necessity"] = request.necessity;
10388
+ }
9491
10389
  let req = new $OpenApi.OpenApiRequest({
9492
10390
  headers: headers,
10391
+ query: openapi_util_1.default.query(query),
9493
10392
  });
9494
10393
  let params = new $OpenApi.Params({
9495
10394
  action: "DescribeNodePoolVuls",
@@ -9504,10 +10403,10 @@ class Client extends openapi_client_1.default {
9504
10403
  });
9505
10404
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeNodePoolVulsResponse({}));
9506
10405
  }
9507
- async describePolicies() {
10406
+ async describeNodePoolVuls(clusterId, nodepoolId, request) {
9508
10407
  let runtime = new $Util.RuntimeOptions({});
9509
10408
  let headers = {};
9510
- return await this.describePoliciesWithOptions(headers, runtime);
10409
+ return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
9511
10410
  }
9512
10411
  async describePoliciesWithOptions(headers, runtime) {
9513
10412
  let req = new $OpenApi.OpenApiRequest({
@@ -9526,10 +10425,10 @@ class Client extends openapi_client_1.default {
9526
10425
  });
9527
10426
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
9528
10427
  }
9529
- async describePolicyDetails(policyName) {
10428
+ async describePolicies() {
9530
10429
  let runtime = new $Util.RuntimeOptions({});
9531
10430
  let headers = {};
9532
- return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
10431
+ return await this.describePoliciesWithOptions(headers, runtime);
9533
10432
  }
9534
10433
  async describePolicyDetailsWithOptions(policyName, headers, runtime) {
9535
10434
  let req = new $OpenApi.OpenApiRequest({
@@ -9548,10 +10447,10 @@ class Client extends openapi_client_1.default {
9548
10447
  });
9549
10448
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
9550
10449
  }
9551
- async describePolicyGovernanceInCluster(clusterId) {
10450
+ async describePolicyDetails(policyName) {
9552
10451
  let runtime = new $Util.RuntimeOptions({});
9553
10452
  let headers = {};
9554
- return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
10453
+ return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
9555
10454
  }
9556
10455
  async describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime) {
9557
10456
  let req = new $OpenApi.OpenApiRequest({
@@ -9570,10 +10469,10 @@ class Client extends openapi_client_1.default {
9570
10469
  });
9571
10470
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
9572
10471
  }
9573
- async describePolicyInstances(clusterId, request) {
10472
+ async describePolicyGovernanceInCluster(clusterId) {
9574
10473
  let runtime = new $Util.RuntimeOptions({});
9575
10474
  let headers = {};
9576
- return await this.describePolicyInstancesWithOptions(clusterId, request, headers, runtime);
10475
+ return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
9577
10476
  }
9578
10477
  async describePolicyInstancesWithOptions(clusterId, request, headers, runtime) {
9579
10478
  tea_util_1.default.validateModel(request);
@@ -9601,10 +10500,10 @@ class Client extends openapi_client_1.default {
9601
10500
  });
9602
10501
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
9603
10502
  }
9604
- async describePolicyInstancesStatus(clusterId) {
10503
+ async describePolicyInstances(clusterId, request) {
9605
10504
  let runtime = new $Util.RuntimeOptions({});
9606
10505
  let headers = {};
9607
- return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
10506
+ return await this.describePolicyInstancesWithOptions(clusterId, request, headers, runtime);
9608
10507
  }
9609
10508
  async describePolicyInstancesStatusWithOptions(clusterId, headers, runtime) {
9610
10509
  let req = new $OpenApi.OpenApiRequest({
@@ -9623,10 +10522,55 @@ class Client extends openapi_client_1.default {
9623
10522
  });
9624
10523
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
9625
10524
  }
9626
- async describeTaskInfo(taskId) {
10525
+ async describePolicyInstancesStatus(clusterId) {
9627
10526
  let runtime = new $Util.RuntimeOptions({});
9628
10527
  let headers = {};
9629
- return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
10528
+ return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
10529
+ }
10530
+ /**
10531
+ * > You can call this operation only with an Alibaba Cloud account.
10532
+ *
10533
+ * @param request DescribeSubaccountK8sClusterUserConfigRequest
10534
+ * @param headers map
10535
+ * @param runtime runtime options for this request RuntimeOptions
10536
+ * @return DescribeSubaccountK8sClusterUserConfigResponse
10537
+ */
10538
+ async describeSubaccountK8sClusterUserConfigWithOptions(ClusterId, Uid, request, headers, runtime) {
10539
+ tea_util_1.default.validateModel(request);
10540
+ let query = {};
10541
+ if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
10542
+ query["PrivateIpAddress"] = request.privateIpAddress;
10543
+ }
10544
+ if (!tea_util_1.default.isUnset(request.temporaryDurationMinutes)) {
10545
+ query["TemporaryDurationMinutes"] = request.temporaryDurationMinutes;
10546
+ }
10547
+ let req = new $OpenApi.OpenApiRequest({
10548
+ headers: headers,
10549
+ query: openapi_util_1.default.query(query),
10550
+ });
10551
+ let params = new $OpenApi.Params({
10552
+ action: "DescribeSubaccountK8sClusterUserConfig",
10553
+ version: "2015-12-15",
10554
+ protocol: "HTTPS",
10555
+ pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/users/${openapi_util_1.default.getEncodeParam(Uid)}/user_config`,
10556
+ method: "GET",
10557
+ authType: "AK",
10558
+ style: "ROA",
10559
+ reqBodyType: "json",
10560
+ bodyType: "json",
10561
+ });
10562
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeSubaccountK8sClusterUserConfigResponse({}));
10563
+ }
10564
+ /**
10565
+ * > You can call this operation only with an Alibaba Cloud account.
10566
+ *
10567
+ * @param request DescribeSubaccountK8sClusterUserConfigRequest
10568
+ * @return DescribeSubaccountK8sClusterUserConfigResponse
10569
+ */
10570
+ async describeSubaccountK8sClusterUserConfig(ClusterId, Uid, request) {
10571
+ let runtime = new $Util.RuntimeOptions({});
10572
+ let headers = {};
10573
+ return await this.describeSubaccountK8sClusterUserConfigWithOptions(ClusterId, Uid, request, headers, runtime);
9630
10574
  }
9631
10575
  async describeTaskInfoWithOptions(taskId, headers, runtime) {
9632
10576
  let req = new $OpenApi.OpenApiRequest({
@@ -9645,10 +10589,10 @@ class Client extends openapi_client_1.default {
9645
10589
  });
9646
10590
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
9647
10591
  }
9648
- async describeTemplateAttribute(TemplateId, request) {
10592
+ async describeTaskInfo(taskId) {
9649
10593
  let runtime = new $Util.RuntimeOptions({});
9650
10594
  let headers = {};
9651
- return await this.describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime);
10595
+ return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
9652
10596
  }
9653
10597
  async describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime) {
9654
10598
  tea_util_1.default.validateModel(request);
@@ -9673,10 +10617,10 @@ class Client extends openapi_client_1.default {
9673
10617
  });
9674
10618
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
9675
10619
  }
9676
- async describeTemplates(request) {
10620
+ async describeTemplateAttribute(TemplateId, request) {
9677
10621
  let runtime = new $Util.RuntimeOptions({});
9678
10622
  let headers = {};
9679
- return await this.describeTemplatesWithOptions(request, headers, runtime);
10623
+ return await this.describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime);
9680
10624
  }
9681
10625
  async describeTemplatesWithOptions(request, headers, runtime) {
9682
10626
  tea_util_1.default.validateModel(request);
@@ -9707,10 +10651,10 @@ class Client extends openapi_client_1.default {
9707
10651
  });
9708
10652
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
9709
10653
  }
9710
- async describeTrigger(clusterId, request) {
10654
+ async describeTemplates(request) {
9711
10655
  let runtime = new $Util.RuntimeOptions({});
9712
10656
  let headers = {};
9713
- return await this.describeTriggerWithOptions(clusterId, request, headers, runtime);
10657
+ return await this.describeTemplatesWithOptions(request, headers, runtime);
9714
10658
  }
9715
10659
  async describeTriggerWithOptions(clusterId, request, headers, runtime) {
9716
10660
  tea_util_1.default.validateModel(request);
@@ -9735,7 +10679,7 @@ class Client extends openapi_client_1.default {
9735
10679
  action: "DescribeTrigger",
9736
10680
  version: "2015-12-15",
9737
10681
  protocol: "HTTPS",
9738
- pathname: `/clusters/%5Bcluster_id%5D/triggers`,
10682
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/triggers`,
9739
10683
  method: "GET",
9740
10684
  authType: "AK",
9741
10685
  style: "ROA",
@@ -9744,10 +10688,32 @@ class Client extends openapi_client_1.default {
9744
10688
  });
9745
10689
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
9746
10690
  }
9747
- async describeUserPermission(uid) {
10691
+ async describeTrigger(clusterId, request) {
9748
10692
  let runtime = new $Util.RuntimeOptions({});
9749
10693
  let headers = {};
9750
- return await this.describeUserPermissionWithOptions(uid, headers, runtime);
10694
+ return await this.describeTriggerWithOptions(clusterId, request, headers, runtime);
10695
+ }
10696
+ async describeUserClusterNamespacesWithOptions(ClusterId, headers, runtime) {
10697
+ let req = new $OpenApi.OpenApiRequest({
10698
+ headers: headers,
10699
+ });
10700
+ let params = new $OpenApi.Params({
10701
+ action: "DescribeUserClusterNamespaces",
10702
+ version: "2015-12-15",
10703
+ protocol: "HTTPS",
10704
+ pathname: `/api/v2/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/namespaces`,
10705
+ method: "GET",
10706
+ authType: "AK",
10707
+ style: "ROA",
10708
+ reqBodyType: "json",
10709
+ bodyType: "array",
10710
+ });
10711
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserClusterNamespacesResponse({}));
10712
+ }
10713
+ async describeUserClusterNamespaces(ClusterId) {
10714
+ let runtime = new $Util.RuntimeOptions({});
10715
+ let headers = {};
10716
+ return await this.describeUserClusterNamespacesWithOptions(ClusterId, headers, runtime);
9751
10717
  }
9752
10718
  async describeUserPermissionWithOptions(uid, headers, runtime) {
9753
10719
  let req = new $OpenApi.OpenApiRequest({
@@ -9766,10 +10732,10 @@ class Client extends openapi_client_1.default {
9766
10732
  });
9767
10733
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
9768
10734
  }
9769
- async describeUserQuota() {
10735
+ async describeUserPermission(uid) {
9770
10736
  let runtime = new $Util.RuntimeOptions({});
9771
10737
  let headers = {};
9772
- return await this.describeUserQuotaWithOptions(headers, runtime);
10738
+ return await this.describeUserPermissionWithOptions(uid, headers, runtime);
9773
10739
  }
9774
10740
  async describeUserQuotaWithOptions(headers, runtime) {
9775
10741
  let req = new $OpenApi.OpenApiRequest({
@@ -9788,10 +10754,10 @@ class Client extends openapi_client_1.default {
9788
10754
  });
9789
10755
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
9790
10756
  }
9791
- async describeWorkflows() {
10757
+ async describeUserQuota() {
9792
10758
  let runtime = new $Util.RuntimeOptions({});
9793
10759
  let headers = {};
9794
- return await this.describeWorkflowsWithOptions(headers, runtime);
10760
+ return await this.describeUserQuotaWithOptions(headers, runtime);
9795
10761
  }
9796
10762
  async describeWorkflowsWithOptions(headers, runtime) {
9797
10763
  let req = new $OpenApi.OpenApiRequest({
@@ -9810,10 +10776,10 @@ class Client extends openapi_client_1.default {
9810
10776
  });
9811
10777
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
9812
10778
  }
9813
- async edgeClusterAddEdgeMachine(clusterid, edgeMachineid, request) {
10779
+ async describeWorkflows() {
9814
10780
  let runtime = new $Util.RuntimeOptions({});
9815
10781
  let headers = {};
9816
- return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
10782
+ return await this.describeWorkflowsWithOptions(headers, runtime);
9817
10783
  }
9818
10784
  async edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime) {
9819
10785
  tea_util_1.default.validateModel(request);
@@ -9844,10 +10810,10 @@ class Client extends openapi_client_1.default {
9844
10810
  });
9845
10811
  return $tea.cast(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
9846
10812
  }
9847
- async fixNodePoolVuls(clusterId, nodepoolId, request) {
10813
+ async edgeClusterAddEdgeMachine(clusterid, edgeMachineid, request) {
9848
10814
  let runtime = new $Util.RuntimeOptions({});
9849
10815
  let headers = {};
9850
- return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
10816
+ return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
9851
10817
  }
9852
10818
  async fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
9853
10819
  tea_util_1.default.validateModel(request);
@@ -9855,11 +10821,11 @@ class Client extends openapi_client_1.default {
9855
10821
  if (!tea_util_1.default.isUnset(request.nodes)) {
9856
10822
  body["nodes"] = request.nodes;
9857
10823
  }
9858
- if (!tea_util_1.default.isUnset($tea.toMap(request.rolloutPolicy))) {
10824
+ if (!tea_util_1.default.isUnset(request.rolloutPolicy)) {
9859
10825
  body["rollout_policy"] = request.rolloutPolicy;
9860
10826
  }
9861
- if (!tea_util_1.default.isUnset(request.vulList)) {
9862
- body["vul_list"] = request.vulList;
10827
+ if (!tea_util_1.default.isUnset(request.vuls)) {
10828
+ body["vuls"] = request.vuls;
9863
10829
  }
9864
10830
  let req = new $OpenApi.OpenApiRequest({
9865
10831
  headers: headers,
@@ -9878,10 +10844,10 @@ class Client extends openapi_client_1.default {
9878
10844
  });
9879
10845
  return $tea.cast(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
9880
10846
  }
9881
- async getKubernetesTrigger(ClusterId, request) {
10847
+ async fixNodePoolVuls(clusterId, nodepoolId, request) {
9882
10848
  let runtime = new $Util.RuntimeOptions({});
9883
10849
  let headers = {};
9884
- return await this.getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime);
10850
+ return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
9885
10851
  }
9886
10852
  async getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime) {
9887
10853
  tea_util_1.default.validateModel(request);
@@ -9915,10 +10881,10 @@ class Client extends openapi_client_1.default {
9915
10881
  });
9916
10882
  return $tea.cast(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
9917
10883
  }
9918
- async getUpgradeStatus(ClusterId) {
10884
+ async getKubernetesTrigger(ClusterId, request) {
9919
10885
  let runtime = new $Util.RuntimeOptions({});
9920
10886
  let headers = {};
9921
- return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
10887
+ return await this.getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime);
9922
10888
  }
9923
10889
  async getUpgradeStatusWithOptions(ClusterId, headers, runtime) {
9924
10890
  let req = new $OpenApi.OpenApiRequest({
@@ -9937,11 +10903,23 @@ class Client extends openapi_client_1.default {
9937
10903
  });
9938
10904
  return $tea.cast(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
9939
10905
  }
9940
- async grantPermissions(uid, request) {
10906
+ async getUpgradeStatus(ClusterId) {
9941
10907
  let runtime = new $Util.RuntimeOptions({});
9942
10908
  let headers = {};
9943
- return await this.grantPermissionsWithOptions(uid, request, headers, runtime);
10909
+ return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
9944
10910
  }
10911
+ /**
10912
+ * **Precautions**:
10913
+ * * Make sure that you have granted the specified RAM user at least read permissions on the specified cluster by attaching RAM policies. Otherwise, the `ErrorRamPolicyConfig` error will be returned.
10914
+ * For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
10915
+ * * If you call this operation as a RAM user, make sure that this RAM user has the permissions to grant other RAM users the permissions to manage ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` errors will be returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
10916
+ * * This operation overwrites the permissions that have been granted to the specified RAM user. When you call this operation, make sure that the required permissions are included.
10917
+ *
10918
+ * @param request GrantPermissionsRequest
10919
+ * @param headers map
10920
+ * @param runtime runtime options for this request RuntimeOptions
10921
+ * @return GrantPermissionsResponse
10922
+ */
9945
10923
  async grantPermissionsWithOptions(uid, request, headers, runtime) {
9946
10924
  tea_util_1.default.validateModel(request);
9947
10925
  let req = new $OpenApi.OpenApiRequest({
@@ -9961,10 +10939,20 @@ class Client extends openapi_client_1.default {
9961
10939
  });
9962
10940
  return $tea.cast(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
9963
10941
  }
9964
- async installClusterAddons(ClusterId, request) {
10942
+ /**
10943
+ * **Precautions**:
10944
+ * * Make sure that you have granted the specified RAM user at least read permissions on the specified cluster by attaching RAM policies. Otherwise, the `ErrorRamPolicyConfig` error will be returned.
10945
+ * For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
10946
+ * * If you call this operation as a RAM user, make sure that this RAM user has the permissions to grant other RAM users the permissions to manage ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` errors will be returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
10947
+ * * This operation overwrites the permissions that have been granted to the specified RAM user. When you call this operation, make sure that the required permissions are included.
10948
+ *
10949
+ * @param request GrantPermissionsRequest
10950
+ * @return GrantPermissionsResponse
10951
+ */
10952
+ async grantPermissions(uid, request) {
9965
10953
  let runtime = new $Util.RuntimeOptions({});
9966
10954
  let headers = {};
9967
- return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
10955
+ return await this.grantPermissionsWithOptions(uid, request, headers, runtime);
9968
10956
  }
9969
10957
  async installClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
9970
10958
  tea_util_1.default.validateModel(request);
@@ -9985,10 +10973,10 @@ class Client extends openapi_client_1.default {
9985
10973
  });
9986
10974
  return $tea.cast(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
9987
10975
  }
9988
- async listTagResources(request) {
10976
+ async installClusterAddons(ClusterId, request) {
9989
10977
  let runtime = new $Util.RuntimeOptions({});
9990
10978
  let headers = {};
9991
- return await this.listTagResourcesWithOptions(request, headers, runtime);
10979
+ return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
9992
10980
  }
9993
10981
  async listTagResourcesWithOptions(tmpReq, headers, runtime) {
9994
10982
  tea_util_1.default.validateModel(tmpReq);
@@ -10033,10 +11021,10 @@ class Client extends openapi_client_1.default {
10033
11021
  });
10034
11022
  return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
10035
11023
  }
10036
- async migrateCluster(clusterId, request) {
11024
+ async listTagResources(request) {
10037
11025
  let runtime = new $Util.RuntimeOptions({});
10038
11026
  let headers = {};
10039
- return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
11027
+ return await this.listTagResourcesWithOptions(request, headers, runtime);
10040
11028
  }
10041
11029
  async migrateClusterWithOptions(clusterId, request, headers, runtime) {
10042
11030
  tea_util_1.default.validateModel(request);
@@ -10064,10 +11052,10 @@ class Client extends openapi_client_1.default {
10064
11052
  });
10065
11053
  return $tea.cast(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
10066
11054
  }
10067
- async modifyCluster(ClusterId, request) {
11055
+ async migrateCluster(clusterId, request) {
10068
11056
  let runtime = new $Util.RuntimeOptions({});
10069
11057
  let headers = {};
10070
- return await this.modifyClusterWithOptions(ClusterId, request, headers, runtime);
11058
+ return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
10071
11059
  }
10072
11060
  async modifyClusterWithOptions(ClusterId, request, headers, runtime) {
10073
11061
  tea_util_1.default.validateModel(request);
@@ -10093,7 +11081,7 @@ class Client extends openapi_client_1.default {
10093
11081
  if (!tea_util_1.default.isUnset(request.instanceDeletionProtection)) {
10094
11082
  body["instance_deletion_protection"] = request.instanceDeletionProtection;
10095
11083
  }
10096
- if (!tea_util_1.default.isUnset($tea.toMap(request.maintenanceWindow))) {
11084
+ if (!tea_util_1.default.isUnset(request.maintenanceWindow)) {
10097
11085
  body["maintenance_window"] = request.maintenanceWindow;
10098
11086
  }
10099
11087
  if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
@@ -10116,11 +11104,22 @@ class Client extends openapi_client_1.default {
10116
11104
  });
10117
11105
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
10118
11106
  }
10119
- async modifyClusterAddon(clusterId, componentId, request) {
11107
+ async modifyCluster(ClusterId, request) {
10120
11108
  let runtime = new $Util.RuntimeOptions({});
10121
11109
  let headers = {};
10122
- return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
11110
+ return await this.modifyClusterWithOptions(ClusterId, request, headers, runtime);
10123
11111
  }
11112
+ /**
11113
+ * You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
11114
+ * * To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
11115
+ * * For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
11116
+ * After you call this operation, the component may be redeployed and restarted. We recommend that you evaluate the impact before you call this operation.
11117
+ *
11118
+ * @param request ModifyClusterAddonRequest
11119
+ * @param headers map
11120
+ * @param runtime runtime options for this request RuntimeOptions
11121
+ * @return ModifyClusterAddonResponse
11122
+ */
10124
11123
  async modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime) {
10125
11124
  tea_util_1.default.validateModel(request);
10126
11125
  let body = {};
@@ -10144,10 +11143,19 @@ class Client extends openapi_client_1.default {
10144
11143
  });
10145
11144
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
10146
11145
  }
10147
- async modifyClusterConfiguration(ClusterId, request) {
11146
+ /**
11147
+ * You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
11148
+ * * To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
11149
+ * * For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
11150
+ * After you call this operation, the component may be redeployed and restarted. We recommend that you evaluate the impact before you call this operation.
11151
+ *
11152
+ * @param request ModifyClusterAddonRequest
11153
+ * @return ModifyClusterAddonResponse
11154
+ */
11155
+ async modifyClusterAddon(clusterId, componentId, request) {
10148
11156
  let runtime = new $Util.RuntimeOptions({});
10149
11157
  let headers = {};
10150
- return await this.modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime);
11158
+ return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
10151
11159
  }
10152
11160
  async modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime) {
10153
11161
  tea_util_1.default.validateModel(request);
@@ -10172,30 +11180,30 @@ class Client extends openapi_client_1.default {
10172
11180
  });
10173
11181
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
10174
11182
  }
10175
- async modifyClusterNodePool(ClusterId, NodepoolId, request) {
11183
+ async modifyClusterConfiguration(ClusterId, request) {
10176
11184
  let runtime = new $Util.RuntimeOptions({});
10177
11185
  let headers = {};
10178
- return await this.modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
11186
+ return await this.modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime);
10179
11187
  }
10180
11188
  async modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10181
11189
  tea_util_1.default.validateModel(request);
10182
11190
  let body = {};
10183
- if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
11191
+ if (!tea_util_1.default.isUnset(request.autoScaling)) {
10184
11192
  body["auto_scaling"] = request.autoScaling;
10185
11193
  }
10186
- if (!tea_util_1.default.isUnset($tea.toMap(request.kubernetesConfig))) {
11194
+ if (!tea_util_1.default.isUnset(request.kubernetesConfig)) {
10187
11195
  body["kubernetes_config"] = request.kubernetesConfig;
10188
11196
  }
10189
- if (!tea_util_1.default.isUnset($tea.toMap(request.management))) {
11197
+ if (!tea_util_1.default.isUnset(request.management)) {
10190
11198
  body["management"] = request.management;
10191
11199
  }
10192
- if (!tea_util_1.default.isUnset($tea.toMap(request.nodepoolInfo))) {
11200
+ if (!tea_util_1.default.isUnset(request.nodepoolInfo)) {
10193
11201
  body["nodepool_info"] = request.nodepoolInfo;
10194
11202
  }
10195
- if (!tea_util_1.default.isUnset($tea.toMap(request.scalingGroup))) {
11203
+ if (!tea_util_1.default.isUnset(request.scalingGroup)) {
10196
11204
  body["scaling_group"] = request.scalingGroup;
10197
11205
  }
10198
- if (!tea_util_1.default.isUnset($tea.toMap(request.teeConfig))) {
11206
+ if (!tea_util_1.default.isUnset(request.teeConfig)) {
10199
11207
  body["tee_config"] = request.teeConfig;
10200
11208
  }
10201
11209
  if (!tea_util_1.default.isUnset(request.updateNodes)) {
@@ -10218,10 +11226,10 @@ class Client extends openapi_client_1.default {
10218
11226
  });
10219
11227
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
10220
11228
  }
10221
- async modifyClusterTags(ClusterId, request) {
11229
+ async modifyClusterNodePool(ClusterId, NodepoolId, request) {
10222
11230
  let runtime = new $Util.RuntimeOptions({});
10223
11231
  let headers = {};
10224
- return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
11232
+ return await this.modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10225
11233
  }
10226
11234
  async modifyClusterTagsWithOptions(ClusterId, request, headers, runtime) {
10227
11235
  tea_util_1.default.validateModel(request);
@@ -10242,18 +11250,18 @@ class Client extends openapi_client_1.default {
10242
11250
  });
10243
11251
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
10244
11252
  }
10245
- async modifyNodePoolNodeConfig(ClusterId, NodepoolId, request) {
11253
+ async modifyClusterTags(ClusterId, request) {
10246
11254
  let runtime = new $Util.RuntimeOptions({});
10247
11255
  let headers = {};
10248
- return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
11256
+ return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
10249
11257
  }
10250
11258
  async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10251
11259
  tea_util_1.default.validateModel(request);
10252
11260
  let body = {};
10253
- if (!tea_util_1.default.isUnset($tea.toMap(request.kubeletConfig))) {
11261
+ if (!tea_util_1.default.isUnset(request.kubeletConfig)) {
10254
11262
  body["kubelet_config"] = request.kubeletConfig;
10255
11263
  }
10256
- if (!tea_util_1.default.isUnset($tea.toMap(request.rollingPolicy))) {
11264
+ if (!tea_util_1.default.isUnset(request.rollingPolicy)) {
10257
11265
  body["rolling_policy"] = request.rollingPolicy;
10258
11266
  }
10259
11267
  let req = new $OpenApi.OpenApiRequest({
@@ -10273,10 +11281,10 @@ class Client extends openapi_client_1.default {
10273
11281
  });
10274
11282
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
10275
11283
  }
10276
- async modifyPolicyInstance(clusterId, policyName, request) {
11284
+ async modifyNodePoolNodeConfig(ClusterId, NodepoolId, request) {
10277
11285
  let runtime = new $Util.RuntimeOptions({});
10278
11286
  let headers = {};
10279
- return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
11287
+ return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10280
11288
  }
10281
11289
  async modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
10282
11290
  tea_util_1.default.validateModel(request);
@@ -10310,11 +11318,19 @@ class Client extends openapi_client_1.default {
10310
11318
  });
10311
11319
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
10312
11320
  }
10313
- async openAckService(request) {
11321
+ async modifyPolicyInstance(clusterId, policyName, request) {
10314
11322
  let runtime = new $Util.RuntimeOptions({});
10315
11323
  let headers = {};
10316
- return await this.openAckServiceWithOptions(request, headers, runtime);
11324
+ return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
10317
11325
  }
11326
+ /**
11327
+ * You can activate ACK with Alibaba Cloud accounts or RAM users that have the authority of AdministratorAccess.
11328
+ *
11329
+ * @param request OpenAckServiceRequest
11330
+ * @param headers map
11331
+ * @param runtime runtime options for this request RuntimeOptions
11332
+ * @return OpenAckServiceResponse
11333
+ */
10318
11334
  async openAckServiceWithOptions(request, headers, runtime) {
10319
11335
  tea_util_1.default.validateModel(request);
10320
11336
  let query = {};
@@ -10338,10 +11354,16 @@ class Client extends openapi_client_1.default {
10338
11354
  });
10339
11355
  return $tea.cast(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
10340
11356
  }
10341
- async pauseClusterUpgrade(ClusterId) {
11357
+ /**
11358
+ * You can activate ACK with Alibaba Cloud accounts or RAM users that have the authority of AdministratorAccess.
11359
+ *
11360
+ * @param request OpenAckServiceRequest
11361
+ * @return OpenAckServiceResponse
11362
+ */
11363
+ async openAckService(request) {
10342
11364
  let runtime = new $Util.RuntimeOptions({});
10343
11365
  let headers = {};
10344
- return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
11366
+ return await this.openAckServiceWithOptions(request, headers, runtime);
10345
11367
  }
10346
11368
  async pauseClusterUpgradeWithOptions(ClusterId, headers, runtime) {
10347
11369
  let req = new $OpenApi.OpenApiRequest({
@@ -10360,10 +11382,10 @@ class Client extends openapi_client_1.default {
10360
11382
  });
10361
11383
  return $tea.cast(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
10362
11384
  }
10363
- async pauseComponentUpgrade(clusterid, componentid) {
11385
+ async pauseClusterUpgrade(ClusterId) {
10364
11386
  let runtime = new $Util.RuntimeOptions({});
10365
11387
  let headers = {};
10366
- return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
11388
+ return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
10367
11389
  }
10368
11390
  async pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
10369
11391
  let req = new $OpenApi.OpenApiRequest({
@@ -10382,10 +11404,10 @@ class Client extends openapi_client_1.default {
10382
11404
  });
10383
11405
  return $tea.cast(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
10384
11406
  }
10385
- async pauseTask(taskId) {
11407
+ async pauseComponentUpgrade(clusterid, componentid) {
10386
11408
  let runtime = new $Util.RuntimeOptions({});
10387
11409
  let headers = {};
10388
- return await this.pauseTaskWithOptions(taskId, headers, runtime);
11410
+ return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
10389
11411
  }
10390
11412
  async pauseTaskWithOptions(taskId, headers, runtime) {
10391
11413
  let req = new $OpenApi.OpenApiRequest({
@@ -10404,11 +11426,20 @@ class Client extends openapi_client_1.default {
10404
11426
  });
10405
11427
  return $tea.cast(await this.callApi(params, req, runtime), new PauseTaskResponse({}));
10406
11428
  }
10407
- async removeClusterNodes(ClusterId, request) {
11429
+ async pauseTask(taskId) {
10408
11430
  let runtime = new $Util.RuntimeOptions({});
10409
11431
  let headers = {};
10410
- return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
11432
+ return await this.pauseTaskWithOptions(taskId, headers, runtime);
10411
11433
  }
11434
+ /**
11435
+ * @deprecated
11436
+ *
11437
+ * @param request RemoveClusterNodesRequest
11438
+ * @param headers map
11439
+ * @param runtime runtime options for this request RuntimeOptions
11440
+ * @return RemoveClusterNodesResponse
11441
+ */
11442
+ // Deprecated
10412
11443
  async removeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
10413
11444
  tea_util_1.default.validateModel(request);
10414
11445
  let body = {};
@@ -10438,15 +11469,37 @@ class Client extends openapi_client_1.default {
10438
11469
  });
10439
11470
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
10440
11471
  }
10441
- async removeNodePoolNodes(ClusterId, NodepoolId, request) {
11472
+ /**
11473
+ * @deprecated
11474
+ *
11475
+ * @param request RemoveClusterNodesRequest
11476
+ * @return RemoveClusterNodesResponse
11477
+ */
11478
+ // Deprecated
11479
+ async removeClusterNodes(ClusterId, request) {
10442
11480
  let runtime = new $Util.RuntimeOptions({});
10443
11481
  let headers = {};
10444
- return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
11482
+ return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
10445
11483
  }
11484
+ /**
11485
+ * >
11486
+ * * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
11487
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
11488
+ * * Nodes remain in the Unschedulable state when they are being removed.
11489
+ * * You can remove only worker nodes. You cannot remove control planes.
11490
+ *
11491
+ * @param tmpReq RemoveNodePoolNodesRequest
11492
+ * @param headers map
11493
+ * @param runtime runtime options for this request RuntimeOptions
11494
+ * @return RemoveNodePoolNodesResponse
11495
+ */
10446
11496
  async removeNodePoolNodesWithOptions(ClusterId, NodepoolId, tmpReq, headers, runtime) {
10447
11497
  tea_util_1.default.validateModel(tmpReq);
10448
11498
  let request = new RemoveNodePoolNodesShrinkRequest({});
10449
11499
  openapi_util_1.default.convert(tmpReq, request);
11500
+ if (!tea_util_1.default.isUnset(tmpReq.instanceIds)) {
11501
+ request.instanceIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "instance_ids", "json");
11502
+ }
10450
11503
  if (!tea_util_1.default.isUnset(tmpReq.nodes)) {
10451
11504
  request.nodesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
10452
11505
  }
@@ -10454,6 +11507,9 @@ class Client extends openapi_client_1.default {
10454
11507
  if (!tea_util_1.default.isUnset(request.drainNode)) {
10455
11508
  query["drain_node"] = request.drainNode;
10456
11509
  }
11510
+ if (!tea_util_1.default.isUnset(request.instanceIdsShrink)) {
11511
+ query["instance_ids"] = request.instanceIdsShrink;
11512
+ }
10457
11513
  if (!tea_util_1.default.isUnset(request.nodesShrink)) {
10458
11514
  query["nodes"] = request.nodesShrink;
10459
11515
  }
@@ -10477,10 +11533,20 @@ class Client extends openapi_client_1.default {
10477
11533
  });
10478
11534
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
10479
11535
  }
10480
- async removeWorkflow(workflowName) {
11536
+ /**
11537
+ * >
11538
+ * * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
11539
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
11540
+ * * Nodes remain in the Unschedulable state when they are being removed.
11541
+ * * You can remove only worker nodes. You cannot remove control planes.
11542
+ *
11543
+ * @param request RemoveNodePoolNodesRequest
11544
+ * @return RemoveNodePoolNodesResponse
11545
+ */
11546
+ async removeNodePoolNodes(ClusterId, NodepoolId, request) {
10481
11547
  let runtime = new $Util.RuntimeOptions({});
10482
11548
  let headers = {};
10483
- return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
11549
+ return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10484
11550
  }
10485
11551
  async removeWorkflowWithOptions(workflowName, headers, runtime) {
10486
11552
  let req = new $OpenApi.OpenApiRequest({
@@ -10499,10 +11565,10 @@ class Client extends openapi_client_1.default {
10499
11565
  });
10500
11566
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
10501
11567
  }
10502
- async repairClusterNodePool(clusterId, nodepoolId, request) {
11568
+ async removeWorkflow(workflowName) {
10503
11569
  let runtime = new $Util.RuntimeOptions({});
10504
11570
  let headers = {};
10505
- return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
11571
+ return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
10506
11572
  }
10507
11573
  async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
10508
11574
  tea_util_1.default.validateModel(request);
@@ -10527,10 +11593,10 @@ class Client extends openapi_client_1.default {
10527
11593
  });
10528
11594
  return $tea.cast(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
10529
11595
  }
10530
- async resumeComponentUpgrade(clusterid, componentid) {
11596
+ async repairClusterNodePool(clusterId, nodepoolId, request) {
10531
11597
  let runtime = new $Util.RuntimeOptions({});
10532
11598
  let headers = {};
10533
- return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
11599
+ return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
10534
11600
  }
10535
11601
  async resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
10536
11602
  let req = new $OpenApi.OpenApiRequest({
@@ -10549,10 +11615,10 @@ class Client extends openapi_client_1.default {
10549
11615
  });
10550
11616
  return $tea.cast(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
10551
11617
  }
10552
- async resumeTask(taskId) {
11618
+ async resumeComponentUpgrade(clusterid, componentid) {
10553
11619
  let runtime = new $Util.RuntimeOptions({});
10554
11620
  let headers = {};
10555
- return await this.resumeTaskWithOptions(taskId, headers, runtime);
11621
+ return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
10556
11622
  }
10557
11623
  async resumeTaskWithOptions(taskId, headers, runtime) {
10558
11624
  let req = new $OpenApi.OpenApiRequest({
@@ -10571,10 +11637,10 @@ class Client extends openapi_client_1.default {
10571
11637
  });
10572
11638
  return $tea.cast(await this.callApi(params, req, runtime), new ResumeTaskResponse({}));
10573
11639
  }
10574
- async resumeUpgradeCluster(ClusterId) {
11640
+ async resumeTask(taskId) {
10575
11641
  let runtime = new $Util.RuntimeOptions({});
10576
11642
  let headers = {};
10577
- return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
11643
+ return await this.resumeTaskWithOptions(taskId, headers, runtime);
10578
11644
  }
10579
11645
  async resumeUpgradeClusterWithOptions(ClusterId, headers, runtime) {
10580
11646
  let req = new $OpenApi.OpenApiRequest({
@@ -10593,11 +11659,20 @@ class Client extends openapi_client_1.default {
10593
11659
  });
10594
11660
  return $tea.cast(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
10595
11661
  }
10596
- async scaleCluster(ClusterId, request) {
11662
+ async resumeUpgradeCluster(ClusterId) {
10597
11663
  let runtime = new $Util.RuntimeOptions({});
10598
11664
  let headers = {};
10599
- return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
11665
+ return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
10600
11666
  }
11667
+ /**
11668
+ * @deprecated
11669
+ *
11670
+ * @param request ScaleClusterRequest
11671
+ * @param headers map
11672
+ * @param runtime runtime options for this request RuntimeOptions
11673
+ * @return ScaleClusterResponse
11674
+ */
11675
+ // Deprecated
10601
11676
  async scaleClusterWithOptions(ClusterId, request, headers, runtime) {
10602
11677
  tea_util_1.default.validateModel(request);
10603
11678
  let body = {};
@@ -10675,10 +11750,17 @@ class Client extends openapi_client_1.default {
10675
11750
  });
10676
11751
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
10677
11752
  }
10678
- async scaleClusterNodePool(ClusterId, NodepoolId, request) {
11753
+ /**
11754
+ * @deprecated
11755
+ *
11756
+ * @param request ScaleClusterRequest
11757
+ * @return ScaleClusterResponse
11758
+ */
11759
+ // Deprecated
11760
+ async scaleCluster(ClusterId, request) {
10679
11761
  let runtime = new $Util.RuntimeOptions({});
10680
11762
  let headers = {};
10681
- return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
11763
+ return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
10682
11764
  }
10683
11765
  async scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10684
11766
  tea_util_1.default.validateModel(request);
@@ -10703,11 +11785,19 @@ class Client extends openapi_client_1.default {
10703
11785
  });
10704
11786
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
10705
11787
  }
10706
- async scaleOutCluster(ClusterId, request) {
11788
+ async scaleClusterNodePool(ClusterId, NodepoolId, request) {
10707
11789
  let runtime = new $Util.RuntimeOptions({});
10708
11790
  let headers = {};
10709
- return await this.scaleOutClusterWithOptions(ClusterId, request, headers, runtime);
11791
+ return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10710
11792
  }
11793
+ /**
11794
+ * > The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to an ACK cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
11795
+ *
11796
+ * @param request ScaleOutClusterRequest
11797
+ * @param headers map
11798
+ * @param runtime runtime options for this request RuntimeOptions
11799
+ * @return ScaleOutClusterResponse
11800
+ */
10711
11801
  async scaleOutClusterWithOptions(ClusterId, request, headers, runtime) {
10712
11802
  tea_util_1.default.validateModel(request);
10713
11803
  let body = {};
@@ -10732,7 +11822,7 @@ class Client extends openapi_client_1.default {
10732
11822
  if (!tea_util_1.default.isUnset(request.rdsInstances)) {
10733
11823
  body["rds_instances"] = request.rdsInstances;
10734
11824
  }
10735
- if (!tea_util_1.default.isUnset($tea.toMap(request.runtime))) {
11825
+ if (!tea_util_1.default.isUnset(request.runtime)) {
10736
11826
  body["runtime"] = request.runtime;
10737
11827
  }
10738
11828
  if (!tea_util_1.default.isUnset(request.tags)) {
@@ -10791,10 +11881,60 @@ class Client extends openapi_client_1.default {
10791
11881
  });
10792
11882
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
10793
11883
  }
10794
- async startWorkflow(request) {
11884
+ /**
11885
+ * > The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to an ACK cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
11886
+ *
11887
+ * @param request ScaleOutClusterRequest
11888
+ * @return ScaleOutClusterResponse
11889
+ */
11890
+ async scaleOutCluster(ClusterId, request) {
10795
11891
  let runtime = new $Util.RuntimeOptions({});
10796
11892
  let headers = {};
10797
- return await this.startWorkflowWithOptions(request, headers, runtime);
11893
+ return await this.scaleOutClusterWithOptions(ClusterId, request, headers, runtime);
11894
+ }
11895
+ async scanClusterVulsWithOptions(clusterId, headers, runtime) {
11896
+ let req = new $OpenApi.OpenApiRequest({
11897
+ headers: headers,
11898
+ });
11899
+ let params = new $OpenApi.Params({
11900
+ action: "ScanClusterVuls",
11901
+ version: "2015-12-15",
11902
+ protocol: "HTTPS",
11903
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/vuls/scan`,
11904
+ method: "POST",
11905
+ authType: "AK",
11906
+ style: "ROA",
11907
+ reqBodyType: "json",
11908
+ bodyType: "json",
11909
+ });
11910
+ return $tea.cast(await this.callApi(params, req, runtime), new ScanClusterVulsResponse({}));
11911
+ }
11912
+ async scanClusterVuls(clusterId) {
11913
+ let runtime = new $Util.RuntimeOptions({});
11914
+ let headers = {};
11915
+ return await this.scanClusterVulsWithOptions(clusterId, headers, runtime);
11916
+ }
11917
+ async startAlertWithOptions(ClusterId, headers, runtime) {
11918
+ let req = new $OpenApi.OpenApiRequest({
11919
+ headers: headers,
11920
+ });
11921
+ let params = new $OpenApi.Params({
11922
+ action: "StartAlert",
11923
+ version: "2015-12-15",
11924
+ protocol: "HTTPS",
11925
+ pathname: `/alert/${openapi_util_1.default.getEncodeParam(ClusterId)}/alert_rule/start`,
11926
+ method: "POST",
11927
+ authType: "AK",
11928
+ style: "ROA",
11929
+ reqBodyType: "json",
11930
+ bodyType: "json",
11931
+ });
11932
+ return $tea.cast(await this.callApi(params, req, runtime), new StartAlertResponse({}));
11933
+ }
11934
+ async startAlert(ClusterId) {
11935
+ let runtime = new $Util.RuntimeOptions({});
11936
+ let headers = {};
11937
+ return await this.startAlertWithOptions(ClusterId, headers, runtime);
10798
11938
  }
10799
11939
  async startWorkflowWithOptions(request, headers, runtime) {
10800
11940
  tea_util_1.default.validateModel(request);
@@ -10873,10 +12013,54 @@ class Client extends openapi_client_1.default {
10873
12013
  });
10874
12014
  return $tea.cast(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
10875
12015
  }
10876
- async tagResources(request) {
12016
+ async startWorkflow(request) {
10877
12017
  let runtime = new $Util.RuntimeOptions({});
10878
12018
  let headers = {};
10879
- return await this.tagResourcesWithOptions(request, headers, runtime);
12019
+ return await this.startWorkflowWithOptions(request, headers, runtime);
12020
+ }
12021
+ async stopAlertWithOptions(ClusterId, headers, runtime) {
12022
+ let req = new $OpenApi.OpenApiRequest({
12023
+ headers: headers,
12024
+ });
12025
+ let params = new $OpenApi.Params({
12026
+ action: "StopAlert",
12027
+ version: "2015-12-15",
12028
+ protocol: "HTTPS",
12029
+ pathname: `/alert/${openapi_util_1.default.getEncodeParam(ClusterId)}/alert_rule/stop`,
12030
+ method: "POST",
12031
+ authType: "AK",
12032
+ style: "ROA",
12033
+ reqBodyType: "json",
12034
+ bodyType: "json",
12035
+ });
12036
+ return $tea.cast(await this.callApi(params, req, runtime), new StopAlertResponse({}));
12037
+ }
12038
+ async stopAlert(ClusterId) {
12039
+ let runtime = new $Util.RuntimeOptions({});
12040
+ let headers = {};
12041
+ return await this.stopAlertWithOptions(ClusterId, headers, runtime);
12042
+ }
12043
+ async syncClusterNodePoolWithOptions(ClusterId, headers, runtime) {
12044
+ let req = new $OpenApi.OpenApiRequest({
12045
+ headers: headers,
12046
+ });
12047
+ let params = new $OpenApi.Params({
12048
+ action: "SyncClusterNodePool",
12049
+ version: "2015-12-15",
12050
+ protocol: "HTTPS",
12051
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/sync_nodepools`,
12052
+ method: "POST",
12053
+ authType: "AK",
12054
+ style: "ROA",
12055
+ reqBodyType: "json",
12056
+ bodyType: "json",
12057
+ });
12058
+ return $tea.cast(await this.callApi(params, req, runtime), new SyncClusterNodePoolResponse({}));
12059
+ }
12060
+ async syncClusterNodePool(ClusterId) {
12061
+ let runtime = new $Util.RuntimeOptions({});
12062
+ let headers = {};
12063
+ return await this.syncClusterNodePoolWithOptions(ClusterId, headers, runtime);
10880
12064
  }
10881
12065
  async tagResourcesWithOptions(request, headers, runtime) {
10882
12066
  tea_util_1.default.validateModel(request);
@@ -10910,10 +12094,10 @@ class Client extends openapi_client_1.default {
10910
12094
  });
10911
12095
  return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
10912
12096
  }
10913
- async unInstallClusterAddons(ClusterId, request) {
12097
+ async tagResources(request) {
10914
12098
  let runtime = new $Util.RuntimeOptions({});
10915
12099
  let headers = {};
10916
- return await this.unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime);
12100
+ return await this.tagResourcesWithOptions(request, headers, runtime);
10917
12101
  }
10918
12102
  async unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
10919
12103
  tea_util_1.default.validateModel(request);
@@ -10934,13 +12118,21 @@ class Client extends openapi_client_1.default {
10934
12118
  });
10935
12119
  return $tea.cast(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
10936
12120
  }
10937
- async untagResources(request) {
12121
+ async unInstallClusterAddons(ClusterId, request) {
10938
12122
  let runtime = new $Util.RuntimeOptions({});
10939
12123
  let headers = {};
10940
- return await this.untagResourcesWithOptions(request, headers, runtime);
12124
+ return await this.unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime);
10941
12125
  }
10942
- async untagResourcesWithOptions(request, headers, runtime) {
10943
- tea_util_1.default.validateModel(request);
12126
+ async untagResourcesWithOptions(tmpReq, headers, runtime) {
12127
+ tea_util_1.default.validateModel(tmpReq);
12128
+ let request = new UntagResourcesShrinkRequest({});
12129
+ openapi_util_1.default.convert(tmpReq, request);
12130
+ if (!tea_util_1.default.isUnset(tmpReq.resourceIds)) {
12131
+ request.resourceIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.resourceIds, "resource_ids", "json");
12132
+ }
12133
+ if (!tea_util_1.default.isUnset(tmpReq.tagKeys)) {
12134
+ request.tagKeysShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagKeys, "tag_keys", "json");
12135
+ }
10944
12136
  let query = {};
10945
12137
  if (!tea_util_1.default.isUnset(request.all)) {
10946
12138
  query["all"] = request.all;
@@ -10948,14 +12140,14 @@ class Client extends openapi_client_1.default {
10948
12140
  if (!tea_util_1.default.isUnset(request.regionId)) {
10949
12141
  query["region_id"] = request.regionId;
10950
12142
  }
10951
- if (!tea_util_1.default.isUnset(request.resourceIds)) {
10952
- query["resource_ids"] = request.resourceIds;
12143
+ if (!tea_util_1.default.isUnset(request.resourceIdsShrink)) {
12144
+ query["resource_ids"] = request.resourceIdsShrink;
10953
12145
  }
10954
12146
  if (!tea_util_1.default.isUnset(request.resourceType)) {
10955
12147
  query["resource_type"] = request.resourceType;
10956
12148
  }
10957
- if (!tea_util_1.default.isUnset(request.tagKeys)) {
10958
- query["tag_keys"] = request.tagKeys;
12149
+ if (!tea_util_1.default.isUnset(request.tagKeysShrink)) {
12150
+ query["tag_keys"] = request.tagKeysShrink;
10959
12151
  }
10960
12152
  let req = new $OpenApi.OpenApiRequest({
10961
12153
  headers: headers,
@@ -10974,10 +12166,10 @@ class Client extends openapi_client_1.default {
10974
12166
  });
10975
12167
  return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
10976
12168
  }
10977
- async updateContactGroupForAlert(ClusterId) {
12169
+ async untagResources(request) {
10978
12170
  let runtime = new $Util.RuntimeOptions({});
10979
12171
  let headers = {};
10980
- return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
12172
+ return await this.untagResourcesWithOptions(request, headers, runtime);
10981
12173
  }
10982
12174
  async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
10983
12175
  let req = new $OpenApi.OpenApiRequest({
@@ -10996,11 +12188,58 @@ class Client extends openapi_client_1.default {
10996
12188
  });
10997
12189
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
10998
12190
  }
10999
- async updateK8sClusterUserConfigExpire(ClusterId, request) {
12191
+ async updateContactGroupForAlert(ClusterId) {
11000
12192
  let runtime = new $Util.RuntimeOptions({});
11001
12193
  let headers = {};
11002
- return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
12194
+ return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
11003
12195
  }
12196
+ async updateControlPlaneLogWithOptions(ClusterId, request, headers, runtime) {
12197
+ tea_util_1.default.validateModel(request);
12198
+ let body = {};
12199
+ if (!tea_util_1.default.isUnset(request.aliuid)) {
12200
+ body["aliuid"] = request.aliuid;
12201
+ }
12202
+ if (!tea_util_1.default.isUnset(request.components)) {
12203
+ body["components"] = request.components;
12204
+ }
12205
+ if (!tea_util_1.default.isUnset(request.logProject)) {
12206
+ body["log_project"] = request.logProject;
12207
+ }
12208
+ if (!tea_util_1.default.isUnset(request.logTtl)) {
12209
+ body["log_ttl"] = request.logTtl;
12210
+ }
12211
+ let req = new $OpenApi.OpenApiRequest({
12212
+ headers: headers,
12213
+ body: openapi_util_1.default.parseToMap(body),
12214
+ });
12215
+ let params = new $OpenApi.Params({
12216
+ action: "UpdateControlPlaneLog",
12217
+ version: "2015-12-15",
12218
+ protocol: "HTTPS",
12219
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/controlplanelog`,
12220
+ method: "PUT",
12221
+ authType: "AK",
12222
+ style: "ROA",
12223
+ reqBodyType: "json",
12224
+ bodyType: "none",
12225
+ });
12226
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateControlPlaneLogResponse({}));
12227
+ }
12228
+ async updateControlPlaneLog(ClusterId, request) {
12229
+ let runtime = new $Util.RuntimeOptions({});
12230
+ let headers = {};
12231
+ return await this.updateControlPlaneLogWithOptions(ClusterId, request, headers, runtime);
12232
+ }
12233
+ /**
12234
+ * >
12235
+ * * You can call this operation only with an Alibaba Cloud account.
12236
+ * * After you revoke the kubeconfig file of a cluster, the validity period of the kubeconfig file that you specified becomes invalid. You can call this API operation to specify the validity period again.
12237
+ *
12238
+ * @param request UpdateK8sClusterUserConfigExpireRequest
12239
+ * @param headers map
12240
+ * @param runtime runtime options for this request RuntimeOptions
12241
+ * @return UpdateK8sClusterUserConfigExpireResponse
12242
+ */
11004
12243
  async updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime) {
11005
12244
  tea_util_1.default.validateModel(request);
11006
12245
  let body = {};
@@ -11027,10 +12266,18 @@ class Client extends openapi_client_1.default {
11027
12266
  });
11028
12267
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
11029
12268
  }
11030
- async updateTemplate(TemplateId, request) {
12269
+ /**
12270
+ * >
12271
+ * * You can call this operation only with an Alibaba Cloud account.
12272
+ * * After you revoke the kubeconfig file of a cluster, the validity period of the kubeconfig file that you specified becomes invalid. You can call this API operation to specify the validity period again.
12273
+ *
12274
+ * @param request UpdateK8sClusterUserConfigExpireRequest
12275
+ * @return UpdateK8sClusterUserConfigExpireResponse
12276
+ */
12277
+ async updateK8sClusterUserConfigExpire(ClusterId, request) {
11031
12278
  let runtime = new $Util.RuntimeOptions({});
11032
12279
  let headers = {};
11033
- return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
12280
+ return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
11034
12281
  }
11035
12282
  async updateTemplateWithOptions(TemplateId, request, headers, runtime) {
11036
12283
  tea_util_1.default.validateModel(request);
@@ -11067,10 +12314,10 @@ class Client extends openapi_client_1.default {
11067
12314
  });
11068
12315
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
11069
12316
  }
11070
- async upgradeCluster(ClusterId, request) {
12317
+ async updateTemplate(TemplateId, request) {
11071
12318
  let runtime = new $Util.RuntimeOptions({});
11072
12319
  let headers = {};
11073
- return await this.upgradeClusterWithOptions(ClusterId, request, headers, runtime);
12320
+ return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
11074
12321
  }
11075
12322
  async upgradeClusterWithOptions(ClusterId, request, headers, runtime) {
11076
12323
  tea_util_1.default.validateModel(request);
@@ -11078,6 +12325,9 @@ class Client extends openapi_client_1.default {
11078
12325
  if (!tea_util_1.default.isUnset(request.componentName)) {
11079
12326
  body["component_name"] = request.componentName;
11080
12327
  }
12328
+ if (!tea_util_1.default.isUnset(request.masterOnly)) {
12329
+ body["master_only"] = request.masterOnly;
12330
+ }
11081
12331
  if (!tea_util_1.default.isUnset(request.nextVersion)) {
11082
12332
  body["next_version"] = request.nextVersion;
11083
12333
  }
@@ -11101,10 +12351,10 @@ class Client extends openapi_client_1.default {
11101
12351
  });
11102
12352
  return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
11103
12353
  }
11104
- async upgradeClusterAddons(ClusterId, request) {
12354
+ async upgradeCluster(ClusterId, request) {
11105
12355
  let runtime = new $Util.RuntimeOptions({});
11106
12356
  let headers = {};
11107
- return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
12357
+ return await this.upgradeClusterWithOptions(ClusterId, request, headers, runtime);
11108
12358
  }
11109
12359
  async upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
11110
12360
  tea_util_1.default.validateModel(request);
@@ -11125,11 +12375,19 @@ class Client extends openapi_client_1.default {
11125
12375
  });
11126
12376
  return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
11127
12377
  }
11128
- async upgradeClusterNodepool(ClusterId, NodepoolId, request) {
12378
+ async upgradeClusterAddons(ClusterId, request) {
11129
12379
  let runtime = new $Util.RuntimeOptions({});
11130
12380
  let headers = {};
11131
- return await this.upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
12381
+ return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
11132
12382
  }
12383
+ /**
12384
+ * You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
12385
+ *
12386
+ * @param request UpgradeClusterNodepoolRequest
12387
+ * @param headers map
12388
+ * @param runtime runtime options for this request RuntimeOptions
12389
+ * @return UpgradeClusterNodepoolResponse
12390
+ */
11133
12391
  async upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
11134
12392
  tea_util_1.default.validateModel(request);
11135
12393
  let body = {};
@@ -11139,6 +12397,9 @@ class Client extends openapi_client_1.default {
11139
12397
  if (!tea_util_1.default.isUnset(request.kubernetesVersion)) {
11140
12398
  body["kubernetes_version"] = request.kubernetesVersion;
11141
12399
  }
12400
+ if (!tea_util_1.default.isUnset(request.runtimeType)) {
12401
+ body["runtime_type"] = request.runtimeType;
12402
+ }
11142
12403
  if (!tea_util_1.default.isUnset(request.runtimeVersion)) {
11143
12404
  body["runtime_version"] = request.runtimeVersion;
11144
12405
  }
@@ -11159,6 +12420,17 @@ class Client extends openapi_client_1.default {
11159
12420
  });
11160
12421
  return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
11161
12422
  }
12423
+ /**
12424
+ * You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
12425
+ *
12426
+ * @param request UpgradeClusterNodepoolRequest
12427
+ * @return UpgradeClusterNodepoolResponse
12428
+ */
12429
+ async upgradeClusterNodepool(ClusterId, NodepoolId, request) {
12430
+ let runtime = new $Util.RuntimeOptions({});
12431
+ let headers = {};
12432
+ return await this.upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
12433
+ }
11162
12434
  }
11163
12435
  exports.default = Client;
11164
12436
  //# sourceMappingURL=client.js.map