@alicloud/cs20151215 7.0.4 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/client.d.ts +120 -42
  2. package/dist/client.js +332 -71
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateClusterNodePoolRequest.d.ts +123 -366
  5. package/dist/models/CreateClusterNodePoolRequest.js +2 -0
  6. package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
  7. package/dist/models/CreateClusterRequest.d.ts +119 -621
  8. package/dist/models/CreateClusterRequest.js.map +1 -1
  9. package/dist/models/CreateClusterResponseBody.d.ts +3 -3
  10. package/dist/models/CreateNodePoolComponentInstancesRequest.d.ts +100 -0
  11. package/dist/models/CreateNodePoolComponentInstancesRequest.js +144 -0
  12. package/dist/models/CreateNodePoolComponentInstancesRequest.js.map +1 -0
  13. package/dist/models/CreateNodePoolComponentInstancesResponse.d.ts +19 -0
  14. package/dist/models/CreateNodePoolComponentInstancesResponse.js +69 -0
  15. package/dist/models/CreateNodePoolComponentInstancesResponse.js.map +1 -0
  16. package/dist/models/CreateNodePoolComponentInstancesResponseBody.d.ts +28 -0
  17. package/dist/models/CreateNodePoolComponentInstancesResponseBody.js +62 -0
  18. package/dist/models/CreateNodePoolComponentInstancesResponseBody.js.map +1 -0
  19. package/dist/models/DeleteNodePoolComponentInstanceRequest.d.ts +38 -0
  20. package/dist/models/DeleteNodePoolComponentInstanceRequest.js +69 -0
  21. package/dist/models/DeleteNodePoolComponentInstanceRequest.js.map +1 -0
  22. package/dist/models/DeleteNodePoolComponentInstanceResponse.d.ts +19 -0
  23. package/dist/models/DeleteNodePoolComponentInstanceResponse.js +69 -0
  24. package/dist/models/DeleteNodePoolComponentInstanceResponse.js.map +1 -0
  25. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.d.ts +28 -0
  26. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.js +62 -0
  27. package/dist/models/DeleteNodePoolComponentInstanceResponseBody.js.map +1 -0
  28. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.d.ts +38 -0
  29. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.js +66 -0
  30. package/dist/models/DeleteNodePoolComponentInstanceShrinkRequest.js.map +1 -0
  31. package/dist/models/DescribeAddonRequest.d.ts +7 -18
  32. package/dist/models/DescribeAddonRequest.js.map +1 -1
  33. package/dist/models/DescribeAddonResponseBody.d.ts +12 -12
  34. package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +159 -228
  35. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +2 -0
  36. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
  37. package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +121 -240
  38. package/dist/models/DescribeClusterNodePoolsResponseBody.js +2 -0
  39. package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
  40. package/dist/models/InstallNodePoolComponentsRequest.d.ts +12 -4
  41. package/dist/models/InstallNodePoolComponentsRequest.js +2 -0
  42. package/dist/models/InstallNodePoolComponentsRequest.js.map +1 -1
  43. package/dist/models/ListNodePoolComponentInstancesRequest.d.ts +23 -0
  44. package/dist/models/ListNodePoolComponentInstancesRequest.js +60 -0
  45. package/dist/models/ListNodePoolComponentInstancesRequest.js.map +1 -0
  46. package/dist/models/ListNodePoolComponentInstancesResponse.d.ts +19 -0
  47. package/dist/models/ListNodePoolComponentInstancesResponse.js +69 -0
  48. package/dist/models/ListNodePoolComponentInstancesResponse.js.map +1 -0
  49. package/dist/models/ListNodePoolComponentInstancesResponseBody.d.ts +76 -0
  50. package/dist/models/ListNodePoolComponentInstancesResponseBody.js +117 -0
  51. package/dist/models/ListNodePoolComponentInstancesResponseBody.js.map +1 -0
  52. package/dist/models/ListNodePoolComponentsRequest.d.ts +48 -0
  53. package/dist/models/ListNodePoolComponentsRequest.js +73 -0
  54. package/dist/models/ListNodePoolComponentsRequest.js.map +1 -0
  55. package/dist/models/ListNodePoolComponentsResponse.d.ts +19 -0
  56. package/dist/models/ListNodePoolComponentsResponse.js +69 -0
  57. package/dist/models/ListNodePoolComponentsResponse.js.map +1 -0
  58. package/dist/models/ListNodePoolComponentsResponseBody.d.ts +51 -0
  59. package/dist/models/ListNodePoolComponentsResponseBody.js +88 -0
  60. package/dist/models/ListNodePoolComponentsResponseBody.js.map +1 -0
  61. package/dist/models/ListNodePoolComponentsShrinkRequest.d.ts +48 -0
  62. package/dist/models/ListNodePoolComponentsShrinkRequest.js +70 -0
  63. package/dist/models/ListNodePoolComponentsShrinkRequest.js.map +1 -0
  64. package/dist/models/MaintenanceWindow.d.ts +1 -1
  65. package/dist/models/ModifyClusterNodePoolRequest.d.ts +99 -257
  66. package/dist/models/ModifyClusterNodePoolRequest.js +2 -0
  67. package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
  68. package/dist/models/ModifyNodePoolNodeConfigRequest.d.ts +9 -1
  69. package/dist/models/ModifyNodePoolNodeConfigRequest.js +2 -0
  70. package/dist/models/ModifyNodePoolNodeConfigRequest.js.map +1 -1
  71. package/dist/models/Nodepool.d.ts +70 -195
  72. package/dist/models/Nodepool.js.map +1 -1
  73. package/dist/models/Runtime.d.ts +2 -2
  74. package/dist/models/UpdateNodePoolComponentInstanceRequest.d.ts +77 -0
  75. package/dist/models/UpdateNodePoolComponentInstanceRequest.js +122 -0
  76. package/dist/models/UpdateNodePoolComponentInstanceRequest.js.map +1 -0
  77. package/dist/models/UpdateNodePoolComponentInstanceResponse.d.ts +19 -0
  78. package/dist/models/UpdateNodePoolComponentInstanceResponse.js +69 -0
  79. package/dist/models/UpdateNodePoolComponentInstanceResponse.js.map +1 -0
  80. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.d.ts +28 -0
  81. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.js +62 -0
  82. package/dist/models/UpdateNodePoolComponentInstanceResponseBody.js.map +1 -0
  83. package/dist/models/UpdateNodePoolComponentRequest.d.ts +12 -4
  84. package/dist/models/UpdateNodePoolComponentRequest.js +2 -0
  85. package/dist/models/UpdateNodePoolComponentRequest.js.map +1 -1
  86. package/dist/models/UpgradeClusterNodepoolRequest.d.ts +23 -11
  87. package/dist/models/UpgradeClusterNodepoolRequest.js +2 -0
  88. package/dist/models/UpgradeClusterNodepoolRequest.js.map +1 -1
  89. package/dist/models/model.d.ts +25 -0
  90. package/dist/models/model.js +63 -12
  91. package/dist/models/model.js.map +1 -1
  92. package/package.json +1 -1
  93. package/src/client.ts +366 -71
  94. package/src/models/CreateClusterNodePoolRequest.ts +126 -367
  95. package/src/models/CreateClusterRequest.ts +119 -621
  96. package/src/models/CreateClusterResponseBody.ts +3 -3
  97. package/src/models/CreateNodePoolComponentInstancesRequest.ts +170 -0
  98. package/src/models/CreateNodePoolComponentInstancesResponse.ts +40 -0
  99. package/src/models/CreateNodePoolComponentInstancesResponseBody.ts +45 -0
  100. package/src/models/DeleteNodePoolComponentInstanceRequest.ts +62 -0
  101. package/src/models/DeleteNodePoolComponentInstanceResponse.ts +40 -0
  102. package/src/models/DeleteNodePoolComponentInstanceResponseBody.ts +45 -0
  103. package/src/models/DeleteNodePoolComponentInstanceShrinkRequest.ts +59 -0
  104. package/src/models/DescribeAddonRequest.ts +7 -18
  105. package/src/models/DescribeAddonResponseBody.ts +12 -12
  106. package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +161 -228
  107. package/src/models/DescribeClusterNodePoolsResponseBody.ts +123 -240
  108. package/src/models/InstallNodePoolComponentsRequest.ts +14 -4
  109. package/src/models/ListNodePoolComponentInstancesRequest.ts +38 -0
  110. package/src/models/ListNodePoolComponentInstancesResponse.ts +40 -0
  111. package/src/models/ListNodePoolComponentInstancesResponseBody.ts +128 -0
  112. package/src/models/ListNodePoolComponentsRequest.ts +76 -0
  113. package/src/models/ListNodePoolComponentsResponse.ts +40 -0
  114. package/src/models/ListNodePoolComponentsResponseBody.ts +85 -0
  115. package/src/models/ListNodePoolComponentsShrinkRequest.ts +73 -0
  116. package/src/models/MaintenanceWindow.ts +1 -1
  117. package/src/models/ModifyClusterNodePoolRequest.ts +101 -257
  118. package/src/models/ModifyNodePoolNodeConfigRequest.ts +11 -1
  119. package/src/models/Nodepool.ts +70 -195
  120. package/src/models/Runtime.ts +2 -2
  121. package/src/models/UpdateNodePoolComponentInstanceRequest.ts +134 -0
  122. package/src/models/UpdateNodePoolComponentInstanceResponse.ts +40 -0
  123. package/src/models/UpdateNodePoolComponentInstanceResponseBody.ts +45 -0
  124. package/src/models/UpdateNodePoolComponentRequest.ts +14 -4
  125. package/src/models/UpgradeClusterNodepoolRequest.ts +25 -11
  126. package/src/models/model.ts +25 -0
