tencentcloud-sdk-nodejs-teo 4.0.1054 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -4
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/teo/index.js +6 -0
- package/es/services/teo/v20220106/index.js +6 -0
- package/es/services/teo/v20220106/teo_client.js +21 -0
- package/es/services/teo/v20220106/teo_models.js +0 -0
- package/es/services/teo/v20220901/index.js +6 -0
- package/es/services/teo/v20220901/teo_client.js +432 -0
- package/es/services/teo/v20220901/teo_models.js +0 -0
- package/package.json +16 -5
- package/tencentcloud/services/teo/v20220106/index.js +2 -1
- package/tencentcloud/services/teo/v20220106/teo_client.js +2 -1
- package/tencentcloud/services/teo/v20220901/index.js +2 -1
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +9 -1
- package/tencentcloud/services/teo/v20220901/teo_client.js +14 -1
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +81 -27
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/teo/index.ts +0 -7
- package/src/services/teo/v20220106/index.ts +0 -6
- package/src/services/teo/v20220106/teo_client.ts +0 -98
- package/src/services/teo/v20220106/teo_models.ts +0 -516
- package/src/services/teo/v20220901/index.ts +0 -6
- package/src/services/teo/v20220901/teo_client.ts +0 -2007
- package/src/services/teo/v20220901/teo_models.ts +0 -13063
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Client = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
6
|
/*
|
|
6
7
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
@@ -18,7 +19,7 @@ exports.Client = void 0;
|
|
|
18
19
|
* specific language governing permissions and limitations
|
|
19
20
|
* under the License.
|
|
20
21
|
*/
|
|
21
|
-
const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
|
|
22
|
+
const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
|
|
22
23
|
/**
|
|
23
24
|
* teo client
|
|
24
25
|
* @class
|
|
@@ -344,6 +345,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
344
345
|
async DescribeConfigGroupVersions(req, cb) {
|
|
345
346
|
return this.request("DescribeConfigGroupVersions", req, cb);
|
|
346
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* 本接口用于修改[规则引擎](https://cloud.tencent.com/document/product/1552/70901)中规则列表的优先级,本接口需要传入站点 ID 下完整的规则 ID 列表,规则 ID 列表可以通过[查询七层加速规则](https://cloud.tencent.com/document/product/1552/115820)接口获取,最终优先级顺序将调整成规则 ID 列表的顺序,从前往后执行。
|
|
350
|
+
*/
|
|
351
|
+
async ModifyL7AccRulePriority(req, cb) {
|
|
352
|
+
return this.request("ModifyL7AccRulePriority", req, cb);
|
|
353
|
+
}
|
|
347
354
|
/**
|
|
348
355
|
* 本接口为旧版,EdgeOne 已对规则引擎相关接口全面升级,详情请参考 [ModifyL7AccSetting](https://cloud.tencent.com/document/product/1552/115817)。
|
|
349
356
|
*/
|
|
@@ -661,6 +668,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
661
668
|
async UpgradePlan(req, cb) {
|
|
662
669
|
return this.request("UpgradePlan", req, cb);
|
|
663
670
|
}
|
|
671
|
+
/**
|
|
672
|
+
* 查询安全防护配置详情。
|
|
673
|
+
*/
|
|
674
|
+
async DescribeSecurityPolicy(req, cb) {
|
|
675
|
+
return this.request("DescribeSecurityPolicy", req, cb);
|
|
676
|
+
}
|
|
664
677
|
/**
|
|
665
678
|
* 修改边缘函数触发规则的优先级。
|
|
666
679
|
*/
|
|
@@ -910,6 +910,19 @@ export interface RuleExtraParameter {
|
|
|
910
910
|
*/
|
|
911
911
|
Choices: Array<string>;
|
|
912
912
|
}
|
|
913
|
+
/**
|
|
914
|
+
* ModifyL7AccRulePriority请求参数结构体
|
|
915
|
+
*/
|
|
916
|
+
export interface ModifyL7AccRulePriorityRequest {
|
|
917
|
+
/**
|
|
918
|
+
* 站点 ID。
|
|
919
|
+
*/
|
|
920
|
+
ZoneId: string;
|
|
921
|
+
/**
|
|
922
|
+
* 站点 ID 下完整的规则 ID 列表,规则 ID 列表可以通过 [查询七层加速规则](https://cloud.tencent.com/document/product/1552/115820) 获取,最终优先级顺序将调整成规则 ID 列表的顺序,从前往后依次执行。
|
|
923
|
+
*/
|
|
924
|
+
RuleIds: Array<string>;
|
|
925
|
+
}
|
|
913
926
|
/**
|
|
914
927
|
* WebSocket配置
|
|
915
928
|
*/
|
|
@@ -1135,6 +1148,7 @@ export interface DescribeTopL7AnalysisDataRequest {
|
|
|
1135
1148
|
<li> l7Flow_outFlux_ua_device:按设备类型维度统计 L7 EdgeOne 响应流量指标; </li>
|
|
1136
1149
|
<li> l7Flow_outFlux_ua_browser:按浏览器类型维度统计 L7 EdgeOne 响应流量指标;</li>
|
|
1137
1150
|
<li> l7Flow_outFlux_ua_os:按操作系统类型维度统计 L7 EdgeOne 响应流量指标;</li>
|
|
1151
|
+
<li> l7Flow_outFlux_ua:按 User-Agent 维度统计 L7 EdgeOne 响应流量指标;</li>
|
|
1138
1152
|
<li> l7Flow_request_country:按国家/地区维度统计 L7 访问请求数指标;</li>
|
|
1139
1153
|
<li> l7Flow_request_province:按中国大陆境内省份维度统计 L7 访问请求数指标;</li>
|
|
1140
1154
|
<li> l7Flow_request_statusCode:按状态码维度统计 L7 访问请求数指标;</li>
|
|
@@ -1145,7 +1159,9 @@ export interface DescribeTopL7AnalysisDataRequest {
|
|
|
1145
1159
|
<li> l7Flow_request_referer:按 Referer 维度统计 L7 访问请求数指标;</li>
|
|
1146
1160
|
<li> l7Flow_request_ua_device:按设备类型维度统计 L7 访问请求数指标; </li>
|
|
1147
1161
|
<li> l7Flow_request_ua_browser:按浏览器类型维度统计 L7 访问请求数指标;</li>
|
|
1148
|
-
<li> l7Flow_request_ua_os:按操作系统类型维度统计 L7
|
|
1162
|
+
<li> l7Flow_request_ua_os:按操作系统类型维度统计 L7 访问请求数指标;</li>
|
|
1163
|
+
<li> l7Flow_request_ua:按 User-Agent 维度统计 L7 访问请求数指标。</li>
|
|
1164
|
+
|
|
1149
1165
|
|
|
1150
1166
|
*/
|
|
1151
1167
|
MetricName: string;
|
|
@@ -1175,7 +1191,8 @@ export interface DescribeTopL7AnalysisDataRequest {
|
|
|
1175
1191
|
<li>tlsVersion:按照 TLS 版本进行过滤。若填写 tlsVersion 参数,则最多可查询近 30 天的数据。对应 Value 的可选项如下:<br> TLS1.0;<br> TLS1.1;<br> TLS1.2;<br> TLS1.3。</li>
|
|
1176
1192
|
<li>ipVersion:按照 IP 版本进行过滤。对应 Value 的可选项如下:<br> 4:IPv4;<br> 6:IPv6。</li>
|
|
1177
1193
|
<li>cacheType:按照缓存状态进行过滤。对应 Value 的可选项如下:<br> hit:请求命中 EdgeOne 节点缓存,资源由节点缓存提供。资源部分命中缓存也会记录为 hit。<br> miss:请求未命中 EdgeOne 节点缓存,资源由源站提供。<br> dynamic:请求的资源无法缓存/未配置被节点缓存,资源由源站提供。<br> other:无法被识别的缓存状态。边缘函数响应的请求会记录为 other。</li>
|
|
1178
|
-
<li>clientIp:按照客户端 IP
|
|
1194
|
+
<li>clientIp:按照客户端 IP 进行过滤。若填写 clientIp 参数,则最多可查询近 30 天的数据。</li>
|
|
1195
|
+
<li>userAgent:按照 User-Agent 请求头部进行过滤。若填写 userAgent 参数,则最多可查询近 30 天的数据。</li>
|
|
1179
1196
|
*/
|
|
1180
1197
|
Filters?: Array<QueryCondition>;
|
|
1181
1198
|
/**
|
|
@@ -1187,10 +1204,7 @@ export interface DescribeTopL7AnalysisDataRequest {
|
|
|
1187
1204
|
*/
|
|
1188
1205
|
Interval?: string;
|
|
1189
1206
|
/**
|
|
1190
|
-
*
|
|
1191
|
-
<li>overseas:全球(除中国大陆地区)数据;</li>
|
|
1192
|
-
<li>mainland:中国大陆地区数据;</li>
|
|
1193
|
-
<li>global:全球数据。</li>不填默认取值为global。
|
|
1207
|
+
* 数据归属地区。该参数已废弃。请在 Filters.country 中按客户端地域过滤数据。
|
|
1194
1208
|
*/
|
|
1195
1209
|
Area?: string;
|
|
1196
1210
|
}
|
|
@@ -5011,6 +5025,21 @@ export interface DescribeDefaultCertificatesRequest {
|
|
|
5011
5025
|
*/
|
|
5012
5026
|
Limit?: number;
|
|
5013
5027
|
}
|
|
5028
|
+
/**
|
|
5029
|
+
* 浏览器缓存 TTL 配置参数。
|
|
5030
|
+
*/
|
|
5031
|
+
export interface MaxAgeParameters {
|
|
5032
|
+
/**
|
|
5033
|
+
* 遵循源站 Cache-Control 开关,取值有:
|
|
5034
|
+
<li>on:遵循源站,忽略 CacheTime 时间设置;</li>
|
|
5035
|
+
<li>off:不遵循源站,使用 CacheTime 时间设置。</li>
|
|
5036
|
+
*/
|
|
5037
|
+
FollowOrigin?: string;
|
|
5038
|
+
/**
|
|
5039
|
+
* 自定义缓存时间数值,单位为秒,取值:0~315360000。<br>注意:当 FollowOrigin 为 off 时,表示不遵循源站,使用 CacheTime 设置缓存时间,否则此字段不生效。
|
|
5040
|
+
*/
|
|
5041
|
+
CacheTime?: number;
|
|
5042
|
+
}
|
|
5014
5043
|
/**
|
|
5015
5044
|
* ModifyApplicationProxyRule返回参数结构体
|
|
5016
5045
|
*/
|
|
@@ -5033,6 +5062,15 @@ export interface FailReason {
|
|
|
5033
5062
|
*/
|
|
5034
5063
|
Targets: Array<string>;
|
|
5035
5064
|
}
|
|
5065
|
+
/**
|
|
5066
|
+
* ModifyL7AccRulePriority返回参数结构体
|
|
5067
|
+
*/
|
|
5068
|
+
export interface ModifyL7AccRulePriorityResponse {
|
|
5069
|
+
/**
|
|
5070
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5071
|
+
*/
|
|
5072
|
+
RequestId?: string;
|
|
5073
|
+
}
|
|
5036
5074
|
/**
|
|
5037
5075
|
* 修改 HTTP 回源请求头配置参数。
|
|
5038
5076
|
*/
|
|
@@ -5444,19 +5482,25 @@ export interface DescribeOverviewL7DataResponse {
|
|
|
5444
5482
|
RequestId?: string;
|
|
5445
5483
|
}
|
|
5446
5484
|
/**
|
|
5447
|
-
*
|
|
5485
|
+
* DescribeSecurityPolicy请求参数结构体
|
|
5448
5486
|
*/
|
|
5449
|
-
export interface
|
|
5487
|
+
export interface DescribeSecurityPolicyRequest {
|
|
5450
5488
|
/**
|
|
5451
|
-
*
|
|
5452
|
-
<li>on:遵循源站,忽略 CacheTime 时间设置;</li>
|
|
5453
|
-
<li>off:不遵循源站,使用 CacheTime 时间设置。</li>
|
|
5489
|
+
* 站点 ID。
|
|
5454
5490
|
*/
|
|
5455
|
-
|
|
5491
|
+
ZoneId: string;
|
|
5456
5492
|
/**
|
|
5457
|
-
*
|
|
5493
|
+
* 安全策略类型,可使用以下参数值进行查询: <li>ZoneDefaultPolicy:用于指定查询站点级策略;</li><li>Template:用于指定查询策略模板,需要同时指定 TemplateId 参数;</li><li>Host:用于指定查询域名级策略(注意:当使用域名来指定域名服务策略时,仅支持已经应用了域名级策略的域名服务或者策略模板)。</li>
|
|
5458
5494
|
*/
|
|
5459
|
-
|
|
5495
|
+
Entity?: string;
|
|
5496
|
+
/**
|
|
5497
|
+
* 指定策略模板 ID。当 Entity 参数值为 Template 时,使用本参数指定策略模板的 ID 查询模板配置。
|
|
5498
|
+
*/
|
|
5499
|
+
TemplateId?: string;
|
|
5500
|
+
/**
|
|
5501
|
+
* 指定域名。当 Entity 参数值为 Host 时,使用本参数指定的域名级策略查询域名配置,例如:使用 www.example.com ,配置该域名的域名级策略。
|
|
5502
|
+
*/
|
|
5503
|
+
Host?: string;
|
|
5460
5504
|
}
|
|
5461
5505
|
/**
|
|
5462
5506
|
* DescribeEnvironments返回参数结构体
|
|
@@ -7774,15 +7818,12 @@ export interface DescribeTimingL7AnalysisDataRequest {
|
|
|
7774
7818
|
<li>tlsVersion:按照 TLS 版本进行过滤。若填写 tlsVersion 参数,则最多可查询近 30 天的数据。对应 Value 的可选项如下:<br> TLS1.0;<br> TLS1.1;<br> TLS1.2;<br> TLS1.3。</li>
|
|
7775
7819
|
<li>ipVersion:按照 IP 版本进行过滤。对应 Value 的可选项如下:<br> 4:IPv4;<br> 6:IPv6。</li>
|
|
7776
7820
|
<li>cacheType:按照缓存状态进行过滤。对应 Value 的可选项如下:<br> hit:请求命中 EdgeOne 节点缓存,资源由节点缓存提供。资源部分命中缓存也会记录为 hit。<br> miss:请求未命中 EdgeOne 节点缓存,资源由源站提供。<br> dynamic:请求的资源无法缓存/未配置被节点缓存,资源由源站提供。<br> other:无法被识别的缓存状态。边缘函数响应的请求会记录为 other。</li>
|
|
7777
|
-
<li>clientIp:按照客户端 IP
|
|
7821
|
+
<li>clientIp:按照客户端 IP 进行过滤。若填写 clientIp 参数,则最多可查询近 30 天的数据。</li>
|
|
7822
|
+
<li>userAgent:按照 User-Agent 请求头部进行过滤。若填写 userAgent 参数,则最多可查询近 30 天的数据。</li>
|
|
7778
7823
|
*/
|
|
7779
7824
|
Filters?: Array<QueryCondition>;
|
|
7780
7825
|
/**
|
|
7781
|
-
*
|
|
7782
|
-
<li>overseas:全球(除中国大陆地区)数据;</li>
|
|
7783
|
-
<li>mainland:中国大陆地区数据;</li>
|
|
7784
|
-
<li>global:全球数据。</li>
|
|
7785
|
-
不填默认取值为 global。
|
|
7826
|
+
* 数据归属地区。该参数已废弃。请在 Filters.country 中按客户端地域过滤数据。
|
|
7786
7827
|
*/
|
|
7787
7828
|
Area?: string;
|
|
7788
7829
|
}
|
|
@@ -10650,7 +10691,7 @@ export interface DetectLengthLimitCondition {
|
|
|
10650
10691
|
/**
|
|
10651
10692
|
* 匹配条件的参数值,取值与 Name 成对使用。
|
|
10652
10693
|
当 Name 值为 body_depth 时, Values 只支持传入单个值,取值有:
|
|
10653
|
-
<li>
|
|
10694
|
+
<li>10KB;</li>
|
|
10654
10695
|
<li>64KB;</li>
|
|
10655
10696
|
<li>128KB。</li>
|
|
10656
10697
|
*/
|
|
@@ -11997,6 +12038,20 @@ export interface CreateOriginGroupResponse {
|
|
|
11997
12038
|
*/
|
|
11998
12039
|
RequestId?: string;
|
|
11999
12040
|
}
|
|
12041
|
+
/**
|
|
12042
|
+
* DescribeSecurityPolicy返回参数结构体
|
|
12043
|
+
*/
|
|
12044
|
+
export interface DescribeSecurityPolicyResponse {
|
|
12045
|
+
/**
|
|
12046
|
+
* 安全策略配置。
|
|
12047
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12048
|
+
*/
|
|
12049
|
+
SecurityPolicy?: SecurityPolicy;
|
|
12050
|
+
/**
|
|
12051
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12052
|
+
*/
|
|
12053
|
+
RequestId?: string;
|
|
12054
|
+
}
|
|
12000
12055
|
/**
|
|
12001
12056
|
* CreateContentIdentifier返回参数结构体
|
|
12002
12057
|
*/
|
|
@@ -12438,10 +12493,12 @@ export interface DescribeTimingL4DataRequest {
|
|
|
12438
12493
|
EndTime: string;
|
|
12439
12494
|
/**
|
|
12440
12495
|
* 查询指标,取值有:
|
|
12441
|
-
<li>l4Flow_connections:
|
|
12496
|
+
<li>l4Flow_connections: 访问并发连接数;</li>
|
|
12442
12497
|
<li>l4Flow_flux: 访问总流量;</li>
|
|
12443
12498
|
<li>l4Flow_inFlux: 访问入流量;</li>
|
|
12444
|
-
<li>l4Flow_outFlux:
|
|
12499
|
+
<li>l4Flow_outFlux: 访问出流量;</li>
|
|
12500
|
+
<li>l4Flow_inBandwidth: 访问入向带宽峰值;</li>
|
|
12501
|
+
<li>l4Flow_outBandwidth: 访问出向带宽峰值。</li>
|
|
12445
12502
|
*/
|
|
12446
12503
|
MetricNames: Array<string>;
|
|
12447
12504
|
/**
|
|
@@ -12467,10 +12524,7 @@ export interface DescribeTimingL4DataRequest {
|
|
|
12467
12524
|
*/
|
|
12468
12525
|
Filters?: Array<QueryCondition>;
|
|
12469
12526
|
/**
|
|
12470
|
-
*
|
|
12471
|
-
<li>overseas:全球(除中国大陆地区)数据;</li>
|
|
12472
|
-
<li>mainland:中国大陆地区数据;</li>
|
|
12473
|
-
<li>global:全球数据。</li>不填默认取值为global。
|
|
12527
|
+
* 数据归属地区。该参数已废弃。请在 Filters.country 中按客户端地域过滤数据。
|
|
12474
12528
|
*/
|
|
12475
12529
|
Area?: string;
|
|
12476
12530
|
}
|
package/index.d.ts
DELETED
package/index.js
DELETED
package/prettier.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// prettier.config.js
|
|
2
|
-
module.exports = {
|
|
3
|
-
// 一行最多 100 字符
|
|
4
|
-
printWidth: 100,
|
|
5
|
-
// 使用 4 个空格缩进
|
|
6
|
-
tabWidth: 2,
|
|
7
|
-
// 不使用缩进符,而使用空格
|
|
8
|
-
useTabs: false,
|
|
9
|
-
// 行尾需要有分号
|
|
10
|
-
semi: false,
|
|
11
|
-
// 使用单引号
|
|
12
|
-
singleQuote: false,
|
|
13
|
-
// 对象的 key 仅在必要时用引号
|
|
14
|
-
quoteProps: "as-needed",
|
|
15
|
-
// jsx 不使用单引号,而使用双引号
|
|
16
|
-
jsxSingleQuote: false,
|
|
17
|
-
// 末尾不需要逗号
|
|
18
|
-
trailingComma: "es5",
|
|
19
|
-
// 大括号内的首尾需要空格
|
|
20
|
-
bracketSpacing: true,
|
|
21
|
-
// jsx 标签的反尖括号需要换行
|
|
22
|
-
jsxBracketSameLine: false,
|
|
23
|
-
// 箭头函数,只有一个参数的时候,也需要括号
|
|
24
|
-
arrowParens: "always",
|
|
25
|
-
// 每个文件格式化的范围是文件的全部内容
|
|
26
|
-
rangeStart: 0,
|
|
27
|
-
rangeEnd: Infinity,
|
|
28
|
-
// 不需要写文件开头的 @prettier
|
|
29
|
-
requirePragma: false,
|
|
30
|
-
// 不需要自动在文件开头插入 @prettier
|
|
31
|
-
insertPragma: false,
|
|
32
|
-
// 使用默认的折行标准
|
|
33
|
-
proseWrap: "preserve",
|
|
34
|
-
// 根据显示样式决定 html 要不要折行
|
|
35
|
-
htmlWhitespaceSensitivity: "css",
|
|
36
|
-
// 换行符使用 lf
|
|
37
|
-
endOfLine: "lf",
|
|
38
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./services"
|
package/src/services/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { teo } from "./teo"
|
|
@@ -1,98 +0,0 @@
|
|
|
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 * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
|
-
import {
|
|
20
|
-
CreatePurgeTaskResponse,
|
|
21
|
-
CreatePurgeTaskRequest,
|
|
22
|
-
DescribePurgeTasksRequest,
|
|
23
|
-
CreatePrefetchTaskResponse,
|
|
24
|
-
Zone,
|
|
25
|
-
DescribePrefetchTasksResponse,
|
|
26
|
-
Sv,
|
|
27
|
-
DescribeZonesRequest,
|
|
28
|
-
DescribeZonesResponse,
|
|
29
|
-
Header,
|
|
30
|
-
FailReason,
|
|
31
|
-
Tag,
|
|
32
|
-
CreatePrefetchTaskRequest,
|
|
33
|
-
DescribePurgeTasksResponse,
|
|
34
|
-
DescribePrefetchTasksRequest,
|
|
35
|
-
Resource,
|
|
36
|
-
ZoneFilter,
|
|
37
|
-
Task,
|
|
38
|
-
} from "./teo_models"
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* teo client
|
|
42
|
-
* @class
|
|
43
|
-
*/
|
|
44
|
-
export class Client extends TencentCloudCommon.AbstractClient {
|
|
45
|
-
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
46
|
-
super("teo.tencentcloudapi.com", "2022-01-06", clientConfig)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 创建清除缓存任务
|
|
51
|
-
*/
|
|
52
|
-
async CreatePurgeTask(
|
|
53
|
-
req: CreatePurgeTaskRequest,
|
|
54
|
-
cb?: (error: string, rep: CreatePurgeTaskResponse) => void
|
|
55
|
-
): Promise<CreatePurgeTaskResponse> {
|
|
56
|
-
return this.request("CreatePurgeTask", req, cb)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* 查询清除缓存历史记录
|
|
61
|
-
*/
|
|
62
|
-
async DescribePurgeTasks(
|
|
63
|
-
req: DescribePurgeTasksRequest,
|
|
64
|
-
cb?: (error: string, rep: DescribePurgeTasksResponse) => void
|
|
65
|
-
): Promise<DescribePurgeTasksResponse> {
|
|
66
|
-
return this.request("DescribePurgeTasks", req, cb)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* 创建预热任务
|
|
71
|
-
*/
|
|
72
|
-
async CreatePrefetchTask(
|
|
73
|
-
req: CreatePrefetchTaskRequest,
|
|
74
|
-
cb?: (error: string, rep: CreatePrefetchTaskResponse) => void
|
|
75
|
-
): Promise<CreatePrefetchTaskResponse> {
|
|
76
|
-
return this.request("CreatePrefetchTask", req, cb)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* 查询预热任务状态
|
|
81
|
-
*/
|
|
82
|
-
async DescribePrefetchTasks(
|
|
83
|
-
req: DescribePrefetchTasksRequest,
|
|
84
|
-
cb?: (error: string, rep: DescribePrefetchTasksResponse) => void
|
|
85
|
-
): Promise<DescribePrefetchTasksResponse> {
|
|
86
|
-
return this.request("DescribePrefetchTasks", req, cb)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* 用户查询用户站点信息列表,支持分页
|
|
91
|
-
*/
|
|
92
|
-
async DescribeZones(
|
|
93
|
-
req: DescribeZonesRequest,
|
|
94
|
-
cb?: (error: string, rep: DescribeZonesResponse) => void
|
|
95
|
-
): Promise<DescribeZonesResponse> {
|
|
96
|
-
return this.request("DescribeZones", req, cb)
|
|
97
|
-
}
|
|
98
|
-
}
|