tencentcloud-sdk-nodejs-tione 4.0.1052 → 4.1.4

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 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 { tione } from "./tione";
@@ -0,0 +1,6 @@
1
+ import { v20191022 } from "./v20191022";
2
+ import { v20211111 } from "./v20211111";
3
+ export const tione = {
4
+ v20191022: v20191022,
5
+ v20211111: v20211111,
6
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./tione_models";
2
+ import { Client } from "./tione_client";
3
+ export const v20191022 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,72 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("tione.tencentcloudapi.com", "2019-10-22", clientConfig);
5
+ }
6
+ async UpdateNotebookInstance(req, cb) {
7
+ return this.request("UpdateNotebookInstance", req, cb);
8
+ }
9
+ async DescribeNotebookLifecycleScripts(req, cb) {
10
+ return this.request("DescribeNotebookLifecycleScripts", req, cb);
11
+ }
12
+ async StartNotebookInstance(req, cb) {
13
+ return this.request("StartNotebookInstance", req, cb);
14
+ }
15
+ async DeleteNotebookInstance(req, cb) {
16
+ return this.request("DeleteNotebookInstance", req, cb);
17
+ }
18
+ async DescribeNotebookLifecycleScript(req, cb) {
19
+ return this.request("DescribeNotebookLifecycleScript", req, cb);
20
+ }
21
+ async CreatePresignedNotebookInstanceUrl(req, cb) {
22
+ return this.request("CreatePresignedNotebookInstanceUrl", req, cb);
23
+ }
24
+ async CreateCodeRepository(req, cb) {
25
+ return this.request("CreateCodeRepository", req, cb);
26
+ }
27
+ async DescribeTrainingJob(req, cb) {
28
+ return this.request("DescribeTrainingJob", req, cb);
29
+ }
30
+ async StopNotebookInstance(req, cb) {
31
+ return this.request("StopNotebookInstance", req, cb);
32
+ }
33
+ async CreateNotebookInstance(req, cb) {
34
+ return this.request("CreateNotebookInstance", req, cb);
35
+ }
36
+ async DescribeCodeRepository(req, cb) {
37
+ return this.request("DescribeCodeRepository", req, cb);
38
+ }
39
+ async DescribeTrainingJobs(req, cb) {
40
+ return this.request("DescribeTrainingJobs", req, cb);
41
+ }
42
+ async DeleteCodeRepository(req, cb) {
43
+ return this.request("DeleteCodeRepository", req, cb);
44
+ }
45
+ async DescribeNotebookSummary(req, cb) {
46
+ return this.request("DescribeNotebookSummary", req, cb);
47
+ }
48
+ async CreateNotebookLifecycleScript(req, cb) {
49
+ return this.request("CreateNotebookLifecycleScript", req, cb);
50
+ }
51
+ async DeleteNotebookLifecycleScript(req, cb) {
52
+ return this.request("DeleteNotebookLifecycleScript", req, cb);
53
+ }
54
+ async DescribeNotebookInstance(req, cb) {
55
+ return this.request("DescribeNotebookInstance", req, cb);
56
+ }
57
+ async UpdateCodeRepository(req, cb) {
58
+ return this.request("UpdateCodeRepository", req, cb);
59
+ }
60
+ async DescribeNotebookInstances(req, cb) {
61
+ return this.request("DescribeNotebookInstances", req, cb);
62
+ }
63
+ async CreateTrainingJob(req, cb) {
64
+ return this.request("CreateTrainingJob", req, cb);
65
+ }
66
+ async DescribeCodeRepositories(req, cb) {
67
+ return this.request("DescribeCodeRepositories", req, cb);
68
+ }
69
+ async StopTrainingJob(req, cb) {
70
+ return this.request("StopTrainingJob", req, cb);
71
+ }
72
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ import * as Models from "./tione_models";
2
+ import { Client } from "./tione_client";
3
+ export const v20211111 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,123 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("tione.tencentcloudapi.com", "2021-11-11", clientConfig);
5
+ }
6
+ async DescribeTrainingModelVersion(req, cb) {
7
+ return this.request("DescribeTrainingModelVersion", req, cb);
8
+ }
9
+ async DescribeModelService(req, cb) {
10
+ return this.request("DescribeModelService", req, cb);
11
+ }
12
+ async DescribeBillingSpecs(req, cb) {
13
+ return this.request("DescribeBillingSpecs", req, cb);
14
+ }
15
+ async CreateTrainingModel(req, cb) {
16
+ return this.request("CreateTrainingModel", req, cb);
17
+ }
18
+ async DescribeBillingSpecsPrice(req, cb) {
19
+ return this.request("DescribeBillingSpecsPrice", req, cb);
20
+ }
21
+ async DescribeModelServiceCallInfo(req, cb) {
22
+ return this.request("DescribeModelServiceCallInfo", req, cb);
23
+ }
24
+ async DescribeTrainingTasks(req, cb) {
25
+ return this.request("DescribeTrainingTasks", req, cb);
26
+ }
27
+ async DescribeBuildInImages(req, cb) {
28
+ return this.request("DescribeBuildInImages", req, cb);
29
+ }
30
+ async StartNotebook(req, cb) {
31
+ return this.request("StartNotebook", req, cb);
32
+ }
33
+ async DeleteDataset(req, cb) {
34
+ return this.request("DeleteDataset", req, cb);
35
+ }
36
+ async DeleteNotebook(req, cb) {
37
+ return this.request("DeleteNotebook", req, cb);
38
+ }
39
+ async DescribeTrainingTask(req, cb) {
40
+ return this.request("DescribeTrainingTask", req, cb);
41
+ }
42
+ async DescribeTrainingTaskPods(req, cb) {
43
+ return this.request("DescribeTrainingTaskPods", req, cb);
44
+ }
45
+ async DescribeModelServiceHotUpdated(req, cb) {
46
+ return this.request("DescribeModelServiceHotUpdated", req, cb);
47
+ }
48
+ async DescribeModelAccelerateTask(req, cb) {
49
+ return this.request("DescribeModelAccelerateTask", req, cb);
50
+ }
51
+ async ChatCompletion(req, cb) {
52
+ return this.request("ChatCompletion", req, cb);
53
+ }
54
+ async DescribeModelAccelerateVersions(req, cb) {
55
+ return this.request("DescribeModelAccelerateVersions", req, cb);
56
+ }
57
+ async CreateDataset(req, cb) {
58
+ return this.request("CreateDataset", req, cb);
59
+ }
60
+ async CreateNotebook(req, cb) {
61
+ return this.request("CreateNotebook", req, cb);
62
+ }
63
+ async DescribeModelServiceGroup(req, cb) {
64
+ return this.request("DescribeModelServiceGroup", req, cb);
65
+ }
66
+ async DeleteModelServiceGroup(req, cb) {
67
+ return this.request("DeleteModelServiceGroup", req, cb);
68
+ }
69
+ async PushTrainingMetrics(req, cb) {
70
+ return this.request("PushTrainingMetrics", req, cb);
71
+ }
72
+ async DescribeTrainingModelVersions(req, cb) {
73
+ return this.request("DescribeTrainingModelVersions", req, cb);
74
+ }
75
+ async CreateModelService(req, cb) {
76
+ return this.request("CreateModelService", req, cb);
77
+ }
78
+ async CreatePresignedNotebookUrl(req, cb) {
79
+ return this.request("CreatePresignedNotebookUrl", req, cb);
80
+ }
81
+ async DeleteModelService(req, cb) {
82
+ return this.request("DeleteModelService", req, cb);
83
+ }
84
+ async DescribeDatasets(req, cb) {
85
+ return this.request("DescribeDatasets", req, cb);
86
+ }
87
+ async DescribeBillingResourceInstanceRunningJobs(req, cb) {
88
+ return this.request("DescribeBillingResourceInstanceRunningJobs", req, cb);
89
+ }
90
+ async ModifyModelService(req, cb) {
91
+ return this.request("ModifyModelService", req, cb);
92
+ }
93
+ async DescribeNotebooks(req, cb) {
94
+ return this.request("DescribeNotebooks", req, cb);
95
+ }
96
+ async DeleteTrainingModel(req, cb) {
97
+ return this.request("DeleteTrainingModel", req, cb);
98
+ }
99
+ async StopModelAccelerateTask(req, cb) {
100
+ return this.request("StopModelAccelerateTask", req, cb);
101
+ }
102
+ async DescribeBillingResourceGroup(req, cb) {
103
+ return this.request("DescribeBillingResourceGroup", req, cb);
104
+ }
105
+ async DescribeNotebook(req, cb) {
106
+ return this.request("DescribeNotebook", req, cb);
107
+ }
108
+ async DeleteTrainingModelVersion(req, cb) {
109
+ return this.request("DeleteTrainingModelVersion", req, cb);
110
+ }
111
+ async DescribeBillingResourceGroups(req, cb) {
112
+ return this.request("DescribeBillingResourceGroups", req, cb);
113
+ }
114
+ async DescribeInferTemplates(req, cb) {
115
+ return this.request("DescribeInferTemplates", req, cb);
116
+ }
117
+ async DescribeModelServiceGroups(req, cb) {
118
+ return this.request("DescribeModelServiceGroups", req, cb);
119
+ }
120
+ async StopNotebook(req, cb) {
121
+ return this.request("StopNotebook", req, cb);
122
+ }
123
+ }
File without changes
package/package.json CHANGED
@@ -1,16 +1,26 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tione",
3
- "version": "4.0.1052",
4
- "description": "Tencent Cloud API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
3
+ "version": "4.1.4",
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
+ "build:slim": "node ./scripts/build_slim.js",
14
+ "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
15
+ "clean": "rimraf tencentcloud es"
10
16
  },