package/src/client.ts CHANGED
@@ -43,44 +43,46 @@ export default class Client extends OpenApi {
43
43
  'cn-zhengzhou-nebula-1': "cs.aliyuncs.com",
44
44
  'eu-west-1-oxs': "cs.aliyuncs.com",
45
45
  'rus-west-1-pop': "cs.aliyuncs.com",
46
- 'us-west-1': "cs.us-west-1.aliyuncs.com",
47
- 'us-southeast-1': "cs.us-southeast-1.aliyuncs.com",
48
- 'us-east-1': "cs.us-east-1.aliyuncs.com",
49
- 'na-south-1': "cs.na-south-1.aliyuncs.com",
50
- 'me-east-1': "cs.me-east-1.aliyuncs.com",
51
- 'me-central-1': "cs.me-central-1.aliyuncs.com",
52
- 'eu-west-1': "cs.eu-west-1.aliyuncs.com",
53
- 'eu-central-1': "cs.eu-central-1.aliyuncs.com",
46
+ 'cn-beijing': "cs.cn-beijing.aliyuncs.com",
54
47
  'cn-zhengzhou-jva': "cs.cn-zhengzhou-jva.aliyuncs.com",
48
+ 'cn-heyuan': "cs.cn-heyuan.aliyuncs.com",
55
49
  'cn-zhangjiakou': "cs.cn-zhangjiakou.aliyuncs.com",
56
- 'cn-wulanchabu-gic-1': "cs.cn-wulanchabu-gic-1.aliyuncs.com",
50
+ 'ap-northeast-2': "cs.ap-northeast-2.aliyuncs.com",
51
+ 'ap-northeast-1': "cs.ap-northeast-1.aliyuncs.com",
52
+ 'ap-southeast-1': "cs.ap-southeast-1.aliyuncs.com",
53
+ 'ap-southeast-3': "cs.ap-southeast-3.aliyuncs.com",
54
+ 'ap-southeast-5': "cs.ap-southeast-5.aliyuncs.com",
55
+ 'ap-southeast-7': "cs.ap-southeast-7.aliyuncs.com",
57
56
  'cn-wulanchabu': "cs.cn-wulanchabu.aliyuncs.com",
57
+ 'cn-qingdao': "cs.cn-qingdao.aliyuncs.com",
58
58
  'cn-wuhan-lr': "cs.cn-wuhan-lr.aliyuncs.com",
59
- 'cn-shenzhen-finance-1': "cs.cn-shenzhen-finance-1.aliyuncs.com",
60
- 'cn-shenzhen': "cs.cn-shenzhen.aliyuncs.com",
61
- 'cn-shanghai-finance-1': "cs.cn-shanghai-finance-1.aliyuncs.com",
62
59
  'cn-shanghai': "cs.cn-shanghai.aliyuncs.com",
63
- 'cn-qingdao': "cs.cn-qingdao.aliyuncs.com",
64
- 'cn-nanjing': "cs.cn-nanjing.aliyuncs.com",
65
- 'cn-huhehaote': "cs.cn-huhehaote.aliyuncs.com",
66
60
  'cn-hongkong': "cs.cn-hongkong.aliyuncs.com",
67
- 'cn-heyuan-acdr-1': "cs.cn-heyuan-acdr-1.aliyuncs.com",
68
- 'cn-heyuan': "cs.cn-heyuan.aliyuncs.com",
69
- 'cn-hangzhou-finance': "cs.cn-hangzhou-finance.aliyuncs.com",
70
- 'cn-hangzhou': "cs.cn-hangzhou.aliyuncs.com",
71
- 'cn-guangzhou': "cs.cn-guangzhou.aliyuncs.com",
61
+ 'cn-shenzhen': "cs.cn-shenzhen.aliyuncs.com",
62
+ 'cn-nanjing': "cs.cn-nanjing.aliyuncs.com",
72
63
  'cn-fuzhou': "cs.cn-fuzhou.aliyuncs.com",
73
64
  'cn-chengdu': "cs.cn-chengdu.aliyuncs.com",
65
+ 'cn-guangzhou': "cs.cn-guangzhou.aliyuncs.com",
66
+ 'cn-huhehaote': "cs.cn-huhehaote.aliyuncs.com",
67
+ 'cn-hangzhou': "cs.cn-hangzhou.aliyuncs.com",
68
+ 'ap-southeast-8': "cs.ap-southeast-8.aliyuncs.com",
69
+ 'cn-zhongwei': "cs.cn-zhongwei.aliyuncs.com",
70
+ 'eu-west-2': "cs.eu-west-2.aliyuncs.com",
71
+ 'na-south-1': "cs.na-south-1.aliyuncs.com",
72
+ 'us-west-1': "cs.us-west-1.aliyuncs.com",
73
+ 'us-east-1': "cs.us-east-1.aliyuncs.com",
74
+ 'eu-central-1': "cs.eu-central-1.aliyuncs.com",
75
+ 'eu-west-1': "cs.eu-west-1.aliyuncs.com",
76
+ 'us-southeast-1': "cs.us-southeast-1.aliyuncs.com",
77
+ 'me-central-1': "cs.me-central-1.aliyuncs.com",
78
+ 'me-east-1': "cs.me-east-1.aliyuncs.com",
79
+ 'cn-north-2-gov-1': "cs.cn-north-2-gov-1.aliyuncs.com",
80
+ 'cn-heyuan-acdr-1': "cs.cn-heyuan-acdr-1.aliyuncs.com",
81
+ 'cn-wulanchabu-gic-1': "cs.cn-wulanchabu-gic-1.aliyuncs.com",
82
+ 'cn-shanghai-finance-1': "cs.cn-shanghai-finance-1.aliyuncs.com",
74
83
  'cn-beijing-finance-1': "cs.cn-beijing-finance-1.aliyuncs.com",
75
- 'cn-beijing': "cs.cn-beijing.aliyuncs.com",
76
- 'ap-southeast-7': "cs.ap-southeast-7.aliyuncs.com",
77
- 'ap-southeast-5': "cs.ap-southeast-5.aliyuncs.com",
78
- 'ap-southeast-3': "cs.ap-southeast-3.aliyuncs.com",
79
- 'ap-southeast-2': "cs.ap-southeast-2.aliyuncs.com",
80
- 'ap-southeast-1': "cs.ap-southeast-1.aliyuncs.com",
81
- 'ap-south-1': "cs.ap-south-1.aliyuncs.com",
82
- 'ap-northeast-2': "cs.ap-northeast-2.aliyuncs.com",
83
- 'ap-northeast-1': "cs.ap-northeast-1.aliyuncs.com",
84
+ 'cn-shenzhen-finance-1': "cs.cn-shenzhen-finance-1.aliyuncs.com",
85
+ 'cn-hangzhou-finance': "cs.cn-hangzhou-finance.aliyuncs.com",
84
86
  };
