@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.
- package/dist/client.d.ts +50 -28
- package/dist/client.js +53 -28
- package/dist/client.js.map +1 -1
- package/dist/models/CreateClusterNodePoolRequest.d.ts +134 -83
- package/dist/models/CreateClusterNodePoolRequest.js +31 -1
- package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
- package/dist/models/CreateClusterRequest.d.ts +372 -345
- package/dist/models/CreateClusterRequest.js +27 -1
- package/dist/models/CreateClusterRequest.js.map +1 -1
- package/dist/models/CreateClusterResponseBody.d.ts +3 -3
- package/dist/models/DescribeClusterDetailResponseBody.d.ts +147 -106
- package/dist/models/DescribeClusterDetailResponseBody.js +29 -1
- package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +119 -91
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +31 -1
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +175 -130
- package/dist/models/DescribeClusterNodePoolsResponseBody.js +31 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
- package/dist/models/ModifyClusterNodePoolRequest.d.ts +121 -95
- package/dist/models/ModifyClusterNodePoolRequest.js +6 -0
- package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
- package/dist/models/ModifyClusterRequest.d.ts +151 -112
- package/dist/models/ModifyClusterRequest.js +29 -1
- package/dist/models/ModifyClusterRequest.js.map +1 -1
- package/dist/models/ModifyClusterResponseBody.d.ts +3 -3
- package/dist/models/Nodepool.d.ts +266 -220
- package/dist/models/Nodepool.js +31 -1
- package/dist/models/Nodepool.js.map +1 -1
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +80 -66
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +54 -28
- package/src/models/CreateClusterNodePoolRequest.ts +155 -83
- package/src/models/CreateClusterRequest.ts +389 -345
- package/src/models/CreateClusterResponseBody.ts +3 -3
- package/src/models/DescribeClusterDetailResponseBody.ts +166 -106
- package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +140 -91
- package/src/models/DescribeClusterNodePoolsResponseBody.ts +196 -130
- package/src/models/ModifyClusterNodePoolRequest.ts +127 -95
- package/src/models/ModifyClusterRequest.ts +170 -112
- package/src/models/ModifyClusterResponseBody.ts +3 -3
- package/src/models/Nodepool.ts +287 -220
- 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
|
-
*
|
|
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
|
|
781
|
-
* When
|
|
782
|
-
* 1. Log
|
|
783
|
-
* 1. On the **
|
|
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
|
|
786
|
-
* >Notice: Starting from July 4, 2026, some request parameters will no longer take effect. For
|
|
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
|
-
*
|
|
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
|
|
1231
|
-
* When
|
|
1232
|
-
* 1. Log
|
|
1233
|
-
* 1. On the **
|
|
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
|
|
1236
|
-
* >Notice: Starting from July 4, 2026, some request parameters will no longer take effect. For
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
5678
|
+
* Modifies the configuration of an ACK cluster.
|
|
5663
5679
|
*
|
|
5664
5680
|
* @remarks
|
|
5665
|
-
* <notice>Starting
|
|
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
|
-
*
|
|
5794
|
+
* Modifies the configuration of an ACK cluster.
|
|
5775
5795
|
*
|
|
5776
5796
|
* @remarks
|
|
5777
|
-
* <notice>Starting
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|