tencentcloud-sdk-nodejs-thpc 4.0.1052 → 4.1.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 (40) hide show
  1. package/README.md +18 -4
  2. package/es/index.js +1 -0
  3. package/es/services/index.js +1 -0
  4. package/es/services/thpc/index.js +8 -0
  5. package/es/services/thpc/v20211109/index.js +6 -0
  6. package/es/services/thpc/v20211109/thpc_client.js +18 -0
  7. package/es/services/thpc/v20211109/thpc_models.js +0 -0
  8. package/es/services/thpc/v20220401/index.js +6 -0
  9. package/es/services/thpc/v20220401/thpc_client.js +54 -0
  10. package/es/services/thpc/v20220401/thpc_models.js +0 -0
  11. package/es/services/thpc/v20230321/index.js +6 -0
  12. package/es/services/thpc/v20230321/thpc_client.js +75 -0
  13. package/es/services/thpc/v20230321/thpc_models.js +0 -0
  14. package/package.json +24 -8
  15. package/tencentcloud/services/thpc/v20211109/index.js +2 -1
  16. package/tencentcloud/services/thpc/v20211109/thpc_client.js +2 -1
  17. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +2 -5
  18. package/tencentcloud/services/thpc/v20220401/index.js +2 -1
  19. package/tencentcloud/services/thpc/v20220401/thpc_client.js +2 -1
  20. package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +2 -5
  21. package/tencentcloud/services/thpc/v20230321/index.js +2 -1
  22. package/tencentcloud/services/thpc/v20230321/thpc_client.js +2 -1
  23. package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +2 -6
  24. package/index.d.ts +0 -2
  25. package/index.js +0 -6
  26. package/prettier.config.js +0 -38
  27. package/src/index.ts +0 -1
  28. package/src/services/index.ts +0 -1
  29. package/src/services/thpc/index.ts +0 -9
  30. package/src/services/thpc/v20211109/index.ts +0 -6
  31. package/src/services/thpc/v20211109/thpc_client.ts +0 -96
  32. package/src/services/thpc/v20211109/thpc_models.ts +0 -596
  33. package/src/services/thpc/v20220401/index.ts +0 -6
  34. package/src/services/thpc/v20220401/thpc_client.ts +0 -259
  35. package/src/services/thpc/v20220401/thpc_models.ts +0 -1389
  36. package/src/services/thpc/v20230321/index.ts +0 -6
  37. package/src/services/thpc/v20230321/thpc_client.ts +0 -358
  38. package/src/services/thpc/v20230321/thpc_models.ts +0 -2209
  39. package/tsconfig.json +0 -33
  40. package/typings/index.d.ts +0 -2
package/README.md CHANGED
@@ -52,10 +52,24 @@ npm install tencentcloud-sdk-nodejs --save
52
52
 
53
53
  ## 通过源码包安装
54
54
 
