tencentcloud-sdk-nodejs 4.0.488 → 4.0.490

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +363 -0
  2. package/SERVICE_CHANGELOG.md +435 -152
  3. package/package.json +1 -1
  4. package/products.md +15 -14
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/asr/v20190614/asr_models.ts +31 -0
  7. package/src/services/cdwch/index.ts +5 -0
  8. package/src/services/cdwch/v20200915/cdwch_client.ts +118 -0
  9. package/src/services/cdwch/v20200915/cdwch_models.ts +314 -0
  10. package/src/services/cdwch/v20200915/index.ts +6 -0
  11. package/src/services/cfw/v20190904/cfw_client.ts +4 -4
  12. package/src/services/cfw/v20190904/cfw_models.ts +2 -2
  13. package/src/services/cpdp/v20190820/cpdp_models.ts +14 -0
  14. package/src/services/dnspod/v20210323/dnspod_client.ts +14 -1
  15. package/src/services/dnspod/v20210323/dnspod_models.ts +96 -40
  16. package/src/services/ess/v20201111/ess_client.ts +26 -0
  17. package/src/services/ess/v20201111/ess_models.ts +100 -1
  18. package/src/services/essbasic/v20210526/essbasic_client.ts +38 -12
  19. package/src/services/essbasic/v20210526/essbasic_models.ts +174 -82
  20. package/src/services/index.ts +1 -0
  21. package/src/services/lighthouse/v20200324/lighthouse_models.ts +6 -0
  22. package/src/services/mongodb/v20190725/mongodb_models.ts +19 -4
  23. package/src/services/redis/v20180412/redis_client.ts +1 -1
  24. package/src/services/redis/v20180412/redis_models.ts +3 -3
  25. package/src/services/tcss/v20201101/tcss_client.ts +287 -100
  26. package/src/services/tcss/v20201101/tcss_models.ts +1780 -817
  27. package/src/services/tdmq/v20200217/tdmq_models.ts +6 -0
  28. package/src/services/teo/v20220901/teo_models.ts +1 -1
  29. package/src/services/vod/v20180717/vod_client.ts +0 -6
  30. package/src/services/vod/v20180717/vod_models.ts +156 -5
  31. package/tencentcloud/common/sdk_version.d.ts +1 -1
  32. package/tencentcloud/common/sdk_version.js +1 -1
  33. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +26 -0
  34. package/tencentcloud/services/cdwch/index.d.ts +6 -0
  35. package/tencentcloud/services/cdwch/index.js +7 -0
  36. package/tencentcloud/services/cdwch/v20200915/cdwch_client.d.ts +38 -0
  37. package/tencentcloud/services/cdwch/v20200915/cdwch_client.js +73 -0
  38. package/tencentcloud/services/cdwch/v20200915/cdwch_models.d.ts +255 -0
  39. package/tencentcloud/services/cdwch/v20200915/cdwch_models.js +18 -0
  40. package/tencentcloud/services/cdwch/v20200915/index.d.ts +6 -0
  41. package/tencentcloud/services/cdwch/v20200915/index.js +9 -0
  42. package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +4 -4
  43. package/tencentcloud/services/cfw/v20190904/cfw_client.js +4 -4
  44. package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +2 -2
  45. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +12 -0
  46. package/tencentcloud/services/dnspod/v20210323/dnspod_client.d.ts +6 -2
  47. package/tencentcloud/services/dnspod/v20210323/dnspod_client.js +7 -1
  48. package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +88 -40
  49. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +11 -1
  50. package/tencentcloud/services/ess/v20201111/ess_client.js +14 -0
  51. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +85 -1
  52. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +13 -3
  53. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +17 -3
  54. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +153 -74
  55. package/tencentcloud/services/index.d.ts +1 -0
  56. package/tencentcloud/services/index.js +2 -0
  57. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +6 -0
  58. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +16 -4
  59. package/tencentcloud/services/redis/v20180412/redis_client.d.ts +1 -1
  60. package/tencentcloud/services/redis/v20180412/redis_client.js +1 -1
  61. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +3 -3
  62. package/tencentcloud/services/tcss/v20201101/tcss_client.d.ts +87 -27
  63. package/tencentcloud/services/tcss/v20201101/tcss_client.js +129 -39
  64. package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +1499 -681
  65. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +5 -0
  66. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +1 -1
  67. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +0 -6
  68. package/tencentcloud/services/vod/v20180717/vod_client.js +0 -6
  69. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +126 -5
  70. package/test/cdwch.v20200915.test.js +91 -0
  71. package/test/dnspod.v20210323.test.js +10 -0
  72. package/test/ess.v20201111.test.js +20 -0
  73. package/test/essbasic.v20210526.test.js +22 -2
  74. package/test/tcss.v20201101.test.js +176 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs",
