tencentcloud-sdk-nodejs-tse 4.0.1050 → 4.1.11

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 @@
1
+ export { tse } from "./tse";
@@ -0,0 +1,4 @@
1
+ import { v20201207 } from "./v20201207";
2
+ export const tse = {
3
+ v20201207: v20201207,
4
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./tse_models";
2
+ import { Client } from "./tse_client";
3
+ export const v20201207 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,363 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("tse.tencentcloudapi.com", "2020-12-07", clientConfig);
5
+ }
6
+ async DescribeOneCloudNativeAPIGatewayService(req, cb) {
7
+ return this.request("DescribeOneCloudNativeAPIGatewayService", req, cb);
8
+ }
9
+ async UpdateEngineInternetAccess(req, cb) {
10
+ return this.request("UpdateEngineInternetAccess", req, cb);
11
+ }
12
+ async DescribeCloudNativeAPIGatewayServiceRateLimit(req, cb) {
13
+ return this.request("DescribeCloudNativeAPIGatewayServiceRateLimit", req, cb);
14
+ }
15
+ async ModifyCloudNativeAPIGatewayCertificate(req, cb) {
16
+ return this.request("ModifyCloudNativeAPIGatewayCertificate", req, cb);
17
+ }
18
+ async DeleteCloudNativeAPIGatewayPublicNetwork(req, cb) {
19
+ return this.request("DeleteCloudNativeAPIGatewayPublicNetwork", req, cb);
20
+ }
21
+ async DescribeGovernanceAliases(req, cb) {
22
+ return this.request("DescribeGovernanceAliases", req, cb);
23
+ }
24
+ async DeleteConfigFileGroup(req, cb) {
25
+ return this.request("DeleteConfigFileGroup", req, cb);
26
+ }
27
+ async CreateConfigFileGroup(req, cb) {
28
+ return this.request("CreateConfigFileGroup", req, cb);
29
+ }
30
+ async DeleteEngine(req, cb) {
31
+ return this.request("DeleteEngine", req, cb);
32
+ }
33
+ async ModifyGovernanceServices(req, cb) {
34
+ return this.request("ModifyGovernanceServices", req, cb);
35
+ }
36
+ async DescribeCloudNativeAPIGateways(req, cb) {
37
+ return this.request("DescribeCloudNativeAPIGateways", req, cb);
38
+ }
39
+ async CreateCloudNativeAPIGatewayCertificate(req, cb) {
40
+ return this.request("CreateCloudNativeAPIGatewayCertificate", req, cb);
41
+ }
42
+ async DescribeCloudNativeAPIGatewayServices(req, cb) {
43
+ return this.request("DescribeCloudNativeAPIGatewayServices", req, cb);
44
+ }
45
+ async ModifyCloudNativeAPIGatewayRouteRateLimit(req, cb) {
46
+ return this.request("ModifyCloudNativeAPIGatewayRouteRateLimit", req, cb);
47
+ }
48
+ async DeleteGovernanceAliases(req, cb) {
49
+ return this.request("DeleteGovernanceAliases", req, cb);
50
+ }
51
+ async DescribeZookeeperReplicas(req, cb) {
52
+ return this.request("DescribeZookeeperReplicas", req, cb);
53
+ }
54
+ async DeleteGovernanceInstances(req, cb) {
55
+ return this.request("DeleteGovernanceInstances", req, cb);
56
+ }
57
+ async CreateCloudNativeAPIGatewayCanaryRule(req, cb) {
58
+ return this.request("CreateCloudNativeAPIGatewayCanaryRule", req, cb);
59
+ }
60
+ async DescribeWafDomains(req, cb) {
61
+ return this.request("DescribeWafDomains", req, cb);
62
+ }
63
+ async DescribeCloudNativeAPIGatewayCertificateDetails(req, cb) {
64
+ return this.request("DescribeCloudNativeAPIGatewayCertificateDetails", req, cb);
65
+ }
66
+ async DescribeAutoScalerResourceStrategies(req, cb) {
67
+ return this.request("DescribeAutoScalerResourceStrategies", req, cb);
68
+ }
69
+ async ModifyNativeGatewayServiceSource(req, cb) {
70
+ return this.request("ModifyNativeGatewayServiceSource", req, cb);
71
+ }
72
+ async ModifyNetworkBasicInfo(req, cb) {
73
+ return this.request("ModifyNetworkBasicInfo", req, cb);
74
+ }
75
+ async DeleteCloudNativeAPIGatewayCertificate(req, cb) {
76
+ return this.request("DeleteCloudNativeAPIGatewayCertificate", req, cb);
77
+ }
78
+ async DescribeGovernanceServiceContracts(req, cb) {
79
+ return this.request("DescribeGovernanceServiceContracts", req, cb);
80
+ }
81
+ async UpdateCloudNativeAPIGatewayCertificateInfo(req, cb) {
82
+ return this.request("UpdateCloudNativeAPIGatewayCertificateInfo", req, cb);
83
+ }
84
+ async DescribeAllConfigFileTemplates(req, cb) {
85
+ return this.request("DescribeAllConfigFileTemplates", req, cb);
86
+ }
87
+ async CreateNativeGatewayServerGroup(req, cb) {
88
+ return this.request("CreateNativeGatewayServerGroup", req, cb);
89
+ }
90
+ async DeleteCloudNativeAPIGatewayServiceRateLimit(req, cb) {
91
+ return this.request("DeleteCloudNativeAPIGatewayServiceRateLimit", req, cb);
92
+ }
93
+ async DescribeZookeeperServerInterfaces(req, cb) {
94
+ return this.request("DescribeZookeeperServerInterfaces", req, cb);
95
+ }
96
+ async DeleteConfigFiles(req, cb) {
97
+ return this.request("DeleteConfigFiles", req, cb);
98
+ }
99
+ async ModifyAutoScalerResourceStrategy(req, cb) {
100
+ return this.request("ModifyAutoScalerResourceStrategy", req, cb);
101
+ }
102
+ async DescribeInstanceTagInfos(req, cb) {
103
+ return this.request("DescribeInstanceTagInfos", req, cb);
104
+ }
105
+ async PublishConfigFiles(req, cb) {
106
+ return this.request("PublishConfigFiles", req, cb);
107
+ }
108
+ async DeleteGovernanceServices(req, cb) {
109
+ return this.request("DeleteGovernanceServices", req, cb);
110
+ }
111
+ async DescribeConfigFile(req, cb) {
112
+ return this.request("DescribeConfigFile", req, cb);
113
+ }
114
+ async DescribeConfigFileReleases(req, cb) {
115
+ return this.request("DescribeConfigFileReleases", req, cb);
116
+ }
117
+ async CloseWafProtection(req, cb) {
118
+ return this.request("CloseWafProtection", req, cb);
119
+ }
120
+ async CreateCloudNativeAPIGateway(req, cb) {
121
+ return this.request("CreateCloudNativeAPIGateway", req, cb);
122
+ }
123
+ async DescribeCloudNativeAPIGatewayRouteRateLimit(req, cb) {
124
+ return this.request("DescribeCloudNativeAPIGatewayRouteRateLimit", req, cb);
125
+ }
126
+ async ModifyCloudNativeAPIGatewayService(req, cb) {
127
+ return this.request("ModifyCloudNativeAPIGatewayService", req, cb);
128
+ }
129
+ async DescribeAutoScalerResourceStrategyBindingGroups(req, cb) {
130
+ return this.request("DescribeAutoScalerResourceStrategyBindingGroups", req, cb);
131
+ }
132
+ async DescribeConfigFileRelease(req, cb) {
133
+ return this.request("DescribeConfigFileRelease", req, cb);
134
+ }
135
+ async DescribeGovernanceNamespaces(req, cb) {
136
+ return this.request("DescribeGovernanceNamespaces", req, cb);
137
+ }
138
+ async DeleteGovernanceInstancesByHost(req, cb) {
139
+ return this.request("DeleteGovernanceInstancesByHost", req, cb);
140
+ }
141
+ async CreateCloudNativeAPIGatewayRoute(req, cb) {
142
+ return this.request("CreateCloudNativeAPIGatewayRoute", req, cb);
143
+ }
144
+ async CreateGovernanceInstances(req, cb) {
145
+ return this.request("CreateGovernanceInstances", req, cb);
146
+ }
147
+ async DeleteCloudNativeAPIGatewayRouteRateLimit(req, cb) {
148
+ return this.request("DeleteCloudNativeAPIGatewayRouteRateLimit", req, cb);
149
+ }
150
+ async DeleteConfigFileReleases(req, cb) {
151
+ return this.request("DeleteConfigFileReleases", req, cb);
152
+ }
153
+ async DeleteAutoScalerResourceStrategy(req, cb) {
154
+ return this.request("DeleteAutoScalerResourceStrategy", req, cb);
155
+ }
156
+ async ModifyCloudNativeAPIGatewayRoute(req, cb) {
157
+ return this.request("ModifyCloudNativeAPIGatewayRoute", req, cb);
158
+ }
159
+ async DeleteNativeGatewayServerGroup(req, cb) {
160
+ return this.request("DeleteNativeGatewayServerGroup", req, cb);
161
+ }
162
+ async DescribeCloudNativeAPIGatewayPorts(req, cb) {
163
+ return this.request("DescribeCloudNativeAPIGatewayPorts", req, cb);
164
+ }
165
+ async DescribeCloudNativeAPIGatewayCanaryRules(req, cb) {
166
+ return this.request("DescribeCloudNativeAPIGatewayCanaryRules", req, cb);
167
+ }
168
+ async DescribeSREInstanceAccessAddress(req, cb) {
169
+ return this.request("DescribeSREInstanceAccessAddress", req, cb);
170
+ }
171
+ async ModifyConsoleNetwork(req, cb) {
172
+ return this.request("ModifyConsoleNetwork", req, cb);
173
+ }
174
+ async DescribeNacosReplicas(req, cb) {
175
+ return this.request("DescribeNacosReplicas", req, cb);
176
+ }
177
+ async DescribeUpstreamHealthCheckConfig(req, cb) {
178
+ return this.request("DescribeUpstreamHealthCheckConfig", req, cb);
179
+ }
180
+ async DescribeNativeGatewayServiceSources(req, cb) {
181
+ return this.request("DescribeNativeGatewayServiceSources", req, cb);
182
+ }
183
+ async DescribeCloudNativeAPIGatewayInfoByIp(req, cb) {
184
+ return this.request("DescribeCloudNativeAPIGatewayInfoByIp", req, cb);
185
+ }
186
+ async ModifyNativeGatewayServerGroup(req, cb) {
187
+ return this.request("ModifyNativeGatewayServerGroup", req, cb);
188
+ }
189
+ async DescribeCloudNativeAPIGatewayCertificates(req, cb) {
190
+ return this.request("DescribeCloudNativeAPIGatewayCertificates", req, cb);
191
+ }
192
+ async ModifyCloudNativeAPIGatewayServiceRateLimit(req, cb) {
193
+ return this.request("ModifyCloudNativeAPIGatewayServiceRateLimit", req, cb);
194
+ }
195
+ async CreateNativeGatewayServiceSource(req, cb) {
196
+ return this.request("CreateNativeGatewayServiceSource", req, cb);
197
+ }
198
+ async RestartSREInstance(req, cb) {
199
+ return this.request("RestartSREInstance", req, cb);
200
+ }
201
+ async CreateGovernanceAlias(req, cb) {
202
+ return this.request("CreateGovernanceAlias", req, cb);
203
+ }
204
+ async DescribeGovernanceInstances(req, cb) {
205
+ return this.request("DescribeGovernanceInstances", req, cb);
206
+ }
207
+ async DescribeGovernanceServices(req, cb) {
208
+ return this.request("DescribeGovernanceServices", req, cb);
209
+ }
210
+ async DeleteCloudNativeAPIGatewayCanaryRule(req, cb) {
211
+ return this.request("DeleteCloudNativeAPIGatewayCanaryRule", req, cb);
212
+ }
213
+ async DescribeCloudNativeAPIGatewayNodes(req, cb) {
214
+ return this.request("DescribeCloudNativeAPIGatewayNodes", req, cb);
215
+ }
216
+ async UnbindAutoScalerResourceStrategyFromGroups(req, cb) {
217
+ return this.request("UnbindAutoScalerResourceStrategyFromGroups", req, cb);
218
+ }
219
+ async DescribeConfigFileReleaseVersions(req, cb) {
220
+ return this.request("DescribeConfigFileReleaseVersions", req, cb);
221
+ }
222
+ async DescribeSREInstances(req, cb) {
223
+ return this.request("DescribeSREInstances", req, cb);
224
+ }
225
+ async DescribeConfigFilesByGroup(req, cb) {
226
+ return this.request("DescribeConfigFilesByGroup", req, cb);
227
+ }
228
+ async DescribeWafProtection(req, cb) {
229
+ return this.request("DescribeWafProtection", req, cb);
230
+ }
231
+ async DescribeCloudNativeAPIGatewayConfig(req, cb) {
232
+ return this.request("DescribeCloudNativeAPIGatewayConfig", req, cb);
233
+ }
234
+ async CreateGovernanceNamespaces(req, cb) {
235
+ return this.request("CreateGovernanceNamespaces", req, cb);
236
+ }
237
+ async DescribeGovernanceServiceContractVersions(req, cb) {
238
+ return this.request("DescribeGovernanceServiceContractVersions", req, cb);
239
+ }
240
+ async UpdateUpstreamTargets(req, cb) {
241
+ return this.request("UpdateUpstreamTargets", req, cb);
242
+ }
243
+ async OpenWafProtection(req, cb) {
244
+ return this.request("OpenWafProtection", req, cb);
245
+ }
246
+ async ModifyCloudNativeAPIGatewayCanaryRule(req, cb) {
247
+ return this.request("ModifyCloudNativeAPIGatewayCanaryRule", req, cb);
248
+ }
249
+ async CreateCloudNativeAPIGatewayService(req, cb) {
250
+ return this.request("CreateCloudNativeAPIGatewayService", req, cb);
251
+ }
252
+ async DeleteCloudNativeAPIGateway(req, cb) {
253
+ return this.request("DeleteCloudNativeAPIGateway", req, cb);
254
+ }
255
+ async ModifyGovernanceNamespaces(req, cb) {
256
+ return this.request("ModifyGovernanceNamespaces", req, cb);
257
+ }
258
+ async DescribePublicNetwork(req, cb) {
259
+ return this.request("DescribePublicNetwork", req, cb);
260
+ }
261
+ async CreateAutoScalerResourceStrategy(req, cb) {
262
+ return this.request("CreateAutoScalerResourceStrategy", req, cb);
263
+ }
264
+ async CreateConfigFile(req, cb) {
265
+ return this.request("CreateConfigFile", req, cb);
266
+ }
267
+ async ModifyNetworkAccessStrategy(req, cb) {
268
+ return this.request("ModifyNetworkAccessStrategy", req, cb);
269
+ }
270
+ async DescribeCloudNativeAPIGatewayUpstream(req, cb) {
271
+ return this.request("DescribeCloudNativeAPIGatewayUpstream", req, cb);
272
+ }
273
+ async CreateOrUpdateConfigFileAndRelease(req, cb) {
274
+ return this.request("CreateOrUpdateConfigFileAndRelease", req, cb);
275
+ }
276
+ async ModifyGovernanceAlias(req, cb) {
277
+ return this.request("ModifyGovernanceAlias", req, cb);
278
+ }
279
+ async CreateWafDomains(req, cb) {
280
+ return this.request("CreateWafDomains", req, cb);
281
+ }
282
+ async ModifyConfigFileGroup(req, cb) {
283
+ return this.request("ModifyConfigFileGroup", req, cb);
284
+ }
285
+ async RollbackConfigFileReleases(req, cb) {
286
+ return this.request("RollbackConfigFileReleases", req, cb);
287
+ }
288
+ async CreateEngine(req, cb) {
289
+ return this.request("CreateEngine", req, cb);
290
+ }
291
+ async ModifyUpstreamNodeStatus(req, cb) {
292
+ return this.request("ModifyUpstreamNodeStatus", req, cb);
293
+ }
294
+ async BindAutoScalerResourceStrategyToGroups(req, cb) {
295
+ return this.request("BindAutoScalerResourceStrategyToGroups", req, cb);
296
+ }
297
+ async CreateCloudNativeAPIGatewayRouteRateLimit(req, cb) {
298
+ return this.request("CreateCloudNativeAPIGatewayRouteRateLimit", req, cb);
299
+ }
300
+ async DeleteWafDomains(req, cb) {
301
+ return this.request("DeleteWafDomains", req, cb);
302
+ }
303
+ async DescribePublicAddressConfig(req, cb) {
304
+ return this.request("DescribePublicAddressConfig", req, cb);
305
+ }
306
+ async DeleteCloudNativeAPIGatewayService(req, cb) {
307
+ return this.request("DeleteCloudNativeAPIGatewayService", req, cb);
308
+ }
309
+ async DescribeCloudNativeAPIGatewayRoutes(req, cb) {
310
+ return this.request("DescribeCloudNativeAPIGatewayRoutes", req, cb);
311
+ }
312
+ async DescribeConfigFileGroups(req, cb) {
313
+ return this.request("DescribeConfigFileGroups", req, cb);
314
+ }
315
+ async DescribeCloudNativeAPIGateway(req, cb) {
316
+ return this.request("DescribeCloudNativeAPIGateway", req, cb);
317
+ }
318
+ async DeleteCloudNativeAPIGatewayRoute(req, cb) {
319
+ return this.request("DeleteCloudNativeAPIGatewayRoute", req, cb);
320
+ }
321
+ async CreateCloudNativeAPIGatewayPublicNetwork(req, cb) {
322
+ return this.request("CreateCloudNativeAPIGatewayPublicNetwork", req, cb);
323
+ }
324
+ async DescribeNacosServerInterfaces(req, cb) {
325
+ return this.request("DescribeNacosServerInterfaces", req, cb);
326
+ }
327
+ async ModifyConfigFiles(req, cb) {
328
+ return this.request("ModifyConfigFiles", req, cb);
329
+ }
330
+ async UpdateCloudNativeAPIGatewaySpec(req, cb) {
331
+ return this.request("UpdateCloudNativeAPIGatewaySpec", req, cb);
332
+ }
333
+ async CreateGovernanceServices(req, cb) {
334
+ return this.request("CreateGovernanceServices", req, cb);
335
+ }
336
+ async DeleteGovernanceNamespaces(req, cb) {
337
+ return this.request("DeleteGovernanceNamespaces", req, cb);
338
+ }
339
+ async ModifyGovernanceInstances(req, cb) {
340
+ return this.request("ModifyGovernanceInstances", req, cb);
341
+ }
342
+ async DescribeConfigFiles(req, cb) {
343
+ return this.request("DescribeConfigFiles", req, cb);
344
+ }
345
+ async ModifyCloudNativeAPIGateway(req, cb) {
346
+ return this.request("ModifyCloudNativeAPIGateway", req, cb);
347
+ }
348
+ async CreateCloudNativeAPIGatewayServiceRateLimit(req, cb) {
349
+ return this.request("CreateCloudNativeAPIGatewayServiceRateLimit", req, cb);
350
+ }
351
+ async DeleteNativeGatewayServiceSource(req, cb) {
352
+ return this.request("DeleteNativeGatewayServiceSource", req, cb);
353
+ }
354
+ async DescribeConfigFileReleaseHistories(req, cb) {
355
+ return this.request("DescribeConfigFileReleaseHistories", req, cb);
356
+ }
357
+ async DescribeNativeGatewayServerGroups(req, cb) {
358
+ return this.request("DescribeNativeGatewayServerGroups", req, cb);
359
+ }
360
+ async UpdateUpstreamHealthCheckConfig(req, cb) {
361
+ return this.request("UpdateUpstreamHealthCheckConfig", req, cb);
362
+ }
363
+ }
File without changes
package/package.json CHANGED
@@ -1,16 +1,26 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tse",
3
- "version": "4.0.1050",
3
+ "version": "4.1.11",
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,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20201207 = void 0;
4
- const Models = require("./tse_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./tse_models"));
5
6
  const tse_client_1 = require("./tse_client");