55
- 1. 前往 [GitHub 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
56
- 2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
57
- 3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
58
- 4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入 SDK,具体可参考示例。
55
+ 1. clone 代码到本地:
56
+ ```
57
+ git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
58
+ # 或者
59
+ git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
60
+ ```
61
+ 2. 在项目根目录执行以下命令完成构建:
62
+ ```
63
+ npm install && npm run build
64
+ ```
65
+ 3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
66
+ ```
67
+ npm pack
68
+ ```
69
+ 4. 安装包到你的项目里:
70
+ ```
71
+ npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
72
+ ```
59
73
 
60
74
  # 示例
61
75
 
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1 @@
1
+ export { thpc } from "./thpc";
@@ -0,0 +1,8 @@
1
+ import { v20211109 } from "./v20211109";
2
+ import { v20220401 } from "./v20220401";
3
+ import { v20230321 } from "./v20230321";
4
+ export const thpc = {
5
+ v20211109: v20211109,
6
+ v20220401: v20220401,
7
+ v20230321: v20230321,
8
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./thpc_models";
2
+ import { Client } from "./thpc_client";
3
+ export const v20211109 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,18 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("thpc.tencentcloudapi.com", "2021-11-09", clientConfig);
5
+ }
6
+ async DeleteCluster(req, cb) {
7
+ return this.request("DeleteCluster", req, cb);
8
+ }
9
+ async DescribeClusters(req, cb) {
10
+ return this.request("DescribeClusters", req, cb);
11
+ }
12
+ async BindAutoScalingGroup(req, cb) {
13
+ return this.request("BindAutoScalingGroup", req, cb);
14
+ }
15
+ async CreateCluster(req, cb) {
16
+ return this.request("CreateCluster", req, cb);
17
+ }
18
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ import * as Models from "./thpc_models";
2
+ import { Client } from "./thpc_client";
3
+ export const v20220401 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,54 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("thpc.tencentcloudapi.com", "2022-04-01", clientConfig);
5
+ }
6
+ async DescribeClusterStorageOption(req, cb) {
7
+ return this.request("DescribeClusterStorageOption", req, cb);
8
+ }
9
+ async DeleteNodes(req, cb) {
10
+ return this.request("DeleteNodes", req, cb);
11
+ }
12
+ async BindAutoScalingGroup(req, cb) {
13
+ return this.request("BindAutoScalingGroup", req, cb);
14
+ }
15
+ async CreateCluster(req, cb) {
16
+ return this.request("CreateCluster", req, cb);
17
+ }
18
+ async DeleteCluster(req, cb) {
19
+ return this.request("DeleteCluster", req, cb);
20
+ }
21
+ async SetAutoScalingConfiguration(req, cb) {
22
+ return this.request("SetAutoScalingConfiguration", req, cb);
23
+ }
24
+ async AddQueue(req, cb) {
25
+ return this.request("AddQueue", req, cb);
26
+ }
27
+ async DescribeNodes(req, cb) {
28
+ return this.request("DescribeNodes", req, cb);
29
+ }
30
+ async DeleteQueue(req, cb) {
31
+ return this.request("DeleteQueue", req, cb);
32
+ }
33
+ async DeleteClusterStorageOption(req, cb) {
34
+ return this.request("DeleteClusterStorageOption", req, cb);
35
+ }
36
+ async AddNodes(req, cb) {
37
+ return this.request("AddNodes", req, cb);
38
+ }
39
+ async DescribeAutoScalingConfiguration(req, cb) {
40
+ return this.request("DescribeAutoScalingConfiguration", req, cb);
41
+ }
42
+ async DescribeClusters(req, cb) {
43
+ return this.request("DescribeClusters", req, cb);
44
+ }
45
+ async AddClusterStorageOption(req, cb) {
46
+ return this.request("AddClusterStorageOption", req, cb);
47
+ }
48
+ async DescribeClusterActivities(req, cb) {
49
+ return this.request("DescribeClusterActivities", req, cb);
50
+ }
51
+ async DescribeQueues(req, cb) {
52
+ return this.request("DescribeQueues", req, cb);
53
+ }
54
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ import * as Models from "./thpc_models";
2
+ import { Client } from "./thpc_client";
3
+ export const v20230321 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,75 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("thpc.tencentcloudapi.com", "2023-03-21", clientConfig);
5
+ }
6
+ async DeleteNodes(req, cb) {
7
+ return this.request("DeleteNodes", req, cb);
8
+ }
9
+ async TerminateWorkspaces(req, cb) {
10
+ return this.request("TerminateWorkspaces", req, cb);
11
+ }
12
+ async ModifyWorkspacesAttribute(req, cb) {
13
+ return this.request("ModifyWorkspacesAttribute", req, cb);
14
+ }
15
+ async CreateCluster(req, cb) {
16
+ return this.request("CreateCluster", req, cb);
17
+ }
18
+ async CreateWorkspaces(req, cb) {
19
+ return this.request("CreateWorkspaces", req, cb);
20
+ }
21
+ async DescribeQueues(req, cb) {
22
+ return this.request("DescribeQueues", req, cb);
23
+ }
24
+ async AddNodes(req, cb) {
25
+ return this.request("AddNodes", req, cb);
26
+ }
27
+ async DetachNodes(req, cb) {
28
+ return this.request("DetachNodes", req, cb);
29
+ }
30
+ async DeleteCluster(req, cb) {
31
+ return this.request("DeleteCluster", req, cb);
32
+ }
33
+ async DeleteClusterStorageOption(req, cb) {
34
+ return this.request("DeleteClusterStorageOption", req, cb);
35
+ }
36
+ async DescribeWorkspaces(req, cb) {
37
+ return this.request("DescribeWorkspaces", req, cb);
38
+ }
39
+ async DescribeNodes(req, cb) {
40
+ return this.request("DescribeNodes", req, cb);
41
+ }
42
+ async DescribeClusters(req, cb) {
43
+ return this.request("DescribeClusters", req, cb);
44
+ }
45
+ async SetAutoScalingConfiguration(req, cb) {
46
+ return this.request("SetAutoScalingConfiguration", req, cb);
47
+ }
48
+ async AddQueue(req, cb) {
49
+ return this.request("AddQueue", req, cb);
50
+ }
51
+ async DescribeInitNodeScripts(req, cb) {
52
+ return this.request("DescribeInitNodeScripts", req, cb);
53
+ }
54
+ async AttachNodes(req, cb) {
55
+ return this.request("AttachNodes", req, cb);
56
+ }
57
+ async DescribeAutoScalingConfiguration(req, cb) {
58
+ return this.request("DescribeAutoScalingConfiguration", req, cb);
59
+ }
60
+ async DescribeClusterActivities(req, cb) {
61
+ return this.request("DescribeClusterActivities", req, cb);
62
+ }
63
+ async DescribeClusterStorageOption(req, cb) {
64
+ return this.request("DescribeClusterStorageOption", req, cb);
65
+ }
66
+ async ModifyInitNodeScripts(req, cb) {
67
+ return this.request("ModifyInitNodeScripts", req, cb);
68
+ }
69
+ async AddClusterStorageOption(req, cb) {
70
+ return this.request("AddClusterStorageOption", req, cb);
71
+ }
72
+ async DeleteQueue(req, cb) {
73
+ return this.request("DeleteQueue", req, cb);
74
+ }
75
+ }
File without changes
package/package.json CHANGED
@@ -1,16 +1,25 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-thpc",
3
- "version": "4.0.1052",
4
- "description": "Tencent Cloud API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
3
+ "version": "4.1.1",
4
+ "description": "腾讯云 API NODEJS SDK",
5
+ "main": "./tencentcloud/index.js",
6
+ "module": "./es/index.js",
7
+ "types": "./tencentcloud/index.d.ts",
6
8
  "scripts": {
7
9
  "test": "mocha -t 10000",
8
- "build": "tsc",
9
- "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"
10
+ "build": "concurrently 'npm:build:cjs' 'npm:build:es'",
11
+ "build:cjs": "tsc -p tsconfig.json",
12
+ "build:es": "tsc -p tsconfig.es.json",
13
+ "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
14
+ "clean": "rimraf tencentcloud es"
10
15
  },
