@alicloud/waf-openapi20211001 5.3.0 → 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 +105 -0
- package/dist/client.js +416 -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/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/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/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 +23 -0
- package/dist/models/model.js +62 -15
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +484 -0
- package/src/models/CreateHybridCloudClusterRequest.ts +218 -0
- package/src/models/CreateHybridCloudClusterResponse.ts +40 -0
- package/src/models/CreateHybridCloudClusterResponseBody.ts +44 -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/DescribeDefenseGroupValidResourcesRequest.ts +76 -0
- package/src/models/DescribeDefenseGroupValidResourcesResponse.ts +40 -0
- package/src/models/DescribeDefenseGroupValidResourcesResponseBody.ts +44 -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 +23 -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,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
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeCommonLogFieldsResponseBodyLogFieldList extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* true
|
|
9
|
+
*/
|
|
10
|
+
isDefault?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* true
|
|
14
|
+
*/
|
|
15
|
+
isRequired?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* final_action
|
|
19
|
+
*/
|
|
20
|
+
logKey?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* 1
|
|
24
|
+
*/
|
|
25
|
+
status?: boolean;
|
|
26
|
+
static names(): { [key: string]: string } {
|
|
27
|
+
return {
|
|
28
|
+
isDefault: 'IsDefault',
|
|
29
|
+
isRequired: 'IsRequired',
|
|
30
|
+
logKey: 'LogKey',
|
|
31
|
+
status: 'Status',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
static types(): { [key: string]: any } {
|
|
36
|
+
return {
|
|
37
|
+
isDefault: 'boolean',
|
|
38
|
+
isRequired: 'boolean',
|
|
39
|
+
logKey: 'string',
|
|
40
|
+
status: 'boolean',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
validate() {
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class DescribeCommonLogFieldsResponseBody extends $dara.Model {
|
|
54
|
+
logFieldList?: DescribeCommonLogFieldsResponseBodyLogFieldList[];
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* AB0775EB-2594-598A-97E1-51B1*******
|
|
58
|
+
*/
|
|
59
|
+
requestId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @example
|
|
62
|
+
* 6
|
|
63
|
+
*/
|
|
64
|
+
totalCount?: number;
|
|
65
|
+
static names(): { [key: string]: string } {
|
|
66
|
+
return {
|
|
67
|
+
logFieldList: 'LogFieldList',
|
|
68
|
+
requestId: 'RequestId',
|
|
69
|
+
totalCount: 'TotalCount',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static types(): { [key: string]: any } {
|
|
74
|
+
return {
|
|
75
|
+
logFieldList: { 'type': 'array', 'itemType': DescribeCommonLogFieldsResponseBodyLogFieldList },
|
|
76
|
+
requestId: 'string',
|
|
77
|
+
totalCount: 'number',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
validate() {
|
|
82
|
+
if(Array.isArray(this.logFieldList)) {
|
|
83
|
+
$dara.Model.validateArray(this.logFieldList);
|
|
84
|
+
}
|
|
85
|
+
super.validate();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
constructor(map?: { [key: string]: any }) {
|
|
89
|
+
super(map);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeCommonLogFieldsShrinkRequest 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
|
+
logKeyListShrink?: 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
|
+
logKeyListShrink: '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
|
+
logKeyListShrink: 'string',
|
|
52
|
+
regionId: 'string',
|
|
53
|
+
resourceManagerResourceGroupId: 'string',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
validate() {
|
|
58
|
+
super.validate();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
constructor(map?: { [key: string]: any }) {
|
|
62
|
+
super(map);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeDefenseGroupValidResourcesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* group221
|
|
9
|
+
*/
|
|
10
|
+
groupName?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* waf_v3prepaid_public_cn-zxu****jc01
|
|
17
|
+
*/
|
|
18
|
+
instanceId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* 1
|
|
22
|
+
*/
|
|
23
|
+
pageNumber?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @example
|
|
26
|
+
* 10
|
|
27
|
+
*/
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* cn-hangzhou
|
|
32
|
+
*/
|
|
33
|
+
regionId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* example.aliyun-waf
|
|
37
|
+
*/
|
|
38
|
+
resource?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* rg-aek2lrm****6pnq
|
|
42
|
+
*/
|
|
43
|
+
resourceManagerResourceGroupId?: string;
|
|
44
|
+
static names(): { [key: string]: string } {
|
|
45
|
+
return {
|
|
46
|
+
groupName: 'GroupName',
|
|
47
|
+
instanceId: 'InstanceId',
|
|
48
|
+
pageNumber: 'PageNumber',
|
|
49
|
+
pageSize: 'PageSize',
|
|
50
|
+
regionId: 'RegionId',
|
|
51
|
+
resource: 'Resource',
|
|
52
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
static types(): { [key: string]: any } {
|
|
57
|
+
return {
|
|
58
|
+
groupName: 'string',
|
|
59
|
+
instanceId: 'string',
|
|
60
|
+
pageNumber: 'number',
|
|
61
|
+
pageSize: 'number',
|
|
62
|
+
regionId: 'string',
|
|
63
|
+
resource: 'string',
|
|
64
|
+
resourceManagerResourceGroupId: 'string',
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
validate() {
|
|
69
|
+
super.validate();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
constructor(map?: { [key: string]: any }) {
|
|
73
|
+
super(map);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeDefenseGroupValidResourcesResponseBody } from "./DescribeDefenseGroupValidResourcesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeDefenseGroupValidResourcesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeDefenseGroupValidResourcesResponseBody;
|
|
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: DescribeDefenseGroupValidResourcesResponseBody,
|
|
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
|
+
|