6
7
  exports.v20201207 = {
7
8
  Client: tse_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
  * tse client
24
25
  * @class
@@ -981,17 +981,14 @@ export interface SourceInstanceAuth {
981
981
  export interface AutoScalerPolicy {
982
982
  /**
983
983
  * 类型,Pods
984
- 注意:此字段可能返回 null,表示取不到有效值。
985
984
  */
986
985
  Type?: string;
987
986
  /**
988
987
  * 数量
989
- 注意:此字段可能返回 null,表示取不到有效值。
990
988
  */
991
989
  Value?: number;
992
990
  /**
993
991
  * 扩容周期
994
- 注意:此字段可能返回 null,表示取不到有效值。
995
992
  */
996
993
  PeriodSeconds?: number;
997
994
  }
@@ -1033,22 +1030,18 @@ export interface KVMapping {
1033
1030
  export interface CloudNativeAPIGatewayStrategyCronScalerConfigParam {
1034
1031
  /**
1035
1032
  * 定时伸缩周期
1036
- 注意:此字段可能返回 null,表示取不到有效值。
1037
1033
  */
1038
1034
  Period?: string;
1039
1035
  /**
1040
1036
  * 定时伸缩开始时间
1041
- 注意:此字段可能返回 null,表示取不到有效值。
1042
1037
  */
1043
1038
  StartAt?: string;
1044
1039
  /**
1045
1040
  * 定时伸缩目标节点数,不超过指标伸缩中定义的最大节点数
1046
- 注意:此字段可能返回 null,表示取不到有效值。
1047
1041
  */
1048
1042
  TargetReplicas?: number;
1049
1043
  /**
1050
1044
  * 定时伸缩cron表达式,无需输入
1051
- 注意:此字段可能返回 null,表示取不到有效值。
1052
1045
  */
1053
1046
  Crontab?: string;
1054
1047
  }
@@ -1260,12 +1253,10 @@ export interface DeleteCloudNativeAPIGatewayRouteRateLimitRequest {
1260
1253
  export interface AutoScalerBehavior {
1261
1254
  /**
1262
1255
  * 扩容行为配置
1263
- 注意:此字段可能返回 null,表示取不到有效值。
1264
1256
  */
1265
1257
  ScaleUp?: AutoScalerRules;
1266
1258
  /**
1267
1259
  * 缩容行为配置
1268
- 注意:此字段可能返回 null,表示取不到有效值。
1269
1260
  */
1270
1261
  ScaleDown?: AutoScalerRules;
1271
1262
  }
@@ -2053,7 +2044,6 @@ export interface ModifyCloudNativeAPIGatewayServiceRateLimitResponse {
2053
2044
  export interface CloudNativeAPIGatewayStrategyAutoScalerConfig {
2054
2045
  /**
2055
2046
  * 最大副本数
2056
- 注意:此字段可能返回 null,表示取不到有效值。
2057
2047
  */
2058
2048
  MaxReplicas?: number;
2059
2049
  /**
@@ -2185,17 +2175,14 @@ export interface DescribeSREInstancesResponse {
2185
2175
  export interface AutoScalerRules {
2186
2176
  /**
2187
2177
  * 稳定窗口时间,扩容时默认0,缩容时默认300
2188
- 注意:此字段可能返回 null,表示取不到有效值。
2189
2178
  */
2190
2179
  StabilizationWindowSeconds?: number;
2191
2180
  /**
2192
2181
  * 选择策略依据
2193
- 注意:此字段可能返回 null,表示取不到有效值。
2194
2182
  */
2195
2183
  SelectPolicy?: string;
2196
2184
  /**
2197
2185
  * 扩缩容策略
2198
- 注意:此字段可能返回 null,表示取不到有效值。
2199
2186
  */
2200
2187
  Policies?: Array<AutoScalerPolicy>;
2201
2188
  }
@@ -7407,7 +7394,6 @@ export interface CreateAutoScalerResourceStrategyResponse {
7407
7394
  Result?: boolean;
7408
7395
  /**
7409
7396
  * 策略Id
7410
- 注意:此字段可能返回 null,表示取不到有效值。
7411
7397
  */
7412
7398
  StrategyId?: string;
7413
7399
  /**
@@ -7487,17 +7473,14 @@ export interface CloudNativeAPIGatewayStrategyAutoScalerConfigMetric {
7487
7473
  * 指标资源名称
7488
7474
  - cpu
7489
7475
  - memory
7490
- 注意:此字段可能返回 null,表示取不到有效值。
7491
7476
  */
7492
7477
  ResourceName?: string;
7493
7478
  /**
7494
7479
  * 指标目标类型,目前只支持百分比Utilization
7495
- 注意:此字段可能返回 null,表示取不到有效值。
7496
7480
  */
7497
7481
  TargetType?: string;
7498
7482
  /**
7499
7483
  * 指标目标值
7500
- 注意:此字段可能返回 null,表示取不到有效值。
7501
7484
  */
7502
7485
  TargetValue?: number;
7503
7486
  }
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 { tse } from "./tse"
@@ -1,5 +0,0 @@
1
- import { v20201207 } from "./v20201207"
2
-
3
- export const tse = {
4
- v20201207: v20201207,
5
- }