11
16
  "engines": {
12
17
  "node": ">=10"
13
18
  },
19
+ "files": [
20
+ "tencentcloud",
21
+ "es"
22
+ ],
14
23
  "keywords": [
15
24
  "tencentcloudapi",
16
25
  "tencentcloud",
@@ -22,7 +31,7 @@
22
31
  "author": "tencentcloudapi",
23
32
  "license": "Apache-2.0",
24
33
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
34
+ "tencentcloud-sdk-nodejs-common": "*",
26
35
  "tslib": "1.13.0"
27
36
  },
28
37
  "directories": {
@@ -35,14 +44,21 @@
35
44
  },
36
45
  "devDependencies": {
37
46
  "@types/form-data": "^2.5.0",
47
+ "@types/json-bigint": "^1.0.1",
38
48
  "@types/node": "^14.0.26",
39
49
  "@types/node-fetch": "^2.5.7",
50
+ "@types/uuid": "^9.0.8",
40
51
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
52
  "@typescript-eslint/parser": "^2.34.0",
53
+ "babel-eslint": "^10.0.2",
42
54
  "chai": "^4.2.0",
55
+ "concurrently": "^6.5.1",
43
56
  "eslint": "^6.8.0",
44
- "mocha": "^8.1.1",
57
+ "eslint-plugin-react": "^7.17.0",
58
+ "mocha": "^8.4.0",
59
+ "prettier": "^2.3.0",
60
+ "rimraf": "^5.0.10",
45
61
  "ts-node": "^8.10.2",
46
62
  "typescript": "^3.9.7"
47
63
  }
