tencentcloud-sdk-nodejs-eis 4.0.1050 → 4.1.9

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
@@ -44,18 +44,40 @@ npm install tencentcloud-sdk-nodejs-vpc --save
44
44
 
45
45
  ### 安装全产品 SDK
46
46
 
47
+ 如果项目依赖的云产品较多,可以引入全产品 SDK。
48
+
47
49
  ```
48
50
  npm install tencentcloud-sdk-nodejs --save
49
51
  ```
50
52
 
51
- 全产品 SDK 包含了所有云产品的调用代码,体积偏大,对体积敏感的场景,推荐安装指定产品 SDK。
53
+ 全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
54
+
55
+ 如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
56
+
57
+ ```
58
+ npm install tencentcloud-sdk-slim-nodejs --save
59
+ ```
52
60
 
53
61
  ## 通过源码包安装
54
62
 
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,具体可参考示例。
63
+ 1. clone 代码到本地:
64
+ ```
65
+ git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
66
+ # 或者
67
+ git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
68
+ ```
69
+ 2. 在项目根目录执行以下命令完成构建:
70
+ ```
71
+ npm install && npm run build
72
+ ```
73
+ 3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
74
+ ```
75
+ npm pack
76
+ ```
77
+ 4. 安装包到你的项目里:
78
+ ```
79
+ npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
80
+ ```
59
81
 
60
82
  # 示例
61
83
 
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,6 @@
1
+ import { v20200715 } from "./v20200715";
2
+ import { v20210601 } from "./v20210601";
3
+ export const eis = {
4
+ v20200715: v20200715,
5
+ v20210601: v20210601,
6
+ };
@@ -0,0 +1,15 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("eis.tencentcloudapi.com", "2020-07-15", clientConfig);
5
+ }
6
+ async ListEisConnectorOperations(req, cb) {
7
+ return this.request("ListEisConnectorOperations", req, cb);
8
+ }
9
+ async ListEisConnectors(req, cb) {
10
+ return this.request("ListEisConnectors", req, cb);
11
+ }
12
+ async DescribeEisConnectorConfig(req, cb) {
13
+ return this.request("DescribeEisConnectorConfig", req, cb);
14
+ }
15
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ import * as Models from "./eis_models";
2
+ import { Client } from "./eis_client";
3
+ export const v20200715 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,21 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("eis.tencentcloudapi.com", "2021-06-01", clientConfig);
5
+ }
6
+ async GetRuntimeMC(req, cb) {
7
+ return this.request("GetRuntimeMC", req, cb);
8
+ }
9
+ async ListDeployableRuntimesMC(req, cb) {
10
+ return this.request("ListDeployableRuntimesMC", req, cb);
11
+ }
12
+ async GetRuntimeResourceMonitorMetricMC(req, cb) {
13
+ return this.request("GetRuntimeResourceMonitorMetricMC", req, cb);
14
+ }
15
+ async ListRuntimeDeployedInstancesMC(req, cb) {
16
+ return this.request("ListRuntimeDeployedInstancesMC", req, cb);
17
+ }
18
+ async ListRuntimesMC(req, cb) {
19
+ return this.request("ListRuntimesMC", req, cb);
20
+ }
21
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ import * as Models from "./eis_models";
2
+ import { Client } from "./eis_client";
3
+ export const v20210601 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1 @@
1
+ export { eis } from "./eis";
package/package.json CHANGED
@@ -1,16 +1,26 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-eis",
3
- "version": "4.0.1050",
3
+ "version": "4.1.9",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
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",
@@ -43,10 +53,13 @@
43
53
  "@typescript-eslint/parser": "^2.34.0",
44
54
  "babel-eslint": "^10.0.2",
45
55
  "chai": "^4.2.0",
56
+ "concurrently": "^6.5.1",
57
+ "esbuild": "^0.25.0",
46
58
  "eslint": "^6.8.0",
47
59
  "eslint-plugin-react": "^7.17.0",
48
- "mocha": "^8.1.1",
60
+ "mocha": "^8.4.0",
49
61
  "prettier": "^2.3.0",
62
+ "rimraf": "^5.0.10",
50
63
  "ts-node": "^8.10.2",
51
64
  "typescript": "^3.9.7"
52
65
  }
@@ -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
  * eis client
24
25
  * @class
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20200715 = void 0;
4
- const Models = require("./eis_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./eis_models"));
5
6
  const eis_client_1 = require("./eis_client");
