@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/dist/client.d.ts
CHANGED
|
@@ -1560,6 +1560,7 @@ export declare class DescribeRuleHitsTopResourceResponse extends $tea.Model {
|
|
|
1560
1560
|
export declare class DescribeRuleHitsTopRuleIdRequest extends $tea.Model {
|
|
1561
1561
|
endTimestamp?: string;
|
|
1562
1562
|
instanceId?: string;
|
|
1563
|
+
isGroupResource?: string;
|
|
1563
1564
|
regionId?: string;
|
|
1564
1565
|
resource?: string;
|
|
1565
1566
|
resourceManagerResourceGroupId?: string;
|
|
@@ -2211,6 +2212,48 @@ export declare class ModifyDomainResponse extends $tea.Model {
|
|
|
2211
2212
|
[key: string]: any;
|
|
2212
2213
|
});
|
|
2213
2214
|
}
|
|
2215
|
+
export declare class ModifyHybridCloudClusterBypassStatusRequest extends $tea.Model {
|
|
2216
|
+
clusterResourceId?: string;
|
|
2217
|
+
instanceId?: string;
|
|
2218
|
+
ruleStatus?: string;
|
|
2219
|
+
static names(): {
|
|
2220
|
+
[key: string]: string;
|
|
2221
|
+
};
|
|
2222
|
+
static types(): {
|
|
2223
|
+
[key: string]: any;
|
|
2224
|
+
};
|
|
2225
|
+
constructor(map?: {
|
|
2226
|
+
[key: string]: any;
|
|
2227
|
+
});
|
|
2228
|
+
}
|
|
2229
|
+
export declare class ModifyHybridCloudClusterBypassStatusResponseBody extends $tea.Model {
|
|
2230
|
+
requestId?: string;
|
|
2231
|
+
static names(): {
|
|
2232
|
+
[key: string]: string;
|
|
2233
|
+
};
|
|
2234
|
+
static types(): {
|
|
2235
|
+
[key: string]: any;
|
|
2236
|
+
};
|
|
2237
|
+
constructor(map?: {
|
|
2238
|
+
[key: string]: any;
|
|
2239
|
+
});
|
|
2240
|
+
}
|
|
2241
|
+
export declare class ModifyHybridCloudClusterBypassStatusResponse extends $tea.Model {
|
|
2242
|
+
headers: {
|
|
2243
|
+
[key: string]: string;
|
|
2244
|
+
};
|
|
2245
|
+
statusCode: number;
|
|
2246
|
+
body: ModifyHybridCloudClusterBypassStatusResponseBody;
|
|
2247
|
+
static names(): {
|
|
2248
|
+
[key: string]: string;
|
|
2249
|
+
};
|
|
2250
|
+
static types(): {
|
|
2251
|
+
[key: string]: any;
|
|
2252
|
+
};
|
|
2253
|
+
constructor(map?: {
|
|
2254
|
+
[key: string]: any;
|
|
2255
|
+
});
|
|
2256
|
+
}
|
|
2214
2257
|
export declare class ModifyMajorProtectionBlackIpRequest extends $tea.Model {
|
|
2215
2258
|
description?: string;
|
|
2216
2259
|
expiredTime?: number;
|
|
@@ -2460,6 +2503,9 @@ export declare class DescribeDefenseResourcesRequestTag extends $tea.Model {
|
|
|
2460
2503
|
});
|
|
2461
2504
|
}
|
|
2462
2505
|
export declare class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
|
|
2506
|
+
acwCookieStatus?: number;
|
|
2507
|
+
acwSecureStatus?: number;
|
|
2508
|
+
acwV3SecureStatus?: number;
|
|
2463
2509
|
customHeaders?: string[];
|
|
2464
2510
|
description?: string;
|
|
2465
2511
|
detail?: {
|
|
@@ -2524,6 +2570,7 @@ export declare class DescribeDefenseRulesResponseBodyRules extends $tea.Model {
|
|
|
2524
2570
|
}
|
|
2525
2571
|
export declare class DescribeDefenseTemplateResponseBodyTemplate extends $tea.Model {
|
|
2526
2572
|
defenseScene?: string;
|
|
2573
|
+
defenseSubScene?: string;
|
|
2527
2574
|
description?: string;
|
|
2528
2575
|
gmtModified?: number;
|
|
2529
2576
|
templateId?: number;
|
|
@@ -2750,8 +2797,11 @@ export declare class DescribeFlowChartResponseBodyFlowChart extends $tea.Model {
|
|
|
2750
2797
|
index?: number;
|
|
2751
2798
|
maxPv?: number;
|
|
2752
2799
|
outBytes?: number;
|
|
2800
|
+
ratelimitBlockSum?: number;
|
|
2801
|
+
ratelimitReportSum?: number;
|
|
2753
2802
|
regionBlockBlocksSum?: number;
|
|
2754
2803
|
regionBlockReportsSum?: number;
|
|
2804
|
+
robotCount?: number;
|
|
2755
2805
|
wafBlockSum?: number;
|
|
2756
2806
|
wafReportSum?: string;
|
|
2757
2807
|
static names(): {
|
|
@@ -3363,6 +3413,8 @@ export default class Client extends OpenApi {
|
|
|
3363
3413
|
modifyDefenseTemplateStatus(request: ModifyDefenseTemplateStatusRequest): Promise<ModifyDefenseTemplateStatusResponse>;
|
|
3364
3414
|
modifyDomainWithOptions(tmpReq: ModifyDomainRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDomainResponse>;
|
|
3365
3415
|
modifyDomain(request: ModifyDomainRequest): Promise<ModifyDomainResponse>;
|
|
3416
|
+
modifyHybridCloudClusterBypassStatusWithOptions(request: ModifyHybridCloudClusterBypassStatusRequest, runtime: $Util.RuntimeOptions): Promise<ModifyHybridCloudClusterBypassStatusResponse>;
|
|
3417
|
+
modifyHybridCloudClusterBypassStatus(request: ModifyHybridCloudClusterBypassStatusRequest): Promise<ModifyHybridCloudClusterBypassStatusResponse>;
|
|
3366
3418
|
modifyMajorProtectionBlackIpWithOptions(request: ModifyMajorProtectionBlackIpRequest, runtime: $Util.RuntimeOptions): Promise<ModifyMajorProtectionBlackIpResponse>;
|
|
3367
3419
|
modifyMajorProtectionBlackIp(request: ModifyMajorProtectionBlackIpRequest): Promise<ModifyMajorProtectionBlackIpResponse>;
|
|
3368
3420
|
modifyResourceLogStatusWithOptions(request: ModifyResourceLogStatusRequest, runtime: $Util.RuntimeOptions): Promise<ModifyResourceLogStatusResponse>;
|
package/dist/client.js
CHANGED
|
@@ -2201,6 +2201,7 @@ class DescribeRuleHitsTopRuleIdRequest extends $tea.Model {
|
|
|
2201
2201
|
return {
|
|
2202
2202
|
endTimestamp: 'EndTimestamp',
|
|
2203
2203
|
instanceId: 'InstanceId',
|
|
2204
|
+
isGroupResource: 'IsGroupResource',
|
|
2204
2205
|
regionId: 'RegionId',
|
|
2205
2206
|
resource: 'Resource',
|
|
2206
2207
|
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
@@ -2212,6 +2213,7 @@ class DescribeRuleHitsTopRuleIdRequest extends $tea.Model {
|
|
|
2212
2213
|
return {
|
|
2213
2214
|
endTimestamp: 'string',
|
|
2214
2215
|
instanceId: 'string',
|
|
2216
|
+
isGroupResource: 'string',
|
|
2215
2217
|
regionId: 'string',
|
|
2216
2218
|
resource: 'string',
|
|
2217
2219
|
resourceManagerResourceGroupId: 'string',
|
|
@@ -3101,6 +3103,62 @@ class ModifyDomainResponse extends $tea.Model {
|
|
|
3101
3103
|
}
|
|
3102
3104
|
}
|
|
3103
3105
|
exports.ModifyDomainResponse = ModifyDomainResponse;
|
|
3106
|
+
class ModifyHybridCloudClusterBypassStatusRequest extends $tea.Model {
|
|
3107
|
+
constructor(map) {
|
|
3108
|
+
super(map);
|
|
3109
|
+
}
|
|
3110
|
+
static names() {
|
|
3111
|
+
return {
|
|
3112
|
+
clusterResourceId: 'ClusterResourceId',
|
|
3113
|
+
instanceId: 'InstanceId',
|
|
3114
|
+
ruleStatus: 'RuleStatus',
|
|
3115
|
+
};
|
|
3116
|
+
}
|
|
3117
|
+
static types() {
|
|
3118
|
+
return {
|
|
3119
|
+
clusterResourceId: 'string',
|
|
3120
|
+
instanceId: 'string',
|
|
3121
|
+
ruleStatus: 'string',
|
|
3122
|
+
};
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
exports.ModifyHybridCloudClusterBypassStatusRequest = ModifyHybridCloudClusterBypassStatusRequest;
|
|
3126
|
+
class ModifyHybridCloudClusterBypassStatusResponseBody extends $tea.Model {
|
|
3127
|
+
constructor(map) {
|
|
3128
|
+
super(map);
|
|
3129
|
+
}
|
|
3130
|
+
static names() {
|
|
3131
|
+
return {
|
|
3132
|
+
requestId: 'RequestId',
|
|
3133
|
+
};
|
|
3134
|
+
}
|
|
3135
|
+
static types() {
|
|
3136
|
+
return {
|
|
3137
|
+
requestId: 'string',
|
|
3138
|
+
};
|
|
3139
|
+
}
|
|
3140
|
+
}
|
|
3141
|
+
exports.ModifyHybridCloudClusterBypassStatusResponseBody = ModifyHybridCloudClusterBypassStatusResponseBody;
|
|
3142
|
+
class ModifyHybridCloudClusterBypassStatusResponse extends $tea.Model {
|
|
3143
|
+
constructor(map) {
|
|
3144
|
+
super(map);
|
|
3145
|
+
}
|
|
3146
|
+
static names() {
|
|
3147
|
+
return {
|
|
3148
|
+
headers: 'headers',
|
|
3149
|
+
statusCode: 'statusCode',
|
|
3150
|
+
body: 'body',
|
|
3151
|
+
};
|
|
3152
|
+
}
|
|
3153
|
+
static types() {
|
|
3154
|
+
return {
|
|
3155
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3156
|
+
statusCode: 'number',
|
|
3157
|
+
body: ModifyHybridCloudClusterBypassStatusResponseBody,
|
|
3158
|
+
};
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
exports.ModifyHybridCloudClusterBypassStatusResponse = ModifyHybridCloudClusterBypassStatusResponse;
|
|
3104
3162
|
class ModifyMajorProtectionBlackIpRequest extends $tea.Model {
|
|
3105
3163
|
constructor(map) {
|
|
3106
3164
|
super(map);
|
|
@@ -3471,6 +3529,9 @@ class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
|
|
|
3471
3529
|
}
|
|
3472
3530
|
static names() {
|
|
3473
3531
|
return {
|
|
3532
|
+
acwCookieStatus: 'AcwCookieStatus',
|
|
3533
|
+
acwSecureStatus: 'AcwSecureStatus',
|
|
3534
|
+
acwV3SecureStatus: 'AcwV3SecureStatus',
|
|
3474
3535
|
customHeaders: 'CustomHeaders',
|
|
3475
3536
|
description: 'Description',
|
|
3476
3537
|
detail: 'Detail',
|
|
@@ -3487,6 +3548,9 @@ class DescribeDefenseResourcesResponseBodyResources extends $tea.Model {
|
|
|
3487
3548
|
}
|
|
3488
3549
|
static types() {
|
|
3489
3550
|
return {
|
|
3551
|
+
acwCookieStatus: 'number',
|
|
3552
|
+
acwSecureStatus: 'number',
|
|
3553
|
+
acwV3SecureStatus: 'number',
|
|
3490
3554
|
customHeaders: { 'type': 'array', 'itemType': 'string' },
|
|
3491
3555
|
description: 'string',
|
|
3492
3556
|
detail: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
@@ -3570,6 +3634,7 @@ class DescribeDefenseTemplateResponseBodyTemplate extends $tea.Model {
|
|
|
3570
3634
|
static names() {
|
|
3571
3635
|
return {
|
|
3572
3636
|
defenseScene: 'DefenseScene',
|
|
3637
|
+
defenseSubScene: 'DefenseSubScene',
|
|
3573
3638
|
description: 'Description',
|
|
3574
3639
|
gmtModified: 'GmtModified',
|
|
3575
3640
|
templateId: 'TemplateId',
|
|
@@ -3582,6 +3647,7 @@ class DescribeDefenseTemplateResponseBodyTemplate extends $tea.Model {
|
|
|
3582
3647
|
static types() {
|
|
3583
3648
|
return {
|
|
3584
3649
|
defenseScene: 'string',
|
|
3650
|
+
defenseSubScene: 'string',
|
|
3585
3651
|
description: 'string',
|
|
3586
3652
|
gmtModified: 'number',
|
|
3587
3653
|
templateId: 'number',
|
|
@@ -3902,8 +3968,11 @@ class DescribeFlowChartResponseBodyFlowChart extends $tea.Model {
|
|
|
3902
3968
|
index: 'Index',
|
|
3903
3969
|
maxPv: 'MaxPv',
|
|
3904
3970
|
outBytes: 'OutBytes',
|
|
3971
|
+
ratelimitBlockSum: 'RatelimitBlockSum',
|
|
3972
|
+
ratelimitReportSum: 'RatelimitReportSum',
|
|
3905
3973
|
regionBlockBlocksSum: 'RegionBlockBlocksSum',
|
|
3906
3974
|
regionBlockReportsSum: 'RegionBlockReportsSum',
|
|
3975
|
+
robotCount: 'RobotCount',
|
|
3907
3976
|
wafBlockSum: 'WafBlockSum',
|
|
3908
3977
|
wafReportSum: 'WafReportSum',
|
|
3909
3978
|
};
|
|
@@ -3927,8 +3996,11 @@ class DescribeFlowChartResponseBodyFlowChart extends $tea.Model {
|
|
|
3927
3996
|
index: 'number',
|
|
3928
3997
|
maxPv: 'number',
|
|
3929
3998
|
outBytes: 'number',
|
|
3999
|
+
ratelimitBlockSum: 'number',
|
|
4000
|
+
ratelimitReportSum: 'number',
|
|
3930
4001
|
regionBlockBlocksSum: 'number',
|
|
3931
4002
|
regionBlockReportsSum: 'number',
|
|
4003
|
+
robotCount: 'number',
|
|
3932
4004
|
wafBlockSum: 'number',
|
|
3933
4005
|
wafReportSum: 'string',
|
|
3934
4006
|
};
|
|
@@ -6127,6 +6199,9 @@ class Client extends openapi_client_1.default {
|
|
|
6127
6199
|
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
6128
6200
|
query["InstanceId"] = request.instanceId;
|
|
6129
6201
|
}
|
|
6202
|
+
if (!tea_util_1.default.isUnset(request.isGroupResource)) {
|
|
6203
|
+
query["IsGroupResource"] = request.isGroupResource;
|
|
6204
|
+
}
|
|
6130
6205
|
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
6131
6206
|
query["RegionId"] = request.regionId;
|
|
6132
6207
|
}
|
|
@@ -6691,6 +6766,38 @@ class Client extends openapi_client_1.default {
|
|
|
6691
6766
|
let runtime = new $Util.RuntimeOptions({});
|
|
6692
6767
|
return await this.modifyDomainWithOptions(request, runtime);
|
|
6693
6768
|
}
|
|
6769
|
+
async modifyHybridCloudClusterBypassStatusWithOptions(request, runtime) {
|
|
6770
|
+
tea_util_1.default.validateModel(request);
|
|
6771
|
+
let query = {};
|
|
6772
|
+
if (!tea_util_1.default.isUnset(request.clusterResourceId)) {
|
|
6773
|
+
query["ClusterResourceId"] = request.clusterResourceId;
|
|
6774
|
+
}
|
|
6775
|
+
if (!tea_util_1.default.isUnset(request.instanceId)) {
|
|
6776
|
+
query["InstanceId"] = request.instanceId;
|
|
6777
|
+
}
|
|
6778
|
+
if (!tea_util_1.default.isUnset(request.ruleStatus)) {
|
|
6779
|
+
query["RuleStatus"] = request.ruleStatus;
|
|
6780
|
+
}
|
|
6781
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
6782
|
+
query: openapi_util_1.default.query(query),
|
|
6783
|
+
});
|
|
6784
|
+
let params = new $OpenApi.Params({
|
|
6785
|
+
action: "ModifyHybridCloudClusterBypassStatus",
|
|
6786
|
+
version: "2021-10-01",
|
|
6787
|
+
protocol: "HTTPS",
|
|
6788
|
+
pathname: "/",
|
|
6789
|
+
method: "POST",
|
|
6790
|
+
authType: "AK",
|
|
6791
|
+
style: "RPC",
|
|
6792
|
+
reqBodyType: "formData",
|
|
6793
|
+
bodyType: "json",
|
|
6794
|
+
});
|
|
6795
|
+
return $tea.cast(await this.callApi(params, req, runtime), new ModifyHybridCloudClusterBypassStatusResponse({}));
|
|
6796
|
+
}
|
|
6797
|
+
async modifyHybridCloudClusterBypassStatus(request) {
|
|
6798
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
6799
|
+
return await this.modifyHybridCloudClusterBypassStatusWithOptions(request, runtime);
|
|
6800
|
+
}
|
|
6694
6801
|
async modifyMajorProtectionBlackIpWithOptions(request, runtime) {
|
|
6695
6802
|
tea_util_1.default.validateModel(request);
|
|
6696
6803
|
let query = {};
|