11
17
  "engines": {
12
18
  "node": ">=10"
13
19
  },
20
+ "files": [
21
+ "tencentcloud",
22
+ "es"
23
+ ],
14
24
  "keywords": [
15
25
  "tencentcloudapi",
16
26
  "tencentcloud",
@@ -22,7 +32,7 @@
22
32
  "author": "tencentcloudapi",
23
33
  "license": "Apache-2.0",
24
34
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
35
+ "tencentcloud-sdk-nodejs-common": "*",
26
36
  "tslib": "1.13.0"
27
37
  },
28
38
  "directories": {
@@ -35,14 +45,22 @@
35
45
  },
36
46
  "devDependencies": {
37
47
  "@types/form-data": "^2.5.0",
48
+ "@types/json-bigint": "^1.0.1",
38
49
  "@types/node": "^14.0.26",
39
50
  "@types/node-fetch": "^2.5.7",
51
+ "@types/uuid": "^9.0.8",
40
52
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
53
  "@typescript-eslint/parser": "^2.34.0",
54
+ "babel-eslint": "^10.0.2",
42
55
  "chai": "^4.2.0",
56
+ "concurrently": "^6.5.1",
57
+ "esbuild": "^0.25.0",
43
58
  "eslint": "^6.8.0",
44
- "mocha": "^8.1.1",
59
+ "eslint-plugin-react": "^7.17.0",
60
+ "mocha": "^8.4.0",
61
+ "prettier": "^2.3.0",
62
+ "rimraf": "^5.0.10",
45
63
  "ts-node": "^8.10.2",
46
64
  "typescript": "^3.9.7"
47
65
  }