48
- }
64
+ }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20211109 = void 0;
4
- const Models = require("./thpc_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./thpc_models"));
5
6
  const thpc_client_1 = require("./thpc_client");
6
7
  exports.v20211109 = {
7
8
  Client: thpc_client_1.Client,
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
5
6
  /*
6
7
  * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
@@ -18,7 +19,7 @@ exports.Client = void 0;
18
19
  * specific language governing permissions and limitations
19
20
  * under the License.
20
21
  */
21
- const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
22
23
  /**
23
24
  * thpc client
24
25
  * @class
@@ -263,7 +263,6 @@ export interface Tag {
263
263
  export interface CreateClusterResponse {
264
264
  /**
265
265
  * 集群ID。
266
- 注意:此字段可能返回 null,表示取不到有效值。
267
266
  */
268
267
  ClusterId?: string;
269
268
  /**
@@ -286,9 +285,8 @@ export interface BindAutoScalingGroupResponse {
286
285
  export interface ManagerNodeOverview {
287
286
  /**
288
287
  * 管控节点ID。
289
- 注意:此字段可能返回 null,表示取不到有效值。
290
288
  */
291
- NodeId: string;
289
+ NodeId?: string;
292
290
  }
293
291
  /**
294
292
  * 管控节点信息
@@ -338,9 +336,8 @@ export interface DeleteClusterRequest {
338
336
  export interface ComputeNodeOverview {
339
337
  /**
340
338
  * 计算节点ID。
341
- 注意:此字段可能返回 null,表示取不到有效值。
342
339
  */
343
- NodeId: string;
340
+ NodeId?: string;
344
341
  }
345
342
  /**
346
343
  * 描述了操作系统所在块设备即系统盘的信息
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20220401 = void 0;
4
- const Models = require("./thpc_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./thpc_models"));
5
6
  const thpc_client_1 = require("./thpc_client");
6
7
  exports.v20220401 = {
7
8
  Client: thpc_client_1.Client,
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
5
6
  /*
6
7
  * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
@@ -18,7 +19,7 @@ exports.Client = void 0;
18
19
  * specific language governing permissions and limitations
19
20
  * under the License.
20
21
  */
21
- const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
22
23
  /**
23
24
  * thpc client
24
25
  * @class
@@ -409,7 +409,6 @@ export interface ClusterActivity {
409
409
  export interface CreateClusterResponse {
410
410
  /**
411
411
  * 集群ID。
412
- 注意:此字段可能返回 null,表示取不到有效值。
413
412
  */
414
413
  ClusterId?: string;
415
414
  /**
@@ -708,9 +707,8 @@ export interface BindAutoScalingGroupResponse {
708
707
  export interface ManagerNodeOverview {
709
708
  /**
710
709
  * 管控节点ID。
711
- 注意:此字段可能返回 null,表示取不到有效值。
712
710
  */
713
- NodeId: string;
711
+ NodeId?: string;
714
712
  }
715
713
  /**
716
714
  * 管控节点信息
@@ -760,9 +758,8 @@ export interface DeleteClusterRequest {
760
758
  export interface ComputeNodeOverview {
761
759
  /**
762
760
  * 计算节点ID。
763
- 注意:此字段可能返回 null,表示取不到有效值。
764
761
  */
