@alicloud/cs20151215 7.2.5 → 7.2.6

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 (62) hide show
  1. package/dist/client.d.ts +72 -72
  2. package/dist/client.js +82 -72
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AttachInstancesToNodePoolRequest.d.ts +3 -13
  5. package/dist/models/AttachInstancesToNodePoolRequest.js.map +1 -1
  6. package/dist/models/CleanClusterUserPermissionsRequest.d.ts +1 -1
  7. package/dist/models/CleanUserPermissionsRequest.d.ts +2 -2
  8. package/dist/models/CleanUserPermissionsShrinkRequest.d.ts +2 -2
  9. package/dist/models/CreateClusterRequest.d.ts +305 -392
  10. package/dist/models/CreateClusterRequest.js.map +1 -1
  11. package/dist/models/DeleteClusterNodesRequest.d.ts +15 -7
  12. package/dist/models/DeleteClusterNodesRequest.js +2 -0
  13. package/dist/models/DeleteClusterNodesRequest.js.map +1 -1
  14. package/dist/models/DescribeClusterAttachScriptsRequest.d.ts +9 -17
  15. package/dist/models/DescribeClusterAttachScriptsRequest.js.map +1 -1
  16. package/dist/models/DescribeClusterDetailResponseBody.d.ts +80 -77
  17. package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
  18. package/dist/models/DescribeClustersForRegionRequest.d.ts +14 -14
  19. package/dist/models/DescribeClustersForRegionResponseBody.d.ts +18 -12
  20. package/dist/models/DescribeClustersForRegionResponseBody.js.map +1 -1
  21. package/dist/models/DescribeKubernetesVersionMetadataRequest.d.ts +22 -15
  22. package/dist/models/DescribeKubernetesVersionMetadataRequest.js.map +1 -1
  23. package/dist/models/DescribeKubernetesVersionMetadataResponse.d.ts +23 -17
  24. package/dist/models/DescribeKubernetesVersionMetadataResponse.js.map +1 -1
  25. package/dist/models/ListUserKubeConfigStatesRequest.d.ts +3 -3
  26. package/dist/models/ListUserKubeConfigStatesResponseBody.d.ts +4 -5
  27. package/dist/models/ListUserKubeConfigStatesResponseBody.js.map +1 -1
  28. package/dist/models/ModifyClusterRequest.d.ts +106 -99
  29. package/dist/models/ModifyClusterRequest.js.map +1 -1
  30. package/dist/models/ModifyClusterResponseBody.d.ts +2 -2
  31. package/dist/models/RemoveNodePoolNodesRequest.d.ts +18 -11
  32. package/dist/models/RemoveNodePoolNodesRequest.js +2 -0
  33. package/dist/models/RemoveNodePoolNodesRequest.js.map +1 -1
  34. package/dist/models/RemoveNodePoolNodesShrinkRequest.d.ts +18 -11
  35. package/dist/models/RemoveNodePoolNodesShrinkRequest.js +2 -0
  36. package/dist/models/RemoveNodePoolNodesShrinkRequest.js.map +1 -1
  37. package/dist/models/UpdateClusterAuditLogConfigRequest.d.ts +4 -3
  38. package/dist/models/UpdateClusterAuditLogConfigRequest.js.map +1 -1
  39. package/dist/models/UpdateUserPermissionsRequest.d.ts +22 -22
  40. package/dist/models/UpdateUserPermissionsRequest.js.map +1 -1
  41. package/package.json +2 -1
  42. package/src/client.ts +84 -72
  43. package/src/models/AttachInstancesToNodePoolRequest.ts +3 -13
  44. package/src/models/CleanClusterUserPermissionsRequest.ts +1 -1
  45. package/src/models/CleanUserPermissionsRequest.ts +2 -2
  46. package/src/models/CleanUserPermissionsShrinkRequest.ts +2 -2
  47. package/src/models/CreateClusterRequest.ts +305 -392
  48. package/src/models/DeleteClusterNodesRequest.ts +17 -7
  49. package/src/models/DescribeClusterAttachScriptsRequest.ts +9 -17
  50. package/src/models/DescribeClusterDetailResponseBody.ts +80 -77
  51. package/src/models/DescribeClustersForRegionRequest.ts +14 -14
  52. package/src/models/DescribeClustersForRegionResponseBody.ts +18 -12
  53. package/src/models/DescribeKubernetesVersionMetadataRequest.ts +22 -15
  54. package/src/models/DescribeKubernetesVersionMetadataResponse.ts +23 -17
  55. package/src/models/ListUserKubeConfigStatesRequest.ts +3 -3
  56. package/src/models/ListUserKubeConfigStatesResponseBody.ts +4 -5
  57. package/src/models/ModifyClusterRequest.ts +106 -99
  58. package/src/models/ModifyClusterResponseBody.ts +2 -2
  59. package/src/models/RemoveNodePoolNodesRequest.ts +20 -11
  60. package/src/models/RemoveNodePoolNodesShrinkRequest.ts +20 -11
  61. package/src/models/UpdateClusterAuditLogConfigRequest.ts +4 -3
  62. package/src/models/UpdateUserPermissionsRequest.ts +22 -22
