tencentcloud-sdk-nodejs 4.0.498 → 4.0.500
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/CHANGELOG.md +358 -0
- package/SERVICE_CHANGELOG.md +309 -205
- package/package.json +1 -1
- package/products.md +21 -21
- package/src/common/abstract_client.ts +11 -5
- package/src/common/interface.ts +45 -43
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +3 -2
- package/src/services/batch/v20170312/batch_client.ts +1 -0
- package/src/services/batch/v20170312/batch_models.ts +19 -0
- package/src/services/cdb/v20170320/cdb_models.ts +1 -1
- package/src/services/clb/v20180317/clb_models.ts +43 -1
- package/src/services/es/v20180416/es_models.ts +2 -2
- package/src/services/ess/v20201111/ess_client.ts +1 -113
- package/src/services/ess/v20201111/ess_models.ts +129 -13
- package/src/services/essbasic/v20210526/essbasic_models.ts +8 -3
- package/src/services/monitor/v20180724/monitor_models.ts +35 -35
- package/src/services/ms/v20180408/ms_models.ts +19 -360
- package/src/services/nlp/v20190408/nlp_models.ts +9 -9
- package/src/services/ocr/v20181119/ocr_models.ts +10 -0
- package/src/services/privatedns/v20201028/privatedns_models.ts +24 -0
- package/src/services/rum/v20210622/rum_models.ts +16 -0
- package/src/services/tcss/v20201101/tcss_models.ts +2 -2
- package/src/services/tem/v20210701/tem_client.ts +1 -0
- package/src/services/tem/v20210701/tem_models.ts +58 -0
- package/src/services/teo/v20220901/teo_client.ts +1 -0
- package/src/services/teo/v20220901/teo_models.ts +198 -43
- package/src/services/tmt/v20180321/tmt_models.ts +10 -10
- package/src/services/trtc/v20190722/trtc_models.ts +1 -1
- package/src/services/vod/v20180717/vod_client.ts +19 -3
- package/src/services/vod/v20180717/vod_models.ts +169 -19
- package/src/services/waf/v20180125/waf_models.ts +34 -0
- package/tencentcloud/common/abstract_client.d.ts +2 -2
- package/tencentcloud/common/interface.d.ts +44 -43
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +2 -1
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +17 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +1 -1
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +36 -1
- package/tencentcloud/services/es/v20180416/es_models.d.ts +2 -2
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -113
- package/tencentcloud/services/ess/v20201111/ess_client.js +1 -113
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +126 -11
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +7 -3
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +35 -35
- package/tencentcloud/services/ms/v20180408/ms_models.d.ts +16 -357
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +9 -9
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +9 -0
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +20 -0
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +13 -0
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +2 -2
- package/tencentcloud/services/tem/v20210701/tem_models.d.ts +48 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +165 -34
- package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +10 -10
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +7 -1
- package/tencentcloud/services/vod/v20180717/vod_client.js +8 -0
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +145 -19
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +28 -0
- package/test/vod.v20180717.test.js +10 -0
package/products.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2022-11-14 06:09:18 |
|
|
9
9
|
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2022-04-15 06:01:25 |
|
|
10
10
|
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2022-11-16 06:07:01 |
|
|
11
|
-
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/1021) | 2022-12-
|
|
11
|
+
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/1021) | 2022-12-08 10:18:06 |
|
|
12
12
|
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
|
|
13
13
|
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
14
14
|
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-06-07 06:00:45 |
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2022-11-29 06:12:14 |
|
|
19
19
|
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2022-04-04 06:08:40 |
|
|
20
20
|
| ba | [网站备案](https://cloud.tencent.com/document/product/243) | 2022-04-04 06:08:45 |
|
|
21
|
-
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-12-
|
|
21
|
+
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-12-09 01:11:02 |
|
|
22
22
|
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2022-09-06 06:10:38 |
|
|
23
23
|
| bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2022-08-09 10:42:14 |
|
|
24
24
|
| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2022-10-31 06:10:22 |
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-11-09 06:14:16 |
|
|
40
40
|
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2022-10-27 06:14:10 |
|
|
41
41
|
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-12-08 01:17:22 |
|
|
42
|
-
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-12-
|
|
42
|
+
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-12-09 01:15:21 |
|
|
43
43
|
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2022-07-30 15:07:54 |
|
|
44
44
|
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2022-11-29 06:20:53 |
|
|
45
45
|
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2022-10-31 06:15:53 |
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
|
54
54
|
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
|
55
55
|
| ckafka | [消息队列 CKafka](https://cloud.tencent.com/document/product/597) | 2022-12-02 06:19:08 |
|
|
56
|
-
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2022-
|
|
56
|
+
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2022-12-09 01:20:31 |
|
|
57
57
|
| cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2022-11-24 06:19:10 |
|
|
58
58
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2022-11-02 06:13:26 |
|
|
59
59
|
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2022-10-31 06:18:55 |
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
| eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2022-05-13 06:11:29 |
|
|
89
89
|
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2022-11-16 06:22:42 |
|
|
90
90
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2022-12-08 01:29:13 |
|
|
91
|
-
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2022-12-
|
|
92
|
-
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2022-12-
|
|
93
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-12-
|
|
91
|
+
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2022-12-09 01:34:26 |
|
|
92
|
+
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2022-12-09 15:06:24 |
|
|
93
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-12-09 15:06:08 |
|
|
94
94
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2022-06-15 06:09:10 |
|
|
95
95
|
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-12-07 06:39:49 |
|
|
96
96
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2022-04-04 06:43:06 |
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
| ims | [图片内容安全](https://cloud.tencent.com/document/product/1125) | 2022-09-29 06:34:25 |
|
|
112
112
|
| iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2022-04-04 06:48:08 |
|
|
113
113
|
| iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2022-08-16 06:27:22 |
|
|
114
|
-
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-12-
|
|
114
|
+
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-12-09 01:39:48 |
|
|
115
115
|
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2022-04-04 06:49:46 |
|
|
116
116
|
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2022-12-05 06:57:57 |
|
|
117
117
|
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2022-11-17 06:31:48 |
|
|
@@ -130,28 +130,28 @@
|
|
|
130
130
|
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2022-08-25 06:38:57 |
|
|
131
131
|
| mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2022-11-17 11:16:37 |
|
|
132
132
|
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-11-28 06:50:22 |
|
|
133
|
-
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-12-
|
|
133
|
+
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-12-09 01:46:06 |
|
|
134
134
|
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2022-11-23 06:41:18 |
|
|
135
135
|
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2022-12-08 01:38:36 |
|
|
136
|
-
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2022-12-
|
|
136
|
+
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2022-12-09 15:05:58 |
|
|
137
137
|
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2022-04-04 07:00:13 |
|
|
138
138
|
| mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
|
|
139
|
-
| nlp | [自然语言处理](https://cloud.tencent.com/document/product/271) | 2022-12-
|
|
139
|
+
| nlp | [自然语言处理](https://cloud.tencent.com/document/product/271) | 2022-12-09 01:49:39 |
|
|
140
140
|
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
|
141
141
|
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2022-11-24 06:45:29 |
|
|
142
|
-
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2022-
|
|
142
|
+
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2022-12-09 01:50:13 |
|
|
143
143
|
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2022-12-07 06:54:25 |
|
|
144
144
|
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2022-11-17 06:38:25 |
|
|
145
145
|
| pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2022-04-04 07:02:02 |
|
|
146
146
|
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2022-11-29 07:09:18 |
|
|
147
|
-
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2022-
|
|
147
|
+
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2022-12-09 01:52:05 |
|
|
148
148
|
| pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2022-12-08 01:40:36 |
|
|
149
149
|
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2022-09-23 06:43:17 |
|
|
150
150
|
| redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2022-11-28 06:57:10 |
|
|
151
151
|
| region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2022-07-27 21:10:02 |
|
|
152
152
|
| rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2022-04-04 07:04:04 |
|
|
153
153
|
| rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
|
|
154
|
-
| rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2022-
|
|
154
|
+
| rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2022-12-09 01:53:36 |
|
|
155
155
|
| scf | [云函数](https://cloud.tencent.com/document/product/583) | 2022-12-05 07:13:50 |
|
|
156
156
|
| ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2022-11-03 06:36:44 |
|
|
157
157
|
| smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2022-11-23 06:47:21 |
|
|
@@ -180,13 +180,13 @@
|
|
|
180
180
|
| tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
|
|
181
181
|
| tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2022-11-30 06:59:59 |
|
|
182
182
|
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2022-12-07 07:02:05 |
|
|
183
|
-
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2022-12-
|
|
183
|
+
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2022-12-09 02:00:06 |
|
|
184
184
|
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2022-10-21 06:47:14 |
|
|
185
185
|
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2022-11-17 06:47:13 |
|
|
186
186
|
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2022-11-25 07:03:54 |
|
|
187
187
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2022-12-06 07:10:10 |
|
|
188
|
-
| tem | [弹性微服务 TEM](https://cloud.tencent.com/document/product/1371) | 2022-
|
|
189
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-
|
|
188
|
+
| tem | [弹性微服务 TEM](https://cloud.tencent.com/document/product/1371) | 2022-12-09 02:04:15 |
|
|
189
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-12-09 02:05:01 |
|
|
190
190
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-11-16 06:42:38 |
|
|
191
191
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
192
192
|
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2022-10-31 06:55:14 |
|
|
@@ -199,10 +199,10 @@
|
|
|
199
199
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-12-08 01:50:31 |
|
|
200
200
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
201
201
|
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-11-18 06:55:59 |
|
|
202
|
-
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-
|
|
202
|
+
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-12-09 02:09:44 |
|
|
203
203
|
| trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2022-12-07 07:14:03 |
|
|
204
204
|
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2022-12-07 07:14:07 |
|
|
205
|
-
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-12-
|
|
205
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-12-09 02:10:18 |
|
|
206
206
|
| tse | [微服务引擎 TSE](https://cloud.tencent.com/document/product/1364) | 2022-10-31 06:58:14 |
|
|
207
207
|
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-12-07 07:15:23 |
|
|
208
208
|
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-10-31 06:59:44 |
|
|
@@ -210,9 +210,9 @@
|
|
|
210
210
|
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2022-04-04 07:22:44 |
|
|
211
211
|
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-11-16 06:46:30 |
|
|
212
212
|
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 |
|
|
213
|
-
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-12-
|
|
213
|
+
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-12-09 10:06:16 |
|
|
214
214
|
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-12-05 07:38:38 |
|
|
215
|
-
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-
|
|
215
|
+
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-12-09 02:16:48 |
|
|
216
216
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-10-12 07:10:28 |
|
|
217
217
|
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2022-12-07 07:21:53 |
|
|
218
218
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { sdkVersion } from "./sdk_version"
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ClientProfile,
|
|
4
|
+
Credential,
|
|
5
|
+
ClientConfig,
|
|
6
|
+
SUPPORT_LANGUAGE_LIST,
|
|
7
|
+
HttpProfile,
|
|
8
|
+
} from "./interface"
|
|
3
9
|
import Sign from "./sign"
|
|
4
10
|
import { HttpConnection } from "./http/http_connection"
|
|
5
11
|
import TencentCloudSDKHttpException from "./exception/tencent_cloud_sdk_exception"
|
|
6
12
|
import { Response } from "node-fetch"
|
|
7
13
|
|
|
8
14
|
export type ResponseCallback<TReuslt = any> = (error: string, rep: TReuslt) => void
|
|
9
|
-
export interface RequestOptions extends Partial<Pick<
|
|
15
|
+
export interface RequestOptions extends Partial<Pick<HttpProfile, "headers">> {
|
|
10
16
|
multipart?: boolean
|
|
11
17
|
/**
|
|
12
18
|
* 中止请求信号
|
|
@@ -118,7 +124,7 @@ export class AbstractClient {
|
|
|
118
124
|
cb && cb(null, result)
|
|
119
125
|
return result
|
|
120
126
|
} catch (e) {
|
|
121
|
-
cb && cb(e, null)
|
|
127
|
+
cb && cb(e as any, null)
|
|
122
128
|
throw e
|
|
123
129
|
}
|
|
124
130
|
}
|
|
@@ -149,7 +155,7 @@ export class AbstractClient {
|
|
|
149
155
|
signal: options.signal,
|
|
150
156
|
})
|
|
151
157
|
} catch (error) {
|
|
152
|
-
throw new TencentCloudSDKHttpException(error.message)
|
|
158
|
+
throw new TencentCloudSDKHttpException((error as any).message)
|
|
153
159
|
}
|
|
154
160
|
return this.parseResponse(res)
|
|
155
161
|
}
|
|
@@ -185,7 +191,7 @@ export class AbstractClient {
|
|
|
185
191
|
signal: options.signal,
|
|
186
192
|
})
|
|
187
193
|
} catch (e) {
|
|
188
|
-
throw new TencentCloudSDKHttpException(e.message)
|
|
194
|
+
throw new TencentCloudSDKHttpException((e as any).message)
|
|
189
195
|
}
|
|
190
196
|
return this.parseResponse(res)
|
|
191
197
|
}
|
package/src/common/interface.ts
CHANGED
|
@@ -32,51 +32,10 @@ export interface ClientProfile {
|
|
|
32
32
|
signMethod?: "TC3-HMAC-SHA256" | "HmacSHA256" | "HmacSHA1"
|
|
33
33
|
/**
|
|
34
34
|
* http相关选项实例
|
|
35
|
-
* @type {
|
|
35
|
+
* @type {HttpProfile}
|
|
36
36
|
* 非必选
|
|
37
37
|
*/
|
|
38
|
-
httpProfile?:
|
|
39
|
-
/**
|
|
40
|
-
* 请求方法
|
|
41
|
-
* @type {"POST" | "GET"}
|
|
42
|
-
* 非必选
|
|
43
|
-
*/
|
|
44
|
-
reqMethod?: "POST" | "GET"
|
|
45
|
-
/**
|
|
46
|
-
* 接入点域名,形如(cvm.ap-shanghai.tencentcloud.com)
|
|
47
|
-
* @type {string}
|
|
48
|
-
* 非必选
|
|
49
|
-
*/
|
|
50
|
-
endpoint?: string
|
|
51
|
-
/**
|
|
52
|
-
* 协议,目前支持(https://)
|
|
53
|
-
* @type {string}
|
|
54
|
-
* 非必选
|
|
55
|
-
*/
|
|
56
|
-
protocol?: string
|
|
57
|
-
/**
|
|
58
|
-
* 请求超时时间,默认60s
|
|
59
|
-
* @type {number}
|
|
60
|
-
* 非必选
|
|
61
|
-
*/
|
|
62
|
-
reqTimeout?: number
|
|
63
|
-
/**
|
|
64
|
-
* 自定义请求头,例如 { "X-TC-TraceId": "ffe0c072-8a5d-4e17-8887-a8a60252abca" }
|
|
65
|
-
* @type {Record<string, string>}
|
|
66
|
-
* 非必选
|
|
67
|
-
*/
|
|
68
|
-
headers?: Record<string, string>
|
|
69
|
-
/**
|
|
70
|
-
* 高级请求代理,例如 new HttpsProxyAgent("http://127.0.0.1:8899")
|
|
71
|
-
*
|
|
72
|
-
* 优先级高于 proxy 配置
|
|
73
|
-
*/
|
|
74
|
-
agent?: Agent
|
|
75
|
-
/**
|
|
76
|
-
* http请求代理,例如 "http://127.0.0.1:8899"
|
|
77
|
-
*/
|
|
78
|
-
proxy?: string
|
|
79
|
-
}
|
|
38
|
+
httpProfile?: HttpProfile
|
|
80
39
|
/**
|
|
81
40
|
* api请求时附带的 language 字段
|
|
82
41
|
* @type {"zh-CN" | "en-US"}
|
|
@@ -85,6 +44,49 @@ export interface ClientProfile {
|
|
|
85
44
|
language?: "zh-CN" | "en-US"
|
|
86
45
|
}
|
|
87
46
|
|
|
47
|
+
export interface HttpProfile {
|
|
48
|
+
/**
|
|
49
|
+
* 请求方法
|
|
50
|
+
* @type {"POST" | "GET"}
|
|
51
|
+
* 非必选
|
|
52
|
+
*/
|
|
53
|
+
reqMethod?: "POST" | "GET"
|
|
54
|
+
/**
|
|
55
|
+
* 接入点域名,形如(cvm.ap-shanghai.tencentcloud.com)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* 非必选
|
|
58
|
+
*/
|
|
59
|
+
endpoint?: string
|
|
60
|
+
/**
|
|
61
|
+
* 协议,目前支持(https://)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* 非必选
|
|
64
|
+
*/
|
|
65
|
+
protocol?: string
|
|
66
|
+
/**
|
|
67
|
+
* 请求超时时间,默认60s
|
|
68
|
+
* @type {number}
|
|
69
|
+
* 非必选
|
|
70
|
+
*/
|
|
71
|
+
reqTimeout?: number
|
|
72
|
+
/**
|
|
73
|
+
* 自定义请求头,例如 { "X-TC-TraceId": "ffe0c072-8a5d-4e17-8887-a8a60252abca" }
|
|
74
|
+
* @type {Record<string, string>}
|
|
75
|
+
* 非必选
|
|
76
|
+
*/
|
|
77
|
+
headers?: Record<string, string>
|
|
78
|
+
/**
|
|
79
|
+
* 高级请求代理,例如 new HttpsProxyAgent("http://127.0.0.1:8899")
|
|
80
|
+
*
|
|
81
|
+
* 优先级高于 proxy 配置
|
|
82
|
+
*/
|
|
83
|
+
agent?: Agent
|
|
84
|
+
/**
|
|
85
|
+
* http请求代理,例如 "http://127.0.0.1:8899"
|
|
86
|
+
*/
|
|
87
|
+
proxy?: string
|
|
88
|
+
}
|
|
89
|
+
|
|
88
90
|
/**
|
|
89
91
|
* ClientProfile.language 属性支持的取值列表
|
|
90
92
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.0.
|
|
1
|
+
export const sdkVersion = "4.0.500"
|
|
@@ -4494,8 +4494,9 @@ export interface WaterPrintRelation {
|
|
|
4494
4494
|
*/
|
|
4495
4495
|
export interface InsL7Rules {
|
|
4496
4496
|
/**
|
|
4497
|
-
|
|
4498
|
-
|
|
4497
|
+
* 规则在中间状态态不可修改,只可在(0, 2, 8)状态可编辑。
|
|
4498
|
+
规则状态,0: 正常运行中, 1: 配置规则中(配置生效中), 2: 配置规则失败(配置生效失败), 3: 删除规则中(删除生效中), 5: 删除规则失败(删除失败), 6: 等待添加规则, 7: 等待删除规则, 8: 等待上传证书, 9: 规则对应的资源不存在,被隔离, 10:等待修改规则, 11:配置修改中
|
|
4499
|
+
*/
|
|
4499
4500
|
Status: number
|
|
4500
4501
|
|
|
4501
4502
|
/**
|
|
@@ -2009,6 +2009,12 @@ export interface OutputMapping {
|
|
|
2009
2009
|
* 目的端路径
|
|
2010
2010
|
*/
|
|
2011
2011
|
DestinationPath: string
|
|
2012
|
+
|
|
2013
|
+
/**
|
|
2014
|
+
* 输出映射选项
|
|
2015
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2016
|
+
*/
|
|
2017
|
+
OutputMappingOption?: OutputMappingOption
|
|
2012
2018
|
}
|
|
2013
2019
|
|
|
2014
2020
|
/**
|
|
@@ -3207,6 +3213,19 @@ export interface DescribeCvmZoneInstanceConfigInfosResponse {
|
|
|
3207
3213
|
RequestId?: string
|
|
3208
3214
|
}
|
|
3209
3215
|
|
|
3216
|
+
/**
|
|
3217
|
+
* 输出映射选项
|
|
3218
|
+
*/
|
|
3219
|
+
export interface OutputMappingOption {
|
|
3220
|
+
/**
|
|
3221
|
+
* 容器场景下,输出选项从实例映射到容器内的实例侧的工作空间。
|
|
3222
|
+
BATCH_WORKSPACE: 工作空间为BATCH在实例内定义的工作空间,BATCH侧保证作业之间的隔离。(默认)
|
|
3223
|
+
GLOBAL_WORKSPACE: 工作空间为实例操作系统空间。
|
|
3224
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3225
|
+
*/
|
|
3226
|
+
Workspace?: string
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3210
3229
|
/**
|
|
3211
3230
|
* DescribeJobs返回参数结构体
|
|
3212
3231
|
*/
|
|
@@ -7651,7 +7651,7 @@ export interface DeleteDeployGroupsResponse {
|
|
|
7651
7651
|
*/
|
|
7652
7652
|
export interface CdbSellType {
|
|
7653
7653
|
/**
|
|
7654
|
-
*
|
|
7654
|
+
* 售卖实例名称。Z3是高可用类型对应规格中的DeviceType包含UNIVERSAL,EXCLUSIVE;CVM是基础版类型对应规格中的DeviceType是BASIC;TKE是基础型v2类型对应规格中的DeviceType是BASIC_V2。
|
|
7655
7655
|
*/
|
|
7656
7656
|
TypeName: string
|
|
7657
7657
|
|
|
@@ -1360,6 +1360,12 @@ export interface ZoneInfo {
|
|
|
1360
1360
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1361
1361
|
*/
|
|
1362
1362
|
LocalZone: boolean
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* 可用区是否是EdgeZone可用区,如:false
|
|
1366
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1367
|
+
*/
|
|
1368
|
+
EdgeZone: boolean
|
|
1363
1369
|
}
|
|
1364
1370
|
|
|
1365
1371
|
/**
|
|
@@ -1936,6 +1942,12 @@ export interface Listener {
|
|
|
1936
1942
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1937
1943
|
*/
|
|
1938
1944
|
AttrFlags: Array<string>
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* 绑定的目标组列表
|
|
1948
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1949
|
+
*/
|
|
1950
|
+
TargetGroupList: Array<BasicTargetGroupInfo>
|
|
1939
1951
|
}
|
|
1940
1952
|
|
|
1941
1953
|
/**
|
|
@@ -3237,6 +3249,12 @@ export interface RuleOutput {
|
|
|
3237
3249
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3238
3250
|
*/
|
|
3239
3251
|
Domains: Array<string>
|
|
3252
|
+
|
|
3253
|
+
/**
|
|
3254
|
+
* 绑定的目标组列表
|
|
3255
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3256
|
+
*/
|
|
3257
|
+
TargetGroupList: Array<BasicTargetGroupInfo>
|
|
3240
3258
|
}
|
|
3241
3259
|
|
|
3242
3260
|
/**
|
|
@@ -4233,6 +4251,24 @@ Public:公网属性, Private:内网属性。
|
|
|
4233
4251
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4234
4252
|
*/
|
|
4235
4253
|
Domains: string
|
|
4254
|
+
|
|
4255
|
+
/**
|
|
4256
|
+
* 多可用区负载均衡实例所选备区
|
|
4257
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4258
|
+
*/
|
|
4259
|
+
SlaveZone: Array<string>
|
|
4260
|
+
|
|
4261
|
+
/**
|
|
4262
|
+
* 内网负载均衡实例所在可用区,由白名单CLB_Internal_Zone控制
|
|
4263
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4264
|
+
*/
|
|
4265
|
+
Zones: Array<string>
|
|
4266
|
+
|
|
4267
|
+
/**
|
|
4268
|
+
* 是否开启SNI特性(本参数仅对于HTTPS监听器有意义)。
|
|
4269
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4270
|
+
*/
|
|
4271
|
+
SniSwitch: number
|
|
4236
4272
|
}
|
|
4237
4273
|
|
|
4238
4274
|
/**
|
|
@@ -5297,7 +5333,7 @@ export interface CertificateOutput {
|
|
|
5297
5333
|
SSLMode: string
|
|
5298
5334
|
|
|
5299
5335
|
/**
|
|
5300
|
-
* 服务端证书的
|
|
5336
|
+
* 服务端证书的ID。
|
|
5301
5337
|
*/
|
|
5302
5338
|
CertId: string
|
|
5303
5339
|
|
|
@@ -5306,6 +5342,12 @@ export interface CertificateOutput {
|
|
|
5306
5342
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5307
5343
|
*/
|
|
5308
5344
|
CertCaId: string
|
|
5345
|
+
|
|
5346
|
+
/**
|
|
5347
|
+
* 多本服务器证书场景扩展的服务器证书ID。
|
|
5348
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5349
|
+
*/
|
|
5350
|
+
ExtCertIds: Array<string>
|
|
5309
5351
|
}
|
|
5310
5352
|
|
|
5311
5353
|
/**
|
|
@@ -2665,7 +2665,7 @@ export interface DescribeInstancesRequest {
|
|
|
2665
2665
|
Limit?: number
|
|
2666
2666
|
|
|
2667
2667
|
/**
|
|
2668
|
-
* 排序字段<li>1:实例ID</li><li>2:实例名称</li><li>3:可用区</li><li>4:创建时间</li>若
|
|
2668
|
+
* 排序字段<li>1:实例ID</li><li>2:实例名称</li><li>3:可用区</li><li>4:创建时间</li>若orderByKey未传递则按创建时间降序排序
|
|
2669
2669
|
*/
|
|
2670
2670
|
OrderByKey?: number
|
|
2671
2671
|
|
|
@@ -2690,7 +2690,7 @@ export interface DescribeInstancesRequest {
|
|
|
2690
2690
|
ZoneList?: Array<string>
|
|
2691
2691
|
|
|
2692
2692
|
/**
|
|
2693
|
-
*
|
|
2693
|
+
* 健康状态筛列表:0表示绿色,1表示黄色,2表示红色,-1表示未知
|
|
2694
2694
|
*/
|
|
2695
2695
|
HealthStatus?: Array<number>
|
|
2696
2696
|
|
|
@@ -229,118 +229,6 @@ export class Client extends AbstractClient {
|
|
|
229
229
|
* 创建签署流程电子文档
|
|
230
230
|
适用场景:见创建签署流程接口。
|
|
231
231
|
注:该接口需要给对应的流程指定一个模板id,并且填充该模板中需要补充的信息。是“发起流程”接口的前置接口。
|
|
232
|
-
|
|
233
|
-
【动态表格传参说明】
|
|
234
|
-
当模板的 ComponentType='DYNAMIC_TABLE'时(渠道版或集成版),FormField.ComponentValue需要传递json格式的字符串参数,用于确定表头&填充动态表格(支持内容的单元格合并)
|
|
235
|
-
输入示例1:
|
|
236
|
-
|
|
237
|
-
```
|
|
238
|
-
{
|
|
239
|
-
"headers":[
|
|
240
|
-
{
|
|
241
|
-
"content":"head1"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"content":"head2"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"content":"head3"
|
|
248
|
-
}
|
|
249
|
-
],
|
|
250
|
-
"rowCount":3,
|
|
251
|
-
"body":{
|
|
252
|
-
"cells":[
|
|
253
|
-
{
|
|
254
|
-
"rowStart":1,
|
|
255
|
-
"rowEnd":1,
|
|
256
|
-
"columnStart":1,
|
|
257
|
-
"columnEnd":1,
|
|
258
|
-
"content":"123"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"rowStart":2,
|
|
262
|
-
"rowEnd":3,
|
|
263
|
-
"columnStart":1,
|
|
264
|
-
"columnEnd":2,
|
|
265
|
-
"content":"456"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"rowStart":3,
|
|
269
|
-
"rowEnd":3,
|
|
270
|
-
"columnStart":3,
|
|
271
|
-
"columnEnd":3,
|
|
272
|
-
"content":"789"
|
|
273
|
-
}
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
输入示例2(表格表头宽度比例配置):
|
|
281
|
-
|
|
282
|
-
```
|
|
283
|
-
{
|
|
284
|
-
"headers":[
|
|
285
|
-
{
|
|
286
|
-
"content":"head1",
|
|
287
|
-
"widthPercent": 30
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"content":"head2",
|
|
291
|
-
"widthPercent": 30
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"content":"head3",
|
|
295
|
-
"widthPercent": 40
|
|
296
|
-
}
|
|
297
|
-
],
|
|
298
|
-
"rowCount":3,
|
|
299
|
-
"body":{
|
|
300
|
-
"cells":[
|
|
301
|
-
{
|
|
302
|
-
"rowStart":1,
|
|
303
|
-
"rowEnd":1,
|
|
304
|
-
"columnStart":1,
|
|
305
|
-
"columnEnd":1,
|
|
306
|
-
"content":"123"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"rowStart":2,
|
|
310
|
-
"rowEnd":3,
|
|
311
|
-
"columnStart":1,
|
|
312
|
-
"columnEnd":2,
|
|
313
|
-
"content":"456"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"rowStart":3,
|
|
317
|
-
"rowEnd":3,
|
|
318
|
-
"columnStart":3,
|
|
319
|
-
"columnEnd":3,
|
|
320
|
-
"content":"789"
|
|
321
|
-
}
|
|
322
|
-
]
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
```
|
|
327
|
-
表格参数说明
|
|
328
|
-
|
|
329
|
-
| 名称 | 类型 | 描述 |
|
|
330
|
-
| ------------------- | ------- | ------------------------------------------------- |
|
|
331
|
-
| headers | Array | 表头:不超过10列,不支持单元格合并,字数不超过100 |
|
|
332
|
-
| rowCount | Integer | 表格内容最大行数 |
|
|
333
|
-
| cells.N.rowStart | Integer | 单元格坐标:行起始index |
|
|
334
|
-
| cells.N.rowEnd | Integer | 单元格坐标:行结束index |
|
|
335
|
-
| cells.N.columnStart | Integer | 单元格坐标:列起始index |
|
|
336
|
-
| cells.N.columnEnd | Integer | 单元格坐标:列结束index |
|
|
337
|
-
| cells.N.content | String | 单元格内容,字数不超过100 |
|
|
338
|
-
|
|
339
|
-
表格参数headers说明
|
|
340
|
-
| 名称 | 类型 | 描述 |
|
|
341
|
-
| ------------------- | ------- | ------------------------------------------------- |
|
|
342
|
-
| widthPercent | Integer | 表头单元格列占总表头的比例,例如1:30表示 此列占表头的30%,不填写时列宽度平均拆分;例如2:总2列,某一列填写40,剩余列可以为空,按照60计算。;例如3:总3列,某一列填写30,剩余2列可以为空,分别为(100-30)/2=35 |
|
|
343
|
-
| content | String | 表头单元格内容,字数不超过100 |
|
|
344
232
|
*/
|
|
345
233
|
async CreateDocument(
|
|
346
234
|
req: CreateDocumentRequest,
|
|
@@ -472,7 +360,7 @@ export class Client extends AbstractClient {
|
|
|
472
360
|
/**
|
|
473
361
|
* 此接口(UploadFiles)用于文件上传。
|
|
474
362
|
适用场景:用于生成pdf资源编号(FileIds)来配合“用PDF创建流程”接口使用,使用场景可详见“用PDF创建流程”接口说明。
|
|
475
|
-
调用时需要设置Domain
|
|
363
|
+
调用时需要设置Domain/接口请求域名为 file.ess.tencent.cn,并设置参数Version/版本号为2020-12-22
|
|
476
364
|
*/
|
|
477
365
|
async UploadFiles(
|
|
478
366
|
req: UploadFilesRequest,
|