@alicloud/cs20151215 6.6.5 → 6.7.0

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 (38) hide show
  1. package/dist/client.d.ts +26 -8
  2. package/dist/client.js +53 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateClusterNodePoolRequest.d.ts +396 -287
  5. package/dist/models/CreateClusterNodePoolRequest.js.map +1 -1
  6. package/dist/models/CreateClusterNodePoolResponseBody.d.ts +1 -1
  7. package/dist/models/DescribeClusterNodePoolDetailResponseBody.d.ts +241 -244
  8. package/dist/models/DescribeClusterNodePoolDetailResponseBody.js.map +1 -1
  9. package/dist/models/DescribeClusterNodePoolsRequest.d.ts +1 -1
  10. package/dist/models/DescribeClusterNodePoolsResponseBody.d.ts +254 -254
  11. package/dist/models/ModifyClusterNodePoolRequest.d.ts +225 -218
  12. package/dist/models/ModifyClusterNodePoolRequest.js.map +1 -1
  13. package/dist/models/Nodepool.d.ts +183 -183
  14. package/dist/models/RunNodeOperationRequest.d.ts +22 -0
  15. package/dist/models/RunNodeOperationRequest.js +63 -0
  16. package/dist/models/RunNodeOperationRequest.js.map +1 -0
  17. package/dist/models/RunNodeOperationResponse.d.ts +19 -0
  18. package/dist/models/RunNodeOperationResponse.js +69 -0
  19. package/dist/models/RunNodeOperationResponse.js.map +1 -0
  20. package/dist/models/RunNodeOperationResponseBody.d.ts +28 -0
  21. package/dist/models/RunNodeOperationResponseBody.js +62 -0
  22. package/dist/models/RunNodeOperationResponseBody.js.map +1 -0
  23. package/dist/models/model.d.ts +3 -0
  24. package/dist/models/model.js +8 -2
  25. package/dist/models/model.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/client.ts +57 -8
  28. package/src/models/CreateClusterNodePoolRequest.ts +397 -288
  29. package/src/models/CreateClusterNodePoolResponseBody.ts +1 -1
  30. package/src/models/DescribeClusterNodePoolDetailResponseBody.ts +241 -244
  31. package/src/models/DescribeClusterNodePoolsRequest.ts +1 -1
  32. package/src/models/DescribeClusterNodePoolsResponseBody.ts +254 -254
  33. package/src/models/ModifyClusterNodePoolRequest.ts +225 -218
  34. package/src/models/Nodepool.ts +183 -183
  35. package/src/models/RunNodeOperationRequest.ts +40 -0
  36. package/src/models/RunNodeOperationResponse.ts +40 -0
  37. package/src/models/RunNodeOperationResponseBody.ts +45 -0
  38. package/src/models/model.ts +3 -0