85
87
  this.checkConfig(config);
86
88
  this._endpoint = this.getEndpoint("cs", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -774,16 +776,10 @@ export default class Client extends OpenApi {
774
776
  }
775
777
 
776
778
  /**
777
- * Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When creating a cluster, you configure cluster information, cluster components, and ACK-related cloud resources.
779
+ * Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When you create a cluster, you configure cluster information, cluster components, and ACK-related cloud resources.
778
780
  *
779
781
  * @remarks
780
- * ### Generate OpenAPI request parameters from the console
781
- * When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect request parameter combinations, you can generate the required request parameter combinations from the console. Perform the following steps:
782
- * 1. Log on to the [Container Service console](https://csnew.console.aliyun.com) and choose **Cluster List** in the left-side navigation pane.
783
- * 1. On the **Cluster List** page, click **Cluster Template**.
784
- * 1. In the dialog box, select the cluster type that you want to create, click Create, and then configure the cluster information on the cluster configuration page.
785
- * 1. After the configuration is complete, on the **Confirm Configuration** page, click **Equivalent Code** in the upper-right corner. The dialog box displays the parameter combinations required to create the cluster, which you can copy and use.
786
- * >Notice: Starting from July 4, 2026, some request parameters will no longer take effect. For details about the changes and override parameter descriptions, see [Notice on changes to OpenAPI parameters and offline of OpenAPIs for ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
782
+ * ### Generate OpenAPI request parameters by using the console.
787
783
  *
788
784
  * @param request - CreateClusterRequest
789
785
  * @param headers - map
@@ -1224,16 +1220,10 @@ export default class Client extends OpenApi {
1224
1220
  }
1225
1221
 
1226
1222
  /**
1227
- * Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When creating a cluster, you configure cluster information, cluster components, and ACK-related cloud resources.
1223
+ * Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When you create a cluster, you configure cluster information, cluster components, and ACK-related cloud resources.
1228
1224
  *
1229
1225
  * @remarks
1230
- * ### Generate OpenAPI request parameters from the console
1231
- * When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect request parameter combinations, you can generate the required request parameter combinations from the console. Perform the following steps:
1232
- * 1. Log on to the [Container Service console](https://csnew.console.aliyun.com) and choose **Cluster List** in the left-side navigation pane.
1233
- * 1. On the **Cluster List** page, click **Cluster Template**.
1234
- * 1. In the dialog box, select the cluster type that you want to create, click Create, and then configure the cluster information on the cluster configuration page.
1235
- * 1. After the configuration is complete, on the **Confirm Configuration** page, click **Equivalent Code** in the upper-right corner. The dialog box displays the parameter combinations required to create the cluster, which you can copy and use.
1236
- * >Notice: Starting from July 4, 2026, some request parameters will no longer take effect. For details about the changes and override parameter descriptions, see [Notice on changes to OpenAPI parameters and offline of OpenAPIs for ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
1226
+ * ### Generate OpenAPI request parameters by using the console.
1237
1227
  *
1238
1228
  * @param request - CreateClusterRequest
1239
1229
  * @returns CreateClusterResponse
@@ -1347,7 +1337,7 @@ export default class Client extends OpenApi {
1347
1337
  }
1348
1338
 
1349
1339
  /**
1350
- * Creates a node pool for a cluster. A node pool is a logical collection of nodes that share the same attributes, allowing unified management and O&M operations such as node upgrades and elastic scaling. You can further leverage the automated O&M capabilities of node pools, including automatic OS CVE vulnerability patching, automatic faulty node recovery, and automatic kubelet and containerd version upgrades, to reduce O&M costs.
1340
+ * A node pool is a logical collection of nodes that share the same attributes, allowing unified management and O&M operations such as node upgrades and elastic scaling. You can further use the automated O&M capabilities of node pools, including automatic OS CVE vulnerability patching, automatic faulty node recovery, and automatic kubelet and containerd version upgrades, to reduce O&M costs. You can call CreateClusterNodePool to create a node pool for a cluster.
1351
1341
  *
1352
1342
  * @param request - CreateClusterNodePoolRequest
1353
1343
  * @param headers - map
@@ -1440,7 +1430,7 @@ export default class Client extends OpenApi {
1440
1430
  }
1441
1431
 
1442
1432
  /**
1443
- * Creates a node pool for a cluster. A node pool is a logical collection of nodes that share the same attributes, allowing unified management and O&M operations such as node upgrades and elastic scaling. You can further leverage the automated O&M capabilities of node pools, including automatic OS CVE vulnerability patching, automatic faulty node recovery, and automatic kubelet and containerd version upgrades, to reduce O&M costs.
1433
+ * A node pool is a logical collection of nodes that share the same attributes, allowing unified management and O&M operations such as node upgrades and elastic scaling. You can further use the automated O&M capabilities of node pools, including automatic OS CVE vulnerability patching, automatic faulty node recovery, and automatic kubelet and containerd version upgrades, to reduce O&M costs. You can call CreateClusterNodePool to create a node pool for a cluster.
1444
1434
  *
1445
1435
  * @param request - CreateClusterNodePoolRequest
1446
1436
  * @returns CreateClusterNodePoolResponse
@@ -1513,6 +1503,59 @@ export default class Client extends OpenApi {
1513
1503
  return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
1514
1504
  }
1515
1505
 
1506
+ /**
1507
+ * 安装节点组件
1508
+ *
1509
+ * @param request - CreateNodePoolComponentInstancesRequest
1510
+ * @param headers - map
1511
+ * @param runtime - runtime options for this request RuntimeOptions
1512
+ * @returns CreateNodePoolComponentInstancesResponse
1513
+ */
1514
+ async createNodePoolComponentInstancesWithOptions(clusterId: string, nodepoolId: string, request: $_model.CreateNodePoolComponentInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateNodePoolComponentInstancesResponse> {
1515
+ request.validate();
1516
+ let body : {[key: string ]: any} = { };
1517
+ if (!$dara.isNull(request.components)) {
1518
+ body["components"] = request.components;
1519
+ }
1520
+
1521
+ if (!$dara.isNull(request.nodeNames)) {
1522
+ body["node_names"] = request.nodeNames;
1523
+ }
1524
+
1525
+ if (!$dara.isNull(request.rollingPolicy)) {
1526
+ body["rolling_policy"] = request.rollingPolicy;
1527
+ }
1528
+
1529
+ let req = new $OpenApiUtil.OpenApiRequest({
1530
+ headers: headers,
1531
+ body: OpenApiUtil.parseToMap(body),
1532
+ });
1533
+ let params = new $OpenApiUtil.Params({
1534
+ action: "CreateNodePoolComponentInstances",
1535
+ version: "2015-12-15",
1536
+ protocol: "HTTPS",
1537
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component_instances`,
1538
+ method: "POST",
1539
+ authType: "AK",
1540
+ style: "ROA",
1541
+ reqBodyType: "json",
1542
+ bodyType: "json",
1543
+ });
1544
+ return $dara.cast<$_model.CreateNodePoolComponentInstancesResponse>(await this.callApi(params, req, runtime), new $_model.CreateNodePoolComponentInstancesResponse({}));
1545
+ }
1546
+
1547
+ /**
1548
+ * 安装节点组件
1549
+ *
1550
+ * @param request - CreateNodePoolComponentInstancesRequest
1551
+ * @returns CreateNodePoolComponentInstancesResponse
1552
+ */
1553
+ async createNodePoolComponentInstances(clusterId: string, nodepoolId: string, request: $_model.CreateNodePoolComponentInstancesRequest): Promise<$_model.CreateNodePoolComponentInstancesResponse> {
1554
+ let runtime = new $dara.RuntimeOptions({ });
1555
+ let headers : {[key: string ]: string} = { };
1556
+ return await this.createNodePoolComponentInstancesWithOptions(clusterId, nodepoolId, request, headers, runtime);
1557
+ }
1558
+
1516
1559
  /**
1517
1560
  * An orchestration template defines and describes a set of Kubernetes cluster resources in a declarative manner, specifying how applications should run or be configured. You can use these templates to automate the deployment and cluster management of resources, such as Pods, Services, Deployments, ConfigMaps, and PersistentVolumes. You can invoke the CreateTemplate operation to create an orchestration template.
1518
1561
  *
@@ -2052,6 +2095,73 @@ export default class Client extends OpenApi {
2052
2095
  return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
2053
2096
  }
2054
2097
 
2098
+ /**
2099
+ * 卸载节点组件
2100
+ *
2101
+ * @param tmpReq - DeleteNodePoolComponentInstanceRequest
2102
+ * @param headers - map
2103
+ * @param runtime - runtime options for this request RuntimeOptions
2104
+ * @returns DeleteNodePoolComponentInstanceResponse
2105
+ */
2106
+ async deleteNodePoolComponentInstanceWithOptions(clusterId: string, nodepoolId: string, name: string, tmpReq: $_model.DeleteNodePoolComponentInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteNodePoolComponentInstanceResponse> {
2107
+ tmpReq.validate();
2108
+ let request = new $_model.DeleteNodePoolComponentInstanceShrinkRequest({ });
2109
+ OpenApiUtil.convert(tmpReq, request);
2110
+ if (!$dara.isNull(tmpReq.nodeNames)) {
2111
+ request.nodeNamesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nodeNames, "node_names", "json");
2112
+ }
2113
+
2114
+ let query : {[key: string ]: any} = { };
2115
+ if (!$dara.isNull(request.batchInterval)) {
2116
+ query["batch_interval"] = request.batchInterval;
2117
+ }
2118
+
2119
+ if (!$dara.isNull(request.maxFailedNodes)) {
2120
+ query["max_failed_nodes"] = request.maxFailedNodes;
2121
+ }
2122
+
2123
+ if (!$dara.isNull(request.maxParallelism)) {
2124
+ query["max_parallelism"] = request.maxParallelism;
2125
+ }
2126
+
2127
+ if (!$dara.isNull(request.nodeNamesShrink)) {
2128
+ query["node_names"] = request.nodeNamesShrink;
2129
+ }
2130
+
2131
+ if (!$dara.isNull(request.pausePolicy)) {
2132
+ query["pause_policy"] = request.pausePolicy;
2133
+ }
2134
+
2135
+ let req = new $OpenApiUtil.OpenApiRequest({
2136
+ headers: headers,
2137
+ query: OpenApiUtil.query(query),
2138
+ });
2139
+ let params = new $OpenApiUtil.Params({
2140
+ action: "DeleteNodePoolComponentInstance",
2141
+ version: "2015-12-15",
2142
+ protocol: "HTTPS",
2143
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component_instances/${$dara.URL.percentEncode(name)}`,
2144
+ method: "DELETE",
2145
+ authType: "AK",
2146
+ style: "ROA",
2147
+ reqBodyType: "json",
2148
+ bodyType: "json",
2149
+ });
2150
+ return $dara.cast<$_model.DeleteNodePoolComponentInstanceResponse>(await this.callApi(params, req, runtime), new $_model.DeleteNodePoolComponentInstanceResponse({}));
2151
+ }
2152
+
2153
+ /**
2154
+ * 卸载节点组件
2155
+ *
2156
+ * @param request - DeleteNodePoolComponentInstanceRequest
2157
+ * @returns DeleteNodePoolComponentInstanceResponse
2158
+ */
2159
+ async deleteNodePoolComponentInstance(clusterId: string, nodepoolId: string, name: string, request: $_model.DeleteNodePoolComponentInstanceRequest): Promise<$_model.DeleteNodePoolComponentInstanceResponse> {
2160
+ let runtime = new $dara.RuntimeOptions({ });
2161
+ let headers : {[key: string ]: string} = { };
2162
+ return await this.deleteNodePoolComponentInstanceWithOptions(clusterId, nodepoolId, name, request, headers, runtime);
2163
+ }
2164
+
2055
2165
  /**
2056
2166
  * Deletes a policy rule instance from a specified cluster.
2057
2167
  *
@@ -2221,7 +2331,7 @@ export default class Client extends OpenApi {
2221
2331
  }
2222
2332
 
2223
2333
  /**
2224
- * You can call the DescribeAddon operation to query information about a specified component based on parameters such as region, cluster type, cluster subtype (profile), cluster version, and component name. The returned information includes whether the component is managed, component category, supported custom parameter schema, compatible OS architectures, and the minimum cluster version required by the component version.
2334
+ * Invokes the DescribeAddon operation to perform a parameter query for information about a specified component based on parameters such as region, cluster type, cluster child class (profile), cluster version, and component name. The returned information includes whether the component is managed, the component categorization, the schema of supported custom parameters, compatible operating system architectures, and the minimum cluster version required by the component version.
2225
2335
  *
2226
2336
  * @param request - DescribeAddonRequest
2227
2337
  * @param headers - map
@@ -2278,7 +2388,7 @@ export default class Client extends OpenApi {
2278
2388
  }
2279
2389
 
2280
2390
  /**
2281
- * You can call the DescribeAddon operation to query information about a specified component based on parameters such as region, cluster type, cluster subtype (profile), cluster version, and component name. The returned information includes whether the component is managed, component category, supported custom parameter schema, compatible OS architectures, and the minimum cluster version required by the component version.
2391
+ * Invokes the DescribeAddon operation to perform a parameter query for information about a specified component based on parameters such as region, cluster type, cluster child class (profile), cluster version, and component name. The returned information includes whether the component is managed, the component categorization, the schema of supported custom parameters, compatible operating system architectures, and the minimum cluster version required by the component version.
2282
2392
  *
2283
2393
  * @param request - DescribeAddonRequest
2284
2394
  * @returns DescribeAddonResponse
@@ -2866,11 +2976,11 @@ export default class Client extends OpenApi {
2866
2976
  *
2867
2977
  * @remarks
2868
2978
  * - When removing nodes, perform standardized operations through this API or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by using `kubectl delete node`.
2869
- * - Do not directly release nodes, remove instances, or allow nodes to be passively released due to subscription instance expires in the ECS or ESS console (or through related APIs). In these cases, nodes are directly stopped and automatically removed from the Container Service console.
2870
- * - If the node pool has a desired node count configured, the node pool automatically scales out other instances based on the corresponding configuration to maintain the node count at the desired number.
2979
+ * - Do not directly release nodes, remove instances in the ECS or ESS console (or through related APIs), or allow nodes to be passively released due to subscription instance expires. In these cases, nodes are directly stopped and automatically removed from the Container Service console.
2980
+ * - If the node pool has a desired number of nodes configured, the node pool automatically scales out other instances based on the corresponding configuration to maintain the node count at the desired number.
2871
2981
  * - Removing nodes involves Pod migration, which may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up relevant data in advance.
2872
- * - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application Pods that cannot be scheduling.
2873
- * - Check the node affinity rules and scheduling policies of Pods on the nodes to be removed to ensure that Pods are not left unschedulable after node removal.
2982
+ * - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application pods being unable to be scheduling.
2983
+ * - Check the node affinity rules and scheduling policies of Pods on the nodes to be removed to ensure that Pods are not unschedulable on other nodes after the node is removed.
2874
2984
  *
2875
2985
  * @param request - DescribeClusterNodePoolsRequest
2876
2986
  * @param headers - map
@@ -2907,11 +3017,11 @@ export default class Client extends OpenApi {
2907
3017
  *
2908
3018
  * @remarks
2909
3019
  * - When removing nodes, perform standardized operations through this API or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by using `kubectl delete node`.
2910
- * - Do not directly release nodes, remove instances, or allow nodes to be passively released due to subscription instance expires in the ECS or ESS console (or through related APIs). In these cases, nodes are directly stopped and automatically removed from the Container Service console.
2911
- * - If the node pool has a desired node count configured, the node pool automatically scales out other instances based on the corresponding configuration to maintain the node count at the desired number.
3020
+ * - Do not directly release nodes, remove instances in the ECS or ESS console (or through related APIs), or allow nodes to be passively released due to subscription instance expires. In these cases, nodes are directly stopped and automatically removed from the Container Service console.
3021
+ * - If the node pool has a desired number of nodes configured, the node pool automatically scales out other instances based on the corresponding configuration to maintain the node count at the desired number.
2912
3022
  * - Removing nodes involves Pod migration, which may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up relevant data in advance.
2913
- * - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application Pods that cannot be scheduling.
2914
- * - Check the node affinity rules and scheduling policies of Pods on the nodes to be removed to ensure that Pods are not left unschedulable after node removal.
3023
+ * - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application pods being unable to be scheduling.
3024
+ * - Check the node affinity rules and scheduling policies of Pods on the nodes to be removed to ensure that Pods are not unschedulable on other nodes after the node is removed.
2915
3025
  *
2916
3026
  * @param request - DescribeClusterNodePoolsRequest
2917
3027
  * @returns DescribeClusterNodePoolsResponse
@@ -4949,7 +5059,7 @@ export default class Client extends OpenApi {
4949
5059
  }
4950
5060
 
4951
5061
  /**
4952
- * Installs components on nodes. You can configure and specify nodes on which to install components.
5062
+ * Installs node components. You can configure and specify nodes on which to install components.
4953
5063
  *
4954
5064
  * @param request - InstallNodePoolComponentsRequest
4955
5065
  * @param headers - map
@@ -4990,7 +5100,7 @@ export default class Client extends OpenApi {
4990
5100
  }
4991
5101
 
4992
5102
  /**
4993
- * Installs components on nodes. You can configure and specify nodes on which to install components.
5103
+ * Installs node components. You can configure and specify nodes on which to install components.
4994
5104
  *
4995
5105
  * @param request - InstallNodePoolComponentsRequest
4996
5106
  * @returns InstallNodePoolComponentsResponse
@@ -5336,6 +5446,130 @@ export default class Client extends OpenApi {
5336
5446
  return await this.listClusterKubeconfigStatesWithOptions(ClusterId, request, headers, runtime);
5337
5447
  }
5338
5448
 
5449
+ /**
5450
+ * 查询节点组件实例列表
5451
+ *
5452
+ * @param request - ListNodePoolComponentInstancesRequest
5453
+ * @param headers - map
5454
+ * @param runtime - runtime options for this request RuntimeOptions
5455
+ * @returns ListNodePoolComponentInstancesResponse
5456
+ */
5457
+ async listNodePoolComponentInstancesWithOptions(clusterId: string, nodepoolId: string, request: $_model.ListNodePoolComponentInstancesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListNodePoolComponentInstancesResponse> {
5458
+ request.validate();
5459
+ let query : {[key: string ]: any} = { };
5460
+ if (!$dara.isNull(request.maxResults)) {
5461
+ query["max_results"] = request.maxResults;
5462
+ }
5463
+
5464
+ if (!$dara.isNull(request.nextToken)) {
5465
+ query["next_token"] = request.nextToken;
5466
+ }
5467
+
5468
+ let req = new $OpenApiUtil.OpenApiRequest({
5469
+ headers: headers,
5470
+ query: OpenApiUtil.query(query),
5471
+ });
5472
+ let params = new $OpenApiUtil.Params({
5473
+ action: "ListNodePoolComponentInstances",
5474
+ version: "2015-12-15",
5475
+ protocol: "HTTPS",
5476
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component_instances`,
5477
+ method: "GET",
5478
+ authType: "AK",
5479
+ style: "ROA",
5480
+ reqBodyType: "json",
5481
+ bodyType: "json",
5482
+ });
5483
+ return $dara.cast<$_model.ListNodePoolComponentInstancesResponse>(await this.callApi(params, req, runtime), new $_model.ListNodePoolComponentInstancesResponse({}));
5484
+ }
5485
+
5486
+ /**
5487
+ * 查询节点组件实例列表
5488
+ *
5489
+ * @param request - ListNodePoolComponentInstancesRequest
5490
+ * @returns ListNodePoolComponentInstancesResponse
5491
+ */
5492
+ async listNodePoolComponentInstances(clusterId: string, nodepoolId: string, request: $_model.ListNodePoolComponentInstancesRequest): Promise<$_model.ListNodePoolComponentInstancesResponse> {
5493
+ let runtime = new $dara.RuntimeOptions({ });
5494
+ let headers : {[key: string ]: string} = { };
5495
+ return await this.listNodePoolComponentInstancesWithOptions(clusterId, nodepoolId, request, headers, runtime);
5496
+ }
5497
+
5498
+ /**
5499
+ * 查询节点池可安装的节点组件
5500
+ *
5501
+ * @param tmpReq - ListNodePoolComponentsRequest
5502
+ * @param headers - map
5503
+ * @param runtime - runtime options for this request RuntimeOptions
5504
+ * @returns ListNodePoolComponentsResponse
5505
+ */
5506
+ async listNodePoolComponentsWithOptions(clusterId: string, tmpReq: $_model.ListNodePoolComponentsRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListNodePoolComponentsResponse> {
5507
+ tmpReq.validate();
5508
+ let request = new $_model.ListNodePoolComponentsShrinkRequest({ });
5509
+ OpenApiUtil.convert(tmpReq, request);
5510
+ if (!$dara.isNull(tmpReq.instanceTypes)) {
5511
+ request.instanceTypesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceTypes, "instance_types", "json");
5512
+ }
5513
+
5514
+ let query : {[key: string ]: any} = { };
5515
+ if (!$dara.isNull(request.imageId)) {
5516
+ query["image_id"] = request.imageId;
5517
+ }
5518
+
5519
+ if (!$dara.isNull(request.imageType)) {
5520
+ query["image_type"] = request.imageType;
5521
+ }
5522
+
5523
+ if (!$dara.isNull(request.instanceTypesShrink)) {
5524
+ query["instance_types"] = request.instanceTypesShrink;
5525
+ }
5526
+
5527
+ if (!$dara.isNull(request.maxResults)) {
5528
+ query["max_results"] = request.maxResults;
5529
+ }
5530
+
5531
+ if (!$dara.isNull(request.nextToken)) {
5532
+ query["next_token"] = request.nextToken;
5533
+ }
5534
+
5535
+ if (!$dara.isNull(request.nodepoolId)) {
5536
+ query["nodepool_id"] = request.nodepoolId;
5537
+ }
5538
+
5539
+ if (!$dara.isNull(request.nodepoolType)) {
5540
+ query["nodepool_type"] = request.nodepoolType;
5541
+ }
5542
+
5543
+ let req = new $OpenApiUtil.OpenApiRequest({
5544
+ headers: headers,
5545
+ query: OpenApiUtil.query(query),
5546
+ });
5547
+ let params = new $OpenApiUtil.Params({
5548
+ action: "ListNodePoolComponents",
5549
+ version: "2015-12-15",
5550
+ protocol: "HTTPS",
5551
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepool_components`,
5552
+ method: "GET",
5553
+ authType: "AK",
5554
+ style: "ROA",
5555
+ reqBodyType: "json",
5556
+ bodyType: "json",
5557
+ });
5558
+ return $dara.cast<$_model.ListNodePoolComponentsResponse>(await this.callApi(params, req, runtime), new $_model.ListNodePoolComponentsResponse({}));
5559
+ }
5560
+
5561
+ /**
5562
+ * 查询节点池可安装的节点组件
5563
+ *
5564
+ * @param request - ListNodePoolComponentsRequest
5565
+ * @returns ListNodePoolComponentsResponse
5566
+ */
5567
+ async listNodePoolComponents(clusterId: string, request: $_model.ListNodePoolComponentsRequest): Promise<$_model.ListNodePoolComponentsResponse> {
5568
+ let runtime = new $dara.RuntimeOptions({ });
5569
+ let headers : {[key: string ]: string} = { };
5570
+ return await this.listNodePoolComponentsWithOptions(clusterId, request, headers, runtime);
5571
+ }
5572
+
5339
5573
  /**
5340
5574
  * Retrieves a list of automated O&M execution plans.
5341
5575
  *
@@ -5863,10 +6097,10 @@ export default class Client extends OpenApi {
5863
6097
  }
5864
6098
 
5865
6099
  /**
5866
- * Modifies the configuration of a node pool based on the node pool ID by calling the ModifyClusterNodePool operation.
6100
+ * Updates the configuration of a node pool based on the node pool ID by calling the ModifyClusterNodePool operation.
5867
6101
  *
5868
6102
  * @remarks
5869
- * <notice>Starting from July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Notice on changes to OpenAPI request and response parameters and OpenAPI deprecation for ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
6103
+ * <notice>Starting July 04, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to input and output parameters of OpenAPI operations related to ACK cluster management and the deprecation of specific OpenAPI operations](https://help.aliyun.com/document_detail/2932733.html).</notice>
5870
6104
  *
5871
6105
  * @param request - ModifyClusterNodePoolRequest
5872
6106
  * @param headers - map
@@ -5931,10 +6165,10 @@ export default class Client extends OpenApi {
5931
6165
  }
5932
6166
 
5933
6167
  /**
5934
- * Modifies the configuration of a node pool based on the node pool ID by calling the ModifyClusterNodePool operation.
6168
+ * Updates the configuration of a node pool based on the node pool ID by calling the ModifyClusterNodePool operation.
5935
6169
  *
5936
6170
  * @remarks
5937
- * <notice>Starting from July 4, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Notice on changes to OpenAPI request and response parameters and OpenAPI deprecation for ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
6171
+ * <notice>Starting July 04, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For more information about the changes, see [Announcement on changes to input and output parameters of OpenAPI operations related to ACK cluster management and the deprecation of specific OpenAPI operations](https://help.aliyun.com/document_detail/2932733.html).</notice>
5938
6172
  *
5939
6173
  * @param request - ModifyClusterNodePoolRequest
5940
6174
  * @returns ModifyClusterNodePoolResponse
@@ -5995,7 +6229,7 @@ export default class Client extends OpenApi {
5995
6229
  * Modifies the node configurations in a cluster node pool, such as kubelet configurations and rolling update configurations. Modifying node configurations applies changes in batches and restarts kubelet, which may affect node operations and workload execution. Perform this operation during off-peak hours.
5996
6230
  *
5997
6231
  * @remarks
5998
- * > ACK supports modifying the kubelet configurations of nodes in a node pool. After the modification, the new configurations automatically take effect on existing nodes in the node pool. New nodes added to the node pool also use the new configurations.
6232
+ * > ACK supports modifying the kubelet configurations of nodes in a node pool. After the modification is complete, the configurations automatically take effect on existing nodes in the node pool, and new nodes added to the node pool also use the new configurations.
5999
6233
  *
6000
6234
  * @param request - ModifyNodePoolNodeConfigRequest
6001
6235
  * @param headers - map
@@ -6047,7 +6281,7 @@ export default class Client extends OpenApi {
6047
6281
  * Modifies the node configurations in a cluster node pool, such as kubelet configurations and rolling update configurations. Modifying node configurations applies changes in batches and restarts kubelet, which may affect node operations and workload execution. Perform this operation during off-peak hours.
6048
6282
  *
6049
6283
  * @remarks
6050
- * > ACK supports modifying the kubelet configurations of nodes in a node pool. After the modification, the new configurations automatically take effect on existing nodes in the node pool. New nodes added to the node pool also use the new configurations.
6284
+ * > ACK supports modifying the kubelet configurations of nodes in a node pool. After the modification is complete, the configurations automatically take effect on existing nodes in the node pool, and new nodes added to the node pool also use the new configurations.
6051
6285
  *
6052
6286
  * @param request - ModifyNodePoolNodeConfigRequest
6053
6287
  * @returns ModifyNodePoolNodeConfigResponse
@@ -7685,6 +7919,67 @@ export default class Client extends OpenApi {
7685
7919
  return await this.updateNodePoolComponentWithOptions(clusterId, nodepoolId, request, headers, runtime);
7686
7920
  }
7687
7921
 
7922
+ /**
7923
+ * 更新节点组件
7924
+ *
7925
+ * @param request - UpdateNodePoolComponentInstanceRequest
7926
+ * @param headers - map
7927
+ * @param runtime - runtime options for this request RuntimeOptions
7928
+ * @returns UpdateNodePoolComponentInstanceResponse
7929
+ */
7930
+ async updateNodePoolComponentInstanceWithOptions(clusterId: string, nodepoolId: string, name: string, request: $_model.UpdateNodePoolComponentInstanceRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateNodePoolComponentInstanceResponse> {
7931
+ request.validate();
7932
+ let body : {[key: string ]: any} = { };
7933
+ if (!$dara.isNull(request.config)) {
7934
+ body["config"] = request.config;
7935
+ }
7936
+
7937
+ if (!$dara.isNull(request.disableRolling)) {
7938
+ body["disable_rolling"] = request.disableRolling;
7939
+ }
7940
+
7941
+ if (!$dara.isNull(request.nodeNames)) {
7942
+ body["node_names"] = request.nodeNames;
7943
+ }
7944
+
7945
+ if (!$dara.isNull(request.rollingPolicy)) {
7946
+ body["rolling_policy"] = request.rollingPolicy;
7947
+ }
7948
+
7949
+ if (!$dara.isNull(request.version)) {
7950
+ body["version"] = request.version;
7951
+ }
7952
+
7953
+ let req = new $OpenApiUtil.OpenApiRequest({
7954
+ headers: headers,
7955
+ body: OpenApiUtil.parseToMap(body),
7956
+ });
7957
+ let params = new $OpenApiUtil.Params({
7958
+ action: "UpdateNodePoolComponentInstance",
7959
+ version: "2015-12-15",
7960
+ protocol: "HTTPS",
7961
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/component_instances/${$dara.URL.percentEncode(name)}`,
7962
+ method: "PUT",
7963
+ authType: "AK",
7964
+ style: "ROA",
7965
+ reqBodyType: "json",
7966
+ bodyType: "json",
7967
+ });
7968
+ return $dara.cast<$_model.UpdateNodePoolComponentInstanceResponse>(await this.callApi(params, req, runtime), new $_model.UpdateNodePoolComponentInstanceResponse({}));
7969
+ }
7970
+
7971
+ /**
7972
+ * 更新节点组件
7973
+ *
7974
+ * @param request - UpdateNodePoolComponentInstanceRequest
7975
+ * @returns UpdateNodePoolComponentInstanceResponse
7976
+ */
7977
+ async updateNodePoolComponentInstance(clusterId: string, nodepoolId: string, name: string, request: $_model.UpdateNodePoolComponentInstanceRequest): Promise<$_model.UpdateNodePoolComponentInstanceResponse> {
7978
+ let runtime = new $dara.RuntimeOptions({ });
7979
+ let headers : {[key: string ]: string} = { };
7980
+ return await this.updateNodePoolComponentInstanceWithOptions(clusterId, nodepoolId, name, request, headers, runtime);
7981
+ }
7982
+
7688
7983
  /**
7689
7984
  * Updates the deletion protection status of a specified resource. Currently supported resource types include namespaces and services.
7690
7985
  * You can call this operation to enable deletion protection for namespaces or services that involve critical business or sensitive data to avoid maintenance costs caused by accidental deletion.
@@ -7991,14 +8286,14 @@ export default class Client extends OpenApi {
7991
8286
  }
7992
8287
 
7993
8288
  /**
7994
- * Upgrades the kubelet version (which should match the control plane version), operating system version, or container runtime version of a specified cluster node pool.
8289
+ * Upgrades the kubelet version (recommended to match the control plane version), operating system version, or container runtime version of a specified cluster node pool.
7995
8290
  *
7996
8291
  * @remarks
7997
- * Upgrades the Kubernetes version, operating system version, or container runtime version of nodes in a specified cluster node pool. After you call the UpgradeClusterNodepool operation, the API returns a task_id for the upgrade task. You can manage the task by calling the following task API operations:
8292
+ * Upgrades the Kubernetes version, operating system version, or container runtime version of nodes in a specified cluster node pool. After you successfully call the UpgradeClusterNodepool operation, the API returns a `task_id` for the upgrade task. You can manage the task by calling the following task-related API operations:
7998
8293
  * - [Call DescribeTaskInfo to query task details](https://help.aliyun.com/document_detail/2667985.html)
7999
8294
  * - [Call PauseTask to pause a running task](https://help.aliyun.com/document_detail/2667986.html)
8000
8295
  * - [Call ResumeTask to resume a paused task](https://help.aliyun.com/document_detail/2667987.html)
8001
- * - [Call CancelTask to cancel a running task](https://help.aliyun.com/document_detail/2667988.html).
8296
+ * - [Call CancelTask to cancel a running task](https://help.aliyun.com/document_detail/2667988.html)
8002
8297
  *
8003
8298
  * @param request - UpgradeClusterNodepoolRequest
8004
8299
  * @param headers - map
@@ -8059,14 +8354,14 @@ export default class Client extends OpenApi {
8059
8354
  }
8060
8355
 
8061
8356
  /**
8062
- * Upgrades the kubelet version (which should match the control plane version), operating system version, or container runtime version of a specified cluster node pool.
8357
+ * Upgrades the kubelet version (recommended to match the control plane version), operating system version, or container runtime version of a specified cluster node pool.
8063
8358
  *
8064
8359
  * @remarks
8065
- * Upgrades the Kubernetes version, operating system version, or container runtime version of nodes in a specified cluster node pool. After you call the UpgradeClusterNodepool operation, the API returns a task_id for the upgrade task. You can manage the task by calling the following task API operations:
8360
+ * Upgrades the Kubernetes version, operating system version, or container runtime version of nodes in a specified cluster node pool. After you successfully call the UpgradeClusterNodepool operation, the API returns a `task_id` for the upgrade task. You can manage the task by calling the following task-related API operations:
8066
8361
  * - [Call DescribeTaskInfo to query task details](https://help.aliyun.com/document_detail/2667985.html)
8067
8362
  * - [Call PauseTask to pause a running task](https://help.aliyun.com/document_detail/2667986.html)
8068
8363
  * - [Call ResumeTask to resume a paused task](https://help.aliyun.com/document_detail/2667987.html)
8069
- * - [Call CancelTask to cancel a running task](https://help.aliyun.com/document_detail/2667988.html).
8364
+ * - [Call CancelTask to cancel a running task](https://help.aliyun.com/document_detail/2667988.html)
8070
8365
  *
8071
8366
  * @param request - UpgradeClusterNodepoolRequest
8072
8367
  * @returns UpgradeClusterNodepoolResponse