48
- }
66
+ }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20191022 = void 0;
4
- const Models = require("./tione_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./tione_models"));
5
6
  const tione_client_1 = require("./tione_client");
6
7
  exports.v20191022 = {
7
8
  Client: tione_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
  * tione client
24
25
  * @class
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20211111 = void 0;
4
- const Models = require("./tione_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./tione_models"));
5
6
  const tione_client_1 = require("./tione_client");
6
7
  exports.v20211111 = {
7
8
  Client: tione_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
  * tione client
24
25
  * @class
@@ -165,6 +165,14 @@ export interface CreateModelServiceRequest {
165
165
  * 单副本下的实例数,仅在部署类型为DIST时生效,默认1
166
166
  */
167
167
  InstancePerReplicas?: number;
168
+ /**
169
+ * 30
170
+ */
171
+ TerminationGracePeriodSeconds?: number;
172
+ /**
173
+ * ["sleep","60"]
174
+ */
175
+ PreStopCommand?: Array<string>;
168
176
  }
169
177
  /**
170
178
  * 描述在线服务
@@ -1283,6 +1291,14 @@ export interface ModifyModelServiceRequest {
1283
1291
  * 单副本下的实例数,仅在部署类型为DIST时生效,默认1
1284
1292
  */
1285
1293
  InstancePerReplicas?: number;
1294
+ /**
1295
+ * 30
1296
+ */
1297
+ TerminationGracePeriodSeconds?: number;
1298
+ /**
1299
+ * ["sleep","60"]
1300
+ */
1301
+ PreStopCommand?: Array<string>;
1286
1302
  }