6
7
  exports.v20200715 = {
7
8
  Client: eis_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
  * eis client
24
25
  * @class
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20210601 = void 0;
4
- const Models = require("./eis_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./eis_models"));
5
6
  const eis_client_1 = require("./eis_client");
6
7
  exports.v20210601 = {
7
8
  Client: eis_client_1.Client,
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,7 +0,0 @@
1
- import { v20200715 } from "./v20200715"
2
- import { v20210601 } from "./v20210601"
3
-
4
- export const eis = {
5
- v20200715: v20200715,
6
- v20210601: v20210601,
7
- }
@@ -1,68 +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
- EisConnectionOperation,
21
- ListEisConnectorsRequest,
22
- EisConnectorSummary,
23
- ListEisConnectorOperationsResponse,
24
- DescribeEisConnectorConfigResponse,
25
- ListEisConnectorOperationsRequest,
26
- DescribeEisConnectorConfigRequest,
27
- ListEisConnectorsResponse,
28
- } from "./eis_models"
29
-
30
- /**
31
- * eis client
32
- * @class
33
- */
34
- export class Client extends TencentCloudCommon.AbstractClient {
35
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
36
- super("eis.tencentcloudapi.com", "2020-07-15", clientConfig)
37
- }
38
-
39
- /**
40
- * 获取连接器操作列表
41
- */
42
- async ListEisConnectorOperations(
43
- req: ListEisConnectorOperationsRequest,
44
- cb?: (error: string, rep: ListEisConnectorOperationsResponse) => void
45
- ): Promise<ListEisConnectorOperationsResponse> {
46
- return this.request("ListEisConnectorOperations", req, cb)
47
- }
48
-
49
- /**
50
- * 连接器列表
51
- */
52
- async ListEisConnectors(
53
- req: ListEisConnectorsRequest,
54
- cb?: (error: string, rep: ListEisConnectorsResponse) => void
55
- ): Promise<ListEisConnectorsResponse> {
56
- return this.request("ListEisConnectors", req, cb)
57
- }
58
-
59
- /**
60
- * 获取连接器配置参数
61
- */
62
- async DescribeEisConnectorConfig(
63
- req: DescribeEisConnectorConfigRequest,
64
- cb?: (error: string, rep: DescribeEisConnectorConfigResponse) => void
65
- ): Promise<DescribeEisConnectorConfigResponse> {
66
- return this.request("DescribeEisConnectorConfig", req, cb)
67
- }
68
- }
@@ -1,330 +0,0 @@
1
- /*
2
- * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing,
11
- * software distributed under the License is distributed on an
12
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
- * KIND, either express or implied. See the License for the
14
- * specific language governing permissions and limitations
15
- * under the License.
16
- */
17
-
18
- /**
19
- * 连接器操作
20
- */
21
- export interface EisConnectionOperation {
22
- /**
23
- * 连接器操作名称
24
- */
25
- OperationName: string
26
- /**
27
- * 连接器展示名称
28
- */
29
- DisplayName: string
30
- /**
31
- * 操作是否为触发器
32
- */
33
- IsTrigger: boolean
34
- }
35
-
36
- /**
37
- * ListEisConnectors请求参数结构体
38
- */
39
- export interface ListEisConnectorsRequest {
40
- /**
41
- * 连接器名称,非必输,如输入则按照输入值模糊匹配
42
- */
43
- ConnectorName?: string
44
- /**
45
- * 分页参数,数据偏移量
46
- */
47
- Offset?: number
48
- /**
49
- * 分页参数,每页显示的条数
50
- */
51
- Limit?: number
52
- }
53
-
54
- /**
55
- * 连接器概要信息
56
- */
57
- export interface EisConnectorSummary {
58
- /**
59
- * 连接器名称
60
- */
61
- ConnectorName: string
62
- /**
63
- * 连接器展示名称
64
- */
65
- DisplayName: string
66
- /**
67
- * 连接器对应企业
68
- */
69
- Company: string
70
- /**
71
- * 连接器对应产品
72
- */
73
- Product: string
74
- /**
75
- * 连接器版本
76
- */
77
- ConnectorVersion: string
78
- /**
79
- * 连接器创建时间
80
- */
81
- CreateTime: number
82
- }
83
-
84
- /**
85
- * ListEisConnectorOperations返回参数结构体
86
- */
87
- export interface ListEisConnectorOperationsResponse {
88
- /**
89
- * 连接器列表
90
- */
91
- Operations: Array<EisConnectionOperation>
92
- /**
93
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
94
- */
95
- RequestId?: string
96
- }
97
-
98
- /**
99
- * DescribeEisConnectorConfig返回参数结构体
100
- */
101
- export interface DescribeEisConnectorConfigResponse {
102
- /**
103
- * 连接器配置参数描述(json结构),示例如下:
104
- {
105
- "attributes":{
106
- "description":"测试", // 连接器的描述
107
- "displayName":"测试", // 连接器的展示名
108
- "name":"test", // 连接器的名称
109
- "version":"1.0.0" // 连接器的版本号
110
- },
111
- "properties":[
112
- {
113
- "attributes":{
114
- "displayName":"企业ID", // 参数的展示名
115
- "name":"para1", // 参数名
116
- "required":"true", // 是否必填
117
- "type":"int" // 参数的类型
118
- }
119
- },
120
- {
121
- "attributes":{
122
- "displayName":"成员管理密钥",
123
- "name":"para2",
124
- "required":"true",
125
- "type":"float"
126
- }
127
- },
128
- {
129
- "attributes":{
130
- "displayName":"应用管理密钥",
131
- "name":"para3",
132
- "required":"true",
133
- "type":"string"
134
- }
135
- },
136
- {
137
- "attributes":{
138
- "displayName":"企业ID",
139
- "name":"para4",
140
- "required":"true",
141
- "type":"decimal"
142
- }
143
- },
144
- {
145
- "attributes":{
146
- "displayName":"成员管理密钥",
147
- "name":"para5",
148
- "required":"true",
149
- "type":"bool"
150
- }
151
- },
152
- {
153
- "attributes":{
154
- "displayName":"应用管理密钥",
155
- "name":"para6",
156
- "required":"true",
157
- "type":"date"
158
- }
159
- },
160
- {
161
- "attributes":{
162
- "displayName":"企业ID",
163
- "name":"para7",
164
- "required":"true",
165
- "type":"time"
166
- }
167
- },
168
- {
169
- "attributes":{
170
- "displayName":"成员管理密钥",
171
- "name":"para8",
172
- "required":"true",
173
- "type":"datetime"
174
- }
175
- },
176
- {
177
- "attributes":{
178
- "displayName":"应用管理密钥",
179
- "name":"para9",
180
- "required":"true",
181
- "type":"map"
182
- },
183
- "children":[
184
- {
185
- "attributes":{
186
- "displayName":"key",
187
- "name":"key",
188
- "required":"true",
189
- "type":"string"
190
- }
191
- },
192
- {
193
- "attributes":{
194
- "displayName":"value",
195
- "name":"value",
196
- "required":"true",
197
- "type":"any"
198
- }
199
- }
200
- ]
201
- },
202
- {
203
- "attributes":{
204
- "displayName":"企业ID",
205
- "name":"para10",
206
- "required":"true",
207
- "type":"list" // list,list里元素的类型是结构体,children里是结构体的描述
208
- },
209
- "children":[
210
- {
211
- "attributes":{
212
- "displayName":"field1",
213
- "name":"field1",
214
- "required":"true",
215
- "type":"string"
216
- }
217
- },
218
- {
219
- "attributes":{
220
- "displayName":"field2",
221
- "name":"field2",
222
- "required":"true",
223
- "type":"any"
224
- }
225
- }
226
- ]
227
- },
228
- {
229
- "attributes":{
230
- "displayName":"成员管理密钥",
231
- "name":"para11",
232
- "required":"true",
233
- "type":"struct"
234
- },
235
- "children":[
236
- {
237
- "attributes":{
238
- "displayName":"field1", // 结构体属性的展示名
239
- "name":"field1", // 结构体属性的名称
240
- "required":"true", // 是否必填
241
- "type":"string" // 属性的类型
242
- }
243
- },
244
- {
245
- "attributes":{
246
- "displayName":"field2",
247
- "name":"field2",
248
- "required":"true",
249
- "type":"any"
250
- }
251
- }
252
- ]
253
- },
254
- {
255
- "attributes":{
256
- "displayName":"应用管理密钥",
257
- "name":"para12",
258
- "required":"true",
259
- "type":"enum"
260
- },
261
- "children":[
262
- {
263
- "attributes":{
264
- "displayName":"PC", // 枚举值的展示名
265
- "name":"PC" // 枚举值的名称
266
- }
267
- },
268
- {
269
- "attributes":{
270
- "displayName":"MAC",
271
- "name":"MAC"
272
- }
273
- }
274
- ]
275
- }
276
- ]
277
- }
278
- */
279
- ConnectorParameter: string
280
- /**
281
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
282
- */
283
- RequestId?: string
284
- }
285
-
286
- /**
287
- * ListEisConnectorOperations请求参数结构体
288
- */
289
- export interface ListEisConnectorOperationsRequest {
290
- /**
291
- * 连接器名称
292
- */
293
- ConnectorName: string
294
- /**
295
- * 连接器版本
296
- */
297
- ConnectorVersion: string
298
- }
299
-
300
- /**
301
- * DescribeEisConnectorConfig请求参数结构体
302
- */
303
- export interface DescribeEisConnectorConfigRequest {
304
- /**
305
- * 连接器名称
306
- */
307
- ConnectorName: string
308
- /**
309
- * 连接器版本
310
- */
311
- ConnectorVersion: string
312
- }
313
-
314
- /**
315
- * ListEisConnectors返回参数结构体
316
- */
317
- export interface ListEisConnectorsResponse {
318
- /**
319
- * 连接器总数
320
- */
321
- TotalCount: number
322
- /**
323
- * 连接器列表
324
- */
325
- Connectors: Array<EisConnectorSummary>
326
- /**
327
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
328
- */
329
- RequestId?: string
330
- }
@@ -1,6 +0,0 @@
1
- import * as Models from "./eis_models"
2
- import { Client } from "./eis_client"
3
- export const v20200715 = {
4
- Client: Client,
5
- Models: Models,
6
- }
@@ -1,95 +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
- ListRuntimesMCResponse,
21
- RuntimeMC,
22
- GetRuntimeResourceMonitorMetricMCResponse,
23
- ListRuntimeDeployedInstancesMCRequest,
24
- RuntimeExtensionMC,
25
- ListDeployableRuntimesMCResponse,
26
- GetRuntimeMCResponse,
27
- ListDeployableRuntimesMCRequest,
28
- ListRuntimesMCRequest,
29
- GetRuntimeMCRequest,
30
- MetricValueMC,
31
- GetRuntimeResourceMonitorMetricMCRequest,
32
- AbstractRuntimeMC,
33
- ListRuntimeDeployedInstancesMCResponse,
34
- RuntimeDeployedInstanceMC,
35
- } from "./eis_models"
36
-
37
- /**
38
- * eis client
39
- * @class
40
- */
41
- export class Client extends TencentCloudCommon.AbstractClient {
42
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
43
- super("eis.tencentcloudapi.com", "2021-06-01", clientConfig)
44
- }
45
-
46
- /**
47
- * 获取运行时详情
48
- */
49
- async GetRuntimeMC(
50
- req: GetRuntimeMCRequest,
51
- cb?: (error: string, rep: GetRuntimeMCResponse) => void
52
- ): Promise<GetRuntimeMCResponse> {
53
- return this.request("GetRuntimeMC", req, cb)
54
- }
55
-
56
- /**
57
- * 返回用户可用的运行时列表,发布应用时返回的运行时环境,仅shared和private运行时,无sandbox运行时,并且只有running/scaling状态的
58
- */
59
- async ListDeployableRuntimesMC(
60
- req: ListDeployableRuntimesMCRequest,
61
- cb?: (error: string, rep: ListDeployableRuntimesMCResponse) => void
62
- ): Promise<ListDeployableRuntimesMCResponse> {
63
- return this.request("ListDeployableRuntimesMC", req, cb)
64
- }
65
-
66
- /**
67
- * 获取运行时资源监控详情,cpu,memory,bandwidth
68
- */
69
- async GetRuntimeResourceMonitorMetricMC(
70
- req: GetRuntimeResourceMonitorMetricMCRequest,
71
- cb?: (error: string, rep: GetRuntimeResourceMonitorMetricMCResponse) => void
72
- ): Promise<GetRuntimeResourceMonitorMetricMCResponse> {
73
- return this.request("GetRuntimeResourceMonitorMetricMC", req, cb)
74
- }
75
-
76
- /**
77
- * 获取运行时部署的应用实例列表
78
- */
79
- async ListRuntimeDeployedInstancesMC(
80
- req: ListRuntimeDeployedInstancesMCRequest,
81
- cb?: (error: string, rep: ListRuntimeDeployedInstancesMCResponse) => void
82
- ): Promise<ListRuntimeDeployedInstancesMCResponse> {
83
- return this.request("ListRuntimeDeployedInstancesMC", req, cb)
84
- }
85
-
86
- /**
87
- * 返回用户的运行时列表,运行时管理主页使用,包含沙箱、共享运行时及独立运行时环境,不包含已经删除的运行时
88
- */
89
- async ListRuntimesMC(
90
- req: ListRuntimesMCRequest,
91
- cb?: (error: string, rep: ListRuntimesMCResponse) => void
92
- ): Promise<ListRuntimesMCResponse> {
93
- return this.request("ListRuntimesMC", req, cb)
94
- }
95
- }
@@ -1,504 +0,0 @@
1
- /*
2
- * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing,
11
- * software distributed under the License is distributed on an
12
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
- * KIND, either express or implied. See the License for the
14
- * specific language governing permissions and limitations
15
- * under the License.
16
- */
17
-
18
- /**
19
- * ListRuntimesMC返回参数结构体
20
- */
21
- export interface ListRuntimesMCResponse {
22
- /**
23
- * 运行时列表
24
- */
25
- Runtimes?: Array<RuntimeMC>
26
- /**
27
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
28
- */
29
- RequestId?: string
30
- }
31
-
32
- /**
33
- * 运行时详细信息
34
- */
35
- export interface RuntimeMC {
36
- /**
37
- * 环境id
38
- */
39
- RuntimeId: number
40
- /**
41
- * 主账号uin
42
- */
43
- Uin: string
44
- /**
45
- * 环境名称,用户输入,同一uin内唯一
46
- */
47
- DisplayName: string
48
- /**
49
- * 环境所在地域,tianjin,beijiing,guangzhou等
50
- */
51
- Zone: string
52
- /**
53
- * 环境类型:0: sandbox, 1:shared, 2:private 3: trial
54
- */
55
- Type: number
56
- /**
57
- * 运行时状态:1:running, 2:deleting, 3:creating, 4:scaling, 5:unavailable, 6:deleted, 7:errored
58
- */
59
- Status: number
60
- /**
61
- * 环境创建时间
62
- */
63
- CreatedAt: number
64
- /**
65
- * 环境更新时间
66
- */
67
- UpdatedAt: number
68
- /**
69
- * 环境资源配置,worker总配额,0:0vCore0G, 1:1vCore2G, 2:2vCore4G, 4:4vCore8G, 8:8vCore16G, 12:12vCore24G, 16:16vCore32G, 100:unlimited
70
- */
71
- WorkerSize: number
72
- /**
73
- * 环境资源配置,worker副本数
74
- */
75
- WorkerReplica: number
76
- /**
77
- * 正在运行的应用实例数量
78
- */
79
- RunningInstanceCount: number
80
- /**
81
- * 已使用cpu核数
82
- */
83
- CpuUsed: number
84
- /**
85
- * cpu核数上限
86
- */
87
- CpuLimit: number
88
- /**
89
- * 已使用内存 MB
90
- */
91
- MemoryUsed: number
92
- /**
93
- * 内存上限 MB
94
- */
95
- MemoryLimit: number
96
- /**
97
- * 环境过期时间
98
- 注意:此字段可能返回 null,表示取不到有效值。
99
- */
100
- ExpiredAt: number
101
- /**
102
- * 收费类型:0:缺省,1:自助下单页购买(支持续费/升配等操作),2:代销下单页购买
103
- 注意:此字段可能返回 null,表示取不到有效值。
104
- */
105
- ChargeType: number
106
- /**
107
- * 资源限制类型:0:无限制,1:有限制
108
- 注意:此字段可能返回 null,表示取不到有效值。
109
- */
110
- ResourceLimitType: number
111
- /**
112
- * 是否开启自动续费
113
- 注意:此字段可能返回 null,表示取不到有效值。
114
- */
115
- AutoRenewal: boolean
116
- /**
117
- * 扩展组件列表
118
- 注意:此字段可能返回 null,表示取不到有效值。
119
- */
120
- WorkerExtensions: Array<RuntimeExtensionMC>
121
- /**
122
- * 环境类型:0: sandbox, 1:shared, 2:private 3: trial
123
- 注意:此字段可能返回 null,表示取不到有效值。
124
- */
125
- RuntimeType: number
126
- /**
127
- * 环境运行类型:0:运行时类型、1:api类型、2:etl环境
128
- 注意:此字段可能返回 null,表示取不到有效值。
129
- */
130
- RuntimeClass: number
131
- /**
132
- * 已使用出带宽 Mbps
133
- 注意:此字段可能返回 null,表示取不到有效值。
134
- */
135
- BandwidthOutUsed: number
136
- /**
137
- * 出带宽上限 Mbps
138
- 注意:此字段可能返回 null,表示取不到有效值。
139
- */
140
- BandwidthOutLimit: number
141
- }
142
-
143
- /**
144
- * GetRuntimeResourceMonitorMetricMC返回参数结构体
145
- */
146
- export interface GetRuntimeResourceMonitorMetricMCResponse {
147
- /**
148
- * 指标名称,K8sWorkloadCpuCoreUsed,K8sWorkloadMemUsageBytes,K8sWorkloadNetworkReceiveBytesBw,K8sWorkloadNetworkTransmitBytesBw
149
- */
150
- MetricType?: string
151
- /**
152
- * metric数值列表
153
- */
154
- Values?: Array<MetricValueMC>
155
- /**
156
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
157
- */
158
- RequestId?: string
159
- }
160
-
161
- /**
162
- * ListRuntimeDeployedInstancesMC请求参数结构体
163
- */
164
- export interface ListRuntimeDeployedInstancesMCRequest {
165
- /**
166
- * 运行时id
167
- */
168
- RuntimeId: number
169
- /**
170
- * 最大请求数量
171
- */
172
- Limit: number
173
- /**
174
- * 请求偏移量
175
- */
176
- Offset: number
177
- /**
178
- * 排序类型:1:创建时间排序, 2:更新时间排序(默认)
179
- */
180
- SortType: number
181
- /**
182
- * 排序方式:asc,desc(默认)
183
- */
184
- Sort: string
185
- /**
186
- * 运行时地域
187
- */
188
- Zone: string
189
- /**
190
- * 1:3.0版本新控制台传1;否则传0
191
- */
192
- ApiVersion?: number
193
- /**
194
- * -1:不按项目筛选,获取所有
195
- >=0: 按项目id筛选
196
- */
197
- GroupId?: number
198
- /**
199
- * -2: 不按状态筛选,获取所有
200
- 0: 运行中
201
- 2: 已停止
202
- */
203
- Status?: number
204
- /**
205
- * 0: 应用集成
206
- 1: API管理
207
- 2: ETL
208
- */
209
- RuntimeClass?: number
210
- }
211
-
212
- /**
213
- * 运行环境扩展组件
214
- */
215
- export interface RuntimeExtensionMC {
216
- /**
217
- * 扩展组件类型:0:cdc 1:dataway-java
218
- */
219
- Type: number
220
- /**
221
- * 部署规格vcore数
222
- */
223
- Size?: number
224
- /**
225
- * 副本数
226
- */
227
- Replica?: number
228
- /**
229
- * 扩展组件名称
230
- */
231
- Name?: string
232
- /**
233
- * 状态 1:未启用 2:已启用
234
- */
235
- Status?: number
236
- /**
237
- * 创建时间
238
- */
239
- CreatedAt?: number
240
- /**
241
- * 修改时间
242
- */
243
- UpdatedAt?: number
244
- }
245
-
246
- /**
247
- * ListDeployableRuntimesMC返回参数结构体
248
- */
249
- export interface ListDeployableRuntimesMCResponse {
250
- /**
251
- * 运行时列表
252
- */
253
- Runtimes?: Array<AbstractRuntimeMC>
254
- /**
255
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
256
- */
257
- RequestId?: string
258
- }
259
-
260
- /**
261
- * GetRuntimeMC返回参数结构体
262
- */
263
- export interface GetRuntimeMCResponse {
264
- /**
265
- * 运行时详情
266
- */
267
- Runtime: RuntimeMC
268
- /**
269
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
270
- */
271
- RequestId?: string
272
- }
273
-
274
- /**
275
- * ListDeployableRuntimesMC请求参数结构体
276
- */
277
- export interface ListDeployableRuntimesMCRequest {
278
- /**
279
- * 应用id
280
- */
281
- ProjectId?: number
282
- /**
283
- * 实例id
284
- */
285
- InstanceId?: number
286
- /**
287
- * 版本类型 0-pro 1-lite
288
- */
289
- PlanType?: number
290
- /**
291
- * 0:应用集成,1:API,2:ETL
292
- */
293
- RuntimeClass?: number
294
- }
295
-
296
- /**
297
- * ListRuntimesMC请求参数结构体
298
- */
299
- export interface ListRuntimesMCRequest {
300
- /**
301
- * 环境运行类型:0:运行时类型、1:api类型
302
- */
303
- RuntimeClass?: number
304
- /**
305
- * 计划类型:0-pro 1-lite
306
- */
307
- PlanType?: number
308
- }
309
-
310
- /**
311
- * GetRuntimeMC请求参数结构体
312
- */
313
- export interface GetRuntimeMCRequest {
314
- /**
315
- * 环境id
316
- */
317
- RuntimeId: number
318
- /**
319
- * 环境地域
320
- */
321
- Zone: string
322
- /**
323
- * 环境运行类型:0:运行时类型、1:api类型
324
- */
325
- RuntimeClass?: number
326
- }
327
-
328
- /**
329
- * GetMonitorMetricResponse
330
- */
331
- export interface MetricValueMC {
332
- /**
333
- * 时间
334
- 注意:此字段可能返回 null,表示取不到有效值。
335
- */
336
- Time: number
337
- /**
338
- * 对应的value值
339
- 注意:此字段可能返回 null,表示取不到有效值。
340
- */
341
- Val: string
342
- }
343
-
344
- /**
345
- * GetRuntimeResourceMonitorMetricMC请求参数结构体
346
- */
347
- export interface GetRuntimeResourceMonitorMetricMCRequest {
348
- /**
349
- * 运行时id
350
- */
351
- RuntimeId: number
352
- /**
353
- * 起始时间
354
- */
355
- StartTime: number
356
- /**
357
- * 结束时间
358
- */
359
- EndTime: number
360
- /**
361
- * 指标类型:0:CPU, 1:MemUsageBytes, 2:K8sWorkloadNetworkReceiveBytesBw, 3:K8sWorkloadNetworkTransmitBytesBw
362
- */
363
- MetricType: number
364
- /**
365
- * 是否返回百分比数值,仅支持CPU,Memory
366
- */
367
- RateType: boolean
368
- /**
369
- * 采样粒度:60(s), 300(s), 3600(s), 86400(s)
370
- */
371
- Interval?: number
372
- /**
373
- * 环境运行类型:0:运行时类型、1:api类型
374
- */
375
- RuntimeClass?: number
376
- /**
377
- * 资源指标聚合类型:0: 环境维度 1:执行引擎维度 2:datatwaypy维度 3.datawayjava维度
378
- */
379
- AggregationType?: number
380
- }
381
-
382
- /**
383
- * 运行时精简信息
384
- */
385
- export interface AbstractRuntimeMC {
386
- /**
387
- * 环境id
388
- */
389
- RuntimeId: number
390
- /**
391
- * 环境名称,用户输入,同一uin内唯一
392
- */
393
- DisplayName: string
394
- /**
395
- * 环境类型:0: sandbox, 1:shared, 2:private
396
- */
397
- Type: number
398
- /**
399
- * 环境所在地域,tianjin,beijiing,guangzhou等
400
- */
401
- Zone: string
402
- /**
403
- * 环境所在地域,tianjin,beijiing,guangzhou等(同Zone)
404
- */
405
- Area: string
406
- /**
407
- * 环境应用listener地址后缀
408
- */
409
- Addr: string
410
- /**
411
- * 环境状态
412
- */
413
- Status: number
414
- /**
415
- * 环境过期时间
416
- */
417
- ExpiredAt: number
418
- /**
419
- * 环境运行类型:0:运行时类型、1:api类型
420
- */
421
- RuntimeClass: number
422
- /**
423
- * 是否已在当前环境发布
424
- 注意:此字段可能返回 null,表示取不到有效值。
425
- */
426
- Deployed: boolean
427
- /**
428
- * 环境扩展组件是否满足应用要求:0=true, 1=false 表示该应用需要扩展组件0(cdc)以及1(java),但是独立环境有cdc无java,不满足发布要求
429
- 注意:此字段可能返回 null,表示取不到有效值。
430
- */
431
- MatchExtensions?: string
432
- }
433
-
434
- /**
435
- * ListRuntimeDeployedInstancesMC返回参数结构体
436
- */
437
- export interface ListRuntimeDeployedInstancesMCResponse {
438
- /**
439
- * 运行时所部属的应用实例列表
440
- */
441
- Instances?: Array<RuntimeDeployedInstanceMC>
442
- /**
443
- * 满足条件的记录总数,用于分页器
444
- */
445
- TotalCount?: number
446
- /**
447
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
448
- */
449
- RequestId?: string
450
- }
451
-
452
- /**
453
- * 运行时部署的应用实例详情
454
- */
455
- export interface RuntimeDeployedInstanceMC {
456
- /**
457
- * 项目id
458
- */
459
- GroupId: number
460
- /**
461
- * 项目名称
462
- */
463
- GroupName: string
464
- /**
465
- * 应用id
466
- */
467
- ProjectId: number
468
- /**
469
- * 应用名称
470
- */
471
- ProjectName: string
472
- /**
473
- * 应用实例id
474
- */
475
- InstanceId: number
476
- /**
477
- * 应用实例版本
478
- */
479
- InstanceVersion: number
480
- /**
481
- * 应用实例创建时间
482
- */
483
- InstanceCreatedAt: number
484
- /**
485
- * 应用实例部署状态. 0:running, 1:deleting
486
- */
487
- Status: number
488
- /**
489
- * 应用实例部署创建时间
490
- */
491
- CreatedAt: number
492
- /**
493
- * 应用实例部署更新时间
494
- */
495
- UpdatedAt: number
496
- /**
497
- * 应用类型:0:NormalApp普通应用 1:TemplateApp模板应用 2:LightApp轻应用 3:MicroConnTemplate微连接模板 4:MicroConnApp微连接应用
498
- */
499
- ProjectType: number
500
- /**
501
- * 应用版本:0:旧版 1:3.0新控制台
502
- */
503
- ProjectVersion: number
504
- }
@@ -1,6 +0,0 @@
1
- import * as Models from "./eis_models"
2
- import { Client } from "./eis_client"
3
- export const v20210601 = {
4
- Client: Client,
5
- Models: Models,
6
- }
@@ -1 +0,0 @@
1
- export { eis } from "./eis"
package/tsconfig.json DELETED
@@ -1,33 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // "incremental": true, /* 增量编译 提高编译速度*/
4
- "target": "ES2019" /* 编译目标ES版本*/,
5
- "module": "commonjs" /* 编译目标模块系统*/,
6
- // "lib": [], /* 编译过程中需要引入的库文件列表*/
7
- "declaration": true /* 编译时创建声明文件 */,
8
- "outDir": "tencentcloud" /* ts编译输出目录 */,
9
- "rootDir": "src" /* ts编译根目录. */,
10
- "importHelpers": true /* 从tslib导入辅助工具函数(如__importDefault)*/,
11
- "strict": true /* 严格模式开关 等价于noImplicitAny、strictNullChecks、strictFunctionTypes、strictBindCallApply等设置true */,
12
- "strictNullChecks": false,
13
- "noUnusedLocals": false /* 未使用局部变量报错*/,
14
- "noUnusedParameters": false /* 未使用参数报错*/,
15
- "noImplicitReturns": true /* 有代码路径没有返回值时报错*/,
16
- "noFallthroughCasesInSwitch": true /* 不允许switch的case语句贯穿*/,
17
- "moduleResolution": "node" /* 模块解析策略 */,
18
- "typeRoots": [
19
- /* 要包含的类型声明文件路径列表*/
20
- "./typings",
21
- "./node_modules/@types"
22
- ],
23
- "allowSyntheticDefaultImports": true /* 允许从没有设置默认导出的模块中默认导入,仅用于提示,不影响编译结果*/,
24
- "esModuleInterop": false /* 允许编译生成文件时,在代码中注入工具类(__importDefault、__importStar)对ESM与commonjs混用情况做兼容处理*/,
25
- "sourceMap": false
26
- },
27
- "include": [
28
- /* 需要编译的文件 */
29
- "src/**/*.ts",
30
- "typings/**/*.ts"
31
- ],
32
- "exclude": []
33
- }
@@ -1,2 +0,0 @@
1
- declare module "get-stream"
2
- declare module "is-stream"