@alicloud/cs20151215 7.0.2 → 7.0.4

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 (45) hide show
  1. package/dist/client.d.ts +50 -28
  2. package/dist/client.js +53 -28
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateClusterNodePoolRequest.d.ts +134 -83
  5. package/dist/models/CreateClusterNodePoolRequest.js +31 -1
  6. package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
  7. package/dist/models/CreateClusterRequest.d.ts +372 -345
  8. package/dist/models/CreateClusterRequest.js +27 -1
  9. package/dist/models/CreateClusterRequest.js.map +1 -1
  10. package/dist/models/CreateClusterResponseBody.d.ts +3 -3
  11. package/dist/models/DescribeClusterDetailResponseBody.d.ts +147 -106
  12. package/dist/models/DescribeClusterDetailResponseBody.js +29 -1
  13. package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
  14. package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +119 -91
  15. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +31 -1
  16. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
  17. package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +175 -130
  18. package/dist/models/DescribeClusterNodePoolsResponseBody.js +31 -1
  19. package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
  20. package/dist/models/ModifyClusterNodePoolRequest.d.ts +121 -95
  21. package/dist/models/ModifyClusterNodePoolRequest.js +6 -0
  22. package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
  23. package/dist/models/ModifyClusterRequest.d.ts +151 -112
  24. package/dist/models/ModifyClusterRequest.js +29 -1
  25. package/dist/models/ModifyClusterRequest.js.map +1 -1
  26. package/dist/models/ModifyClusterResponseBody.d.ts +3 -3
  27. package/dist/models/Nodepool.d.ts +266 -220
  28. package/dist/models/Nodepool.js +31 -1
  29. package/dist/models/Nodepool.js.map +1 -1
  30. package/dist/models/model.d.ts +7 -0
  31. package/dist/models/model.js +80 -66
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +2 -2
  34. package/src/client.ts +54 -28
  35. package/src/models/CreateClusterNodePoolRequest.ts +155 -83
  36. package/src/models/CreateClusterRequest.ts +389 -345
  37. package/src/models/CreateClusterResponseBody.ts +3 -3
  38. package/src/models/DescribeClusterDetailResponseBody.ts +166 -106
  39. package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +140 -91
  40. package/src/models/DescribeClusterNodePoolsResponseBody.ts +196 -130
  41. package/src/models/ModifyClusterNodePoolRequest.ts +127 -95
  42. package/src/models/ModifyClusterRequest.ts +170 -112
  43. package/src/models/ModifyClusterResponseBody.ts +3 -3
  44. package/src/models/Nodepool.ts +287 -220
  45. package/src/models/model.ts +7 -0
package/src/client.ts CHANGED
@@ -774,16 +774,16 @@ export default class Client extends OpenApi {
774
774
  }
775
775
 
776
776
  /**
777
- * You can create ACK clusters through OpenAPI, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When creating a cluster, you will configure the cluster information, cluster components, and ACK-related cloud resources.
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.
778
778
  *
779
779
  * @remarks
780
- * ### Generate OpenAPI request parameters through the console
781
- * When calling the CreateCluster API to create a cluster, if the API call fails due to incorrect request parameter combinations, you can generate the required request parameter combinations through the console. Follow these steps:
782
- * 1. Log in to the [Container Service management console](https://csnew.console.aliyun.com) and choose **Clusters** in the left navigation pane.
783
- * 1. On the **Clusters** page, click **Cluster Template**.
784
- * 1. In the dialog box, select the cluster type 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 will display the parameter combinations required for creating the cluster, which you can copy and use.
786
- * >Notice: Starting from July 4, 2026, some request parameters will no longer take effect. For change details and alternative parameter descriptions, see [Announcement on OpenAPI parameter changes and API deprecation for ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
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>
787
787
  *
788
788
  * @param request - CreateClusterRequest
789
789
  * @param headers - map
@@ -1224,16 +1224,16 @@ export default class Client extends OpenApi {
1224
1224
  }
1225
1225
 
1226
1226
  /**
1227
- * You can create ACK clusters through OpenAPI, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When creating a cluster, you will configure the cluster information, cluster components, and ACK-related cloud resources.
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.
1228
1228
  *
1229
1229
  * @remarks
1230
- * ### Generate OpenAPI request parameters through the console
1231
- * When calling the CreateCluster API to create a cluster, if the API call fails due to incorrect request parameter combinations, you can generate the required request parameter combinations through the console. Follow these steps:
1232
- * 1. Log in to the [Container Service management console](https://csnew.console.aliyun.com) and choose **Clusters** in the left navigation pane.
1233
- * 1. On the **Clusters** page, click **Cluster Template**.
1234
- * 1. In the dialog box, select the cluster type 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 will display the parameter combinations required for creating the cluster, which you can copy and use.
1236
- * >Notice: Starting from July 4, 2026, some request parameters will no longer take effect. For change details and alternative parameter descriptions, see [Announcement on OpenAPI parameter changes and API deprecation for ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
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>
1237
1237
  *
1238
1238
  * @param request - CreateClusterRequest
1239
1239
  * @returns CreateClusterResponse
@@ -1347,7 +1347,7 @@ export default class Client extends OpenApi {
1347
1347
  }
1348
1348
 
1349
1349
  /**
1350
- * A node pool is a logical collection of nodes that share the same attributes, allowing unified management and 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.
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.
1351
1351
  *
1352
1352
  * @param request - CreateClusterNodePoolRequest
1353
1353
  * @param headers - map
@@ -1440,7 +1440,7 @@ export default class Client extends OpenApi {
1440
1440
  }
1441
1441
 
1442
1442
  /**
1443
- * A node pool is a logical collection of nodes that share the same attributes, allowing unified management and 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.
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.
1444
1444
  *
1445
1445
  * @param request - CreateClusterNodePoolRequest
1446
1446
  * @returns CreateClusterNodePoolResponse
@@ -2696,7 +2696,7 @@ export default class Client extends OpenApi {
2696
2696
  }
2697
2697
 
2698
2698
  /**
2699
- * You can call the DescribeClusterDetail API to query the detailed information of a specified cluster by cluster ID.
2699
+ * Queries the details of a specified cluster by cluster ID.
2700
2700
  *
2701
2701
  * @param headers - map
2702
2702
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2721,7 +2721,7 @@ export default class Client extends OpenApi {
2721
2721
  }
2722
2722
 
2723
2723
  /**
2724
- * You can call the DescribeClusterDetail API to query the detailed information of a specified cluster by cluster ID.
2724
+ * Queries the details of a specified cluster by cluster ID.
2725
2725
  * @returns DescribeClusterDetailResponse
2726
2726
  */
