@alicloud/cs20151215 6.5.2 → 6.6.1

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 (130) hide show
  1. package/dist/client.d.ts +48 -30
  2. package/dist/client.js +99 -30
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/Addon.d.ts +16 -1
  5. package/dist/models/Addon.js.map +1 -1
  6. package/dist/models/ContainerdConfig.d.ts +8 -0
  7. package/dist/models/ContainerdConfig.js.map +1 -1
  8. package/dist/models/CreateAutoRepairPolicyRequest.d.ts +0 -51
  9. package/dist/models/CreateAutoRepairPolicyRequest.js +1 -55
  10. package/dist/models/CreateAutoRepairPolicyRequest.js.map +1 -1
  11. package/dist/models/CreateTemplateResponseBody.d.ts +1 -1
  12. package/dist/models/DataDisk.d.ts +71 -0
  13. package/dist/models/DataDisk.js.map +1 -1
  14. package/dist/models/DeleteAlertContactResponse.d.ts +0 -24
  15. package/dist/models/DeleteAlertContactResponse.js.map +1 -1
  16. package/dist/models/DescribeAutoRepairPolicyResponseBody.d.ts +1 -52
  17. package/dist/models/DescribeAutoRepairPolicyResponseBody.js +2 -56
  18. package/dist/models/DescribeAutoRepairPolicyResponseBody.js.map +1 -1
  19. package/dist/models/DescribeClusterAddonMetadataRequest.d.ts +7 -0
  20. package/dist/models/DescribeClusterAddonMetadataRequest.js.map +1 -1
  21. package/dist/models/DescribeClusterEventsRequest.d.ts +2 -0
  22. package/dist/models/DescribeClusterEventsRequest.js +4 -0
  23. package/dist/models/DescribeClusterEventsRequest.js.map +1 -1
  24. package/dist/models/DescribeClusterEventsResponseBody.d.ts +1 -0
  25. package/dist/models/DescribeClusterEventsResponseBody.js +2 -0
  26. package/dist/models/DescribeClusterEventsResponseBody.js.map +1 -1
  27. package/dist/models/DescribeClusterTasksRequest.d.ts +2 -0
  28. package/dist/models/DescribeClusterTasksRequest.js +4 -0
  29. package/dist/models/DescribeClusterTasksRequest.js.map +1 -1
  30. package/dist/models/DescribeClusterTasksResponseBody.d.ts +1 -0
  31. package/dist/models/DescribeClusterTasksResponseBody.js +2 -0
  32. package/dist/models/DescribeClusterTasksResponseBody.js.map +1 -1
  33. package/dist/models/DescribeEventsForRegionRequest.d.ts +2 -0
  34. package/dist/models/DescribeEventsForRegionRequest.js +4 -0
  35. package/dist/models/DescribeEventsForRegionRequest.js.map +1 -1
  36. package/dist/models/DescribeEventsForRegionResponseBody.d.ts +1 -0
  37. package/dist/models/DescribeEventsForRegionResponseBody.js +2 -0
  38. package/dist/models/DescribeEventsForRegionResponseBody.js.map +1 -1
  39. package/dist/models/DescribeEventsRequest.d.ts +2 -0
  40. package/dist/models/DescribeEventsRequest.js +4 -0
  41. package/dist/models/DescribeEventsRequest.js.map +1 -1
  42. package/dist/models/DescribeEventsResponseBody.d.ts +8 -4
  43. package/dist/models/DescribeEventsResponseBody.js +2 -0
  44. package/dist/models/DescribeEventsResponseBody.js.map +1 -1
  45. package/dist/models/DescribeRegionsRequest.d.ts +27 -0
  46. package/dist/models/DescribeRegionsRequest.js.map +1 -1
  47. package/dist/models/DescribeRegionsResponseBody.d.ts +17 -0
  48. package/dist/models/DescribeRegionsResponseBody.js.map +1 -1
  49. package/dist/models/InstallNodePoolComponentsRequest.d.ts +34 -0
  50. package/dist/models/InstallNodePoolComponentsRequest.js.map +1 -1
  51. package/dist/models/InstallNodePoolComponentsResponseBody.d.ts +9 -0
  52. package/dist/models/InstallNodePoolComponentsResponseBody.js.map +1 -1
  53. package/dist/models/InstancePatterns.d.ts +77 -0
  54. package/dist/models/InstancePatterns.js.map +1 -1
  55. package/dist/models/KubeletConfig.d.ts +127 -0
  56. package/dist/models/KubeletConfig.js.map +1 -1
  57. package/dist/models/ListAutoRepairPoliciesResponseBody.d.ts +1 -52
  58. package/dist/models/ListAutoRepairPoliciesResponseBody.js +2 -56
  59. package/dist/models/ListAutoRepairPoliciesResponseBody.js.map +1 -1
  60. package/dist/models/ListClusterAddonInstanceResourcesResponseBody.d.ts +35 -0
  61. package/dist/models/ListClusterAddonInstanceResourcesResponseBody.js.map +1 -1
  62. package/dist/models/ListTagResourcesResponseBody.d.ts +3 -3
  63. package/dist/models/MaintenanceWindow.d.ts +31 -1
  64. package/dist/models/MaintenanceWindow.js.map +1 -1
  65. package/dist/models/ModifyAutoRepairPolicyRequest.d.ts +0 -51
  66. package/dist/models/ModifyAutoRepairPolicyRequest.js +1 -55
  67. package/dist/models/ModifyAutoRepairPolicyRequest.js.map +1 -1
  68. package/dist/models/Nodepool.d.ts +508 -10
  69. package/dist/models/Nodepool.js.map +1 -1
  70. package/dist/models/Runtime.d.ts +14 -0
  71. package/dist/models/Runtime.js.map +1 -1
  72. package/dist/models/Tag.d.ts +6 -0
  73. package/dist/models/Tag.js.map +1 -1
  74. package/dist/models/TagResourcesResponseBody.d.ts +1 -1
  75. package/dist/models/Taint.d.ts +15 -0
  76. package/dist/models/Taint.js.map +1 -1
  77. package/dist/models/UntagResourcesResponseBody.d.ts +1 -1
  78. package/dist/models/UpdateKmsencryptionRequest.d.ts +39 -0
  79. package/dist/models/UpdateKmsencryptionRequest.js +60 -0
  80. package/dist/models/UpdateKmsencryptionRequest.js.map +1 -0
  81. package/dist/models/UpdateKmsencryptionResponse.d.ts +17 -0
  82. package/dist/models/UpdateKmsencryptionResponse.js +63 -0
  83. package/dist/models/UpdateKmsencryptionResponse.js.map +1 -0
  84. package/dist/models/UpdateNodePoolComponentRequest.d.ts +35 -0
  85. package/dist/models/UpdateNodePoolComponentRequest.js.map +1 -1
  86. package/dist/models/UpdateNodePoolComponentResponseBody.d.ts +6 -0
  87. package/dist/models/UpdateNodePoolComponentResponseBody.js.map +1 -1
  88. package/dist/models/model.d.ts +2 -8
  89. package/dist/models/model.js +50 -62
  90. package/dist/models/model.js.map +1 -1
  91. package/package.json +1 -1
  92. package/src/client.ts +111 -30
  93. package/src/models/Addon.ts +16 -1
  94. package/src/models/ContainerdConfig.ts +8 -0
  95. package/src/models/CreateAutoRepairPolicyRequest.ts +0 -87
  96. package/src/models/CreateTemplateResponseBody.ts +1 -1
  97. package/src/models/DataDisk.ts +71 -0
  98. package/src/models/DeleteAlertContactResponse.ts +0 -24
  99. package/src/models/DescribeAutoRepairPolicyResponseBody.ts +2 -89
  100. package/src/models/DescribeClusterAddonMetadataRequest.ts +7 -0
  101. package/src/models/DescribeClusterEventsRequest.ts +6 -0
  102. package/src/models/DescribeClusterEventsResponseBody.ts +3 -0
  103. package/src/models/DescribeClusterTasksRequest.ts +6 -0
  104. package/src/models/DescribeClusterTasksResponseBody.ts +3 -0
  105. package/src/models/DescribeEventsForRegionRequest.ts +6 -0
  106. package/src/models/DescribeEventsForRegionResponseBody.ts +3 -0
  107. package/src/models/DescribeEventsRequest.ts +6 -0
  108. package/src/models/DescribeEventsResponseBody.ts +10 -4
  109. package/src/models/DescribeRegionsRequest.ts +27 -0
  110. package/src/models/DescribeRegionsResponseBody.ts +17 -0
  111. package/src/models/InstallNodePoolComponentsRequest.ts +34 -0
  112. package/src/models/InstallNodePoolComponentsResponseBody.ts +9 -0
  113. package/src/models/InstancePatterns.ts +77 -0
  114. package/src/models/KubeletConfig.ts +127 -0
  115. package/src/models/ListAutoRepairPoliciesResponseBody.ts +2 -89
  116. package/src/models/ListClusterAddonInstanceResourcesResponseBody.ts +35 -0
  117. package/src/models/ListTagResourcesResponseBody.ts +3 -3
  118. package/src/models/MaintenanceWindow.ts +31 -1
  119. package/src/models/ModifyAutoRepairPolicyRequest.ts +0 -87
  120. package/src/models/Nodepool.ts +508 -10
  121. package/src/models/Runtime.ts +14 -0
  122. package/src/models/Tag.ts +6 -0
  123. package/src/models/TagResourcesResponseBody.ts +1 -1
  124. package/src/models/Taint.ts +15 -0
  125. package/src/models/UntagResourcesResponseBody.ts +1 -1
  126. package/src/models/UpdateKmsencryptionRequest.ts +54 -0
  127. package/src/models/UpdateKmsencryptionResponse.ts +33 -0
  128. package/src/models/UpdateNodePoolComponentRequest.ts +35 -0
  129. package/src/models/UpdateNodePoolComponentResponseBody.ts +6 -0
  130. package/src/models/model.ts +2 -8
