tencentcloud-sdk-nodejs-tke 4.1.341 → 4.1.344
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/package.json
CHANGED
|
@@ -143,7 +143,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
143
143
|
/**
|
|
144
144
|
* 轮转集群的token
|
|
145
145
|
*/
|
|
146
|
-
RotateClusterToken(req
|
|
146
|
+
RotateClusterToken(req: RotateClusterTokenRequest, cb?: (error: string, rep: RotateClusterTokenResponse) => void): Promise<RotateClusterTokenResponse>;
|
|
147
147
|
/**
|
|
148
148
|
* 获得节点升级当前的进度,若集群未处于节点升级状态,则接口会报错:任务未找到。
|
|
149
149
|
*/
|
|
@@ -1450,7 +1450,28 @@ export interface CreatePrometheusDashboardResponse {
|
|
|
1450
1450
|
/**
|
|
1451
1451
|
* RotateClusterToken请求参数结构体
|
|
1452
1452
|
*/
|
|
1453
|
-
export
|
|
1453
|
+
export interface RotateClusterTokenRequest {
|
|
1454
|
+
/**
|
|
1455
|
+
* <p>集群ID</p>
|
|
1456
|
+
*/
|
|
1457
|
+
ClusterId: string;
|
|
1458
|
+
/**
|
|
1459
|
+
* <p>集群类型,枚举类型:TKEServerless、TKE,为对应集群类型。默认TKE</p>
|
|
1460
|
+
*/
|
|
1461
|
+
ClusterType?: string;
|
|
1462
|
+
/**
|
|
1463
|
+
* <p>执行操作,枚举类型:CreateNewToken、RevokeOldToken、RecoverOldToken。<br>CreateNewToken:创建新的token并使之生效,注意默认最多有两个token同时生效,需要多个token生效,Force必须为true。<br>RevokeOldToken:删除老的token并使之失效,此时ClusterToken是必传。<br>RecoverOldToken:恢复老的token并使之生效,此时ClusterToken是必传,必须有对应的RevokeOldToken任务且任务成功才可以调用。</p>
|
|
1464
|
+
*/
|
|
1465
|
+
Operation?: string;
|
|
1466
|
+
/**
|
|
1467
|
+
* <p>集群token,只有Operation为RevokeOldToken和RecoverOldToken时需要传入。</p>
|
|
1468
|
+
*/
|
|
1469
|
+
ClusterToken?: string;
|
|
1470
|
+
/**
|
|
1471
|
+
* <p>默认false,只有Operation为CreateNewToken时需要,设置为true时,才可以超过两个token。</p>
|
|
1472
|
+
*/
|
|
1473
|
+
Force?: boolean;
|
|
1474
|
+
}
|
|
1454
1475
|
/**
|
|
1455
1476
|
* CancelClusterRelease请求参数结构体
|
|
1456
1477
|
*/
|