@alicloud/cs20151215 7.2.5 → 7.3.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.
- package/dist/client.d.ts +110 -72
- package/dist/client.js +259 -72
- package/dist/client.js.map +1 -1
- package/dist/models/AttachInstancesToNodePoolRequest.d.ts +3 -13
- package/dist/models/AttachInstancesToNodePoolRequest.js.map +1 -1
- package/dist/models/CleanClusterUserPermissionsRequest.d.ts +1 -1
- package/dist/models/CleanUserPermissionsRequest.d.ts +2 -2
- package/dist/models/CleanUserPermissionsShrinkRequest.d.ts +2 -2
- package/dist/models/CreateClusterRequest.d.ts +305 -392
- package/dist/models/CreateClusterRequest.js.map +1 -1
- package/dist/models/DeleteClusterNodesRequest.d.ts +15 -7
- package/dist/models/DeleteClusterNodesRequest.js +2 -0
- package/dist/models/DeleteClusterNodesRequest.js.map +1 -1
- package/dist/models/DescribeClusterAttachScriptsRequest.d.ts +9 -17
- package/dist/models/DescribeClusterAttachScriptsRequest.js.map +1 -1
- package/dist/models/DescribeClusterDetailResponseBody.d.ts +80 -77
- package/dist/models/DescribeClusterDetailResponseBody.js.map +1 -1
- package/dist/models/DescribeClustersForRegionRequest.d.ts +14 -14
- package/dist/models/DescribeClustersForRegionResponseBody.d.ts +18 -12
- package/dist/models/DescribeClustersForRegionResponseBody.js.map +1 -1
- package/dist/models/DescribeKubernetesVersionMetadataRequest.d.ts +22 -15
- package/dist/models/DescribeKubernetesVersionMetadataRequest.js.map +1 -1
- package/dist/models/DescribeKubernetesVersionMetadataResponse.d.ts +23 -17
- package/dist/models/DescribeKubernetesVersionMetadataResponse.js.map +1 -1
- package/dist/models/InvokeAgentRequest.d.ts +296 -0
- package/dist/models/InvokeAgentRequest.js +279 -0
- package/dist/models/InvokeAgentRequest.js.map +1 -0
- package/dist/models/InvokeAgentResponse.d.ts +21 -0
- package/dist/models/InvokeAgentResponse.js +73 -0
- package/dist/models/InvokeAgentResponse.js.map +1 -0
- package/dist/models/InvokeAgentResponseBody.d.ts +178 -0
- package/dist/models/InvokeAgentResponseBody.js +152 -0
- package/dist/models/InvokeAgentResponseBody.js.map +1 -0
- package/dist/models/ListUserKubeConfigStatesRequest.d.ts +3 -3
- package/dist/models/ListUserKubeConfigStatesResponseBody.d.ts +4 -5
- package/dist/models/ListUserKubeConfigStatesResponseBody.js.map +1 -1
- package/dist/models/ModifyClusterRequest.d.ts +106 -99
- package/dist/models/ModifyClusterRequest.js.map +1 -1
- package/dist/models/ModifyClusterResponseBody.d.ts +2 -2
- package/dist/models/RemoveNodePoolNodesRequest.d.ts +18 -11
- package/dist/models/RemoveNodePoolNodesRequest.js +2 -0
- package/dist/models/RemoveNodePoolNodesRequest.js.map +1 -1
- package/dist/models/RemoveNodePoolNodesShrinkRequest.d.ts +18 -11
- package/dist/models/RemoveNodePoolNodesShrinkRequest.js +2 -0
- package/dist/models/RemoveNodePoolNodesShrinkRequest.js.map +1 -1
- package/dist/models/UpdateClusterAuditLogConfigRequest.d.ts +4 -3
- package/dist/models/UpdateClusterAuditLogConfigRequest.js.map +1 -1
- package/dist/models/UpdateUserPermissionsRequest.d.ts +22 -22
- package/dist/models/UpdateUserPermissionsRequest.js.map +1 -1
- package/dist/models/model.d.ts +12 -0
- package/dist/models/model.js +34 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -1
- package/src/client.ts +249 -72
- package/src/models/AttachInstancesToNodePoolRequest.ts +3 -13
- package/src/models/CleanClusterUserPermissionsRequest.ts +1 -1
- package/src/models/CleanUserPermissionsRequest.ts +2 -2
- package/src/models/CleanUserPermissionsShrinkRequest.ts +2 -2
- package/src/models/CreateClusterRequest.ts +305 -392
- package/src/models/DeleteClusterNodesRequest.ts +17 -7
- package/src/models/DescribeClusterAttachScriptsRequest.ts +9 -17
- package/src/models/DescribeClusterDetailResponseBody.ts +80 -77
- package/src/models/DescribeClustersForRegionRequest.ts +14 -14
- package/src/models/DescribeClustersForRegionResponseBody.ts +18 -12
- package/src/models/DescribeKubernetesVersionMetadataRequest.ts +22 -15
- package/src/models/DescribeKubernetesVersionMetadataResponse.ts +23 -17
- package/src/models/InvokeAgentRequest.ts +461 -0
- package/src/models/InvokeAgentResponse.ts +46 -0
- package/src/models/InvokeAgentResponseBody.ts +263 -0
- package/src/models/ListUserKubeConfigStatesRequest.ts +3 -3
- package/src/models/ListUserKubeConfigStatesResponseBody.ts +4 -5
- package/src/models/ModifyClusterRequest.ts +106 -99
- package/src/models/ModifyClusterResponseBody.ts +2 -2
- package/src/models/RemoveNodePoolNodesRequest.ts +20 -11
- package/src/models/RemoveNodePoolNodesShrinkRequest.ts +20 -11
- package/src/models/UpdateClusterAuditLogConfigRequest.ts +4 -3
- package/src/models/UpdateUserPermissionsRequest.ts +22 -22
- package/src/models/model.ts +12 -0
package/dist/client.js
CHANGED
|
@@ -35,12 +35,33 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
39
|
+
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
40
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
41
|
+
var m = o[Symbol.asyncIterator], i;
|
|
42
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
43
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
44
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
45
|
+
};
|
|
46
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
47
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
48
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
49
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
50
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
51
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
52
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
53
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
54
|
+
function fulfill(value) { resume("next", value); }
|
|
55
|
+
function reject(value) { resume("throw", value); }
|
|
56
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
57
|
+
};
|
|
38
58
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
59
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
60
|
};
|
|
41
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
62
|
// This file is auto-generated, don't edit it
|
|
43
63
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
64
|
+
const gateway_pop_1 = __importDefault(require("@alicloud/gateway-pop"));
|
|
44
65
|
const openapi_core_1 = __importDefault(require("@alicloud/openapi-core"));
|
|
45
66
|
const openapi_core_2 = require("@alicloud/openapi-core");
|
|
46
67
|
const $_model = __importStar(require("./models/model"));
|
|
@@ -48,6 +69,9 @@ __exportStar(require("./models/model"), exports);
|
|
|
48
69
|
class Client extends openapi_core_1.default {
|
|
49
70
|
constructor(config) {
|
|
50
71
|
super(config);
|
|
72
|
+
this._productId = "CS";
|
|
73
|
+
let gatewayClient = new gateway_pop_1.default();
|
|
74
|
+
this._spi = gatewayClient;
|
|
51
75
|
this._endpointRule = "regional";
|
|
52
76
|
this._endpointMap = {
|
|
53
77
|
'ap-northeast-2-pop': "cs.aliyuncs.com",
|
|
@@ -178,7 +202,7 @@ class Client extends openapi_core_1.default {
|
|
|
178
202
|
return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
|
|
179
203
|
}
|
|
180
204
|
/**
|
|
181
|
-
* Adds existing ECS instances to
|
|
205
|
+
* 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.
|
|
182
206
|
*
|
|
183
207
|
* @param request - AttachInstancesToNodePoolRequest
|
|
184
208
|
* @param headers - map
|
|
@@ -218,7 +242,7 @@ class Client extends openapi_core_1.default {
|
|
|
218
242
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AttachInstancesToNodePoolResponse({}));
|
|
219
243
|
}
|
|
220
244
|
/**
|
|
221
|
-
* Adds existing ECS instances to
|
|
245
|
+
* 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.
|
|
222
246
|
*
|
|
223
247
|
* @param request - AttachInstancesToNodePoolRequest
|
|
224
248
|
* @returns AttachInstancesToNodePoolResponse
|
|
@@ -446,12 +470,12 @@ class Client extends openapi_core_1.default {
|
|
|
446
470
|
return await this.checkServiceRoleWithOptions(request, headers, runtime);
|
|
447
471
|
}
|
|
448
472
|
/**
|
|
449
|
-
* Clears the issued KubeConfig credentials and
|
|
473
|
+
* 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.
|
|
450
474
|
*
|
|
451
475
|
* @remarks
|
|
452
|
-
* > 1. You must have the permissions to manage Container Service for Kubernetes (CS)
|
|
453
|
-
* > 2.
|
|
454
|
-
* > 3.
|
|
476
|
+
* > 1. You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
|
|
477
|
+
* > 2. This operation does not support clearing the permissions of an Alibaba Cloud account.
|
|
478
|
+
* > 3. This operation does not support clearing the permissions of the current user.
|
|
455
479
|
*
|
|
456
480
|
* @param request - CleanClusterUserPermissionsRequest
|
|
457
481
|
* @param headers - map
|
|
@@ -482,12 +506,12 @@ class Client extends openapi_core_1.default {
|
|
|
482
506
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CleanClusterUserPermissionsResponse({}));
|
|
483
507
|
}
|
|
484
508
|
/**
|
|
485
|
-
* Clears the issued KubeConfig credentials and
|
|
509
|
+
* 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.
|
|
486
510
|
*
|
|
487
511
|
* @remarks
|
|
488
|
-
* > 1. You must have the permissions to manage Container Service for Kubernetes (CS)
|
|
489
|
-
* > 2.
|
|
490
|
-
* > 3.
|
|
512
|
+
* > 1. You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
|
|
513
|
+
* > 2. This operation does not support clearing the permissions of an Alibaba Cloud account.
|
|
514
|
+
* > 3. This operation does not support clearing the permissions of the current user.
|
|
491
515
|
*
|
|
492
516
|
* @param request - CleanClusterUserPermissionsRequest
|
|
493
517
|
* @returns CleanClusterUserPermissionsResponse
|
|
@@ -498,12 +522,12 @@ class Client extends openapi_core_1.default {
|
|
|
498
522
|
return await this.cleanClusterUserPermissionsWithOptions(ClusterId, Uid, request, headers, runtime);
|
|
499
523
|
}
|
|
500
524
|
/**
|
|
501
|
-
*
|
|
525
|
+
* 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.
|
|
502
526
|
*
|
|
503
527
|
* @remarks
|
|
504
|
-
* >-
|
|
505
|
-
* >-
|
|
506
|
-
* >-
|
|
528
|
+
* >- You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
|
|
529
|
+
* >- You cannot clear the permissions of an Alibaba Cloud account.
|
|
530
|
+
* >- You cannot clear your own permissions.
|
|
507
531
|
*
|
|
508
532
|
* @param tmpReq - CleanUserPermissionsRequest
|
|
509
533
|
* @param headers - map
|
|
@@ -542,12 +566,12 @@ class Client extends openapi_core_1.default {
|
|
|
542
566
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CleanUserPermissionsResponse({}));
|
|
543
567
|
}
|
|
544
568
|
/**
|
|
545
|
-
*
|
|
569
|
+
* 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.
|
|
546
570
|
*
|
|
547
571
|
* @remarks
|
|
548
|
-
* >-
|
|
549
|
-
* >-
|
|
550
|
-
* >-
|
|
572
|
+
* >- You must have the permissions to manage Container Service for Kubernetes (CS) (AliyunCSFullAccess).
|
|
573
|
+
* >- You cannot clear the permissions of an Alibaba Cloud account.
|
|
574
|
+
* >- You cannot clear your own permissions.
|
|
551
575
|
*
|
|
552
576
|
* @param request - CleanUserPermissionsRequest
|
|
553
577
|
* @returns CleanUserPermissionsResponse
|
|
@@ -702,16 +726,16 @@ class Client extends openapi_core_1.default {
|
|
|
702
726
|
return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
|
|
703
727
|
}
|
|
704
728
|
/**
|
|
705
|
-
* Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When
|
|
729
|
+
* 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.
|
|
706
730
|
*
|
|
707
731
|
* @remarks
|
|
708
732
|
* ### Generate OpenAPI request parameters by using the console
|
|
709
|
-
* When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect
|
|
710
|
-
* 1. Log on to the [Container Service
|
|
711
|
-
* 1. On the **Clusters** page, click **Cluster
|
|
712
|
-
* 1. In the dialog box, select the cluster
|
|
713
|
-
* 1. After the configuration is complete, on the **Confirm
|
|
714
|
-
* >Notice: Starting
|
|
733
|
+
* 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:
|
|
734
|
+
* 1. Log on to the [Container Service console](https://csnew.console.aliyun.com). In the left-side navigation pane, click **Clusters**.
|
|
735
|
+
* 1. On the **Clusters** page, click **Cluster Templates**.
|
|
736
|
+
* 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.
|
|
737
|
+
* 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.
|
|
738
|
+
* >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>
|
|
715
739
|
*
|
|
716
740
|
* @param request - CreateClusterRequest
|
|
717
741
|
* @param headers - map
|
|
@@ -1054,16 +1078,16 @@ class Client extends openapi_core_1.default {
|
|
|
1054
1078
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateClusterResponse({}));
|
|
1055
1079
|
}
|
|
1056
1080
|
/**
|
|
1057
|
-
* Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When
|
|
1081
|
+
* 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.
|
|
1058
1082
|
*
|
|
1059
1083
|
* @remarks
|
|
1060
1084
|
* ### Generate OpenAPI request parameters by using the console
|
|
1061
|
-
* When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect
|
|
1062
|
-
* 1. Log on to the [Container Service
|
|
1063
|
-
* 1. On the **Clusters** page, click **Cluster
|
|
1064
|
-
* 1. In the dialog box, select the cluster
|
|
1065
|
-
* 1. After the configuration is complete, on the **Confirm
|
|
1066
|
-
* >Notice: Starting
|
|
1085
|
+
* 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:
|
|
1086
|
+
* 1. Log on to the [Container Service console](https://csnew.console.aliyun.com). In the left-side navigation pane, click **Clusters**.
|
|
1087
|
+
* 1. On the **Clusters** page, click **Cluster Templates**.
|
|
1088
|
+
* 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.
|
|
1089
|
+
* 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.
|
|
1090
|
+
* >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>
|
|
1067
1091
|
*
|
|
1068
1092
|
* @param request - CreateClusterRequest
|
|
1069
1093
|
* @returns CreateClusterResponse
|
|
@@ -1752,14 +1776,14 @@ class Client extends openapi_core_1.default {
|
|
|
1752
1776
|
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
1753
1777
|
}
|
|
1754
1778
|
/**
|
|
1755
|
-
* Removes nodes from a cluster. When
|
|
1779
|
+
* 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.
|
|
1756
1780
|
*
|
|
1757
1781
|
* @remarks
|
|
1758
|
-
* - When removing nodes, perform standard operations by
|
|
1759
|
-
* - 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
|
|
1760
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
1761
|
-
* - Removing nodes involves pod migration
|
|
1762
|
-
* - When
|
|
1782
|
+
* - 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.
|
|
1783
|
+
* - 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.
|
|
1784
|
+
* - 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.
|
|
1785
|
+
* - 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.
|
|
1786
|
+
* - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application pod scheduling failures.
|
|
1763
1787
|
* - 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.
|
|
1764
1788
|
*
|
|
1765
1789
|
* @param request - DeleteClusterNodesRequest
|
|
@@ -1773,6 +1797,9 @@ class Client extends openapi_core_1.default {
|
|
|
1773
1797
|
if (!$dara.isNull(request.drainNode)) {
|
|
1774
1798
|
body["drain_node"] = request.drainNode;
|
|
1775
1799
|
}
|
|
1800
|
+
if (!$dara.isNull(request.drainTimeoutSeconds)) {
|
|
1801
|
+
body["drain_timeout_seconds"] = request.drainTimeoutSeconds;
|
|
1802
|
+
}
|
|
1776
1803
|
if (!$dara.isNull(request.nodes)) {
|
|
1777
1804
|
body["nodes"] = request.nodes;
|
|
1778
1805
|
}
|
|
@@ -1797,14 +1824,14 @@ class Client extends openapi_core_1.default {
|
|
|
1797
1824
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteClusterNodesResponse({}));
|
|
1798
1825
|
}
|
|
1799
1826
|
/**
|
|
1800
|
-
* Removes nodes from a cluster. When
|
|
1827
|
+
* 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.
|
|
1801
1828
|
*
|
|
1802
1829
|
* @remarks
|
|
1803
|
-
* - When removing nodes, perform standard operations by
|
|
1804
|
-
* - 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
|
|
1805
|
-
* - If the expected number of nodes is configured for a node pool, the node pool automatically scales out other instances based on the
|
|
1806
|
-
* - Removing nodes involves pod migration
|
|
1807
|
-
* - When
|
|
1830
|
+
* - 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.
|
|
1831
|
+
* - 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.
|
|
1832
|
+
* - 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.
|
|
1833
|
+
* - 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.
|
|
1834
|
+
* - When removing nodes, ACK executes a drain operation. Ensure that other nodes in the cluster have sufficient resources to avoid application pod scheduling failures.
|
|
1808
1835
|
* - 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.
|
|
1809
1836
|
*
|
|
1810
1837
|
* @param request - DeleteClusterNodesRequest
|
|
@@ -2440,7 +2467,7 @@ class Client extends openapi_core_1.default {
|
|
|
2440
2467
|
return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
|
|
2441
2468
|
}
|
|
2442
2469
|
/**
|
|
2443
|
-
*
|
|
2470
|
+
* 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.
|
|
2444
2471
|
*
|
|
2445
2472
|
* @param request - DescribeClusterAttachScriptsRequest
|
|
2446
2473
|
* @param headers - map
|
|
@@ -2492,7 +2519,7 @@ class Client extends openapi_core_1.default {
|
|
|
2492
2519
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClusterAttachScriptsResponse({}));
|
|
2493
2520
|
}
|
|
2494
2521
|
/**
|
|
2495
|
-
*
|
|
2522
|
+
* 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.
|
|
2496
2523
|
*
|
|
2497
2524
|
* @param request - DescribeClusterAttachScriptsRequest
|
|
2498
2525
|
* @returns DescribeClusterAttachScriptsResponse
|
|
@@ -3059,7 +3086,7 @@ class Client extends openapi_core_1.default {
|
|
|
3059
3086
|
return await this.describeClustersWithOptions(request, headers, runtime);
|
|
3060
3087
|
}
|
|
3061
3088
|
/**
|
|
3062
|
-
* Queries
|
|
3089
|
+
* Queries all clusters in a specified region.
|
|
3063
3090
|
*
|
|
3064
3091
|
* @param request - DescribeClustersForRegionRequest
|
|
3065
3092
|
* @param headers - map
|
|
@@ -3108,7 +3135,7 @@ class Client extends openapi_core_1.default {
|
|
|
3108
3135
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeClustersForRegionResponse({}));
|
|
3109
3136
|
}
|
|
3110
3137
|
/**
|
|
3111
|
-
* Queries
|
|
3138
|
+
* Queries all clusters in a specified region.
|
|
3112
3139
|
*
|
|
3113
3140
|
* @param request - DescribeClustersForRegionRequest
|
|
3114
3141
|
* @returns DescribeClustersForRegionResponse
|
|
@@ -3349,7 +3376,7 @@ class Client extends openapi_core_1.default {
|
|
|
3349
3376
|
return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
|
|
3350
3377
|
}
|
|
3351
3378
|
/**
|
|
3352
|
-
* Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and
|
|
3379
|
+
* Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and runtimes.
|
|
3353
3380
|
*
|
|
3354
3381
|
* @param request - DescribeKubernetesVersionMetadataRequest
|
|
3355
3382
|
* @param headers - map
|
|
@@ -3401,7 +3428,7 @@ class Client extends openapi_core_1.default {
|
|
|
3401
3428
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeKubernetesVersionMetadataResponse({}));
|
|
3402
3429
|
}
|
|
3403
3430
|
/**
|
|
3404
|
-
* Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and
|
|
3431
|
+
* Queries the details of Kubernetes versions, including version information, release dates, expiration dates, compatible operating systems, and runtimes.
|
|
3405
3432
|
*
|
|
3406
3433
|
* @param request - DescribeKubernetesVersionMetadataRequest
|
|
3407
3434
|
* @returns DescribeKubernetesVersionMetadataResponse
|
|
@@ -4618,6 +4645,163 @@ class Client extends openapi_core_1.default {
|
|
|
4618
4645
|
let headers = {};
|
|
4619
4646
|
return await this.installNodePoolComponentsWithOptions(clusterId, nodePoolId, request, headers, runtime);
|
|
4620
4647
|
}
|
|
4648
|
+
/**
|
|
4649
|
+
* 发起智能助手会话运行(AG-UI 协议)
|
|
4650
|
+
*
|
|
4651
|
+
* @remarks
|
|
4652
|
+
* 独立的原生 AG-UI 接口,成功建流后返回 text/event-stream。
|
|
4653
|
+
*
|
|
4654
|
+
* @param request - InvokeAgentRequest
|
|
4655
|
+
* @param headers - map
|
|
4656
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4657
|
+
* @returns InvokeAgentResponse
|
|
4658
|
+
*/
|
|
4659
|
+
invokeAgentWithSSE(request, headers, runtime) {
|
|
4660
|
+
return __asyncGenerator(this, arguments, function* invokeAgentWithSSE_1() {
|
|
4661
|
+
var _a, e_1, _b, _c;
|
|
4662
|
+
request.validate();
|
|
4663
|
+
let body = {};
|
|
4664
|
+
if (!$dara.isNull(request.context)) {
|
|
4665
|
+
body["context"] = request.context;
|
|
4666
|
+
}
|
|
4667
|
+
if (!$dara.isNull(request.forwardedProps)) {
|
|
4668
|
+
body["forwardedProps"] = request.forwardedProps;
|
|
4669
|
+
}
|
|
4670
|
+
if (!$dara.isNull(request.messages)) {
|
|
4671
|
+
body["messages"] = request.messages;
|
|
4672
|
+
}
|
|
4673
|
+
if (!$dara.isNull(request.parentRunId)) {
|
|
4674
|
+
body["parentRunId"] = request.parentRunId;
|
|
4675
|
+
}
|
|
4676
|
+
if (!$dara.isNull(request.resume)) {
|
|
4677
|
+
body["resume"] = request.resume;
|
|
4678
|
+
}
|
|
4679
|
+
if (!$dara.isNull(request.runId)) {
|
|
4680
|
+
body["runId"] = request.runId;
|
|
4681
|
+
}
|
|
4682
|
+
if (!$dara.isNull(request.state)) {
|
|
4683
|
+
body["state"] = request.state;
|
|
4684
|
+
}
|
|
4685
|
+
if (!$dara.isNull(request.threadId)) {
|
|
4686
|
+
body["threadId"] = request.threadId;
|
|
4687
|
+
}
|
|
4688
|
+
if (!$dara.isNull(request.tools)) {
|
|
4689
|
+
body["tools"] = request.tools;
|
|
4690
|
+
}
|
|
4691
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4692
|
+
headers: headers,
|
|
4693
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
4694
|
+
});
|
|
4695
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4696
|
+
action: "InvokeAgent",
|
|
4697
|
+
version: "2015-12-15",
|
|
4698
|
+
protocol: "HTTPS",
|
|
4699
|
+
pathname: `/intelligence/invoke`,
|
|
4700
|
+
method: "POST",
|
|
4701
|
+
authType: "AK",
|
|
4702
|
+
style: "ROA",
|
|
4703
|
+
reqBodyType: "json",
|
|
4704
|
+
bodyType: "json",
|
|
4705
|
+
});
|
|
4706
|
+
let sseResp = yield __await(this.callSSEApi(params, req, runtime));
|
|
4707
|
+
try {
|
|
4708
|
+
for (var _d = true, sseResp_1 = __asyncValues(sseResp), sseResp_1_1; sseResp_1_1 = yield __await(sseResp_1.next()), _a = sseResp_1_1.done, !_a; _d = true) {
|
|
4709
|
+
_c = sseResp_1_1.value;
|
|
4710
|
+
_d = false;
|
|
4711
|
+
let resp = _c;
|
|
4712
|
+
if (!$dara.isNull(resp.event) && !$dara.isNull(resp.event.data)) {
|
|
4713
|
+
let data = JSON.parse(resp.event.data);
|
|
4714
|
+
yield yield __await($dara.cast({
|
|
4715
|
+
statusCode: resp.statusCode,
|
|
4716
|
+
headers: resp.headers,
|
|
4717
|
+
id: resp.event.id,
|
|
4718
|
+
event: resp.event.event,
|
|
4719
|
+
body: data,
|
|
4720
|
+
}, new $_model.InvokeAgentResponse({})));
|
|
4721
|
+
}
|
|
4722
|
+
}
|
|
4723
|
+
}
|
|
4724
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4725
|
+
finally {
|
|
4726
|
+
try {
|
|
4727
|
+
if (!_d && !_a && (_b = sseResp_1.return)) yield __await(_b.call(sseResp_1));
|
|
4728
|
+
}
|
|
4729
|
+
finally { if (e_1) throw e_1.error; }
|
|
4730
|
+
}
|
|
4731
|
+
});
|
|
4732
|
+
}
|
|
4733
|
+
/**
|
|
4734
|
+
* 发起智能助手会话运行(AG-UI 协议)
|
|
4735
|
+
*
|
|
4736
|
+
* @remarks
|
|
4737
|
+
* 独立的原生 AG-UI 接口,成功建流后返回 text/event-stream。
|
|
4738
|
+
*
|
|
4739
|
+
* @param request - InvokeAgentRequest
|
|
4740
|
+
* @param headers - map
|
|
4741
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4742
|
+
* @returns InvokeAgentResponse
|
|
4743
|
+
*/
|
|
4744
|
+
async invokeAgentWithOptions(request, headers, runtime) {
|
|
4745
|
+
request.validate();
|
|
4746
|
+
let body = {};
|
|
4747
|
+
if (!$dara.isNull(request.context)) {
|
|
4748
|
+
body["context"] = request.context;
|
|
4749
|
+
}
|
|
4750
|
+
if (!$dara.isNull(request.forwardedProps)) {
|
|
4751
|
+
body["forwardedProps"] = request.forwardedProps;
|
|
4752
|
+
}
|
|
4753
|
+
if (!$dara.isNull(request.messages)) {
|
|
4754
|
+
body["messages"] = request.messages;
|
|
4755
|
+
}
|
|
4756
|
+
if (!$dara.isNull(request.parentRunId)) {
|
|
4757
|
+
body["parentRunId"] = request.parentRunId;
|
|
4758
|
+
}
|
|
4759
|
+
if (!$dara.isNull(request.resume)) {
|
|
4760
|
+
body["resume"] = request.resume;
|
|
4761
|
+
}
|
|
4762
|
+
if (!$dara.isNull(request.runId)) {
|
|
4763
|
+
body["runId"] = request.runId;
|
|
4764
|
+
}
|
|
4765
|
+
if (!$dara.isNull(request.state)) {
|
|
4766
|
+
body["state"] = request.state;
|
|
4767
|
+
}
|
|
4768
|
+
if (!$dara.isNull(request.threadId)) {
|
|
4769
|
+
body["threadId"] = request.threadId;
|
|
4770
|
+
}
|
|
4771
|
+
if (!$dara.isNull(request.tools)) {
|
|
4772
|
+
body["tools"] = request.tools;
|
|
4773
|
+
}
|
|
4774
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4775
|
+
headers: headers,
|
|
4776
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
4777
|
+
});
|
|
4778
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4779
|
+
action: "InvokeAgent",
|
|
4780
|
+
version: "2015-12-15",
|
|
4781
|
+
protocol: "HTTPS",
|
|
4782
|
+
pathname: `/intelligence/invoke`,
|
|
4783
|
+
method: "POST",
|
|
4784
|
+
authType: "AK",
|
|
4785
|
+
style: "ROA",
|
|
4786
|
+
reqBodyType: "json",
|
|
4787
|
+
bodyType: "json",
|
|
4788
|
+
});
|
|
4789
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.InvokeAgentResponse({}));
|
|
4790
|
+
}
|
|
4791
|
+
/**
|
|
4792
|
+
* 发起智能助手会话运行(AG-UI 协议)
|
|
4793
|
+
*
|
|
4794
|
+
* @remarks
|
|
4795
|
+
* 独立的原生 AG-UI 接口,成功建流后返回 text/event-stream。
|
|
4796
|
+
*
|
|
4797
|
+
* @param request - InvokeAgentRequest
|
|
4798
|
+
* @returns InvokeAgentResponse
|
|
4799
|
+
*/
|
|
4800
|
+
async invokeAgent(request) {
|
|
4801
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4802
|
+
let headers = {};
|
|
4803
|
+
return await this.invokeAgentWithOptions(request, headers, runtime);
|
|
4804
|
+
}
|
|
4621
4805
|
/**
|
|
4622
4806
|
* Queries a list of available components and retrieves detailed component information based on parameters such as the region, cluster type, cluster profile, and cluster version. The detailed information includes whether the component is managed, the schema of supported custom parameters, and compatible operating system architectures.
|
|
4623
4807
|
*
|
|
@@ -5251,10 +5435,10 @@ class Client extends openapi_core_1.default {
|
|
|
5251
5435
|
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
5252
5436
|
}
|
|
5253
5437
|
/**
|
|
5254
|
-
* Queries the KubeConfig status list
|
|
5438
|
+
* Queries the KubeConfig status list for all clusters of the current user.
|
|
5255
5439
|
*
|
|
5256
5440
|
* @remarks
|
|
5257
|
-
* > To call this operation, you must have the
|
|
5441
|
+
* > To call this operation, you must have the AliyunCSFullAccess permission to manage Container Service for Kubernetes (CS).
|
|
5258
5442
|
*
|
|
5259
5443
|
* @param request - ListUserKubeConfigStatesRequest
|
|
5260
5444
|
* @param headers - map
|
|
@@ -5288,10 +5472,10 @@ class Client extends openapi_core_1.default {
|
|
|
5288
5472
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListUserKubeConfigStatesResponse({}));
|
|
5289
5473
|
}
|
|
5290
5474
|
/**
|
|
5291
|
-
* Queries the KubeConfig status list
|
|
5475
|
+
* Queries the KubeConfig status list for all clusters of the current user.
|
|
5292
5476
|
*
|
|
5293
5477
|
* @remarks
|
|
5294
|
-
* > To call this operation, you must have the
|
|
5478
|
+
* > To call this operation, you must have the AliyunCSFullAccess permission to manage Container Service for Kubernetes (CS).
|
|
5295
5479
|
*
|
|
5296
5480
|
* @param request - ListUserKubeConfigStatesRequest
|
|
5297
5481
|
* @returns ListUserKubeConfigStatesResponse
|
|
@@ -5404,10 +5588,10 @@ class Client extends openapi_core_1.default {
|
|
|
5404
5588
|
return await this.modifyAutoRepairPolicyWithOptions(clusterId, policyId, request, headers, runtime);
|
|
5405
5589
|
}
|
|
5406
5590
|
/**
|
|
5407
|
-
* Modifies the
|
|
5591
|
+
* Modifies the configurations of an ACK cluster.
|
|
5408
5592
|
*
|
|
5409
5593
|
* @remarks
|
|
5410
|
-
* <notice>Starting
|
|
5594
|
+
* <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>
|
|
5411
5595
|
*
|
|
5412
5596
|
* @param request - ModifyClusterRequest
|
|
5413
5597
|
* @param headers - map
|
|
@@ -5501,10 +5685,10 @@ class Client extends openapi_core_1.default {
|
|
|
5501
5685
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyClusterResponse({}));
|
|
5502
5686
|
}
|
|
5503
5687
|
/**
|
|
5504
|
-
* Modifies the
|
|
5688
|
+
* Modifies the configurations of an ACK cluster.
|
|
5505
5689
|
*
|
|
5506
5690
|
* @remarks
|
|
5507
|
-
* <notice>Starting
|
|
5691
|
+
* <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>
|
|
5508
5692
|
*
|
|
5509
5693
|
* @param request - ModifyClusterRequest
|
|
5510
5694
|
* @returns ModifyClusterResponse
|
|
@@ -6008,14 +6192,14 @@ class Client extends openapi_core_1.default {
|
|
|
6008
6192
|
return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
6009
6193
|
}
|
|
6010
6194
|
/**
|
|
6011
|
-
* 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
|
|
6195
|
+
* 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.
|
|
6012
6196
|
*
|
|
6013
6197
|
* @remarks
|
|
6014
|
-
* - Removing nodes involves pod migration
|
|
6198
|
+
* - Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours.
|
|
6015
6199
|
* - Unexpected risks may occur during the operation. Back up your data in advance.
|
|
6016
|
-
* - During the operation, the system sets the nodes to the unschedulable state.
|
|
6200
|
+
* - During the operation, the system sets the current nodes to the unschedulable state.
|
|
6017
6201
|
* - Only worker nodes are removed. Master nodes are not removed.
|
|
6018
|
-
* - Even if you choose to release nodes (
|
|
6202
|
+
* - 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/).
|
|
6019
6203
|
*
|
|
6020
6204
|
* @param tmpReq - RemoveNodePoolNodesRequest
|
|
6021
6205
|
* @param headers - map
|
|
@@ -6039,6 +6223,9 @@ class Client extends openapi_core_1.default {
|
|
|
6039
6223
|
if (!$dara.isNull(request.drainNode)) {
|
|
6040
6224
|
query["drain_node"] = request.drainNode;
|
|
6041
6225
|
}
|
|
6226
|
+
if (!$dara.isNull(request.drainTimeoutSeconds)) {
|
|
6227
|
+
query["drain_timeout_seconds"] = request.drainTimeoutSeconds;
|
|
6228
|
+
}
|
|
6042
6229
|
if (!$dara.isNull(request.instanceIdsShrink)) {
|
|
6043
6230
|
query["instance_ids"] = request.instanceIdsShrink;
|
|
6044
6231
|
}
|
|
@@ -6066,14 +6253,14 @@ class Client extends openapi_core_1.default {
|
|
|
6066
6253
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RemoveNodePoolNodesResponse({}));
|
|
6067
6254
|
}
|
|
6068
6255
|
/**
|
|
6069
|
-
* 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
|
|
6256
|
+
* 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.
|
|
6070
6257
|
*
|
|
6071
6258
|
* @remarks
|
|
6072
|
-
* - Removing nodes involves pod migration
|
|
6259
|
+
* - Removing nodes involves pod migration, which may affect your services. Perform this operation during off-peak hours.
|
|
6073
6260
|
* - Unexpected risks may occur during the operation. Back up your data in advance.
|
|
6074
|
-
* - During the operation, the system sets the nodes to the unschedulable state.
|
|
6261
|
+
* - During the operation, the system sets the current nodes to the unschedulable state.
|
|
6075
6262
|
* - Only worker nodes are removed. Master nodes are not removed.
|
|
6076
|
-
* - Even if you choose to release nodes (
|
|
6263
|
+
* - 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/).
|
|
6077
6264
|
*
|
|
6078
6265
|
* @param request - RemoveNodePoolNodesRequest
|
|
6079
6266
|
* @returns RemoveNodePoolNodesResponse
|
|
@@ -6860,7 +7047,7 @@ class Client extends openapi_core_1.default {
|
|
|
6860
7047
|
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
6861
7048
|
}
|
|
6862
7049
|
/**
|
|
6863
|
-
*
|
|
7050
|
+
* 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.
|
|
6864
7051
|
*
|
|
6865
7052
|
* @remarks
|
|
6866
7053
|
* 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).
|
|
@@ -6897,7 +7084,7 @@ class Client extends openapi_core_1.default {
|
|
|
6897
7084
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateClusterAuditLogConfigResponse({}));
|
|
6898
7085
|
}
|
|
6899
7086
|
/**
|
|
6900
|
-
*
|
|
7087
|
+
* 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.
|
|
6901
7088
|
*
|
|
6902
7089
|
* @remarks
|
|
6903
7090
|
* 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).
|
|
@@ -7391,10 +7578,10 @@ class Client extends openapi_core_1.default {
|
|
|
7391
7578
|
return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
|
|
7392
7579
|
}
|
|
7393
7580
|
/**
|
|
7394
|
-
* Updates the
|
|
7581
|
+
* 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.
|
|
7395
7582
|
*
|
|
7396
7583
|
* @remarks
|
|
7397
|
-
* You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using
|
|
7584
|
+
* 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.
|
|
7398
7585
|
*
|
|
7399
7586
|
* @param request - UpdateUserPermissionsRequest
|
|
7400
7587
|
* @param headers - map
|
|
@@ -7426,10 +7613,10 @@ class Client extends openapi_core_1.default {
|
|
|
7426
7613
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateUserPermissionsResponse({}));
|
|
7427
7614
|
}
|
|
7428
7615
|
/**
|
|
7429
|
-
* Updates the
|
|
7616
|
+
* 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.
|
|
7430
7617
|
*
|
|
7431
7618
|
* @remarks
|
|
7432
|
-
* You can update the cluster authorization information of a target Resource Access Management (RAM) user or RAM role by using
|
|
7619
|
+
* 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.
|
|
7433
7620
|
*
|
|
7434
7621
|
* @param request - UpdateUserPermissionsRequest
|
|
7435
7622
|
* @returns UpdateUserPermissionsResponse
|