package/dist/client.js CHANGED
@@ -94,7 +94,7 @@ class Client extends openapi_core_1.default {
94
94
  return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
95
95
  }
96
96
  /**
97
- * Adds existing Elastic Compute Service (ECS) instances to a Container Service for Kubernetes (ACK) cluster.
97
+ * Adds existing Elastic Compute Service (ECS) instances to a Container Service for Kubernetes (ACK) cluster. When you need to add an ECS instance as a worker node to an ACK cluster or re-add a worker node to the cluster, you can call this operation.
98
98
  *
99
99
  * @param request - AttachInstancesRequest
100
100
  * @param headers - map
@@ -161,7 +161,7 @@ class Client extends openapi_core_1.default {
161
161
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.AttachInstancesResponse({}));
162
162
  }
163
163
  /**
164
- * Adds existing Elastic Compute Service (ECS) instances to a Container Service for Kubernetes (ACK) cluster.
164
+ * Adds existing Elastic Compute Service (ECS) instances to a Container Service for Kubernetes (ACK) cluster. When you need to add an ECS instance as a worker node to an ACK cluster or re-add a worker node to the cluster, you can call this operation.
165
165
  *
166
166
  * @param request - AttachInstancesRequest
167
167
  * @returns AttachInstancesResponse
@@ -299,7 +299,7 @@ class Client extends openapi_core_1.default {
299
299
  return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
300
300
  }
301
301
  /**
302
- * You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\\\\\\\&M plan.
302
+ * You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\\\\\\\\\\\\\\\&M plan.
303
303
  *
304
304
  * @param headers - map
305
305
  * @param runtime - runtime options for this request RuntimeOptions
@@ -323,7 +323,7 @@ class Client extends openapi_core_1.default {
323
323
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CancelOperationPlanResponse({}));
324
324
  }
325
325
  /**
326
- * You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\\\\\\\&M plan.
326
+ * You can call the CancelOperationPlan operation to cancel a pending auto O\\\\\\\\\\\\\\\\\\\\&M plan.
327
327
  * @returns CancelOperationPlanResponse
328
328
  */
