@alicloud/cs20151215 3.0.20 → 3.0.22

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
@@ -46,18 +46,22 @@ class DataDisk extends $tea.Model {
46
46
  static names() {
47
47
  return {
48
48
  autoSnapshotPolicyId: 'auto_snapshot_policy_id',
49
+ burstingEnabled: 'bursting_enabled',
49
50
  category: 'category',
50
51
  encrypted: 'encrypted',
51
52
  performanceLevel: 'performance_level',
53
+ provisionedIops: 'provisioned_iops',
52
54
  size: 'size',
53
55
  };
54
56
  }
55
57
  static types() {
56
58
  return {
57
59
  autoSnapshotPolicyId: 'string',
60
+ burstingEnabled: 'boolean',
58
61
  category: 'string',
59
62
  encrypted: 'string',
60
63
  performanceLevel: 'string',
64
+ provisionedIops: 'number',
61
65
  size: 'number',
62
66
  };
63
67
  }
@@ -85,6 +89,40 @@ class MaintenanceWindow extends $tea.Model {
85
89
  }
86
90
  }
87
91
  exports.MaintenanceWindow = MaintenanceWindow;
92
+ class Nodepool extends $tea.Model {
93
+ constructor(map) {
94
+ super(map);
95
+ }
96
+ static names() {
97
+ return {
98
+ autoScaling: 'auto_scaling',
99
+ count: 'count',
100
+ interconnectConfig: 'interconnect_config',
101
+ interconnectMode: 'interconnect_mode',
102
+ kubernetesConfig: 'kubernetes_config',
103
+ management: 'management',
104
+ maxNodes: 'max_nodes',
105
+ nodepoolInfo: 'nodepool_info',
106
+ scalingGroup: 'scaling_group',
107
+ teeConfig: 'tee_config',
108
+ };
109
+ }
110
+ static types() {
111
+ return {
112
+ autoScaling: NodepoolAutoScaling,
113
+ count: 'number',
114
+ interconnectConfig: NodepoolInterconnectConfig,
115
+ interconnectMode: 'string',
116
+ kubernetesConfig: NodepoolKubernetesConfig,
117
+ management: NodepoolManagement,
118
+ maxNodes: 'number',
119
+ nodepoolInfo: NodepoolNodepoolInfo,
120
+ scalingGroup: NodepoolScalingGroup,
121
+ teeConfig: NodepoolTeeConfig,
122
+ };
123
+ }
124
+ }
125
+ exports.Nodepool = Nodepool;
88
126
  class Runtime extends $tea.Model {
89
127
  constructor(map) {
90
128
  super(map);
@@ -165,6 +203,28 @@ class StandardComponentsValue extends $tea.Model {
165
203
  }
166
204
  }
167
205
  exports.StandardComponentsValue = StandardComponentsValue;
206
+ class QuotasValue extends $tea.Model {
207
+ constructor(map) {
208
+ super(map);
209
+ }
210
+ static names() {
211
+ return {
212
+ quota: 'quota',
213
+ operationCode: 'operation_code',
214
+ adjustable: 'adjustable',
215
+ unit: 'unit',
216
+ };
217
+ }
218
+ static types() {
219
+ return {
220
+ quota: 'string',
221
+ operationCode: 'string',
222
+ adjustable: 'boolean',
223
+ unit: 'string',
224
+ };
225
+ }
226
+ }
227
+ exports.QuotasValue = QuotasValue;
168
228
  class AttachInstancesRequest extends $tea.Model {
169
229
  constructor(map) {
170
230
  super(map);
@@ -243,6 +303,66 @@ class AttachInstancesResponse extends $tea.Model {
243
303
  }
244
304
  }
245
305
  exports.AttachInstancesResponse = AttachInstancesResponse;
306
+ class AttachInstancesToNodePoolRequest extends $tea.Model {
307
+ constructor(map) {
308
+ super(map);
309
+ }
310
+ static names() {
311
+ return {
312
+ formatDisk: 'format_disk',
313
+ instances: 'instances',
314
+ keepInstanceName: 'keep_instance_name',
315
+ password: 'password',
316
+ };
317
+ }
318
+ static types() {
319
+ return {
320
+ formatDisk: 'boolean',
321
+ instances: { 'type': 'array', 'itemType': 'string' },
322
+ keepInstanceName: 'boolean',
323
+ password: 'string',
324
+ };
325
+ }
326
+ }
327
+ exports.AttachInstancesToNodePoolRequest = AttachInstancesToNodePoolRequest;
328
+ class AttachInstancesToNodePoolResponseBody extends $tea.Model {
329
+ constructor(map) {
330
+ super(map);
331
+ }
332
+ static names() {
333
+ return {
334
+ requestId: 'request_id',
335
+ taskId: 'task_id',
336
+ };
337
+ }
338
+ static types() {
339
+ return {
340
+ requestId: 'string',
341
+ taskId: 'string',
342
+ };
343
+ }
344
+ }
345
+ exports.AttachInstancesToNodePoolResponseBody = AttachInstancesToNodePoolResponseBody;
346
+ class AttachInstancesToNodePoolResponse extends $tea.Model {
347
+ constructor(map) {
348
+ super(map);
349
+ }
350
+ static names() {
351
+ return {
352
+ headers: 'headers',
353
+ statusCode: 'statusCode',
354
+ body: 'body',
355
+ };
356
+ }
357
+ static types() {
358
+ return {
359
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
360
+ statusCode: 'number',
361
+ body: AttachInstancesToNodePoolResponseBody,
362
+ };
363
+ }
364
+ }
365
+ exports.AttachInstancesToNodePoolResponse = AttachInstancesToNodePoolResponse;
246
366
  class CancelClusterUpgradeResponse extends $tea.Model {
247
367
  constructor(map) {
248
368
  super(map);
@@ -331,6 +451,48 @@ class CancelWorkflowResponse extends $tea.Model {
331
451
  }
332
452
  }
333
453
  exports.CancelWorkflowResponse = CancelWorkflowResponse;
454
+ class CheckControlPlaneLogEnableResponseBody extends $tea.Model {
455
+ constructor(map) {
456
+ super(map);
457
+ }
458
+ static names() {
459
+ return {
460
+ aliuid: 'aliuid',
461
+ components: 'components',
462
+ logProject: 'log_project',
463
+ logTtl: 'log_ttl',
464
+ };
465
+ }
466
+ static types() {
467
+ return {
468
+ aliuid: 'string',
469
+ components: { 'type': 'array', 'itemType': 'string' },
470
+ logProject: 'string',
471
+ logTtl: 'string',
472
+ };
473
+ }
474
+ }
475
+ exports.CheckControlPlaneLogEnableResponseBody = CheckControlPlaneLogEnableResponseBody;
476
+ class CheckControlPlaneLogEnableResponse extends $tea.Model {
477
+ constructor(map) {
478
+ super(map);
479
+ }
480
+ static names() {
481
+ return {
482
+ headers: 'headers',
483
+ statusCode: 'statusCode',
484
+ body: 'body',
485
+ };
486
+ }
487
+ static types() {
488
+ return {
489
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
490
+ statusCode: 'number',
491
+ body: CheckControlPlaneLogEnableResponseBody,
492
+ };
493
+ }
494
+ }
495
+ exports.CheckControlPlaneLogEnableResponse = CheckControlPlaneLogEnableResponse;
334
496
  class CreateAutoscalingConfigRequest extends $tea.Model {
335
497
  constructor(map) {
336
498
  super(map);
@@ -338,10 +500,17 @@ class CreateAutoscalingConfigRequest extends $tea.Model {
338
500
  static names() {
339
501
  return {
340
502
  coolDownDuration: 'cool_down_duration',
503
+ daemonsetEvictionForNodes: 'daemonset_eviction_for_nodes',
341
504
  expander: 'expander',
342
505
  gpuUtilizationThreshold: 'gpu_utilization_threshold',
506
+ maxGracefulTerminationSec: 'max_graceful_termination_sec',
507
+ minReplicaCount: 'min_replica_count',
508
+ recycleNodeDeletionEnabled: 'recycle_node_deletion_enabled',
343
509
  scaleDownEnabled: 'scale_down_enabled',
510
+ scaleUpFromZero: 'scale_up_from_zero',
344
511
  scanInterval: 'scan_interval',
512
+ skipNodesWithLocalStorage: 'skip_nodes_with_local_storage',
513
+ skipNodesWithSystemPods: 'skip_nodes_with_system_pods',
345
514
  unneededDuration: 'unneeded_duration',
346
515
  utilizationThreshold: 'utilization_threshold',
347
516
  };
@@ -349,10 +518,17 @@ class CreateAutoscalingConfigRequest extends $tea.Model {
349
518
  static types() {
350
519
  return {
351
520
  coolDownDuration: 'string',
521
+ daemonsetEvictionForNodes: 'boolean',
352
522
  expander: 'string',
353
523
  gpuUtilizationThreshold: 'string',
524
+ maxGracefulTerminationSec: 'number',
525
+ minReplicaCount: 'number',
526
+ recycleNodeDeletionEnabled: 'boolean',
354
527
  scaleDownEnabled: 'boolean',
528
+ scaleUpFromZero: 'boolean',
355
529
  scanInterval: 'string',
530
+ skipNodesWithLocalStorage: 'boolean',
531
+ skipNodesWithSystemPods: 'boolean',
356
532
  unneededDuration: 'string',
357
533
  utilizationThreshold: 'string',
358
534
  };
@@ -1003,6 +1179,22 @@ class DeleteClusterShrinkRequest extends $tea.Model {
1003
1179
  }
1004
1180
  }
1005
1181
  exports.DeleteClusterShrinkRequest = DeleteClusterShrinkRequest;
1182
+ class DeleteClusterResponseBody extends $tea.Model {
1183
+ constructor(map) {
1184
+ super(map);
1185
+ }
1186
+ static names() {
1187
+ return {
1188
+ taskId: 'task_id',
1189
+ };
1190
+ }
1191
+ static types() {
1192
+ return {
1193
+ taskId: 'string',
1194
+ };
1195
+ }
1196
+ }
1197
+ exports.DeleteClusterResponseBody = DeleteClusterResponseBody;
1006
1198
  class DeleteClusterResponse extends $tea.Model {
1007
1199
  constructor(map) {
1008
1200
  super(map);
@@ -1011,12 +1203,14 @@ class DeleteClusterResponse extends $tea.Model {
1011
1203
  return {
1012
1204
  headers: 'headers',
1013
1205
  statusCode: 'statusCode',
1206
+ body: 'body',
1014
1207
  };
1015
1208
  }
1016
1209
  static types() {
1017
1210
  return {
1018
1211
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1019
1212
  statusCode: 'number',
1213
+ body: DeleteClusterResponseBody,
1020
1214
  };
1021
1215
  }
1022
1216
  }
@@ -1391,13 +1585,19 @@ class DescribeAddonsRequest extends $tea.Model {
1391
1585
  }
1392
1586
  static names() {
1393
1587
  return {
1588
+ clusterProfile: 'cluster_profile',
1589
+ clusterSpec: 'cluster_spec',
1394
1590
  clusterType: 'cluster_type',
1591
+ clusterVersion: 'cluster_version',
1395
1592
  region: 'region',
1396
1593
  };
1397
1594
  }
1398
1595
  static types() {
1399
1596
  return {
1597
+ clusterProfile: 'string',
1598
+ clusterSpec: 'string',
1400
1599
  clusterType: 'string',
1600
+ clusterVersion: 'string',
1401
1601
  region: 'string',
1402
1602
  };
1403
1603
  }
@@ -1441,6 +1641,48 @@ class DescribeAddonsResponse extends $tea.Model {
1441
1641
  }
1442
1642
  }
1443
1643
  exports.DescribeAddonsResponse = DescribeAddonsResponse;
1644
+ class DescribeClusterAddonInstanceResponseBody extends $tea.Model {
1645
+ constructor(map) {
1646
+ super(map);
1647
+ }
1648
+ static names() {
1649
+ return {
1650
+ config: 'config',
1651
+ name: 'name',
1652
+ state: 'state',
1653
+ version: 'version',
1654
+ };
1655
+ }
1656
+ static types() {
1657
+ return {
1658
+ config: 'string',
1659
+ name: 'string',
1660
+ state: 'string',
1661
+ version: 'string',
1662
+ };
1663
+ }
1664
+ }
1665
+ exports.DescribeClusterAddonInstanceResponseBody = DescribeClusterAddonInstanceResponseBody;
1666
+ class DescribeClusterAddonInstanceResponse extends $tea.Model {
1667
+ constructor(map) {
1668
+ super(map);
1669
+ }
1670
+ static names() {
1671
+ return {
1672
+ headers: 'headers',
1673
+ statusCode: 'statusCode',
1674
+ body: 'body',
1675
+ };
1676
+ }
1677
+ static types() {
1678
+ return {
1679
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1680
+ statusCode: 'number',
1681
+ body: DescribeClusterAddonInstanceResponseBody,
1682
+ };
1683
+ }
1684
+ }
1685
+ exports.DescribeClusterAddonInstanceResponse = DescribeClusterAddonInstanceResponse;
1444
1686
  class DescribeClusterAddonMetadataResponseBody extends $tea.Model {
1445
1687
  constructor(map) {
1446
1688
  super(map);
@@ -1640,6 +1882,7 @@ class DescribeClusterDetailResponseBody extends $tea.Model {
1640
1882
  name: 'name',
1641
1883
  networkMode: 'network_mode',
1642
1884
  nextVersion: 'next_version',
1885
+ parameters: 'parameters',
1643
1886
  privateZone: 'private_zone',
1644
1887
  profile: 'profile',
1645
1888
  regionId: 'region_id',
@@ -1673,6 +1916,7 @@ class DescribeClusterDetailResponseBody extends $tea.Model {
1673
1916
  name: 'string',
1674
1917
  networkMode: 'string',
1675
1918
  nextVersion: 'string',
1919
+ parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1676
1920
  privateZone: 'boolean',
1677
1921
  profile: 'string',
1678
1922
  regionId: 'string',
@@ -1726,7 +1970,7 @@ class DescribeClusterEventsRequest extends $tea.Model {
1726
1970
  return {
1727
1971
  pageNumber: 'number',
1728
1972
  pageSize: 'number',
1729
- taskId: 'number',
1973
+ taskId: 'string',
1730
1974
  };
1731
1975
  }
1732
1976
  }
@@ -2109,6 +2353,42 @@ class DescribeClusterV2UserKubeconfigResponse extends $tea.Model {
2109
2353
  }
2110
2354
  }
2111
2355
  exports.DescribeClusterV2UserKubeconfigResponse = DescribeClusterV2UserKubeconfigResponse;
2356
+ class DescribeClusterVulsResponseBody extends $tea.Model {
2357
+ constructor(map) {
2358
+ super(map);
2359
+ }
2360
+ static names() {
2361
+ return {
2362
+ vulRecords: 'vul_records',
2363
+ };
2364
+ }
2365
+ static types() {
2366
+ return {
2367
+ vulRecords: { 'type': 'array', 'itemType': DescribeClusterVulsResponseBodyVulRecords },
2368
+ };
2369
+ }
2370
+ }
2371
+ exports.DescribeClusterVulsResponseBody = DescribeClusterVulsResponseBody;
2372
+ class DescribeClusterVulsResponse extends $tea.Model {
2373
+ constructor(map) {
2374
+ super(map);
2375
+ }
2376
+ static names() {
2377
+ return {
2378
+ headers: 'headers',
2379
+ statusCode: 'statusCode',
2380
+ body: 'body',
2381
+ };
2382
+ }
2383
+ static types() {
2384
+ return {
2385
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2386
+ statusCode: 'number',
2387
+ body: DescribeClusterVulsResponseBody,
2388
+ };
2389
+ }
2390
+ }
2391
+ exports.DescribeClusterVulsResponse = DescribeClusterVulsResponse;
2112
2392
  class DescribeClustersRequest extends $tea.Model {
2113
2393
  constructor(map) {
2114
2394
  super(map);
@@ -2525,6 +2805,7 @@ class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
2525
2805
  return {
2526
2806
  clusterType: 'ClusterType',
2527
2807
  kubernetesVersion: 'KubernetesVersion',
2808
+ mode: 'Mode',
2528
2809
  profile: 'Profile',
2529
2810
  region: 'Region',
2530
2811
  runtime: 'runtime',
@@ -2534,6 +2815,7 @@ class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
2534
2815
  return {
2535
2816
  clusterType: 'string',
2536
2817
  kubernetesVersion: 'string',
2818
+ mode: 'string',
2537
2819
  profile: 'string',
2538
2820
  region: 'string',
2539
2821
  runtime: 'string',
@@ -2561,6 +2843,22 @@ class DescribeKubernetesVersionMetadataResponse extends $tea.Model {
2561
2843
  }
2562
2844
  }
2563
2845
  exports.DescribeKubernetesVersionMetadataResponse = DescribeKubernetesVersionMetadataResponse;
2846
+ class DescribeNodePoolVulsRequest extends $tea.Model {
2847
+ constructor(map) {
2848
+ super(map);
2849
+ }
2850
+ static names() {
2851
+ return {
2852
+ necessity: 'necessity',
2853
+ };
2854
+ }
2855
+ static types() {
2856
+ return {
2857
+ necessity: 'string',
2858
+ };
2859
+ }
2860
+ }
2861
+ exports.DescribeNodePoolVulsRequest = DescribeNodePoolVulsRequest;
2564
2862
  class DescribeNodePoolVulsResponseBody extends $tea.Model {
2565
2863
  constructor(map) {
2566
2864
  super(map);
@@ -2787,56 +3085,112 @@ class DescribePolicyInstancesStatusResponse extends $tea.Model {
2787
3085
  }
2788
3086
  }
2789
3087
  exports.DescribePolicyInstancesStatusResponse = DescribePolicyInstancesStatusResponse;
2790
- class DescribeTaskInfoResponseBody extends $tea.Model {
3088
+ class DescribeSubaccountK8sClusterUserConfigRequest extends $tea.Model {
2791
3089
  constructor(map) {
2792
3090
  super(map);
2793
3091
  }
2794
3092
  static names() {
2795
3093
  return {
2796
- clusterId: 'cluster_id',
2797
- created: 'created',
2798
- currentStage: 'current_stage',
2799
- error: 'error',
2800
- events: 'events',
2801
- parameters: 'parameters',
2802
- stages: 'stages',
2803
- state: 'state',
2804
- target: 'target',
2805
- taskId: 'task_id',
2806
- taskResult: 'task_result',
2807
- taskType: 'task_type',
2808
- updated: 'updated',
3094
+ privateIpAddress: 'PrivateIpAddress',
3095
+ temporaryDurationMinutes: 'TemporaryDurationMinutes',
2809
3096
  };
2810
3097
  }
2811
3098
  static types() {
2812
3099
  return {
2813
- clusterId: 'string',
2814
- created: 'string',
2815
- currentStage: 'string',
2816
- error: DescribeTaskInfoResponseBodyError,
2817
- events: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyEvents },
2818
- parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
2819
- stages: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyStages },
2820
- state: 'string',
2821
- target: DescribeTaskInfoResponseBodyTarget,
2822
- taskId: 'string',
2823
- taskResult: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyTaskResult },
2824
- taskType: 'string',
2825
- updated: 'string',
3100
+ privateIpAddress: 'boolean',
3101
+ temporaryDurationMinutes: 'number',
2826
3102
  };
2827
3103
  }
2828
3104
  }
2829
- exports.DescribeTaskInfoResponseBody = DescribeTaskInfoResponseBody;
2830
- class DescribeTaskInfoResponse extends $tea.Model {
3105
+ exports.DescribeSubaccountK8sClusterUserConfigRequest = DescribeSubaccountK8sClusterUserConfigRequest;
3106
+ class DescribeSubaccountK8sClusterUserConfigResponseBody extends $tea.Model {
2831
3107
  constructor(map) {
2832
3108
  super(map);
2833
3109
  }
2834
3110
  static names() {
2835
3111
  return {
2836
- headers: 'headers',
2837
- statusCode: 'statusCode',
2838
- body: 'body',
2839
- };
3112
+ config: 'config',
3113
+ expiration: 'expiration',
3114
+ };
3115
+ }
3116
+ static types() {
3117
+ return {
3118
+ config: 'string',
3119
+ expiration: 'string',
3120
+ };
3121
+ }
3122
+ }
3123
+ exports.DescribeSubaccountK8sClusterUserConfigResponseBody = DescribeSubaccountK8sClusterUserConfigResponseBody;
3124
+ class DescribeSubaccountK8sClusterUserConfigResponse extends $tea.Model {
3125
+ constructor(map) {
3126
+ super(map);
3127
+ }
3128
+ static names() {
3129
+ return {
3130
+ headers: 'headers',
3131
+ statusCode: 'statusCode',
3132
+ body: 'body',
3133
+ };
3134
+ }
3135
+ static types() {
3136
+ return {
3137
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3138
+ statusCode: 'number',
3139
+ body: DescribeSubaccountK8sClusterUserConfigResponseBody,
3140
+ };
3141
+ }
3142
+ }
3143
+ exports.DescribeSubaccountK8sClusterUserConfigResponse = DescribeSubaccountK8sClusterUserConfigResponse;
3144
+ class DescribeTaskInfoResponseBody extends $tea.Model {
3145
+ constructor(map) {
3146
+ super(map);
3147
+ }
3148
+ static names() {
3149
+ return {
3150
+ clusterId: 'cluster_id',
3151
+ created: 'created',
3152
+ currentStage: 'current_stage',
3153
+ error: 'error',
3154
+ events: 'events',
3155
+ parameters: 'parameters',
3156
+ stages: 'stages',
3157
+ state: 'state',
3158
+ target: 'target',
3159
+ taskId: 'task_id',
3160
+ taskResult: 'task_result',
3161
+ taskType: 'task_type',
3162
+ updated: 'updated',
3163
+ };
3164
+ }
3165
+ static types() {
3166
+ return {
3167
+ clusterId: 'string',
3168
+ created: 'string',
3169
+ currentStage: 'string',
3170
+ error: DescribeTaskInfoResponseBodyError,
3171
+ events: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyEvents },
3172
+ parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
3173
+ stages: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyStages },
3174
+ state: 'string',
3175
+ target: DescribeTaskInfoResponseBodyTarget,
3176
+ taskId: 'string',
3177
+ taskResult: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyTaskResult },
3178
+ taskType: 'string',
3179
+ updated: 'string',
3180
+ };
3181
+ }
3182
+ }
3183
+ exports.DescribeTaskInfoResponseBody = DescribeTaskInfoResponseBody;
3184
+ class DescribeTaskInfoResponse extends $tea.Model {
3185
+ constructor(map) {
3186
+ super(map);
3187
+ }
3188
+ static names() {
3189
+ return {
3190
+ headers: 'headers',
3191
+ statusCode: 'statusCode',
3192
+ body: 'body',
3193
+ };
2840
3194
  }
2841
3195
  static types() {
2842
3196
  return {
@@ -2983,6 +3337,26 @@ class DescribeTriggerResponse extends $tea.Model {
2983
3337
  }
2984
3338
  }
2985
3339
  exports.DescribeTriggerResponse = DescribeTriggerResponse;
3340
+ class DescribeUserClusterNamespacesResponse extends $tea.Model {
3341
+ constructor(map) {
3342
+ super(map);
3343
+ }
3344
+ static names() {
3345
+ return {
3346
+ headers: 'headers',
3347
+ statusCode: 'statusCode',
3348
+ body: 'body',
3349
+ };
3350
+ }
3351
+ static types() {
3352
+ return {
3353
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3354
+ statusCode: 'number',
3355
+ body: { 'type': 'array', 'itemType': 'string' },
3356
+ };
3357
+ }
3358
+ }
3359
+ exports.DescribeUserClusterNamespacesResponse = DescribeUserClusterNamespacesResponse;
2986
3360
  class DescribeUserPermissionResponse extends $tea.Model {
2987
3361
  constructor(map) {
2988
3362
  super(map);
@@ -3015,6 +3389,7 @@ class DescribeUserQuotaResponseBody extends $tea.Model {
3015
3389
  clusterQuota: 'cluster_quota',
3016
3390
  edgeImprovedNodepoolQuota: 'edge_improved_nodepool_quota',
3017
3391
  nodeQuota: 'node_quota',
3392
+ quotas: 'quotas',
3018
3393
  };
3019
3394
  }
3020
3395
  static types() {
@@ -3025,6 +3400,7 @@ class DescribeUserQuotaResponseBody extends $tea.Model {
3025
3400
  clusterQuota: 'number',
3026
3401
  edgeImprovedNodepoolQuota: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota,
3027
3402
  nodeQuota: 'number',
3403
+ quotas: { 'type': 'map', 'keyType': 'string', 'valueType': QuotasValue },
3028
3404
  };
3029
3405
  }
3030
3406
  }
@@ -3151,14 +3527,14 @@ class FixNodePoolVulsRequest extends $tea.Model {
3151
3527
  return {
3152
3528
  nodes: 'nodes',
3153
3529
  rolloutPolicy: 'rollout_policy',
3154
- vulList: 'vul_list',
3530
+ vuls: 'vuls',
3155
3531
  };
3156
3532
  }
3157
3533
  static types() {
3158
3534
  return {
3159
3535
  nodes: { 'type': 'array', 'itemType': 'string' },
3160
3536
  rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
3161
- vulList: { 'type': 'array', 'itemType': 'string' },
3537
+ vuls: { 'type': 'array', 'itemType': 'string' },
3162
3538
  };
3163
3539
  }
3164
3540
  }
@@ -4008,6 +4384,7 @@ class RemoveNodePoolNodesRequest extends $tea.Model {
4008
4384
  static names() {
4009
4385
  return {
4010
4386
  drainNode: 'drain_node',
4387
+ instanceIds: 'instance_ids',
4011
4388
  nodes: 'nodes',
4012
4389
  releaseNode: 'release_node',
4013
4390
  };
@@ -4015,6 +4392,7 @@ class RemoveNodePoolNodesRequest extends $tea.Model {
4015
4392
  static types() {
4016
4393
  return {
4017
4394
  drainNode: 'boolean',
4395
+ instanceIds: { 'type': 'array', 'itemType': 'string' },
4018
4396
  nodes: { 'type': 'array', 'itemType': 'string' },
4019
4397
  releaseNode: 'boolean',
4020
4398
  };
@@ -4028,6 +4406,7 @@ class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
4028
4406
  static names() {
4029
4407
  return {
4030
4408
  drainNode: 'drain_node',
4409
+ instanceIdsShrink: 'instance_ids',
4031
4410
  nodesShrink: 'nodes',
4032
4411
  releaseNode: 'release_node',
4033
4412
  };
@@ -4035,6 +4414,7 @@ class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
4035
4414
  static types() {
4036
4415
  return {
4037
4416
  drainNode: 'boolean',
4417
+ instanceIdsShrink: 'string',
4038
4418
  nodesShrink: 'string',
4039
4419
  releaseNode: 'boolean',
4040
4420
  };
@@ -4445,6 +4825,82 @@ class ScaleOutClusterResponse extends $tea.Model {
4445
4825
  }
4446
4826
  }
4447
4827
  exports.ScaleOutClusterResponse = ScaleOutClusterResponse;
4828
+ class ScanClusterVulsResponseBody extends $tea.Model {
4829
+ constructor(map) {
4830
+ super(map);
4831
+ }
4832
+ static names() {
4833
+ return {
4834
+ requestId: 'request_id',
4835
+ taskId: 'task_id',
4836
+ };
4837
+ }
4838
+ static types() {
4839
+ return {
4840
+ requestId: 'string',
4841
+ taskId: 'string',
4842
+ };
4843
+ }
4844
+ }
4845
+ exports.ScanClusterVulsResponseBody = ScanClusterVulsResponseBody;
4846
+ class ScanClusterVulsResponse 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: ScanClusterVulsResponseBody,
4862
+ };
4863
+ }
4864
+ }
4865
+ exports.ScanClusterVulsResponse = ScanClusterVulsResponse;
4866
+ class StartAlertResponseBody extends $tea.Model {
4867
+ constructor(map) {
4868
+ super(map);
4869
+ }
4870
+ static names() {
4871
+ return {
4872
+ msg: 'msg',
4873
+ status: 'status',
4874
+ };
4875
+ }
4876
+ static types() {
4877
+ return {
4878
+ msg: 'string',
4879
+ status: 'boolean',
4880
+ };
4881
+ }
4882
+ }
4883
+ exports.StartAlertResponseBody = StartAlertResponseBody;
4884
+ class StartAlertResponse extends $tea.Model {
4885
+ constructor(map) {
4886
+ super(map);
4887
+ }
4888
+ static names() {
4889
+ return {
4890
+ headers: 'headers',
4891
+ statusCode: 'statusCode',
4892
+ body: 'body',
4893
+ };
4894
+ }
4895
+ static types() {
4896
+ return {
4897
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4898
+ statusCode: 'number',
4899
+ body: StartAlertResponseBody,
4900
+ };
4901
+ }
4902
+ }
4903
+ exports.StartAlertResponse = StartAlertResponse;
4448
4904
  class StartWorkflowRequest extends $tea.Model {
4449
4905
  constructor(map) {
4450
4906
  super(map);
@@ -4533,6 +4989,80 @@ class StartWorkflowResponse extends $tea.Model {
4533
4989
  }
4534
4990
  }
4535
4991
  exports.StartWorkflowResponse = StartWorkflowResponse;
4992
+ class StopAlertResponseBody extends $tea.Model {
4993
+ constructor(map) {
4994
+ super(map);
4995
+ }
4996
+ static names() {
4997
+ return {
4998
+ msg: 'msg',
4999
+ status: 'status',
5000
+ };
5001
+ }
5002
+ static types() {
5003
+ return {
5004
+ msg: 'string',
5005
+ status: 'boolean',
5006
+ };
5007
+ }
5008
+ }
5009
+ exports.StopAlertResponseBody = StopAlertResponseBody;
5010
+ class StopAlertResponse extends $tea.Model {
5011
+ constructor(map) {
5012
+ super(map);
5013
+ }
5014
+ static names() {
5015
+ return {
5016
+ headers: 'headers',
5017
+ statusCode: 'statusCode',
5018
+ body: 'body',
5019
+ };
5020
+ }
5021
+ static types() {
5022
+ return {
5023
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5024
+ statusCode: 'number',
5025
+ body: StopAlertResponseBody,
5026
+ };
5027
+ }
5028
+ }
5029
+ exports.StopAlertResponse = StopAlertResponse;
5030
+ class SyncClusterNodePoolResponseBody extends $tea.Model {
5031
+ constructor(map) {
5032
+ super(map);
5033
+ }
5034
+ static names() {
5035
+ return {
5036
+ requestId: 'RequestId',
5037
+ };
5038
+ }
5039
+ static types() {
5040
+ return {
5041
+ requestId: 'string',
5042
+ };
5043
+ }
5044
+ }
5045
+ exports.SyncClusterNodePoolResponseBody = SyncClusterNodePoolResponseBody;
5046
+ class SyncClusterNodePoolResponse extends $tea.Model {
5047
+ constructor(map) {
5048
+ super(map);
5049
+ }
5050
+ static names() {
5051
+ return {
5052
+ headers: 'headers',
5053
+ statusCode: 'statusCode',
5054
+ body: 'body',
5055
+ };
5056
+ }
5057
+ static types() {
5058
+ return {
5059
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5060
+ statusCode: 'number',
5061
+ body: SyncClusterNodePoolResponseBody,
5062
+ };
5063
+ }
5064
+ }
5065
+ exports.SyncClusterNodePoolResponse = SyncClusterNodePoolResponse;
4536
5066
  class TagResourcesRequest extends $tea.Model {
4537
5067
  constructor(map) {
4538
5068
  super(map);
@@ -4649,6 +5179,30 @@ class UntagResourcesRequest extends $tea.Model {
4649
5179
  }
4650
5180
  }
4651
5181
  exports.UntagResourcesRequest = UntagResourcesRequest;
5182
+ class UntagResourcesShrinkRequest extends $tea.Model {
5183
+ constructor(map) {
5184
+ super(map);
5185
+ }
5186
+ static names() {
5187
+ return {
5188
+ all: 'all',
5189
+ regionId: 'region_id',
5190
+ resourceIdsShrink: 'resource_ids',
5191
+ resourceType: 'resource_type',
5192
+ tagKeysShrink: 'tag_keys',
5193
+ };
5194
+ }
5195
+ static types() {
5196
+ return {
5197
+ all: 'boolean',
5198
+ regionId: 'string',
5199
+ resourceIdsShrink: 'string',
5200
+ resourceType: 'string',
5201
+ tagKeysShrink: 'string',
5202
+ };
5203
+ }
5204
+ }
5205
+ exports.UntagResourcesShrinkRequest = UntagResourcesShrinkRequest;
4652
5206
  class UntagResourcesResponseBody extends $tea.Model {
4653
5207
  constructor(map) {
4654
5208
  super(map);
@@ -4703,25 +5257,29 @@ class UpdateContactGroupForAlertResponse extends $tea.Model {
4703
5257
  }
4704
5258
  }
4705
5259
  exports.UpdateContactGroupForAlertResponse = UpdateContactGroupForAlertResponse;
4706
- class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
5260
+ class UpdateControlPlaneLogRequest extends $tea.Model {
4707
5261
  constructor(map) {
4708
5262
  super(map);
4709
5263
  }
4710
5264
  static names() {
4711
5265
  return {
4712
- expireHour: 'expire_hour',
4713
- user: 'user',
5266
+ aliuid: 'aliuid',
5267
+ components: 'components',
5268
+ logProject: 'log_project',
5269
+ logTtl: 'log_ttl',
4714
5270
  };
4715
5271
  }
4716
5272
  static types() {
4717
5273
  return {
4718
- expireHour: 'number',
4719
- user: 'string',
5274
+ aliuid: 'string',
5275
+ components: { 'type': 'array', 'itemType': 'string' },
5276
+ logProject: 'string',
5277
+ logTtl: 'string',
4720
5278
  };
4721
5279
  }
4722
5280
  }
4723
- exports.UpdateK8sClusterUserConfigExpireRequest = UpdateK8sClusterUserConfigExpireRequest;
4724
- class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
5281
+ exports.UpdateControlPlaneLogRequest = UpdateControlPlaneLogRequest;
5282
+ class UpdateControlPlaneLogResponse extends $tea.Model {
4725
5283
  constructor(map) {
4726
5284
  super(map);
4727
5285
  }
@@ -4738,15 +5296,51 @@ class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
4738
5296
  };
4739
5297
  }
4740
5298
  }
4741
- exports.UpdateK8sClusterUserConfigExpireResponse = UpdateK8sClusterUserConfigExpireResponse;
4742
- class UpdateTemplateRequest extends $tea.Model {
5299
+ exports.UpdateControlPlaneLogResponse = UpdateControlPlaneLogResponse;
5300
+ class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
4743
5301
  constructor(map) {
4744
5302
  super(map);
4745
5303
  }
4746
5304
  static names() {
4747
5305
  return {
4748
- description: 'description',
4749
- name: 'name',
5306
+ expireHour: 'expire_hour',
5307
+ user: 'user',
5308
+ };
5309
+ }
5310
+ static types() {
5311
+ return {
5312
+ expireHour: 'number',
5313
+ user: 'string',
5314
+ };
5315
+ }
5316
+ }
5317
+ exports.UpdateK8sClusterUserConfigExpireRequest = UpdateK8sClusterUserConfigExpireRequest;
5318
+ class UpdateK8sClusterUserConfigExpireResponse extends $tea.Model {
5319
+ constructor(map) {
5320
+ super(map);
5321
+ }
5322
+ static names() {
5323
+ return {
5324
+ headers: 'headers',
5325
+ statusCode: 'statusCode',
5326
+ };
5327
+ }
5328
+ static types() {
5329
+ return {
5330
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5331
+ statusCode: 'number',
5332
+ };
5333
+ }
5334
+ }
5335
+ exports.UpdateK8sClusterUserConfigExpireResponse = UpdateK8sClusterUserConfigExpireResponse;
5336
+ class UpdateTemplateRequest extends $tea.Model {
5337
+ constructor(map) {
5338
+ super(map);
5339
+ }
5340
+ static names() {
5341
+ return {
5342
+ description: 'description',
5343
+ name: 'name',
4750
5344
  tags: 'tags',
4751
5345
  template: 'template',
4752
5346
  templateType: 'template_type',
@@ -4788,6 +5382,7 @@ class UpgradeClusterRequest extends $tea.Model {
4788
5382
  static names() {
4789
5383
  return {
4790
5384
  componentName: 'component_name',
5385
+ masterOnly: 'master_only',
4791
5386
  nextVersion: 'next_version',
4792
5387
  version: 'version',
4793
5388
  };
@@ -4795,6 +5390,7 @@ class UpgradeClusterRequest extends $tea.Model {
4795
5390
  static types() {
4796
5391
  return {
4797
5392
  componentName: 'string',
5393
+ masterOnly: 'boolean',
4798
5394
  nextVersion: 'string',
4799
5395
  version: 'string',
4800
5396
  };
@@ -4861,6 +5457,7 @@ class UpgradeClusterNodepoolRequest extends $tea.Model {
4861
5457
  return {
4862
5458
  imageId: 'image_id',
4863
5459
  kubernetesVersion: 'kubernetes_version',
5460
+ runtimeType: 'runtime_type',
4864
5461
  runtimeVersion: 'runtime_version',
4865
5462
  };
4866
5463
  }
@@ -4868,6 +5465,7 @@ class UpgradeClusterNodepoolRequest extends $tea.Model {
4868
5465
  return {
4869
5466
  imageId: 'string',
4870
5467
  kubernetesVersion: 'string',
5468
+ runtimeType: 'string',
4871
5469
  runtimeVersion: 'string',
4872
5470
  };
4873
5471
  }
@@ -4880,35 +5478,337 @@ class UpgradeClusterNodepoolResponseBody extends $tea.Model {
4880
5478
  static names() {
4881
5479
  return {
4882
5480
  requestId: 'RequestId',
5481
+ taskId: 'task_id',
5482
+ };
5483
+ }
5484
+ static types() {
5485
+ return {
5486
+ requestId: 'string',
5487
+ taskId: 'string',
5488
+ };
5489
+ }
5490
+ }
5491
+ exports.UpgradeClusterNodepoolResponseBody = UpgradeClusterNodepoolResponseBody;
5492
+ class UpgradeClusterNodepoolResponse extends $tea.Model {
5493
+ constructor(map) {
5494
+ super(map);
5495
+ }
5496
+ static names() {
5497
+ return {
5498
+ headers: 'headers',
5499
+ statusCode: 'statusCode',
5500
+ body: 'body',
5501
+ };
5502
+ }
5503
+ static types() {
5504
+ return {
5505
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5506
+ statusCode: 'number',
5507
+ body: UpgradeClusterNodepoolResponseBody,
5508
+ };
5509
+ }
5510
+ }
5511
+ exports.UpgradeClusterNodepoolResponse = UpgradeClusterNodepoolResponse;
5512
+ class NodepoolAutoScaling extends $tea.Model {
5513
+ constructor(map) {
5514
+ super(map);
5515
+ }
5516
+ static names() {
5517
+ return {
5518
+ eipBandwidth: 'eip_bandwidth',
5519
+ eipInternetChargeType: 'eip_internet_charge_type',
5520
+ enable: 'enable',
5521
+ isBondEip: 'is_bond_eip',
5522
+ maxInstances: 'max_instances',
5523
+ minInstances: 'min_instances',
5524
+ type: 'type',
5525
+ };
5526
+ }
5527
+ static types() {
5528
+ return {
5529
+ eipBandwidth: 'number',
5530
+ eipInternetChargeType: 'string',
5531
+ enable: 'boolean',
5532
+ isBondEip: 'boolean',
5533
+ maxInstances: 'number',
5534
+ minInstances: 'number',
5535
+ type: 'string',
5536
+ };
5537
+ }
5538
+ }
5539
+ exports.NodepoolAutoScaling = NodepoolAutoScaling;
5540
+ class NodepoolInterconnectConfig extends $tea.Model {
5541
+ constructor(map) {
5542
+ super(map);
5543
+ }
5544
+ static names() {
5545
+ return {
5546
+ bandwidth: 'bandwidth',
5547
+ ccnId: 'ccn_id',
5548
+ ccnRegionId: 'ccn_region_id',
5549
+ cenId: 'cen_id',
5550
+ improvedPeriod: 'improved_period',
5551
+ };
5552
+ }
5553
+ static types() {
5554
+ return {
5555
+ bandwidth: 'number',
5556
+ ccnId: 'string',
5557
+ ccnRegionId: 'string',
5558
+ cenId: 'string',
5559
+ improvedPeriod: 'string',
5560
+ };
5561
+ }
5562
+ }
5563
+ exports.NodepoolInterconnectConfig = NodepoolInterconnectConfig;
5564
+ class NodepoolKubernetesConfig extends $tea.Model {
5565
+ constructor(map) {
5566
+ super(map);
5567
+ }
5568
+ static names() {
5569
+ return {
5570
+ cmsEnabled: 'cms_enabled',
5571
+ cpuPolicy: 'cpu_policy',
5572
+ labels: 'labels',
5573
+ nodeNameMode: 'node_name_mode',
5574
+ runtime: 'runtime',
5575
+ runtimeVersion: 'runtime_version',
5576
+ taints: 'taints',
5577
+ userData: 'user_data',
5578
+ };
5579
+ }
5580
+ static types() {
5581
+ return {
5582
+ cmsEnabled: 'boolean',
5583
+ cpuPolicy: 'string',
5584
+ labels: { 'type': 'array', 'itemType': Tag },
5585
+ nodeNameMode: 'string',
5586
+ runtime: 'string',
5587
+ runtimeVersion: 'string',
5588
+ taints: { 'type': 'array', 'itemType': Taint },
5589
+ userData: 'string',
5590
+ };
5591
+ }
5592
+ }
5593
+ exports.NodepoolKubernetesConfig = NodepoolKubernetesConfig;
5594
+ class NodepoolManagementUpgradeConfig extends $tea.Model {
5595
+ constructor(map) {
5596
+ super(map);
5597
+ }
5598
+ static names() {
5599
+ return {
5600
+ autoUpgrade: 'auto_upgrade',
5601
+ maxUnavailable: 'max_unavailable',
5602
+ surge: 'surge',
5603
+ surgePercentage: 'surge_percentage',
5604
+ };
5605
+ }
5606
+ static types() {
5607
+ return {
5608
+ autoUpgrade: 'boolean',
5609
+ maxUnavailable: 'number',
5610
+ surge: 'number',
5611
+ surgePercentage: 'number',
5612
+ };
5613
+ }
5614
+ }
5615
+ exports.NodepoolManagementUpgradeConfig = NodepoolManagementUpgradeConfig;
5616
+ class NodepoolManagement extends $tea.Model {
5617
+ constructor(map) {
5618
+ super(map);
5619
+ }
5620
+ static names() {
5621
+ return {
5622
+ autoRepair: 'auto_repair',
5623
+ enable: 'enable',
5624
+ upgradeConfig: 'upgrade_config',
5625
+ };
5626
+ }
5627
+ static types() {
5628
+ return {
5629
+ autoRepair: 'boolean',
5630
+ enable: 'boolean',
5631
+ upgradeConfig: NodepoolManagementUpgradeConfig,
5632
+ };
5633
+ }
5634
+ }
5635
+ exports.NodepoolManagement = NodepoolManagement;
5636
+ class NodepoolNodepoolInfo extends $tea.Model {
5637
+ constructor(map) {
5638
+ super(map);
5639
+ }
5640
+ static names() {
5641
+ return {
5642
+ name: 'name',
5643
+ resourceGroupId: 'resource_group_id',
5644
+ type: 'type',
5645
+ };
5646
+ }
5647
+ static types() {
5648
+ return {
5649
+ name: 'string',
5650
+ resourceGroupId: 'string',
5651
+ type: 'string',
5652
+ };
5653
+ }
5654
+ }
5655
+ exports.NodepoolNodepoolInfo = NodepoolNodepoolInfo;
5656
+ class NodepoolScalingGroupPrivatePoolOptions extends $tea.Model {
5657
+ constructor(map) {
5658
+ super(map);
5659
+ }
5660
+ static names() {
5661
+ return {
5662
+ id: 'id',
5663
+ matchCriteria: 'match_criteria',
5664
+ };
5665
+ }
5666
+ static types() {
5667
+ return {
5668
+ id: 'string',
5669
+ matchCriteria: 'string',
5670
+ };
5671
+ }
5672
+ }
5673
+ exports.NodepoolScalingGroupPrivatePoolOptions = NodepoolScalingGroupPrivatePoolOptions;
5674
+ class NodepoolScalingGroupSpotPriceLimit extends $tea.Model {
5675
+ constructor(map) {
5676
+ super(map);
5677
+ }
5678
+ static names() {
5679
+ return {
5680
+ instanceType: 'instance_type',
5681
+ priceLimit: 'price_limit',
5682
+ };
5683
+ }
5684
+ static types() {
5685
+ return {
5686
+ instanceType: 'string',
5687
+ priceLimit: 'string',
5688
+ };
5689
+ }
5690
+ }
5691
+ exports.NodepoolScalingGroupSpotPriceLimit = NodepoolScalingGroupSpotPriceLimit;
5692
+ class NodepoolScalingGroupTags extends $tea.Model {
5693
+ constructor(map) {
5694
+ super(map);
5695
+ }
5696
+ static names() {
5697
+ return {
5698
+ key: 'key',
5699
+ value: 'value',
5700
+ };
5701
+ }
5702
+ static types() {
5703
+ return {
5704
+ key: 'string',
5705
+ value: 'string',
5706
+ };
5707
+ }
5708
+ }
5709
+ exports.NodepoolScalingGroupTags = NodepoolScalingGroupTags;
5710
+ class NodepoolScalingGroup extends $tea.Model {
5711
+ constructor(map) {
5712
+ super(map);
5713
+ }
5714
+ static names() {
5715
+ return {
5716
+ autoRenew: 'auto_renew',
5717
+ autoRenewPeriod: 'auto_renew_period',
5718
+ compensateWithOnDemand: 'compensate_with_on_demand',
5719
+ dataDisks: 'data_disks',
5720
+ deploymentsetId: 'deploymentset_id',
5721
+ desiredSize: 'desired_size',
5722
+ imageId: 'image_id',
5723
+ imageType: 'image_type',
5724
+ instanceChargeType: 'instance_charge_type',
5725
+ instanceTypes: 'instance_types',
5726
+ internetChargeType: 'internet_charge_type',
5727
+ internetMaxBandwidthOut: 'internet_max_bandwidth_out',
5728
+ keyPair: 'key_pair',
5729
+ loginPassword: 'login_password',
5730
+ multiAzPolicy: 'multi_az_policy',
5731
+ onDemandBaseCapacity: 'on_demand_base_capacity',
5732
+ onDemandPercentageAboveBaseCapacity: 'on_demand_percentage_above_base_capacity',
5733
+ period: 'period',
5734
+ periodUnit: 'period_unit',
5735
+ platform: 'platform',
5736
+ privatePoolOptions: 'private_pool_options',
5737
+ rdsInstances: 'rds_instances',
5738
+ scalingPolicy: 'scaling_policy',
5739
+ securityGroupId: 'security_group_id',
5740
+ securityGroupIds: 'security_group_ids',
5741
+ spotInstancePools: 'spot_instance_pools',
5742
+ spotInstanceRemedy: 'spot_instance_remedy',
5743
+ spotPriceLimit: 'spot_price_limit',
5744
+ spotStrategy: 'spot_strategy',
5745
+ systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
5746
+ systemDiskCategory: 'system_disk_category',
5747
+ systemDiskPerformanceLevel: 'system_disk_performance_level',
5748
+ systemDiskProvisionedIops: 'system_disk_provisioned_iops',
5749
+ systemDiskSize: 'system_disk_size',
5750
+ tags: 'tags',
5751
+ vswitchIds: 'vswitch_ids',
4883
5752
  };
4884
5753
  }
4885
5754
  static types() {
4886
5755
  return {
4887
- requestId: 'string',
5756
+ autoRenew: 'boolean',
5757
+ autoRenewPeriod: 'number',
5758
+ compensateWithOnDemand: 'boolean',
5759
+ dataDisks: { 'type': 'array', 'itemType': DataDisk },
5760
+ deploymentsetId: 'string',
5761
+ desiredSize: 'number',
5762
+ imageId: 'string',
5763
+ imageType: 'string',
5764
+ instanceChargeType: 'string',
5765
+ instanceTypes: { 'type': 'array', 'itemType': 'string' },
5766
+ internetChargeType: 'string',
5767
+ internetMaxBandwidthOut: 'number',
5768
+ keyPair: 'string',
5769
+ loginPassword: 'string',
5770
+ multiAzPolicy: 'string',
5771
+ onDemandBaseCapacity: 'number',
5772
+ onDemandPercentageAboveBaseCapacity: 'number',
5773
+ period: 'number',
5774
+ periodUnit: 'string',
5775
+ platform: 'string',
5776
+ privatePoolOptions: NodepoolScalingGroupPrivatePoolOptions,
5777
+ rdsInstances: { 'type': 'array', 'itemType': 'string' },
5778
+ scalingPolicy: 'string',
5779
+ securityGroupId: 'string',
5780
+ securityGroupIds: { 'type': 'array', 'itemType': 'string' },
5781
+ spotInstancePools: 'number',
5782
+ spotInstanceRemedy: 'boolean',
5783
+ spotPriceLimit: { 'type': 'array', 'itemType': NodepoolScalingGroupSpotPriceLimit },
5784
+ spotStrategy: 'string',
5785
+ systemDiskBurstingEnabled: 'boolean',
5786
+ systemDiskCategory: 'string',
5787
+ systemDiskPerformanceLevel: 'string',
5788
+ systemDiskProvisionedIops: 'number',
5789
+ systemDiskSize: 'number',
5790
+ tags: { 'type': 'array', 'itemType': NodepoolScalingGroupTags },
5791
+ vswitchIds: { 'type': 'array', 'itemType': 'string' },
4888
5792
  };
4889
5793
  }
4890
5794
  }
4891
- exports.UpgradeClusterNodepoolResponseBody = UpgradeClusterNodepoolResponseBody;
4892
- class UpgradeClusterNodepoolResponse extends $tea.Model {
5795
+ exports.NodepoolScalingGroup = NodepoolScalingGroup;
5796
+ class NodepoolTeeConfig extends $tea.Model {
4893
5797
  constructor(map) {
4894
5798
  super(map);
4895
5799
  }
4896
5800
  static names() {
4897
5801
  return {
4898
- headers: 'headers',
4899
- statusCode: 'statusCode',
4900
- body: 'body',
5802
+ teeEnable: 'tee_enable',
4901
5803
  };
4902
5804
  }
4903
5805
  static types() {
4904
5806
  return {
4905
- headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4906
- statusCode: 'number',
4907
- body: UpgradeClusterNodepoolResponseBody,
5807
+ teeEnable: 'boolean',
4908
5808
  };
4909
5809
  }
4910
5810
  }
4911
- exports.UpgradeClusterNodepoolResponse = UpgradeClusterNodepoolResponse;
5811
+ exports.NodepoolTeeConfig = NodepoolTeeConfig;
4912
5812
  class AttachInstancesResponseBodyList extends $tea.Model {
4913
5813
  constructor(map) {
4914
5814
  super(map);
@@ -5095,6 +5995,24 @@ class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
5095
5995
  }
5096
5996
  }
5097
5997
  exports.CreateClusterNodePoolRequestNodepoolInfo = CreateClusterNodePoolRequestNodepoolInfo;
5998
+ class CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions extends $tea.Model {
5999
+ constructor(map) {
6000
+ super(map);
6001
+ }
6002
+ static names() {
6003
+ return {
6004
+ id: 'id',
6005
+ matchCriteria: 'match_criteria',
6006
+ };
6007
+ }
6008
+ static types() {
6009
+ return {
6010
+ id: 'string',
6011
+ matchCriteria: 'string',
6012
+ };
6013
+ }
6014
+ }
6015
+ exports.CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions = CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions;
5098
6016
  class CreateClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
5099
6017
  constructor(map) {
5100
6018
  super(map);
@@ -5157,6 +6075,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
5157
6075
  period: 'period',
5158
6076
  periodUnit: 'period_unit',
5159
6077
  platform: 'platform',
6078
+ privatePoolOptions: 'private_pool_options',
5160
6079
  rdsInstances: 'rds_instances',
5161
6080
  scalingPolicy: 'scaling_policy',
5162
6081
  securityGroupId: 'security_group_id',
@@ -5194,6 +6113,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
5194
6113
  period: 'number',
5195
6114
  periodUnit: 'string',
5196
6115
  platform: 'string',
6116
+ privatePoolOptions: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions,
5197
6117
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
5198
6118
  scalingPolicy: 'string',
5199
6119
  securityGroupId: 'string',
@@ -5507,6 +6427,24 @@ class DescribeClusterNodePoolDetailResponseBodyNodepoolInfo extends $tea.Model {
5507
6427
  }
5508
6428
  }
5509
6429
  exports.DescribeClusterNodePoolDetailResponseBodyNodepoolInfo = DescribeClusterNodePoolDetailResponseBodyNodepoolInfo;
6430
+ class DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions extends $tea.Model {
6431
+ constructor(map) {
6432
+ super(map);
6433
+ }
6434
+ static names() {
6435
+ return {
6436
+ id: 'id',
6437
+ matchCriteria: 'match_criteria',
6438
+ };
6439
+ }
6440
+ static types() {
6441
+ return {
6442
+ id: 'string',
6443
+ matchCriteria: 'string',
6444
+ };
6445
+ }
6446
+ }
6447
+ exports.DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions = DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions;
5510
6448
  class DescribeClusterNodePoolDetailResponseBodyScalingGroupSpotPriceLimit extends $tea.Model {
5511
6449
  constructor(map) {
5512
6450
  super(map);
@@ -5550,6 +6488,7 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
5550
6488
  period: 'period',
5551
6489
  periodUnit: 'period_unit',
5552
6490
  platform: 'platform',
6491
+ privatePoolOptions: 'private_pool_options',
5553
6492
  ramPolicy: 'ram_policy',
5554
6493
  rdsInstances: 'rds_instances',
5555
6494
  scalingGroupId: 'scaling_group_id',
@@ -5588,6 +6527,7 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
5588
6527
  period: 'number',
5589
6528
  periodUnit: 'string',
5590
6529
  platform: 'string',
6530
+ privatePoolOptions: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions,
5591
6531
  ramPolicy: 'string',
5592
6532
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
5593
6533
  scalingGroupId: 'string',
@@ -5807,6 +6747,24 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo extends $tea.Mod
5807
6747
  }
5808
6748
  }
5809
6749
  exports.DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo = DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo;
6750
+ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions extends $tea.Model {
6751
+ constructor(map) {
6752
+ super(map);
6753
+ }
6754
+ static names() {
6755
+ return {
6756
+ id: 'id',
6757
+ matchCriteria: 'match_criteria',
6758
+ };
6759
+ }
6760
+ static types() {
6761
+ return {
6762
+ id: 'string',
6763
+ matchCriteria: 'string',
6764
+ };
6765
+ }
6766
+ }
6767
+ exports.DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions = DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions;
5810
6768
  class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupSpotPriceLimit extends $tea.Model {
5811
6769
  constructor(map) {
5812
6770
  super(map);
@@ -5850,6 +6808,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
5850
6808
  period: 'period',
5851
6809
  periodUnit: 'period_unit',
5852
6810
  platform: 'platform',
6811
+ privatePoolOptions: 'private_pool_options',
5853
6812
  ramPolicy: 'ram_policy',
5854
6813
  rdsInstances: 'rds_instances',
5855
6814
  scalingGroupId: 'scaling_group_id',
@@ -5888,6 +6847,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
5888
6847
  period: 'number',
5889
6848
  periodUnit: 'string',
5890
6849
  platform: 'string',
6850
+ privatePoolOptions: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions,
5891
6851
  ramPolicy: 'string',
5892
6852
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
5893
6853
  scalingGroupId: 'string',
@@ -6153,6 +7113,36 @@ class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
6153
7113
  }
6154
7114
  }
6155
7115
  exports.DescribeClusterTasksResponseBodyTasks = DescribeClusterTasksResponseBodyTasks;
7116
+ class DescribeClusterVulsResponseBodyVulRecords extends $tea.Model {
7117
+ constructor(map) {
7118
+ super(map);
7119
+ }
7120
+ static names() {
7121
+ return {
7122
+ cveList: 'cve_list',
7123
+ necessity: 'necessity',
7124
+ nodeCount: 'node_count',
7125
+ nodepoolId: 'nodepool_id',
7126
+ nodepoolName: 'nodepool_name',
7127
+ vulAliasName: 'vul_alias_name',
7128
+ vulName: 'vul_name',
7129
+ vulType: 'vul_type',
7130
+ };
7131
+ }
7132
+ static types() {
7133
+ return {
7134
+ cveList: { 'type': 'array', 'itemType': 'string' },
7135
+ necessity: 'string',
7136
+ nodeCount: 'number',
7137
+ nodepoolId: 'string',
7138
+ nodepoolName: 'string',
7139
+ vulAliasName: 'string',
7140
+ vulName: 'string',
7141
+ vulType: 'string',
7142
+ };
7143
+ }
7144
+ }
7145
+ exports.DescribeClusterVulsResponseBodyVulRecords = DescribeClusterVulsResponseBodyVulRecords;
6156
7146
  class DescribeClustersResponseBodyTags extends $tea.Model {
6157
7147
  constructor(map) {
6158
7148
  super(map);
@@ -6528,7 +7518,9 @@ class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
6528
7518
  metaData: 'meta_data',
6529
7519
  runtimes: 'runtimes',
6530
7520
  version: 'version',
6531
- multiAz: 'multi_az',
7521
+ releaseDate: 'release_date',
7522
+ expirationDate: 'expiration_date',
7523
+ creatable: 'creatable',
6532
7524
  };
6533
7525
  }
6534
7526
  static types() {
@@ -6538,7 +7530,9 @@ class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
6538
7530
  metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
6539
7531
  runtimes: { 'type': 'array', 'itemType': Runtime },
6540
7532
  version: 'string',
6541
- multiAz: 'string',
7533
+ releaseDate: 'string',
7534
+ expirationDate: 'string',
7535
+ creatable: 'boolean',
6542
7536
  };
6543
7537
  }
6544
7538
  }
@@ -6572,12 +7566,14 @@ class DescribeNodePoolVulsResponseBodyVulRecords extends $tea.Model {
6572
7566
  static names() {
6573
7567
  return {
6574
7568
  instanceId: 'instance_id',
7569
+ nodeName: 'node_name',
6575
7570
  vulList: 'vul_list',
6576
7571
  };
6577
7572
  }
6578
7573
  static types() {
6579
7574
  return {
6580
7575
  instanceId: 'string',
7576
+ nodeName: 'string',
6581
7577
  vulList: { 'type': 'array', 'itemType': DescribeNodePoolVulsResponseBodyVulRecordsVulList },
6582
7578
  };
6583
7579
  }
@@ -7407,6 +8403,24 @@ class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
7407
8403
  }
7408
8404
  }
7409
8405
  exports.ModifyClusterNodePoolRequestNodepoolInfo = ModifyClusterNodePoolRequestNodepoolInfo;
8406
+ class ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions extends $tea.Model {
8407
+ constructor(map) {
8408
+ super(map);
8409
+ }
8410
+ static names() {
8411
+ return {
8412
+ id: 'id',
8413
+ matchCriteria: 'match_criteria',
8414
+ };
8415
+ }
8416
+ static types() {
8417
+ return {
8418
+ id: 'string',
8419
+ matchCriteria: 'string',
8420
+ };
8421
+ }
8422
+ }
8423
+ exports.ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions = ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions;
7410
8424
  class ModifyClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
7411
8425
  constructor(map) {
7412
8426
  super(map);
@@ -7449,6 +8463,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
7449
8463
  period: 'period',
7450
8464
  periodUnit: 'period_unit',
7451
8465
  platform: 'platform',
8466
+ privatePoolOptions: 'private_pool_options',
7452
8467
  rdsInstances: 'rds_instances',
7453
8468
  scalingPolicy: 'scaling_policy',
7454
8469
  spotInstancePools: 'spot_instance_pools',
@@ -7482,6 +8497,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
7482
8497
  period: 'number',
7483
8498
  periodUnit: 'string',
7484
8499
  platform: 'string',
8500
+ privatePoolOptions: ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions,
7485
8501
  rdsInstances: { 'type': 'array', 'itemType': 'string' },
7486
8502
  scalingPolicy: 'string',
7487
8503
  spotInstancePools: 'number',
@@ -7672,6 +8688,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
7672
8688
  componentName: 'component_name',
7673
8689
  config: 'config',
7674
8690
  nextVersion: 'next_version',
8691
+ policy: 'policy',
7675
8692
  version: 'version',
7676
8693
  };
7677
8694
  }
@@ -7680,6 +8697,7 @@ class UpgradeClusterAddonsRequestBody extends $tea.Model {
7680
8697
  componentName: 'string',
7681
8698
  config: 'string',
7682
8699
  nextVersion: 'string',
8700
+ policy: 'string',
7683
8701
  version: 'string',
7684
8702
  };
7685
8703
  }
@@ -7734,11 +8752,6 @@ class Client extends openapi_client_1.default {
7734
8752
  }
7735
8753
  return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
7736
8754
  }
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
8755
  async attachInstancesWithOptions(ClusterId, request, headers, runtime) {
7743
8756
  tea_util_1.default.validateModel(request);
7744
8757
  let body = {};
@@ -7772,7 +8785,7 @@ class Client extends openapi_client_1.default {
7772
8785
  if (!tea_util_1.default.isUnset(request.rdsInstances)) {
7773
8786
  body["rds_instances"] = request.rdsInstances;
7774
8787
  }
7775
- if (!tea_util_1.default.isUnset($tea.toMap(request.runtime))) {
8788
+ if (!tea_util_1.default.isUnset(request.runtime)) {
7776
8789
  body["runtime"] = request.runtime;
7777
8790
  }
7778
8791
  if (!tea_util_1.default.isUnset(request.tags)) {
@@ -7798,10 +8811,47 @@ class Client extends openapi_client_1.default {
7798
8811
  });
7799
8812
  return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
7800
8813
  }
7801
- async cancelClusterUpgrade(ClusterId) {
8814
+ async attachInstances(ClusterId, request) {
7802
8815
  let runtime = new $Util.RuntimeOptions({});
7803
8816
  let headers = {};
7804
- return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
8817
+ return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
8818
+ }
8819
+ async attachInstancesToNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
8820
+ tea_util_1.default.validateModel(request);
8821
+ let body = {};
8822
+ if (!tea_util_1.default.isUnset(request.formatDisk)) {
8823
+ body["format_disk"] = request.formatDisk;
8824
+ }
8825
+ if (!tea_util_1.default.isUnset(request.instances)) {
8826
+ body["instances"] = request.instances;
8827
+ }
8828
+ if (!tea_util_1.default.isUnset(request.keepInstanceName)) {
8829
+ body["keep_instance_name"] = request.keepInstanceName;
8830
+ }
8831
+ if (!tea_util_1.default.isUnset(request.password)) {
8832
+ body["password"] = request.password;
8833
+ }
8834
+ let req = new $OpenApi.OpenApiRequest({
8835
+ headers: headers,
8836
+ body: openapi_util_1.default.parseToMap(body),
8837
+ });
8838
+ let params = new $OpenApi.Params({
8839
+ action: "AttachInstancesToNodePool",
8840
+ version: "2015-12-15",
8841
+ protocol: "HTTPS",
8842
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/nodepools/${openapi_util_1.default.getEncodeParam(NodepoolId)}/attach`,
8843
+ method: "POST",
8844
+ authType: "AK",
8845
+ style: "ROA",
8846
+ reqBodyType: "json",
8847
+ bodyType: "json",
8848
+ });
8849
+ return $tea.cast(await this.callApi(params, req, runtime), new AttachInstancesToNodePoolResponse({}));
8850
+ }
8851
+ async attachInstancesToNodePool(ClusterId, NodepoolId, request) {
8852
+ let runtime = new $Util.RuntimeOptions({});
8853
+ let headers = {};
8854
+ return await this.attachInstancesToNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
7805
8855
  }
7806
8856
  async cancelClusterUpgradeWithOptions(ClusterId, headers, runtime) {
7807
8857
  let req = new $OpenApi.OpenApiRequest({
@@ -7820,10 +8870,10 @@ class Client extends openapi_client_1.default {
7820
8870
  });
7821
8871
  return $tea.cast(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
7822
8872
  }
7823
- async cancelComponentUpgrade(clusterId, componentId) {
8873
+ async cancelClusterUpgrade(ClusterId) {
7824
8874
  let runtime = new $Util.RuntimeOptions({});
7825
8875
  let headers = {};
7826
- return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
8876
+ return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
7827
8877
  }
7828
8878
  async cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime) {
7829
8879
  let req = new $OpenApi.OpenApiRequest({
@@ -7842,10 +8892,10 @@ class Client extends openapi_client_1.default {
7842
8892
  });
7843
8893
  return $tea.cast(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
7844
8894
  }
7845
- async cancelTask(taskId) {
8895
+ async cancelComponentUpgrade(clusterId, componentId) {
7846
8896
  let runtime = new $Util.RuntimeOptions({});
7847
8897
  let headers = {};
7848
- return await this.cancelTaskWithOptions(taskId, headers, runtime);
8898
+ return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
7849
8899
  }
7850
8900
  async cancelTaskWithOptions(taskId, headers, runtime) {
7851
8901
  let req = new $OpenApi.OpenApiRequest({
@@ -7864,10 +8914,10 @@ class Client extends openapi_client_1.default {
7864
8914
  });
7865
8915
  return $tea.cast(await this.callApi(params, req, runtime), new CancelTaskResponse({}));
7866
8916
  }
7867
- async cancelWorkflow(workflowName, request) {
8917
+ async cancelTask(taskId) {
7868
8918
  let runtime = new $Util.RuntimeOptions({});
7869
8919
  let headers = {};
7870
- return await this.cancelWorkflowWithOptions(workflowName, request, headers, runtime);
8920
+ return await this.cancelTaskWithOptions(taskId, headers, runtime);
7871
8921
  }
7872
8922
  async cancelWorkflowWithOptions(workflowName, request, headers, runtime) {
7873
8923
  tea_util_1.default.validateModel(request);
@@ -7892,10 +8942,32 @@ class Client extends openapi_client_1.default {
7892
8942
  });
7893
8943
  return $tea.cast(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
7894
8944
  }
7895
- async createAutoscalingConfig(ClusterId, request) {
8945
+ async cancelWorkflow(workflowName, request) {
7896
8946
  let runtime = new $Util.RuntimeOptions({});
7897
8947
  let headers = {};
7898
- return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
8948
+ return await this.cancelWorkflowWithOptions(workflowName, request, headers, runtime);
8949
+ }
8950
+ async checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime) {
8951
+ let req = new $OpenApi.OpenApiRequest({
8952
+ headers: headers,
8953
+ });
8954
+ let params = new $OpenApi.Params({
8955
+ action: "CheckControlPlaneLogEnable",
8956
+ version: "2015-12-15",
8957
+ protocol: "HTTPS",
8958
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/controlplanelog`,
8959
+ method: "GET",
8960
+ authType: "AK",
8961
+ style: "ROA",
8962
+ reqBodyType: "json",
8963
+ bodyType: "json",
8964
+ });
8965
+ return $tea.cast(await this.callApi(params, req, runtime), new CheckControlPlaneLogEnableResponse({}));
8966
+ }
8967
+ async checkControlPlaneLogEnable(ClusterId) {
8968
+ let runtime = new $Util.RuntimeOptions({});
8969
+ let headers = {};
8970
+ return await this.checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime);
7899
8971
  }
7900
8972
  async createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime) {
7901
8973
  tea_util_1.default.validateModel(request);
@@ -7903,18 +8975,39 @@ class Client extends openapi_client_1.default {
7903
8975
  if (!tea_util_1.default.isUnset(request.coolDownDuration)) {
7904
8976
  body["cool_down_duration"] = request.coolDownDuration;
7905
8977
  }
8978
+ if (!tea_util_1.default.isUnset(request.daemonsetEvictionForNodes)) {
8979
+ body["daemonset_eviction_for_nodes"] = request.daemonsetEvictionForNodes;
8980
+ }
7906
8981
  if (!tea_util_1.default.isUnset(request.expander)) {
7907
8982
  body["expander"] = request.expander;
7908
8983
  }
7909
8984
  if (!tea_util_1.default.isUnset(request.gpuUtilizationThreshold)) {
7910
8985
  body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
7911
8986
  }
8987
+ if (!tea_util_1.default.isUnset(request.maxGracefulTerminationSec)) {
8988
+ body["max_graceful_termination_sec"] = request.maxGracefulTerminationSec;
8989
+ }
8990
+ if (!tea_util_1.default.isUnset(request.minReplicaCount)) {
8991
+ body["min_replica_count"] = request.minReplicaCount;
8992
+ }
8993
+ if (!tea_util_1.default.isUnset(request.recycleNodeDeletionEnabled)) {
8994
+ body["recycle_node_deletion_enabled"] = request.recycleNodeDeletionEnabled;
8995
+ }
7912
8996
  if (!tea_util_1.default.isUnset(request.scaleDownEnabled)) {
7913
8997
  body["scale_down_enabled"] = request.scaleDownEnabled;
7914
8998
  }
8999
+ if (!tea_util_1.default.isUnset(request.scaleUpFromZero)) {
9000
+ body["scale_up_from_zero"] = request.scaleUpFromZero;
9001
+ }
7915
9002
  if (!tea_util_1.default.isUnset(request.scanInterval)) {
7916
9003
  body["scan_interval"] = request.scanInterval;
7917
9004
  }
9005
+ if (!tea_util_1.default.isUnset(request.skipNodesWithLocalStorage)) {
9006
+ body["skip_nodes_with_local_storage"] = request.skipNodesWithLocalStorage;
9007
+ }
9008
+ if (!tea_util_1.default.isUnset(request.skipNodesWithSystemPods)) {
9009
+ body["skip_nodes_with_system_pods"] = request.skipNodesWithSystemPods;
9010
+ }
7918
9011
  if (!tea_util_1.default.isUnset(request.unneededDuration)) {
7919
9012
  body["unneeded_duration"] = request.unneededDuration;
7920
9013
  }
@@ -7938,10 +9031,10 @@ class Client extends openapi_client_1.default {
7938
9031
  });
7939
9032
  return $tea.cast(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
7940
9033
  }
7941
- async createCluster(request) {
9034
+ async createAutoscalingConfig(ClusterId, request) {
7942
9035
  let runtime = new $Util.RuntimeOptions({});
7943
9036
  let headers = {};
7944
- return await this.createClusterWithOptions(request, headers, runtime);
9037
+ return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
7945
9038
  }
7946
9039
  async createClusterWithOptions(request, headers, runtime) {
7947
9040
  tea_util_1.default.validateModel(request);
@@ -8123,7 +9216,7 @@ class Client extends openapi_client_1.default {
8123
9216
  if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
8124
9217
  body["resource_group_id"] = request.resourceGroupId;
8125
9218
  }
8126
- if (!tea_util_1.default.isUnset($tea.toMap(request.runtime))) {
9219
+ if (!tea_util_1.default.isUnset(request.runtime)) {
8127
9220
  body["runtime"] = request.runtime;
8128
9221
  }
8129
9222
  if (!tea_util_1.default.isUnset(request.securityGroupId)) {
@@ -8227,42 +9320,42 @@ class Client extends openapi_client_1.default {
8227
9320
  });
8228
9321
  return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
8229
9322
  }
8230
- async createClusterNodePool(ClusterId, request) {
9323
+ async createCluster(request) {
8231
9324
  let runtime = new $Util.RuntimeOptions({});
8232
9325
  let headers = {};
8233
- return await this.createClusterNodePoolWithOptions(ClusterId, request, headers, runtime);
9326
+ return await this.createClusterWithOptions(request, headers, runtime);
8234
9327
  }
8235
9328
  async createClusterNodePoolWithOptions(ClusterId, request, headers, runtime) {
8236
9329
  tea_util_1.default.validateModel(request);
8237
9330
  let body = {};
8238
- if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
9331
+ if (!tea_util_1.default.isUnset(request.autoScaling)) {
8239
9332
  body["auto_scaling"] = request.autoScaling;
8240
9333
  }
8241
9334
  if (!tea_util_1.default.isUnset(request.count)) {
8242
9335
  body["count"] = request.count;
8243
9336
  }
8244
- if (!tea_util_1.default.isUnset($tea.toMap(request.interconnectConfig))) {
9337
+ if (!tea_util_1.default.isUnset(request.interconnectConfig)) {
8245
9338
  body["interconnect_config"] = request.interconnectConfig;
8246
9339
  }
8247
9340
  if (!tea_util_1.default.isUnset(request.interconnectMode)) {
8248
9341
  body["interconnect_mode"] = request.interconnectMode;
8249
9342
  }
8250
- if (!tea_util_1.default.isUnset($tea.toMap(request.kubernetesConfig))) {
9343
+ if (!tea_util_1.default.isUnset(request.kubernetesConfig)) {
8251
9344
  body["kubernetes_config"] = request.kubernetesConfig;
8252
9345
  }
8253
- if (!tea_util_1.default.isUnset($tea.toMap(request.management))) {
9346
+ if (!tea_util_1.default.isUnset(request.management)) {
8254
9347
  body["management"] = request.management;
8255
9348
  }
8256
9349
  if (!tea_util_1.default.isUnset(request.maxNodes)) {
8257
9350
  body["max_nodes"] = request.maxNodes;
8258
9351
  }
8259
- if (!tea_util_1.default.isUnset($tea.toMap(request.nodepoolInfo))) {
9352
+ if (!tea_util_1.default.isUnset(request.nodepoolInfo)) {
8260
9353
  body["nodepool_info"] = request.nodepoolInfo;
8261
9354
  }
8262
- if (!tea_util_1.default.isUnset($tea.toMap(request.scalingGroup))) {
9355
+ if (!tea_util_1.default.isUnset(request.scalingGroup)) {
8263
9356
  body["scaling_group"] = request.scalingGroup;
8264
9357
  }
8265
- if (!tea_util_1.default.isUnset($tea.toMap(request.teeConfig))) {
9358
+ if (!tea_util_1.default.isUnset(request.teeConfig)) {
8266
9359
  body["tee_config"] = request.teeConfig;
8267
9360
  }
8268
9361
  let req = new $OpenApi.OpenApiRequest({
@@ -8282,10 +9375,10 @@ class Client extends openapi_client_1.default {
8282
9375
  });
8283
9376
  return $tea.cast(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
8284
9377
  }
8285
- async createEdgeMachine(request) {
9378
+ async createClusterNodePool(ClusterId, request) {
8286
9379
  let runtime = new $Util.RuntimeOptions({});
8287
9380
  let headers = {};
8288
- return await this.createEdgeMachineWithOptions(request, headers, runtime);
9381
+ return await this.createClusterNodePoolWithOptions(ClusterId, request, headers, runtime);
8289
9382
  }
8290
9383
  async createEdgeMachineWithOptions(request, headers, runtime) {
8291
9384
  tea_util_1.default.validateModel(request);
@@ -8316,10 +9409,10 @@ class Client extends openapi_client_1.default {
8316
9409
  });
8317
9410
  return $tea.cast(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
8318
9411
  }
8319
- async createKubernetesTrigger(request) {
9412
+ async createEdgeMachine(request) {
8320
9413
  let runtime = new $Util.RuntimeOptions({});
8321
9414
  let headers = {};
8322
- return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
9415
+ return await this.createEdgeMachineWithOptions(request, headers, runtime);
8323
9416
  }
8324
9417
  async createKubernetesTriggerWithOptions(request, headers, runtime) {
8325
9418
  tea_util_1.default.validateModel(request);
@@ -8353,10 +9446,10 @@ class Client extends openapi_client_1.default {
8353
9446
  });
8354
9447
  return $tea.cast(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
8355
9448
  }
8356
- async createTemplate(request) {
9449
+ async createKubernetesTrigger(request) {
8357
9450
  let runtime = new $Util.RuntimeOptions({});
8358
9451
  let headers = {};
8359
- return await this.createTemplateWithOptions(request, headers, runtime);
9452
+ return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
8360
9453
  }
8361
9454
  async createTemplateWithOptions(request, headers, runtime) {
8362
9455
  tea_util_1.default.validateModel(request);
@@ -8393,10 +9486,10 @@ class Client extends openapi_client_1.default {
8393
9486
  });
8394
9487
  return $tea.cast(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
8395
9488
  }
8396
- async createTrigger(clusterId, request) {
9489
+ async createTemplate(request) {
8397
9490
  let runtime = new $Util.RuntimeOptions({});
8398
9491
  let headers = {};
8399
- return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
9492
+ return await this.createTemplateWithOptions(request, headers, runtime);
8400
9493
  }
8401
9494
  async createTriggerWithOptions(clusterId, request, headers, runtime) {
8402
9495
  tea_util_1.default.validateModel(request);
@@ -8430,10 +9523,10 @@ class Client extends openapi_client_1.default {
8430
9523
  });
8431
9524
  return $tea.cast(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
8432
9525
  }
8433
- async deleteAlertContact() {
9526
+ async createTrigger(clusterId, request) {
8434
9527
  let runtime = new $Util.RuntimeOptions({});
8435
9528
  let headers = {};
8436
- return await this.deleteAlertContactWithOptions(headers, runtime);
9529
+ return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
8437
9530
  }
8438
9531
  async deleteAlertContactWithOptions(headers, runtime) {
8439
9532
  let req = new $OpenApi.OpenApiRequest({
@@ -8452,10 +9545,10 @@ class Client extends openapi_client_1.default {
8452
9545
  });
8453
9546
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
8454
9547
  }
8455
- async deleteAlertContactGroup() {
9548
+ async deleteAlertContact() {
8456
9549
  let runtime = new $Util.RuntimeOptions({});
8457
9550
  let headers = {};
8458
- return await this.deleteAlertContactGroupWithOptions(headers, runtime);
9551
+ return await this.deleteAlertContactWithOptions(headers, runtime);
8459
9552
  }
8460
9553
  async deleteAlertContactGroupWithOptions(headers, runtime) {
8461
9554
  let req = new $OpenApi.OpenApiRequest({
@@ -8474,10 +9567,10 @@ class Client extends openapi_client_1.default {
8474
9567
  });
8475
9568
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
8476
9569
  }
8477
- async deleteCluster(ClusterId, request) {
9570
+ async deleteAlertContactGroup() {
8478
9571
  let runtime = new $Util.RuntimeOptions({});
8479
9572
  let headers = {};
8480
- return await this.deleteClusterWithOptions(ClusterId, request, headers, runtime);
9573
+ return await this.deleteAlertContactGroupWithOptions(headers, runtime);
8481
9574
  }
8482
9575
  async deleteClusterWithOptions(ClusterId, tmpReq, headers, runtime) {
8483
9576
  tea_util_1.default.validateModel(tmpReq);
@@ -8509,14 +9602,14 @@ class Client extends openapi_client_1.default {
8509
9602
  authType: "AK",
8510
9603
  style: "ROA",
8511
9604
  reqBodyType: "json",
8512
- bodyType: "none",
9605
+ bodyType: "json",
8513
9606
  });
8514
9607
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
8515
9608
  }
8516
- async deleteClusterNodepool(ClusterId, NodepoolId, request) {
9609
+ async deleteCluster(ClusterId, request) {
8517
9610
  let runtime = new $Util.RuntimeOptions({});
8518
9611
  let headers = {};
8519
- return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
9612
+ return await this.deleteClusterWithOptions(ClusterId, request, headers, runtime);
8520
9613
  }
8521
9614
  async deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
8522
9615
  tea_util_1.default.validateModel(request);
@@ -8541,11 +9634,23 @@ class Client extends openapi_client_1.default {
8541
9634
  });
8542
9635
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
8543
9636
  }
8544
- async deleteClusterNodes(ClusterId, request) {
9637
+ async deleteClusterNodepool(ClusterId, NodepoolId, request) {
8545
9638
  let runtime = new $Util.RuntimeOptions({});
8546
9639
  let headers = {};
8547
- return await this.deleteClusterNodesWithOptions(ClusterId, request, headers, runtime);
9640
+ return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
8548
9641
  }
9642
+ /**
9643
+ * >
9644
+ * * 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.
9645
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
9646
+ * * Nodes remain in the unschedulable state when they are being removed.
9647
+ * * You can remove only worker nodes by calling this operation.
9648
+ *
9649
+ * @param request DeleteClusterNodesRequest
9650
+ * @param headers map
9651
+ * @param runtime runtime options for this request RuntimeOptions
9652
+ * @return DeleteClusterNodesResponse
9653
+ */
8549
9654
  async deleteClusterNodesWithOptions(ClusterId, request, headers, runtime) {
8550
9655
  tea_util_1.default.validateModel(request);
8551
9656
  let body = {};
@@ -8575,10 +9680,20 @@ class Client extends openapi_client_1.default {
8575
9680
  });
8576
9681
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
8577
9682
  }
8578
- async deleteEdgeMachine(edgeMachineid, request) {
9683
+ /**
9684
+ * >
9685
+ * * 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.
9686
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
9687
+ * * Nodes remain in the unschedulable state when they are being removed.
9688
+ * * You can remove only worker nodes by calling this operation.
9689
+ *
9690
+ * @param request DeleteClusterNodesRequest
9691
+ * @return DeleteClusterNodesResponse
9692
+ */
9693
+ async deleteClusterNodes(ClusterId, request) {
8579
9694
  let runtime = new $Util.RuntimeOptions({});
8580
9695
  let headers = {};
8581
- return await this.deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime);
9696
+ return await this.deleteClusterNodesWithOptions(ClusterId, request, headers, runtime);
8582
9697
  }
8583
9698
  async deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime) {
8584
9699
  tea_util_1.default.validateModel(request);
@@ -8603,10 +9718,10 @@ class Client extends openapi_client_1.default {
8603
9718
  });
8604
9719
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
8605
9720
  }
8606
- async deleteKubernetesTrigger(Id) {
9721
+ async deleteEdgeMachine(edgeMachineid, request) {
8607
9722
  let runtime = new $Util.RuntimeOptions({});
8608
9723
  let headers = {};
8609
- return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
9724
+ return await this.deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime);
8610
9725
  }
8611
9726
  async deleteKubernetesTriggerWithOptions(Id, headers, runtime) {
8612
9727
  let req = new $OpenApi.OpenApiRequest({
@@ -8625,10 +9740,10 @@ class Client extends openapi_client_1.default {
8625
9740
  });
8626
9741
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
8627
9742
  }
8628
- async deletePolicyInstance(clusterId, policyName, request) {
9743
+ async deleteKubernetesTrigger(Id) {
8629
9744
  let runtime = new $Util.RuntimeOptions({});
8630
9745
  let headers = {};
8631
- return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
9746
+ return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
8632
9747
  }
8633
9748
  async deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
8634
9749
  tea_util_1.default.validateModel(request);
@@ -8653,10 +9768,10 @@ class Client extends openapi_client_1.default {
8653
9768
  });
8654
9769
  return $tea.cast(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
8655
9770
  }
8656
- async deleteTemplate(TemplateId) {
9771
+ async deletePolicyInstance(clusterId, policyName, request) {
8657
9772
  let runtime = new $Util.RuntimeOptions({});
8658
9773
  let headers = {};
8659
- return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
9774
+ return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
8660
9775
  }
8661
9776
  async deleteTemplateWithOptions(TemplateId, headers, runtime) {
8662
9777
  let req = new $OpenApi.OpenApiRequest({
@@ -8675,10 +9790,10 @@ class Client extends openapi_client_1.default {
8675
9790
  });
8676
9791
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
8677
9792
  }
8678
- async deleteTrigger(clusterId, Id) {
9793
+ async deleteTemplate(TemplateId) {
8679
9794
  let runtime = new $Util.RuntimeOptions({});
8680
9795
  let headers = {};
8681
- return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
9796
+ return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
8682
9797
  }
8683
9798
  async deleteTriggerWithOptions(clusterId, Id, headers, runtime) {
8684
9799
  let req = new $OpenApi.OpenApiRequest({
@@ -8697,10 +9812,10 @@ class Client extends openapi_client_1.default {
8697
9812
  });
8698
9813
  return $tea.cast(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
8699
9814
  }
8700
- async deployPolicyInstance(clusterId, policyName, request) {
9815
+ async deleteTrigger(clusterId, Id) {
8701
9816
  let runtime = new $Util.RuntimeOptions({});
8702
9817
  let headers = {};
8703
- return await this.deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
9818
+ return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
8704
9819
  }
8705
9820
  async deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
8706
9821
  tea_util_1.default.validateModel(request);
@@ -8731,10 +9846,10 @@ class Client extends openapi_client_1.default {
8731
9846
  });
8732
9847
  return $tea.cast(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
8733
9848
  }
8734
- async descirbeWorkflow(workflowName) {
9849
+ async deployPolicyInstance(clusterId, policyName, request) {
8735
9850
  let runtime = new $Util.RuntimeOptions({});
8736
9851
  let headers = {};
8737
- return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
9852
+ return await this.deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
8738
9853
  }
8739
9854
  async descirbeWorkflowWithOptions(workflowName, headers, runtime) {
8740
9855
  let req = new $OpenApi.OpenApiRequest({
@@ -8753,17 +9868,26 @@ class Client extends openapi_client_1.default {
8753
9868
  });
8754
9869
  return $tea.cast(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
8755
9870
  }
8756
- async describeAddons(request) {
9871
+ async descirbeWorkflow(workflowName) {
8757
9872
  let runtime = new $Util.RuntimeOptions({});
8758
9873
  let headers = {};
8759
- return await this.describeAddonsWithOptions(request, headers, runtime);
9874
+ return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
8760
9875
  }
8761
9876
  async describeAddonsWithOptions(request, headers, runtime) {
8762
9877
  tea_util_1.default.validateModel(request);
8763
9878
  let query = {};
9879
+ if (!tea_util_1.default.isUnset(request.clusterProfile)) {
9880
+ query["cluster_profile"] = request.clusterProfile;
9881
+ }
9882
+ if (!tea_util_1.default.isUnset(request.clusterSpec)) {
9883
+ query["cluster_spec"] = request.clusterSpec;
9884
+ }
8764
9885
  if (!tea_util_1.default.isUnset(request.clusterType)) {
8765
9886
  query["cluster_type"] = request.clusterType;
8766
9887
  }
9888
+ if (!tea_util_1.default.isUnset(request.clusterVersion)) {
9889
+ query["cluster_version"] = request.clusterVersion;
9890
+ }
8767
9891
  if (!tea_util_1.default.isUnset(request.region)) {
8768
9892
  query["region"] = request.region;
8769
9893
  }
@@ -8784,10 +9908,32 @@ class Client extends openapi_client_1.default {
8784
9908
  });
8785
9909
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
8786
9910
  }
8787
- async describeClusterAddonMetadata(clusterId, componentId, version) {
9911
+ async describeAddons(request) {
8788
9912
  let runtime = new $Util.RuntimeOptions({});
8789
9913
  let headers = {};
8790
- return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
9914
+ return await this.describeAddonsWithOptions(request, headers, runtime);
9915
+ }
9916
+ async describeClusterAddonInstanceWithOptions(ClusterID, AddonName, headers, runtime) {
9917
+ let req = new $OpenApi.OpenApiRequest({
9918
+ headers: headers,
9919
+ });
9920
+ let params = new $OpenApi.Params({
9921
+ action: "DescribeClusterAddonInstance",
9922
+ version: "2015-12-15",
9923
+ protocol: "HTTPS",
9924
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterID)}/components/${openapi_util_1.default.getEncodeParam(AddonName)}/instance`,
9925
+ method: "GET",
9926
+ authType: "AK",
9927
+ style: "ROA",
9928
+ reqBodyType: "json",
9929
+ bodyType: "json",
9930
+ });
9931
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonInstanceResponse({}));
9932
+ }
9933
+ async describeClusterAddonInstance(ClusterID, AddonName) {
9934
+ let runtime = new $Util.RuntimeOptions({});
9935
+ let headers = {};
9936
+ return await this.describeClusterAddonInstanceWithOptions(ClusterID, AddonName, headers, runtime);
8791
9937
  }
8792
9938
  async describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime) {
8793
9939
  let req = new $OpenApi.OpenApiRequest({
@@ -8806,11 +9952,19 @@ class Client extends openapi_client_1.default {
8806
9952
  });
8807
9953
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
8808
9954
  }
8809
- async describeClusterAddonUpgradeStatus(ClusterId, ComponentId) {
9955
+ async describeClusterAddonMetadata(clusterId, componentId, version) {
8810
9956
  let runtime = new $Util.RuntimeOptions({});
8811
9957
  let headers = {};
8812
- return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
9958
+ return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
8813
9959
  }
9960
+ /**
9961
+ * @deprecated
9962
+ *
9963
+ * @param headers map
9964
+ * @param runtime runtime options for this request RuntimeOptions
9965
+ * @return DescribeClusterAddonUpgradeStatusResponse
9966
+ */
9967
+ // Deprecated
8814
9968
  async describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime) {
8815
9969
  let req = new $OpenApi.OpenApiRequest({
8816
9970
  headers: headers,
@@ -8828,10 +9982,16 @@ class Client extends openapi_client_1.default {
8828
9982
  });
8829
9983
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
8830
9984
  }
8831
- async describeClusterAddonsUpgradeStatus(ClusterId, request) {
9985
+ /**
9986
+ * @deprecated
9987
+ *
9988
+ * @return DescribeClusterAddonUpgradeStatusResponse
9989
+ */
9990
+ // Deprecated
9991
+ async describeClusterAddonUpgradeStatus(ClusterId, ComponentId) {
8832
9992
  let runtime = new $Util.RuntimeOptions({});
8833
9993
  let headers = {};
8834
- return await this.describeClusterAddonsUpgradeStatusWithOptions(ClusterId, request, headers, runtime);
9994
+ return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
8835
9995
  }
8836
9996
  async describeClusterAddonsUpgradeStatusWithOptions(ClusterId, tmpReq, headers, runtime) {
8837
9997
  tea_util_1.default.validateModel(tmpReq);
@@ -8861,10 +10021,10 @@ class Client extends openapi_client_1.default {
8861
10021
  });
8862
10022
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
8863
10023
  }
8864
- async describeClusterAddonsVersion(ClusterId) {
10024
+ async describeClusterAddonsUpgradeStatus(ClusterId, request) {
8865
10025
  let runtime = new $Util.RuntimeOptions({});
8866
10026
  let headers = {};
8867
- return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
10027
+ return await this.describeClusterAddonsUpgradeStatusWithOptions(ClusterId, request, headers, runtime);
8868
10028
  }
8869
10029
  async describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime) {
8870
10030
  let req = new $OpenApi.OpenApiRequest({
@@ -8883,10 +10043,10 @@ class Client extends openapi_client_1.default {
8883
10043
  });
8884
10044
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
8885
10045
  }
8886
- async describeClusterAttachScripts(ClusterId, request) {
10046
+ async describeClusterAddonsVersion(ClusterId) {
8887
10047
  let runtime = new $Util.RuntimeOptions({});
8888
10048
  let headers = {};
8889
- return await this.describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime);
10049
+ return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
8890
10050
  }
8891
10051
  async describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime) {
8892
10052
  tea_util_1.default.validateModel(request);
@@ -8926,10 +10086,10 @@ class Client extends openapi_client_1.default {
8926
10086
  });
8927
10087
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
8928
10088
  }
8929
- async describeClusterDetail(ClusterId) {
10089
+ async describeClusterAttachScripts(ClusterId, request) {
8930
10090
  let runtime = new $Util.RuntimeOptions({});
8931
10091
  let headers = {};
8932
- return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
10092
+ return await this.describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime);
8933
10093
  }
8934
10094
  async describeClusterDetailWithOptions(ClusterId, headers, runtime) {
8935
10095
  let req = new $OpenApi.OpenApiRequest({
@@ -8948,10 +10108,10 @@ class Client extends openapi_client_1.default {
8948
10108
  });
8949
10109
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
8950
10110
  }
8951
- async describeClusterEvents(ClusterId, request) {
10111
+ async describeClusterDetail(ClusterId) {
8952
10112
  let runtime = new $Util.RuntimeOptions({});
8953
10113
  let headers = {};
8954
- return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
10114
+ return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
8955
10115
  }
8956
10116
  async describeClusterEventsWithOptions(ClusterId, request, headers, runtime) {
8957
10117
  tea_util_1.default.validateModel(request);
@@ -8982,10 +10142,10 @@ class Client extends openapi_client_1.default {
8982
10142
  });
8983
10143
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
8984
10144
  }
8985
- async describeClusterLogs(ClusterId) {
10145
+ async describeClusterEvents(ClusterId, request) {
8986
10146
  let runtime = new $Util.RuntimeOptions({});
8987
10147
  let headers = {};
8988
- return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
10148
+ return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
8989
10149
  }
8990
10150
  async describeClusterLogsWithOptions(ClusterId, headers, runtime) {
8991
10151
  let req = new $OpenApi.OpenApiRequest({
@@ -9004,10 +10164,10 @@ class Client extends openapi_client_1.default {
9004
10164
  });
9005
10165
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
9006
10166
  }
9007
- async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
10167
+ async describeClusterLogs(ClusterId) {
9008
10168
  let runtime = new $Util.RuntimeOptions({});
9009
10169
  let headers = {};
9010
- return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
10170
+ return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
9011
10171
  }
9012
10172
  async describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime) {
9013
10173
  let req = new $OpenApi.OpenApiRequest({
@@ -9026,10 +10186,10 @@ class Client extends openapi_client_1.default {
9026
10186
  });
9027
10187
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
9028
10188
  }
9029
- async describeClusterNodePools(ClusterId) {
10189
+ async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
9030
10190
  let runtime = new $Util.RuntimeOptions({});
9031
10191
  let headers = {};
9032
- return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
10192
+ return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
9033
10193
  }
9034
10194
  async describeClusterNodePoolsWithOptions(ClusterId, headers, runtime) {
9035
10195
  let req = new $OpenApi.OpenApiRequest({
@@ -9048,10 +10208,10 @@ class Client extends openapi_client_1.default {
9048
10208
  });
9049
10209
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
9050
10210
  }
9051
- async describeClusterNodes(ClusterId, request) {
10211
+ async describeClusterNodePools(ClusterId) {
9052
10212
  let runtime = new $Util.RuntimeOptions({});
9053
10213
  let headers = {};
9054
- return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
10214
+ return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
9055
10215
  }
9056
10216
  async describeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
9057
10217
  tea_util_1.default.validateModel(request);
@@ -9088,10 +10248,10 @@ class Client extends openapi_client_1.default {
9088
10248
  });
9089
10249
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
9090
10250
  }
9091
- async describeClusterResources(ClusterId) {
10251
+ async describeClusterNodes(ClusterId, request) {
9092
10252
  let runtime = new $Util.RuntimeOptions({});
9093
10253
  let headers = {};
9094
- return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
10254
+ return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
9095
10255
  }
9096
10256
  async describeClusterResourcesWithOptions(ClusterId, headers, runtime) {
9097
10257
  let req = new $OpenApi.OpenApiRequest({
@@ -9110,10 +10270,10 @@ class Client extends openapi_client_1.default {
9110
10270
  });
9111
10271
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
9112
10272
  }
9113
- async describeClusterTasks(clusterId) {
10273
+ async describeClusterResources(ClusterId) {
9114
10274
  let runtime = new $Util.RuntimeOptions({});
9115
10275
  let headers = {};
9116
- return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
10276
+ return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
9117
10277
  }
9118
10278
  async describeClusterTasksWithOptions(clusterId, headers, runtime) {
9119
10279
  let req = new $OpenApi.OpenApiRequest({
@@ -9132,10 +10292,10 @@ class Client extends openapi_client_1.default {
9132
10292
  });
9133
10293
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
9134
10294
  }
9135
- async describeClusterUserKubeconfig(ClusterId, request) {
10295
+ async describeClusterTasks(clusterId) {
9136
10296
  let runtime = new $Util.RuntimeOptions({});
9137
10297
  let headers = {};
9138
- return await this.describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime);
10298
+ return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
9139
10299
  }
9140
10300
  async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
9141
10301
  tea_util_1.default.validateModel(request);
@@ -9163,11 +10323,20 @@ class Client extends openapi_client_1.default {
9163
10323
  });
9164
10324
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
9165
10325
  }
9166
- async describeClusterV2UserKubeconfig(ClusterId, request) {
10326
+ async describeClusterUserKubeconfig(ClusterId, request) {
9167
10327
  let runtime = new $Util.RuntimeOptions({});
9168
10328
  let headers = {};
9169
- return await this.describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime);
10329
+ return await this.describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime);
9170
10330
  }
10331
+ /**
10332
+ * @deprecated
10333
+ *
10334
+ * @param request DescribeClusterV2UserKubeconfigRequest
10335
+ * @param headers map
10336
+ * @param runtime runtime options for this request RuntimeOptions
10337
+ * @return DescribeClusterV2UserKubeconfigResponse
10338
+ */
10339
+ // Deprecated
9171
10340
  async describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
9172
10341
  tea_util_1.default.validateModel(request);
9173
10342
  let query = {};
@@ -9191,11 +10360,49 @@ class Client extends openapi_client_1.default {
9191
10360
  });
9192
10361
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
9193
10362
  }
9194
- async describeClusters(request) {
10363
+ /**
10364
+ * @deprecated
10365
+ *
10366
+ * @param request DescribeClusterV2UserKubeconfigRequest
10367
+ * @return DescribeClusterV2UserKubeconfigResponse
10368
+ */
10369
+ // Deprecated
10370
+ async describeClusterV2UserKubeconfig(ClusterId, request) {
9195
10371
  let runtime = new $Util.RuntimeOptions({});
9196
10372
  let headers = {};
9197
- return await this.describeClustersWithOptions(request, headers, runtime);
10373
+ return await this.describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime);
10374
+ }
10375
+ async describeClusterVulsWithOptions(clusterId, headers, runtime) {
10376
+ let req = new $OpenApi.OpenApiRequest({
10377
+ headers: headers,
10378
+ });
10379
+ let params = new $OpenApi.Params({
10380
+ action: "DescribeClusterVuls",
10381
+ version: "2015-12-15",
10382
+ protocol: "HTTPS",
10383
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/vuls`,
10384
+ method: "GET",
10385
+ authType: "AK",
10386
+ style: "ROA",
10387
+ reqBodyType: "json",
10388
+ bodyType: "json",
10389
+ });
10390
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterVulsResponse({}));
9198
10391
  }
10392
+ async describeClusterVuls(clusterId) {
10393
+ let runtime = new $Util.RuntimeOptions({});
10394
+ let headers = {};
10395
+ return await this.describeClusterVulsWithOptions(clusterId, headers, runtime);
10396
+ }
10397
+ /**
10398
+ * @deprecated
10399
+ *
10400
+ * @param request DescribeClustersRequest
10401
+ * @param headers map
10402
+ * @param runtime runtime options for this request RuntimeOptions
10403
+ * @return DescribeClustersResponse
10404
+ */
10405
+ // Deprecated
9199
10406
  async describeClustersWithOptions(request, headers, runtime) {
9200
10407
  tea_util_1.default.validateModel(request);
9201
10408
  let query = {};
@@ -9222,10 +10429,17 @@ class Client extends openapi_client_1.default {
9222
10429
  });
9223
10430
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
9224
10431
  }
9225
- async describeClustersV1(request) {
10432
+ /**
10433
+ * @deprecated
10434
+ *
10435
+ * @param request DescribeClustersRequest
10436
+ * @return DescribeClustersResponse
10437
+ */
10438
+ // Deprecated
10439
+ async describeClusters(request) {
9226
10440
  let runtime = new $Util.RuntimeOptions({});
9227
10441
  let headers = {};
9228
- return await this.describeClustersV1WithOptions(request, headers, runtime);
10442
+ return await this.describeClustersWithOptions(request, headers, runtime);
9229
10443
  }
9230
10444
  async describeClustersV1WithOptions(request, headers, runtime) {
9231
10445
  tea_util_1.default.validateModel(request);
@@ -9268,10 +10482,10 @@ class Client extends openapi_client_1.default {
9268
10482
  });
9269
10483
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
9270
10484
  }
9271
- async describeEdgeMachineActiveProcess(edgeMachineid) {
10485
+ async describeClustersV1(request) {
9272
10486
  let runtime = new $Util.RuntimeOptions({});
9273
10487
  let headers = {};
9274
- return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
10488
+ return await this.describeClustersV1WithOptions(request, headers, runtime);
9275
10489
  }
9276
10490
  async describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime) {
9277
10491
  let req = new $OpenApi.OpenApiRequest({
@@ -9290,10 +10504,10 @@ class Client extends openapi_client_1.default {
9290
10504
  });
9291
10505
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
9292
10506
  }
9293
- async describeEdgeMachineModels() {
10507
+ async describeEdgeMachineActiveProcess(edgeMachineid) {
9294
10508
  let runtime = new $Util.RuntimeOptions({});
9295
10509
  let headers = {};
9296
- return await this.describeEdgeMachineModelsWithOptions(headers, runtime);
10510
+ return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
9297
10511
  }
9298
10512
  async describeEdgeMachineModelsWithOptions(headers, runtime) {
9299
10513
  let req = new $OpenApi.OpenApiRequest({
@@ -9312,10 +10526,10 @@ class Client extends openapi_client_1.default {
9312
10526
  });
9313
10527
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
9314
10528
  }
9315
- async describeEdgeMachineTunnelConfigDetail(edgeMachineid) {
10529
+ async describeEdgeMachineModels() {
9316
10530
  let runtime = new $Util.RuntimeOptions({});
9317
10531
  let headers = {};
9318
- return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
10532
+ return await this.describeEdgeMachineModelsWithOptions(headers, runtime);
9319
10533
  }
9320
10534
  async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime) {
9321
10535
  let req = new $OpenApi.OpenApiRequest({
@@ -9334,10 +10548,10 @@ class Client extends openapi_client_1.default {
9334
10548
  });
9335
10549
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
9336
10550
  }
9337
- async describeEdgeMachines(request) {
10551
+ async describeEdgeMachineTunnelConfigDetail(edgeMachineid) {
9338
10552
  let runtime = new $Util.RuntimeOptions({});
9339
10553
  let headers = {};
9340
- return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
10554
+ return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
9341
10555
  }
9342
10556
  async describeEdgeMachinesWithOptions(request, headers, runtime) {
9343
10557
  tea_util_1.default.validateModel(request);
@@ -9377,10 +10591,10 @@ class Client extends openapi_client_1.default {
9377
10591
  });
9378
10592
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
9379
10593
  }
9380
- async describeEvents(request) {
10594
+ async describeEdgeMachines(request) {
9381
10595
  let runtime = new $Util.RuntimeOptions({});
9382
10596
  let headers = {};
9383
- return await this.describeEventsWithOptions(request, headers, runtime);
10597
+ return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
9384
10598
  }
9385
10599
  async describeEventsWithOptions(request, headers, runtime) {
9386
10600
  tea_util_1.default.validateModel(request);
@@ -9414,11 +10628,19 @@ class Client extends openapi_client_1.default {
9414
10628
  });
9415
10629
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
9416
10630
  }
9417
- async describeExternalAgent(ClusterId, request) {
10631
+ async describeEvents(request) {
9418
10632
  let runtime = new $Util.RuntimeOptions({});
9419
10633
  let headers = {};
9420
- return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
10634
+ return await this.describeEventsWithOptions(request, headers, runtime);
9421
10635
  }
10636
+ /**
10637
+ * For more information, see [Register an external Kubernetes cluster](~~121053~~).
10638
+ *
10639
+ * @param request DescribeExternalAgentRequest
10640
+ * @param headers map
10641
+ * @param runtime runtime options for this request RuntimeOptions
10642
+ * @return DescribeExternalAgentResponse
10643
+ */
9422
10644
  async describeExternalAgentWithOptions(ClusterId, request, headers, runtime) {
9423
10645
  tea_util_1.default.validateModel(request);
9424
10646
  let query = {};
@@ -9442,10 +10664,16 @@ class Client extends openapi_client_1.default {
9442
10664
  });
9443
10665
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
9444
10666
  }
9445
- async describeKubernetesVersionMetadata(request) {
10667
+ /**
10668
+ * For more information, see [Register an external Kubernetes cluster](~~121053~~).
10669
+ *
10670
+ * @param request DescribeExternalAgentRequest
10671
+ * @return DescribeExternalAgentResponse
10672
+ */
10673
+ async describeExternalAgent(ClusterId, request) {
9446
10674
  let runtime = new $Util.RuntimeOptions({});
9447
10675
  let headers = {};
9448
- return await this.describeKubernetesVersionMetadataWithOptions(request, headers, runtime);
10676
+ return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
9449
10677
  }
9450
10678
  async describeKubernetesVersionMetadataWithOptions(request, headers, runtime) {
9451
10679
  tea_util_1.default.validateModel(request);
@@ -9456,6 +10684,9 @@ class Client extends openapi_client_1.default {
9456
10684
  if (!tea_util_1.default.isUnset(request.kubernetesVersion)) {
9457
10685
  query["KubernetesVersion"] = request.kubernetesVersion;
9458
10686
  }
10687
+ if (!tea_util_1.default.isUnset(request.mode)) {
10688
+ query["Mode"] = request.mode;
10689
+ }
9459
10690
  if (!tea_util_1.default.isUnset(request.profile)) {
9460
10691
  query["Profile"] = request.profile;
9461
10692
  }
@@ -9482,14 +10713,20 @@ class Client extends openapi_client_1.default {
9482
10713
  });
9483
10714
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
9484
10715
  }
9485
- async describeNodePoolVuls(clusterId, nodepoolId) {
10716
+ async describeKubernetesVersionMetadata(request) {
9486
10717
  let runtime = new $Util.RuntimeOptions({});
9487
10718
  let headers = {};
9488
- return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime);
10719
+ return await this.describeKubernetesVersionMetadataWithOptions(request, headers, runtime);
9489
10720
  }
9490
- async describeNodePoolVulsWithOptions(clusterId, nodepoolId, headers, runtime) {
10721
+ async describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
10722
+ tea_util_1.default.validateModel(request);
10723
+ let query = {};
10724
+ if (!tea_util_1.default.isUnset(request.necessity)) {
10725
+ query["necessity"] = request.necessity;
10726
+ }
9491
10727
  let req = new $OpenApi.OpenApiRequest({
9492
10728
  headers: headers,
10729
+ query: openapi_util_1.default.query(query),
9493
10730
  });
9494
10731
  let params = new $OpenApi.Params({
9495
10732
  action: "DescribeNodePoolVuls",
@@ -9504,10 +10741,10 @@ class Client extends openapi_client_1.default {
9504
10741
  });
9505
10742
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeNodePoolVulsResponse({}));
9506
10743
  }
9507
- async describePolicies() {
10744
+ async describeNodePoolVuls(clusterId, nodepoolId, request) {
9508
10745
  let runtime = new $Util.RuntimeOptions({});
9509
10746
  let headers = {};
9510
- return await this.describePoliciesWithOptions(headers, runtime);
10747
+ return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
9511
10748
  }
9512
10749
  async describePoliciesWithOptions(headers, runtime) {
9513
10750
  let req = new $OpenApi.OpenApiRequest({
@@ -9526,10 +10763,10 @@ class Client extends openapi_client_1.default {
9526
10763
  });
9527
10764
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
9528
10765
  }
9529
- async describePolicyDetails(policyName) {
10766
+ async describePolicies() {
9530
10767
  let runtime = new $Util.RuntimeOptions({});
9531
10768
  let headers = {};
9532
- return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
10769
+ return await this.describePoliciesWithOptions(headers, runtime);
9533
10770
  }
9534
10771
  async describePolicyDetailsWithOptions(policyName, headers, runtime) {
9535
10772
  let req = new $OpenApi.OpenApiRequest({
@@ -9548,10 +10785,10 @@ class Client extends openapi_client_1.default {
9548
10785
  });
9549
10786
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
9550
10787
  }
9551
- async describePolicyGovernanceInCluster(clusterId) {
10788
+ async describePolicyDetails(policyName) {
9552
10789
  let runtime = new $Util.RuntimeOptions({});
9553
10790
  let headers = {};
9554
- return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
10791
+ return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
9555
10792
  }
9556
10793
  async describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime) {
9557
10794
  let req = new $OpenApi.OpenApiRequest({
@@ -9570,10 +10807,10 @@ class Client extends openapi_client_1.default {
9570
10807
  });
9571
10808
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
9572
10809
  }
9573
- async describePolicyInstances(clusterId, request) {
10810
+ async describePolicyGovernanceInCluster(clusterId) {
9574
10811
  let runtime = new $Util.RuntimeOptions({});
9575
10812
  let headers = {};
9576
- return await this.describePolicyInstancesWithOptions(clusterId, request, headers, runtime);
10813
+ return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
9577
10814
  }
9578
10815
  async describePolicyInstancesWithOptions(clusterId, request, headers, runtime) {
9579
10816
  tea_util_1.default.validateModel(request);
@@ -9601,10 +10838,10 @@ class Client extends openapi_client_1.default {
9601
10838
  });
9602
10839
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
9603
10840
  }
9604
- async describePolicyInstancesStatus(clusterId) {
10841
+ async describePolicyInstances(clusterId, request) {
9605
10842
  let runtime = new $Util.RuntimeOptions({});
9606
10843
  let headers = {};
9607
- return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
10844
+ return await this.describePolicyInstancesWithOptions(clusterId, request, headers, runtime);
9608
10845
  }
9609
10846
  async describePolicyInstancesStatusWithOptions(clusterId, headers, runtime) {
9610
10847
  let req = new $OpenApi.OpenApiRequest({
@@ -9623,10 +10860,55 @@ class Client extends openapi_client_1.default {
9623
10860
  });
9624
10861
  return $tea.cast(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
9625
10862
  }
9626
- async describeTaskInfo(taskId) {
10863
+ async describePolicyInstancesStatus(clusterId) {
9627
10864
  let runtime = new $Util.RuntimeOptions({});
9628
10865
  let headers = {};
9629
- return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
10866
+ return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
10867
+ }
10868
+ /**
10869
+ * > You can call this operation only with an Alibaba Cloud account.
10870
+ *
10871
+ * @param request DescribeSubaccountK8sClusterUserConfigRequest
10872
+ * @param headers map
10873
+ * @param runtime runtime options for this request RuntimeOptions
10874
+ * @return DescribeSubaccountK8sClusterUserConfigResponse
10875
+ */
10876
+ async describeSubaccountK8sClusterUserConfigWithOptions(ClusterId, Uid, request, headers, runtime) {
10877
+ tea_util_1.default.validateModel(request);
10878
+ let query = {};
10879
+ if (!tea_util_1.default.isUnset(request.privateIpAddress)) {
10880
+ query["PrivateIpAddress"] = request.privateIpAddress;
10881
+ }
10882
+ if (!tea_util_1.default.isUnset(request.temporaryDurationMinutes)) {
10883
+ query["TemporaryDurationMinutes"] = request.temporaryDurationMinutes;
10884
+ }
10885
+ let req = new $OpenApi.OpenApiRequest({
10886
+ headers: headers,
10887
+ query: openapi_util_1.default.query(query),
10888
+ });
10889
+ let params = new $OpenApi.Params({
10890
+ action: "DescribeSubaccountK8sClusterUserConfig",
10891
+ version: "2015-12-15",
10892
+ protocol: "HTTPS",
10893
+ pathname: `/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/users/${openapi_util_1.default.getEncodeParam(Uid)}/user_config`,
10894
+ method: "GET",
10895
+ authType: "AK",
10896
+ style: "ROA",
10897
+ reqBodyType: "json",
10898
+ bodyType: "json",
10899
+ });
10900
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeSubaccountK8sClusterUserConfigResponse({}));
10901
+ }
10902
+ /**
10903
+ * > You can call this operation only with an Alibaba Cloud account.
10904
+ *
10905
+ * @param request DescribeSubaccountK8sClusterUserConfigRequest
10906
+ * @return DescribeSubaccountK8sClusterUserConfigResponse
10907
+ */
10908
+ async describeSubaccountK8sClusterUserConfig(ClusterId, Uid, request) {
10909
+ let runtime = new $Util.RuntimeOptions({});
10910
+ let headers = {};
10911
+ return await this.describeSubaccountK8sClusterUserConfigWithOptions(ClusterId, Uid, request, headers, runtime);
9630
10912
  }
9631
10913
  async describeTaskInfoWithOptions(taskId, headers, runtime) {
9632
10914
  let req = new $OpenApi.OpenApiRequest({
@@ -9645,10 +10927,10 @@ class Client extends openapi_client_1.default {
9645
10927
  });
9646
10928
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
9647
10929
  }
9648
- async describeTemplateAttribute(TemplateId, request) {
10930
+ async describeTaskInfo(taskId) {
9649
10931
  let runtime = new $Util.RuntimeOptions({});
9650
10932
  let headers = {};
9651
- return await this.describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime);
10933
+ return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
9652
10934
  }
9653
10935
  async describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime) {
9654
10936
  tea_util_1.default.validateModel(request);
@@ -9673,10 +10955,10 @@ class Client extends openapi_client_1.default {
9673
10955
  });
9674
10956
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
9675
10957
  }
9676
- async describeTemplates(request) {
10958
+ async describeTemplateAttribute(TemplateId, request) {
9677
10959
  let runtime = new $Util.RuntimeOptions({});
9678
10960
  let headers = {};
9679
- return await this.describeTemplatesWithOptions(request, headers, runtime);
10961
+ return await this.describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime);
9680
10962
  }
9681
10963
  async describeTemplatesWithOptions(request, headers, runtime) {
9682
10964
  tea_util_1.default.validateModel(request);
@@ -9707,10 +10989,10 @@ class Client extends openapi_client_1.default {
9707
10989
  });
9708
10990
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
9709
10991
  }
9710
- async describeTrigger(clusterId, request) {
10992
+ async describeTemplates(request) {
9711
10993
  let runtime = new $Util.RuntimeOptions({});
9712
10994
  let headers = {};
9713
- return await this.describeTriggerWithOptions(clusterId, request, headers, runtime);
10995
+ return await this.describeTemplatesWithOptions(request, headers, runtime);
9714
10996
  }
9715
10997
  async describeTriggerWithOptions(clusterId, request, headers, runtime) {
9716
10998
  tea_util_1.default.validateModel(request);
@@ -9735,7 +11017,7 @@ class Client extends openapi_client_1.default {
9735
11017
  action: "DescribeTrigger",
9736
11018
  version: "2015-12-15",
9737
11019
  protocol: "HTTPS",
9738
- pathname: `/clusters/%5Bcluster_id%5D/triggers`,
11020
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/triggers`,
9739
11021
  method: "GET",
9740
11022
  authType: "AK",
9741
11023
  style: "ROA",
@@ -9744,10 +11026,32 @@ class Client extends openapi_client_1.default {
9744
11026
  });
9745
11027
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
9746
11028
  }
9747
- async describeUserPermission(uid) {
11029
+ async describeTrigger(clusterId, request) {
9748
11030
  let runtime = new $Util.RuntimeOptions({});
9749
11031
  let headers = {};
9750
- return await this.describeUserPermissionWithOptions(uid, headers, runtime);
11032
+ return await this.describeTriggerWithOptions(clusterId, request, headers, runtime);
11033
+ }
11034
+ async describeUserClusterNamespacesWithOptions(ClusterId, headers, runtime) {
11035
+ let req = new $OpenApi.OpenApiRequest({
11036
+ headers: headers,
11037
+ });
11038
+ let params = new $OpenApi.Params({
11039
+ action: "DescribeUserClusterNamespaces",
11040
+ version: "2015-12-15",
11041
+ protocol: "HTTPS",
11042
+ pathname: `/api/v2/k8s/${openapi_util_1.default.getEncodeParam(ClusterId)}/namespaces`,
11043
+ method: "GET",
11044
+ authType: "AK",
11045
+ style: "ROA",
11046
+ reqBodyType: "json",
11047
+ bodyType: "array",
11048
+ });
11049
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserClusterNamespacesResponse({}));
11050
+ }
11051
+ async describeUserClusterNamespaces(ClusterId) {
11052
+ let runtime = new $Util.RuntimeOptions({});
11053
+ let headers = {};
11054
+ return await this.describeUserClusterNamespacesWithOptions(ClusterId, headers, runtime);
9751
11055
  }
9752
11056
  async describeUserPermissionWithOptions(uid, headers, runtime) {
9753
11057
  let req = new $OpenApi.OpenApiRequest({
@@ -9766,10 +11070,10 @@ class Client extends openapi_client_1.default {
9766
11070
  });
9767
11071
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
9768
11072
  }
9769
- async describeUserQuota() {
11073
+ async describeUserPermission(uid) {
9770
11074
  let runtime = new $Util.RuntimeOptions({});
9771
11075
  let headers = {};
9772
- return await this.describeUserQuotaWithOptions(headers, runtime);
11076
+ return await this.describeUserPermissionWithOptions(uid, headers, runtime);
9773
11077
  }
9774
11078
  async describeUserQuotaWithOptions(headers, runtime) {
9775
11079
  let req = new $OpenApi.OpenApiRequest({
@@ -9788,10 +11092,10 @@ class Client extends openapi_client_1.default {
9788
11092
  });
9789
11093
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
9790
11094
  }
9791
- async describeWorkflows() {
11095
+ async describeUserQuota() {
9792
11096
  let runtime = new $Util.RuntimeOptions({});
9793
11097
  let headers = {};
9794
- return await this.describeWorkflowsWithOptions(headers, runtime);
11098
+ return await this.describeUserQuotaWithOptions(headers, runtime);
9795
11099
  }
9796
11100
  async describeWorkflowsWithOptions(headers, runtime) {
9797
11101
  let req = new $OpenApi.OpenApiRequest({
@@ -9810,10 +11114,10 @@ class Client extends openapi_client_1.default {
9810
11114
  });
9811
11115
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
9812
11116
  }
9813
- async edgeClusterAddEdgeMachine(clusterid, edgeMachineid, request) {
11117
+ async describeWorkflows() {
9814
11118
  let runtime = new $Util.RuntimeOptions({});
9815
11119
  let headers = {};
9816
- return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
11120
+ return await this.describeWorkflowsWithOptions(headers, runtime);
9817
11121
  }
9818
11122
  async edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime) {
9819
11123
  tea_util_1.default.validateModel(request);
@@ -9844,10 +11148,10 @@ class Client extends openapi_client_1.default {
9844
11148
  });
9845
11149
  return $tea.cast(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
9846
11150
  }
9847
- async fixNodePoolVuls(clusterId, nodepoolId, request) {
11151
+ async edgeClusterAddEdgeMachine(clusterid, edgeMachineid, request) {
9848
11152
  let runtime = new $Util.RuntimeOptions({});
9849
11153
  let headers = {};
9850
- return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
11154
+ return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
9851
11155
  }
9852
11156
  async fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
9853
11157
  tea_util_1.default.validateModel(request);
@@ -9855,11 +11159,11 @@ class Client extends openapi_client_1.default {
9855
11159
  if (!tea_util_1.default.isUnset(request.nodes)) {
9856
11160
  body["nodes"] = request.nodes;
9857
11161
  }
9858
- if (!tea_util_1.default.isUnset($tea.toMap(request.rolloutPolicy))) {
11162
+ if (!tea_util_1.default.isUnset(request.rolloutPolicy)) {
9859
11163
  body["rollout_policy"] = request.rolloutPolicy;
9860
11164
  }
9861
- if (!tea_util_1.default.isUnset(request.vulList)) {
9862
- body["vul_list"] = request.vulList;
11165
+ if (!tea_util_1.default.isUnset(request.vuls)) {
11166
+ body["vuls"] = request.vuls;
9863
11167
  }
9864
11168
  let req = new $OpenApi.OpenApiRequest({
9865
11169
  headers: headers,
@@ -9878,10 +11182,10 @@ class Client extends openapi_client_1.default {
9878
11182
  });
9879
11183
  return $tea.cast(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
9880
11184
  }
9881
- async getKubernetesTrigger(ClusterId, request) {
11185
+ async fixNodePoolVuls(clusterId, nodepoolId, request) {
9882
11186
  let runtime = new $Util.RuntimeOptions({});
9883
11187
  let headers = {};
9884
- return await this.getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime);
11188
+ return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
9885
11189
  }
9886
11190
  async getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime) {
9887
11191
  tea_util_1.default.validateModel(request);
@@ -9915,10 +11219,10 @@ class Client extends openapi_client_1.default {
9915
11219
  });
9916
11220
  return $tea.cast(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
9917
11221
  }
9918
- async getUpgradeStatus(ClusterId) {
11222
+ async getKubernetesTrigger(ClusterId, request) {
9919
11223
  let runtime = new $Util.RuntimeOptions({});
9920
11224
  let headers = {};
9921
- return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
11225
+ return await this.getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime);
9922
11226
  }
9923
11227
  async getUpgradeStatusWithOptions(ClusterId, headers, runtime) {
9924
11228
  let req = new $OpenApi.OpenApiRequest({
@@ -9937,11 +11241,23 @@ class Client extends openapi_client_1.default {
9937
11241
  });
9938
11242
  return $tea.cast(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
9939
11243
  }
9940
- async grantPermissions(uid, request) {
11244
+ async getUpgradeStatus(ClusterId) {
9941
11245
  let runtime = new $Util.RuntimeOptions({});
9942
11246
  let headers = {};
9943
- return await this.grantPermissionsWithOptions(uid, request, headers, runtime);
11247
+ return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
9944
11248
  }
11249
+ /**
11250
+ * **Precautions**:
11251
+ * * 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.
11252
+ * For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
11253
+ * * 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~~).
11254
+ * * 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.
11255
+ *
11256
+ * @param request GrantPermissionsRequest
11257
+ * @param headers map
11258
+ * @param runtime runtime options for this request RuntimeOptions
11259
+ * @return GrantPermissionsResponse
11260
+ */
9945
11261
  async grantPermissionsWithOptions(uid, request, headers, runtime) {
9946
11262
  tea_util_1.default.validateModel(request);
9947
11263
  let req = new $OpenApi.OpenApiRequest({
@@ -9961,10 +11277,20 @@ class Client extends openapi_client_1.default {
9961
11277
  });
9962
11278
  return $tea.cast(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
9963
11279
  }
9964
- async installClusterAddons(ClusterId, request) {
11280
+ /**
11281
+ * **Precautions**:
11282
+ * * 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.
11283
+ * For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
11284
+ * * 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~~).
11285
+ * * 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.
11286
+ *
11287
+ * @param request GrantPermissionsRequest
11288
+ * @return GrantPermissionsResponse
11289
+ */
11290
+ async grantPermissions(uid, request) {
9965
11291
  let runtime = new $Util.RuntimeOptions({});
9966
11292
  let headers = {};
9967
- return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
11293
+ return await this.grantPermissionsWithOptions(uid, request, headers, runtime);
9968
11294
  }
9969
11295
  async installClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
9970
11296
  tea_util_1.default.validateModel(request);
@@ -9985,10 +11311,10 @@ class Client extends openapi_client_1.default {
9985
11311
  });
9986
11312
  return $tea.cast(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
9987
11313
  }
9988
- async listTagResources(request) {
11314
+ async installClusterAddons(ClusterId, request) {
9989
11315
  let runtime = new $Util.RuntimeOptions({});
9990
11316
  let headers = {};
9991
- return await this.listTagResourcesWithOptions(request, headers, runtime);
11317
+ return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
9992
11318
  }
9993
11319
  async listTagResourcesWithOptions(tmpReq, headers, runtime) {
9994
11320
  tea_util_1.default.validateModel(tmpReq);
@@ -10033,10 +11359,10 @@ class Client extends openapi_client_1.default {
10033
11359
  });
10034
11360
  return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
10035
11361
  }
10036
- async migrateCluster(clusterId, request) {
11362
+ async listTagResources(request) {
10037
11363
  let runtime = new $Util.RuntimeOptions({});
10038
11364
  let headers = {};
10039
- return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
11365
+ return await this.listTagResourcesWithOptions(request, headers, runtime);
10040
11366
  }
10041
11367
  async migrateClusterWithOptions(clusterId, request, headers, runtime) {
10042
11368
  tea_util_1.default.validateModel(request);
@@ -10064,10 +11390,10 @@ class Client extends openapi_client_1.default {
10064
11390
  });
10065
11391
  return $tea.cast(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
10066
11392
  }
10067
- async modifyCluster(ClusterId, request) {
11393
+ async migrateCluster(clusterId, request) {
10068
11394
  let runtime = new $Util.RuntimeOptions({});
10069
11395
  let headers = {};
10070
- return await this.modifyClusterWithOptions(ClusterId, request, headers, runtime);
11396
+ return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
10071
11397
  }
10072
11398
  async modifyClusterWithOptions(ClusterId, request, headers, runtime) {
10073
11399
  tea_util_1.default.validateModel(request);
@@ -10093,7 +11419,7 @@ class Client extends openapi_client_1.default {
10093
11419
  if (!tea_util_1.default.isUnset(request.instanceDeletionProtection)) {
10094
11420
  body["instance_deletion_protection"] = request.instanceDeletionProtection;
10095
11421
  }
10096
- if (!tea_util_1.default.isUnset($tea.toMap(request.maintenanceWindow))) {
11422
+ if (!tea_util_1.default.isUnset(request.maintenanceWindow)) {
10097
11423
  body["maintenance_window"] = request.maintenanceWindow;
10098
11424
  }
10099
11425
  if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
@@ -10116,11 +11442,22 @@ class Client extends openapi_client_1.default {
10116
11442
  });
10117
11443
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
10118
11444
  }
10119
- async modifyClusterAddon(clusterId, componentId, request) {
11445
+ async modifyCluster(ClusterId, request) {
10120
11446
  let runtime = new $Util.RuntimeOptions({});
10121
11447
  let headers = {};
10122
- return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
11448
+ return await this.modifyClusterWithOptions(ClusterId, request, headers, runtime);
10123
11449
  }
11450
+ /**
11451
+ * 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.
11452
+ * * 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).
11453
+ * * 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).
11454
+ * After you call this operation, the component may be redeployed and restarted. We recommend that you evaluate the impact before you call this operation.
11455
+ *
11456
+ * @param request ModifyClusterAddonRequest
11457
+ * @param headers map
11458
+ * @param runtime runtime options for this request RuntimeOptions
11459
+ * @return ModifyClusterAddonResponse
11460
+ */
10124
11461
  async modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime) {
10125
11462
  tea_util_1.default.validateModel(request);
10126
11463
  let body = {};
@@ -10144,10 +11481,19 @@ class Client extends openapi_client_1.default {
10144
11481
  });
10145
11482
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
10146
11483
  }
10147
- async modifyClusterConfiguration(ClusterId, request) {
11484
+ /**
11485
+ * 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.
11486
+ * * 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).
11487
+ * * 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).
11488
+ * After you call this operation, the component may be redeployed and restarted. We recommend that you evaluate the impact before you call this operation.
11489
+ *
11490
+ * @param request ModifyClusterAddonRequest
11491
+ * @return ModifyClusterAddonResponse
11492
+ */
11493
+ async modifyClusterAddon(clusterId, componentId, request) {
10148
11494
  let runtime = new $Util.RuntimeOptions({});
10149
11495
  let headers = {};
10150
- return await this.modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime);
11496
+ return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
10151
11497
  }
10152
11498
  async modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime) {
10153
11499
  tea_util_1.default.validateModel(request);
@@ -10172,30 +11518,30 @@ class Client extends openapi_client_1.default {
10172
11518
  });
10173
11519
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
10174
11520
  }
10175
- async modifyClusterNodePool(ClusterId, NodepoolId, request) {
11521
+ async modifyClusterConfiguration(ClusterId, request) {
10176
11522
  let runtime = new $Util.RuntimeOptions({});
10177
11523
  let headers = {};
10178
- return await this.modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
11524
+ return await this.modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime);
10179
11525
  }
10180
11526
  async modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10181
11527
  tea_util_1.default.validateModel(request);
10182
11528
  let body = {};
10183
- if (!tea_util_1.default.isUnset($tea.toMap(request.autoScaling))) {
11529
+ if (!tea_util_1.default.isUnset(request.autoScaling)) {
10184
11530
  body["auto_scaling"] = request.autoScaling;
10185
11531
  }
10186
- if (!tea_util_1.default.isUnset($tea.toMap(request.kubernetesConfig))) {
11532
+ if (!tea_util_1.default.isUnset(request.kubernetesConfig)) {
10187
11533
  body["kubernetes_config"] = request.kubernetesConfig;
10188
11534
  }
10189
- if (!tea_util_1.default.isUnset($tea.toMap(request.management))) {
11535
+ if (!tea_util_1.default.isUnset(request.management)) {
10190
11536
  body["management"] = request.management;
10191
11537
  }
10192
- if (!tea_util_1.default.isUnset($tea.toMap(request.nodepoolInfo))) {
11538
+ if (!tea_util_1.default.isUnset(request.nodepoolInfo)) {
10193
11539
  body["nodepool_info"] = request.nodepoolInfo;
10194
11540
  }
10195
- if (!tea_util_1.default.isUnset($tea.toMap(request.scalingGroup))) {
11541
+ if (!tea_util_1.default.isUnset(request.scalingGroup)) {
10196
11542
  body["scaling_group"] = request.scalingGroup;
10197
11543
  }
10198
- if (!tea_util_1.default.isUnset($tea.toMap(request.teeConfig))) {
11544
+ if (!tea_util_1.default.isUnset(request.teeConfig)) {
10199
11545
  body["tee_config"] = request.teeConfig;
10200
11546
  }
10201
11547
  if (!tea_util_1.default.isUnset(request.updateNodes)) {
@@ -10218,10 +11564,10 @@ class Client extends openapi_client_1.default {
10218
11564
  });
10219
11565
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
10220
11566
  }
10221
- async modifyClusterTags(ClusterId, request) {
11567
+ async modifyClusterNodePool(ClusterId, NodepoolId, request) {
10222
11568
  let runtime = new $Util.RuntimeOptions({});
10223
11569
  let headers = {};
10224
- return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
11570
+ return await this.modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10225
11571
  }
10226
11572
  async modifyClusterTagsWithOptions(ClusterId, request, headers, runtime) {
10227
11573
  tea_util_1.default.validateModel(request);
@@ -10242,18 +11588,18 @@ class Client extends openapi_client_1.default {
10242
11588
  });
10243
11589
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
10244
11590
  }
10245
- async modifyNodePoolNodeConfig(ClusterId, NodepoolId, request) {
11591
+ async modifyClusterTags(ClusterId, request) {
10246
11592
  let runtime = new $Util.RuntimeOptions({});
10247
11593
  let headers = {};
10248
- return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
11594
+ return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
10249
11595
  }
10250
11596
  async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10251
11597
  tea_util_1.default.validateModel(request);
10252
11598
  let body = {};
10253
- if (!tea_util_1.default.isUnset($tea.toMap(request.kubeletConfig))) {
11599
+ if (!tea_util_1.default.isUnset(request.kubeletConfig)) {
10254
11600
  body["kubelet_config"] = request.kubeletConfig;
10255
11601
  }
10256
- if (!tea_util_1.default.isUnset($tea.toMap(request.rollingPolicy))) {
11602
+ if (!tea_util_1.default.isUnset(request.rollingPolicy)) {
10257
11603
  body["rolling_policy"] = request.rollingPolicy;
10258
11604
  }
10259
11605
  let req = new $OpenApi.OpenApiRequest({
@@ -10273,10 +11619,10 @@ class Client extends openapi_client_1.default {
10273
11619
  });
10274
11620
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
10275
11621
  }
10276
- async modifyPolicyInstance(clusterId, policyName, request) {
11622
+ async modifyNodePoolNodeConfig(ClusterId, NodepoolId, request) {
10277
11623
  let runtime = new $Util.RuntimeOptions({});
10278
11624
  let headers = {};
10279
- return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
11625
+ return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10280
11626
  }
10281
11627
  async modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime) {
10282
11628
  tea_util_1.default.validateModel(request);
@@ -10310,11 +11656,19 @@ class Client extends openapi_client_1.default {
10310
11656
  });
10311
11657
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
10312
11658
  }
10313
- async openAckService(request) {
11659
+ async modifyPolicyInstance(clusterId, policyName, request) {
10314
11660
  let runtime = new $Util.RuntimeOptions({});
10315
11661
  let headers = {};
10316
- return await this.openAckServiceWithOptions(request, headers, runtime);
11662
+ return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
10317
11663
  }
11664
+ /**
11665
+ * You can activate ACK with Alibaba Cloud accounts or RAM users that have the authority of AdministratorAccess.
11666
+ *
11667
+ * @param request OpenAckServiceRequest
11668
+ * @param headers map
11669
+ * @param runtime runtime options for this request RuntimeOptions
11670
+ * @return OpenAckServiceResponse
11671
+ */
10318
11672
  async openAckServiceWithOptions(request, headers, runtime) {
10319
11673
  tea_util_1.default.validateModel(request);
10320
11674
  let query = {};
@@ -10338,10 +11692,16 @@ class Client extends openapi_client_1.default {
10338
11692
  });
10339
11693
  return $tea.cast(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
10340
11694
  }
10341
- async pauseClusterUpgrade(ClusterId) {
11695
+ /**
11696
+ * You can activate ACK with Alibaba Cloud accounts or RAM users that have the authority of AdministratorAccess.
11697
+ *
11698
+ * @param request OpenAckServiceRequest
11699
+ * @return OpenAckServiceResponse
11700
+ */
11701
+ async openAckService(request) {
10342
11702
  let runtime = new $Util.RuntimeOptions({});
10343
11703
  let headers = {};
10344
- return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
11704
+ return await this.openAckServiceWithOptions(request, headers, runtime);
10345
11705
  }
10346
11706
  async pauseClusterUpgradeWithOptions(ClusterId, headers, runtime) {
10347
11707
  let req = new $OpenApi.OpenApiRequest({
@@ -10360,10 +11720,10 @@ class Client extends openapi_client_1.default {
10360
11720
  });
10361
11721
  return $tea.cast(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
10362
11722
  }
10363
- async pauseComponentUpgrade(clusterid, componentid) {
11723
+ async pauseClusterUpgrade(ClusterId) {
10364
11724
  let runtime = new $Util.RuntimeOptions({});
10365
11725
  let headers = {};
10366
- return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
11726
+ return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
10367
11727
  }
10368
11728
  async pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
10369
11729
  let req = new $OpenApi.OpenApiRequest({
@@ -10382,10 +11742,10 @@ class Client extends openapi_client_1.default {
10382
11742
  });
10383
11743
  return $tea.cast(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
10384
11744
  }
10385
- async pauseTask(taskId) {
11745
+ async pauseComponentUpgrade(clusterid, componentid) {
10386
11746
  let runtime = new $Util.RuntimeOptions({});
10387
11747
  let headers = {};
10388
- return await this.pauseTaskWithOptions(taskId, headers, runtime);
11748
+ return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
10389
11749
  }
10390
11750
  async pauseTaskWithOptions(taskId, headers, runtime) {
10391
11751
  let req = new $OpenApi.OpenApiRequest({
@@ -10404,11 +11764,20 @@ class Client extends openapi_client_1.default {
10404
11764
  });
10405
11765
  return $tea.cast(await this.callApi(params, req, runtime), new PauseTaskResponse({}));
10406
11766
  }
10407
- async removeClusterNodes(ClusterId, request) {
11767
+ async pauseTask(taskId) {
10408
11768
  let runtime = new $Util.RuntimeOptions({});
10409
11769
  let headers = {};
10410
- return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
11770
+ return await this.pauseTaskWithOptions(taskId, headers, runtime);
10411
11771
  }
11772
+ /**
11773
+ * @deprecated
11774
+ *
11775
+ * @param request RemoveClusterNodesRequest
11776
+ * @param headers map
11777
+ * @param runtime runtime options for this request RuntimeOptions
11778
+ * @return RemoveClusterNodesResponse
11779
+ */
11780
+ // Deprecated
10412
11781
  async removeClusterNodesWithOptions(ClusterId, request, headers, runtime) {
10413
11782
  tea_util_1.default.validateModel(request);
10414
11783
  let body = {};
@@ -10438,15 +11807,37 @@ class Client extends openapi_client_1.default {
10438
11807
  });
10439
11808
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
10440
11809
  }
10441
- async removeNodePoolNodes(ClusterId, NodepoolId, request) {
11810
+ /**
11811
+ * @deprecated
11812
+ *
11813
+ * @param request RemoveClusterNodesRequest
11814
+ * @return RemoveClusterNodesResponse
11815
+ */
11816
+ // Deprecated
11817
+ async removeClusterNodes(ClusterId, request) {
10442
11818
  let runtime = new $Util.RuntimeOptions({});
10443
11819
  let headers = {};
10444
- return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
11820
+ return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
10445
11821
  }
11822
+ /**
11823
+ * >
11824
+ * * 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.
11825
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
11826
+ * * Nodes remain in the Unschedulable state when they are being removed.
11827
+ * * You can remove only worker nodes. You cannot remove control planes.
11828
+ *
11829
+ * @param tmpReq RemoveNodePoolNodesRequest
11830
+ * @param headers map
11831
+ * @param runtime runtime options for this request RuntimeOptions
11832
+ * @return RemoveNodePoolNodesResponse
11833
+ */
10446
11834
  async removeNodePoolNodesWithOptions(ClusterId, NodepoolId, tmpReq, headers, runtime) {
10447
11835
  tea_util_1.default.validateModel(tmpReq);
10448
11836
  let request = new RemoveNodePoolNodesShrinkRequest({});
10449
11837
  openapi_util_1.default.convert(tmpReq, request);
11838
+ if (!tea_util_1.default.isUnset(tmpReq.instanceIds)) {
11839
+ request.instanceIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "instance_ids", "json");
11840
+ }
10450
11841
  if (!tea_util_1.default.isUnset(tmpReq.nodes)) {
10451
11842
  request.nodesShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
10452
11843
  }
@@ -10454,6 +11845,9 @@ class Client extends openapi_client_1.default {
10454
11845
  if (!tea_util_1.default.isUnset(request.drainNode)) {
10455
11846
  query["drain_node"] = request.drainNode;
10456
11847
  }
11848
+ if (!tea_util_1.default.isUnset(request.instanceIdsShrink)) {
11849
+ query["instance_ids"] = request.instanceIdsShrink;
11850
+ }
10457
11851
  if (!tea_util_1.default.isUnset(request.nodesShrink)) {
10458
11852
  query["nodes"] = request.nodesShrink;
10459
11853
  }
@@ -10477,10 +11871,20 @@ class Client extends openapi_client_1.default {
10477
11871
  });
10478
11872
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
10479
11873
  }
10480
- async removeWorkflow(workflowName) {
11874
+ /**
11875
+ * >
11876
+ * * 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.
11877
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
11878
+ * * Nodes remain in the Unschedulable state when they are being removed.
11879
+ * * You can remove only worker nodes. You cannot remove control planes.
11880
+ *
11881
+ * @param request RemoveNodePoolNodesRequest
11882
+ * @return RemoveNodePoolNodesResponse
11883
+ */
11884
+ async removeNodePoolNodes(ClusterId, NodepoolId, request) {
10481
11885
  let runtime = new $Util.RuntimeOptions({});
10482
11886
  let headers = {};
10483
- return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
11887
+ return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10484
11888
  }
10485
11889
  async removeWorkflowWithOptions(workflowName, headers, runtime) {
10486
11890
  let req = new $OpenApi.OpenApiRequest({
@@ -10499,10 +11903,10 @@ class Client extends openapi_client_1.default {
10499
11903
  });
10500
11904
  return $tea.cast(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
10501
11905
  }
10502
- async repairClusterNodePool(clusterId, nodepoolId, request) {
11906
+ async removeWorkflow(workflowName) {
10503
11907
  let runtime = new $Util.RuntimeOptions({});
10504
11908
  let headers = {};
10505
- return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
11909
+ return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
10506
11910
  }
10507
11911
  async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
10508
11912
  tea_util_1.default.validateModel(request);
@@ -10527,10 +11931,10 @@ class Client extends openapi_client_1.default {
10527
11931
  });
10528
11932
  return $tea.cast(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
10529
11933
  }
10530
- async resumeComponentUpgrade(clusterid, componentid) {
11934
+ async repairClusterNodePool(clusterId, nodepoolId, request) {
10531
11935
  let runtime = new $Util.RuntimeOptions({});
10532
11936
  let headers = {};
10533
- return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
11937
+ return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
10534
11938
  }
10535
11939
  async resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime) {
10536
11940
  let req = new $OpenApi.OpenApiRequest({
@@ -10549,10 +11953,10 @@ class Client extends openapi_client_1.default {
10549
11953
  });
10550
11954
  return $tea.cast(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
10551
11955
  }
10552
- async resumeTask(taskId) {
11956
+ async resumeComponentUpgrade(clusterid, componentid) {
10553
11957
  let runtime = new $Util.RuntimeOptions({});
10554
11958
  let headers = {};
10555
- return await this.resumeTaskWithOptions(taskId, headers, runtime);
11959
+ return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
10556
11960
  }
10557
11961
  async resumeTaskWithOptions(taskId, headers, runtime) {
10558
11962
  let req = new $OpenApi.OpenApiRequest({
@@ -10571,10 +11975,10 @@ class Client extends openapi_client_1.default {
10571
11975
  });
10572
11976
  return $tea.cast(await this.callApi(params, req, runtime), new ResumeTaskResponse({}));
10573
11977
  }
10574
- async resumeUpgradeCluster(ClusterId) {
11978
+ async resumeTask(taskId) {
10575
11979
  let runtime = new $Util.RuntimeOptions({});
10576
11980
  let headers = {};
10577
- return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
11981
+ return await this.resumeTaskWithOptions(taskId, headers, runtime);
10578
11982
  }
10579
11983
  async resumeUpgradeClusterWithOptions(ClusterId, headers, runtime) {
10580
11984
  let req = new $OpenApi.OpenApiRequest({
@@ -10593,11 +11997,20 @@ class Client extends openapi_client_1.default {
10593
11997
  });
10594
11998
  return $tea.cast(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
10595
11999
  }
10596
- async scaleCluster(ClusterId, request) {
12000
+ async resumeUpgradeCluster(ClusterId) {
10597
12001
  let runtime = new $Util.RuntimeOptions({});
10598
12002
  let headers = {};
10599
- return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
12003
+ return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
10600
12004
  }
12005
+ /**
12006
+ * @deprecated
12007
+ *
12008
+ * @param request ScaleClusterRequest
12009
+ * @param headers map
12010
+ * @param runtime runtime options for this request RuntimeOptions
12011
+ * @return ScaleClusterResponse
12012
+ */
12013
+ // Deprecated
10601
12014
  async scaleClusterWithOptions(ClusterId, request, headers, runtime) {
10602
12015
  tea_util_1.default.validateModel(request);
10603
12016
  let body = {};
@@ -10675,10 +12088,17 @@ class Client extends openapi_client_1.default {
10675
12088
  });
10676
12089
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
10677
12090
  }
10678
- async scaleClusterNodePool(ClusterId, NodepoolId, request) {
12091
+ /**
12092
+ * @deprecated
12093
+ *
12094
+ * @param request ScaleClusterRequest
12095
+ * @return ScaleClusterResponse
12096
+ */
12097
+ // Deprecated
12098
+ async scaleCluster(ClusterId, request) {
10679
12099
  let runtime = new $Util.RuntimeOptions({});
10680
12100
  let headers = {};
10681
- return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
12101
+ return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
10682
12102
  }
10683
12103
  async scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10684
12104
  tea_util_1.default.validateModel(request);
@@ -10703,11 +12123,19 @@ class Client extends openapi_client_1.default {
10703
12123
  });
10704
12124
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
10705
12125
  }
10706
- async scaleOutCluster(ClusterId, request) {
12126
+ async scaleClusterNodePool(ClusterId, NodepoolId, request) {
10707
12127
  let runtime = new $Util.RuntimeOptions({});
10708
12128
  let headers = {};
10709
- return await this.scaleOutClusterWithOptions(ClusterId, request, headers, runtime);
12129
+ return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10710
12130
  }
12131
+ /**
12132
+ * > 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~~).
12133
+ *
12134
+ * @param request ScaleOutClusterRequest
12135
+ * @param headers map
12136
+ * @param runtime runtime options for this request RuntimeOptions
12137
+ * @return ScaleOutClusterResponse
12138
+ */
10711
12139
  async scaleOutClusterWithOptions(ClusterId, request, headers, runtime) {
10712
12140
  tea_util_1.default.validateModel(request);
10713
12141
  let body = {};
@@ -10732,7 +12160,7 @@ class Client extends openapi_client_1.default {
10732
12160
  if (!tea_util_1.default.isUnset(request.rdsInstances)) {
10733
12161
  body["rds_instances"] = request.rdsInstances;
10734
12162
  }
10735
- if (!tea_util_1.default.isUnset($tea.toMap(request.runtime))) {
12163
+ if (!tea_util_1.default.isUnset(request.runtime)) {
10736
12164
  body["runtime"] = request.runtime;
10737
12165
  }
10738
12166
  if (!tea_util_1.default.isUnset(request.tags)) {
@@ -10791,10 +12219,60 @@ class Client extends openapi_client_1.default {
10791
12219
  });
10792
12220
  return $tea.cast(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
10793
12221
  }
10794
- async startWorkflow(request) {
12222
+ /**
12223
+ * > 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~~).
12224
+ *
12225
+ * @param request ScaleOutClusterRequest
12226
+ * @return ScaleOutClusterResponse
12227
+ */
12228
+ async scaleOutCluster(ClusterId, request) {
10795
12229
  let runtime = new $Util.RuntimeOptions({});
10796
12230
  let headers = {};
10797
- return await this.startWorkflowWithOptions(request, headers, runtime);
12231
+ return await this.scaleOutClusterWithOptions(ClusterId, request, headers, runtime);
12232
+ }
12233
+ async scanClusterVulsWithOptions(clusterId, headers, runtime) {
12234
+ let req = new $OpenApi.OpenApiRequest({
12235
+ headers: headers,
12236
+ });
12237
+ let params = new $OpenApi.Params({
12238
+ action: "ScanClusterVuls",
12239
+ version: "2015-12-15",
12240
+ protocol: "HTTPS",
12241
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/vuls/scan`,
12242
+ method: "POST",
12243
+ authType: "AK",
12244
+ style: "ROA",
12245
+ reqBodyType: "json",
12246
+ bodyType: "json",
12247
+ });
12248
+ return $tea.cast(await this.callApi(params, req, runtime), new ScanClusterVulsResponse({}));
12249
+ }
12250
+ async scanClusterVuls(clusterId) {
12251
+ let runtime = new $Util.RuntimeOptions({});
12252
+ let headers = {};
12253
+ return await this.scanClusterVulsWithOptions(clusterId, headers, runtime);
12254
+ }
12255
+ async startAlertWithOptions(ClusterId, headers, runtime) {
12256
+ let req = new $OpenApi.OpenApiRequest({
12257
+ headers: headers,
12258
+ });
12259
+ let params = new $OpenApi.Params({
12260
+ action: "StartAlert",
12261
+ version: "2015-12-15",
12262
+ protocol: "HTTPS",
12263
+ pathname: `/alert/${openapi_util_1.default.getEncodeParam(ClusterId)}/alert_rule/start`,
12264
+ method: "POST",
12265
+ authType: "AK",
12266
+ style: "ROA",
12267
+ reqBodyType: "json",
12268
+ bodyType: "json",
12269
+ });
12270
+ return $tea.cast(await this.callApi(params, req, runtime), new StartAlertResponse({}));
12271
+ }
12272
+ async startAlert(ClusterId) {
12273
+ let runtime = new $Util.RuntimeOptions({});
12274
+ let headers = {};
12275
+ return await this.startAlertWithOptions(ClusterId, headers, runtime);
10798
12276
  }
10799
12277
  async startWorkflowWithOptions(request, headers, runtime) {
10800
12278
  tea_util_1.default.validateModel(request);
@@ -10873,10 +12351,54 @@ class Client extends openapi_client_1.default {
10873
12351
  });
10874
12352
  return $tea.cast(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
10875
12353
  }
10876
- async tagResources(request) {
12354
+ async startWorkflow(request) {
10877
12355
  let runtime = new $Util.RuntimeOptions({});
10878
12356
  let headers = {};
10879
- return await this.tagResourcesWithOptions(request, headers, runtime);
12357
+ return await this.startWorkflowWithOptions(request, headers, runtime);
12358
+ }
12359
+ async stopAlertWithOptions(ClusterId, headers, runtime) {
12360
+ let req = new $OpenApi.OpenApiRequest({
12361
+ headers: headers,
12362
+ });
12363
+ let params = new $OpenApi.Params({
12364
+ action: "StopAlert",
12365
+ version: "2015-12-15",
12366
+ protocol: "HTTPS",
12367
+ pathname: `/alert/${openapi_util_1.default.getEncodeParam(ClusterId)}/alert_rule/stop`,
12368
+ method: "POST",
12369
+ authType: "AK",
12370
+ style: "ROA",
12371
+ reqBodyType: "json",
12372
+ bodyType: "json",
12373
+ });
12374
+ return $tea.cast(await this.callApi(params, req, runtime), new StopAlertResponse({}));
12375
+ }
12376
+ async stopAlert(ClusterId) {
12377
+ let runtime = new $Util.RuntimeOptions({});
12378
+ let headers = {};
12379
+ return await this.stopAlertWithOptions(ClusterId, headers, runtime);
12380
+ }
12381
+ async syncClusterNodePoolWithOptions(ClusterId, headers, runtime) {
12382
+ let req = new $OpenApi.OpenApiRequest({
12383
+ headers: headers,
12384
+ });
12385
+ let params = new $OpenApi.Params({
12386
+ action: "SyncClusterNodePool",
12387
+ version: "2015-12-15",
12388
+ protocol: "HTTPS",
12389
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/sync_nodepools`,
12390
+ method: "POST",
12391
+ authType: "AK",
12392
+ style: "ROA",
12393
+ reqBodyType: "json",
12394
+ bodyType: "json",
12395
+ });
12396
+ return $tea.cast(await this.callApi(params, req, runtime), new SyncClusterNodePoolResponse({}));
12397
+ }
12398
+ async syncClusterNodePool(ClusterId) {
12399
+ let runtime = new $Util.RuntimeOptions({});
12400
+ let headers = {};
12401
+ return await this.syncClusterNodePoolWithOptions(ClusterId, headers, runtime);
10880
12402
  }
10881
12403
  async tagResourcesWithOptions(request, headers, runtime) {
10882
12404
  tea_util_1.default.validateModel(request);
@@ -10910,10 +12432,10 @@ class Client extends openapi_client_1.default {
10910
12432
  });
10911
12433
  return $tea.cast(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
10912
12434
  }
10913
- async unInstallClusterAddons(ClusterId, request) {
12435
+ async tagResources(request) {
10914
12436
  let runtime = new $Util.RuntimeOptions({});
10915
12437
  let headers = {};
10916
- return await this.unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime);
12438
+ return await this.tagResourcesWithOptions(request, headers, runtime);
10917
12439
  }
10918
12440
  async unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
10919
12441
  tea_util_1.default.validateModel(request);
@@ -10934,13 +12456,21 @@ class Client extends openapi_client_1.default {
10934
12456
  });
10935
12457
  return $tea.cast(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
10936
12458
  }
10937
- async untagResources(request) {
12459
+ async unInstallClusterAddons(ClusterId, request) {
10938
12460
  let runtime = new $Util.RuntimeOptions({});
10939
12461
  let headers = {};
10940
- return await this.untagResourcesWithOptions(request, headers, runtime);
12462
+ return await this.unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime);
10941
12463
  }
10942
- async untagResourcesWithOptions(request, headers, runtime) {
10943
- tea_util_1.default.validateModel(request);
12464
+ async untagResourcesWithOptions(tmpReq, headers, runtime) {
12465
+ tea_util_1.default.validateModel(tmpReq);
12466
+ let request = new UntagResourcesShrinkRequest({});
12467
+ openapi_util_1.default.convert(tmpReq, request);
12468
+ if (!tea_util_1.default.isUnset(tmpReq.resourceIds)) {
12469
+ request.resourceIdsShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.resourceIds, "resource_ids", "json");
12470
+ }
12471
+ if (!tea_util_1.default.isUnset(tmpReq.tagKeys)) {
12472
+ request.tagKeysShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle(tmpReq.tagKeys, "tag_keys", "json");
12473
+ }
10944
12474
  let query = {};
10945
12475
  if (!tea_util_1.default.isUnset(request.all)) {
10946
12476
  query["all"] = request.all;
@@ -10948,14 +12478,14 @@ class Client extends openapi_client_1.default {
10948
12478
  if (!tea_util_1.default.isUnset(request.regionId)) {
10949
12479
  query["region_id"] = request.regionId;
10950
12480
  }
10951
- if (!tea_util_1.default.isUnset(request.resourceIds)) {
10952
- query["resource_ids"] = request.resourceIds;
12481
+ if (!tea_util_1.default.isUnset(request.resourceIdsShrink)) {
12482
+ query["resource_ids"] = request.resourceIdsShrink;
10953
12483
  }
10954
12484
  if (!tea_util_1.default.isUnset(request.resourceType)) {
10955
12485
  query["resource_type"] = request.resourceType;
10956
12486
  }
10957
- if (!tea_util_1.default.isUnset(request.tagKeys)) {
10958
- query["tag_keys"] = request.tagKeys;
12487
+ if (!tea_util_1.default.isUnset(request.tagKeysShrink)) {
12488
+ query["tag_keys"] = request.tagKeysShrink;
10959
12489
  }
10960
12490
  let req = new $OpenApi.OpenApiRequest({
10961
12491
  headers: headers,
@@ -10974,10 +12504,10 @@ class Client extends openapi_client_1.default {
10974
12504
  });
10975
12505
  return $tea.cast(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
10976
12506
  }
10977
- async updateContactGroupForAlert(ClusterId) {
12507
+ async untagResources(request) {
10978
12508
  let runtime = new $Util.RuntimeOptions({});
10979
12509
  let headers = {};
10980
- return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
12510
+ return await this.untagResourcesWithOptions(request, headers, runtime);
10981
12511
  }
10982
12512
  async updateContactGroupForAlertWithOptions(ClusterId, headers, runtime) {
10983
12513
  let req = new $OpenApi.OpenApiRequest({
@@ -10996,11 +12526,58 @@ class Client extends openapi_client_1.default {
10996
12526
  });
10997
12527
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
10998
12528
  }
10999
- async updateK8sClusterUserConfigExpire(ClusterId, request) {
12529
+ async updateContactGroupForAlert(ClusterId) {
11000
12530
  let runtime = new $Util.RuntimeOptions({});
11001
12531
  let headers = {};
11002
- return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
12532
+ return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
12533
+ }
12534
+ async updateControlPlaneLogWithOptions(ClusterId, request, headers, runtime) {
12535
+ tea_util_1.default.validateModel(request);
12536
+ let body = {};
12537
+ if (!tea_util_1.default.isUnset(request.aliuid)) {
12538
+ body["aliuid"] = request.aliuid;
12539
+ }
12540
+ if (!tea_util_1.default.isUnset(request.components)) {
12541
+ body["components"] = request.components;
12542
+ }
12543
+ if (!tea_util_1.default.isUnset(request.logProject)) {
12544
+ body["log_project"] = request.logProject;
12545
+ }
12546
+ if (!tea_util_1.default.isUnset(request.logTtl)) {
12547
+ body["log_ttl"] = request.logTtl;
12548
+ }
12549
+ let req = new $OpenApi.OpenApiRequest({
12550
+ headers: headers,
12551
+ body: openapi_util_1.default.parseToMap(body),
12552
+ });
12553
+ let params = new $OpenApi.Params({
12554
+ action: "UpdateControlPlaneLog",
12555
+ version: "2015-12-15",
12556
+ protocol: "HTTPS",
12557
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(ClusterId)}/controlplanelog`,
12558
+ method: "PUT",
12559
+ authType: "AK",
12560
+ style: "ROA",
12561
+ reqBodyType: "json",
12562
+ bodyType: "none",
12563
+ });
12564
+ return $tea.cast(await this.callApi(params, req, runtime), new UpdateControlPlaneLogResponse({}));
11003
12565
  }
12566
+ async updateControlPlaneLog(ClusterId, request) {
12567
+ let runtime = new $Util.RuntimeOptions({});
12568
+ let headers = {};
12569
+ return await this.updateControlPlaneLogWithOptions(ClusterId, request, headers, runtime);
12570
+ }
12571
+ /**
12572
+ * >
12573
+ * * You can call this operation only with an Alibaba Cloud account.
12574
+ * * 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.
12575
+ *
12576
+ * @param request UpdateK8sClusterUserConfigExpireRequest
12577
+ * @param headers map
12578
+ * @param runtime runtime options for this request RuntimeOptions
12579
+ * @return UpdateK8sClusterUserConfigExpireResponse
12580
+ */
11004
12581
  async updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime) {
11005
12582
  tea_util_1.default.validateModel(request);
11006
12583
  let body = {};
@@ -11027,10 +12604,18 @@ class Client extends openapi_client_1.default {
11027
12604
  });
11028
12605
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
11029
12606
  }
11030
- async updateTemplate(TemplateId, request) {
12607
+ /**
12608
+ * >
12609
+ * * You can call this operation only with an Alibaba Cloud account.
12610
+ * * 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.
12611
+ *
12612
+ * @param request UpdateK8sClusterUserConfigExpireRequest
12613
+ * @return UpdateK8sClusterUserConfigExpireResponse
12614
+ */
12615
+ async updateK8sClusterUserConfigExpire(ClusterId, request) {
11031
12616
  let runtime = new $Util.RuntimeOptions({});
11032
12617
  let headers = {};
11033
- return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
12618
+ return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
11034
12619
  }
11035
12620
  async updateTemplateWithOptions(TemplateId, request, headers, runtime) {
11036
12621
  tea_util_1.default.validateModel(request);
@@ -11067,10 +12652,10 @@ class Client extends openapi_client_1.default {
11067
12652
  });
11068
12653
  return $tea.cast(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
11069
12654
  }
11070
- async upgradeCluster(ClusterId, request) {
12655
+ async updateTemplate(TemplateId, request) {
11071
12656
  let runtime = new $Util.RuntimeOptions({});
11072
12657
  let headers = {};
11073
- return await this.upgradeClusterWithOptions(ClusterId, request, headers, runtime);
12658
+ return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
11074
12659
  }
11075
12660
  async upgradeClusterWithOptions(ClusterId, request, headers, runtime) {
11076
12661
  tea_util_1.default.validateModel(request);
@@ -11078,6 +12663,9 @@ class Client extends openapi_client_1.default {
11078
12663
  if (!tea_util_1.default.isUnset(request.componentName)) {
11079
12664
  body["component_name"] = request.componentName;
11080
12665
  }
12666
+ if (!tea_util_1.default.isUnset(request.masterOnly)) {
12667
+ body["master_only"] = request.masterOnly;
12668
+ }
11081
12669
  if (!tea_util_1.default.isUnset(request.nextVersion)) {
11082
12670
  body["next_version"] = request.nextVersion;
11083
12671
  }
@@ -11101,10 +12689,10 @@ class Client extends openapi_client_1.default {
11101
12689
  });
11102
12690
  return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
11103
12691
  }
11104
- async upgradeClusterAddons(ClusterId, request) {
12692
+ async upgradeCluster(ClusterId, request) {
11105
12693
  let runtime = new $Util.RuntimeOptions({});
11106
12694
  let headers = {};
11107
- return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
12695
+ return await this.upgradeClusterWithOptions(ClusterId, request, headers, runtime);
11108
12696
  }
11109
12697
  async upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime) {
11110
12698
  tea_util_1.default.validateModel(request);
@@ -11125,11 +12713,19 @@ class Client extends openapi_client_1.default {
11125
12713
  });
11126
12714
  return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
11127
12715
  }
11128
- async upgradeClusterNodepool(ClusterId, NodepoolId, request) {
12716
+ async upgradeClusterAddons(ClusterId, request) {
11129
12717
  let runtime = new $Util.RuntimeOptions({});
11130
12718
  let headers = {};
11131
- return await this.upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
12719
+ return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
11132
12720
  }
12721
+ /**
12722
+ * You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
12723
+ *
12724
+ * @param request UpgradeClusterNodepoolRequest
12725
+ * @param headers map
12726
+ * @param runtime runtime options for this request RuntimeOptions
12727
+ * @return UpgradeClusterNodepoolResponse
12728
+ */
11133
12729
  async upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
11134
12730
  tea_util_1.default.validateModel(request);
11135
12731
  let body = {};
@@ -11139,6 +12735,9 @@ class Client extends openapi_client_1.default {
11139
12735
  if (!tea_util_1.default.isUnset(request.kubernetesVersion)) {
11140
12736
  body["kubernetes_version"] = request.kubernetesVersion;
11141
12737
  }
12738
+ if (!tea_util_1.default.isUnset(request.runtimeType)) {
12739
+ body["runtime_type"] = request.runtimeType;
12740
+ }
11142
12741
  if (!tea_util_1.default.isUnset(request.runtimeVersion)) {
11143
12742
  body["runtime_version"] = request.runtimeVersion;
11144
12743
  }
@@ -11159,6 +12758,17 @@ class Client extends openapi_client_1.default {
11159
12758
  });
11160
12759
  return $tea.cast(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
11161
12760
  }
12761
+ /**
12762
+ * You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
12763
+ *
12764
+ * @param request UpgradeClusterNodepoolRequest
12765
+ * @return UpgradeClusterNodepoolResponse
12766
+ */
12767
+ async upgradeClusterNodepool(ClusterId, NodepoolId, request) {
12768
+ let runtime = new $Util.RuntimeOptions({});
12769
+ let headers = {};
12770
+ return await this.upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
12771
+ }
11162
12772
  }
11163
12773
  exports.default = Client;
11164
12774
  //# sourceMappingURL=client.js.map