tencentcloud-sdk-nodejs-teo 4.0.341 → 4.0.342
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 +137 -0
- package/SERVICE_CHANGELOG.md +239 -173
- package/package.json +1 -1
- package/products.md +14 -14
- package/src/services/teo/v20220106/teo_client.ts +23 -10
- package/src/services/teo/v20220106/teo_models.ts +130 -9
- package/tencentcloud/services/teo/v20220106/teo_client.d.ts +9 -5
- package/tencentcloud/services/teo/v20220106/teo_client.js +12 -6
- package/tencentcloud/services/teo/v20220106/teo_models.d.ts +113 -9
package/products.md
CHANGED
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
13
13
|
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-04-08 06:01:32 |
|
|
14
14
|
| apigateway | [API网关](https://cloud.tencent.com/document/product/628) | 2022-04-21 06:05:25 |
|
|
15
|
-
| apm | [应用性能观测](https://cloud.tencent.com/document/product/1463) | 2022-
|
|
15
|
+
| apm | [应用性能观测](https://cloud.tencent.com/document/product/1463) | 2022-05-17 11:59:15 |
|
|
16
16
|
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2022-04-28 06:06:38 |
|
|
17
17
|
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2022-05-09 06:02:38 |
|
|
18
18
|
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2022-04-04 06:08:40 |
|
|
19
19
|
| ba | [网站备案](https://cloud.tencent.com/document/product/243) | 2022-04-04 06:08:45 |
|
|
20
|
-
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-
|
|
20
|
+
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-05-18 06:05:54 |
|
|
21
21
|
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2022-05-09 06:02:49 |
|
|
22
22
|
| bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2022-05-13 18:34:36 |
|
|
23
23
|
| billing | [计费相关](https://cloud.tencent.com/document/product/555) | 2022-04-04 06:09:17 |
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-05-17 06:05:22 |
|
|
39
39
|
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-05-09 06:03:50 |
|
|
40
40
|
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2022-05-16 17:18:07 |
|
|
41
|
-
| cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-05-
|
|
41
|
+
| cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-05-18 06:07:16 |
|
|
42
42
|
| cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2022-04-04 06:17:07 |
|
|
43
43
|
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-04-04 06:17:11 |
|
|
44
44
|
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-04-04 06:17:16 |
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2022-04-22 06:07:06 |
|
|
56
56
|
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-04-04 06:23:04 |
|
|
57
57
|
| cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
|
|
58
|
-
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-05-
|
|
58
|
+
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-05-18 06:08:35 |
|
|
59
59
|
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
|
60
|
-
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-05-
|
|
60
|
+
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-05-18 06:09:22 |
|
|
61
61
|
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-05-17 06:07:58 |
|
|
62
62
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
63
63
|
| cynosdb | [云原生数据库 TDSQL-C](https://cloud.tencent.com/document/product/1003) | 2022-05-09 06:06:32 |
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-04-04 06:57:46 |
|
|
119
119
|
| mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2022-04-04 06:57:51 |
|
|
120
120
|
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-04-21 06:15:03 |
|
|
121
|
-
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-05-
|
|
121
|
+
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-05-18 06:14:30 |
|
|
122
122
|
| mps | [视频处理](https://cloud.tencent.com/document/product/862) | 2022-05-11 06:13:00 |
|
|
123
123
|
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2022-04-04 07:00:09 |
|
|
124
124
|
| ms | [移动应用安全](https://cloud.tencent.com/document/product) | 2020-06-05 08:13:52 |
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2022-05-09 06:11:56 |
|
|
135
135
|
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2022-04-04 07:02:49 |
|
|
136
136
|
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2022-04-21 06:16:10 |
|
|
137
|
-
| redis | [云数据库 Redis](https://cloud.tencent.com/document/product/239) | 2022-05-
|
|
137
|
+
| redis | [云数据库 Redis](https://cloud.tencent.com/document/product/239) | 2022-05-18 06:15:32 |
|
|
138
138
|
| rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2022-04-04 07:04:04 |
|
|
139
139
|
| rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
|
|
140
140
|
| rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2022-04-04 07:04:08 |
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
| ssl | [证书](https://cloud.tencent.com/document/product/400) | 2022-04-04 07:07:38 |
|
|
151
151
|
| sslpod | [SSL 证书监控](https://cloud.tencent.com/document/product/1084) | 2022-04-04 07:07:55 |
|
|
152
152
|
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2022-04-04 07:08:00 |
|
|
153
|
-
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2022-
|
|
153
|
+
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2022-05-18 06:16:35 |
|
|
154
154
|
| taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2022-04-04 07:08:16 |
|
|
155
155
|
| tag | [标签](https://cloud.tencent.com/document/product/651) | 2022-04-08 06:12:35 |
|
|
156
156
|
| tat | [腾讯云自动化助手](https://cloud.tencent.com/document/product/1340) | 2022-04-08 06:12:44 |
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2022-04-04 07:15:50 |
|
|
170
170
|
| tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2022-04-14 06:18:12 |
|
|
171
171
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2022-04-28 06:18:38 |
|
|
172
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-05-
|
|
172
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-05-18 06:18:03 |
|
|
173
173
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-04-27 10:43:23 |
|
|
174
174
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
175
175
|
| tic | [腾讯云IaC平台](https://cloud.tencent.com/document/product/1213) | 2022-04-04 07:16:52 |
|
|
@@ -179,11 +179,11 @@
|
|
|
179
179
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-05-13 06:18:48 |
|
|
180
180
|
| tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-04-04 07:17:26 |
|
|
181
181
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2022-05-17 06:17:19 |
|
|
182
|
-
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-05-
|
|
182
|
+
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-05-18 06:18:26 |
|
|
183
183
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
184
184
|
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-04-04 07:18:11 |
|
|
185
|
-
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-
|
|
186
|
-
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-05-
|
|
185
|
+
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-05-18 06:19:05 |
|
|
186
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-05-18 06:19:08 |
|
|
187
187
|
| tse | [腾讯云微服务引擎](https://cloud.tencent.com/document/product/1364) | 2022-04-22 06:17:09 |
|
|
188
188
|
| tsf | [腾讯微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-05-16 06:16:28 |
|
|
189
189
|
| tsw | [腾讯微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-04-04 07:22:40 |
|
|
@@ -191,8 +191,8 @@
|
|
|
191
191
|
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2022-04-04 07:22:44 |
|
|
192
192
|
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2022-05-10 06:14:42 |
|
|
193
193
|
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 |
|
|
194
|
-
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-05-
|
|
195
|
-
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-
|
|
194
|
+
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-05-18 06:19:45 |
|
|
195
|
+
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-05-18 06:20:08 |
|
|
196
196
|
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-05-12 06:19:46 |
|
|
197
197
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-04-04 07:39:05 |
|
|
198
198
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
@@ -18,10 +18,12 @@
|
|
|
18
18
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
19
|
import {
|
|
20
20
|
CreatePurgeTaskResponse,
|
|
21
|
+
DownloadL7LogsRequest,
|
|
21
22
|
CreatePurgeTaskRequest,
|
|
22
23
|
DescribePurgeTasksRequest,
|
|
23
24
|
CreatePrefetchTaskResponse,
|
|
24
25
|
Zone,
|
|
26
|
+
DownloadL7LogsResponse,
|
|
25
27
|
DescribePrefetchTasksResponse,
|
|
26
28
|
DescribeZonesRequest,
|
|
27
29
|
DescribeZonesResponse,
|
|
@@ -32,6 +34,7 @@ import {
|
|
|
32
34
|
DescribePurgeTasksResponse,
|
|
33
35
|
DescribePrefetchTasksRequest,
|
|
34
36
|
ZoneFilter,
|
|
37
|
+
L7OfflineLog,
|
|
35
38
|
} from "./teo_models"
|
|
36
39
|
|
|
37
40
|
/**
|
|
@@ -43,6 +46,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
43
46
|
super("teo.tencentcloudapi.com", "2022-01-06", clientConfig)
|
|
44
47
|
}
|
|
45
48
|
|
|
49
|
+
/**
|
|
50
|
+
* 查询七层离线日志
|
|
51
|
+
*/
|
|
52
|
+
async DownloadL7Logs(
|
|
53
|
+
req: DownloadL7LogsRequest,
|
|
54
|
+
cb?: (error: string, rep: DownloadL7LogsResponse) => void
|
|
55
|
+
): Promise<DownloadL7LogsResponse> {
|
|
56
|
+
return this.request("DownloadL7Logs", req, cb)
|
|
57
|
+
}
|
|
58
|
+
|
|
46
59
|
/**
|
|
47
60
|
* 创建清除缓存任务
|
|
48
61
|
*/
|
|
@@ -63,16 +76,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
63
76
|
return this.request("DescribePurgeTasks", req, cb)
|
|
64
77
|
}
|
|
65
78
|
|
|
66
|
-
/**
|
|
67
|
-
* 创建预热任务
|
|
68
|
-
*/
|
|
69
|
-
async CreatePrefetchTask(
|
|
70
|
-
req: CreatePrefetchTaskRequest,
|
|
71
|
-
cb?: (error: string, rep: CreatePrefetchTaskResponse) => void
|
|
72
|
-
): Promise<CreatePrefetchTaskResponse> {
|
|
73
|
-
return this.request("CreatePrefetchTask", req, cb)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
79
|
/**
|
|
77
80
|
* 查询预热任务状态
|
|
78
81
|
*/
|
|
@@ -83,6 +86,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
83
86
|
return this.request("DescribePrefetchTasks", req, cb)
|
|
84
87
|
}
|
|
85
88
|
|
|
89
|
+
/**
|
|
90
|
+
* 创建预热任务
|
|
91
|
+
*/
|
|
92
|
+
async CreatePrefetchTask(
|
|
93
|
+
req: CreatePrefetchTaskRequest,
|
|
94
|
+
cb?: (error: string, rep: CreatePrefetchTaskResponse) => void
|
|
95
|
+
): Promise<CreatePrefetchTaskResponse> {
|
|
96
|
+
return this.request("CreatePrefetchTask", req, cb)
|
|
97
|
+
}
|
|
98
|
+
|
|
86
99
|
/**
|
|
87
100
|
* 用户查询用户站点信息列表,支持分页
|
|
88
101
|
*/
|
|
@@ -36,6 +36,41 @@ export interface CreatePurgeTaskResponse {
|
|
|
36
36
|
RequestId?: string
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* DownloadL7Logs请求参数结构体
|
|
41
|
+
*/
|
|
42
|
+
export interface DownloadL7LogsRequest {
|
|
43
|
+
/**
|
|
44
|
+
* 起始时间(需严格按照RFC3339标准传参)
|
|
45
|
+
*/
|
|
46
|
+
StartTime: string
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 结束时间(需严格按照RFC3339标准传参)
|
|
50
|
+
*/
|
|
51
|
+
EndTime: string
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 每页展示条数
|
|
55
|
+
*/
|
|
56
|
+
PageSize: number
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 当前页
|
|
60
|
+
*/
|
|
61
|
+
PageNo: number
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 站点集合
|
|
65
|
+
*/
|
|
66
|
+
Zones?: Array<string>
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 域名集合
|
|
70
|
+
*/
|
|
71
|
+
Domains?: Array<string>
|
|
72
|
+
}
|
|
73
|
+
|
|
39
74
|
/**
|
|
40
75
|
* CreatePurgeTask请求参数结构体
|
|
41
76
|
*/
|
|
@@ -55,13 +90,21 @@ export interface CreatePurgeTaskRequest {
|
|
|
55
90
|
Type: string
|
|
56
91
|
|
|
57
92
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
93
|
+
* 要刷新的资源列表,每个元素格式依据Type而定
|
|
94
|
+
1) Type = purge_host 时
|
|
95
|
+
形如:www.example.com 或 foo.bar.example.com
|
|
96
|
+
2) Type = purge_prefix 时
|
|
97
|
+
形如:http://www.example.com/example
|
|
98
|
+
3) Type = purge_url 时
|
|
99
|
+
形如:https://www.example.com/example.jpg
|
|
100
|
+
4)Type = purge_all 时
|
|
101
|
+
Targets可为空,不需要填写
|
|
102
|
+
*/
|
|
60
103
|
Targets?: Array<string>
|
|
61
104
|
|
|
62
105
|
/**
|
|
63
106
|
* 若有编码转换,仅清除编码转换后匹配的资源
|
|
64
|
-
若内容含有非 ASCII
|
|
107
|
+
若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
|
|
65
108
|
*/
|
|
66
109
|
EncodeUrl?: boolean
|
|
67
110
|
}
|
|
@@ -199,6 +242,46 @@ export interface Zone {
|
|
|
199
242
|
ModifiedOn: string
|
|
200
243
|
}
|
|
201
244
|
|
|
245
|
+
/**
|
|
246
|
+
* DownloadL7Logs返回参数结构体
|
|
247
|
+
*/
|
|
248
|
+
export interface DownloadL7LogsResponse {
|
|
249
|
+
/**
|
|
250
|
+
* 七层离线日志data
|
|
251
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
252
|
+
*/
|
|
253
|
+
Data: Array<L7OfflineLog>
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* 页面大小
|
|
257
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
258
|
+
*/
|
|
259
|
+
PageSize: number
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* 页号
|
|
263
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
264
|
+
*/
|
|
265
|
+
PageNo: number
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* 总页数
|
|
269
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
270
|
+
*/
|
|
271
|
+
Pages: number
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* 总条数
|
|
275
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
276
|
+
*/
|
|
277
|
+
TotalSize: number
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
281
|
+
*/
|
|
282
|
+
RequestId?: string
|
|
283
|
+
}
|
|
284
|
+
|
|
202
285
|
/**
|
|
203
286
|
* DescribePrefetchTasks返回参数结构体
|
|
204
287
|
*/
|
|
@@ -285,8 +368,9 @@ export interface FailReason {
|
|
|
285
368
|
Reason: string
|
|
286
369
|
|
|
287
370
|
/**
|
|
288
|
-
|
|
289
|
-
|
|
371
|
+
* 处理失败的资源列表。
|
|
372
|
+
该列表元素来源于输入参数中的Targets,因此格式和入参中的Targets保持一致
|
|
373
|
+
*/
|
|
290
374
|
Targets: Array<string>
|
|
291
375
|
}
|
|
292
376
|
|
|
@@ -335,13 +419,15 @@ export interface CreatePrefetchTaskRequest {
|
|
|
335
419
|
ZoneId: string
|
|
336
420
|
|
|
337
421
|
/**
|
|
338
|
-
|
|
339
|
-
|
|
422
|
+
* 要预热的资源列表,每个元素格式类似如下:
|
|
423
|
+
http://www.example.com/example.txt
|
|
424
|
+
*/
|
|
340
425
|
Targets?: Array<string>
|
|
341
426
|
|
|
342
427
|
/**
|
|
343
|
-
|
|
344
|
-
|
|
428
|
+
* 是否对url进行encode
|
|
429
|
+
若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
|
|
430
|
+
*/
|
|
345
431
|
EncodeUrl?: boolean
|
|
346
432
|
|
|
347
433
|
/**
|
|
@@ -442,3 +528,38 @@ export interface ZoneFilter {
|
|
|
442
528
|
*/
|
|
443
529
|
Fuzzy?: boolean
|
|
444
530
|
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* 离线日志详细信息
|
|
534
|
+
*/
|
|
535
|
+
export interface L7OfflineLog {
|
|
536
|
+
/**
|
|
537
|
+
* 日志打包开始时间
|
|
538
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
539
|
+
*/
|
|
540
|
+
LogTime: number
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* 站点名称
|
|
544
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
545
|
+
*/
|
|
546
|
+
Domain: string
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* 原始大小 单位byte
|
|
550
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
551
|
+
*/
|
|
552
|
+
Size: number
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* 下载地址
|
|
556
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
557
|
+
*/
|
|
558
|
+
Url: string
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* 日志数据包名
|
|
562
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
563
|
+
*/
|
|
564
|
+
LogPacketName: string
|
|
565
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { CreatePurgeTaskResponse, CreatePurgeTaskRequest, DescribePurgeTasksRequest, CreatePrefetchTaskResponse, DescribePrefetchTasksResponse, DescribeZonesRequest, DescribeZonesResponse, CreatePrefetchTaskRequest, DescribePurgeTasksResponse, DescribePrefetchTasksRequest } from "./teo_models";
|
|
2
|
+
import { CreatePurgeTaskResponse, DownloadL7LogsRequest, CreatePurgeTaskRequest, DescribePurgeTasksRequest, CreatePrefetchTaskResponse, DownloadL7LogsResponse, DescribePrefetchTasksResponse, DescribeZonesRequest, DescribeZonesResponse, CreatePrefetchTaskRequest, DescribePurgeTasksResponse, DescribePrefetchTasksRequest } from "./teo_models";
|
|
3
3
|
/**
|
|
4
4
|
* teo client
|
|
5
5
|
* @class
|
|
6
6
|
*/
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 查询七层离线日志
|
|
11
|
+
*/
|
|
12
|
+
DownloadL7Logs(req: DownloadL7LogsRequest, cb?: (error: string, rep: DownloadL7LogsResponse) => void): Promise<DownloadL7LogsResponse>;
|
|
9
13
|
/**
|
|
10
14
|
* 创建清除缓存任务
|
|
11
15
|
*/
|
|
@@ -14,14 +18,14 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
14
18
|
* 查询清除缓存历史记录
|
|
15
19
|
*/
|
|
16
20
|
DescribePurgeTasks(req: DescribePurgeTasksRequest, cb?: (error: string, rep: DescribePurgeTasksResponse) => void): Promise<DescribePurgeTasksResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* 创建预热任务
|
|
19
|
-
*/
|
|
20
|
-
CreatePrefetchTask(req: CreatePrefetchTaskRequest, cb?: (error: string, rep: CreatePrefetchTaskResponse) => void): Promise<CreatePrefetchTaskResponse>;
|
|
21
21
|
/**
|
|
22
22
|
* 查询预热任务状态
|
|
23
23
|
*/
|
|
24
24
|
DescribePrefetchTasks(req: DescribePrefetchTasksRequest, cb?: (error: string, rep: DescribePrefetchTasksResponse) => void): Promise<DescribePrefetchTasksResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* 创建预热任务
|
|
27
|
+
*/
|
|
28
|
+
CreatePrefetchTask(req: CreatePrefetchTaskRequest, cb?: (error: string, rep: CreatePrefetchTaskResponse) => void): Promise<CreatePrefetchTaskResponse>;
|
|
25
29
|
/**
|
|
26
30
|
* 用户查询用户站点信息列表,支持分页
|
|
27
31
|
*/
|
|
@@ -27,6 +27,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
27
27
|
constructor(clientConfig) {
|
|
28
28
|
super("teo.tencentcloudapi.com", "2022-01-06", clientConfig);
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* 查询七层离线日志
|
|
32
|
+
*/
|
|
33
|
+
async DownloadL7Logs(req, cb) {
|
|
34
|
+
return this.request("DownloadL7Logs", req, cb);
|
|
35
|
+
}
|
|
30
36
|
/**
|
|
31
37
|
* 创建清除缓存任务
|
|
32
38
|
*/
|
|
@@ -39,18 +45,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
39
45
|
async DescribePurgeTasks(req, cb) {
|
|
40
46
|
return this.request("DescribePurgeTasks", req, cb);
|
|
41
47
|
}
|
|
42
|
-
/**
|
|
43
|
-
* 创建预热任务
|
|
44
|
-
*/
|
|
45
|
-
async CreatePrefetchTask(req, cb) {
|
|
46
|
-
return this.request("CreatePrefetchTask", req, cb);
|
|
47
|
-
}
|
|
48
48
|
/**
|
|
49
49
|
* 查询预热任务状态
|
|
50
50
|
*/
|
|
51
51
|
async DescribePrefetchTasks(req, cb) {
|
|
52
52
|
return this.request("DescribePrefetchTasks", req, cb);
|
|
53
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* 创建预热任务
|
|
56
|
+
*/
|
|
57
|
+
async CreatePrefetchTask(req, cb) {
|
|
58
|
+
return this.request("CreatePrefetchTask", req, cb);
|
|
59
|
+
}
|
|
54
60
|
/**
|
|
55
61
|
* 用户查询用户站点信息列表,支持分页
|
|
56
62
|
*/
|
|
@@ -16,6 +16,35 @@ export interface CreatePurgeTaskResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
RequestId?: string;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* DownloadL7Logs请求参数结构体
|
|
21
|
+
*/
|
|
22
|
+
export interface DownloadL7LogsRequest {
|
|
23
|
+
/**
|
|
24
|
+
* 起始时间(需严格按照RFC3339标准传参)
|
|
25
|
+
*/
|
|
26
|
+
StartTime: string;
|
|
27
|
+
/**
|
|
28
|
+
* 结束时间(需严格按照RFC3339标准传参)
|
|
29
|
+
*/
|
|
30
|
+
EndTime: string;
|
|
31
|
+
/**
|
|
32
|
+
* 每页展示条数
|
|
33
|
+
*/
|
|
34
|
+
PageSize: number;
|
|
35
|
+
/**
|
|
36
|
+
* 当前页
|
|
37
|
+
*/
|
|
38
|
+
PageNo: number;
|
|
39
|
+
/**
|
|
40
|
+
* 站点集合
|
|
41
|
+
*/
|
|
42
|
+
Zones?: Array<string>;
|
|
43
|
+
/**
|
|
44
|
+
* 域名集合
|
|
45
|
+
*/
|
|
46
|
+
Domains?: Array<string>;
|
|
47
|
+
}
|
|
19
48
|
/**
|
|
20
49
|
* CreatePurgeTask请求参数结构体
|
|
21
50
|
*/
|
|
@@ -33,12 +62,20 @@ export interface CreatePurgeTaskRequest {
|
|
|
33
62
|
*/
|
|
34
63
|
Type: string;
|
|
35
64
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
65
|
+
* 要刷新的资源列表,每个元素格式依据Type而定
|
|
66
|
+
1) Type = purge_host 时
|
|
67
|
+
形如:www.example.com 或 foo.bar.example.com
|
|
68
|
+
2) Type = purge_prefix 时
|
|
69
|
+
形如:http://www.example.com/example
|
|
70
|
+
3) Type = purge_url 时
|
|
71
|
+
形如:https://www.example.com/example.jpg
|
|
72
|
+
4)Type = purge_all 时
|
|
73
|
+
Targets可为空,不需要填写
|
|
74
|
+
*/
|
|
38
75
|
Targets?: Array<string>;
|
|
39
76
|
/**
|
|
40
77
|
* 若有编码转换,仅清除编码转换后匹配的资源
|
|
41
|
-
若内容含有非 ASCII
|
|
78
|
+
若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
|
|
42
79
|
*/
|
|
43
80
|
EncodeUrl?: boolean;
|
|
44
81
|
}
|
|
@@ -153,6 +190,40 @@ export interface Zone {
|
|
|
153
190
|
*/
|
|
154
191
|
ModifiedOn: string;
|
|
155
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* DownloadL7Logs返回参数结构体
|
|
195
|
+
*/
|
|
196
|
+
export interface DownloadL7LogsResponse {
|
|
197
|
+
/**
|
|
198
|
+
* 七层离线日志data
|
|
199
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
200
|
+
*/
|
|
201
|
+
Data: Array<L7OfflineLog>;
|
|
202
|
+
/**
|
|
203
|
+
* 页面大小
|
|
204
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
205
|
+
*/
|
|
206
|
+
PageSize: number;
|
|
207
|
+
/**
|
|
208
|
+
* 页号
|
|
209
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
210
|
+
*/
|
|
211
|
+
PageNo: number;
|
|
212
|
+
/**
|
|
213
|
+
* 总页数
|
|
214
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
215
|
+
*/
|
|
216
|
+
Pages: number;
|
|
217
|
+
/**
|
|
218
|
+
* 总条数
|
|
219
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
220
|
+
*/
|
|
221
|
+
TotalSize: number;
|
|
222
|
+
/**
|
|
223
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
224
|
+
*/
|
|
225
|
+
RequestId?: string;
|
|
226
|
+
}
|
|
156
227
|
/**
|
|
157
228
|
* DescribePrefetchTasks返回参数结构体
|
|
158
229
|
*/
|
|
@@ -227,8 +298,9 @@ export interface FailReason {
|
|
|
227
298
|
*/
|
|
228
299
|
Reason: string;
|
|
229
300
|
/**
|
|
230
|
-
|
|
231
|
-
|
|
301
|
+
* 处理失败的资源列表。
|
|
302
|
+
该列表元素来源于输入参数中的Targets,因此格式和入参中的Targets保持一致
|
|
303
|
+
*/
|
|
232
304
|
Targets: Array<string>;
|
|
233
305
|
}
|
|
234
306
|
/**
|
|
@@ -269,12 +341,14 @@ export interface CreatePrefetchTaskRequest {
|
|
|
269
341
|
*/
|
|
270
342
|
ZoneId: string;
|
|
271
343
|
/**
|
|
272
|
-
|
|
273
|
-
|
|
344
|
+
* 要预热的资源列表,每个元素格式类似如下:
|
|
345
|
+
http://www.example.com/example.txt
|
|
346
|
+
*/
|
|
274
347
|
Targets?: Array<string>;
|
|
275
348
|
/**
|
|
276
|
-
|
|
277
|
-
|
|
349
|
+
* 是否对url进行encode
|
|
350
|
+
若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
|
|
351
|
+
*/
|
|
278
352
|
EncodeUrl?: boolean;
|
|
279
353
|
/**
|
|
280
354
|
* 附带的http头部信息
|
|
@@ -359,3 +433,33 @@ export interface ZoneFilter {
|
|
|
359
433
|
*/
|
|
360
434
|
Fuzzy?: boolean;
|
|
361
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* 离线日志详细信息
|
|
438
|
+
*/
|
|
439
|
+
export interface L7OfflineLog {
|
|
440
|
+
/**
|
|
441
|
+
* 日志打包开始时间
|
|
442
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
443
|
+
*/
|
|
444
|
+
LogTime: number;
|
|
445
|
+
/**
|
|
446
|
+
* 站点名称
|
|
447
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
448
|
+
*/
|
|
449
|
+
Domain: string;
|
|
450
|
+
/**
|
|
451
|
+
* 原始大小 单位byte
|
|
452
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
453
|
+
*/
|
|
454
|
+
Size: number;
|
|
455
|
+
/**
|
|
456
|
+
* 下载地址
|
|
457
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
458
|
+
*/
|
|
459
|
+
Url: string;
|
|
460
|
+
/**
|
|
461
|
+
* 日志数据包名
|
|
462
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
463
|
+
*/
|
|
464
|
+
LogPacketName: string;
|
|
465
|
+
}
|