765
- NodeId: string;
762
+ NodeId?: string;
766
763
  }
767
764
  /**
768
765
  * 描述了操作系统所在块设备即系统盘的信息
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20230321 = void 0;
4
- const Models = require("./thpc_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./thpc_models"));
5
6
  const thpc_client_1 = require("./thpc_client");
6
7
  exports.v20230321 = {
7
8
  Client: thpc_client_1.Client,
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
5
6
  /*
6
7
  * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
@@ -18,7 +19,7 @@ exports.Client = void 0;
18
19
  * specific language governing permissions and limitations
19
20
  * under the License.
20
21
  */
21
- const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
22
23
  /**
23
24
  * thpc client
24
25
  * @class
@@ -225,9 +225,8 @@ export interface SpaceVirtualPrivateCloud {
225
225
  export interface ManagerNodeOverview {
226
226
  /**
227
227
  * 管控节点ID。
228
- 注意:此字段可能返回 null,表示取不到有效值。
229
228
  */
230
- NodeId: string;
229
+ NodeId?: string;
231
230
  }
232
231
  /**
233
232
  * DeleteCluster请求参数结构体
@@ -803,7 +802,6 @@ export interface DescribeClusterActivitiesResponse {
803
802
  export interface DescribeInitNodeScriptsResponse {
804
803
  /**
805
804
  * 节点初始化脚本列表。
806
- 注意:此字段可能返回 null,表示取不到有效值。
807
805
  */
808
806
  InitNodeScriptSet?: Array<NodeScript>;
809
807
  /**
@@ -963,7 +961,6 @@ export interface DescribeQueuesResponse {
963
961
  export interface CreateClusterResponse {
964
962
  /**
965
963
  * 集群ID。
966
- 注意:此字段可能返回 null,表示取不到有效值。
967
964
  */
968
965
  ClusterId?: string;
969
966
  /**
@@ -1757,9 +1754,8 @@ export interface SpaceSystemDisk {
1757
1754
  export interface ComputeNodeOverview {
1758
1755
  /**
1759
1756
  * 计算节点ID。
1760
- 注意:此字段可能返回 null,表示取不到有效值。
1761
1757
  */
1762
- NodeId: string;
1758
+ NodeId?: string;
1763
1759
  }
