@alicloud/waf-openapi20211001 5.2.1 → 5.4.0
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 +150 -0
- package/dist/client.js +596 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateHybridCloudClusterRequest.d.ts +175 -0
- package/dist/models/CreateHybridCloudClusterRequest.js +88 -0
- package/dist/models/CreateHybridCloudClusterRequest.js.map +1 -0
- package/dist/models/CreateHybridCloudClusterResponse.d.ts +19 -0
- package/dist/models/CreateHybridCloudClusterResponse.js +69 -0
- package/dist/models/CreateHybridCloudClusterResponse.js.map +1 -0
- package/dist/models/CreateHybridCloudClusterResponseBody.d.ts +29 -0
- package/dist/models/CreateHybridCloudClusterResponseBody.js +60 -0
- package/dist/models/CreateHybridCloudClusterResponseBody.js.map +1 -0
- package/dist/models/DescribeBaseSystemRulesRequest.d.ts +81 -0
- package/dist/models/DescribeBaseSystemRulesRequest.js +82 -0
- package/dist/models/DescribeBaseSystemRulesRequest.js.map +1 -0
- package/dist/models/DescribeBaseSystemRulesResponse.d.ts +19 -0
- package/dist/models/DescribeBaseSystemRulesResponse.js +69 -0
- package/dist/models/DescribeBaseSystemRulesResponse.js.map +1 -0
- package/dist/models/DescribeBaseSystemRulesResponseBody.d.ts +81 -0
- package/dist/models/DescribeBaseSystemRulesResponseBody.js +100 -0
- package/dist/models/DescribeBaseSystemRulesResponseBody.js.map +1 -0
- package/dist/models/DescribeCommonLogFieldsRequest.d.ts +42 -0
- package/dist/models/DescribeCommonLogFieldsRequest.js +71 -0
- package/dist/models/DescribeCommonLogFieldsRequest.js.map +1 -0
- package/dist/models/DescribeCommonLogFieldsResponse.d.ts +19 -0
- package/dist/models/DescribeCommonLogFieldsResponse.js +69 -0
- package/dist/models/DescribeCommonLogFieldsResponse.js.map +1 -0
- package/dist/models/DescribeCommonLogFieldsResponseBody.d.ts +56 -0
- package/dist/models/DescribeCommonLogFieldsResponseBody.js +90 -0
- package/dist/models/DescribeCommonLogFieldsResponseBody.js.map +1 -0
- package/dist/models/DescribeCommonLogFieldsShrinkRequest.d.ts +42 -0
- package/dist/models/DescribeCommonLogFieldsShrinkRequest.js +68 -0
- package/dist/models/DescribeCommonLogFieldsShrinkRequest.js.map +1 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultRequest.d.ts +31 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultRequest.js +62 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultRequest.js.map +1 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultResponse.d.ts +19 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultResponse.js +69 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultResponse.js.map +1 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultResponseBody.d.ts +23 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultResponseBody.js +60 -0
- package/dist/models/DescribeCustomBaseRuleCompileResultResponseBody.js.map +1 -0
- package/dist/models/DescribeDefenseGroupValidResourcesRequest.d.ts +51 -0
- package/dist/models/DescribeDefenseGroupValidResourcesRequest.js +70 -0
- package/dist/models/DescribeDefenseGroupValidResourcesRequest.js.map +1 -0
- package/dist/models/DescribeDefenseGroupValidResourcesResponse.d.ts +19 -0
- package/dist/models/DescribeDefenseGroupValidResourcesResponse.js +69 -0
- package/dist/models/DescribeDefenseGroupValidResourcesResponse.js.map +1 -0
- package/dist/models/DescribeDefenseGroupValidResourcesResponseBody.d.ts +24 -0
- package/dist/models/DescribeDefenseGroupValidResourcesResponseBody.js +65 -0
- package/dist/models/DescribeDefenseGroupValidResourcesResponseBody.js.map +1 -0
- package/dist/models/DescribeDefenseRuleStatisticsRequest.d.ts +62 -0
- package/dist/models/DescribeDefenseRuleStatisticsRequest.js +72 -0
- package/dist/models/DescribeDefenseRuleStatisticsRequest.js.map +1 -0
- package/dist/models/DescribeDefenseRuleStatisticsResponse.d.ts +19 -0
- package/dist/models/DescribeDefenseRuleStatisticsResponse.js +69 -0
- package/dist/models/DescribeDefenseRuleStatisticsResponse.js.map +1 -0
- package/dist/models/DescribeDefenseRuleStatisticsResponseBody.d.ts +56 -0
- package/dist/models/DescribeDefenseRuleStatisticsResponseBody.js +90 -0
- package/dist/models/DescribeDefenseRuleStatisticsResponseBody.js.map +1 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesRequest.d.ts +59 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesRequest.js +72 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesRequest.js.map +1 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesResponse.d.ts +19 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesResponse.js +69 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesResponse.js.map +1 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesResponseBody.d.ts +24 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesResponseBody.js +65 -0
- package/dist/models/DescribeDefenseTemplateValidResourcesResponseBody.js.map +1 -0
- package/dist/models/DescribeUserLogFieldConfigRequest.d.ts +36 -0
- package/dist/models/DescribeUserLogFieldConfigRequest.js +64 -0
- package/dist/models/DescribeUserLogFieldConfigRequest.js.map +1 -0
- package/dist/models/DescribeUserLogFieldConfigResponse.d.ts +19 -0
- package/dist/models/DescribeUserLogFieldConfigResponse.js +69 -0
- package/dist/models/DescribeUserLogFieldConfigResponse.js.map +1 -0
- package/dist/models/DescribeUserLogFieldConfigResponseBody.d.ts +53 -0
- package/dist/models/DescribeUserLogFieldConfigResponseBody.js +72 -0
- package/dist/models/DescribeUserLogFieldConfigResponseBody.js.map +1 -0
- package/dist/models/ModifyUserLogFieldConfigRequest.d.ts +54 -0
- package/dist/models/ModifyUserLogFieldConfigRequest.js +70 -0
- package/dist/models/ModifyUserLogFieldConfigRequest.js.map +1 -0
- package/dist/models/ModifyUserLogFieldConfigResponse.d.ts +19 -0
- package/dist/models/ModifyUserLogFieldConfigResponse.js +69 -0
- package/dist/models/ModifyUserLogFieldConfigResponse.js.map +1 -0
- package/dist/models/ModifyUserLogFieldConfigResponseBody.d.ts +18 -0
- package/dist/models/ModifyUserLogFieldConfigResponseBody.js +58 -0
- package/dist/models/ModifyUserLogFieldConfigResponseBody.js.map +1 -0
- package/dist/models/ModifyUserWafLogStatusRequest.d.ts +44 -0
- package/dist/models/ModifyUserWafLogStatusRequest.js +66 -0
- package/dist/models/ModifyUserWafLogStatusRequest.js.map +1 -0
- package/dist/models/ModifyUserWafLogStatusResponse.d.ts +19 -0
- package/dist/models/ModifyUserWafLogStatusResponse.js +69 -0
- package/dist/models/ModifyUserWafLogStatusResponse.js.map +1 -0
- package/dist/models/ModifyUserWafLogStatusResponseBody.d.ts +28 -0
- package/dist/models/ModifyUserWafLogStatusResponseBody.js +62 -0
- package/dist/models/ModifyUserWafLogStatusResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +34 -0
- package/dist/models/model.js +84 -15
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +701 -7
- package/src/models/CreateHybridCloudClusterRequest.ts +218 -0
- package/src/models/CreateHybridCloudClusterResponse.ts +40 -0
- package/src/models/CreateHybridCloudClusterResponseBody.ts +44 -0
- package/src/models/DescribeBaseSystemRulesRequest.ts +118 -0
- package/src/models/DescribeBaseSystemRulesResponse.ts +40 -0
- package/src/models/DescribeBaseSystemRulesResponseBody.ts +127 -0
- package/src/models/DescribeCommonLogFieldsRequest.ts +68 -0
- package/src/models/DescribeCommonLogFieldsResponse.ts +40 -0
- package/src/models/DescribeCommonLogFieldsResponseBody.ts +92 -0
- package/src/models/DescribeCommonLogFieldsShrinkRequest.ts +65 -0
- package/src/models/DescribeCustomBaseRuleCompileResultRequest.ts +48 -0
- package/src/models/DescribeCustomBaseRuleCompileResultResponse.ts +40 -0
- package/src/models/DescribeCustomBaseRuleCompileResultResponseBody.ts +38 -0
- package/src/models/DescribeDefenseGroupValidResourcesRequest.ts +76 -0
- package/src/models/DescribeDefenseGroupValidResourcesResponse.ts +40 -0
- package/src/models/DescribeDefenseGroupValidResourcesResponseBody.ts +44 -0
- package/src/models/DescribeDefenseRuleStatisticsRequest.ts +89 -0
- package/src/models/DescribeDefenseRuleStatisticsResponse.ts +40 -0
- package/src/models/DescribeDefenseRuleStatisticsResponseBody.ts +92 -0
- package/src/models/DescribeDefenseTemplateValidResourcesRequest.ts +86 -0
- package/src/models/DescribeDefenseTemplateValidResourcesResponse.ts +40 -0
- package/src/models/DescribeDefenseTemplateValidResourcesResponseBody.ts +44 -0
- package/src/models/DescribeUserLogFieldConfigRequest.ts +55 -0
- package/src/models/DescribeUserLogFieldConfigResponse.ts +40 -0
- package/src/models/DescribeUserLogFieldConfigResponseBody.ts +80 -0
- package/src/models/ModifyUserLogFieldConfigRequest.ts +79 -0
- package/src/models/ModifyUserLogFieldConfigResponse.ts +40 -0
- package/src/models/ModifyUserLogFieldConfigResponseBody.ts +31 -0
- package/src/models/ModifyUserWafLogStatusRequest.ts +65 -0
- package/src/models/ModifyUserWafLogStatusResponse.ts +40 -0
- package/src/models/ModifyUserWafLogStatusResponseBody.ts +45 -0
- package/src/models/model.ts +34 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateHybridCloudClusterRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The network access mode. Valid values:
|
|
9
|
+
*
|
|
10
|
+
* * **internet**: Internet access.
|
|
11
|
+
* * **vpc**: internal network access by using Express Connect circuits.
|
|
12
|
+
*
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* internet
|
|
17
|
+
*/
|
|
18
|
+
accessMode?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* The region where the virtual private cloud (VPC) resides. Valid values:
|
|
22
|
+
*
|
|
23
|
+
* * **cn-hangzhou**: China (Hangzhou).
|
|
24
|
+
* * **cn-beiijng**: China (Beijing).
|
|
25
|
+
* * **cn-shanghai**: China (Shanghai).
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* cn-hangzhou
|
|
29
|
+
*/
|
|
30
|
+
accessRegion?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The name of the cluster.
|
|
34
|
+
*
|
|
35
|
+
* This parameter is required.
|
|
36
|
+
*/
|
|
37
|
+
clusterName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The HTTP ports that are supported. Set this parameter to a string. Specify multiple ports in the **port1,port2,port3** format.
|
|
41
|
+
*
|
|
42
|
+
* This parameter is required.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* 80,8080
|
|
46
|
+
*/
|
|
47
|
+
httpPorts?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The HTTPS ports that are supported. Set this parameter to a string. Specify multiple ports in the **port1,port2,port3** format.
|
|
51
|
+
*
|
|
52
|
+
* This parameter is required.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* 443,8443
|
|
56
|
+
*/
|
|
57
|
+
httpsPorts?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* The ID of the Web Application Firewall (WAF) instance.
|
|
61
|
+
*
|
|
62
|
+
* > You can call the [DescribeInstance](https://help.aliyun.com/document_detail/433756.html) operation to query the ID of the WAF instance.
|
|
63
|
+
*
|
|
64
|
+
* This parameter is required.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* waf_cdnsdf3****
|
|
68
|
+
*/
|
|
69
|
+
instanceId?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated
|
|
72
|
+
*/
|
|
73
|
+
logFieldsNotReturned?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* The number of protection nodes that can be added to the cluster.
|
|
77
|
+
*
|
|
78
|
+
* This parameter is required.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* 1
|
|
82
|
+
*/
|
|
83
|
+
protectionServerCount?: number;
|
|
84
|
+
/**
|
|
85
|
+
* @remarks
|
|
86
|
+
* The status of the proxy gateway. Valid value:
|
|
87
|
+
*
|
|
88
|
+
* * **on**: enabled.
|
|
89
|
+
* * **off**: disabled.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* off
|
|
93
|
+
*/
|
|
94
|
+
proxyStatus?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @remarks
|
|
97
|
+
* The type of the cluster. Valid value:
|
|
98
|
+
*
|
|
99
|
+
* * **cname**: reverse proxy cluster.
|
|
100
|
+
* * **service**: SDK-based traffic mirroring cluster.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* cname
|
|
104
|
+
*/
|
|
105
|
+
proxyType?: string;
|
|
106
|
+
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* The region in which the WAF instance is deployed. Valid value:
|
|
109
|
+
*
|
|
110
|
+
* * **cn-hangzhou**: Chinese mainland.
|
|
111
|
+
* * **ap-southeast-1**: outside the Chinese mainland.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* cn-hangzhou
|
|
115
|
+
*/
|
|
116
|
+
regionId?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* The remarks about the cluster.
|
|
120
|
+
*/
|
|
121
|
+
remark?: string;
|
|
122
|
+
/**
|
|
123
|
+
* @example
|
|
124
|
+
* rg-acfm***q
|
|
125
|
+
*/
|
|
126
|
+
resourceManagerResourceGroupId?: string;
|
|
127
|
+
/**
|
|
128
|
+
* @remarks
|
|
129
|
+
* The configurations of the rule.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* {
|
|
133
|
+
* "enable": true,
|
|
134
|
+
* "param": {
|
|
135
|
+
* "breaker": {
|
|
136
|
+
* "duration": 1,
|
|
137
|
+
* "failed": 1,
|
|
138
|
+
* "recent_failed": 1
|
|
139
|
+
* },
|
|
140
|
+
* "disable_protect": false,
|
|
141
|
+
* "max_request_body_len": 1,
|
|
142
|
+
* "timeout": 1
|
|
143
|
+
* }
|
|
144
|
+
* }
|
|
145
|
+
*/
|
|
146
|
+
ruleConfig?: string;
|
|
147
|
+
/**
|
|
148
|
+
* @remarks
|
|
149
|
+
* The status of manual bypass. Valid values:
|
|
150
|
+
*
|
|
151
|
+
* * **on**: enabled.
|
|
152
|
+
* * **off**: disabled.
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* on
|
|
156
|
+
*/
|
|
157
|
+
ruleStatus?: string;
|
|
158
|
+
/**
|
|
159
|
+
* @remarks
|
|
160
|
+
* The type of the rule. Valid value:
|
|
161
|
+
*
|
|
162
|
+
* * **bypass**: allows requests without security checks.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* bypass
|
|
166
|
+
*/
|
|
167
|
+
ruleType?: string;
|
|
168
|
+
static names(): { [key: string]: string } {
|
|
169
|
+
return {
|
|
170
|
+
accessMode: 'AccessMode',
|
|
171
|
+
accessRegion: 'AccessRegion',
|
|
172
|
+
clusterName: 'ClusterName',
|
|
173
|
+
httpPorts: 'HttpPorts',
|
|
174
|
+
httpsPorts: 'HttpsPorts',
|
|
175
|
+
instanceId: 'InstanceId',
|
|
176
|
+
logFieldsNotReturned: 'LogFieldsNotReturned',
|
|
177
|
+
protectionServerCount: 'ProtectionServerCount',
|
|
178
|
+
proxyStatus: 'ProxyStatus',
|
|
179
|
+
proxyType: 'ProxyType',
|
|
180
|
+
regionId: 'RegionId',
|
|
181
|
+
remark: 'Remark',
|
|
182
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
183
|
+
ruleConfig: 'RuleConfig',
|
|
184
|
+
ruleStatus: 'RuleStatus',
|
|
185
|
+
ruleType: 'RuleType',
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
static types(): { [key: string]: any } {
|
|
190
|
+
return {
|
|
191
|
+
accessMode: 'string',
|
|
192
|
+
accessRegion: 'string',
|
|
193
|
+
clusterName: 'string',
|
|
194
|
+
httpPorts: 'string',
|
|
195
|
+
httpsPorts: 'string',
|
|
196
|
+
instanceId: 'string',
|
|
197
|
+
logFieldsNotReturned: 'string',
|
|
198
|
+
protectionServerCount: 'number',
|
|
199
|
+
proxyStatus: 'string',
|
|
200
|
+
proxyType: 'string',
|
|
201
|
+
regionId: 'string',
|
|
202
|
+
remark: 'string',
|
|
203
|
+
resourceManagerResourceGroupId: 'string',
|
|
204
|
+
ruleConfig: 'string',
|
|
205
|
+
ruleStatus: 'string',
|
|
206
|
+
ruleType: 'string',
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
validate() {
|
|
211
|
+
super.validate();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
constructor(map?: { [key: string]: any }) {
|
|
215
|
+
super(map);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateHybridCloudClusterResponseBody } from "./CreateHybridCloudClusterResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateHybridCloudClusterResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateHybridCloudClusterResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateHybridCloudClusterResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateHybridCloudClusterResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the cluster.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 1
|
|
12
|
+
*/
|
|
13
|
+
data?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The ID of the request.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 66A98669-ER12-WE34-23PO-301469*****E
|
|
20
|
+
*/
|
|
21
|
+
requestId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
data: 'Data',
|
|
25
|
+
requestId: 'RequestId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
data: 'number',
|
|
32
|
+
requestId: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeBaseSystemRulesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* sqli
|
|
9
|
+
*/
|
|
10
|
+
detectType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* waf_cdnsdf3****
|
|
17
|
+
*/
|
|
18
|
+
instanceId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* zh
|
|
22
|
+
*/
|
|
23
|
+
lang?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* 1
|
|
27
|
+
*/
|
|
28
|
+
pageNumber?: number;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* 100
|
|
32
|
+
*/
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* cn-hangzhou
|
|
37
|
+
*/
|
|
38
|
+
regionId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* rg-acfm***q
|
|
42
|
+
*/
|
|
43
|
+
resourceManagerResourceGroupId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* loose
|
|
47
|
+
*/
|
|
48
|
+
riskLevel?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @example
|
|
51
|
+
* block
|
|
52
|
+
*/
|
|
53
|
+
ruleAction?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @example
|
|
56
|
+
* 113089
|
|
57
|
+
*/
|
|
58
|
+
ruleId?: number;
|
|
59
|
+
/**
|
|
60
|
+
* @example
|
|
61
|
+
* systemRuleTest
|
|
62
|
+
*/
|
|
63
|
+
ruleName?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @example
|
|
66
|
+
* 1
|
|
67
|
+
*/
|
|
68
|
+
ruleStatus?: number;
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* 24354
|
|
72
|
+
*/
|
|
73
|
+
templateId?: number;
|
|
74
|
+
static names(): { [key: string]: string } {
|
|
75
|
+
return {
|
|
76
|
+
detectType: 'DetectType',
|
|
77
|
+
instanceId: 'InstanceId',
|
|
78
|
+
lang: 'Lang',
|
|
79
|
+
pageNumber: 'PageNumber',
|
|
80
|
+
pageSize: 'PageSize',
|
|
81
|
+
regionId: 'RegionId',
|
|
82
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
83
|
+
riskLevel: 'RiskLevel',
|
|
84
|
+
ruleAction: 'RuleAction',
|
|
85
|
+
ruleId: 'RuleId',
|
|
86
|
+
ruleName: 'RuleName',
|
|
87
|
+
ruleStatus: 'RuleStatus',
|
|
88
|
+
templateId: 'TemplateId',
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static types(): { [key: string]: any } {
|
|
93
|
+
return {
|
|
94
|
+
detectType: 'string',
|
|
95
|
+
instanceId: 'string',
|
|
96
|
+
lang: 'string',
|
|
97
|
+
pageNumber: 'number',
|
|
98
|
+
pageSize: 'number',
|
|
99
|
+
regionId: 'string',
|
|
100
|
+
resourceManagerResourceGroupId: 'string',
|
|
101
|
+
riskLevel: 'string',
|
|
102
|
+
ruleAction: 'string',
|
|
103
|
+
ruleId: 'number',
|
|
104
|
+
ruleName: 'string',
|
|
105
|
+
ruleStatus: 'number',
|
|
106
|
+
templateId: 'number',
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
validate() {
|
|
111
|
+
super.validate();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
constructor(map?: { [key: string]: any }) {
|
|
115
|
+
super(map);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeBaseSystemRulesResponseBody } from "./DescribeBaseSystemRulesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeBaseSystemRulesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeBaseSystemRulesResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeBaseSystemRulesResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeBaseSystemRulesResponseBodyRules extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* CVE-2021-34538
|
|
9
|
+
*/
|
|
10
|
+
cveId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* rule description
|
|
14
|
+
*/
|
|
15
|
+
description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* sqli
|
|
19
|
+
*/
|
|
20
|
+
detectType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* super_strict
|
|
24
|
+
*/
|
|
25
|
+
riskLevel?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* block
|
|
29
|
+
*/
|
|
30
|
+
ruleAction?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 113089
|
|
34
|
+
*/
|
|
35
|
+
ruleId?: number;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* systemRuleTest
|
|
39
|
+
*/
|
|
40
|
+
ruleName?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* 1
|
|
44
|
+
*/
|
|
45
|
+
ruleStatus?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @example
|
|
48
|
+
* 1665460629000
|
|
49
|
+
*/
|
|
50
|
+
updateTime?: number;
|
|
51
|
+
static names(): { [key: string]: string } {
|
|
52
|
+
return {
|
|
53
|
+
cveId: 'CveId',
|
|
54
|
+
description: 'Description',
|
|
55
|
+
detectType: 'DetectType',
|
|
56
|
+
riskLevel: 'RiskLevel',
|
|
57
|
+
ruleAction: 'RuleAction',
|
|
58
|
+
ruleId: 'RuleId',
|
|
59
|
+
ruleName: 'RuleName',
|
|
60
|
+
ruleStatus: 'RuleStatus',
|
|
61
|
+
updateTime: 'UpdateTime',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
cveId: 'string',
|
|
68
|
+
description: 'string',
|
|
69
|
+
detectType: 'string',
|
|
70
|
+
riskLevel: 'string',
|
|
71
|
+
ruleAction: 'string',
|
|
72
|
+
ruleId: 'number',
|
|
73
|
+
ruleName: 'string',
|
|
74
|
+
ruleStatus: 'number',
|
|
75
|
+
updateTime: 'number',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
validate() {
|
|
80
|
+
super.validate();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
constructor(map?: { [key: string]: any }) {
|
|
84
|
+
super(map);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class DescribeBaseSystemRulesResponseBody extends $dara.Model {
|
|
89
|
+
/**
|
|
90
|
+
* @example
|
|
91
|
+
* 80736FA5-FA87-55F6-AA69-C5477C6FE6D0
|
|
92
|
+
*/
|
|
93
|
+
requestId?: string;
|
|
94
|
+
rules?: DescribeBaseSystemRulesResponseBodyRules[];
|
|
95
|
+
/**
|
|
96
|
+
* @example
|
|
97
|
+
* 2
|
|
98
|
+
*/
|
|
99
|
+
totalCount?: number;
|
|
100
|
+
static names(): { [key: string]: string } {
|
|
101
|
+
return {
|
|
102
|
+
requestId: 'RequestId',
|
|
103
|
+
rules: 'Rules',
|
|
104
|
+
totalCount: 'TotalCount',
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static types(): { [key: string]: any } {
|
|
109
|
+
return {
|
|
110
|
+
requestId: 'string',
|
|
111
|
+
rules: { 'type': 'array', 'itemType': DescribeBaseSystemRulesResponseBodyRules },
|
|
112
|
+
totalCount: 'number',
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
validate() {
|
|
117
|
+
if(Array.isArray(this.rules)) {
|
|
118
|
+
$dara.Model.validateArray(this.rules);
|
|
119
|
+
}
|
|
120
|
+
super.validate();
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
constructor(map?: { [key: string]: any }) {
|
|
124
|
+
super(map);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeCommonLogFieldsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* waf_v3prepaid_public_cn-l*****
|
|
12
|
+
*/
|
|
13
|
+
instanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* true
|
|
17
|
+
*/
|
|
18
|
+
isDefault?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* false
|
|
22
|
+
*/
|
|
23
|
+
isRequired?: boolean;
|
|
24
|
+
logKeyList?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* @example
|
|
27
|
+
* cn-hangzhou
|
|
28
|
+
*/
|
|
29
|
+
regionId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @example
|
|
32
|
+
* rg-aek2sxgs*****
|
|
33
|
+
*/
|
|
34
|
+
resourceManagerResourceGroupId?: string;
|
|
35
|
+
static names(): { [key: string]: string } {
|
|
36
|
+
return {
|
|
37
|
+
instanceId: 'InstanceId',
|
|
38
|
+
isDefault: 'IsDefault',
|
|
39
|
+
isRequired: 'IsRequired',
|
|
40
|
+
logKeyList: 'LogKeyList',
|
|
41
|
+
regionId: 'RegionId',
|
|
42
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
static types(): { [key: string]: any } {
|
|
47
|
+
return {
|
|
48
|
+
instanceId: 'string',
|
|
49
|
+
isDefault: 'boolean',
|
|
50
|
+
isRequired: 'boolean',
|
|
51
|
+
logKeyList: { 'type': 'array', 'itemType': 'string' },
|
|
52
|
+
regionId: 'string',
|
|
53
|
+
resourceManagerResourceGroupId: 'string',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
validate() {
|
|
58
|
+
if(Array.isArray(this.logKeyList)) {
|
|
59
|
+
$dara.Model.validateArray(this.logKeyList);
|
|
60
|
+
}
|
|
61
|
+
super.validate();
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
constructor(map?: { [key: string]: any }) {
|
|
65
|
+
super(map);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeCommonLogFieldsResponseBody } from "./DescribeCommonLogFieldsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeCommonLogFieldsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeCommonLogFieldsResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeCommonLogFieldsResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|