2727
2727
  async describeClusterDetail(ClusterId: string): Promise<$_model.DescribeClusterDetailResponse> {
@@ -2862,7 +2862,15 @@ export default class Client extends OpenApi {
2862
2862
  }
2863
2863
 
2864
2864
  /**
2865
- * Queries all node pools in a cluster.
2865
+ * Queries the list of all node pools in a cluster.
2866
+ *
2867
+ * @remarks
2868
+ * - 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.
2871
+ * - 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.
2866
2874
  *
2867
2875
  * @param request - DescribeClusterNodePoolsRequest
2868
2876
  * @param headers - map
@@ -2895,7 +2903,15 @@ export default class Client extends OpenApi {
2895
2903
  }
2896
2904
 
2897
2905
  /**
2898
- * Queries all node pools in a cluster.
2906
+ * Queries the list of all node pools in a cluster.
2907
+ *
2908
+ * @remarks
2909
+ * - 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.
2912
+ * - 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.
2899
2915
  *
2900
2916
  * @param request - DescribeClusterNodePoolsRequest
2901
2917
  * @returns DescribeClusterNodePoolsResponse
@@ -5659,10 +5675,10 @@ export default class Client extends OpenApi {
5659
5675
  }
5660
5676
 
5661
5677
  /**
5662
- * You can call the ModifyCluster operation to modify the configuration of an ACK cluster.
5678
+ * Modifies the configuration of an ACK cluster.
5663
5679
  *
5664
5680
  * @remarks
5665
- * <notice>Starting from July 04, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For details about the changes, see [Announcement on Changes to ACK Cluster Management OpenAPI Parameters and OpenAPI Deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
5681
+ * <notice>Starting 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 [Announcement on changes to OpenAPI request and response parameters and OpenAPI deprecation for ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
5666
5682
  *
5667
5683
  * @param request - ModifyClusterRequest
5668
5684
  * @param headers - map
@@ -5688,6 +5704,10 @@ export default class Client extends OpenApi {
5688
5704
  body["api_server_eip_id"] = request.apiServerEipId;
5689
5705
  }
5690
5706
 
5707
+ if (!$dara.isNull(request.clientToken)) {
5708
+ body["client_token"] = request.clientToken;
5709
+ }
5710
+
5691
5711
  if (!$dara.isNull(request.clusterName)) {
5692
5712
  body["cluster_name"] = request.clusterName;
5693
5713
  }
@@ -5771,10 +5791,10 @@ export default class Client extends OpenApi {
5771
5791
  }
5772
5792
 
5773
5793
  /**
5774
- * You can call the ModifyCluster operation to modify the configuration of an ACK cluster.
5794
+ * Modifies the configuration of an ACK cluster.
5775
5795
  *
5776
5796
  * @remarks
5777
- * <notice>Starting from July 04, 2026, the request parameters instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will no longer take effect. For details about the changes, see [Announcement on Changes to ACK Cluster Management OpenAPI Parameters and OpenAPI Deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
5797
+ * <notice>Starting 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 [Announcement on changes to OpenAPI request and response parameters and OpenAPI deprecation for ACK cluster management](https://help.aliyun.com/document_detail/2932733.html).</notice>
5778
5798
  *
5779
5799
  * @param request - ModifyClusterRequest
5780
5800
  * @returns ModifyClusterResponse
@@ -5843,7 +5863,10 @@ export default class Client extends OpenApi {
5843
5863
  }
5844
5864
 
5845
5865
  /**
5846
- * Updates the configuration of a node pool based on the node pool ID by calling the ModifyClusterNodePool operation.
5866
+ * Modifies the configuration of a node pool based on the node pool ID by calling the ModifyClusterNodePool operation.
5867
+ *
5868
+ * @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>
5847
5870
  *
5848
5871
  * @param request - ModifyClusterNodePoolRequest
5849
5872
  * @param headers - map
@@ -5908,7 +5931,10 @@ export default class Client extends OpenApi {
5908
5931
  }
5909
5932
 
5910
5933
  /**
5911
- * Updates the configuration of a node pool based on the node pool ID by calling the ModifyClusterNodePool operation.
5934
+ * Modifies the configuration of a node pool based on the node pool ID by calling the ModifyClusterNodePool operation.
5935
+ *
5936
+ * @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>
5912
5938
  *
5913
5939
  * @param request - ModifyClusterNodePoolRequest
5914
5940
  * @returns ModifyClusterNodePoolResponse