@alicloud/esa20240910 2.37.0 → 2.38.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 +156 -0
- package/dist/client.js +390 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateUserWafRulesetRequest.d.ts +62 -0
- package/dist/models/CreateUserWafRulesetRequest.js +80 -0
- package/dist/models/CreateUserWafRulesetRequest.js.map +1 -0
- package/dist/models/CreateUserWafRulesetResponse.d.ts +19 -0
- package/dist/models/CreateUserWafRulesetResponse.js +69 -0
- package/dist/models/CreateUserWafRulesetResponse.js.map +1 -0
- package/dist/models/CreateUserWafRulesetResponseBody.d.ts +24 -0
- package/dist/models/CreateUserWafRulesetResponseBody.js +65 -0
- package/dist/models/CreateUserWafRulesetResponseBody.js.map +1 -0
- package/dist/models/CreateUserWafRulesetShrinkRequest.d.ts +60 -0
- package/dist/models/CreateUserWafRulesetShrinkRequest.js +72 -0
- package/dist/models/CreateUserWafRulesetShrinkRequest.js.map +1 -0
- package/dist/models/DeleteUserWafRulesetRequest.d.ts +29 -0
- package/dist/models/DeleteUserWafRulesetRequest.js +60 -0
- package/dist/models/DeleteUserWafRulesetRequest.js.map +1 -0
- package/dist/models/DeleteUserWafRulesetResponse.d.ts +19 -0
- package/dist/models/DeleteUserWafRulesetResponse.js +69 -0
- package/dist/models/DeleteUserWafRulesetResponse.js.map +1 -0
- package/dist/models/DeleteUserWafRulesetResponseBody.d.ts +18 -0
- package/dist/models/DeleteUserWafRulesetResponseBody.js +58 -0
- package/dist/models/DeleteUserWafRulesetResponseBody.js.map +1 -0
- package/dist/models/GetRoutineAccessTokenRequest.d.ts +21 -0
- package/dist/models/GetRoutineAccessTokenRequest.js +58 -0
- package/dist/models/GetRoutineAccessTokenRequest.js.map +1 -0
- package/dist/models/GetRoutineAccessTokenResponse.d.ts +19 -0
- package/dist/models/GetRoutineAccessTokenResponse.js +69 -0
- package/dist/models/GetRoutineAccessTokenResponse.js.map +1 -0
- package/dist/models/GetRoutineAccessTokenResponseBody.d.ts +23 -0
- package/dist/models/GetRoutineAccessTokenResponseBody.js +60 -0
- package/dist/models/GetRoutineAccessTokenResponseBody.js.map +1 -0
- package/dist/models/GetUserWafRulesetRequest.d.ts +29 -0
- package/dist/models/GetUserWafRulesetRequest.js +60 -0
- package/dist/models/GetUserWafRulesetRequest.js.map +1 -0
- package/dist/models/GetUserWafRulesetResponse.d.ts +19 -0
- package/dist/models/GetUserWafRulesetResponse.js +69 -0
- package/dist/models/GetUserWafRulesetResponse.js.map +1 -0
- package/dist/models/GetUserWafRulesetResponseBody.d.ts +165 -0
- package/dist/models/GetUserWafRulesetResponseBody.js +163 -0
- package/dist/models/GetUserWafRulesetResponseBody.js.map +1 -0
- package/dist/models/ListUserWafRulesetsRequest.d.ts +64 -0
- package/dist/models/ListUserWafRulesetsRequest.js +92 -0
- package/dist/models/ListUserWafRulesetsRequest.js.map +1 -0
- package/dist/models/ListUserWafRulesetsResponse.d.ts +19 -0
- package/dist/models/ListUserWafRulesetsResponse.js +69 -0
- package/dist/models/ListUserWafRulesetsResponse.js.map +1 -0
- package/dist/models/ListUserWafRulesetsResponseBody.d.ts +84 -0
- package/dist/models/ListUserWafRulesetsResponseBody.js +100 -0
- package/dist/models/ListUserWafRulesetsResponseBody.js.map +1 -0
- package/dist/models/ListUserWafRulesetsShrinkRequest.d.ts +41 -0
- package/dist/models/ListUserWafRulesetsShrinkRequest.js +66 -0
- package/dist/models/ListUserWafRulesetsShrinkRequest.js.map +1 -0
- package/dist/models/UpdateUserWafRulesetRequest.d.ts +68 -0
- package/dist/models/UpdateUserWafRulesetRequest.js +82 -0
- package/dist/models/UpdateUserWafRulesetRequest.js.map +1 -0
- package/dist/models/UpdateUserWafRulesetResponse.d.ts +19 -0
- package/dist/models/UpdateUserWafRulesetResponse.js +69 -0
- package/dist/models/UpdateUserWafRulesetResponse.js.map +1 -0
- package/dist/models/UpdateUserWafRulesetResponseBody.d.ts +18 -0
- package/dist/models/UpdateUserWafRulesetResponseBody.js +58 -0
- package/dist/models/UpdateUserWafRulesetResponseBody.js.map +1 -0
- package/dist/models/UpdateUserWafRulesetShrinkRequest.d.ts +66 -0
- package/dist/models/UpdateUserWafRulesetShrinkRequest.js +74 -0
- package/dist/models/UpdateUserWafRulesetShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +25 -0
- package/dist/models/model.js +77 -27
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +434 -0
- package/src/models/CreateUserWafRulesetRequest.ts +95 -0
- package/src/models/CreateUserWafRulesetResponse.ts +40 -0
- package/src/models/CreateUserWafRulesetResponseBody.ts +44 -0
- package/src/models/CreateUserWafRulesetShrinkRequest.ts +87 -0
- package/src/models/DeleteUserWafRulesetRequest.ts +44 -0
- package/src/models/DeleteUserWafRulesetResponse.ts +40 -0
- package/src/models/DeleteUserWafRulesetResponseBody.ts +31 -0
- package/src/models/GetRoutineAccessTokenRequest.ts +34 -0
- package/src/models/GetRoutineAccessTokenResponse.ts +40 -0
- package/src/models/GetRoutineAccessTokenResponseBody.ts +38 -0
- package/src/models/GetUserWafRulesetRequest.ts +44 -0
- package/src/models/GetUserWafRulesetResponse.ts +40 -0
- package/src/models/GetUserWafRulesetResponseBody.ts +263 -0
- package/src/models/ListUserWafRulesetsRequest.ts +102 -0
- package/src/models/ListUserWafRulesetsResponse.ts +40 -0
- package/src/models/ListUserWafRulesetsResponseBody.ts +130 -0
- package/src/models/ListUserWafRulesetsShrinkRequest.ts +62 -0
- package/src/models/UpdateUserWafRulesetRequest.ts +103 -0
- package/src/models/UpdateUserWafRulesetResponse.ts +40 -0
- package/src/models/UpdateUserWafRulesetResponseBody.ts +31 -0
- package/src/models/UpdateUserWafRulesetShrinkRequest.ts +95 -0
- package/src/models/model.ts +25 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateUserWafRulesetShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* this is a test ruleset.
|
|
9
|
+
*/
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* This parameter is required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ip.src == 1.1.1.1
|
|
17
|
+
*/
|
|
18
|
+
expression?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @remarks
|
|
21
|
+
* This parameter is required.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* esa-site-ads11w
|
|
25
|
+
*/
|
|
26
|
+
instanceId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* This parameter is required.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* example
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* This parameter is required.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* http_custom
|
|
41
|
+
*/
|
|
42
|
+
phase?: string;
|
|
43
|
+
rulesShrink?: string;
|
|
44
|
+
sharedShrink?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* This parameter is required.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* on
|
|
51
|
+
*/
|
|
52
|
+
status?: string;
|
|
53
|
+
static names(): { [key: string]: string } {
|
|
54
|
+
return {
|
|
55
|
+
description: 'Description',
|
|
56
|
+
expression: 'Expression',
|
|
57
|
+
instanceId: 'InstanceId',
|
|
58
|
+
name: 'Name',
|
|
59
|
+
phase: 'Phase',
|
|
60
|
+
rulesShrink: 'Rules',
|
|
61
|
+
sharedShrink: 'Shared',
|
|
62
|
+
status: 'Status',
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static types(): { [key: string]: any } {
|
|
67
|
+
return {
|
|
68
|
+
description: 'string',
|
|
69
|
+
expression: 'string',
|
|
70
|
+
instanceId: 'string',
|
|
71
|
+
name: 'string',
|
|
72
|
+
phase: 'string',
|
|
73
|
+
rulesShrink: 'string',
|
|
74
|
+
sharedShrink: 'string',
|
|
75
|
+
status: 'string',
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
validate() {
|
|
80
|
+
super.validate();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
constructor(map?: { [key: string]: any }) {
|
|
84
|
+
super(map);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -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 DeleteUserWafRulesetRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 10000001
|
|
12
|
+
*/
|
|
13
|
+
id?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* esa-xxxxxxx
|
|
20
|
+
*/
|
|
21
|
+
instanceId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
id: 'Id',
|
|
25
|
+
instanceId: 'InstanceId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
id: 'number',
|
|
32
|
+
instanceId: '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,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteUserWafRulesetResponseBody } from "./DeleteUserWafRulesetResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteUserWafRulesetResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteUserWafRulesetResponseBody;
|
|
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: DeleteUserWafRulesetResponseBody,
|
|
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,31 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteUserWafRulesetResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* xxxx-xxxx-xxxx-xxxx
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
requestId: 'RequestId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
requestId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetRoutineAccessTokenRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* test-routine1
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
name: 'Name',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
name: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetRoutineAccessTokenResponseBody } from "./GetRoutineAccessTokenResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetRoutineAccessTokenResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetRoutineAccessTokenResponseBody;
|
|
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: GetRoutineAccessTokenResponseBody,
|
|
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,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetRoutineAccessTokenResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* EB775B32-1148-1963-9ADD-74CC90C16459
|
|
9
|
+
*/
|
|
10
|
+
requestId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb3V0aW5lX2lkIjoidHktbWV0YXEtdGVzdC4xNzEzMTU1ODk3ODg1Njg2IiwiZXhwIjoxNzY0OTQ0NTU3fQ.g3gFr-6GQR8vcg6b_vy1qBZ1LDYOiDP-Sih0wtu3d64
|
|
14
|
+
*/
|
|
15
|
+
token?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
requestId: 'RequestId',
|
|
19
|
+
token: 'Token',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
requestId: 'string',
|
|
26
|
+
token: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -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 GetUserWafRulesetRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 10000001
|
|
12
|
+
*/
|
|
13
|
+
id?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* esa-xxxxxxx
|
|
20
|
+
*/
|
|
21
|
+
instanceId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
id: 'Id',
|
|
25
|
+
instanceId: 'InstanceId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
id: 'number',
|
|
32
|
+
instanceId: '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,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetUserWafRulesetResponseBody } from "./GetUserWafRulesetResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetUserWafRulesetResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetUserWafRulesetResponseBody;
|
|
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: GetUserWafRulesetResponseBody,
|
|
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,263 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { WafBatchRuleShared } from "./WafBatchRuleShared";
|
|
4
|
+
import { WafRuleConfig } from "./WafRuleConfig";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class GetUserWafRulesetResponseBodyRulesetRules extends $dara.Model {
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* deny
|
|
11
|
+
*/
|
|
12
|
+
action?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* ["http.host"]
|
|
16
|
+
*/
|
|
17
|
+
characteristicsFields?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* {
|
|
21
|
+
* "Id": 20000001,
|
|
22
|
+
* "Name": "rule1",
|
|
23
|
+
* "Expression": "ip.src eq 1.1.1.1",
|
|
24
|
+
* "Action": "deny"
|
|
25
|
+
* }
|
|
26
|
+
*/
|
|
27
|
+
config?: WafRuleConfig;
|
|
28
|
+
/**
|
|
29
|
+
* @example
|
|
30
|
+
* ["ip.src"]
|
|
31
|
+
*/
|
|
32
|
+
fields?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* 20000001
|
|
36
|
+
*/
|
|
37
|
+
id?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @example
|
|
40
|
+
* example
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* http_custom
|
|
46
|
+
*/
|
|
47
|
+
phase?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @example
|
|
50
|
+
* 1
|
|
51
|
+
*/
|
|
52
|
+
position?: number;
|
|
53
|
+
/**
|
|
54
|
+
* @example
|
|
55
|
+
* 10000001
|
|
56
|
+
*/
|
|
57
|
+
rulesetId?: number;
|
|
58
|
+
/**
|
|
59
|
+
* @example
|
|
60
|
+
* all
|
|
61
|
+
*/
|
|
62
|
+
skip?: string;
|
|
63
|
+
/**
|
|
64
|
+
* @example
|
|
65
|
+
* on
|
|
66
|
+
*/
|
|
67
|
+
status?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @example
|
|
70
|
+
* ["http_custom"]
|
|
71
|
+
*/
|
|
72
|
+
tags?: string[];
|
|
73
|
+
type?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* 2025-07-07T15:00:00Z
|
|
77
|
+
*/
|
|
78
|
+
updateTime?: string;
|
|
79
|
+
static names(): { [key: string]: string } {
|
|
80
|
+
return {
|
|
81
|
+
action: 'Action',
|
|
82
|
+
characteristicsFields: 'CharacteristicsFields',
|
|
83
|
+
config: 'Config',
|
|
84
|
+
fields: 'Fields',
|
|
85
|
+
id: 'Id',
|
|
86
|
+
name: 'Name',
|
|
87
|
+
phase: 'Phase',
|
|
88
|
+
position: 'Position',
|
|
89
|
+
rulesetId: 'RulesetId',
|
|
90
|
+
skip: 'Skip',
|
|
91
|
+
status: 'Status',
|
|
92
|
+
tags: 'Tags',
|
|
93
|
+
type: 'Type',
|
|
94
|
+
updateTime: 'UpdateTime',
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static types(): { [key: string]: any } {
|
|
99
|
+
return {
|
|
100
|
+
action: 'string',
|
|
101
|
+
characteristicsFields: { 'type': 'array', 'itemType': 'string' },
|
|
102
|
+
config: WafRuleConfig,
|
|
103
|
+
fields: { 'type': 'array', 'itemType': 'string' },
|
|
104
|
+
id: 'number',
|
|
105
|
+
name: 'string',
|
|
106
|
+
phase: 'string',
|
|
107
|
+
position: 'number',
|
|
108
|
+
rulesetId: 'number',
|
|
109
|
+
skip: 'string',
|
|
110
|
+
status: 'string',
|
|
111
|
+
tags: { 'type': 'array', 'itemType': 'string' },
|
|
112
|
+
type: 'string',
|
|
113
|
+
updateTime: 'string',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
validate() {
|
|
118
|
+
if(Array.isArray(this.characteristicsFields)) {
|
|
119
|
+
$dara.Model.validateArray(this.characteristicsFields);
|
|
120
|
+
}
|
|
121
|
+
if(this.config && typeof (this.config as any).validate === 'function') {
|
|
122
|
+
(this.config as any).validate();
|
|
123
|
+
}
|
|
124
|
+
if(Array.isArray(this.fields)) {
|
|
125
|
+
$dara.Model.validateArray(this.fields);
|
|
126
|
+
}
|
|
127
|
+
if(Array.isArray(this.tags)) {
|
|
128
|
+
$dara.Model.validateArray(this.tags);
|
|
129
|
+
}
|
|
130
|
+
super.validate();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
constructor(map?: { [key: string]: any }) {
|
|
134
|
+
super(map);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export class GetUserWafRulesetResponseBodyRuleset extends $dara.Model {
|
|
139
|
+
/**
|
|
140
|
+
* @example
|
|
141
|
+
* example
|
|
142
|
+
*/
|
|
143
|
+
description?: string;
|
|
144
|
+
/**
|
|
145
|
+
* @example
|
|
146
|
+
* ip.src == 1.1.1.1
|
|
147
|
+
*/
|
|
148
|
+
expression?: string;
|
|
149
|
+
/**
|
|
150
|
+
* @example
|
|
151
|
+
* 10000001
|
|
152
|
+
*/
|
|
153
|
+
id?: number;
|
|
154
|
+
/**
|
|
155
|
+
* @example
|
|
156
|
+
* example
|
|
157
|
+
*/
|
|
158
|
+
name?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @example
|
|
161
|
+
* http_custom
|
|
162
|
+
*/
|
|
163
|
+
phase?: string;
|
|
164
|
+
/**
|
|
165
|
+
* @example
|
|
166
|
+
* 1
|
|
167
|
+
*/
|
|
168
|
+
position?: number;
|
|
169
|
+
/**
|
|
170
|
+
* @example
|
|
171
|
+
* [{}]
|
|
172
|
+
*/
|
|
173
|
+
rules?: GetUserWafRulesetResponseBodyRulesetRules[];
|
|
174
|
+
/**
|
|
175
|
+
* @example
|
|
176
|
+
* {}
|
|
177
|
+
*/
|
|
178
|
+
shared?: WafBatchRuleShared;
|
|
179
|
+
/**
|
|
180
|
+
* @example
|
|
181
|
+
* on
|
|
182
|
+
*/
|
|
183
|
+
status?: string;
|
|
184
|
+
static names(): { [key: string]: string } {
|
|
185
|
+
return {
|
|
186
|
+
description: 'Description',
|
|
187
|
+
expression: 'Expression',
|
|
188
|
+
id: 'Id',
|
|
189
|
+
name: 'Name',
|
|
190
|
+
phase: 'Phase',
|
|
191
|
+
position: 'Position',
|
|
192
|
+
rules: 'Rules',
|
|
193
|
+
shared: 'Shared',
|
|
194
|
+
status: 'Status',
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
static types(): { [key: string]: any } {
|
|
199
|
+
return {
|
|
200
|
+
description: 'string',
|
|
201
|
+
expression: 'string',
|
|
202
|
+
id: 'number',
|
|
203
|
+
name: 'string',
|
|
204
|
+
phase: 'string',
|
|
205
|
+
position: 'number',
|
|
206
|
+
rules: { 'type': 'array', 'itemType': GetUserWafRulesetResponseBodyRulesetRules },
|
|
207
|
+
shared: WafBatchRuleShared,
|
|
208
|
+
status: 'string',
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
validate() {
|
|
213
|
+
if(Array.isArray(this.rules)) {
|
|
214
|
+
$dara.Model.validateArray(this.rules);
|
|
215
|
+
}
|
|
216
|
+
if(this.shared && typeof (this.shared as any).validate === 'function') {
|
|
217
|
+
(this.shared as any).validate();
|
|
218
|
+
}
|
|
219
|
+
super.validate();
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
constructor(map?: { [key: string]: any }) {
|
|
223
|
+
super(map);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export class GetUserWafRulesetResponseBody extends $dara.Model {
|
|
228
|
+
/**
|
|
229
|
+
* @example
|
|
230
|
+
* 36af3fcc-43d0-441c-86b1-428951dc8225
|
|
231
|
+
*/
|
|
232
|
+
requestId?: string;
|
|
233
|
+
/**
|
|
234
|
+
* @example
|
|
235
|
+
* {}
|
|
236
|
+
*/
|
|
237
|
+
ruleset?: GetUserWafRulesetResponseBodyRuleset;
|
|
238
|
+
static names(): { [key: string]: string } {
|
|
239
|
+
return {
|
|
240
|
+
requestId: 'RequestId',
|
|
241
|
+
ruleset: 'Ruleset',
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
static types(): { [key: string]: any } {
|
|
246
|
+
return {
|
|
247
|
+
requestId: 'string',
|
|
248
|
+
ruleset: GetUserWafRulesetResponseBodyRuleset,
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
validate() {
|
|
253
|
+
if(this.ruleset && typeof (this.ruleset as any).validate === 'function') {
|
|
254
|
+
(this.ruleset as any).validate();
|
|
255
|
+
}
|
|
256
|
+
super.validate();
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
constructor(map?: { [key: string]: any }) {
|
|
260
|
+
super(map);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|