tencentcloud-sdk-nodejs-batch 4.0.1041 → 4.1.2
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/README.md +18 -4
- package/es/index.js +1 -0
- package/es/services/batch/index.js +4 -0
- package/es/services/batch/v20170312/batch_client.js +99 -0
- package/es/services/batch/v20170312/batch_models.js +0 -0
- package/es/services/batch/v20170312/index.js +6 -0
- package/es/services/index.js +1 -0
- package/package.json +24 -8
- package/tencentcloud/services/batch/v20170312/batch_client.js +2 -1
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +11 -86
- package/tencentcloud/services/batch/v20170312/index.js +2 -1
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/batch/index.ts +0 -5
- package/src/services/batch/v20170312/batch_client.ts +0 -480
- package/src/services/batch/v20170312/batch_models.ts +0 -3145
- package/src/services/batch/v20170312/index.ts +0 -6
- package/src/services/index.ts +0 -1
- package/tsconfig.json +0 -33
- 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.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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,99 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("batch.tencentcloudapi.com", "2017-03-12", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DescribeComputeEnv(req, cb) {
|
|
7
|
+
return this.request("DescribeComputeEnv", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async CreateTaskTemplate(req, cb) {
|
|
10
|
+
return this.request("CreateTaskTemplate", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async CreateCpmComputeEnv(req, cb) {
|
|
13
|
+
return this.request("CreateCpmComputeEnv", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async TerminateComputeNode(req, cb) {
|
|
16
|
+
return this.request("TerminateComputeNode", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async DescribeJobs(req, cb) {
|
|
19
|
+
return this.request("DescribeJobs", req, cb);
|
|
20
|
+
}
|
|
21
|
+
async DescribeAvailableCvmInstanceTypes(req, cb) {
|
|
22
|
+
return this.request("DescribeAvailableCvmInstanceTypes", req, cb);
|
|
23
|
+
}
|
|
24
|
+
async AttachInstances(req, cb) {
|
|
25
|
+
return this.request("AttachInstances", req, cb);
|
|
26
|
+
}
|
|
27
|
+
async CreateComputeEnv(req, cb) {
|
|
28
|
+
return this.request("CreateComputeEnv", req, cb);
|
|
29
|
+
}
|
|
30
|
+
async DeleteComputeEnv(req, cb) {
|
|
31
|
+
return this.request("DeleteComputeEnv", req, cb);
|
|
32
|
+
}
|
|
33
|
+
async DetachInstances(req, cb) {
|
|
34
|
+
return this.request("DetachInstances", req, cb);
|
|
35
|
+
}
|
|
36
|
+
async DescribeTaskLogs(req, cb) {
|
|
37
|
+
return this.request("DescribeTaskLogs", req, cb);
|
|
38
|
+
}
|
|
39
|
+
async TerminateJob(req, cb) {
|
|
40
|
+
return this.request("TerminateJob", req, cb);
|
|
41
|
+
}
|
|
42
|
+
async DescribeTask(req, cb) {
|
|
43
|
+
return this.request("DescribeTask", req, cb);
|
|
44
|
+
}
|
|
45
|
+
async DescribeCvmZoneInstanceConfigInfos(req, cb) {
|
|
46
|
+
return this.request("DescribeCvmZoneInstanceConfigInfos", req, cb);
|
|
47
|
+
}
|
|
48
|
+
async DescribeJob(req, cb) {
|
|
49
|
+
return this.request("DescribeJob", req, cb);
|
|
50
|
+
}
|
|
51
|
+
async SubmitJob(req, cb) {
|
|
52
|
+
return this.request("SubmitJob", req, cb);
|
|
53
|
+
}
|
|
54
|
+
async TerminateComputeNodes(req, cb) {
|
|
55
|
+
return this.request("TerminateComputeNodes", req, cb);
|
|
56
|
+
}
|
|
57
|
+
async DescribeTaskTemplates(req, cb) {
|
|
58
|
+
return this.request("DescribeTaskTemplates", req, cb);
|
|
59
|
+
}
|
|
60
|
+
async DescribeInstanceCategories(req, cb) {
|
|
61
|
+
return this.request("DescribeInstanceCategories", req, cb);
|
|
62
|
+
}
|
|
63
|
+
async DeleteTaskTemplates(req, cb) {
|
|
64
|
+
return this.request("DeleteTaskTemplates", req, cb);
|
|
65
|
+
}
|
|
66
|
+
async TerminateTaskInstance(req, cb) {
|
|
67
|
+
return this.request("TerminateTaskInstance", req, cb);
|
|
68
|
+
}
|
|
69
|
+
async ModifyComputeEnv(req, cb) {
|
|
70
|
+
return this.request("ModifyComputeEnv", req, cb);
|
|
71
|
+
}
|
|
72
|
+
async DescribeJobSubmitInfo(req, cb) {
|
|
73
|
+
return this.request("DescribeJobSubmitInfo", req, cb);
|
|
74
|
+
}
|
|
75
|
+
async DescribeComputeEnvCreateInfo(req, cb) {
|
|
76
|
+
return this.request("DescribeComputeEnvCreateInfo", req, cb);
|
|
77
|
+
}
|
|
78
|
+
async DescribeComputeEnvActivities(req, cb) {
|
|
79
|
+
return this.request("DescribeComputeEnvActivities", req, cb);
|
|
80
|
+
}
|
|
81
|
+
async DescribeComputeEnvCreateInfos(req, cb) {
|
|
82
|
+
return this.request("DescribeComputeEnvCreateInfos", req, cb);
|
|
83
|
+
}
|
|
84
|
+
async DeleteJob(req, cb) {
|
|
85
|
+
return this.request("DeleteJob", req, cb);
|
|
86
|
+
}
|
|
87
|
+
async DescribeCpmOsInfo(req, cb) {
|
|
88
|
+
return this.request("DescribeCpmOsInfo", req, cb);
|
|
89
|
+
}
|
|
90
|
+
async DescribeComputeEnvs(req, cb) {
|
|
91
|
+
return this.request("DescribeComputeEnvs", req, cb);
|
|
92
|
+
}
|
|
93
|
+
async ModifyTaskTemplate(req, cb) {
|
|
94
|
+
return this.request("ModifyTaskTemplate", req, cb);
|
|
95
|
+
}
|
|
96
|
+
async RetryJobs(req, cb) {
|
|
97
|
+
return this.request("RetryJobs", req, cb);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { batch } from "./batch";
|
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-batch",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
3
|
+
"version": "4.1.2",
|
|
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": "
|
|
9
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
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,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
|
* batch client
|
|
24
25
|
* @class
|