package/src/client.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  // This file is auto-generated, don't edit it
2
2
  import * as $dara from '@darabonba/typescript';
3
+ import GatewayClient from '@alicloud/gateway-pop';
3
4
  import OpenApi from '@alicloud/openapi-core';
4
5
  import { OpenApiUtil, $OpenApiUtil }from '@alicloud/openapi-core';
5
6
 
@@ -11,6 +12,9 @@ export default class Client extends OpenApi {
11
12
 
12
13
  constructor(config: $OpenApiUtil.Config) {
13
14
  super(config);
15
+ this._productId = "CS";
16
+ let gatewayClient = new GatewayClient();
17
+ this._spi = gatewayClient;
14
18
  this._endpointRule = "regional";
15
19
  this._endpointMap = {
16
20
  'ap-northeast-2-pop': "cs.aliyuncs.com",
@@ -161,7 +165,7 @@ export default class Client extends OpenApi {
161
165
  }
162
166
 
163
167
  /**
164
- * Adds existing ECS instances to a node pool as worker nodes in an ACK cluster, or re-adds removed worker nodes to a node pool.
168
+ * Adds existing ECS instances to an ACK cluster as worker nodes, or re-adds removed node instances to a node pool. You can invoke AttachInstancesToNodePool to add existing nodes to a node pool.
165
169
  *
166
170
  * @param request - AttachInstancesToNodePoolRequest
167
171
  * @param headers - map
@@ -206,7 +210,7 @@ export default class Client extends OpenApi {
206
210
  }
207
211
 
208
212
  /**
209
- * Adds existing ECS instances to a node pool as worker nodes in an ACK cluster, or re-adds removed worker nodes to a node pool.
213
+ * Adds existing ECS instances to an ACK cluster as worker nodes, or re-adds removed node instances to a node pool. You can invoke AttachInstancesToNodePool to add existing nodes to a node pool.
210
214
  *
211
215
  * @param request - AttachInstancesToNodePoolRequest
212
216
  * @returns AttachInstancesToNodePoolResponse
@@ -448,12 +452,12 @@ export default class Client extends OpenApi {
448
452
  }
449
453
 
450
454
  /**
451
- * Clears the issued KubeConfig credentials and Role-Based Access Control (RBAC) permissions of a specified user in a specified cluster. You can call this operation to clean up and revoke authorization for KubeConfig files that pose security risks.
455
+ * Clears the issued KubeConfig credentials and revokes the RBAC authorization of a specified user in a specified cluster. You can invoke CleanClusterUserPermissions to clean up and revoke authorization for KubeConfigs that pose a security risk.
452
456
  *
453
457
  * @remarks
454
- * > 1. You must have the permissions to manage Container Service for Kubernetes (CS). The required policy is AliyunCSFullAccess.
455
- * > 2. You cannot clear the permissions of an Alibaba Cloud account.
456
- * > 3. You cannot clear the permissions of the user who performs this operation.
458
+ * > 1. You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
459
+ * > 2. This operation does not support clearing the permissions of an Alibaba Cloud account.
460
+ * > 3. This operation does not support clearing the permissions of the current user.
457
461
  *
458
462
  * @param request - CleanClusterUserPermissionsRequest
459
463
  * @param headers - map
@@ -486,12 +490,12 @@ export default class Client extends OpenApi {
486
490
  }
487
491
 
488
492
  /**
489
- * Clears the issued KubeConfig credentials and Role-Based Access Control (RBAC) permissions of a specified user in a specified cluster. You can call this operation to clean up and revoke authorization for KubeConfig files that pose security risks.
493
+ * Clears the issued KubeConfig credentials and revokes the RBAC authorization of a specified user in a specified cluster. You can invoke CleanClusterUserPermissions to clean up and revoke authorization for KubeConfigs that pose a security risk.
490
494
  *
491
495
  * @remarks
492
- * > 1. You must have the permissions to manage Container Service for Kubernetes (CS). The required policy is AliyunCSFullAccess.
493
- * > 2. You cannot clear the permissions of an Alibaba Cloud account.
494
- * > 3. You cannot clear the permissions of the user who performs this operation.
496
+ * > 1. You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
497
+ * > 2. This operation does not support clearing the permissions of an Alibaba Cloud account.
498
+ * > 3. This operation does not support clearing the permissions of the current user.
495
499
  *
496
500
  * @param request - CleanClusterUserPermissionsRequest
497
501
  * @returns CleanClusterUserPermissionsResponse
@@ -503,12 +507,12 @@ export default class Client extends OpenApi {
503
507
  }
504
508
 
505
509
  /**
506
- * Cleans up and revokes the KubeConfig credentials and RBAC permissions issued to a specified user, such as resigned employees or users with frozen accounts.
510
+ * Clears the issued KubeConfig credentials and RBAC permissions of a specified user to revoke authorizations for risky users, such as resigned employees or users with frozen accounts.
507
511
  *
508
512
  * @remarks
509
- * >- Requires the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
510
- * >- Clearing the permissions of Alibaba Cloud accounts is not supported.
511
- * >- Clearing the permissions of the calling user is not supported.
513
+ * >- You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
514
+ * >- You cannot clear the permissions of an Alibaba Cloud account.
515
+ * >- You cannot clear your own permissions.
512
516
  *
513
517
  * @param tmpReq - CleanUserPermissionsRequest
514
518
  * @param headers - map
@@ -551,12 +555,12 @@ export default class Client extends OpenApi {
551
555
  }
552
556
 
553
557
  /**
554
- * Cleans up and revokes the KubeConfig credentials and RBAC permissions issued to a specified user, such as resigned employees or users with frozen accounts.
558
+ * Clears the issued KubeConfig credentials and RBAC permissions of a specified user to revoke authorizations for risky users, such as resigned employees or users with frozen accounts.
555
559
  *
556
560
  * @remarks
557
- * >- Requires the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
558
- * >- Clearing the permissions of Alibaba Cloud accounts is not supported.
559
- * >- Clearing the permissions of the calling user is not supported.
561
+ * >- You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
562
+ * >- You cannot clear the permissions of an Alibaba Cloud account.
563
+ * >- You cannot clear your own permissions.
560
564
  *
561
565
  * @param request - CleanUserPermissionsRequest
562
566
  * @returns CleanUserPermissionsResponse
@@ -736,16 +740,16 @@ export default class Client extends OpenApi {
736
740
  }
737
741
 
738
742
  /**
739
- * 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.
743
+ * 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.
740
744
  *
741
745
  * @remarks
742
746
  * ### Generate OpenAPI request parameters by using the console
743
- * When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect combinations of request parameters, you can use the console to generate the required request parameter combinations. Perform the following steps:
744
- * 1. Log on to the [Container Service for Kubernetes (ACK) console](https://csnew.console.aliyun.com) and choose **Clusters** in the left-side navigation pane.
745
- * 1. On the **Clusters** page, click **Cluster Template**.
746
- * 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.
747
- * 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 for creating the cluster. You can copy and use them.
748
- * >Notice: Starting from July 04, 2026, some request parameters will no longer take effect. For details about the changes and replacement parameter descriptions, see [Notice on changes to OpenAPI request and response parameters for ACK cluster management and OpenAPI offline](https://help.aliyun.com/document_detail/2932733.html).</notice>
747
+ * When you call the CreateCluster API operation to create a cluster, if the API call fails due to an incorrect combination of request parameters, you can generate the required combination of request parameters for cluster creation by using the console. Proceed as follows:
748
+ * 1. Log on to the [Container Service console](https://csnew.console.aliyun.com). In the left-side navigation pane, click **Clusters**.
749
+ * 1. On the **Clusters** page, click **Cluster Templates**.
750
+ * 1. In the dialog box, select the type of cluster that you want to create, click Create, and then configure the cluster information on the cluster configuration page.
751
+ * 1. After the configuration is complete, on the **Confirm** page, click **Equivalent Code** in the upper-right corner. The dialog box displays the combination of parameters required for cluster creation. You can copy and use the parameters.
752
+ * >Notice: Starting July 4, 2026, some request parameters will no longer take effect. For details about the changes and replacement parameters, see [Announcement on changes to input and output parameters of ACK cluster management-related OpenAPIs and OpenAPI deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
749
753
  *
750
754
  * @param request - CreateClusterRequest
751
755
  * @param headers - map
@@ -1194,16 +1198,16 @@ export default class Client extends OpenApi {
1194
1198
  }
1195
1199
 
1196
1200
  /**
1197
- * 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.
1201
+ * 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.
1198
1202
  *
1199
1203
  * @remarks
1200
1204
  * ### Generate OpenAPI request parameters by using the console
1201
- * When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect combinations of request parameters, you can use the console to generate the required request parameter combinations. Perform the following steps:
1202
- * 1. Log on to the [Container Service for Kubernetes (ACK) console](https://csnew.console.aliyun.com) and choose **Clusters** in the left-side navigation pane.
1203
- * 1. On the **Clusters** page, click **Cluster Template**.
1204
- * 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.
1205
- * 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 for creating the cluster. You can copy and use them.
1206
- * >Notice: Starting from July 04, 2026, some request parameters will no longer take effect. For details about the changes and replacement parameter descriptions, see [Notice on changes to OpenAPI request and response parameters for ACK cluster management and OpenAPI offline](https://help.aliyun.com/document_detail/2932733.html).</notice>
1205
+ * When you call the CreateCluster API operation to create a cluster, if the API call fails due to an incorrect combination of request parameters, you can generate the required combination of request parameters for cluster creation by using the console. Proceed as follows:
1206
+ * 1. Log on to the [Container Service console](https://csnew.console.aliyun.com). In the left-side navigation pane, click **Clusters**.
1207
+ * 1. On the **Clusters** page, click **Cluster Templates**.
1208
+ * 1. In the dialog box, select the type of cluster that you want to create, click Create, and then configure the cluster information on the cluster configuration page.
1209
+ * 1. After the configuration is complete, on the **Confirm** page, click **Equivalent Code** in the upper-right corner. The dialog box displays the combination of parameters required for cluster creation. You can copy and use the parameters.
1210
+ * >Notice: Starting July 4, 2026, some request parameters will no longer take effect. For details about the changes and replacement parameters, see [Announcement on changes to input and output parameters of ACK cluster management-related OpenAPIs and OpenAPI deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
1207
1211
  *
1208
1212
  * @param request - CreateClusterRequest
1209
1213
  * @returns CreateClusterResponse
@@ -1967,14 +1971,14 @@ export default class Client extends OpenApi {
1967
1971
  }
1968
1972
 
1969
1973
  /**
1970
- * Removes nodes from a cluster. When you remove nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
1974
+ * Removes nodes from a cluster. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
1971
1975
  *
1972
1976
  * @remarks
1973
- * - When removing nodes, perform standard operations by calling this API operation or using the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
1974
- * - Do not manually release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly shut down and automatically removed from the Container Service console.
1975
- * - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the corresponding configurations to maintain the expected number of nodes.
1976
- * - Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
1977
- * - When you remove nodes, ACK executes drain operations. Make sure that other nodes in the cluster have sufficient resources to avoid application pod scheduling failures.
1977
+ * - When removing nodes, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
1978
+ * - Do not manually release nodes or remove instances in the ECS or Auto Scaling (ESS) console (or by calling related API operations), or passively release nodes when a subscription instance expires. In these cases, the nodes are directly stopped and automatically removed from the Container Service console.
1979
+ * - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configuration to maintain the expected number of nodes.
1980
+ * - 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 your data in advance.
1981
+ * - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application pod scheduling failures.
1978
1982
  * - Check the node affinity rules and scheduling policies of the pods on the nodes to be removed to ensure that the pods can be scheduled to other nodes after the nodes are removed.
1979
1983
  *
1980
1984
  * @param request - DeleteClusterNodesRequest
@@ -1989,6 +1993,10 @@ export default class Client extends OpenApi {
1989
1993
  body["drain_node"] = request.drainNode;
1990
1994
  }
1991
1995
 
1996
+ if (!$dara.isNull(request.drainTimeoutSeconds)) {
1997
+ body["drain_timeout_seconds"] = request.drainTimeoutSeconds;
1998
+ }
1999
+
1992
2000
  if (!$dara.isNull(request.nodes)) {
1993
2001
  body["nodes"] = request.nodes;
1994
2002
  }
@@ -2016,14 +2024,14 @@ export default class Client extends OpenApi {
2016
2024
  }
2017
2025
 
2018
2026
  /**
2019
- * Removes nodes from a cluster. When you remove nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
2027
+ * Removes nodes from a cluster. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes.
2020
2028
  *
2021
2029
  * @remarks
2022
- * - When removing nodes, perform standard operations by calling this API operation or using the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
2023
- * - Do not manually release nodes or remove instances in the ECS or Auto Scaling (ESS) console or by calling related API operations, or passively release nodes when a subscription instance expires. In these cases, the nodes are directly shut down and automatically removed from the Container Service console.
2024
- * - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the corresponding configurations to maintain the expected number of nodes.
2025
- * - Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours. Unexpected risks may occur during the operation. Back up your data in advance.
2026
- * - When you remove nodes, ACK executes drain operations. Make sure that other nodes in the cluster have sufficient resources to avoid application pod scheduling failures.
2030
+ * - When removing nodes, perform standard operations by using this API operation or the [Container Service console](https://cs.console.aliyun.com). Do not manually remove nodes by running the `kubectl delete node` command.
2031
+ * - Do not manually release nodes or remove instances in the ECS or Auto Scaling (ESS) console (or by calling related API operations), or passively release nodes when a subscription instance expires. In these cases, the nodes are directly stopped and automatically removed from the Container Service console.
2032
+ * - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the configuration to maintain the expected number of nodes.
2033
+ * - 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 your data in advance.
2034
+ * - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application pod scheduling failures.
2027
2035
  * - Check the node affinity rules and scheduling policies of the pods on the nodes to be removed to ensure that the pods can be scheduled to other nodes after the nodes are removed.
2028
2036
  *
2029
2037
  * @param request - DeleteClusterNodesRequest
@@ -2713,7 +2721,7 @@ export default class Client extends OpenApi {
2713
2721
  }
2714
2722
 
2715
2723
  /**
2716
- * Retrieves the script used to add existing ECS instances to an ACK cluster as worker nodes, or to re-add removed worker nodes to a node pool. ACK supports manually adding existing nodes to a node pool. You can invoke the DescribeClusterAttachScripts operation to obtain the script for adding existing nodes.
2724
+ * Queries the script for adding existing nodes to a cluster node pool. Container Service for Kubernetes (ACK) supports manually adding existing nodes to a node pool if you need to add existing ECS instances to an ACK cluster as worker nodes or re-add node instances to a node pool after removing worker nodes. You can invoke the DescribeClusterAttachScripts operation to obtain the script for adding existing nodes.
2717
2725
  *
2718
2726
  * @param request - DescribeClusterAttachScriptsRequest
2719
2727
  * @param headers - map
@@ -2774,7 +2782,7 @@ export default class Client extends OpenApi {
2774
2782
  }
2775
2783
 
2776
2784
  /**
2777
- * Retrieves the script used to add existing ECS instances to an ACK cluster as worker nodes, or to re-add removed worker nodes to a node pool. ACK supports manually adding existing nodes to a node pool. You can invoke the DescribeClusterAttachScripts operation to obtain the script for adding existing nodes.
2785
+ * Queries the script for adding existing nodes to a cluster node pool. Container Service for Kubernetes (ACK) supports manually adding existing nodes to a node pool if you need to add existing ECS instances to an ACK cluster as worker nodes or re-add node instances to a node pool after removing worker nodes. You can invoke the DescribeClusterAttachScripts operation to obtain the script for adding existing nodes.
2778
2786
  *
2779
2787
  * @param request - DescribeClusterAttachScriptsRequest
2780
2788
  * @returns DescribeClusterAttachScriptsResponse
@@ -3392,7 +3400,7 @@ export default class Client extends OpenApi {
3392
3400
  }
3393
3401
 
3394
3402
  /**
3395
- * Queries the list of all clusters in a specified region.
3403
+ * Queries all clusters in a specified region.
3396
3404
  *
3397
3405
  * @param request - DescribeClustersForRegionRequest
3398
3406
  * @param headers - map
@@ -3449,7 +3457,7 @@ export default class Client extends OpenApi {
3449
3457
  }
3450
3458
 
3451
3459
  /**
3452
- * Queries the list of all clusters in a specified region.
3460
+ * Queries all clusters in a specified region.
3453
3461
  *
3454
3462
  * @param request - DescribeClustersForRegionRequest
3455
3463
  * @returns DescribeClustersForRegionResponse
@@ -3720,7 +3728,7 @@ export default class Client extends OpenApi {
3720
3728
  }
3721
3729
 
3722
3730
  /**
3723
- * Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and supported runtimes.
3731
+ * Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and runtimes.
3724
3732
  *
3725
3733
  * @param request - DescribeKubernetesVersionMetadataRequest
3726
3734
  * @param headers - map
@@ -3781,7 +3789,7 @@ export default class Client extends OpenApi {
3781
3789
  }
3782
3790
 
3783
3791
  /**
3784
- * Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and supported runtimes.
3792
+ * Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and runtimes.
3785
3793
  *
3786
3794
  * @param request - DescribeKubernetesVersionMetadataRequest
3787
3795
  * @returns DescribeKubernetesVersionMetadataResponse
@@ -5795,10 +5803,10 @@ export default class Client extends OpenApi {
5795
5803
  }
5796
5804
 
5797
5805
  /**
5798
- * Queries the KubeConfig status list of all clusters for the current user.
5806
+ * Queries the KubeConfig status list for all clusters of the current user.
5799
5807
  *
5800
5808
  * @remarks
5801
- * > To call this operation, you must have the permissions to manage Container Service (CS) (AliyunCSFullAccess).
5809
+ * > To call this operation, you must have the AliyunCSFullAccess permission to manage Container Service for Kubernetes (CS).
5802
5810
  *
5803
5811
  * @param request - ListUserKubeConfigStatesRequest
5804
5812
  * @param headers - map
@@ -5835,10 +5843,10 @@ export default class Client extends OpenApi {
5835
5843
  }
5836
5844
 
5837
5845
  /**
5838
- * Queries the KubeConfig status list of all clusters for the current user.
5846
+ * Queries the KubeConfig status list for all clusters of the current user.
5839
5847
  *
5840
5848
  * @remarks
5841
- * > To call this operation, you must have the permissions to manage Container Service (CS) (AliyunCSFullAccess).
5849
+ * > To call this operation, you must have the AliyunCSFullAccess permission to manage Container Service for Kubernetes (CS).
5842
5850
  *
5843
5851
  * @param request - ListUserKubeConfigStatesRequest
5844
5852
  * @returns ListUserKubeConfigStatesResponse
@@ -5960,10 +5968,10 @@ export default class Client extends OpenApi {
5960
5968
  }
5961
5969
 
5962
5970
  /**
5963
- * Modifies the configuration of an ACK cluster.
5971
+ * Modifies the configurations of an ACK cluster.
5964
5972
  *
5965
5973
  * @remarks
5966
- * <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 [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>
5974
+ * <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 request and response parameters of ACK cluster management API operations and API operation deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
5967
5975
  *
5968
5976
  * @param request - ModifyClusterRequest
5969
5977
  * @param headers - map
@@ -6080,10 +6088,10 @@ export default class Client extends OpenApi {
6080
6088
  }
6081
6089
 
6082
6090
  /**
6083
- * Modifies the configuration of an ACK cluster.
6091
+ * Modifies the configurations of an ACK cluster.
6084
6092
  *
6085
6093
  * @remarks
6086
- * <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 [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>
6094
+ * <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 request and response parameters of ACK cluster management API operations and API operation deprecation](https://help.aliyun.com/document_detail/2932733.html).</notice>
6087
6095
  *
6088
6096
  * @param request - ModifyClusterRequest
6089
6097
  * @returns ModifyClusterResponse
@@ -6631,14 +6639,14 @@ export default class Client extends OpenApi {
6631
6639
  }
6632
6640
 
6633
6641
  /**
6634
- * Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes. Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours and back up your data in advance.
6642
+ * Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated Elastic Compute Service (ECS) instances and whether to automatically drain the nodes. Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours and back up your data in advance.
6635
6643
  *
6636
6644
  * @remarks
6637
- * - Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours.
6645
+ * - Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours.
6638
6646
  * - Unexpected risks may occur during the operation. Back up your data in advance.
6639
- * - During the operation, the system sets the nodes to the unschedulable state.
6647
+ * - During the operation, the system sets the current nodes to the unschedulable state.
6640
6648
  * - Only worker nodes are removed. Master nodes are not removed.
6641
- * - Even if you choose to release nodes (by setting `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must first [change their billing method to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1) and then release them in the [ECS console](https://ecs.console.aliyun.com/).
6649
+ * - Even if you choose to release nodes (that is, set `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must remove them first and then release them in the [ECS console](https://ecs.console.aliyun.com/).
6642
6650
  *
6643
6651
  * @param tmpReq - RemoveNodePoolNodesRequest
6644
6652
  * @param headers - map
@@ -6666,6 +6674,10 @@ export default class Client extends OpenApi {
6666
6674
  query["drain_node"] = request.drainNode;
6667
6675
  }
6668
6676
 
6677
+ if (!$dara.isNull(request.drainTimeoutSeconds)) {
6678
+ query["drain_timeout_seconds"] = request.drainTimeoutSeconds;
6679
+ }
6680
+
6669
6681
  if (!$dara.isNull(request.instanceIdsShrink)) {
6670
6682
  query["instance_ids"] = request.instanceIdsShrink;
6671
6683
  }
@@ -6697,14 +6709,14 @@ export default class Client extends OpenApi {
6697
6709
  }
6698
6710
 
6699
6711
  /**
6700
- * Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated ECS instances and whether to automatically drain the nodes. Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours and back up your data in advance.
6712
+ * Removes nodes from a node pool in a cluster and adjusts the expected number of nodes when the nodes are no longer needed. When removing nodes, you can specify whether to release the associated Elastic Compute Service (ECS) instances and whether to automatically drain the nodes. Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours and back up your data in advance.
6701
6713
  *
6702
6714
  * @remarks
6703
- * - Removing nodes involves pod migration and may affect your services. Perform this operation during off-peak hours.
6715
+ * - Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours.
6704
6716
  * - Unexpected risks may occur during the operation. Back up your data in advance.
6705
- * - During the operation, the system sets the nodes to the unschedulable state.
6717
+ * - During the operation, the system sets the current nodes to the unschedulable state.
6706
6718
  * - Only worker nodes are removed. Master nodes are not removed.
6707
- * - Even if you choose to release nodes (by setting `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must first [change their billing method to pay-as-you-go](https://www.alibabacloud.com/help/en/ecs/change-the-billing-method-of-an-instance-from-subscription-to-pay-as-you-go-1) and then release them in the [ECS console](https://ecs.console.aliyun.com/).
6719
+ * - Even if you choose to release nodes (that is, set `release_node` to `true`), subscription nodes are not released. To release subscription nodes, you must remove them first and then release them in the [ECS console](https://ecs.console.aliyun.com/).
6708
6720
  *
6709
6721
  * @param request - RemoveNodePoolNodesRequest
6710
6722
  * @returns RemoveNodePoolNodesResponse
@@ -7572,7 +7584,7 @@ export default class Client extends OpenApi {
7572
7584
  }
7573
7585
 
7574
7586
  /**
7575
- * Enables or disables the audit log feature for a specified ACK cluster, or updates the audit log configurations to record requests to the Kubernetes API and the corresponding results for tracing cluster operation history and troubleshooting cluster faults.
7587
+ * Updates the audit log configuration of a specified ACK cluster. You can call this operation to enable or disable the audit log feature, or update the audit log configuration to record requests to the Kubernetes API and their results for tracing cluster operation history and troubleshooting cluster faults.
7576
7588
  *
7577
7589
  * @remarks
7578
7590
  * Before you call this operation, make sure that you fully understand the billing methods and pricing of <props="china">[Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls)<props="intl">[Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing).
@@ -7612,7 +7624,7 @@ export default class Client extends OpenApi {
7612
7624
  }
7613
7625
 
7614
7626
  /**
7615
- * Enables or disables the audit log feature for a specified ACK cluster, or updates the audit log configurations to record requests to the Kubernetes API and the corresponding results for tracing cluster operation history and troubleshooting cluster faults.
7627
+ * Updates the audit log configuration of a specified ACK cluster. You can call this operation to enable or disable the audit log feature, or update the audit log configuration to record requests to the Kubernetes API and their results for tracing cluster operation history and troubleshooting cluster faults.
7616
7628
  *
7617
7629
  * @remarks
7618
7630
  * Before you call this operation, make sure that you fully understand the billing methods and pricing of <props="china">[Simple Log Service](https://www.aliyun.com/price/product#/sls/detail/sls)<props="intl">[Simple Log Service](https://www.alibabacloud.com/product/log-service/pricing).
@@ -8160,10 +8172,10 @@ export default class Client extends OpenApi {
8160
8172
  }
8161
8173
 
8162
8174
  /**
8163
- * Updates the Role-Based Access Control (RBAC) access permissions of a Resource Access Management (RAM) user or RAM role in an ACK cluster. By default, RAM users, RAM roles, and users other than the cluster creator do not have any RBAC access permissions in the cluster. You can invoke the UpdateUserPermissions operation to update the RBAC access permissions of a RAM user or RAM role, including the accessible resources, the scope of the permissions, and the preset role types, to improve secure access control in cluster management.
8175
+ * Updates the RBAC access permissions of a Resource Access Management (RAM) user or RAM role in an ACK cluster. By default, RAM users and RAM roles other than the cluster creator do not have any RBAC access permissions in the cluster. You can invoke the UpdateUserPermissions operation to update the RBAC access permissions of a RAM user or role, including the accessible resources, the scope of the permissions, and the preset role types, to improve secure access control in cluster management.
8164
8176
  *
8165
8177
  * @remarks
8166
- * You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using a full update or an incremental update. A full update overwrites the existing cluster permissions of the target RAM user or RAM role. The request must include all permission configurations that you want to grant to the target RAM user or RAM role. An incremental update includes add and delete operations. It only modifies the permissions based on the cluster authorization information included in the request and does not affect other cluster permissions of the RAM user or RAM role.
8178
+ * You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using full update or incremental update. A full update overwrites the existing cluster permissions of the target RAM user or RAM role. The request must include all permission configurations that you want to grant to the target RAM user or RAM role. An incremental update includes add and delete operations. It only modifies the permissions based on the cluster authorization information included in the request and does not affect other cluster permissions of the RAM user or RAM role.
8167
8179
  *
8168
8180
  * @param request - UpdateUserPermissionsRequest
8169
8181
  * @param headers - map
@@ -8197,10 +8209,10 @@ export default class Client extends OpenApi {
8197
8209
  }
8198
8210
 
8199
8211
  /**
8200
- * Updates the Role-Based Access Control (RBAC) access permissions of a Resource Access Management (RAM) user or RAM role in an ACK cluster. By default, RAM users, RAM roles, and users other than the cluster creator do not have any RBAC access permissions in the cluster. You can invoke the UpdateUserPermissions operation to update the RBAC access permissions of a RAM user or RAM role, including the accessible resources, the scope of the permissions, and the preset role types, to improve secure access control in cluster management.
8212
+ * Updates the RBAC access permissions of a Resource Access Management (RAM) user or RAM role in an ACK cluster. By default, RAM users and RAM roles other than the cluster creator do not have any RBAC access permissions in the cluster. You can invoke the UpdateUserPermissions operation to update the RBAC access permissions of a RAM user or role, including the accessible resources, the scope of the permissions, and the preset role types, to improve secure access control in cluster management.
8201
8213
  *
8202
8214
  * @remarks
8203
- * You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using a full update or an incremental update. A full update overwrites the existing cluster permissions of the target RAM user or RAM role. The request must include all permission configurations that you want to grant to the target RAM user or RAM role. An incremental update includes add and delete operations. It only modifies the permissions based on the cluster authorization information included in the request and does not affect other cluster permissions of the RAM user or RAM role.
8215
+ * You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using full update or incremental update. A full update overwrites the existing cluster permissions of the target RAM user or RAM role. The request must include all permission configurations that you want to grant to the target RAM user or RAM role. An incremental update includes add and delete operations. It only modifies the permissions based on the cluster authorization information included in the request and does not affect other cluster permissions of the RAM user or RAM role.
8204
8216
  *
8205
8217
  * @param request - UpdateUserPermissionsRequest
8206
8218
  * @returns UpdateUserPermissionsResponse
@@ -5,20 +5,10 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class AttachInstancesToNodePoolRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Specifies whether to store container data and images on data cloud disks. Valid values:
8
+ * **[Deprecated]** Use `format_disk_option` instead.
9
9
  *
10
- * - `true`: Stores container data and images on data cloud disks.
11
- *
12
- * - `false`: Does not store container data and images on data cloud disks.
13
- *
14
- * Default value: `false`.
15
- *
16
- *
17
- * Data cloud disk mounting rules:
18
- *
19
- * - If the ECS instance has data cloud disks mounted and the file system of the last data cloud disk is not initialized, the system automatically formats the data cloud disk to EXT4 to store the /var/lib/docker and /var/lib/kubelet directories.
20
- * - If the ECS instance does not have data cloud disks mounted, no new data cloud disks are mounted.
21
- * > If you choose to store data on data cloud disks and the ECS instance already has data cloud disks mounted, the existing data on the data cloud disks will be lost. Back up your data in advance.
10
+ * - `true`: Equivalent to setting `format_disk_option` to `DataDisk`.
11
+ * - `false`: Equivalent to setting `format_disk_option` to `SystemDisk`.
22
12
  *
23
13
  * @example
24
14
  * false
@@ -6,7 +6,7 @@ export class CleanClusterUserPermissionsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
8
  * Specifies whether to force delete the specified KubeConfig. Valid values:
9
- * - false (default): Before deleting the KubeConfig, the system checks whether there are cluster access records within the last seven days. If such records exist or cannot be found, the deletion is not allowed.
9
+ * - false (default): Checks whether cluster access records exist within the last seven days before deleting the KubeConfig. If such records exist or cannot be found, the deletion is not allowed.
10
10
  * - true: Force deletes the KubeConfig without checking cluster access records.
11
11
  *
12
12
  * @example
@@ -5,13 +5,13 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CleanUserPermissionsRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The list of cluster IDs. If you specify this list, only the KubeConfig credentials and RBAC permissions of the specified user in the listed clusters are cleared.
8
+ * The list of cluster IDs. If you specify this list, only the KubeConfig credentials and RBAC permissions of the user in the specified clusters are cleared.
9
9
  */
10
10
  clusterIds?: string[];
11
11
  /**
12
12
  * @remarks
13
13
  * Specifies whether to force delete the specified KubeConfig. Valid values:
14
- * - false (default): Checks whether there are cluster access records within the last seven days before deleting the KubeConfig. If such records exist or cannot be found, the deletion is not allowed.
14
+ * - false (default): Before deleting the KubeConfig, the system checks whether there are cluster access records within the last seven days. If such records exist or cannot be found, the deletion is not allowed.
15
15
  * - true: Force deletes the KubeConfig without checking cluster access records.
16
16
  *
17
17
  * @example
@@ -5,13 +5,13 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CleanUserPermissionsShrinkRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The list of cluster IDs. If you specify this list, only the KubeConfig credentials and RBAC permissions of the specified user in the listed clusters are cleared.
8
+ * The list of cluster IDs. If you specify this list, only the KubeConfig credentials and RBAC permissions of the user in the specified clusters are cleared.
9
9
  */
10
10
  clusterIdsShrink?: string;
11
11
  /**
12
12
  * @remarks
13
13
  * Specifies whether to force delete the specified KubeConfig. Valid values:
14
- * - false (default): Checks whether there are cluster access records within the last seven days before deleting the KubeConfig. If such records exist or cannot be found, the deletion is not allowed.
14
+ * - false (default): Before deleting the KubeConfig, the system checks whether there are cluster access records within the last seven days. If such records exist or cannot be found, the deletion is not allowed.
15
15
  * - true: Force deletes the KubeConfig without checking cluster access records.
16
16
  *
17
17
  * @example