329
329
  async cancelOperationPlan(planId) {
@@ -554,7 +554,7 @@ class Client extends openapi_core_1.default {
554
554
  return await this.cleanUserPermissionsWithOptions(Uid, request, headers, runtime);
555
555
  }
556
556
  /**
557
- * 查询自愈规则
557
+ * Creates an auto-repair policy.
558
558
  *
559
559
  * @param request - CreateAutoRepairPolicyRequest
560
560
  * @param headers - map
@@ -594,7 +594,7 @@ class Client extends openapi_core_1.default {
594
594
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAutoRepairPolicyResponse({}));
595
595
  }
596
596
  /**
597
- * 查询自愈规则
597
+ * Creates an auto-repair policy.
598
598
  *
599
599
  * @param request - CreateAutoRepairPolicyRequest
600
600
  * @returns CreateAutoRepairPolicyResponse
@@ -1151,7 +1151,7 @@ class Client extends openapi_core_1.default {
1151
1151
  return await this.createClusterInspectConfigWithOptions(clusterId, request, headers, runtime);
1152
1152
  }
1153
1153
  /**
1154
- * Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
1154
+ * Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\\\\\\\&M workload.
1155
1155
  *
1156
1156
  * @param request - CreateClusterNodePoolRequest
1157
1157
  * @param headers - map
@@ -1227,7 +1227,7 @@ class Client extends openapi_core_1.default {
1227
1227
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateClusterNodePoolResponse({}));
1228
1228
  }
1229
1229
  /**
1230
- * Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\&M workload.
1230
+ * Creates a node pool for a Container Service for Kubernetes (ACK) cluster. You can use node pools to facilitate node management. For example, you can schedule, configure, or maintain nodes by node pool, and enable auto scaling for a node pool. We recommend that you use a managed node pool, which can help automate specific O\\\\\\\\\\\\&M tasks for nodes, such as Common Vulnerabilities and Exposures (CVE) patching and node repair. This reduces your O\\\\\\\\\\\\&M workload.
1231
1231
  *
1232
1232
  * @param request - CreateClusterNodePoolRequest
1233
1233
  * @returns CreateClusterNodePoolResponse
@@ -1634,7 +1634,7 @@ class Client extends openapi_core_1.default {
1634
1634
  return await this.deleteClusterInspectConfigWithOptions(clusterId, headers, runtime);
1635
1635
  }
1636
1636
  /**
1637
- * null
1637
+ * Deletes unused node pools. Deleting a node pool terminates all pods on its nodes, which triggers pod rescheduling. Insufficient cluster resources may cause scheduling failures and business impact.
1638
1638
  *
1639
1639
  * @param request - DeleteClusterNodepoolRequest
1640
1640
  * @param headers - map
@@ -1665,7 +1665,7 @@ class Client extends openapi_core_1.default {
1665
1665
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteClusterNodepoolResponse({}));
1666
1666
  }
1667
1667
  /**
1668
- * null
1668
+ * Deletes unused node pools. Deleting a node pool terminates all pods on its nodes, which triggers pod rescheduling. Insufficient cluster resources may cause scheduling failures and business impact.
1669
1669
  *
1670
1670
  * @param request - DeleteClusterNodepoolRequest
1671
1671
  * @returns DeleteClusterNodepoolResponse
@@ -2405,6 +2405,12 @@ class Client extends openapi_core_1.default {
2405
2405
  async describeClusterEventsWithOptions(ClusterId, request, headers, runtime) {
2406
2406
  request.validate();
2407
2407
  let query = {};
2408
+ if (!$dara.isNull(request.maxResults)) {
2409
+ query["max_results"] = request.maxResults;
2410
+ }
2411
+ if (!$dara.isNull(request.nextToken)) {
2412
+ query["next_token"] = request.nextToken;
2413
+ }
2408
2414
  if (!$dara.isNull(request.pageNumber)) {
2409
2415
  query["page_number"] = request.pageNumber;
2410
2416
  }
@@ -2657,6 +2663,12 @@ class Client extends openapi_core_1.default {
2657
2663
  async describeClusterTasksWithOptions(clusterId, request, headers, runtime) {
2658
2664
  request.validate();
2659
2665
  let query = {};
2666
+ if (!$dara.isNull(request.maxResults)) {
2667
+ query["max_results"] = request.maxResults;
2668
+ }
2669
+ if (!$dara.isNull(request.nextToken)) {
2670
+ query["next_token"] = request.nextToken;
2671
+ }
2660
2672
  if (!$dara.isNull(request.pageNumber)) {
2661
2673
  query["page_number"] = request.pageNumber;
2662
2674
  }
@@ -2828,7 +2840,7 @@ class Client extends openapi_core_1.default {
2828
2840
  return await this.describeClusterVulsWithOptions(clusterId, headers, runtime);
2829
2841
  }
2830
2842
  /**
2831
- * Queries all the clusters that belong to the current Alibaba Cloud account, including Kubernetes clusters and Swarm clusters.
2843
+ * Queries all existing clusters in ACK, including Kubernetes clusters and Swarm clusters.
2832
2844
  *
2833
2845
  * @deprecated OpenAPI DescribeClusters is deprecated
2834
2846
  *
@@ -2867,7 +2879,7 @@ class Client extends openapi_core_1.default {
2867
2879
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClustersResponse({}));
2868
2880
  }
2869
2881
  /**
2870
- * Queries all the clusters that belong to the current Alibaba Cloud account, including Kubernetes clusters and Swarm clusters.
2882
+ * Queries all existing clusters in ACK, including Kubernetes clusters and Swarm clusters.
2871
2883
  *
2872
2884
  * @deprecated OpenAPI DescribeClusters is deprecated
2873
2885
  *
@@ -3017,6 +3029,12 @@ class Client extends openapi_core_1.default {
3017
3029
  if (!$dara.isNull(request.clusterId)) {
3018
3030
  query["cluster_id"] = request.clusterId;
3019
3031
  }
3032
+ if (!$dara.isNull(request.maxResults)) {
3033
+ query["max_results"] = request.maxResults;
3034
+ }
3035
+ if (!$dara.isNull(request.nextToken)) {
3036
+ query["next_token"] = request.nextToken;
3037
+ }
3020
3038
  if (!$dara.isNull(request.pageNumber)) {
3021
3039
  query["page_number"] = request.pageNumber;
3022
3040
  }
@@ -3068,6 +3086,12 @@ class Client extends openapi_core_1.default {
3068
3086
  if (!$dara.isNull(request.clusterId)) {
3069
3087
  query["cluster_id"] = request.clusterId;
3070
3088
  }
3089
+ if (!$dara.isNull(request.maxResults)) {
3090
+ query["max_results"] = request.maxResults;
3091
+ }
3092
+ if (!$dara.isNull(request.nextToken)) {
3093
+ query["next_token"] = request.nextToken;
3094
+ }
3071
3095
  if (!$dara.isNull(request.pageNumber)) {
3072
3096
  query["page_number"] = request.pageNumber;
3073
3097
  }
@@ -3438,7 +3462,7 @@ class Client extends openapi_core_1.default {
3438
3462
  return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
3439
3463
  }
3440
3464
  /**
3441
- * 查询地域列表
3465
+ * Queries the list of available regions.
3442
3466
  *
3443
3467
  * @param request - DescribeRegionsRequest
3444
3468
  * @param headers - map
@@ -3475,7 +3499,7 @@ class Client extends openapi_core_1.default {
3475
3499
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeRegionsResponse({}));
3476
3500
  }
3477
3501
  /**
3478
- * 查询地域列表
3502
+ * Queries the list of available regions.
3479
3503
  *
3480
3504
  * @param request - DescribeRegionsRequest
3481
3505
  * @returns DescribeRegionsResponse
@@ -4296,7 +4320,7 @@ class Client extends openapi_core_1.default {
4296
4320
  return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
4297
4321
  }
4298
4322
  /**
4299
- * Updates the role-based access control (RBAC) permissions of a Resource Access Management (RAM) user or RAM role. By default, you do not have the RBAC permissions on a Container Service for Kubernetes (ACK) cluster if you are not the cluster owner or you are not using an Alibaba Cloud account. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
4323
+ * By default, RAM users or roles who aren\\"t cluster creators and haven\\"t been granted full cluster permissions have no RBAC permissions in the cluster. You can call this interface to update RBAC access permissions for RAM users/roles, including accessible resources, permission scopes, and preset roles, for enhanced security control on resources in Container Service for Kubernetes (ACK) clusters.
4300
4324
  *
4301
4325
  * @remarks
4302
4326
  * If you use a Resource Access Management (RAM) account to call this operation, make sure it has permissions to modify cluster authorization information for other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
@@ -4327,7 +4351,7 @@ class Client extends openapi_core_1.default {
4327
4351
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GrantPermissionsResponse({}));
4328
4352
  }
4329
4353
  /**
4330
- * Updates the role-based access control (RBAC) permissions of a Resource Access Management (RAM) user or RAM role. By default, you do not have the RBAC permissions on a Container Service for Kubernetes (ACK) cluster if you are not the cluster owner or you are not using an Alibaba Cloud account. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
4354
+ * By default, RAM users or roles who aren\\"t cluster creators and haven\\"t been granted full cluster permissions have no RBAC permissions in the cluster. You can call this interface to update RBAC access permissions for RAM users/roles, including accessible resources, permission scopes, and preset roles, for enhanced security control on resources in Container Service for Kubernetes (ACK) clusters.
4331
4355
  *
4332
4356
  * @remarks
4333
4357
  * If you use a Resource Access Management (RAM) account to call this operation, make sure it has permissions to modify cluster authorization information for other RAM users or RAM roles. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` error code is returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](https://help.aliyun.com/document_detail/119035.html).
@@ -4342,7 +4366,7 @@ class Client extends openapi_core_1.default {
4342
4366
  return await this.grantPermissionsWithOptions(uid, request, headers, runtime);
4343
4367
  }
4344
4368
  /**
4345
- * 为了增强Kubernetes能力,ACK集群支持了多种组件,例如托管的核心组件,应用、日志和监控、网络、存储、安全组件等。您可以调用InstallClusterAddons接口,通过组件名称和版本安装组件。
4369
+ * Installs a component by specifying the name and version of the component. To enhance Kubernetes capabilities, you can install a variety of components in Container Service for Kubernetes (ACK) clusters, such as fully-managed core components and application, logging and monitoring, network, storage, and security group components.
4346
4370
  *
4347
4371
  * @param request - InstallClusterAddonsRequest
4348
4372
  * @param headers - map
@@ -4369,7 +4393,7 @@ class Client extends openapi_core_1.default {
4369
4393
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.InstallClusterAddonsResponse({}));
4370
4394
  }
4371
4395
  /**
4372
- * 为了增强Kubernetes能力,ACK集群支持了多种组件,例如托管的核心组件,应用、日志和监控、网络、存储、安全组件等。您可以调用InstallClusterAddons接口,通过组件名称和版本安装组件。
4396
+ * Installs a component by specifying the name and version of the component. To enhance Kubernetes capabilities, you can install a variety of components in Container Service for Kubernetes (ACK) clusters, such as fully-managed core components and application, logging and monitoring, network, storage, and security group components.
4373
4397
  *
4374
4398
  * @param request - InstallClusterAddonsRequest
4375
4399
  * @returns InstallClusterAddonsResponse
@@ -4380,7 +4404,7 @@ class Client extends openapi_core_1.default {
4380
4404
  return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
4381
4405
  }
4382
4406
  /**
4383
- * 为ACK集群节点池安装节点组件
4407
+ * Installs components onto the nodes within a specified node pool. This API supports custom configurations and allows you to target specific nodes for the installation.
4384
4408
  *
4385
4409
  * @param request - InstallNodePoolComponentsRequest
4386
4410
  * @param headers - map
@@ -4417,7 +4441,7 @@ class Client extends openapi_core_1.default {
4417
4441
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.InstallNodePoolComponentsResponse({}));
4418
4442
  }
4419
4443
  /**
4420
- * 为ACK集群节点池安装节点组件
4444
+ * Installs components onto the nodes within a specified node pool. This API supports custom configurations and allows you to target specific nodes for the installation.
4421
4445
  *
4422
4446
  * @param request - InstallNodePoolComponentsRequest
4423
4447
  * @returns InstallNodePoolComponentsResponse
@@ -4485,7 +4509,7 @@ class Client extends openapi_core_1.default {
4485
4509
  return await this.listAddonsWithOptions(request, headers, runtime);
4486
4510
  }
4487
4511
  /**
4488
- * 查询自愈规则
4512
+ * List auto-repair policies.
4489
4513
  *
4490
4514
  * @param headers - map
4491
4515
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4509,7 +4533,7 @@ class Client extends openapi_core_1.default {
4509
4533
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAutoRepairPoliciesResponse({}));
4510
4534
  }
4511
4535
  /**
4512
- * 查询自愈规则
4536
+ * List auto-repair policies.
4513
4537
  * @returns ListAutoRepairPoliciesResponse
4514
4538
  */
4515
4539
  async listAutoRepairPolicies(clusterId) {
@@ -4518,7 +4542,7 @@ class Client extends openapi_core_1.default {
4518
4542
  return await this.listAutoRepairPoliciesWithOptions(clusterId, headers, runtime);
4519
4543
  }
4520
4544
  /**
4521
- * 获取集群组件实例的资源列表
4545
+ * Queries the list of resources associated with installed cluster add-ons, including Kubernetes resources and Helm release information.
4522
4546
  *
4523
4547
  * @param headers - map
4524
4548
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4542,7 +4566,7 @@ class Client extends openapi_core_1.default {
4542
4566
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListClusterAddonInstanceResourcesResponse({}));
4543
4567
  }
4544
4568
  /**
4545
- * 获取集群组件实例的资源列表
4569
+ * Queries the list of resources associated with installed cluster add-ons, including Kubernetes resources and Helm release information.
4546
4570
  * @returns ListClusterAddonInstanceResourcesResponse
4547
4571
  */
4548
4572
  async listClusterAddonInstanceResources(clusterId, instanceName) {
@@ -6278,7 +6302,7 @@ class Client extends openapi_core_1.default {
6278
6302
  return await this.syncClusterNodePoolWithOptions(ClusterId, headers, runtime);
6279
6303
  }
6280
6304
  /**
6281
- * You can add labels in key-value pairs to clusters. This allows cluster developers or O\\&M engineers to classify and manage clusters in a more flexible manner. This also meets the requirements for monitoring, cost analysis, and tenant isolation. You can call the TagResources operation to add labels to a cluster.
6305
+ * You can add labels in key-value pairs to clusters. This allows cluster developers or O\\\\\\\\\\\\&M engineers to classify and manage clusters in a more flexible manner. This also meets the requirements for monitoring, cost analysis, and tenant isolation. You can call the TagResources operation to add labels to a cluster.
6282
6306
  *
6283
6307
  * @param request - TagResourcesRequest
6284
6308
  * @param headers - map
@@ -6318,7 +6342,7 @@ class Client extends openapi_core_1.default {
6318
6342
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
6319
6343
  }
6320
6344
  /**
6321
- * You can add labels in key-value pairs to clusters. This allows cluster developers or O\\&M engineers to classify and manage clusters in a more flexible manner. This also meets the requirements for monitoring, cost analysis, and tenant isolation. You can call the TagResources operation to add labels to a cluster.
6345
+ * You can add labels in key-value pairs to clusters. This allows cluster developers or O\\\\\\\\\\\\&M engineers to classify and manage clusters in a more flexible manner. This also meets the requirements for monitoring, cost analysis, and tenant isolation. You can call the TagResources operation to add labels to a cluster.
6322
6346
  *
6323
6347
  * @param request - TagResourcesRequest
6324
6348
  * @returns TagResourcesResponse
@@ -6683,7 +6707,52 @@ class Client extends openapi_core_1.default {
6683
6707
  return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
6684
6708
  }
6685
6709
  /**
6686
- * 更新节点组件
6710
+ * Updates the Secret encryption at rest configuration for a specified cluster by cluster ID.
6711
+ *
6712
+ * @param request - UpdateKMSEncryptionRequest
6713
+ * @param headers - map
6714
+ * @param runtime - runtime options for this request RuntimeOptions
6715
+ * @returns UpdateKMSEncryptionResponse
6716
+ */
6717
+ async updateKMSEncryptionWithOptions(ClusterId, request, headers, runtime) {
6718
+ request.validate();
6719
+ let body = {};
6720
+ if (!$dara.isNull(request.disableEncryption)) {
6721
+ body["disable_encryption"] = request.disableEncryption;
6722
+ }
6723
+ if (!$dara.isNull(request.kmsKeyId)) {
6724
+ body["kms_key_id"] = request.kmsKeyId;
6725
+ }
6726
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6727
+ headers: headers,
6728
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6729
+ });
6730
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6731
+ action: "UpdateKMSEncryption",
6732
+ version: "2015-12-15",
6733
+ protocol: "HTTPS",
6734
+ pathname: `/clusters/${$dara.URL.percentEncode(ClusterId)}/kms`,
6735
+ method: "PUT",
6736
+ authType: "AK",
6737
+ style: "ROA",
6738
+ reqBodyType: "json",
6739
+ bodyType: "none",
6740
+ });
6741
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateKMSEncryptionResponse({}));
6742
+ }
6743
+ /**
6744
+ * Updates the Secret encryption at rest configuration for a specified cluster by cluster ID.
6745
+ *
6746
+ * @param request - UpdateKMSEncryptionRequest
6747
+ * @returns UpdateKMSEncryptionResponse
6748
+ */
6749
+ async updateKMSEncryption(ClusterId, request) {
6750
+ let runtime = new $dara.RuntimeOptions({});
6751
+ let headers = {};
6752
+ return await this.updateKMSEncryptionWithOptions(ClusterId, request, headers, runtime);
6753
+ }
6754
+ /**
6755
+ * Updates a specific component within a node pool, such as the kubelet.
6687
6756
  *
6688
6757
  * @param request - UpdateNodePoolComponentRequest
6689
6758
  * @param headers - map
@@ -6729,7 +6798,7 @@ class Client extends openapi_core_1.default {
6729
6798
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateNodePoolComponentResponse({}));
6730
6799
  }
6731
6800
  /**
6732
- * 更新节点组件
6801
+ * Updates a specific component within a node pool, such as the kubelet.
6733
6802
  *
6734
6803
  * @param request - UpdateNodePoolComponentRequest
6735
6804
  * @returns UpdateNodePoolComponentResponse
@@ -6845,7 +6914,7 @@ class Client extends openapi_core_1.default {
6845
6914
  return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
6846
6915
  }
6847
6916
  /**
6848
- * Updates the role-based access control (RBAC) permissions of a Resource Access Management (RAM) user or RAM role. By default, you do not have the RBAC permissions on a Container Service for Kubernetes (ACK) cluster if you are not the cluster owner or you are not using an Alibaba Cloud account. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
6917
+ * In a Container Service for Kubernetes (ACK) cluster, non-cluster creators, Resource Access Management (RAM) users, and RAM roles do not have any Role-Based Access Control (RBAC) permissions in the cluster by default. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
6849
6918
  *
6850
6919
  * @remarks
6851
6920
  * *Precautions**:
@@ -6881,7 +6950,7 @@ class Client extends openapi_core_1.default {
6881
6950
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateUserPermissionsResponse({}));
6882
6951
  }
6883
6952
  /**
6884
- * Updates the role-based access control (RBAC) permissions of a Resource Access Management (RAM) user or RAM role. By default, you do not have the RBAC permissions on a Container Service for Kubernetes (ACK) cluster if you are not the cluster owner or you are not using an Alibaba Cloud account. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
6953
+ * In a Container Service for Kubernetes (ACK) cluster, non-cluster creators, Resource Access Management (RAM) users, and RAM roles do not have any Role-Based Access Control (RBAC) permissions in the cluster by default. You can call this operation to specify the resources that can be accessed, permission scope, and predefined roles. This helps you better manage the access control on resources in ACK clusters.
6885
6954
  *
6886
6955
  * @remarks
6887
6956
  * *Precautions**: