@alicloud/waf-openapi20211001 2.0.2 → 2.1.1
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/dist/client.d.ts +52 -0
- package/dist/client.js +107 -0
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +134 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alicloud/waf-openapi20211001",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/client.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alicloud/tea-typescript": "^1.7.1",
|
|
23
|
-
"@alicloud/tea-util": "^1.4.
|
|
23
|
+
"@alicloud/tea-util": "^1.4.7",
|
|
24
24
|
"@alicloud/openapi-client": "^0.4.4",
|
|
25
|
-
"@alicloud/openapi-util": "^0.3.
|
|
25
|
+
"@alicloud/openapi-util": "^0.3.2",
|
|
26
26
|
"@alicloud/endpoint-util": "^0.0.1"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
package/src/client.ts
CHANGED
|
@@ -2772,6 +2772,7 @@ export class DescribeRuleHitsTopResourceResponse extends $tea.Model {
|
|
|
2772
2772
|
export class DescribeRuleHitsTopRuleIdRequest extends $tea.Model {
|
|
2773
2773
|
endTimestamp?: string;
|
|
2774
2774
|
instanceId?: string;
|
|
2775
|
+
isGroupResource?: string;
|
|
2775
2776
|
regionId?: string;
|
|
2776
2777
|
resource?: string;
|
|
2777
2778
|
resourceManagerResourceGroupId?: string;
|
|
@@ -2781,6 +2782,7 @@ export class DescribeRuleHitsTopRuleIdRequest extends $tea.Model {
|
|
|
2781
2782
|
return {
|
|
2782
2783
|
endTimestamp: 'EndTimestamp',
|
|
2783
2784
|
instanceId: 'InstanceId',
|
|
2785
|
+
isGroupResource: 'IsGroupResource',
|
|
2784
2786
|
regionId: 'RegionId',
|
|
2785
2787
|
resource: 'Resource',
|
|
2786
2788
|
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
@@ -2793,6 +2795,7 @@ export class DescribeRuleHitsTopRuleIdRequest extends $tea.Model {
|
|
|
2793
2795
|
return {
|
|
2794
2796
|
endTimestamp: 'string',
|
|
2795
2797
|
instanceId: 'string',
|
|
2798
|
+
isGroupResource: 'string',
|
|
2796
2799
|
regionId: 'string',
|
|
2797
2800
|
resource: 'string',
|
|
2798
2801
|
resourceManagerResourceGroupId: 'string',
|
|
@@ -3916,6 +3919,75 @@ export class ModifyDomainResponse extends $tea.Model {
|
|
|
3916
3919
|
}
|
|
3917
3920
|
}
|
|
3918
3921
|
|
|
3922
|
+
export class ModifyHybridCloudClusterBypassStatusRequest extends $tea.Model {
|
|
3923
|
+
clusterResourceId?: string;
|
|
3924
|
+
instanceId?: string;
|
|
3925
|
+
ruleStatus?: string;
|
|
3926
|
+
static names(): { [key: string]: string } {
|
|
3927
|
+
return {
|
|
3928
|
+
clusterResourceId: 'ClusterResourceId',
|
|
3929
|
+
instanceId: 'InstanceId',
|
|
3930
|
+
ruleStatus: 'RuleStatus',
|
|
3931
|
+
};
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
static types(): { [key: string]: any } {
|
|
3935
|
+
return {
|
|
3936
|
+
clusterResourceId: 'string',
|
|
3937
|
+
instanceId: 'string',
|
|
3938
|
+
ruleStatus: 'string',
|
|
3939
|
+
};
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
constructor(map?: { [key: string]: any }) {
|
|
3943
|
+
super(map);
|
|
3944
|
+
}
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
export class ModifyHybridCloudClusterBypassStatusResponseBody extends $tea.Model {
|
|
3948
|
+
requestId?: string;
|
|
3949
|
+
static names(): { [key: string]: string } {
|
|
3950
|
+
return {
|
|
3951
|
+
requestId: 'RequestId',
|
|
3952
|
+
};
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
static types(): { [key: string]: any } {
|
|
3956
|
+
return {
|
|
3957
|
+
requestId: 'string',
|
|
3958
|
+
};
|
|
3959
|
+
}
|
|
3960
|
+
|
|
3961
|
+
constructor(map?: { [key: string]: any }) {
|
|
3962
|
+
super(map);
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
|
|
3966
|
+
export class ModifyHybridCloudClusterBypassStatusResponse extends $tea.Model {
|
|
3967
|
+
headers: { [key: string]: string };
|
|
3968
|
+
statusCode: number;
|
|
3969
|
+
body: ModifyHybridCloudClusterBypassStatusResponseBody;
|
|
3970
|
+
static names(): { [key: string]: string } {
|
|
3971
|
+
return {
|
|
3972
|
+
headers: 'headers',
|
|
3973
|
+
statusCode: 'statusCode',
|
|
3974
|
+
body: 'body',
|
|
3975
|
+
};
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
static types(): { [key: string]: any } {
|
|
3979
|
+
return {
|
|
3980
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3981
|
+
statusCode: 'number',
|
|
3982
|
+
body: ModifyHybridCloudClusterBypassStatusResponseBody,
|
|
3983
|
+
};
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
constructor(map?: { [key: string]: any }) {
|
|
3987
|
+
super(map);
|
|
3988
|
+
}
|
|
3989
|
+
}
|
|
3990
|
+
|
|
3919
3991
|
export class ModifyMajorProtectionBlackIpRequest extends $tea.Model {
|
|
3920
3992
|
description?: string;
|
|
3921
3993
|
expiredTime?: number;
|
|
@@ -4388,6 +4460,9 @@ export class DescribeDefenseResourcesRequestTag extends $tea.Model {
|
|
|
4388
4460
|
}
|
|
4389
4461
|
|
|
4390
4462
|
export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
|
|
4463
|
+
acwCookieStatus?: number;
|
|
4464
|
+
acwSecureStatus?: number;
|
|
4465
|
+
acwV3SecureStatus?: number;
|
|
4391
4466
|
customHeaders?: string[];
|
|
4392
4467
|
description?: string;
|
|
4393
4468
|
detail?: { [key: string]: any };
|
|
@@ -4402,6 +4477,9 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
|
|
|
4402
4477
|
xffStatus?: number;
|
|
4403
4478
|
static names(): { [key: string]: string } {
|
|
4404
4479
|
return {
|
|
4480
|
+
acwCookieStatus: 'AcwCookieStatus',
|
|
4481
|
+
acwSecureStatus: 'AcwSecureStatus',
|
|
4482
|
+
acwV3SecureStatus: 'AcwV3SecureStatus',
|
|
4405
4483
|
customHeaders: 'CustomHeaders',
|
|
4406
4484
|
description: 'Description',
|
|
4407
4485
|
detail: 'Detail',
|
|
@@ -4419,6 +4497,9 @@ export class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
|
|
|
4419
4497
|
|
|
4420
4498
|
static types(): { [key: string]: any } {
|
|
4421
4499
|
return {
|
|
4500
|
+
acwCookieStatus: 'number',
|
|
4501
|
+
acwSecureStatus: 'number',
|
|
4502
|
+
acwV3SecureStatus: 'number',
|
|
4422
4503
|
customHeaders: { 'type': 'array', 'itemType': 'string' },
|
|
4423
4504
|
description: 'string',
|
|
4424
4505
|
detail: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
@@ -4521,6 +4602,7 @@ export class DescribeDefenseRulesResponseBodyRules extends $tea.Model {
|
|
|
4521
4602
|
|
|
4522
4603
|
export class DescribeDefenseTemplateResponseBodyTemplate extends $tea.Model {
|
|
4523
4604
|
defenseScene?: string;
|
|
4605
|
+
defenseSubScene?: string;
|
|
4524
4606
|
description?: string;
|
|
4525
4607
|
gmtModified?: number;
|
|
4526
4608
|
templateId?: number;
|
|
@@ -4531,6 +4613,7 @@ export class DescribeDefenseTemplateResponseBodyTemplate extends $tea.Model {
|
|
|
4531
4613
|
static names(): { [key: string]: string } {
|
|
4532
4614
|
return {
|
|
4533
4615
|
defenseScene: 'DefenseScene',
|
|
4616
|
+
defenseSubScene: 'DefenseSubScene',
|
|
4534
4617
|
description: 'Description',
|
|
4535
4618
|
gmtModified: 'GmtModified',
|
|
4536
4619
|
templateId: 'TemplateId',
|
|
@@ -4544,6 +4627,7 @@ export class DescribeDefenseTemplateResponseBodyTemplate extends $tea.Model {
|
|
|
4544
4627
|
static types(): { [key: string]: any } {
|
|
4545
4628
|
return {
|
|
4546
4629
|
defenseScene: 'string',
|
|
4630
|
+
defenseSubScene: 'string',
|
|
4547
4631
|
description: 'string',
|
|
4548
4632
|
gmtModified: 'number',
|
|
4549
4633
|
templateId: 'number',
|
|
@@ -4946,8 +5030,11 @@ export class DescribeFlowChartResponseBodyFlowChart extends $tea.Model {
|
|
|
4946
5030
|
index?: number;
|
|
4947
5031
|
maxPv?: number;
|
|
4948
5032
|
outBytes?: number;
|
|
5033
|
+
ratelimitBlockSum?: number;
|
|
5034
|
+
ratelimitReportSum?: number;
|
|
4949
5035
|
regionBlockBlocksSum?: number;
|
|
4950
5036
|
regionBlockReportsSum?: number;
|
|
5037
|
+
robotCount?: number;
|
|
4951
5038
|
wafBlockSum?: number;
|
|
4952
5039
|
wafReportSum?: string;
|
|
4953
5040
|
static names(): { [key: string]: string } {
|
|
@@ -4969,8 +5056,11 @@ export class DescribeFlowChartResponseBodyFlowChart extends $tea.Model {
|
|
|
4969
5056
|
index: 'Index',
|
|
4970
5057
|
maxPv: 'MaxPv',
|
|
4971
5058
|
outBytes: 'OutBytes',
|
|
5059
|
+
ratelimitBlockSum: 'RatelimitBlockSum',
|
|
5060
|
+
ratelimitReportSum: 'RatelimitReportSum',
|
|
4972
5061
|
regionBlockBlocksSum: 'RegionBlockBlocksSum',
|
|
4973
5062
|
regionBlockReportsSum: 'RegionBlockReportsSum',
|
|
5063
|
+
robotCount: 'RobotCount',
|
|
4974
5064
|
wafBlockSum: 'WafBlockSum',
|
|
4975
5065
|
wafReportSum: 'WafReportSum',
|
|
4976
5066
|
};
|
|
@@ -4995,8 +5085,11 @@ export class DescribeFlowChartResponseBodyFlowChart extends $tea.Model {
|
|
|
4995
5085
|
index: 'number',
|
|
4996
5086
|
maxPv: 'number',
|
|
4997
5087
|
outBytes: 'number',
|
|
5088
|
+
ratelimitBlockSum: 'number',
|
|
5089
|
+
ratelimitReportSum: 'number',
|
|
4998
5090
|
regionBlockBlocksSum: 'number',
|
|
4999
5091
|
regionBlockReportsSum: 'number',
|
|
5092
|
+
robotCount: 'number',
|
|
5000
5093
|
wafBlockSum: 'number',
|
|
5001
5094
|
wafReportSum: 'string',
|
|
5002
5095
|
};
|
|
@@ -7721,6 +7814,10 @@ export default class Client extends OpenApi {
|
|
|
7721
7814
|
query["InstanceId"] = request.instanceId;
|
|
7722
7815
|
}
|
|
7723
7816
|
|
|
7817
|
+
if (!Util.isUnset(request.isGroupResource)) {
|
|
7818
|
+
query["IsGroupResource"] = request.isGroupResource;
|
|
7819
|
+
}
|
|
7820
|
+
|
|
7724
7821
|
if (!Util.isUnset(request.regionId)) {
|
|
7725
7822
|
query["RegionId"] = request.regionId;
|
|
7726
7823
|
}
|
|
@@ -8394,6 +8491,43 @@ export default class Client extends OpenApi {
|
|
|
8394
8491
|
return await this.modifyDomainWithOptions(request, runtime);
|
|
8395
8492
|
}
|
|
8396
8493
|
|
|
8494
|
+
async modifyHybridCloudClusterBypassStatusWithOptions(request: ModifyHybridCloudClusterBypassStatusRequest, runtime: $Util.RuntimeOptions): Promise<ModifyHybridCloudClusterBypassStatusResponse> {
|
|
8495
|
+
Util.validateModel(request);
|
|
8496
|
+
let query = { };
|
|
8497
|
+
if (!Util.isUnset(request.clusterResourceId)) {
|
|
8498
|
+
query["ClusterResourceId"] = request.clusterResourceId;
|
|
8499
|
+
}
|
|
8500
|
+
|
|
8501
|
+
if (!Util.isUnset(request.instanceId)) {
|
|
8502
|
+
query["InstanceId"] = request.instanceId;
|
|
8503
|
+
}
|
|
8504
|
+
|
|
8505
|
+
if (!Util.isUnset(request.ruleStatus)) {
|
|
8506
|
+
query["RuleStatus"] = request.ruleStatus;
|
|
8507
|
+
}
|
|
8508
|
+
|
|
8509
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
8510
|
+
query: OpenApiUtil.query(query),
|
|
8511
|
+
});
|
|
8512
|
+
let params = new $OpenApi.Params({
|
|
8513
|
+
action: "ModifyHybridCloudClusterBypassStatus",
|
|
8514
|
+
version: "2021-10-01",
|
|
8515
|
+
protocol: "HTTPS",
|
|
8516
|
+
pathname: "/",
|
|
8517
|
+
method: "POST",
|
|
8518
|
+
authType: "AK",
|
|
8519
|
+
style: "RPC",
|
|
8520
|
+
reqBodyType: "formData",
|
|
8521
|
+
bodyType: "json",
|
|
8522
|
+
});
|
|
8523
|
+
return $tea.cast<ModifyHybridCloudClusterBypassStatusResponse>(await this.callApi(params, req, runtime), new ModifyHybridCloudClusterBypassStatusResponse({}));
|
|
8524
|
+
}
|
|
8525
|
+
|
|
8526
|
+
async modifyHybridCloudClusterBypassStatus(request: ModifyHybridCloudClusterBypassStatusRequest): Promise<ModifyHybridCloudClusterBypassStatusResponse> {
|
|
8527
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
8528
|
+
return await this.modifyHybridCloudClusterBypassStatusWithOptions(request, runtime);
|
|
8529
|
+
}
|
|
8530
|
+
|
|
8397
8531
|
async modifyMajorProtectionBlackIpWithOptions(request: ModifyMajorProtectionBlackIpRequest, runtime: $Util.RuntimeOptions): Promise<ModifyMajorProtectionBlackIpResponse> {
|
|
8398
8532
|
Util.validateModel(request);
|
|
8399
8533
|
let query = { };
|