tencentcloud-sdk-nodejs-tke 4.1.151 → 4.1.153

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.
@@ -1,6 +1,6 @@
1
- import { v20220501 } from "./v20220501";
2
1
  import { v20180525 } from "./v20180525";
2
+ import { v20220501 } from "./v20220501";
3
3
  export const tke = {
4
- v20220501: v20220501,
5
4
  v20180525: v20180525,
5
+ v20220501: v20220501,
6
6
  };
@@ -3,6 +3,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
3
3
  constructor(clientConfig) {
4
4
  super("tke.tencentcloudapi.com", "2022-05-01", clientConfig);
5
5
  }
6
+ async ModifyClusterMachine(req, cb) {
7
+ return this.request("ModifyClusterMachine", req, cb);
8
+ }
6
9
  async DescribeNodePools(req, cb) {
7
10
  return this.request("DescribeNodePools", req, cb);
8
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tke",
3
- "version": "4.1.151",
3
+ "version": "4.1.153",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,10 +1,10 @@
1
1
  export declare const tke: {
2
- v20220501: {
3
- Client: typeof import("./v20220501/tke_client").Client;
4
- Models: typeof import("./v20220501/tke_models");
5
- };
6
2
  v20180525: {
7
3
  Client: typeof import("./v20180525/tke_client").Client;
8
4
  Models: typeof import("./v20180525/tke_models");
9
5
  };
6
+ v20220501: {
7
+ Client: typeof import("./v20220501/tke_client").Client;
8
+ Models: typeof import("./v20220501/tke_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tke = void 0;
4
- const v20220501_1 = require("./v20220501");
5
4
  const v20180525_1 = require("./v20180525");
5
+ const v20220501_1 = require("./v20220501");
6
6
  exports.tke = {
7
- v20220501: v20220501_1.v20220501,
8
7
  v20180525: v20180525_1.v20180525,
8
+ v20220501: v20220501_1.v20220501,
9
9
  };
@@ -1,11 +1,15 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { StartMachinesResponse, DescribeClustersRequest, DeleteHealthCheckPolicyRequest, CreateNodePoolResponse, DescribeNodePoolsResponse, DescribeClusterInstancesResponse, DescribeHealthCheckPolicyBindingsRequest, CreateHealthCheckPolicyRequest, SetMachineLoginResponse, DeleteClusterMachinesResponse, StartMachinesRequest, RebootMachinesResponse, DeleteNodePoolResponse, ModifyNodePoolRequest, DescribeClusterInstancesRequest, DeleteHealthCheckPolicyResponse, SetMachineLoginRequest, DeleteClusterMachinesRequest, RebootMachinesRequest, ModifyNodePoolResponse, StopMachinesRequest, DescribeHealthCheckPoliciesRequest, DescribeHealthCheckTemplateResponse, CreateNodePoolRequest, DescribeHealthCheckPolicyBindingsResponse, DescribeNodePoolsRequest, DeleteNodePoolRequest, StopMachinesResponse, DescribeHealthCheckTemplateRequest, DescribeHealthCheckPoliciesResponse, ModifyHealthCheckPolicyRequest, DescribeClustersResponse, ModifyHealthCheckPolicyResponse, CreateHealthCheckPolicyResponse } from "./tke_models";
2
+ import { StartMachinesResponse, DescribeClustersRequest, DeleteHealthCheckPolicyRequest, CreateNodePoolResponse, SetMachineLoginResponse, DescribeNodePoolsResponse, DescribeClusterInstancesResponse, DescribeHealthCheckPolicyBindingsRequest, CreateHealthCheckPolicyRequest, ModifyClusterMachineRequest, DeleteClusterMachinesResponse, StartMachinesRequest, RebootMachinesResponse, DeleteNodePoolResponse, ModifyNodePoolRequest, ModifyClusterMachineResponse, DescribeClusterInstancesRequest, DeleteHealthCheckPolicyResponse, SetMachineLoginRequest, DeleteClusterMachinesRequest, RebootMachinesRequest, ModifyNodePoolResponse, StopMachinesRequest, DescribeHealthCheckPoliciesRequest, DescribeHealthCheckTemplateResponse, CreateNodePoolRequest, DescribeHealthCheckPolicyBindingsResponse, DescribeNodePoolsRequest, DeleteNodePoolRequest, StopMachinesResponse, DescribeHealthCheckTemplateRequest, DescribeHealthCheckPoliciesResponse, ModifyHealthCheckPolicyRequest, DescribeClustersResponse, ModifyHealthCheckPolicyResponse, CreateHealthCheckPolicyResponse } from "./tke_models";
3
3
  /**
4
4
  * tke client
5
5
  * @class
6
6
  */
7
7
  export declare class Client extends TencentCloudCommon.AbstractClient {
8
8
  constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 修改原生节点
11
+ */
12
+ ModifyClusterMachine(req: ModifyClusterMachineRequest, cb?: (error: string, rep: ModifyClusterMachineResponse) => void): Promise<ModifyClusterMachineResponse>;
9
13
  /**
10
14
  * 查询 TKE 节点池列表
11
15
  */
@@ -28,6 +28,12 @@ class Client extends TencentCloudCommon.AbstractClient {
28
28
  constructor(clientConfig) {
29
29
  super("tke.tencentcloudapi.com", "2022-05-01", clientConfig);
30
30
  }
31
+ /**
32
+ * 修改原生节点
33
+ */
34
+ async ModifyClusterMachine(req, cb) {
35
+ return this.request("ModifyClusterMachine", req, cb);
36
+ }
31
37
  /**
32
38
  * 查询 TKE 节点池列表
33
39
  */
@@ -1,3 +1,20 @@
1
+ /**
2
+ * 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到云主机实例。
3
+ */
4
+ export interface TagSpecification {
5
+ /**
6
+ * 标签绑定的资源类型,当前支持类型:
7
+ 1.cluster:集群相关接口,TagSpecification 的 ResourceType 传参为 cluster
8
+ 2.machine:节点池相关接口,如:CreateNodePool, DescribeNodePools 等,TagSpecification 的 ResourceType 传参为 machine
9
+ 注意:此字段可能返回 null,表示取不到有效值。
10
+ */
11
+ ResourceType?: string;
12
+ /**
13
+ * 标签对列表
14
+ 注意:此字段可能返回 null,表示取不到有效值。
15
+ */
16
+ Tags?: Array<Tag>;
17
+ }
1
18
  /**
2
19
  * StartMachines返回参数结构体
3
20
  */
@@ -302,21 +319,13 @@ export interface CreateNodePoolResponse {
302
319
  RequestId?: string;
303
320
  }
304
321
  /**
305
- * 标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到云主机实例。
322
+ * SetMachineLogin返回参数结构体
306
323
  */
307
- export interface TagSpecification {
308
- /**
309
- * 标签绑定的资源类型,当前支持类型:
310
- 1.cluster:集群相关接口,TagSpecification 的 ResourceType 传参为 cluster
311
- 2.machine:节点池相关接口,如:CreateNodePool, DescribeNodePools 等,TagSpecification 的 ResourceType 传参为 machine
312
- 注意:此字段可能返回 null,表示取不到有效值。
313
- */
314
- ResourceType?: string;
324
+ export interface SetMachineLoginResponse {
315
325
  /**
316
- * 标签对列表
317
- 注意:此字段可能返回 null,表示取不到有效值。
326
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
318
327
  */
319
- Tags?: Array<Tag>;
328
+ RequestId?: string;
320
329
  }
321
330
  /**
322
331
  * 原生节点池创建参数
@@ -705,13 +714,25 @@ export interface CreateHealthCheckPolicyRequest {
705
714
  HealthCheckPolicy: HealthCheckPolicy;
706
715
  }
707
716
  /**
708
- * SetMachineLogin返回参数结构体
717
+ * ModifyClusterMachine请求参数结构体
709
718
  */
710
- export interface SetMachineLoginResponse {
719
+ export interface ModifyClusterMachineRequest {
711
720
  /**
712
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
721
+ * 集群 ID
713
722
  */
714
- RequestId?: string;
723
+ ClusterId: string;
724
+ /**
725
+ * 节点名列表
726
+ */
727
+ MachineNames: Array<string>;
728
+ /**
729
+ * machine的display name
730
+ */
731
+ DisplayName?: string;
732
+ /**
733
+ * 节点预付费信息
734
+ */
735
+ InstanceChargePrepaid?: InstanceChargePrepaid;
715
736
  }
716
737
  /**
717
738
  * 节点自定义参数
@@ -1059,6 +1080,15 @@ export interface Annotation {
1059
1080
  */
1060
1081
  Value: string;
1061
1082
  }
1083
+ /**
1084
+ * ModifyClusterMachine返回参数结构体
1085
+ */
1086
+ export interface ModifyClusterMachineResponse {
1087
+ /**
1088
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1089
+ */
1090
+ RequestId?: string;
1091
+ }
1062
1092
  /**
1063
1093
  * DescribeClusterInstances请求参数结构体
1064
1094
  */