@alicloud/cs20151215 3.1.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -53,6 +53,7 @@ class DataDisk extends $tea.Model {
53
53
  category: 'category',
54
54
  encrypted: 'encrypted',
55
55
  fileSystem: 'file_system',
56
+ kmsKeyId: 'kms_key_id',
56
57
  mountTarget: 'mount_target',
57
58
  performanceLevel: 'performance_level',
58
59
  provisionedIops: 'provisioned_iops',
@@ -67,6 +68,7 @@ class DataDisk extends $tea.Model {
67
68
  category: 'string',
68
69
  encrypted: 'string',
69
70
  fileSystem: 'string',
71
+ kmsKeyId: 'string',
70
72
  mountTarget: 'string',
71
73
  performanceLevel: 'string',
72
74
  provisionedIops: 'number',
@@ -162,6 +164,7 @@ class Nodepool extends $tea.Model {
162
164
  kubernetesConfig: 'kubernetes_config',
163
165
  management: 'management',
164
166
  maxNodes: 'max_nodes',
167
+ nodeConfig: 'node_config',
165
168
  nodepoolInfo: 'nodepool_info',
166
169
  scalingGroup: 'scaling_group',
167
170
  teeConfig: 'tee_config',
@@ -176,6 +179,7 @@ class Nodepool extends $tea.Model {
176
179
  kubernetesConfig: NodepoolKubernetesConfig,
177
180
  management: NodepoolManagement,
178
181
  maxNodes: 'number',
182
+ nodeConfig: NodepoolNodeConfig,
179
183
  nodepoolInfo: NodepoolNodepoolInfo,
180
184
  scalingGroup: NodepoolScalingGroup,
181
185
  teeConfig: NodepoolTeeConfig,
@@ -459,6 +463,42 @@ class CancelComponentUpgradeResponse extends $tea.Model {
459
463
  }
460
464
  }
461
465
  exports.CancelComponentUpgradeResponse = CancelComponentUpgradeResponse;
466
+ class CancelOperationPlanResponseBody extends $tea.Model {
467
+ constructor(map) {
468
+ super(map);
469
+ }
470
+ static names() {
471
+ return {
472
+ requestId: 'requestId',
473
+ };
474
+ }
475
+ static types() {
476
+ return {
477
+ requestId: 'string',
478
+ };
479
+ }
480
+ }
481
+ exports.CancelOperationPlanResponseBody = CancelOperationPlanResponseBody;
482
+ class CancelOperationPlanResponse extends $tea.Model {
483
+ constructor(map) {
484
+ super(map);
485
+ }
486
+ static names() {
487
+ return {
488
+ headers: 'headers',
489
+ statusCode: 'statusCode',
490
+ body: 'body',
491
+ };
492
+ }
493
+ static types() {
494
+ return {
495
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
496
+ statusCode: 'number',
497
+ body: CancelOperationPlanResponseBody,
498
+ };
499
+ }
500
+ }
501
+ exports.CancelOperationPlanResponse = CancelOperationPlanResponse;
462
502
  class CancelTaskResponse extends $tea.Model {
463
503
  constructor(map) {
464
504
  super(map);
@@ -860,6 +900,7 @@ class CreateClusterNodePoolRequest extends $tea.Model {
860
900
  kubernetesConfig: 'kubernetes_config',
861
901
  management: 'management',
862
902
  maxNodes: 'max_nodes',
903
+ nodeConfig: 'node_config',
863
904
  nodepoolInfo: 'nodepool_info',
864
905
  scalingGroup: 'scaling_group',
865
906
  teeConfig: 'tee_config',
@@ -874,6 +915,7 @@ class CreateClusterNodePoolRequest extends $tea.Model {
874
915
  kubernetesConfig: CreateClusterNodePoolRequestKubernetesConfig,
875
916
  management: CreateClusterNodePoolRequestManagement,
876
917
  maxNodes: 'number',
918
+ nodeConfig: CreateClusterNodePoolRequestNodeConfig,
877
919
  nodepoolInfo: CreateClusterNodePoolRequestNodepoolInfo,
878
920
  scalingGroup: CreateClusterNodePoolRequestScalingGroup,
879
921
  teeConfig: CreateClusterNodePoolRequestTeeConfig,
@@ -1304,11 +1346,13 @@ class DeleteClusterNodepoolResponseBody extends $tea.Model {
1304
1346
  static names() {
1305
1347
  return {
1306
1348
  requestId: 'request_id',
1349
+ taskId: 'task_id',
1307
1350
  };
1308
1351
  }
1309
1352
  static types() {
1310
1353
  return {
1311
1354
  requestId: 'string',
1355
+ taskId: 'string',
1312
1356
  };
1313
1357
  }
1314
1358
  }
@@ -2273,6 +2317,24 @@ class DescribeClusterResourcesResponse extends $tea.Model {
2273
2317
  }
2274
2318
  }
2275
2319
  exports.DescribeClusterResourcesResponse = DescribeClusterResourcesResponse;
2320
+ class DescribeClusterTasksRequest extends $tea.Model {
2321
+ constructor(map) {
2322
+ super(map);
2323
+ }
2324
+ static names() {
2325
+ return {
2326
+ pageNumber: 'page_number',
2327
+ pageSize: 'page_size',
2328
+ };
2329
+ }
2330
+ static types() {
2331
+ return {
2332
+ pageNumber: 'number',
2333
+ pageSize: 'number',
2334
+ };
2335
+ }
2336
+ }
2337
+ exports.DescribeClusterTasksRequest = DescribeClusterTasksRequest;
2276
2338
  class DescribeClusterTasksResponseBody extends $tea.Model {
2277
2339
  constructor(map) {
2278
2340
  super(map);
@@ -2501,6 +2563,7 @@ class DescribeClustersV1Request extends $tea.Model {
2501
2563
  }
2502
2564
  static names() {
2503
2565
  return {
2566
+ clusterId: 'cluster_id',
2504
2567
  clusterSpec: 'cluster_spec',
2505
2568
  clusterType: 'cluster_type',
2506
2569
  name: 'name',
@@ -2512,6 +2575,7 @@ class DescribeClustersV1Request extends $tea.Model {
2512
2575
  }
2513
2576
  static types() {
2514
2577
  return {
2578
+ clusterId: 'string',
2515
2579
  clusterSpec: 'string',
2516
2580
  clusterType: 'string',
2517
2581
  name: 'string',
@@ -3647,6 +3711,50 @@ class FixNodePoolVulsResponse extends $tea.Model {
3647
3711
  }
3648
3712
  }
3649
3713
  exports.FixNodePoolVulsResponse = FixNodePoolVulsResponse;
3714
+ class GetClusterAddonInstanceResponseBody extends $tea.Model {
3715
+ constructor(map) {
3716
+ super(map);
3717
+ }
3718
+ static names() {
3719
+ return {
3720
+ config: 'config',
3721
+ logging: 'logging',
3722
+ name: 'name',
3723
+ state: 'state',
3724
+ version: 'version',
3725
+ };
3726
+ }
3727
+ static types() {
3728
+ return {
3729
+ config: 'string',
3730
+ logging: GetClusterAddonInstanceResponseBodyLogging,
3731
+ name: 'string',
3732
+ state: 'string',
3733
+ version: 'string',
3734
+ };
3735
+ }
3736
+ }
3737
+ exports.GetClusterAddonInstanceResponseBody = GetClusterAddonInstanceResponseBody;
3738
+ class GetClusterAddonInstanceResponse extends $tea.Model {
3739
+ constructor(map) {
3740
+ super(map);
3741
+ }
3742
+ static names() {
3743
+ return {
3744
+ headers: 'headers',
3745
+ statusCode: 'statusCode',
3746
+ body: 'body',
3747
+ };
3748
+ }
3749
+ static types() {
3750
+ return {
3751
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3752
+ statusCode: 'number',
3753
+ body: GetClusterAddonInstanceResponseBody,
3754
+ };
3755
+ }
3756
+ }
3757
+ exports.GetClusterAddonInstanceResponse = GetClusterAddonInstanceResponse;
3650
3758
  class GetClusterCheckResponseBody extends $tea.Model {
3651
3759
  constructor(map) {
3652
3760
  super(map);
@@ -3849,6 +3957,104 @@ class InstallClusterAddonsResponse extends $tea.Model {
3849
3957
  }
3850
3958
  }
3851
3959
  exports.InstallClusterAddonsResponse = InstallClusterAddonsResponse;
3960
+ class ListAddonsRequest extends $tea.Model {
3961
+ constructor(map) {
3962
+ super(map);
3963
+ }
3964
+ static names() {
3965
+ return {
3966
+ clusterId: 'cluster_id',
3967
+ clusterSpec: 'cluster_spec',
3968
+ clusterType: 'cluster_type',
3969
+ clusterVersion: 'cluster_version',
3970
+ profile: 'profile',
3971
+ regionId: 'region_id',
3972
+ };
3973
+ }
3974
+ static types() {
3975
+ return {
3976
+ clusterId: 'string',
3977
+ clusterSpec: 'string',
3978
+ clusterType: 'string',
3979
+ clusterVersion: 'string',
3980
+ profile: 'string',
3981
+ regionId: 'string',
3982
+ };
3983
+ }
3984
+ }
3985
+ exports.ListAddonsRequest = ListAddonsRequest;
3986
+ class ListAddonsResponseBody extends $tea.Model {
3987
+ constructor(map) {
3988
+ super(map);
3989
+ }
3990
+ static names() {
3991
+ return {
3992
+ addons: 'addons',
3993
+ };
3994
+ }
3995
+ static types() {
3996
+ return {
3997
+ addons: { 'type': 'array', 'itemType': ListAddonsResponseBodyAddons },
3998
+ };
3999
+ }
4000
+ }
4001
+ exports.ListAddonsResponseBody = ListAddonsResponseBody;
4002
+ class ListAddonsResponse extends $tea.Model {
4003
+ constructor(map) {
4004
+ super(map);
4005
+ }
4006
+ static names() {
4007
+ return {
4008
+ headers: 'headers',
4009
+ statusCode: 'statusCode',
4010
+ body: 'body',
4011
+ };
4012
+ }
4013
+ static types() {
4014
+ return {
4015
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4016
+ statusCode: 'number',
4017
+ body: ListAddonsResponseBody,
4018
+ };
4019
+ }
4020
+ }
4021
+ exports.ListAddonsResponse = ListAddonsResponse;
4022
+ class ListClusterAddonInstancesResponseBody extends $tea.Model {
4023
+ constructor(map) {
4024
+ super(map);
4025
+ }
4026
+ static names() {
4027
+ return {
4028
+ addons: 'addons',
4029
+ };
4030
+ }
4031
+ static types() {
4032
+ return {
4033
+ addons: { 'type': 'array', 'itemType': ListClusterAddonInstancesResponseBodyAddons },
4034
+ };
4035
+ }
4036
+ }
4037
+ exports.ListClusterAddonInstancesResponseBody = ListClusterAddonInstancesResponseBody;
4038
+ class ListClusterAddonInstancesResponse extends $tea.Model {
4039
+ constructor(map) {
4040
+ super(map);
4041
+ }
4042
+ static names() {
4043
+ return {
4044
+ headers: 'headers',
4045
+ statusCode: 'statusCode',
4046
+ body: 'body',
4047
+ };
4048
+ }
4049
+ static types() {
4050
+ return {
4051
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4052
+ statusCode: 'number',
4053
+ body: ListClusterAddonInstancesResponseBody,
4054
+ };
4055
+ }
4056
+ }
4057
+ exports.ListClusterAddonInstancesResponse = ListClusterAddonInstancesResponse;
3852
4058
  class ListClusterChecksRequest extends $tea.Model {
3853
4059
  constructor(map) {
3854
4060
  super(map);
@@ -5827,6 +6033,56 @@ class NodepoolKubernetesConfig extends $tea.Model {
5827
6033
  }
5828
6034
  }
5829
6035
  exports.NodepoolKubernetesConfig = NodepoolKubernetesConfig;
6036
+ class NodepoolManagementAutoRepairPolicy extends $tea.Model {
6037
+ constructor(map) {
6038
+ super(map);
6039
+ }
6040
+ static names() {
6041
+ return {
6042
+ restartNode: 'restart_node',
6043
+ };
6044
+ }
6045
+ static types() {
6046
+ return {
6047
+ restartNode: 'boolean',
6048
+ };
6049
+ }
6050
+ }
6051
+ exports.NodepoolManagementAutoRepairPolicy = NodepoolManagementAutoRepairPolicy;
6052
+ class NodepoolManagementAutoUpgradePolicy extends $tea.Model {
6053
+ constructor(map) {
6054
+ super(map);
6055
+ }
6056
+ static names() {
6057
+ return {
6058
+ autoUpgradeKubelet: 'auto_upgrade_kubelet',
6059
+ };
6060
+ }
6061
+ static types() {
6062
+ return {
6063
+ autoUpgradeKubelet: 'boolean',
6064
+ };
6065
+ }
6066
+ }
6067
+ exports.NodepoolManagementAutoUpgradePolicy = NodepoolManagementAutoUpgradePolicy;
6068
+ class NodepoolManagementAutoVulFixPolicy extends $tea.Model {
6069
+ constructor(map) {
6070
+ super(map);
6071
+ }
6072
+ static names() {
6073
+ return {
6074
+ restartNode: 'restart_node',
6075
+ vulLevel: 'vul_level',
6076
+ };
6077
+ }
6078
+ static types() {
6079
+ return {
6080
+ restartNode: 'boolean',
6081
+ vulLevel: 'string',
6082
+ };
6083
+ }
6084
+ }
6085
+ exports.NodepoolManagementAutoVulFixPolicy = NodepoolManagementAutoVulFixPolicy;
5830
6086
  class NodepoolManagementUpgradeConfig extends $tea.Model {
5831
6087
  constructor(map) {
5832
6088
  super(map);
@@ -5856,6 +6112,11 @@ class NodepoolManagement extends $tea.Model {
5856
6112
  static names() {
5857
6113
  return {
5858
6114
  autoRepair: 'auto_repair',
6115
+ autoRepairPolicy: 'auto_repair_policy',
6116
+ autoUpgrade: 'auto_upgrade',
6117
+ autoUpgradePolicy: 'auto_upgrade_policy',
6118
+ autoVulFix: 'auto_vul_fix',
6119
+ autoVulFixPolicy: 'auto_vul_fix_policy',
5859
6120
  enable: 'enable',
5860
6121
  upgradeConfig: 'upgrade_config',
5861
6122
  };
@@ -5863,12 +6124,33 @@ class NodepoolManagement extends $tea.Model {
5863
6124
  static types() {
5864
6125
  return {
5865
6126
  autoRepair: 'boolean',
6127
+ autoRepairPolicy: NodepoolManagementAutoRepairPolicy,
6128
+ autoUpgrade: 'boolean',
6129
+ autoUpgradePolicy: NodepoolManagementAutoUpgradePolicy,
6130
+ autoVulFix: 'boolean',
6131
+ autoVulFixPolicy: NodepoolManagementAutoVulFixPolicy,
5866
6132
  enable: 'boolean',
5867
6133
  upgradeConfig: NodepoolManagementUpgradeConfig,
5868
6134
  };
5869
6135
  }
5870
6136
  }
5871
6137
  exports.NodepoolManagement = NodepoolManagement;
6138
+ class NodepoolNodeConfig extends $tea.Model {
6139
+ constructor(map) {
6140
+ super(map);
6141
+ }
6142
+ static names() {
6143
+ return {
6144
+ kubeletConfiguration: 'kubelet_configuration',
6145
+ };
6146
+ }
6147
+ static types() {
6148
+ return {
6149
+ kubeletConfiguration: KubeletConfig,
6150
+ };
6151
+ }
6152
+ }
6153
+ exports.NodepoolNodeConfig = NodepoolNodeConfig;
5872
6154
  class NodepoolNodepoolInfo extends $tea.Model {
5873
6155
  constructor(map) {
5874
6156
  super(map);
@@ -5962,6 +6244,7 @@ class NodepoolScalingGroup extends $tea.Model {
5962
6244
  internetChargeType: 'internet_charge_type',
5963
6245
  internetMaxBandwidthOut: 'internet_max_bandwidth_out',
5964
6246
  keyPair: 'key_pair',
6247
+ loginAsNonRoot: 'login_as_non_root',
5965
6248
  loginPassword: 'login_password',
5966
6249
  multiAzPolicy: 'multi_az_policy',
5967
6250
  onDemandBaseCapacity: 'on_demand_base_capacity',
@@ -5979,7 +6262,11 @@ class NodepoolScalingGroup extends $tea.Model {
5979
6262
  spotPriceLimit: 'spot_price_limit',
5980
6263
  spotStrategy: 'spot_strategy',
5981
6264
  systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
6265
+ systemDiskCategories: 'system_disk_categories',
5982
6266
  systemDiskCategory: 'system_disk_category',
6267
+ systemDiskEncryptAlgorithm: 'system_disk_encrypt_algorithm',
6268
+ systemDiskEncrypted: 'system_disk_encrypted',
6269
+ systemDiskKmsKeyId: 'system_disk_kms_key_id',
5983
6270
  systemDiskPerformanceLevel: 'system_disk_performance_level',
5984
6271
  systemDiskProvisionedIops: 'system_disk_provisioned_iops',
5985
6272
  systemDiskSize: 'system_disk_size',
@@ -6002,6 +6289,7 @@ class NodepoolScalingGroup extends $tea.Model {
6002
6289
  internetChargeType: 'string',
6003
6290
  internetMaxBandwidthOut: 'number',
6004
6291
  keyPair: 'string',
6292
+ loginAsNonRoot: 'boolean',
6005
6293
  loginPassword: 'string',
6006
6294
  multiAzPolicy: 'string',
6007
6295
  onDemandBaseCapacity: 'number',
@@ -6019,7 +6307,11 @@ class NodepoolScalingGroup extends $tea.Model {
6019
6307
  spotPriceLimit: { 'type': 'array', 'itemType': NodepoolScalingGroupSpotPriceLimit },
6020
6308
  spotStrategy: 'string',
6021
6309
  systemDiskBurstingEnabled: 'boolean',
6310
+ systemDiskCategories: { 'type': 'array', 'itemType': 'string' },
6022
6311
  systemDiskCategory: 'string',
6312
+ systemDiskEncryptAlgorithm: 'string',
6313
+ systemDiskEncrypted: 'boolean',
6314
+ systemDiskKmsKeyId: 'string',
6023
6315
  systemDiskPerformanceLevel: 'string',
6024
6316
  systemDiskProvisionedIops: 'number',
6025
6317
  systemDiskSize: 'number',
@@ -6152,6 +6444,7 @@ class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
6152
6444
  runtime: 'runtime',
6153
6445
  runtimeVersion: 'runtime_version',
6154
6446
  taints: 'taints',
6447
+ unschedulable: 'unschedulable',
6155
6448
  userData: 'user_data',
6156
6449
  };
6157
6450
  }
@@ -6164,6 +6457,7 @@ class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
6164
6457
  runtime: 'string',
6165
6458
  runtimeVersion: 'string',
6166
6459
  taints: { 'type': 'array', 'itemType': Taint },
6460
+ unschedulable: 'boolean',
6167
6461
  userData: 'string',
6168
6462
  };
6169
6463
  }
@@ -6271,6 +6565,22 @@ class CreateClusterNodePoolRequestManagement extends $tea.Model {
6271
6565
  }
6272
6566
  }
6273
6567
  exports.CreateClusterNodePoolRequestManagement = CreateClusterNodePoolRequestManagement;
6568
+ class CreateClusterNodePoolRequestNodeConfig extends $tea.Model {
6569
+ constructor(map) {
6570
+ super(map);
6571
+ }
6572
+ static names() {
6573
+ return {
6574
+ kubeletConfiguration: 'kubelet_configuration',
6575
+ };
6576
+ }
6577
+ static types() {
6578
+ return {
6579
+ kubeletConfiguration: KubeletConfig,
6580
+ };
6581
+ }
6582
+ }
6583
+ exports.CreateClusterNodePoolRequestNodeConfig = CreateClusterNodePoolRequestNodeConfig;
6274
6584
  class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
6275
6585
  constructor(map) {
6276
6586
  super(map);
@@ -6353,6 +6663,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
6353
6663
  return {
6354
6664
  autoRenew: 'auto_renew',
6355
6665
  autoRenewPeriod: 'auto_renew_period',
6666
+ cisEnabled: 'cis_enabled',
6356
6667
  compensateWithOnDemand: 'compensate_with_on_demand',
6357
6668
  dataDisks: 'data_disks',
6358
6669
  deploymentsetId: 'deploymentset_id',
@@ -6364,6 +6675,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
6364
6675
  internetChargeType: 'internet_charge_type',
6365
6676
  internetMaxBandwidthOut: 'internet_max_bandwidth_out',
6366
6677
  keyPair: 'key_pair',
6678
+ loginAsNonRoot: 'login_as_non_root',
6367
6679
  loginPassword: 'login_password',
6368
6680
  multiAzPolicy: 'multi_az_policy',
6369
6681
  onDemandBaseCapacity: 'on_demand_base_capacity',
@@ -6376,12 +6688,17 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
6376
6688
  scalingPolicy: 'scaling_policy',
6377
6689
  securityGroupId: 'security_group_id',
6378
6690
  securityGroupIds: 'security_group_ids',
6691
+ socEnabled: 'soc_enabled',
6379
6692
  spotInstancePools: 'spot_instance_pools',
6380
6693
  spotInstanceRemedy: 'spot_instance_remedy',
6381
6694
  spotPriceLimit: 'spot_price_limit',
6382
6695
  spotStrategy: 'spot_strategy',
6383
6696
  systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
6697
+ systemDiskCategories: 'system_disk_categories',
6384
6698
  systemDiskCategory: 'system_disk_category',
6699
+ systemDiskEncryptAlgorithm: 'system_disk_encrypt_algorithm',
6700
+ systemDiskEncrypted: 'system_disk_encrypted',
6701
+ systemDiskKmsKeyId: 'system_disk_kms_key_id',
6385
6702
  systemDiskPerformanceLevel: 'system_disk_performance_level',
6386
6703
  systemDiskProvisionedIops: 'system_disk_provisioned_iops',
6387
6704
  systemDiskSize: 'system_disk_size',
@@ -6393,6 +6710,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
6393
6710
  return {
6394
6711
  autoRenew: 'boolean',
6395
6712
  autoRenewPeriod: 'number',
6713
+ cisEnabled: 'boolean',
6396
6714
  compensateWithOnDemand: 'boolean',
6397
6715
  dataDisks: { 'type': 'array', 'itemType': DataDisk },
6398
6716
  deploymentsetId: 'string',
@@ -6404,6 +6722,7 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
6404
6722
  internetChargeType: 'string',
6405
6723
  internetMaxBandwidthOut: 'number',
6406
6724
  keyPair: 'string',
6725
+ loginAsNonRoot: 'boolean',
6407
6726
  loginPassword: 'string',
6408
6727
  multiAzPolicy: 'string',
6409
6728
  onDemandBaseCapacity: 'number',
@@ -6416,12 +6735,17 @@ class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
6416
6735
  scalingPolicy: 'string',
6417
6736
  securityGroupId: 'string',
6418
6737
  securityGroupIds: { 'type': 'array', 'itemType': 'string' },
6738
+ socEnabled: 'boolean',
6419
6739
  spotInstancePools: 'number',
6420
6740
  spotInstanceRemedy: 'boolean',
6421
6741
  spotPriceLimit: { 'type': 'array', 'itemType': CreateClusterNodePoolRequestScalingGroupSpotPriceLimit },
6422
6742
  spotStrategy: 'string',
6423
6743
  systemDiskBurstingEnabled: 'boolean',
6744
+ systemDiskCategories: { 'type': 'array', 'itemType': 'string' },
6424
6745
  systemDiskCategory: 'string',
6746
+ systemDiskEncryptAlgorithm: 'string',
6747
+ systemDiskEncrypted: 'boolean',
6748
+ systemDiskKmsKeyId: 'string',
6425
6749
  systemDiskPerformanceLevel: 'string',
6426
6750
  systemDiskProvisionedIops: 'number',
6427
6751
  systemDiskSize: 'number',
@@ -6638,6 +6962,7 @@ class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Mod
6638
6962
  runtime: 'runtime',
6639
6963
  runtimeVersion: 'runtime_version',
6640
6964
  taints: 'taints',
6965
+ unschedulable: 'unschedulable',
6641
6966
  userData: 'user_data',
6642
6967
  };
6643
6968
  }
@@ -6650,6 +6975,7 @@ class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Mod
6650
6975
  runtime: 'string',
6651
6976
  runtimeVersion: 'string',
6652
6977
  taints: { 'type': 'array', 'itemType': Taint },
6978
+ unschedulable: 'boolean',
6653
6979
  userData: 'string',
6654
6980
  };
6655
6981
  }
@@ -6847,16 +7173,19 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
6847
7173
  return {
6848
7174
  autoRenew: 'auto_renew',
6849
7175
  autoRenewPeriod: 'auto_renew_period',
7176
+ cisEnabled: 'cis_enabled',
6850
7177
  compensateWithOnDemand: 'compensate_with_on_demand',
6851
7178
  dataDisks: 'data_disks',
6852
7179
  deploymentsetId: 'deploymentset_id',
6853
7180
  desiredSize: 'desired_size',
6854
7181
  imageId: 'image_id',
7182
+ imageType: 'image_type',
6855
7183
  instanceChargeType: 'instance_charge_type',
6856
7184
  instanceTypes: 'instance_types',
6857
7185
  internetChargeType: 'internet_charge_type',
6858
7186
  internetMaxBandwidthOut: 'internet_max_bandwidth_out',
6859
7187
  keyPair: 'key_pair',
7188
+ loginAsNonRoot: 'login_as_non_root',
6860
7189
  loginPassword: 'login_password',
6861
7190
  multiAzPolicy: 'multi_az_policy',
6862
7191
  onDemandBaseCapacity: 'on_demand_base_capacity',
@@ -6871,12 +7200,19 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
6871
7200
  scalingPolicy: 'scaling_policy',
6872
7201
  securityGroupId: 'security_group_id',
6873
7202
  securityGroupIds: 'security_group_ids',
7203
+ socEnabled: 'soc_enabled',
6874
7204
  spotInstancePools: 'spot_instance_pools',
6875
7205
  spotInstanceRemedy: 'spot_instance_remedy',
6876
7206
  spotPriceLimit: 'spot_price_limit',
6877
7207
  spotStrategy: 'spot_strategy',
7208
+ systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
7209
+ systemDiskCategories: 'system_disk_categories',
6878
7210
  systemDiskCategory: 'system_disk_category',
7211
+ systemDiskEncryptAlgorithm: 'system_disk_encrypt_algorithm',
7212
+ systemDiskEncrypted: 'system_disk_encrypted',
7213
+ systemDiskKmsKeyId: 'system_disk_kms_key_id',
6879
7214
  systemDiskPerformanceLevel: 'system_disk_performance_level',
7215
+ systemDiskProvisionedIops: 'system_disk_provisioned_iops',
6880
7216
  systemDiskSize: 'system_disk_size',
6881
7217
  tags: 'tags',
6882
7218
  vswitchIds: 'vswitch_ids',
@@ -6886,16 +7222,19 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
6886
7222
  return {
6887
7223
  autoRenew: 'boolean',
6888
7224
  autoRenewPeriod: 'number',
7225
+ cisEnabled: 'boolean',
6889
7226
  compensateWithOnDemand: 'boolean',
6890
7227
  dataDisks: { 'type': 'array', 'itemType': DataDisk },
6891
7228
  deploymentsetId: 'string',
6892
7229
  desiredSize: 'number',
6893
7230
  imageId: 'string',
7231
+ imageType: 'string',
6894
7232
  instanceChargeType: 'string',
6895
7233
  instanceTypes: { 'type': 'array', 'itemType': 'string' },
6896
7234
  internetChargeType: 'string',
6897
7235
  internetMaxBandwidthOut: 'number',
6898
7236
  keyPair: 'string',
7237
+ loginAsNonRoot: 'boolean',
6899
7238
  loginPassword: 'string',
6900
7239
  multiAzPolicy: 'string',
6901
7240
  onDemandBaseCapacity: 'number',
@@ -6910,12 +7249,19 @@ class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.Model {
6910
7249
  scalingPolicy: 'string',
6911
7250
  securityGroupId: 'string',
6912
7251
  securityGroupIds: { 'type': 'array', 'itemType': 'string' },
7252
+ socEnabled: 'boolean',
6913
7253
  spotInstancePools: 'number',
6914
7254
  spotInstanceRemedy: 'boolean',
6915
7255
  spotPriceLimit: { 'type': 'array', 'itemType': DescribeClusterNodePoolDetailResponseBodyScalingGroupSpotPriceLimit },
6916
7256
  spotStrategy: 'string',
7257
+ systemDiskBurstingEnabled: 'boolean',
7258
+ systemDiskCategories: { 'type': 'array', 'itemType': 'string' },
6917
7259
  systemDiskCategory: 'string',
7260
+ systemDiskEncryptAlgorithm: 'string',
7261
+ systemDiskEncrypted: 'boolean',
7262
+ systemDiskKmsKeyId: 'string',
6918
7263
  systemDiskPerformanceLevel: 'string',
7264
+ systemDiskProvisionedIops: 'number',
6919
7265
  systemDiskSize: 'number',
6920
7266
  tags: { 'type': 'array', 'itemType': Tag },
6921
7267
  vswitchIds: { 'type': 'array', 'itemType': 'string' },
@@ -7034,6 +7380,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea
7034
7380
  runtime: 'runtime',
7035
7381
  runtimeVersion: 'runtime_version',
7036
7382
  taints: 'taints',
7383
+ unschedulable: 'unschedulable',
7037
7384
  userData: 'user_data',
7038
7385
  };
7039
7386
  }
@@ -7046,6 +7393,7 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea
7046
7393
  runtime: 'string',
7047
7394
  runtimeVersion: 'string',
7048
7395
  taints: { 'type': 'array', 'itemType': Taint },
7396
+ unschedulable: 'boolean',
7049
7397
  userData: 'string',
7050
7398
  };
7051
7399
  }
@@ -7243,16 +7591,19 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
7243
7591
  return {
7244
7592
  autoRenew: 'auto_renew',
7245
7593
  autoRenewPeriod: 'auto_renew_period',
7594
+ cisEnabled: 'cis_enabled',
7246
7595
  compensateWithOnDemand: 'compensate_with_on_demand',
7247
7596
  dataDisks: 'data_disks',
7248
7597
  deploymentsetId: 'deploymentset_id',
7249
7598
  desiredSize: 'desired_size',
7250
7599
  imageId: 'image_id',
7600
+ imageType: 'image_type',
7251
7601
  instanceChargeType: 'instance_charge_type',
7252
7602
  instanceTypes: 'instance_types',
7253
7603
  internetChargeType: 'internet_charge_type',
7254
7604
  internetMaxBandwidthOut: 'internet_max_bandwidth_out',
7255
7605
  keyPair: 'key_pair',
7606
+ loginAsNonRoot: 'login_as_non_root',
7256
7607
  loginPassword: 'login_password',
7257
7608
  multiAzPolicy: 'multi_az_policy',
7258
7609
  onDemandBaseCapacity: 'on_demand_base_capacity',
@@ -7267,12 +7618,19 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
7267
7618
  scalingPolicy: 'scaling_policy',
7268
7619
  securityGroupId: 'security_group_id',
7269
7620
  securityGroupIds: 'security_group_ids',
7621
+ socEnabled: 'soc_enabled',
7270
7622
  spotInstancePools: 'spot_instance_pools',
7271
7623
  spotInstanceRemedy: 'spot_instance_remedy',
7272
7624
  spotPriceLimit: 'spot_price_limit',
7273
7625
  spotStrategy: 'spot_strategy',
7626
+ systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
7627
+ systemDiskCategories: 'system_disk_categories',
7274
7628
  systemDiskCategory: 'system_disk_category',
7629
+ systemDiskEncryptAlgorithm: 'system_disk_encrypt_algorithm',
7630
+ systemDiskEncrypted: 'system_disk_encrypted',
7631
+ systemDiskKmsKeyId: 'system_disk_kms_key_id',
7275
7632
  systemDiskPerformanceLevel: 'system_disk_performance_level',
7633
+ systemDiskProvisionedIops: 'system_disk_provisioned_iops',
7276
7634
  systemDiskSize: 'system_disk_size',
7277
7635
  tags: 'tags',
7278
7636
  vswitchIds: 'vswitch_ids',
@@ -7282,16 +7640,19 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
7282
7640
  return {
7283
7641
  autoRenew: 'boolean',
7284
7642
  autoRenewPeriod: 'number',
7643
+ cisEnabled: 'boolean',
7285
7644
  compensateWithOnDemand: 'boolean',
7286
7645
  dataDisks: { 'type': 'array', 'itemType': DataDisk },
7287
7646
  deploymentsetId: 'string',
7288
7647
  desiredSize: 'number',
7289
7648
  imageId: 'string',
7649
+ imageType: 'string',
7290
7650
  instanceChargeType: 'string',
7291
7651
  instanceTypes: { 'type': 'array', 'itemType': 'string' },
7292
7652
  internetChargeType: 'string',
7293
7653
  internetMaxBandwidthOut: 'number',
7294
7654
  keyPair: 'string',
7655
+ loginAsNonRoot: 'boolean',
7295
7656
  loginPassword: 'string',
7296
7657
  multiAzPolicy: 'string',
7297
7658
  onDemandBaseCapacity: 'number',
@@ -7306,12 +7667,19 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $tea.Mod
7306
7667
  scalingPolicy: 'string',
7307
7668
  securityGroupId: 'string',
7308
7669
  securityGroupIds: { 'type': 'array', 'itemType': 'string' },
7670
+ socEnabled: 'boolean',
7309
7671
  spotInstancePools: 'number',
7310
7672
  spotInstanceRemedy: 'boolean',
7311
7673
  spotPriceLimit: { 'type': 'array', 'itemType': DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupSpotPriceLimit },
7312
7674
  spotStrategy: 'string',
7675
+ systemDiskBurstingEnabled: 'boolean',
7676
+ systemDiskCategories: { 'type': 'array', 'itemType': 'string' },
7313
7677
  systemDiskCategory: 'string',
7678
+ systemDiskEncryptAlgorithm: 'string',
7679
+ systemDiskEncrypted: 'boolean',
7680
+ systemDiskKmsKeyId: 'string',
7314
7681
  systemDiskPerformanceLevel: 'string',
7682
+ systemDiskProvisionedIops: 'number',
7315
7683
  systemDiskSize: 'number',
7316
7684
  tags: { 'type': 'array', 'itemType': Tag },
7317
7685
  vswitchIds: { 'type': 'array', 'itemType': 'string' },
@@ -8597,6 +8965,28 @@ class FixNodePoolVulsRequestRolloutPolicy extends $tea.Model {
8597
8965
  }
8598
8966
  }
8599
8967
  exports.FixNodePoolVulsRequestRolloutPolicy = FixNodePoolVulsRequestRolloutPolicy;
8968
+ class GetClusterAddonInstanceResponseBodyLogging extends $tea.Model {
8969
+ constructor(map) {
8970
+ super(map);
8971
+ }
8972
+ static names() {
8973
+ return {
8974
+ capable: 'capable',
8975
+ enabled: 'enabled',
8976
+ logProject: 'log_project',
8977
+ logstore: 'logstore',
8978
+ };
8979
+ }
8980
+ static types() {
8981
+ return {
8982
+ capable: 'boolean',
8983
+ enabled: 'boolean',
8984
+ logProject: 'string',
8985
+ logstore: 'string',
8986
+ };
8987
+ }
8988
+ }
8989
+ exports.GetClusterAddonInstanceResponseBodyLogging = GetClusterAddonInstanceResponseBodyLogging;
8600
8990
  class GetKubernetesTriggerResponseBody extends $tea.Model {
8601
8991
  constructor(map) {
8602
8992
  super(map);
@@ -8689,6 +9079,56 @@ class InstallClusterAddonsRequestBody extends $tea.Model {
8689
9079
  }
8690
9080
  }
8691
9081
  exports.InstallClusterAddonsRequestBody = InstallClusterAddonsRequestBody;
9082
+ class ListAddonsResponseBodyAddons extends $tea.Model {
9083
+ constructor(map) {
9084
+ super(map);
9085
+ }
9086
+ static names() {
9087
+ return {
9088
+ architecture: 'architecture',
9089
+ category: 'category',
9090
+ configSchema: 'config_schema',
9091
+ installByDefault: 'install_by_default',
9092
+ managed: 'managed',
9093
+ name: 'name',
9094
+ supportedActions: 'supported_actions',
9095
+ version: 'version',
9096
+ };
9097
+ }
9098
+ static types() {
9099
+ return {
9100
+ architecture: { 'type': 'array', 'itemType': 'string' },
9101
+ category: 'string',
9102
+ configSchema: 'string',
9103
+ installByDefault: 'boolean',
9104
+ managed: 'boolean',
9105
+ name: 'string',
9106
+ supportedActions: { 'type': 'array', 'itemType': 'string' },
9107
+ version: 'string',
9108
+ };
9109
+ }
9110
+ }
9111
+ exports.ListAddonsResponseBodyAddons = ListAddonsResponseBodyAddons;
9112
+ class ListClusterAddonInstancesResponseBodyAddons extends $tea.Model {
9113
+ constructor(map) {
9114
+ super(map);
9115
+ }
9116
+ static names() {
9117
+ return {
9118
+ name: 'name',
9119
+ state: 'state',
9120
+ version: 'version',
9121
+ };
9122
+ }
9123
+ static types() {
9124
+ return {
9125
+ name: 'string',
9126
+ state: 'string',
9127
+ version: 'string',
9128
+ };
9129
+ }
9130
+ }
9131
+ exports.ListClusterAddonInstancesResponseBodyAddons = ListClusterAddonInstancesResponseBodyAddons;
8692
9132
  class ListClusterChecksResponseBodyChecks extends $tea.Model {
8693
9133
  constructor(map) {
8694
9134
  super(map);
@@ -9031,6 +9471,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
9031
9471
  dataDisks: 'data_disks',
9032
9472
  desiredSize: 'desired_size',
9033
9473
  imageId: 'image_id',
9474
+ imageType: 'image_type',
9034
9475
  instanceChargeType: 'instance_charge_type',
9035
9476
  instanceTypes: 'instance_types',
9036
9477
  internetChargeType: 'internet_charge_type',
@@ -9050,8 +9491,14 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
9050
9491
  spotInstanceRemedy: 'spot_instance_remedy',
9051
9492
  spotPriceLimit: 'spot_price_limit',
9052
9493
  spotStrategy: 'spot_strategy',
9494
+ systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
9495
+ systemDiskCategories: 'system_disk_categories',
9053
9496
  systemDiskCategory: 'system_disk_category',
9497
+ systemDiskEncryptAlgorithm: 'system_disk_encrypt_algorithm',
9498
+ systemDiskEncrypted: 'system_disk_encrypted',
9499
+ systemDiskKmsKeyId: 'system_disk_kms_key_id',
9054
9500
  systemDiskPerformanceLevel: 'system_disk_performance_level',
9501
+ systemDiskProvisionedIops: 'system_disk_provisioned_iops',
9055
9502
  systemDiskSize: 'system_disk_size',
9056
9503
  tags: 'tags',
9057
9504
  vswitchIds: 'vswitch_ids',
@@ -9065,6 +9512,7 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
9065
9512
  dataDisks: { 'type': 'array', 'itemType': DataDisk },
9066
9513
  desiredSize: 'number',
9067
9514
  imageId: 'string',
9515
+ imageType: 'string',
9068
9516
  instanceChargeType: 'string',
9069
9517
  instanceTypes: { 'type': 'array', 'itemType': 'string' },
9070
9518
  internetChargeType: 'string',
@@ -9084,8 +9532,14 @@ class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
9084
9532
  spotInstanceRemedy: 'boolean',
9085
9533
  spotPriceLimit: { 'type': 'array', 'itemType': ModifyClusterNodePoolRequestScalingGroupSpotPriceLimit },
9086
9534
  spotStrategy: 'string',
9535
+ systemDiskBurstingEnabled: 'boolean',
9536
+ systemDiskCategories: { 'type': 'array', 'itemType': 'string' },
9087
9537
  systemDiskCategory: 'string',
9538
+ systemDiskEncryptAlgorithm: 'string',
9539
+ systemDiskEncrypted: 'boolean',
9540
+ systemDiskKmsKeyId: 'string',
9088
9541
  systemDiskPerformanceLevel: 'string',
9542
+ systemDiskProvisionedIops: 'number',
9089
9543
  systemDiskSize: 'number',
9090
9544
  tags: { 'type': 'array', 'itemType': Tag },
9091
9545
  vswitchIds: { 'type': 'array', 'itemType': 'string' },
@@ -9439,6 +9893,28 @@ class Client extends openapi_client_1.default {
9439
9893
  let headers = {};
9440
9894
  return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
9441
9895
  }
9896
+ async cancelOperationPlanWithOptions(planId, headers, runtime) {
9897
+ let req = new $OpenApi.OpenApiRequest({
9898
+ headers: headers,
9899
+ });
9900
+ let params = new $OpenApi.Params({
9901
+ action: "CancelOperationPlan",
9902
+ version: "2015-12-15",
9903
+ protocol: "HTTPS",
9904
+ pathname: `/operation/plans/${openapi_util_1.default.getEncodeParam(planId)}`,
9905
+ method: "DELETE",
9906
+ authType: "AK",
9907
+ style: "ROA",
9908
+ reqBodyType: "json",
9909
+ bodyType: "json",
9910
+ });
9911
+ return $tea.cast(await this.callApi(params, req, runtime), new CancelOperationPlanResponse({}));
9912
+ }
9913
+ async cancelOperationPlan(planId) {
9914
+ let runtime = new $Util.RuntimeOptions({});
9915
+ let headers = {};
9916
+ return await this.cancelOperationPlanWithOptions(planId, headers, runtime);
9917
+ }
9442
9918
  async cancelTaskWithOptions(taskId, headers, runtime) {
9443
9919
  let req = new $OpenApi.OpenApiRequest({
9444
9920
  headers: headers,
@@ -9897,6 +10373,9 @@ class Client extends openapi_client_1.default {
9897
10373
  if (!tea_util_1.default.isUnset(request.maxNodes)) {
9898
10374
  body["max_nodes"] = request.maxNodes;
9899
10375
  }
10376
+ if (!tea_util_1.default.isUnset(request.nodeConfig)) {
10377
+ body["node_config"] = request.nodeConfig;
10378
+ }
9900
10379
  if (!tea_util_1.default.isUnset(request.nodepoolInfo)) {
9901
10380
  body["nodepool_info"] = request.nodepoolInfo;
9902
10381
  }
@@ -10817,9 +11296,18 @@ class Client extends openapi_client_1.default {
10817
11296
  let headers = {};
10818
11297
  return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
10819
11298
  }
10820
- async describeClusterTasksWithOptions(clusterId, headers, runtime) {
11299
+ async describeClusterTasksWithOptions(clusterId, request, headers, runtime) {
11300
+ tea_util_1.default.validateModel(request);
11301
+ let query = {};
11302
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
11303
+ query["page_number"] = request.pageNumber;
11304
+ }
11305
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
11306
+ query["page_size"] = request.pageSize;
11307
+ }
10821
11308
  let req = new $OpenApi.OpenApiRequest({
10822
11309
  headers: headers,
11310
+ query: openapi_util_1.default.query(query),
10823
11311
  });
10824
11312
  let params = new $OpenApi.Params({
10825
11313
  action: "DescribeClusterTasks",
@@ -10834,10 +11322,10 @@ class Client extends openapi_client_1.default {
10834
11322
  });
10835
11323
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
10836
11324
  }
10837
- async describeClusterTasks(clusterId) {
11325
+ async describeClusterTasks(clusterId, request) {
10838
11326
  let runtime = new $Util.RuntimeOptions({});
10839
11327
  let headers = {};
10840
- return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
11328
+ return await this.describeClusterTasksWithOptions(clusterId, request, headers, runtime);
10841
11329
  }
10842
11330
  async describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime) {
10843
11331
  tea_util_1.default.validateModel(request);
@@ -10986,6 +11474,9 @@ class Client extends openapi_client_1.default {
10986
11474
  async describeClustersV1WithOptions(request, headers, runtime) {
10987
11475
  tea_util_1.default.validateModel(request);
10988
11476
  let query = {};
11477
+ if (!tea_util_1.default.isUnset(request.clusterId)) {
11478
+ query["cluster_id"] = request.clusterId;
11479
+ }
10989
11480
  if (!tea_util_1.default.isUnset(request.clusterSpec)) {
10990
11481
  query["cluster_spec"] = request.clusterSpec;
10991
11482
  }
@@ -11757,6 +12248,28 @@ class Client extends openapi_client_1.default {
11757
12248
  let headers = {};
11758
12249
  return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
11759
12250
  }
12251
+ async getClusterAddonInstanceWithOptions(clusterId, instanceName, headers, runtime) {
12252
+ let req = new $OpenApi.OpenApiRequest({
12253
+ headers: headers,
12254
+ });
12255
+ let params = new $OpenApi.Params({
12256
+ action: "GetClusterAddonInstance",
12257
+ version: "2015-12-15",
12258
+ protocol: "HTTPS",
12259
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/addon_instances/${openapi_util_1.default.getEncodeParam(instanceName)}`,
12260
+ method: "GET",
12261
+ authType: "AK",
12262
+ style: "ROA",
12263
+ reqBodyType: "json",
12264
+ bodyType: "json",
12265
+ });
12266
+ return $tea.cast(await this.callApi(params, req, runtime), new GetClusterAddonInstanceResponse({}));
12267
+ }
12268
+ async getClusterAddonInstance(clusterId, instanceName) {
12269
+ let runtime = new $Util.RuntimeOptions({});
12270
+ let headers = {};
12271
+ return await this.getClusterAddonInstanceWithOptions(clusterId, instanceName, headers, runtime);
12272
+ }
11760
12273
  async getClusterCheckWithOptions(clusterId, checkId, headers, runtime) {
11761
12274
  let req = new $OpenApi.OpenApiRequest({
11762
12275
  headers: headers,
@@ -11906,6 +12419,71 @@ class Client extends openapi_client_1.default {
11906
12419
  let headers = {};
11907
12420
  return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
11908
12421
  }
12422
+ async listAddonsWithOptions(request, headers, runtime) {
12423
+ tea_util_1.default.validateModel(request);
12424
+ let query = {};
12425
+ if (!tea_util_1.default.isUnset(request.clusterId)) {
12426
+ query["cluster_id"] = request.clusterId;
12427
+ }
12428
+ if (!tea_util_1.default.isUnset(request.clusterSpec)) {
12429
+ query["cluster_spec"] = request.clusterSpec;
12430
+ }
12431
+ if (!tea_util_1.default.isUnset(request.clusterType)) {
12432
+ query["cluster_type"] = request.clusterType;
12433
+ }
12434
+ if (!tea_util_1.default.isUnset(request.clusterVersion)) {
12435
+ query["cluster_version"] = request.clusterVersion;
12436
+ }
12437
+ if (!tea_util_1.default.isUnset(request.profile)) {
12438
+ query["profile"] = request.profile;
12439
+ }
12440
+ if (!tea_util_1.default.isUnset(request.regionId)) {
12441
+ query["region_id"] = request.regionId;
12442
+ }
12443
+ let req = new $OpenApi.OpenApiRequest({
12444
+ headers: headers,
12445
+ query: openapi_util_1.default.query(query),
12446
+ });
12447
+ let params = new $OpenApi.Params({
12448
+ action: "ListAddons",
12449
+ version: "2015-12-15",
12450
+ protocol: "HTTPS",
12451
+ pathname: `/addons`,
12452
+ method: "GET",
12453
+ authType: "AK",
12454
+ style: "ROA",
12455
+ reqBodyType: "json",
12456
+ bodyType: "json",
12457
+ });
12458
+ return $tea.cast(await this.callApi(params, req, runtime), new ListAddonsResponse({}));
12459
+ }
12460
+ async listAddons(request) {
12461
+ let runtime = new $Util.RuntimeOptions({});
12462
+ let headers = {};
12463
+ return await this.listAddonsWithOptions(request, headers, runtime);
12464
+ }
12465
+ async listClusterAddonInstancesWithOptions(clusterId, headers, runtime) {
12466
+ let req = new $OpenApi.OpenApiRequest({
12467
+ headers: headers,
12468
+ });
12469
+ let params = new $OpenApi.Params({
12470
+ action: "ListClusterAddonInstances",
12471
+ version: "2015-12-15",
12472
+ protocol: "HTTPS",
12473
+ pathname: `/clusters/${openapi_util_1.default.getEncodeParam(clusterId)}/addon_instances`,
12474
+ method: "GET",
12475
+ authType: "AK",
12476
+ style: "ROA",
12477
+ reqBodyType: "json",
12478
+ bodyType: "json",
12479
+ });
12480
+ return $tea.cast(await this.callApi(params, req, runtime), new ListClusterAddonInstancesResponse({}));
12481
+ }
12482
+ async listClusterAddonInstances(clusterId) {
12483
+ let runtime = new $Util.RuntimeOptions({});
12484
+ let headers = {};
12485
+ return await this.listClusterAddonInstancesWithOptions(clusterId, headers, runtime);
12486
+ }
11909
12487
  async listClusterChecksWithOptions(clusterId, request, headers, runtime) {
11910
12488
  tea_util_1.default.validateModel(request);
11911
12489
  let query = {};