tencentcloud-sdk-nodejs 4.0.789 → 4.0.791

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 (96) hide show
  1. package/CHANGELOG.md +804 -0
  2. package/README.md +6 -0
  3. package/SERVICE_CHANGELOG.md +1231 -240
  4. package/examples/cls/v20201016/cls.proto +34 -0
  5. package/examples/cls/v20201016/upload_log.js +69 -0
  6. package/package.json +1 -1
  7. package/products.md +23 -23
  8. package/src/common/abstract_client.ts +32 -0
  9. package/src/common/http/http_connection.ts +5 -2
  10. package/src/common/sdk_version.ts +1 -1
  11. package/src/common/sign.ts +8 -4
  12. package/src/services/apigateway/v20180808/apigateway_models.ts +9 -4
  13. package/src/services/as/v20180419/as_models.ts +38 -38
  14. package/src/services/bi/v20220105/bi_client.ts +1 -0
  15. package/src/services/bi/v20220105/bi_models.ts +226 -16
  16. package/src/services/cdb/v20170320/cdb_client.ts +18 -6
  17. package/src/services/cdb/v20170320/cdb_models.ts +15 -0
  18. package/src/services/cls/v20201016/cls_client.ts +70 -21
  19. package/src/services/cls/v20201016/cls_models.ts +360 -145
  20. package/src/services/csip/v20221121/csip_client.ts +1 -0
  21. package/src/services/csip/v20221121/csip_models.ts +26 -0
  22. package/src/services/cwp/v20180228/cwp_client.ts +4 -2
  23. package/src/services/emr/v20190103/emr_models.ts +7 -7
  24. package/src/services/ess/v20201111/ess_client.ts +22 -4
  25. package/src/services/ess/v20201111/ess_models.ts +19 -10
  26. package/src/services/essbasic/v20210526/essbasic_client.ts +11 -9
  27. package/src/services/essbasic/v20210526/essbasic_models.ts +8 -0
  28. package/src/services/iotcloud/v20210408/iotcloud_client.ts +12 -0
  29. package/src/services/iotcloud/v20210408/iotcloud_models.ts +43 -3
  30. package/src/services/iotvideo/v20211125/iotvideo_models.ts +8 -0
  31. package/src/services/lcic/v20220817/lcic_models.ts +8 -0
  32. package/src/services/mna/v20210119/mna_models.ts +3 -3
  33. package/src/services/rum/v20210622/rum_client.ts +0 -12
  34. package/src/services/rum/v20210622/rum_models.ts +2 -109
  35. package/src/services/ssl/v20191205/ssl_models.ts +2 -3
  36. package/src/services/teo/v20220901/teo_client.ts +20 -15
  37. package/src/services/teo/v20220901/teo_models.ts +8 -4
  38. package/src/services/tmt/v20180321/tmt_models.ts +2 -2
  39. package/src/services/trro/v20220325/trro_models.ts +13 -0
  40. package/src/services/tse/v20201207/tse_client.ts +2 -1
  41. package/src/services/tse/v20201207/tse_models.ts +45 -15
  42. package/src/services/wedata/v20210820/wedata_client.ts +2802 -5338
  43. package/src/services/wedata/v20210820/wedata_models.ts +14500 -29440
  44. package/src/services/weilingwith/v20230427/weilingwith_models.ts +20 -2
  45. package/tencentcloud/common/abstract_client.d.ts +4 -0
  46. package/tencentcloud/common/abstract_client.js +22 -0
  47. package/tencentcloud/common/http/http_connection.js +6 -2
  48. package/tencentcloud/common/sdk_version.d.ts +1 -1
  49. package/tencentcloud/common/sdk_version.js +1 -1
  50. package/tencentcloud/common/sign.d.ts +2 -1
  51. package/tencentcloud/common/sign.js +6 -4
  52. package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +9 -4
  53. package/tencentcloud/services/as/v20180419/as_models.d.ts +38 -38
  54. package/tencentcloud/services/bi/v20220105/bi_models.d.ts +225 -16
  55. package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +7 -3
  56. package/tencentcloud/services/cdb/v20170320/cdb_client.js +9 -3
  57. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +13 -0
  58. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +23 -7
  59. package/tencentcloud/services/cls/v20201016/cls_client.js +33 -9
  60. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +351 -145
  61. package/tencentcloud/services/csip/v20221121/csip_models.d.ts +25 -0
  62. package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +3 -1
  63. package/tencentcloud/services/cwp/v20180228/cwp_client.js +3 -1
  64. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +7 -7
  65. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +22 -4
  66. package/tencentcloud/services/ess/v20201111/ess_client.js +22 -4
  67. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +19 -10
  68. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +11 -9
  69. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +11 -9
  70. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +8 -0
  71. package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.d.ts +5 -1
  72. package/tencentcloud/services/iotcloud/v20210408/iotcloud_client.js +6 -0
  73. package/tencentcloud/services/iotcloud/v20210408/iotcloud_models.d.ts +41 -3
  74. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +8 -0
  75. package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +8 -0
  76. package/tencentcloud/services/mna/v20210119/mna_models.d.ts +3 -3
  77. package/tencentcloud/services/rum/v20210622/rum_client.d.ts +1 -5
  78. package/tencentcloud/services/rum/v20210622/rum_client.js +0 -6
  79. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +2 -107
  80. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +2 -3
  81. package/tencentcloud/services/teo/v20220901/teo_client.d.ts +15 -10
  82. package/tencentcloud/services/teo/v20220901/teo_client.js +15 -10
  83. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +8 -4
  84. package/tencentcloud/services/tmt/v20180321/tmt_models.d.ts +2 -2
  85. package/tencentcloud/services/trro/v20220325/trro_models.d.ts +13 -0
  86. package/tencentcloud/services/tse/v20201207/tse_client.d.ts +1 -1
  87. package/tencentcloud/services/tse/v20201207/tse_models.d.ts +44 -15
  88. package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +675 -1483
  89. package/tencentcloud/services/wedata/v20210820/wedata_client.js +1027 -2237
  90. package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +14275 -28693
  91. package/tencentcloud/services/weilingwith/v20230427/weilingwith_models.d.ts +20 -2
  92. package/test/cdb.v20170320.test.js +12 -2
  93. package/test/cls.v20201016.test.js +52 -12
  94. package/test/iotcloud.v20210408.test.js +10 -0
  95. package/test/rum.v20210622.test.js +0 -10
  96. package/test/wedata.v20210820.test.js +636 -2646
