@alicloud/cs20151215 7.0.3 → 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 +30 -30
- package/dist/client.js +33 -30
- package/dist/client.js.map +1 -1
- package/dist/models/CreateClusterNodePoolRequest.d.ts +139 -83
- package/dist/models/CreateClusterNodePoolRequest.js +29 -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 +163 -131
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js +29 -1
- package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +120 -92
- package/dist/models/DescribeClusterNodePoolsResponseBody.js +29 -1
- package/dist/models/DescribeClusterNodePoolsResponseBody.js.map +1 -1
- package/dist/models/ModifyClusterNodePoolRequest.d.ts +64 -49
- package/dist/models/ModifyClusterNodePoolRequest.js +4 -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 +132 -88
- package/dist/models/Nodepool.js +29 -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 +34 -30
- package/src/models/CreateClusterNodePoolRequest.ts +158 -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 +182 -131
- package/src/models/DescribeClusterNodePoolsResponseBody.ts +139 -92
- package/src/models/ModifyClusterNodePoolRequest.ts +68 -49
- package/src/models/ModifyClusterRequest.ts +170 -112
- package/src/models/ModifyClusterResponseBody.ts +3 -3
- package/src/models/Nodepool.ts +151 -88
- 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
|
-
* 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 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
|
-
* 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 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,14 +2862,14 @@ 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
2866
|
*
|
|
2867
2867
|
* @remarks
|
|
2868
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
|
|
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
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
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
|
|
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
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.
|
|
2874
2874
|
*
|
|
2875
2875
|
* @param request - DescribeClusterNodePoolsRequest
|
|
@@ -2903,14 +2903,14 @@ export default class Client extends OpenApi {
|
|
|
2903
2903
|
}
|
|
2904
2904
|
|
|
2905
2905
|
/**
|
|
2906
|
-
* Queries all node pools in a cluster.
|
|
2906
|
+
* Queries the list of all node pools in a cluster.
|
|
2907
2907
|
*
|
|
2908
2908
|
* @remarks
|
|
2909
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
|
|
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
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
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
|
|
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
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.
|
|
2915
2915
|
*
|
|
2916
2916
|
* @param request - DescribeClusterNodePoolsRequest
|
|
@@ -5675,10 +5675,10 @@ export default class Client extends OpenApi {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
|
|
5677
5677
|
/**
|
|
5678
|
-
*
|
|
5678
|
+
* Modifies the configuration of an ACK cluster.
|
|
5679
5679
|
*
|
|
5680
5680
|
* @remarks
|
|
5681
|
-
* <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>
|
|
5682
5682
|
*
|
|
5683
5683
|
* @param request - ModifyClusterRequest
|
|
5684
5684
|
* @param headers - map
|
|
@@ -5704,6 +5704,10 @@ export default class Client extends OpenApi {
|
|
|
5704
5704
|
body["api_server_eip_id"] = request.apiServerEipId;
|
|
5705
5705
|
}
|
|
5706
5706
|
|
|
5707
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
5708
|
+
body["client_token"] = request.clientToken;
|
|
5709
|
+
}
|
|
5710
|
+
|
|
5707
5711
|
if (!$dara.isNull(request.clusterName)) {
|
|
5708
5712
|
body["cluster_name"] = request.clusterName;
|
|
5709
5713
|
}
|
|
@@ -5787,10 +5791,10 @@ export default class Client extends OpenApi {
|
|
|
5787
5791
|
}
|
|
5788
5792
|
|
|
5789
5793
|
/**
|
|
5790
|
-
*
|
|
5794
|
+
* Modifies the configuration of an ACK cluster.
|
|
5791
5795
|
*
|
|
5792
5796
|
* @remarks
|
|
5793
|
-
* <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>
|
|
5794
5798
|
*
|
|
5795
5799
|
* @param request - ModifyClusterRequest
|
|
5796
5800
|
* @returns ModifyClusterResponse
|