package/dist/client.d.ts CHANGED
@@ -328,7 +328,7 @@ export default class Client extends OpenApi {
328
328
  */
329
329
  createClusterInspectConfig(clusterId: string, request: $_model.CreateClusterInspectConfigRequest): Promise<$_model.CreateClusterInspectConfigResponse>;
330
330
  /**
331
- * A node pool is a logical collection of nodes that share the same properties, enabling unified management and O&M operations such as node upgrades and Auto Scaling. You can further leverage the automated O&M capabilities of node pools to reduce operational costs—for example, by automatically patching OS CVE vulnerabilities, automatically recovering failed nodes, and automatically upgrading kubelet and containerd versions. You can invoke CreateClusterNodePool to create a node pool for a cluster.
331
+ * A node pool is a logical group of nodes that share the same properties. Node pools allow you to manage nodes and perform operations and maintenance (O&M) tasks, such as upgrades and auto scaling, on them as a group. You can use the automated O&M features of a node pool to automatically fix operating system (OS) Common Vulnerabilities and Exposures (CVE) vulnerabilities, recover failed nodes, and upgrade kubelet and containerd versions. This helps reduce your O&M costs. Call the CreateClusterNodePool operation to create a node pool for a cluster.
332
332
  *
333
333
  * @param request - CreateClusterNodePoolRequest
334
334
  * @param headers - map
@@ -339,7 +339,7 @@ export default class Client extends OpenApi {
339
339
  [key: string]: string;
340
340
  }, runtime: $dara.RuntimeOptions): Promise<$_model.CreateClusterNodePoolResponse>;
341
341
  /**
342
- * A node pool is a logical collection of nodes that share the same properties, enabling unified management and O&M operations such as node upgrades and Auto Scaling. You can further leverage the automated O&M capabilities of node pools to reduce operational costs—for example, by automatically patching OS CVE vulnerabilities, automatically recovering failed nodes, and automatically upgrading kubelet and containerd versions. You can invoke CreateClusterNodePool to create a node pool for a cluster.
342
+ * A node pool is a logical group of nodes that share the same properties. Node pools allow you to manage nodes and perform operations and maintenance (O&M) tasks, such as upgrades and auto scaling, on them as a group. You can use the automated O&M features of a node pool to automatically fix operating system (OS) Common Vulnerabilities and Exposures (CVE) vulnerabilities, recover failed nodes, and upgrade kubelet and containerd versions. This helps reduce your O&M costs. Call the CreateClusterNodePool operation to create a node pool for a cluster.
343
343
  *
344
344
  * @param request - CreateClusterNodePoolRequest
345
345
  * @returns CreateClusterNodePoolResponse
@@ -885,7 +885,7 @@ export default class Client extends OpenApi {
885
885
  */
886
886
  describeClusterLogs(ClusterId: string): Promise<$_model.DescribeClusterLogsResponse>;
887
887
  /**
888
- * You can call the DescribeClusterNodePoolDetail operation with a node pool ID to query the configuration of a specific node pool in a cluster.
888
+ * You can call the DescribeClusterNodePoolDetail operation to query the details of a node pool in a cluster.
889
889
  *
890
890
  * @param headers - map
891
891
  * @param runtime - runtime options for this request RuntimeOptions
@@ -895,12 +895,12 @@ export default class Client extends OpenApi {
895
895
  [key: string]: string;
896
896
  }, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeClusterNodePoolDetailResponse>;
897
897
  /**
898
- * You can call the DescribeClusterNodePoolDetail operation with a node pool ID to query the configuration of a specific node pool in a cluster.
898
+ * You can call the DescribeClusterNodePoolDetail operation to query the details of a node pool in a cluster.
899
899
  * @returns DescribeClusterNodePoolDetailResponse
900
900
  */
901
901
  describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<$_model.DescribeClusterNodePoolDetailResponse>;
902
902
  /**
903
- * Lists all node pools in a cluster.
903
+ * Queries the node pools in a cluster.
904
904
  *
905
905
  * @param request - DescribeClusterNodePoolsRequest
906
906
  * @param headers - map
@@ -911,7 +911,7 @@ export default class Client extends OpenApi {
911
911
  [key: string]: string;
912
912
  }, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeClusterNodePoolsResponse>;
913
913
  /**
914
- * Lists all node pools in a cluster.
914
+ * Queries the node pools in a cluster.
915
915
  *
916
916
  * @param request - DescribeClusterNodePoolsRequest
917
917
  * @returns DescribeClusterNodePoolsResponse
@@ -2017,7 +2017,7 @@ export default class Client extends OpenApi {
2017
2017
  */
2018
2018
  modifyClusterAddon(clusterId: string, componentId: string, request: $_model.ModifyClusterAddonRequest): Promise<$_model.ModifyClusterAddonResponse>;
2019
2019
  /**
2020
- * You can call the ModifyClusterNodePool API to update the configuration of a node pool by specifying its node pool ID.
2020
+ * Call the ModifyClusterNodePool operation to update the configurations of a node pool.
2021
2021
  *
2022
2022
  * @param request - ModifyClusterNodePoolRequest
2023
2023
  * @param headers - map
@@ -2028,7 +2028,7 @@ export default class Client extends OpenApi {
2028
2028
  [key: string]: string;
2029
2029
  }, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyClusterNodePoolResponse>;
2030
2030
  /**
2031
- * You can call the ModifyClusterNodePool API to update the configuration of a node pool by specifying its node pool ID.
2031
+ * Call the ModifyClusterNodePool operation to update the configurations of a node pool.
2032
2032
  *
2033
2033
  * @param request - ModifyClusterNodePoolRequest
2034
2034
  * @returns ModifyClusterNodePoolResponse
@@ -2355,6 +2355,24 @@ export default class Client extends OpenApi {
2355
2355
  * @returns RunClusterInspectResponse
2356
2356
  */
2357
2357
  runClusterInspect(clusterId: string, request: $_model.RunClusterInspectRequest): Promise<$_model.RunClusterInspectResponse>;
2358
+ /**
2359
+ * 执行节点上的运维操作
2360
+ *
2361
+ * @param request - RunNodeOperationRequest
2362
+ * @param headers - map
2363
+ * @param runtime - runtime options for this request RuntimeOptions
2364
+ * @returns RunNodeOperationResponse
2365
+ */
2366
+ runNodeOperationWithOptions(clusterId: string, nodepoolId: string, nodeName: string, request: $_model.RunNodeOperationRequest, headers: {
2367
+ [key: string]: string;
2368
+ }, runtime: $dara.RuntimeOptions): Promise<$_model.RunNodeOperationResponse>;
2369
+ /**
2370
+ * 执行节点上的运维操作
2371
+ *
2372
+ * @param request - RunNodeOperationRequest
2373
+ * @returns RunNodeOperationResponse
2374
+ */
2375
+ runNodeOperation(clusterId: string, nodepoolId: string, nodeName: string, request: $_model.RunNodeOperationRequest): Promise<$_model.RunNodeOperationResponse>;
2358
2376
  /**
2359
2377
  * Scales out a node pool.
2360
2378
  *
package/dist/client.js CHANGED
@@ -1167,7 +1167,7 @@ class Client extends openapi_core_1.default {
1167
1167
  return await this.createClusterInspectConfigWithOptions(clusterId, request, headers, runtime);
1168
1168
  }
1169
1169
  /**
1170
- * A node pool is a logical collection of nodes that share the same properties, enabling unified management and O&M operations such as node upgrades and Auto Scaling. You can further leverage the automated O&M capabilities of node pools to reduce operational costs—for example, by automatically patching OS CVE vulnerabilities, automatically recovering failed nodes, and automatically upgrading kubelet and containerd versions. You can invoke CreateClusterNodePool to create a node pool for a cluster.
1170
+ * A node pool is a logical group of nodes that share the same properties. Node pools allow you to manage nodes and perform operations and maintenance (O&M) tasks, such as upgrades and auto scaling, on them as a group. You can use the automated O&M features of a node pool to automatically fix operating system (OS) Common Vulnerabilities and Exposures (CVE) vulnerabilities, recover failed nodes, and upgrade kubelet and containerd versions. This helps reduce your O&M costs. Call the CreateClusterNodePool operation to create a node pool for a cluster.
1171
1171
  *
1172
1172
  * @param request - CreateClusterNodePoolRequest
1173
1173
  * @param headers - map
@@ -1243,7 +1243,7 @@ class Client extends openapi_core_1.default {
1243
1243
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateClusterNodePoolResponse({}));
1244
1244
  }
1245
1245
  /**
1246
- * A node pool is a logical collection of nodes that share the same properties, enabling unified management and O&M operations such as node upgrades and Auto Scaling. You can further leverage the automated O&M capabilities of node pools to reduce operational costs—for example, by automatically patching OS CVE vulnerabilities, automatically recovering failed nodes, and automatically upgrading kubelet and containerd versions. You can invoke CreateClusterNodePool to create a node pool for a cluster.
1246
+ * A node pool is a logical group of nodes that share the same properties. Node pools allow you to manage nodes and perform operations and maintenance (O&M) tasks, such as upgrades and auto scaling, on them as a group. You can use the automated O&M features of a node pool to automatically fix operating system (OS) Common Vulnerabilities and Exposures (CVE) vulnerabilities, recover failed nodes, and upgrade kubelet and containerd versions. This helps reduce your O&M costs. Call the CreateClusterNodePool operation to create a node pool for a cluster.
1247
1247
  *
1248
1248
  * @param request - CreateClusterNodePoolRequest
1249
1249
  * @returns CreateClusterNodePoolResponse
@@ -2520,7 +2520,7 @@ class Client extends openapi_core_1.default {
2520
2520
  return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
2521
2521
  }
2522
2522
  /**
2523
- * You can call the DescribeClusterNodePoolDetail operation with a node pool ID to query the configuration of a specific node pool in a cluster.
2523
+ * You can call the DescribeClusterNodePoolDetail operation to query the details of a node pool in a cluster.
2524
2524
  *
2525
2525
  * @param headers - map
2526
2526
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2544,7 +2544,7 @@ class Client extends openapi_core_1.default {
2544
2544
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClusterNodePoolDetailResponse({}));
2545
2545
  }
2546
2546
  /**
2547
- * You can call the DescribeClusterNodePoolDetail operation with a node pool ID to query the configuration of a specific node pool in a cluster.
2547
+ * You can call the DescribeClusterNodePoolDetail operation to query the details of a node pool in a cluster.
2548
2548
  * @returns DescribeClusterNodePoolDetailResponse
2549
2549
  */
2550
2550
  async describeClusterNodePoolDetail(ClusterId, NodepoolId) {
@@ -2553,7 +2553,7 @@ class Client extends openapi_core_1.default {
2553
2553
  return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
2554
2554
  }
2555
2555
  /**
2556
- * Lists all node pools in a cluster.
2556
+ * Queries the node pools in a cluster.
2557
2557
  *
2558
2558
  * @param request - DescribeClusterNodePoolsRequest
2559
2559
  * @param headers - map
@@ -2584,7 +2584,7 @@ class Client extends openapi_core_1.default {
2584
2584
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClusterNodePoolsResponse({}));
2585
2585
  }
2586
2586
  /**
2587
- * Lists all node pools in a cluster.
2587
+ * Queries the node pools in a cluster.
2588
2588
  *
2589
2589
  * @param request - DescribeClusterNodePoolsRequest
2590
2590
  * @returns DescribeClusterNodePoolsResponse
@@ -5271,7 +5271,7 @@ class Client extends openapi_core_1.default {
5271
5271
  return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
5272
5272
  }
5273
5273
  /**
5274
- * You can call the ModifyClusterNodePool API to update the configuration of a node pool by specifying its node pool ID.
5274
+ * Call the ModifyClusterNodePool operation to update the configurations of a node pool.
5275
5275
  *
5276
5276
  * @param request - ModifyClusterNodePoolRequest
5277
5277
  * @param headers - map
@@ -5323,7 +5323,7 @@ class Client extends openapi_core_1.default {
5323
5323
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyClusterNodePoolResponse({}));
5324
5324
  }
5325
5325
  /**
5326
- * You can call the ModifyClusterNodePool API to update the configuration of a node pool by specifying its node pool ID.
5326
+ * Call the ModifyClusterNodePool operation to update the configurations of a node pool.
5327
5327
  *
5328
5328
  * @param request - ModifyClusterNodePoolRequest
5329
5329
  * @returns ModifyClusterNodePoolResponse
@@ -6056,6 +6056,51 @@ class Client extends openapi_core_1.default {
6056
6056
  let headers = {};
6057
6057
  return await this.runClusterInspectWithOptions(clusterId, request, headers, runtime);
6058
6058
  }
6059
+ /**
6060
+ * 执行节点上的运维操作
6061
+ *
6062
+ * @param request - RunNodeOperationRequest
6063
+ * @param headers - map
6064
+ * @param runtime - runtime options for this request RuntimeOptions
6065
+ * @returns RunNodeOperationResponse
6066
+ */
6067
+ async runNodeOperationWithOptions(clusterId, nodepoolId, nodeName, request, headers, runtime) {
6068
+ request.validate();
6069
+ let body = {};
6070
+ if (!$dara.isNull(request.operationAction)) {
6071
+ body["operationAction"] = request.operationAction;
6072
+ }
6073
+ if (!$dara.isNull(request.operationArgs)) {
6074
+ body["operationArgs"] = request.operationArgs;
6075
+ }
6076
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6077
+ headers: headers,
6078
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
6079
+ });
6080
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6081
+ action: "RunNodeOperation",
6082
+ version: "2015-12-15",
6083
+ protocol: "HTTPS",
6084
+ pathname: `/clusters/${$dara.URL.percentEncode(clusterId)}/nodepools/${$dara.URL.percentEncode(nodepoolId)}/nodes/${$dara.URL.percentEncode(nodeName)}/operation`,
6085
+ method: "POST",
6086
+ authType: "AK",
6087
+ style: "ROA",
6088
+ reqBodyType: "json",
6089
+ bodyType: "json",
6090
+ });
6091
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.RunNodeOperationResponse({}));
6092
+ }
6093
+ /**
6094
+ * 执行节点上的运维操作
6095
+ *
6096
+ * @param request - RunNodeOperationRequest
6097
+ * @returns RunNodeOperationResponse
6098
+ */
6099
+ async runNodeOperation(clusterId, nodepoolId, nodeName, request) {
6100
+ let runtime = new $dara.RuntimeOptions({});
6101
+ let headers = {};
6102
+ return await this.runNodeOperationWithOptions(clusterId, nodepoolId, nodeName, request, headers, runtime);
6103
+ }
6059
6104
  /**
6060
6105
  * Scales out a node pool.
6061
6106
  *