@@ -0,0 +1,34 @@
1
+ syntax = "proto2";
2
+
3
+ package cls;
4
+
5
+ message Log
6
+ {
7
+ message Content
8
+ {
9
+ required string key = 1; // 每组字段的 key
10
+ required string value = 2; // 每组字段的 value
11
+ }
12
+ required int64 time = 1; // 时间戳,UNIX时间格式
13
+ repeated Content contents = 2; // 一条日志里的多个kv组合
14
+ }
15
+
16
+ message LogTag
17
+ {
18
+ required string key = 1;
19
+ required string value = 2;
20
+ }
21
+
22
+ message LogGroup
23
+ {
24
+ repeated Log logs = 1; // 多条日志合成的日志数组
25
+ optional string contextFlow = 2; // 目前暂无效用
26
+ optional string filename = 3; // 日志文件名
27
+ optional string source = 4; // 日志来源,一般使用机器IP
28
+ repeated LogTag logTags = 5;
29
+ }
30
+
31
+ message LogGroupList
32
+ {
33
+ repeated LogGroup logGroupList = 1; // 日志组列表
34
+ }
@@ -0,0 +1,69 @@
1
+ const { CommonClient } = require("../../../tencentcloud/common/common_client")
2
+ const protobuf = require("protobufjs")
3
+ const lz4 = require("lz4")
4
+ const path = require("path")
5
+
6
+ // 实例化要请求产品的client对象。profile可选。
7
+ const clientConfig = {
8
+ credential: {
9
+ secretId: process.env.secretId,
10
+ secretKey: process.env.secretKey,
11
+ },
12
+ region: "ap-guangzhou",
13
+ profile: {
14
+ httpProfile: {
15
+ endpoint: "cls.tencentcloudapi.com",
16
+ headers: {
17
+ "X-CLS-TopicId": "", // 替换为自己业务的 topic
18
+ "X-CLS-HashKey": "", // 可选参数,具体参考官方文档:https://cloud.tencent.com/document/product/614/59470
19
+ "X-CLS-CompressType": "lz4", // lz4压缩方式, 空字符串意味不压缩
20
+ },
21
+ },
22
+ },
23
+ }
24
+
25
+ // 实例化要请求产品的client对象,clientProfile是可选的
26
+ const client = new CommonClient("cls.tencentcloudapi.com", "2020-10-16", clientConfig)
27
+ // lz4 压缩数据
28
+ const params = compress(getBodyInfo())
29
+ client.requestOctetStream("UploadLog", params).then(
30
+ (data) => {
31
+ console.log(data)
32
+ },
33
+ (err) => {
34
+ console.error("error", err)
35
+ }
36
+ )
37
+
38
+ function compress(input) {
39
+ const output = Buffer.alloc(lz4.encodeBound(input.length))
40
+ const compressedBlockSize = lz4.encodeBlock(input, output)
41
+ return output.slice(0, compressedBlockSize)
42
+ }
43
+
44
+ function getBodyInfo() {
45
+ const root = protobuf.loadSync(path.join(__dirname, "cls.proto"))
46
+ const LogGroupList = root.lookupType("cls.LogGroupList")
47
+ const payload = {
48
+ logGroupList: [
49
+ {
50
+ logs: [
51
+ {
52
+ time: Date.now(),
53
+ contents: [
54
+ {
55
+ key: "name",
56
+ value: "张三",
57
+ },
58
+ {
59
+ key: "age",
60
+ value: "18",
61
+ },
62
+ ],
63
+ },
64
+ ],
65
+ },
66
+ ],
67
+ }
68
+ return LogGroupList.encode(payload).finish()
69
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs",
3
- "version": "4.0.789",
3
+ "version": "4.0.791",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -14,15 +14,15 @@
14
14
  | apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
15
15
  | ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
16
16
  | api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
17
- | apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2024-01-29 01:06:19 |
17
+ | apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2024-01-31 01:06:22 |
18
18
  | apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2023-12-15 18:59:23 |
19
- | as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2023-11-20 00:01:45 |
19
+ | as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2024-01-31 01:06:41 |
20
20
  | asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2024-01-23 01:09:15 |
21
21
  | asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 |
22
22
  | ba | [ICP备案](https://cloud.tencent.com/document/product/243) | 2023-10-13 01:07:08 |
23
23
  | batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2024-01-01 00:02:00 |
24
24
  | bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2023-10-11 01:10:01 |
25
- | bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2024-01-10 01:07:00 |
25
+ | bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2024-01-31 01:07:03 |
26
26
  | billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2024-01-18 01:09:19 |
27
27
  | bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
28
28
  | bm | [黑石物理服务器CPM](https://cloud.tencent.com/document/product/386) | 2023-10-18 01:14:30 |
@@ -40,7 +40,7 @@
40
40
  | cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2023-12-29 01:09:11 |
41
41
  | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2023-12-27 01:08:57 |
42
42
  | ccc | [云联络中心](https://cloud.tencent.com/document/product/679) | 2024-01-25 15:34:29 |
43
- | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-01-24 01:22:49 |
43
+ | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-01-30 01:08:20 |
44
44
  | cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2024-01-15 01:08:17 |
45
45
  | cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-01-17 01:09:06 |
46
46
  | cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2024-01-24 01:23:26 |
@@ -60,17 +60,17 @@
60
60
  | cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2024-01-15 01:09:37 |
61
61
  | cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2023-08-17 01:57:08 |
62
62
  | cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-08-03 01:03:28 |
63
- | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2024-01-19 01:09:34 |
63
+ | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2024-01-31 01:10:12 |
64
64
  | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2023-12-05 01:27:33 |
65
65
  | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2023-08-17 02:03:39 |
66
66
  | cms | [内容安全](https://cloud.tencent.com/document/product/669) | 2023-08-24 01:10:10 |
67
67
  | config | [配置审计](https://cloud.tencent.com/document/product/1579) | 2023-11-27 00:06:03 |
68
68
  | cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-09-21 02:09:54 |
69
69
  | cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
70
- | csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2024-01-22 01:09:58 |
70
+ | csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2024-01-31 01:10:44 |
71
71
  | csxg | [5G入云服务](https://cloud.tencent.com/document/product/1687) | 2023-05-19 11:26:14 |
72
72
  | cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2024-01-18 01:12:34 |
73
- | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2024-01-05 01:11:37 |
73
+ | cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2024-01-31 01:11:09 |
74
74
  | cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
75
75
  | cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2024-01-25 01:10:23 |
76
76
  | dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2024-01-24 01:26:26 |
@@ -94,10 +94,10 @@
94
94
  | ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2023-12-20 01:36:00 |
95
95
  | eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2023-05-18 01:25:40 |
96
96
  | eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
97
- | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-01-29 01:13:24 |
97
+ | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-01-31 01:14:36 |
98
98
  | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-01-25 01:13:20 |
99
- | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-01-26 01:13:26 |
100
- | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-01-26 01:13:42 |
99
+ | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-01-30 01:14:38 |
100
+ | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-01-31 01:15:04 |
101
101
  | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2023-12-15 19:41:44 |
102
102
  | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-01-12 01:15:37 |
103
103
  | fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2023-12-25 00:11:01 |
@@ -122,17 +122,17 @@
122
122
  | ims | [图片内容安全](https://cloud.tencent.com/document/product/1125) | 2023-09-14 01:52:37 |
123
123
  | ioa | [iOA 零信任安全管理系统](https://cloud.tencent.com/document/product/1092) | 2024-01-26 01:14:52 |
124
124
  | iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2023-07-17 01:22:28 |
125
- | iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2023-11-06 00:11:14 |
125
+ | iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2024-01-31 01:16:26 |
126
126
  | iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2023-10-16 01:17:51 |
127
127
  | iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2023-05-18 01:33:02 |
128
- | iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2024-01-23 01:20:20 |
128
+ | iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2024-01-30 01:16:52 |
129
129
  | iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2023-08-17 03:44:44 |
130
130
  | irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2023-09-22 02:00:51 |
131
131
  | iss | [智能视图计算平台](https://cloud.tencent.com/document/product/1344) | 2024-01-26 01:15:52 |
132
132
  | ivld | [媒体智能标签](https://cloud.tencent.com/document/product/1509) | 2023-12-28 01:18:25 |
133
133
  | keewidb | [云数据库 KeeWiDB](https://cloud.tencent.com/document/product/1520) | 2023-11-30 04:52:16 |
134
134
  | kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2024-01-25 01:16:59 |
135
- | lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2023-12-21 01:48:52 |
135
+ | lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2024-01-31 01:17:54 |
136
136
  | lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-01-03 01:18:19 |
137
137
  | live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-01-22 01:16:38 |
138
138
  | lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
@@ -143,7 +143,7 @@
143
143
  | memcached | [云数据库Memcached](https://cloud.tencent.com/document/product/241) | 2023-10-20 01:19:21 |
144
144
  | mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
145
145
  | mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2023-05-18 01:39:20 |
146
- | mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2023-12-01 01:19:47 |
146
+ | mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2024-01-30 01:18:35 |
147
147
  | mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2024-01-29 01:17:07 |
148
148
  | monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-01-29 01:17:14 |
149
149
  | mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-01-26 01:17:35 |
@@ -167,7 +167,7 @@
167
167
  | region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2023-10-13 01:22:28 |
168
168
  | rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2023-12-25 00:16:39 |
169
169
  | rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
170
- | rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2024-01-23 01:26:09 |
170
+ | rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2024-01-31 01:20:58 |
171
171
  | scf | [云函数](https://cloud.tencent.com/document/product/583) | 2024-01-24 01:34:14 |
172
172
  | ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2023-12-25 00:16:59 |
173
173
  | smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2023-07-11 01:37:49 |
@@ -178,7 +178,7 @@
178
178
  | solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
179
179
  | sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2024-01-17 01:21:16 |
180
180
  | ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2023-11-15 02:18:28 |
181
- | ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2024-01-29 01:19:48 |
181
+ | ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2024-01-30 01:21:39 |
182
182
  | sslpod | [证书监控 SSLPod](https://cloud.tencent.com/document/product/1084) | 2023-08-17 04:46:28 |
183
183
  | ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2023-12-28 01:23:11 |
184
184
  | sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2024-01-17 01:21:44 |
@@ -205,7 +205,7 @@
205
205
  | tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2024-01-12 01:24:10 |
206
206
  | tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2023-11-15 02:26:59 |
207
207
  | tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2023-12-20 02:13:36 |
208
- | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-01-27 19:39:47 |
208
+ | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-01-30 01:24:01 |
209
209
  | thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2023-11-27 00:20:12 |
210
210
  | tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
211
211
  | tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-08-17 05:26:08 |
@@ -218,14 +218,14 @@
218
218
  | tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2024-01-22 11:36:09 |
219
219
  | tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
220
220
  | tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2024-01-12 01:25:58 |
221
- | tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2024-01-25 01:24:16 |
221
+ | tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2024-01-30 01:25:25 |
222
222
  | tourism | [文旅客情大数据](https://cloud.tencent.com/document/product/1684) | 2023-08-10 01:43:37 |
223
223
  | trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 |
224
224
  | trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-01-23 01:30:19 |
225
225
  | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2023-12-29 01:27:21 |
226
- | trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2023-07-18 01:53:24 |
226
+ | trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-01-31 01:25:41 |
227
227
  | trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-01-24 17:17:12 |
228
- | tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2024-01-29 01:23:38 |
228
+ | tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2024-01-31 01:25:54 |
229
229
  | tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-01-15 01:25:03 |
230
230
  | tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2023-05-18 02:04:00 |
231
231
  | tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2023-11-27 00:22:20 |
@@ -233,12 +233,12 @@
233
233
  | vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2023-12-22 01:27:31 |
234
234
  | vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2023-08-17 05:50:56 |
235
235
  | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2024-01-25 01:25:21 |
236
- | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2024-01-26 01:24:53 |
236
+ | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2024-01-30 01:27:12 |
237
237
  | vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2023-11-27 00:23:42 |
238
238
  | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2024-01-26 01:25:28 |
239
239
  | wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2023-11-15 02:42:49 |
240
- | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-01-26 10:56:08 |
241
- | weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2024-01-17 01:27:53 |
240
+ | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-01-30 01:28:12 |
241
+ | weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2024-01-31 01:28:56 |
242
242
  | wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
243
243
  | yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2023-12-26 02:06:57 |
244
244
  | youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
@@ -142,6 +142,38 @@ export class AbstractClient {
142
142
  }
143
143
  }
144
144
 
145
+ /**
146
+ * @inner
147
+ */
148
+ async requestOctetStream(
149
+ action: string,
150
+ req: any,
151
+ options?: ResponseCallback | RequestOptions,
152
+ cb?: ResponseCallback
153
+ ) {
154
+ if (typeof options === "function") {
155
+ cb = options
156
+ options = {} as RequestOptions
157
+ }
158
+
159
+ try {
160
+ const result = await this.doRequest(
161
+ action,
162
+ req ?? {},
163
+ Object.assign({}, options, {
164
+ headers: {
165
+ "Content-Type": "application/octet-stream; charset=utf-8",
166
+ },
167
+ })
168
+ )
169
+ cb && cb(null, result)
170
+ return result
171
+ } catch (e) {
172
+ cb && cb(e as any, null)
173
+ throw e
174
+ }
175
+ }
176
+
145
177
  /**
146
178
  * @inner
147
179
  */
@@ -142,8 +142,10 @@ export class HttpConnection {
142
142
  config.headers["Content-Type"] = "application/x-www-form-urlencoded"
143
143
  }
144
144
  if (method === "POST" && !multipart) {
145
- config.body = JSONbigNative.stringify(data)
146
- config.headers["Content-Type"] = "application/json"
145
+ config.body = data
146
+ const contentType = config.headers["Content-Type"] || "application/json"
147
+ if (!isBuffer(data)) config.body = JSONbigNative.stringify(data)
148
+ config.headers["Content-Type"] = contentType
147
149
  }
148
150
  if (method === "POST" && multipart) {
149
151
  form = new FormData()
@@ -164,6 +166,7 @@ export class HttpConnection {
164
166
  secretKey,
165
167
  multipart,
166
168
  boundary: form ? form.getBoundary() : undefined,
169
+ headers: config.headers,
167
170
  })
168
171
 
169
172
  config.headers["Authorization"] = signature
@@ -1 +1 @@
1
- export const sdkVersion = "4.0.789"
1
+ export const sdkVersion = "4.0.791"
@@ -36,6 +36,7 @@ export default class Sign {
36
36
  secretKey,
37
37
  multipart,
38
38
  boundary,
39
+ headers: configHeaders = {},
39
40
  }: {
40
41
  method?: string
41
42
  url?: string
@@ -46,21 +47,23 @@ export default class Sign {
46
47
  secretKey: string
47
48
  multipart: boolean
48
49
  boundary: string
50
+ headers: Record<string, string>
49
51
  }): string {
50
52
  const urlObj = new URL(url)
53
+ const contentType = configHeaders["Content-Type"]
51
54
 
52
55
  // 通用头部
53
56
  let headers = ""
54
57
  let signedHeaders = ""
55
58
  if (method === "GET") {
56
59
  signedHeaders = "content-type"
57
- headers = "content-type:application/x-www-form-urlencoded\n"
60
+ headers = `content-type:${contentType}\n`
58
61
  } else if (method === "POST") {
59
62
  signedHeaders = "content-type"
60
63
  if (multipart) {
61
64
  headers = `content-type:multipart/form-data; boundary=${boundary}\n`
62
65
  } else {
63
- headers = "content-type:application/json\n"
66
+ headers = `content-type:${contentType}\n`
64
67
  }
65
68
  }
66
69
  headers += `host:${urlObj.hostname}\n`
@@ -90,7 +93,8 @@ export default class Sign {
90
93
  hash.update(`--\r\n`)
91
94
  payload_hash = hash.digest("hex")
92
95
  } else {
93
- payload_hash = payload ? getHash(JSONbigNative.stringify(payload)) : getHash("")
96
+ const hashMessage = Buffer.isBuffer(payload) ? payload : JSONbigNative.stringify(payload)
97
+ payload_hash = payload ? getHash(hashMessage) : getHash("")
94
98
  }
95
99
 
96
100
  const canonicalRequest =
@@ -130,7 +134,7 @@ function sha256(message: string, secret = "", encoding?: string): string {
130
134
  return hmac.update(message).digest(encoding as any)
131
135
  }
132
136
 
133
- function getHash(message: string, encoding = "hex"): string {
137
+ function getHash(message: crypto.BinaryLike, encoding = "hex"): string {
134
138
  const hash = crypto.createHash("sha256")
135
139
  return hash.update(message).digest(encoding as any)
136
140
  }
@@ -4114,19 +4114,24 @@ export interface Environment {
4114
4114
  /**
4115
4115
  * 环境名称。
4116
4116
  */
4117
- EnvironmentName: string
4117
+ EnvironmentName?: string
4118
4118
  /**
4119
4119
  * 访问路径。
4120
4120
  */
4121
- Url: string
4121
+ Url?: string
4122
4122
  /**
4123
4123
  * 发布状态,1 表示已发布,0 表示未发布。
4124
4124
  */
4125
- Status: number
4125
+ Status?: number
4126
4126
  /**
4127
4127
  * 运行版本。
4128
4128
  */
4129
- VersionName: string
4129
+ VersionName?: string
4130
+ /**
4131
+ * 创建时间
4132
+ 注意:此字段可能返回 null,表示取不到有效值。
4133
+ */
4134
+ CreateTime?: string
4130
4135
  }
4131
4136
 
4132
4137
  /**
@@ -418,131 +418,131 @@ export interface LaunchConfiguration {
418
418
  /**
419
419
  * 实例所属项目ID。
420
420
  */
421
- ProjectId: number
421
+ ProjectId?: number
422
422
  /**
423
423
  * 启动配置ID。
424
424
  */
425
- LaunchConfigurationId: string
425
+ LaunchConfigurationId?: string
426
426
  /**
427
427
  * 启动配置名称。
428
428
  */
429
- LaunchConfigurationName: string
429
+ LaunchConfigurationName?: string
430
430
  /**
431
431
  * 实例机型。
432
432
  */
433
- InstanceType: string
433
+ InstanceType?: string
434
434
  /**
435
435
  * 实例系统盘配置信息。
436
436
  */
437
- SystemDisk: SystemDisk
437
+ SystemDisk?: SystemDisk
438
438
  /**
439
439
  * 实例数据盘配置信息。
440
440
  */
441
- DataDisks: Array<DataDisk>
441
+ DataDisks?: Array<DataDisk>
442
442
  /**
443
443
  * 实例登录设置。
444
444
  */
445
- LoginSettings: LimitedLoginSettings
445
+ LoginSettings?: LimitedLoginSettings
446
446
  /**
447
447
  * 公网带宽相关信息设置。
448
448
  */
449
- InternetAccessible: InternetAccessible
449
+ InternetAccessible?: InternetAccessible
450
450
  /**
451
451
  * 实例所属安全组。
452
452
  */
453
- SecurityGroupIds: Array<string>
453
+ SecurityGroupIds?: Array<string>
454
454
  /**
455
455
  * 启动配置关联的伸缩组。
456
456
  */
457
- AutoScalingGroupAbstractSet: Array<AutoScalingGroupAbstract>
457
+ AutoScalingGroupAbstractSet?: Array<AutoScalingGroupAbstract>
458
458
  /**
459
459
  * 自定义数据。
460
460
  注意:此字段可能返回 null,表示取不到有效值。
461
461
  */
462
- UserData: string
462
+ UserData?: string
463
463
  /**
464
464
  * 启动配置创建时间。
465
465
  */
466
- CreatedTime: string
466
+ CreatedTime?: string
467
467
  /**
468
468
  * 实例的增强服务启用情况与其设置。
469
469
  */
470
- EnhancedService: EnhancedService
470
+ EnhancedService?: EnhancedService
471
471
  /**
472
472
  * 镜像ID。
473
473
  */
474
- ImageId: string
474
+ ImageId?: string
475
475
  /**
476
- * 启动配置当前状态。取值范围:<br><li>NORMAL:正常<br><li>IMAGE_ABNORMAL:启动配置镜像异常<br><li>CBS_SNAP_ABNORMAL:启动配置数据盘快照异常<br><li>SECURITY_GROUP_ABNORMAL:启动配置安全组异常<br>
476
+ * 启动配置当前状态。取值范围:<li>NORMAL:正常</li><li>IMAGE_ABNORMAL:启动配置镜像异常</li><li>CBS_SNAP_ABNORMAL:启动配置数据盘快照异常</li><li>SECURITY_GROUP_ABNORMAL:启动配置安全组异常</li>
477
477
  */
478
- LaunchConfigurationStatus: string
478
+ LaunchConfigurationStatus?: string
479
479
  /**
480
- * 实例计费类型,CVM默认值按照POSTPAID_BY_HOUR处理。
481
- <br><li>POSTPAID_BY_HOUR:按小时后付费
482
- <br><li>SPOTPAID:竞价付费
480
+ * 实例计费类型,CVM默认值按照POSTPAID_BY_HOUR处理。<li>POSTPAID_BY_HOUR:按小时后付费</li><li>SPOTPAID:竞价付费</li>
483
481
  */
484
- InstanceChargeType: string
482
+ InstanceChargeType?: string
485
483
  /**
486
484
  * 实例的市场相关选项,如竞价实例相关参数,若指定实例的付费模式为竞价付费则该参数必传。
487
485
  注意:此字段可能返回 null,表示取不到有效值。
488
486
  */
489
- InstanceMarketOptions: InstanceMarketOptionsRequest
487
+ InstanceMarketOptions?: InstanceMarketOptionsRequest
490
488
  /**
491
489
  * 实例机型列表。
492
490
  */
493
- InstanceTypes: Array<string>
491
+ InstanceTypes?: Array<string>
494
492
  /**
495
493
  * 实例标签列表。扩容出来的实例会自动带上标签,最多支持10个标签。
496
494
  */
497
- InstanceTags: Array<InstanceTag>
495
+ InstanceTags?: Array<InstanceTag>
498
496
  /**
499
497
  * 标签列表。
500
498
  注意:此字段可能返回 null,表示取不到有效值。
501
499
  */
502
- Tags: Array<Tag>
500
+ Tags?: Array<Tag>
503
501
  /**
504
502
  * 版本号。
505
503
  */
506
- VersionNumber: number
504
+ VersionNumber?: number
507
505
  /**
508
506
  * 更新时间。
509
507
  */
510
- UpdatedTime: string
508
+ UpdatedTime?: string
511
509
  /**
512
510
  * CAM角色名称。可通过DescribeRoleList接口返回值中的roleName获取。
513
511
  */
514
- CamRoleName: string
512
+ CamRoleName?: string
515
513
  /**
516
514
  * 上次操作时,InstanceTypesCheckPolicy 取值。
517
515
  */
518
- LastOperationInstanceTypesCheckPolicy: string
516
+ LastOperationInstanceTypesCheckPolicy?: string
519
517
  /**
520
518
  * 云服务器主机名(HostName)的相关设置。
521
519
  */
522
- HostNameSettings: HostNameSettings
520
+ HostNameSettings?: HostNameSettings
523
521
  /**
524
522
  * 云服务器实例名(InstanceName)的相关设置。
525
523
  */
526
- InstanceNameSettings: InstanceNameSettings
524
+ InstanceNameSettings?: InstanceNameSettings
527
525
  /**
528
526
  * 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。
529
527
  */
530
- InstanceChargePrepaid: InstanceChargePrepaid
528
+ InstanceChargePrepaid?: InstanceChargePrepaid
531
529
  /**
532
- * 云盘类型选择策略。取值范围:
533
- <br><li>ORIGINAL:使用设置的云盘类型
534
- <br><li>AUTOMATIC:自动选择当前可用区下可用的云盘类型
530
+ * 云盘类型选择策略。取值范围:<li>ORIGINAL:使用设置的云盘类型</li><li>AUTOMATIC:自动选择当前可用区下可用的云盘类型</li>
535
531
  */
536
- DiskTypePolicy: string
532
+ DiskTypePolicy?: string
537
533
  /**
538
534
  * 高性能计算集群ID。<br>
539
535
  注意:此字段默认为空。
540
536
  */
541
- HpcClusterId: string
537
+ HpcClusterId?: string
542
538
  /**
543
539
  * IPv6公网带宽相关信息设置。
544
540
  */
545
- IPv6InternetAccessible: IPv6InternetAccessible
541
+ IPv6InternetAccessible?: IPv6InternetAccessible
542
+ /**
543
+ * 置放群组id,仅支持指定一个。
544
+ */
545
+ DisasterRecoverGroupIds?: Array<string>
546
546
  }
547
547
 
548
548
  /**
@@ -4040,7 +4040,7 @@ export interface InstanceChargePrepaid {
4040
4040
  */
4041
4041
  Period: number
4042
4042
  /**
4043
- * 自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费<br><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费<br><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费<br><br>默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
4043
+ * 自动续费标识。取值范围:<li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费</li><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费</li><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费</li>默认取值:NOTIFY_AND_MANUAL_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
4044
4044
  */
4045
4045
  RenewFlag?: string
4046
4046
  }
@@ -32,6 +32,7 @@ import {
32
32
  ProjectConfigResult,
33
33
  DeleteUserRoleResponse,
34
34
  DescribeUserProjectListRequest,
35
+ ErrorInfo,
35
36
  CreateDatasourceCloudResponse,
36
37
  ProjectConfigList,
37
38
  DeleteUserRoleRequest,