3
- "version": "4.0.488",
3
+ "version": "4.0.490",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -15,7 +15,7 @@
15
15
  | apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2022-11-09 06:09:16 |
16
16
  | apm | [应用性能观测](https://cloud.tencent.com/document/product/1463) | 2022-08-22 06:08:36 |
17
17
  | as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2022-11-18 06:08:39 |
18
- | asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2022-11-01 06:08:50 |
18
+ | asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2022-11-28 06:10:45 |
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
21
  | batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-11-01 06:09:07 |
@@ -39,13 +39,14 @@
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-11-21 06:12:39 |
42
- | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-11-18 06:12:54 |
42
+ | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-11-25 06:13:56 |
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-10-31 06:15:07 |
45
45
  | cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2022-10-31 06:15:53 |
46
+ | cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2022-11-25 17:33:17 |
46
47
  | cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-09-26 06:16:02 |
47
48
  | cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-11-21 06:14:58 |
48
- | cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2022-10-25 06:18:27 |
49
+ | cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2022-11-28 06:18:58 |
49
50
  | chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2022-07-04 06:04:36 |
50
51
  | ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2022-09-27 06:14:52 |
51
52
  | cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2022-06-27 06:06:02 |
@@ -60,7 +61,7 @@
60
61
  | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2022-08-24 06:19:05 |
61
62
  | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-11-16 06:15:44 |
62
63
  | cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
63
- | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-10-26 06:23:03 |
64
+ | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-11-25 06:20:42 |
64
65
  | cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
65
66
  | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-11-23 06:18:34 |
66
67
  | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-11-17 06:19:07 |
@@ -74,7 +75,7 @@
74
75
  | dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2022-10-26 06:29:47 |
75
76
  | dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2022-11-23 06:23:24 |
76
77
  | dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2022-11-24 06:27:21 |
77
- | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2022-11-23 06:24:39 |
78
+ | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2022-11-25 06:28:38 |
78
79
  | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2022-05-24 06:11:36 |
79
80
  | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2022-04-04 06:38:48 |
80
81
  | ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2022-10-31 06:27:09 |
@@ -88,8 +89,8 @@
88
89
  | eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2022-11-16 06:22:42 |
89
90
  | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2022-11-24 06:31:27 |
90
91
  | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2022-11-17 06:25:50 |
91
- | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2022-11-24 06:32:18 |
92
- | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-11-24 06:32:35 |
92
+ | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2022-11-25 18:17:09 |
93
+ | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-11-25 18:17:38 |
93
94
  | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2022-06-15 06:09:10 |
94
95
  | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-11-16 06:23:45 |
95
96
  | fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2022-04-04 06:43:06 |
@@ -118,7 +119,7 @@
118
119
  | ivld | [媒体智能标签](https://cloud.tencent.com/document/product/1509) | 2022-10-28 11:32:11 |
119
120
  | kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2022-11-01 06:32:51 |
120
121
  | lcic | [低代码互动课堂](https://cloud.tencent.com/document/product/1639) | 2022-10-19 06:31:50 |
121
- | lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2022-11-22 06:39:53 |
122
+ | lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2022-11-28 06:47:35 |
122
123
  | live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2022-11-18 06:36:08 |
123
124
  | lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
124
125
  | lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
@@ -128,7 +129,7 @@
128
129
  | mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
129
130
  | mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2022-08-25 06:38:57 |
130
131
  | mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2022-11-17 11:16:37 |
131
- | mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-10-28 06:36:39 |
132
+ | mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-11-28 06:50:22 |
132
133
  | monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-11-18 06:38:09 |
133
134
  | mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2022-11-23 06:41:18 |
134
135
  | mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2022-06-28 06:14:04 |
@@ -146,7 +147,7 @@
146
147
  | privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2022-10-26 06:52:45 |
147
148
  | pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2022-11-18 06:42:29 |
148
149
  | rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2022-09-23 06:43:17 |
149
- | redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2022-11-23 06:45:19 |
150
+ | redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2022-11-28 06:57:10 |
150
151
  | region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2022-07-27 21:10:02 |
151
152
  | rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2022-04-04 07:04:04 |
152
153
  | rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
@@ -179,13 +180,13 @@
179
180
  | tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
180
181
  | tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2022-11-24 06:54:17 |
181
182
  | tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2022-11-08 06:41:24 |
182
- | tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2022-11-24 06:55:26 |
183
+ | tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2022-11-25 06:59:05 |
183
184
  | tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2022-10-21 06:47:14 |
184
185
  | tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2022-11-17 06:47:13 |
185
- | tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2022-11-15 06:41:43 |
186
+ | tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2022-11-25 07:03:54 |
186
187
  | tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2022-10-10 06:42:56 |
187
188
  | tem | [弹性微服务 TEM](https://cloud.tencent.com/document/product/1371) | 2022-11-17 06:48:59 |
188
- | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-11-24 06:59:55 |
189
+ | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-11-28 07:11:19 |
189
190
  | thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-11-16 06:42:38 |
190
191
  | tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
191
192
  | tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2022-10-31 06:55:14 |
@@ -208,7 +209,7 @@
208
209
  | ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2022-04-04 07:22:44 |
209
210
  | vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-11-16 06:46:30 |
210
211
  | vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 |
211
- | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-11-22 07:08:36 |
212
+ | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-11-28 07:19:44 |
212
213
  | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-11-22 07:10:00 |
213
214
  | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-11-16 06:48:54 |
214
215
  | wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-10-12 07:10:28 |
@@ -1 +1 @@
1
- export const sdkVersion = "4.0.488"
1
+ export const sdkVersion = "4.0.490"
@@ -239,6 +239,8 @@ export interface SentenceRecognitionRequest {
239
239
  • 16k_ca:16k 粤语;
240
240
  • 16k_ja:16k 日语;
241
241
  • 16k_zh_medical:16k 医疗;
242
+ • 16k_zh-PY 中英粤;
243
+ • 16k_zh_dialect:多方言,支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
242
244
  */
243
245
  EngSerViceType: string
244
246
 
@@ -306,6 +308,11 @@ export interface SentenceRecognitionRequest {
306
308
  * 自学习模型 id。如设置了该参数,将生效对应的自学习模型。
307
309
  */
308
310
  CustomizationId?: string
311
+
312
+ /**
313
+ * 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”、“蜜汁”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
314
+ */
315
+ ReinforceHotword?: number
309
316
  }
310
317
 
311
318
  /**
@@ -467,6 +474,8 @@ export interface CreateRecTaskRequest {
467
474
  • 16k_en_edu 英文教育;
468
475
  • 16k_zh_medical 医疗;
469
476
  • 16k_th 泰语;
477
+ • 16k_zh-PY 中英粤;
478
+ • 16k_zh_dialect:多方言,支持23种方言(上海话、四川话、武汉话、贵阳话、昆明话、西安话、郑州话、太原话、兰州话、银川话、西宁话、南京话、合肥话、南昌话、长沙话、苏州话、杭州话、济南话、天津话、石家庄话、黑龙江话、吉林话、辽宁话);
470
479
  */
471
480
  EngineModelType: string
472
481
 
@@ -551,6 +560,16 @@ export interface CreateRecTaskRequest {
551
560
  * 是否过滤语气词(目前支持中文普通话引擎)。0:不过滤语气词;1:部分过滤;2:严格过滤 。默认值为 0。
552
561
  */
553
562
  FilterModal?: number
563
+
564
+ /**
565
+ * 情绪能量值,取值为音量分贝值/10。取值范围:[1,10]。值越高情绪越强烈。0:不开启,1:开启
566
+ */
567
+ EmotionalEnergy?: number
568
+
569
+ /**
570
+ * 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”、“蜜汁”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
571
+ */
572
+ ReinforceHotword?: number
554
573
  }
555
574
 
556
575
  /**
@@ -957,6 +976,18 @@ export interface SentenceDetail {
957
976
  注意:此字段可能返回 null,表示取不到有效值。
958
977
  */
959
978
  SpeakerId: number
979
+
980
+ /**
981
+ * 情绪能量值,取值为音量分贝值/10。取值范围:[1,10]。值越高情绪越强烈。
982
+ 注意:此字段可能返回 null,表示取不到有效值。
983
+ */
984
+ EmotionalEnergy: number
985
+
986
+ /**
987
+ * 本句与上一句之间的静音时长
988
+ 注意:此字段可能返回 null,表示取不到有效值。
989
+ */
990
+ SilenceTime: number
960
991
  }
961
992
 
962
993
  /**
@@ -0,0 +1,5 @@
1
+ import { v20200915 } from "./v20200915"
2
+
3
+ export const cdwch = {
4
+ v20200915: v20200915,
5
+ }
@@ -0,0 +1,118 @@
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 { AbstractClient } from "../../../common/abstract_client"
19
+ import { ClientConfig } from "../../../common/interface"
20
+ import {
21
+ DescribeInstanceShardsRequest,
22
+ ModifyUserNewPrivilegeRequest,
23
+ CreateBackUpScheduleRequest,
24
+ DescribeInstanceShardsResponse,
25
+ OpenBackUpRequest,
26
+ ModifyClusterConfigsResponse,
27
+ BackupTableContent,
28
+ OpenBackUpResponse,
29
+ ConfigSubmitContext,
30
+ ActionAlterCkUserResponse,
31
+ DescribeCkSqlApisRequest,
32
+ ActionAlterCkUserRequest,
33
+ CkUserAlterInfo,
34
+ CreateBackUpScheduleResponse,
35
+ ModifyClusterConfigsRequest,
36
+ DescribeCkSqlApisResponse,
37
+ ModifyUserNewPrivilegeResponse,
38
+ } from "./cdwch_models"
39
+
40
+ /**
41
+ * cdwch client
42
+ * @class
43
+ */
44
+ export class Client extends AbstractClient {
45
+ constructor(clientConfig: ClientConfig) {
46
+ super("cdwch.tencentcloudapi.com", "2020-09-15", clientConfig)
47
+ }
48
+
49
+ /**
50
+ * 创建或者修改备份策略
51
+ */
52
+ async CreateBackUpSchedule(
53
+ req: CreateBackUpScheduleRequest,
54
+ cb?: (error: string, rep: CreateBackUpScheduleResponse) => void
55
+ ): Promise<CreateBackUpScheduleResponse> {
56
+ return this.request("CreateBackUpSchedule", req, cb)
57
+ }
58
+
59
+ /**
60
+ * 针对驱动sql命令查询ck集群接口
61
+ */
62
+ async DescribeCkSqlApis(
63
+ req: DescribeCkSqlApisRequest,
64
+ cb?: (error: string, rep: DescribeCkSqlApisResponse) => void
65
+ ): Promise<DescribeCkSqlApisResponse> {
66
+ return this.request("DescribeCkSqlApis", req, cb)
67
+ }
68
+
69
+ /**
70
+ * 新增和修改用户接口
71
+ */
72
+ async ActionAlterCkUser(
73
+ req: ActionAlterCkUserRequest,
74
+ cb?: (error: string, rep: ActionAlterCkUserResponse) => void
75
+ ): Promise<ActionAlterCkUserResponse> {
76
+ return this.request("ActionAlterCkUser", req, cb)
77
+ }
78
+
79
+ /**
80
+ * 开启或者关闭策略
81
+ */
82
+ async OpenBackUp(
83
+ req: OpenBackUpRequest,
84
+ cb?: (error: string, rep: OpenBackUpResponse) => void
85
+ ): Promise<OpenBackUpResponse> {
86
+ return this.request("OpenBackUp", req, cb)
87
+ }
88
+
89
+ /**
90
+ * 在集群配置页面修改集群配置文件接口,xml模式
91
+ */
92
+ async ModifyClusterConfigs(
93
+ req: ModifyClusterConfigsRequest,
94
+ cb?: (error: string, rep: ModifyClusterConfigsResponse) => void
95
+ ): Promise<ModifyClusterConfigsResponse> {
96
+ return this.request("ModifyClusterConfigs", req, cb)
97
+ }
98
+
99
+ /**
100
+ * 针对ck账号的权限做管控(新版)
101
+ */
102
+ async ModifyUserNewPrivilege(
103
+ req?: ModifyUserNewPrivilegeRequest,
104
+ cb?: (error: string, rep: ModifyUserNewPrivilegeResponse) => void
105
+ ): Promise<ModifyUserNewPrivilegeResponse> {
106
+ return this.request("ModifyUserNewPrivilege", req, cb)
107
+ }
108
+
109
+ /**
110
+ * 获取实例shard信息列表
111
+ */
112
+ async DescribeInstanceShards(
113
+ req: DescribeInstanceShardsRequest,
114
+ cb?: (error: string, rep: DescribeInstanceShardsResponse) => void
115
+ ): Promise<DescribeInstanceShardsResponse> {
116
+ return this.request("DescribeInstanceShards", req, cb)
117
+ }
118
+ }
@@ -0,0 +1,314 @@
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
+ * DescribeInstanceShards请求参数结构体
20
+ */
21
+ export interface DescribeInstanceShardsRequest {
22
+ /**
23
+ * 集群实例ID
24
+ */
25
+ InstanceId: string
26
+ }
27
+
28
+ /**
29
+ * ModifyUserNewPrivilege请求参数结构体
30
+ */
31
+ export type ModifyUserNewPrivilegeRequest = null
32
+
33
+ /**
34
+ * CreateBackUpSchedule请求参数结构体
35
+ */
36
+ export interface CreateBackUpScheduleRequest {
37
+ /**
38
+ * 编辑时需要传
39
+ */
40
+ ScheduleId?: number
41
+
42
+ /**
43
+ * 选择的星期 逗号分隔
44
+ */
45
+ WeekDays?: string
46
+
47
+ /**
48
+ * 执行小时
49
+ */
50
+ ExecuteHour?: number
51
+
52
+ /**
53
+ * 备份表列表
54
+ */
55
+ BackUpTables?: Array<BackupTableContent>
56
+ }
57
+
58
+ /**
59
+ * DescribeInstanceShards返回参数结构体
60
+ */
61
+ export interface DescribeInstanceShardsResponse {
62
+ /**
63
+ * 实例shard信息
64
+ 注意:此字段可能返回 null,表示取不到有效值。
65
+ */
66
+ InstanceShardsList: string
67
+
68
+ /**
69
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
70
+ */
71
+ RequestId?: string
72
+ }
73
+
74
+ /**
75
+ * OpenBackUp请求参数结构体
76
+ */
77
+ export interface OpenBackUpRequest {
78
+ /**
79
+ * 集群id
80
+ */
81
+ InstanceId: string
82
+
83
+ /**
84
+ * OPEN 或者CLOSE
85
+ */
86
+ OperationType: string
87
+
88
+ /**
89
+ * 桶名字
90
+ */
91
+ CosBucketName: string
92
+ }
93
+
94
+ /**
95
+ * ModifyClusterConfigs返回参数结构体
96
+ */
97
+ export interface ModifyClusterConfigsResponse {
98
+ /**
99
+ * 流程相关信息
100
+ */
101
+ FlowId: number
102
+
103
+ /**
104
+ * 错误信息
105
+ */
106
+ ErrorMsg: string
107
+
108
+ /**
109
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
110
+ */
111
+ RequestId?: string
112
+ }
113
+
114
+ /**
115
+ * 备份表信息
116
+ */
117
+ export interface BackupTableContent {
118
+ /**
119
+ * 数据库
120
+ */
121
+ Database: string
122
+
123
+ /**
124
+ * 表
125
+ */
126
+ Table: string
127
+
128
+ /**
129
+ * 表总字节数
130
+ */
131
+ TotalBytes: number
132
+
133
+ /**
134
+ * 虚拟cluster
135
+ */
136
+ VCluster?: string
137
+
138
+ /**
139
+ * 表ip
140
+ */
141
+ Ips?: string
142
+ }
143
+
144
+ /**
145
+ * OpenBackUp返回参数结构体
146
+ */
147
+ export interface OpenBackUpResponse {
148
+ /**
149
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
150
+ */
151
+ RequestId?: string
152
+ }
153
+
154
+ /**
155
+ * 配置文件修改信息
156
+ */
157
+ export interface ConfigSubmitContext {
158
+ /**
159
+ * 配置文件名称
160
+ */
161
+ FileName: string
162
+
163
+ /**
164
+ * 配置文件旧内容,base64编码
165
+ */
166
+ OldConfValue: string
167
+
168
+ /**
169
+ * 配置文件新内容,base64编码
170
+ */
171
+ NewConfValue: string
172
+
173
+ /**
174
+ * 保存配置文件的路径
175
+ */
176
+ FilePath?: string
177
+ }
178
+
179
+ /**
180
+ * ActionAlterCkUser返回参数结构体
181
+ */
182
+ export interface ActionAlterCkUserResponse {
183
+ /**
184
+ * 错误信息
185
+ 注意:此字段可能返回 null,表示取不到有效值。
186
+ */
187
+ ErrMsg: string
188
+
189
+ /**
190
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
191
+ */
192
+ RequestId?: string
193
+ }
194
+
195
+ /**
196
+ * DescribeCkSqlApis请求参数结构体
197
+ */
198
+ export interface DescribeCkSqlApisRequest {
199
+ /**
200
+ * 实例id
201
+ */
202
+ InstanceId: string
203
+
204
+ /**
205
+ * api接口名称
206
+ */
207
+ ApiType: string
208
+
209
+ /**
210
+ * 集群名称
211
+ */
212
+ Cluster?: string
213
+
214
+ /**
215
+ * 用户名称
216
+ */
217
+ UserName?: string
218
+ }
219
+
220
+ /**
221
+ * ActionAlterCkUser请求参数结构体
222
+ */
223
+ export interface ActionAlterCkUserRequest {
224
+ /**
225
+ * 用户信息
226
+ */
227
+ UserInfo: CkUserAlterInfo
228
+
229
+ /**
230
+ * api接口类型
231
+ */
232
+ ApiType: string
233
+ }
234
+
235
+ /**
236
+ * 新增或是修改ck用户
237
+ */
238
+ export interface CkUserAlterInfo {
239
+ /**
240
+ * 集群实例id
241
+ */
242
+ InstanceId: string
243
+
244
+ /**
245
+ * 用户名
246
+ */
247
+ UserName: string
248
+
249
+ /**
250
+ * 密码
251
+ */
252
+ PassWord: string
253
+
254
+ /**
255
+ * 描述
256
+ */
257
+ Describe?: string
258
+ }
259
+
260
+ /**
261
+ * CreateBackUpSchedule返回参数结构体
262
+ */
263
+ export interface CreateBackUpScheduleResponse {
264
+ /**
265
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
266
+ */
267
+ RequestId?: string
268
+ }
269
+
270
+ /**
271
+ * ModifyClusterConfigs请求参数结构体
272
+ */
273
+ export interface ModifyClusterConfigsRequest {
274
+ /**
275
+ * 集群ID,例如cdwch-xxxx
276
+ */
277
+ InstanceId: string
278
+
279
+ /**
280
+ * 配置文件修改信息
281
+ */
282
+ ModifyConfContext: Array<ConfigSubmitContext>
283
+
284
+ /**
285
+ * 修改原因
286
+ */
287
+ Remark?: string
288
+ }
289
+
290
+ /**
291
+ * DescribeCkSqlApis返回参数结构体
292
+ */
293
+ export interface DescribeCkSqlApisResponse {
294
+ /**
295
+ * 返回的查询数据,大部分情况是list,也可能是bool
296
+ 注意:此字段可能返回 null,表示取不到有效值。
297
+ */
298
+ ReturnData: string
299
+
300
+ /**
301
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
302
+ */
303
+ RequestId?: string
304
+ }
305
+
306
+ /**
307
+ * ModifyUserNewPrivilege返回参数结构体
308
+ */
309
+ export interface ModifyUserNewPrivilegeResponse {
310
+ /**
311
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
312
+ */
313
+ RequestId?: string
314
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./cdwch_models"
2
+ import { Client } from "./cdwch_client"
3
+ export const v20200915 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -527,10 +527,10 @@ export class Client extends AbstractClient {
527
527
  }
528
528
 
529
529
  /**
530
- * 支持对拦截列表、忽略列表如下操作:
531
- 批量增加拦截IP、忽略IP/域名
532
- 批量删除拦截IP、忽略IP/域名
533
- 批量修改拦截IP、忽略IP/域名生效事件
530
+ * 支持对封禁列表、放通列表如下操作:
531
+ 批量增加封禁IP、放通IP/域名
532
+ 批量删除封禁IP、放通IP/域名
533
+ 批量修改封禁IP、放通IP/域名生效事件
534
534
  */
535
535
  async ModifyBlockIgnoreList(
536
536
  req: ModifyBlockIgnoreListRequest,
@@ -927,7 +927,7 @@ export interface ModifyAssetScanRequest {
927
927
  */
928
928
  export interface ModifyBlockIgnoreListRequest {
929
929
  /**
930
- * 1拦截列表 2 忽略列表
930
+ * 1封禁列表 2 放通列表
931
931
  */
932
932
  RuleType: number
933
933
 
@@ -947,7 +947,7 @@ export interface ModifyBlockIgnoreListRequest {
947
947
  StartTime?: string
948
948
 
949
949
  /**
950
- * 时间格式:yyyy-MM-dd HH:mm:ss,IocAction 为edit或add时必填
950
+ * 时间格式:yyyy-MM-dd HH:mm:ss,IocAction 为edit或add时必填,必须大于当前时间且大于StartTime
951
951
  */
952
952
  EndTime?: string
953
953
  }