1764
1760
  /**
1765
1761
  * 扩容队列配置。
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import * as tencentcloud from './tencentcloud';
2
- export default tencentcloud;
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- 'use strict'
2
- Object.defineProperty(exports, '__esModule', { value: true })
3
- const tslib_1 = require('tslib')
4
- const tencentcloud = tslib_1.__importStar(require('./tencentcloud'))
5
- exports.default = tencentcloud
6
- //# sourceMappingURL=index.js.map
@@ -1,38 +0,0 @@
1
- // prettier.config.js
2
- module.exports = {
3
- // 一行最多 100 字符
4
- printWidth: 100,
5
- // 使用 4 个空格缩进
6
- tabWidth: 2,
7
- // 不使用缩进符,而使用空格
8
- useTabs: false,
9
- // 行尾需要有分号
10
- semi: false,
11
- // 使用单引号
12
- singleQuote: false,
13
- // 对象的 key 仅在必要时用引号
14
- quoteProps: "as-needed",
15
- // jsx 不使用单引号,而使用双引号
16
- jsxSingleQuote: false,
17
- // 末尾不需要逗号
18
- trailingComma: "es5",
19
- // 大括号内的首尾需要空格
20
- bracketSpacing: true,
21
- // jsx 标签的反尖括号需要换行
22
- jsxBracketSameLine: false,
23
- // 箭头函数,只有一个参数的时候,也需要括号
24
- arrowParens: "always",
25
- // 每个文件格式化的范围是文件的全部内容
26
- rangeStart: 0,
27
- rangeEnd: Infinity,
28
- // 不需要写文件开头的 @prettier
29
- requirePragma: false,
30
- // 不需要自动在文件开头插入 @prettier
31
- insertPragma: false,
32
- // 使用默认的折行标准
33
- proseWrap: "preserve",
34
- // 根据显示样式决定 html 要不要折行
35
- htmlWhitespaceSensitivity: "css",
36
- // 换行符使用 lf
37
- endOfLine: "lf",
38
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./services"
@@ -1 +0,0 @@
1
- export { thpc } from "./thpc"
@@ -1,9 +0,0 @@
1
- import { v20211109 } from "./v20211109"
2
- import { v20220401 } from "./v20220401"
3
- import { v20230321 } from "./v20230321"
4
-
5
- export const thpc = {
6
- v20211109: v20211109,
7
- v20220401: v20220401,
8
- v20230321: v20230321,
9
- }
@@ -1,6 +0,0 @@
1
- import * as Models from "./thpc_models"
2
- import { Client } from "./thpc_client"
3
- export const v20211109 = {
4
- Client: Client,
5
- Models: Models,
6
- }
@@ -1,96 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
2
- /*
3
- * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing,
12
- * software distributed under the License is distributed on an
13
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- * KIND, either express or implied. See the License for the
15
- * specific language governing permissions and limitations
16
- * under the License.
17
- */
18
- import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
- import {
20
- ClusterOverview,
21
- DescribeClustersRequest,
22
- LoginSettings,
23
- DeleteClusterResponse,
24
- InternetAccessible,
25
- CFSOption,
26
- LoginNode,
27
- CreateClusterRequest,
28
- Tag,
29
- CreateClusterResponse,
30
- BindAutoScalingGroupResponse,
31
- ManagerNodeOverview,
32
- ManagerNode,
33
- DeleteClusterRequest,
34
- ComputeNodeOverview,
35
- SystemDisk,
36
- Placement,
37
- BindAutoScalingGroupRequest,
38
- VirtualPrivateCloud,
39
- StorageOption,
40
- LoginNodeOverview,
41
- ComputeNode,
42
- DescribeClustersResponse,
43
- GooseFSOption,
44
- InstanceChargePrepaid,
45
- DataDisk,
46
- } from "./thpc_models"
47
-
48
- /**
49
- * thpc client
50
- * @class
51
- */
52
- export class Client extends TencentCloudCommon.AbstractClient {
53
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
54
- super("thpc.tencentcloudapi.com", "2021-11-09", clientConfig)
55
- }
56
-
57
- /**
58
- * 本接口(DeleteCluster)用于删除一个指定的集群。
59
- */
60
- async DeleteCluster(
61
- req: DeleteClusterRequest,
62
- cb?: (error: string, rep: DeleteClusterResponse) => void
63
- ): Promise<DeleteClusterResponse> {
64
- return this.request("DeleteCluster", req, cb)
65
- }
66
-
67
- /**
68
- * 本接口(DescribeClusters)用于查询集群列表。
69
- */
70
- async DescribeClusters(
71
- req: DescribeClustersRequest,
72
- cb?: (error: string, rep: DescribeClustersResponse) => void
73
- ): Promise<DescribeClustersResponse> {
74
- return this.request("DescribeClusters", req, cb)
75
- }
76
-
77
- /**
78
- * 本接口(BindAutoScalingGroup)用于为集群队列绑定弹性伸缩组
79
- */
80
- async BindAutoScalingGroup(
81
- req: BindAutoScalingGroupRequest,
82
- cb?: (error: string, rep: BindAutoScalingGroupResponse) => void
83
- ): Promise<BindAutoScalingGroupResponse> {
84
- return this.request("BindAutoScalingGroup", req, cb)
85
- }
86
-
87
- /**
88
- * 本接口 (CreateCluster) 用于创建并启动集群。
89
- */
90
- async CreateCluster(
91
- req: CreateClusterRequest,
92
- cb?: (error: string, rep: CreateClusterResponse) => void
93
- ): Promise<CreateClusterResponse> {
94
- return this.request("CreateCluster", req, cb)
95
- }
96
- }