tencentcloud-sdk-nodejs-teo 4.1.130 → 4.1.133
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/package.json
CHANGED
|
@@ -76,7 +76,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
76
76
|
*/
|
|
77
77
|
DescribeWebSecurityTemplate(req: DescribeWebSecurityTemplateRequest, cb?: (error: string, rep: DescribeWebSecurityTemplateResponse) => void): Promise<DescribeWebSecurityTemplateResponse>;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* 创建边缘函数的触发规则。支持通过自定义过滤条件来决定是否需要执行函数,当需要执行函数时,提供了多种选择目标函数的方式,包括:直接指定,基于客户端归属地区选择和基于权重选择。
|
|
80
80
|
*/
|
|
81
81
|
CreateFunctionRule(req: CreateFunctionRuleRequest, cb?: (error: string, rep: CreateFunctionRuleResponse) => void): Promise<CreateFunctionRuleResponse>;
|
|
82
82
|
/**
|
|
@@ -293,7 +293,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
293
293
|
*/
|
|
294
294
|
VerifyOwnership(req: VerifyOwnershipRequest, cb?: (error: string, rep: VerifyOwnershipResponse) => void): Promise<VerifyOwnershipResponse>;
|
|
295
295
|
/**
|
|
296
|
-
*
|
|
296
|
+
* 修改边缘函数触发规则,支持修改规则条件、执行函数以及描述信息。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
|
|
297
297
|
*/
|
|
298
298
|
ModifyFunctionRule(req: ModifyFunctionRuleRequest, cb?: (error: string, rep: ModifyFunctionRuleResponse) => void): Promise<ModifyFunctionRuleResponse>;
|
|
299
299
|
/**
|
|
@@ -128,7 +128,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
128
128
|
return this.request("DescribeWebSecurityTemplate", req, cb);
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* 创建边缘函数的触发规则。支持通过自定义过滤条件来决定是否需要执行函数,当需要执行函数时,提供了多种选择目标函数的方式,包括:直接指定,基于客户端归属地区选择和基于权重选择。
|
|
132
132
|
*/
|
|
133
133
|
async CreateFunctionRule(req, cb) {
|
|
134
134
|
return this.request("CreateFunctionRule", req, cb);
|
|
@@ -445,7 +445,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
445
445
|
return this.request("VerifyOwnership", req, cb);
|
|
446
446
|
}
|
|
447
447
|
/**
|
|
448
|
-
*
|
|
448
|
+
* 修改边缘函数触发规则,支持修改规则条件、执行函数以及描述信息。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
|
|
449
449
|
*/
|
|
450
450
|
async ModifyFunctionRule(req, cb) {
|
|
451
451
|
return this.request("ModifyFunctionRule", req, cb);
|
|
@@ -611,15 +611,17 @@ export interface DeleteSecurityAPIResourceRequest {
|
|
|
611
611
|
APIResourceIds?: Array<string>;
|
|
612
612
|
}
|
|
613
613
|
/**
|
|
614
|
-
*
|
|
614
|
+
* 地区策略配置。
|
|
615
615
|
*/
|
|
616
|
-
export interface
|
|
616
|
+
export interface FunctionRegionSelection {
|
|
617
617
|
/**
|
|
618
|
-
*
|
|
619
|
-
<li>on:开启;</li>
|
|
620
|
-
<li>off:关闭。</li>
|
|
618
|
+
* 函数 ID 。
|
|
621
619
|
*/
|
|
622
|
-
|
|
620
|
+
FunctionId: string;
|
|
621
|
+
/**
|
|
622
|
+
* 国家/地区列表。示例值:CN:中国,CN.GD:中国广东。取值请参考:[国家/地区及对应代码枚举](https://cloud.tencent.com/document/product/1552/112542)。
|
|
623
|
+
*/
|
|
624
|
+
Regions: Array<string>;
|
|
623
625
|
}
|
|
624
626
|
/**
|
|
625
627
|
* ModifyMultiPathGatewayLine请求参数结构体
|
|
@@ -1596,9 +1598,25 @@ export interface CreateFunctionRuleRequest {
|
|
|
1596
1598
|
*/
|
|
1597
1599
|
FunctionRuleConditions: Array<FunctionRuleCondition>;
|
|
1598
1600
|
/**
|
|
1599
|
-
*
|
|
1601
|
+
* 函数选择配置类型:
|
|
1602
|
+
<li> direct:直接指定执行函数;</li>
|
|
1603
|
+
<li> weight:基于权重比选择函数;</li>
|
|
1604
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
1605
|
+
不填时默认为 direct 。
|
|
1600
1606
|
*/
|
|
1601
|
-
|
|
1607
|
+
TriggerType?: string;
|
|
1608
|
+
/**
|
|
1609
|
+
* 指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。
|
|
1610
|
+
*/
|
|
1611
|
+
FunctionId?: string;
|
|
1612
|
+
/**
|
|
1613
|
+
* 基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。
|
|
1614
|
+
*/
|
|
1615
|
+
RegionMappingSelections?: Array<FunctionRegionSelection>;
|
|
1616
|
+
/**
|
|
1617
|
+
* 基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。
|
|
1618
|
+
*/
|
|
1619
|
+
WeightedSelections?: Array<FunctionWeightedSelection>;
|
|
1602
1620
|
/**
|
|
1603
1621
|
* 规则描述,最大支持 60 个字符。
|
|
1604
1622
|
*/
|
|
@@ -6121,6 +6139,21 @@ export interface CustomTime {
|
|
|
6121
6139
|
*/
|
|
6122
6140
|
CacheTime?: number;
|
|
6123
6141
|
}
|
|
6142
|
+
/**
|
|
6143
|
+
* 权重策略配置。
|
|
6144
|
+
*/
|
|
6145
|
+
export interface FunctionWeightedSelection {
|
|
6146
|
+
/**
|
|
6147
|
+
* 函数 ID 。
|
|
6148
|
+
*/
|
|
6149
|
+
FunctionId: string;
|
|
6150
|
+
/**
|
|
6151
|
+
* 选中权重。取值范围0-100,所有的权重之和需要为100。
|
|
6152
|
+
选中概率计算方式为:
|
|
6153
|
+
weight/100。例如设置了两个函数 A 和 B ,其中 A 的权重为30,那么 B 的权重必须为70,最终选中 A 的概率为30%,选中 B 的概率为70%。
|
|
6154
|
+
*/
|
|
6155
|
+
Weight: number;
|
|
6156
|
+
}
|
|
6124
6157
|
/**
|
|
6125
6158
|
* 域名配置信息
|
|
6126
6159
|
*/
|
|
@@ -8523,6 +8556,17 @@ export interface DescribeL7AccSettingResponse {
|
|
|
8523
8556
|
*/
|
|
8524
8557
|
RequestId?: string;
|
|
8525
8558
|
}
|
|
8559
|
+
/**
|
|
8560
|
+
* HTTP2 回源配置。
|
|
8561
|
+
*/
|
|
8562
|
+
export interface UpstreamHTTP2Parameters {
|
|
8563
|
+
/**
|
|
8564
|
+
* HTTP2 回源配置开关,取值有:
|
|
8565
|
+
<li>on:开启;</li>
|
|
8566
|
+
<li>off:关闭。</li>
|
|
8567
|
+
*/
|
|
8568
|
+
Switch?: string;
|
|
8569
|
+
}
|
|
8526
8570
|
/**
|
|
8527
8571
|
* ModifyAliasDomain请求参数结构体
|
|
8528
8572
|
*/
|
|
@@ -12601,7 +12645,7 @@ export interface ModifyFunctionRuleRequest {
|
|
|
12601
12645
|
*/
|
|
12602
12646
|
ZoneId: string;
|
|
12603
12647
|
/**
|
|
12604
|
-
* 规则 ID
|
|
12648
|
+
* 规则 ID。您可以先通过 DescribeFunctionRules 接口来获取需要修改的规则的 RuleId,然后传入修改后的规则内容,原规则内容会被覆盖式更新。
|
|
12605
12649
|
*/
|
|
12606
12650
|
RuleId: string;
|
|
12607
12651
|
/**
|
|
@@ -12609,9 +12653,25 @@ export interface ModifyFunctionRuleRequest {
|
|
|
12609
12653
|
*/
|
|
12610
12654
|
FunctionRuleConditions?: Array<FunctionRuleCondition>;
|
|
12611
12655
|
/**
|
|
12612
|
-
*
|
|
12656
|
+
* 函数选择配置类型:
|
|
12657
|
+
<li> direct:直接指定执行函数;</li>
|
|
12658
|
+
<li> weight:基于权重比选择函数;</li>
|
|
12659
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
12660
|
+
不填时默认为 direct 。
|
|
12661
|
+
*/
|
|
12662
|
+
TriggerType?: string;
|
|
12663
|
+
/**
|
|
12664
|
+
* 指定执行的函数 ID。当 TriggerType 为 direct 或 TriggerType 不填时生效。
|
|
12613
12665
|
*/
|
|
12614
12666
|
FunctionId?: string;
|
|
12667
|
+
/**
|
|
12668
|
+
* 基于客户端 IP 国家/地区的函数选择配置,当 TriggerType 为 region 时生效且 RegionMappingSelections 必填。RegionMappingSelections 中至少包含一项 Regions 为 Default 的配置。
|
|
12669
|
+
*/
|
|
12670
|
+
RegionMappingSelections?: Array<FunctionRegionSelection>;
|
|
12671
|
+
/**
|
|
12672
|
+
* 基于权重的函数选择配置,当 TriggerType 为 weight 时生效且 WeightedSelections 必填。WeightedSelections 中的所有权重之和需要为100。
|
|
12673
|
+
*/
|
|
12674
|
+
WeightedSelections?: Array<FunctionWeightedSelection>;
|
|
12615
12675
|
/**
|
|
12616
12676
|
* 规则描述,最大支持 60 个字符,不填写保持原有配置。
|
|
12617
12677
|
*/
|
|
@@ -12664,21 +12724,37 @@ export interface FunctionRule {
|
|
|
12664
12724
|
*/
|
|
12665
12725
|
FunctionRuleConditions?: Array<FunctionRuleCondition>;
|
|
12666
12726
|
/**
|
|
12667
|
-
*
|
|
12727
|
+
* 函数选择配置类型:
|
|
12728
|
+
<li> direct:直接指定执行函数;</li>
|
|
12729
|
+
<li> weight:基于权重比选择函数;</li>
|
|
12730
|
+
<li> region:基于客户端 IP 的国家/地区选择函数。</li>
|
|
12731
|
+
|
|
12668
12732
|
*/
|
|
12669
|
-
|
|
12733
|
+
TriggerType?: string;
|
|
12670
12734
|
/**
|
|
12671
|
-
*
|
|
12735
|
+
* 指定执行的函数 ID。当 TriggerType 为 direct 时有效。
|
|
12672
12736
|
*/
|
|
12673
|
-
|
|
12737
|
+
FunctionId?: string;
|
|
12674
12738
|
/**
|
|
12675
|
-
*
|
|
12739
|
+
* 指定执行的函数名称。
|
|
12676
12740
|
*/
|
|
12677
12741
|
FunctionName?: string;
|
|
12742
|
+
/**
|
|
12743
|
+
* 基于客户端 IP 国家/地区的函数选择配置。
|
|
12744
|
+
*/
|
|
12745
|
+
RegionMappingSelections?: Array<FunctionRegionSelection>;
|
|
12746
|
+
/**
|
|
12747
|
+
* 基于权重的函数选择配置。
|
|
12748
|
+
*/
|
|
12749
|
+
WeightedSelections?: Array<FunctionWeightedSelection>;
|
|
12678
12750
|
/**
|
|
12679
12751
|
* 函数触发规则优先级,数值越大,优先级越高。
|
|
12680
12752
|
*/
|
|
12681
12753
|
Priority?: number;
|
|
12754
|
+
/**
|
|
12755
|
+
* 规则描述。
|
|
12756
|
+
*/
|
|
12757
|
+
Remark?: string;
|
|
12682
12758
|
/**
|
|
12683
12759
|
* 创建时间。时间为世界标准时间(UTC), 遵循 ISO 8601 标准的日期和时间格式。
|
|
12684
12760
|
*/
|