1287
1303
  /**
1288
1304
  * ChatCompletion请求参数结构体
@@ -2839,6 +2855,14 @@ export interface ServiceInfo {
2839
2855
  注意:此字段可能返回 null,表示取不到有效值。
2840
2856
  */
2841
2857
  ServicePort?: number;
2858
+ /**
2859
+ * 服务的优雅退出时限。单位为秒,默认值为30,最小为1
2860
+ */
2861
+ TerminationGracePeriodSeconds?: number;
2862
+ /**
2863
+ * 服务实例停止前执行的命令,执行完毕或执行时间超过优雅退出时限后实例结束
2864
+ */
2865
+ PreStopCommand?: Array<string>;
2842
2866
  }
2843
2867
  /**
2844
2868
  * DescribeModelService请求参数结构体
@@ -3897,6 +3921,10 @@ export interface ModelInfo {
3897
3921
  * cos路径信息
3898
3922
  */
3899
3923
  CosPathInfo?: CosPathInfo;
3924
+ /**
3925
+ * GooseFSx的配置,ModelSource为GooseFSx时有效
3926
+ */
3927
+ GooseFSx?: GooseFSx;
3900
3928
  /**
3901
3929
  * 模型对应的算法框架,预留
3902
3930
  注意:此字段可能返回 null,表示取不到有效值。
@@ -4806,6 +4834,19 @@ export interface ChatCompletionResponse {
4806
4834
  */
4807
4835
  RequestId?: string;
4808
4836
  }
4837
+ /**
4838
+ * GosseFSx的配置
4839
+ */
4840
+ export interface GooseFSx {
4841
+ /**
4842
+ * goosefsx实例id
4843
+ */
4844
+ Id?: string;
4845
+ /**
4846
+ * GooseFSx实例需要挂载的路径
4847
+ */
4848
+ Path?: string;
4849
+ }
4809
4850
  /**
4810
4851
  * DescribeTrainingTaskPods请求参数结构体
4811
4852
  */
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 { tione } from "./tione"
@@ -1,7 +0,0 @@
1
- import { v20191022 } from "./v20191022"
2
- import { v20211111 } from "./v20211111"
3
-
4
- export const tione = {
5
- v20191022: v20191022,
6
- v20211111: v20211111,
7
- }
@@ -1,6 +0,0 @@
1
- import * as Models from "./tione_models"
2
- import { Client } from "./tione_client"
3
- export const v20191022 = {
4
- Client: Client,
5
- Models: Models,
6
- }