@alicloud/waf-openapi20211001 5.0.1 → 5.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 +45 -0
- package/dist/client.js +171 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateHybridCloudClusterRuleRequest.d.ts +60 -0
- package/dist/models/CreateHybridCloudClusterRuleRequest.js +70 -0
- package/dist/models/CreateHybridCloudClusterRuleRequest.js.map +1 -0
- package/dist/models/CreateHybridCloudClusterRuleResponse.d.ts +19 -0
- package/dist/models/CreateHybridCloudClusterRuleResponse.js +69 -0
- package/dist/models/CreateHybridCloudClusterRuleResponse.js.map +1 -0
- package/dist/models/CreateHybridCloudClusterRuleResponseBody.d.ts +23 -0
- package/dist/models/CreateHybridCloudClusterRuleResponseBody.js +60 -0
- package/dist/models/CreateHybridCloudClusterRuleResponseBody.js.map +1 -0
- package/dist/models/DeleteHybridCloudClusterRuleRequest.d.ts +39 -0
- package/dist/models/DeleteHybridCloudClusterRuleRequest.js +64 -0
- package/dist/models/DeleteHybridCloudClusterRuleRequest.js.map +1 -0
- package/dist/models/DeleteHybridCloudClusterRuleResponse.d.ts +19 -0
- package/dist/models/DeleteHybridCloudClusterRuleResponse.js +69 -0
- package/dist/models/DeleteHybridCloudClusterRuleResponse.js.map +1 -0
- package/dist/models/DeleteHybridCloudClusterRuleResponseBody.d.ts +18 -0
- package/dist/models/DeleteHybridCloudClusterRuleResponseBody.js +58 -0
- package/dist/models/DeleteHybridCloudClusterRuleResponseBody.js.map +1 -0
- package/dist/models/DescribeDefenseRuleResponseBody.d.ts +1 -0
- package/dist/models/DescribeDefenseRuleResponseBody.js +2 -0
- package/dist/models/DescribeDefenseRuleResponseBody.js.map +1 -1
- package/dist/models/DescribeDefenseRulesResponseBody.d.ts +1 -0
- package/dist/models/DescribeDefenseRulesResponseBody.js +2 -0
- package/dist/models/DescribeDefenseRulesResponseBody.js.map +1 -1
- package/dist/models/DescribeHybridCloudClusterRulesRequest.d.ts +67 -0
- package/dist/models/DescribeHybridCloudClusterRulesRequest.js +74 -0
- package/dist/models/DescribeHybridCloudClusterRulesRequest.js.map +1 -0
- package/dist/models/DescribeHybridCloudClusterRulesResponse.d.ts +19 -0
- package/dist/models/DescribeHybridCloudClusterRulesResponse.js +69 -0
- package/dist/models/DescribeHybridCloudClusterRulesResponse.js.map +1 -0
- package/dist/models/DescribeHybridCloudClusterRulesResponseBody.d.ts +66 -0
- package/dist/models/DescribeHybridCloudClusterRulesResponseBody.js +94 -0
- package/dist/models/DescribeHybridCloudClusterRulesResponseBody.js.map +1 -0
- package/dist/models/DescribeTemplateResourcesResponseBody.d.ts +1 -0
- package/dist/models/DescribeTemplateResourcesResponseBody.js +2 -0
- package/dist/models/DescribeTemplateResourcesResponseBody.js.map +1 -1
- package/dist/models/ModifyDefenseRuleRequest.d.ts +0 -2
- package/dist/models/ModifyDefenseRuleRequest.js.map +1 -1
- package/dist/models/ModifyDefenseRuleStatusRequest.d.ts +1 -2
- package/dist/models/ModifyDefenseRuleStatusRequest.js +2 -0
- package/dist/models/ModifyDefenseRuleStatusRequest.js.map +1 -1
- package/dist/models/model.d.ts +10 -0
- package/dist/models/model.js +34 -14
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +198 -0
- package/src/models/CreateHybridCloudClusterRuleRequest.ts +85 -0
- package/src/models/CreateHybridCloudClusterRuleResponse.ts +40 -0
- package/src/models/CreateHybridCloudClusterRuleResponseBody.ts +38 -0
- package/src/models/DeleteHybridCloudClusterRuleRequest.ts +58 -0
- package/src/models/DeleteHybridCloudClusterRuleResponse.ts +40 -0
- package/src/models/DeleteHybridCloudClusterRuleResponseBody.ts +31 -0
- package/src/models/DescribeDefenseRuleResponseBody.ts +3 -0
- package/src/models/DescribeDefenseRulesResponseBody.ts +3 -0
- package/src/models/DescribeHybridCloudClusterRulesRequest.ts +96 -0
- package/src/models/DescribeHybridCloudClusterRulesResponse.ts +40 -0
- package/src/models/DescribeHybridCloudClusterRulesResponseBody.ts +106 -0
- package/src/models/DescribeTemplateResourcesResponseBody.ts +3 -0
- package/src/models/ModifyDefenseRuleRequest.ts +0 -2
- package/src/models/ModifyDefenseRuleStatusRequest.ts +3 -2
- package/src/models/model.ts +10 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateHybridCloudClusterRuleRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 428
|
|
12
|
+
*/
|
|
13
|
+
clusterId?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* waf_elasticity-cn-0xldbqt****
|
|
20
|
+
*/
|
|
21
|
+
instanceId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* cn-hangzhou
|
|
25
|
+
*/
|
|
26
|
+
regionId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* rg-acfm***q
|
|
30
|
+
*/
|
|
31
|
+
resourceManagerResourceGroupId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @example
|
|
34
|
+
* {\\"check_mode\\": \\"all\\", \\"type\\": \\"exact\\", \\"substance\\": \\"122\\"}
|
|
35
|
+
*/
|
|
36
|
+
ruleConfig?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @remarks
|
|
39
|
+
* This parameter is required.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* on
|
|
43
|
+
*/
|
|
44
|
+
ruleStatus?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @remarks
|
|
47
|
+
* This parameter is required.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* pullin
|
|
51
|
+
*/
|
|
52
|
+
ruleType?: string;
|
|
53
|
+
static names(): { [key: string]: string } {
|
|
54
|
+
return {
|
|
55
|
+
clusterId: 'ClusterId',
|
|
56
|
+
instanceId: 'InstanceId',
|
|
57
|
+
regionId: 'RegionId',
|
|
58
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
59
|
+
ruleConfig: 'RuleConfig',
|
|
60
|
+
ruleStatus: 'RuleStatus',
|
|
61
|
+
ruleType: 'RuleType',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static types(): { [key: string]: any } {
|
|
66
|
+
return {
|
|
67
|
+
clusterId: 'number',
|
|
68
|
+
instanceId: 'string',
|
|
69
|
+
regionId: 'string',
|
|
70
|
+
resourceManagerResourceGroupId: 'string',
|
|
71
|
+
ruleConfig: 'string',
|
|
72
|
+
ruleStatus: 'string',
|
|
73
|
+
ruleType: 'string',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
validate() {
|
|
78
|
+
super.validate();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
constructor(map?: { [key: string]: any }) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateHybridCloudClusterRuleResponseBody } from "./CreateHybridCloudClusterRuleResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateHybridCloudClusterRuleResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateHybridCloudClusterRuleResponseBody;
|
|
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: CreateHybridCloudClusterRuleResponseBody,
|
|
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 CreateHybridCloudClusterRuleResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* hdbc-clusterrule-*******m0w
|
|
9
|
+
*/
|
|
10
|
+
clusterRuleResourceId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 66A98669-CC6E-4F3E-*****-3014697B11AE
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
clusterRuleResourceId: 'ClusterRuleResourceId',
|
|
19
|
+
requestId: 'RequestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
clusterRuleResourceId: 'string',
|
|
26
|
+
requestId: '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,58 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DeleteHybridCloudClusterRuleRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* hdbc-clusterrule-*******m0w
|
|
12
|
+
*/
|
|
13
|
+
clusterRuleResourceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* waf_elasticity-cn-0xldbqt****
|
|
20
|
+
*/
|
|
21
|
+
instanceId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* cn-hangzhou
|
|
25
|
+
*/
|
|
26
|
+
regionId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* rg-acfm***q
|
|
30
|
+
*/
|
|
31
|
+
resourceManagerResourceGroupId?: string;
|
|
32
|
+
static names(): { [key: string]: string } {
|
|
33
|
+
return {
|
|
34
|
+
clusterRuleResourceId: 'ClusterRuleResourceId',
|
|
35
|
+
instanceId: 'InstanceId',
|
|
36
|
+
regionId: 'RegionId',
|
|
37
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
clusterRuleResourceId: 'string',
|
|
44
|
+
instanceId: 'string',
|
|
45
|
+
regionId: 'string',
|
|
46
|
+
resourceManagerResourceGroupId: 'string',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DeleteHybridCloudClusterRuleResponseBody } from "./DeleteHybridCloudClusterRuleResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DeleteHybridCloudClusterRuleResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DeleteHybridCloudClusterRuleResponseBody;
|
|
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: DeleteHybridCloudClusterRuleResponseBody,
|
|
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 DeleteHybridCloudClusterRuleResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* D7861F61-5B61-46CE-A47C-6B19****5EB0
|
|
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
|
+
|
|
@@ -30,6 +30,7 @@ export class DescribeDefenseRuleResponseBodyRule extends $dara.Model {
|
|
|
30
30
|
* waf_group
|
|
31
31
|
*/
|
|
32
32
|
defenseScene?: string;
|
|
33
|
+
defenseType?: string;
|
|
33
34
|
/**
|
|
34
35
|
* @remarks
|
|
35
36
|
* The most recent time when the protection rule was modified.
|
|
@@ -79,6 +80,7 @@ export class DescribeDefenseRuleResponseBodyRule extends $dara.Model {
|
|
|
79
80
|
config: 'Config',
|
|
80
81
|
defenseOrigin: 'DefenseOrigin',
|
|
81
82
|
defenseScene: 'DefenseScene',
|
|
83
|
+
defenseType: 'DefenseType',
|
|
82
84
|
gmtModified: 'GmtModified',
|
|
83
85
|
resource: 'Resource',
|
|
84
86
|
ruleId: 'RuleId',
|
|
@@ -93,6 +95,7 @@ export class DescribeDefenseRuleResponseBodyRule extends $dara.Model {
|
|
|
93
95
|
config: 'string',
|
|
94
96
|
defenseOrigin: 'string',
|
|
95
97
|
defenseScene: 'string',
|
|
98
|
+
defenseType: 'string',
|
|
96
99
|
gmtModified: 'number',
|
|
97
100
|
resource: 'string',
|
|
98
101
|
ruleId: 'number',
|
|
@@ -45,6 +45,7 @@ export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
|
45
45
|
* waf_group
|
|
46
46
|
*/
|
|
47
47
|
defenseScene?: string;
|
|
48
|
+
defenseType?: string;
|
|
48
49
|
description?: string;
|
|
49
50
|
detailRuleIds?: string;
|
|
50
51
|
externalInfo?: string;
|
|
@@ -100,6 +101,7 @@ export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
|
100
101
|
config: 'Config',
|
|
101
102
|
defenseOrigin: 'DefenseOrigin',
|
|
102
103
|
defenseScene: 'DefenseScene',
|
|
104
|
+
defenseType: 'DefenseType',
|
|
103
105
|
description: 'Description',
|
|
104
106
|
detailRuleIds: 'DetailRuleIds',
|
|
105
107
|
externalInfo: 'ExternalInfo',
|
|
@@ -120,6 +122,7 @@ export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
|
120
122
|
config: 'string',
|
|
121
123
|
defenseOrigin: 'string',
|
|
122
124
|
defenseScene: 'string',
|
|
125
|
+
defenseType: 'string',
|
|
123
126
|
description: 'string',
|
|
124
127
|
detailRuleIds: 'string',
|
|
125
128
|
externalInfo: 'string',
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeHybridCloudClusterRulesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 428
|
|
12
|
+
*/
|
|
13
|
+
clusterId?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* waf_v3prepaid_public_cn-****
|
|
20
|
+
*/
|
|
21
|
+
instanceId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* 1
|
|
25
|
+
*/
|
|
26
|
+
pageNumber?: number;
|
|
27
|
+
/**
|
|
28
|
+
* @example
|
|
29
|
+
* 10
|
|
30
|
+
*/
|
|
31
|
+
pageSize?: number;
|
|
32
|
+
/**
|
|
33
|
+
* @example
|
|
34
|
+
* cn-hangzhou
|
|
35
|
+
*/
|
|
36
|
+
regionId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @example
|
|
39
|
+
* rg-acfm***q
|
|
40
|
+
*/
|
|
41
|
+
resourceManagerResourceGroupId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @example
|
|
44
|
+
* 1.1.1.1
|
|
45
|
+
*/
|
|
46
|
+
ruleContent?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @example
|
|
49
|
+
* exact
|
|
50
|
+
*/
|
|
51
|
+
ruleMatchType?: string;
|
|
52
|
+
/**
|
|
53
|
+
* @remarks
|
|
54
|
+
* This parameter is required.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* pullin
|
|
58
|
+
*/
|
|
59
|
+
ruleType?: string;
|
|
60
|
+
static names(): { [key: string]: string } {
|
|
61
|
+
return {
|
|
62
|
+
clusterId: 'ClusterId',
|
|
63
|
+
instanceId: 'InstanceId',
|
|
64
|
+
pageNumber: 'PageNumber',
|
|
65
|
+
pageSize: 'PageSize',
|
|
66
|
+
regionId: 'RegionId',
|
|
67
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
68
|
+
ruleContent: 'RuleContent',
|
|
69
|
+
ruleMatchType: 'RuleMatchType',
|
|
70
|
+
ruleType: 'RuleType',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
static types(): { [key: string]: any } {
|
|
75
|
+
return {
|
|
76
|
+
clusterId: 'number',
|
|
77
|
+
instanceId: 'string',
|
|
78
|
+
pageNumber: 'number',
|
|
79
|
+
pageSize: 'number',
|
|
80
|
+
regionId: 'string',
|
|
81
|
+
resourceManagerResourceGroupId: 'string',
|
|
82
|
+
ruleContent: 'string',
|
|
83
|
+
ruleMatchType: 'string',
|
|
84
|
+
ruleType: 'string',
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
validate() {
|
|
89
|
+
super.validate();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
constructor(map?: { [key: string]: any }) {
|
|
93
|
+
super(map);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeHybridCloudClusterRulesResponseBody } from "./DescribeHybridCloudClusterRulesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeHybridCloudClusterRulesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeHybridCloudClusterRulesResponseBody;
|
|
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: DescribeHybridCloudClusterRulesResponseBody,
|
|
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,106 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeHybridCloudClusterRulesResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1099
|
|
9
|
+
*/
|
|
10
|
+
clusterId?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* hdbc-clusterrule-*****khzre0ym0w
|
|
14
|
+
*/
|
|
15
|
+
clusterRuleResourceId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* {\\"check_mode\\": \\"all\\", \\"type\\": \\"exact\\", \\"substance\\": \\"122\\"}
|
|
19
|
+
*/
|
|
20
|
+
ruleConfig?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* pullin
|
|
24
|
+
*/
|
|
25
|
+
ruleType?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 1
|
|
29
|
+
*/
|
|
30
|
+
status?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 1
|
|
34
|
+
*/
|
|
35
|
+
version?: number;
|
|
36
|
+
static names(): { [key: string]: string } {
|
|
37
|
+
return {
|
|
38
|
+
clusterId: 'ClusterId',
|
|
39
|
+
clusterRuleResourceId: 'ClusterRuleResourceId',
|
|
40
|
+
ruleConfig: 'RuleConfig',
|
|
41
|
+
ruleType: 'RuleType',
|
|
42
|
+
status: 'Status',
|
|
43
|
+
version: 'Version',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
clusterId: 'number',
|
|
50
|
+
clusterRuleResourceId: 'string',
|
|
51
|
+
ruleConfig: 'string',
|
|
52
|
+
ruleType: 'string',
|
|
53
|
+
status: 'string',
|
|
54
|
+
version: 'number',
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
validate() {
|
|
59
|
+
super.validate();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
constructor(map?: { [key: string]: any }) {
|
|
63
|
+
super(map);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export class DescribeHybridCloudClusterRulesResponseBody extends $dara.Model {
|
|
68
|
+
data?: DescribeHybridCloudClusterRulesResponseBodyData[];
|
|
69
|
+
/**
|
|
70
|
+
* @example
|
|
71
|
+
* D7861F61-5B61-46CE-A47C-6B19160D5EB0
|
|
72
|
+
*/
|
|
73
|
+
requestId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* @example
|
|
76
|
+
* 10
|
|
77
|
+
*/
|
|
78
|
+
totalCount?: number;
|
|
79
|
+
static names(): { [key: string]: string } {
|
|
80
|
+
return {
|
|
81
|
+
data: 'Data',
|
|
82
|
+
requestId: 'RequestId',
|
|
83
|
+
totalCount: 'TotalCount',
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
static types(): { [key: string]: any } {
|
|
88
|
+
return {
|
|
89
|
+
data: { 'type': 'array', 'itemType': DescribeHybridCloudClusterRulesResponseBodyData },
|
|
90
|
+
requestId: 'string',
|
|
91
|
+
totalCount: 'number',
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
validate() {
|
|
96
|
+
if(Array.isArray(this.data)) {
|
|
97
|
+
$dara.Model.validateArray(this.data);
|
|
98
|
+
}
|
|
99
|
+
super.validate();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
constructor(map?: { [key: string]: any }) {
|
|
103
|
+
super(map);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -18,6 +18,7 @@ export class DescribeTemplateResourcesResponseBody extends $dara.Model {
|
|
|
18
18
|
* An array of protected objects or protected object groups that are associated to the protection rule template.
|
|
19
19
|
*/
|
|
20
20
|
resources?: string[];
|
|
21
|
+
templateId?: number;
|
|
21
22
|
totalCount?: number;
|
|
22
23
|
static names(): { [key: string]: string } {
|
|
23
24
|
return {
|
|
@@ -25,6 +26,7 @@ export class DescribeTemplateResourcesResponseBody extends $dara.Model {
|
|
|
25
26
|
nextToken: 'NextToken',
|
|
26
27
|
requestId: 'RequestId',
|
|
27
28
|
resources: 'Resources',
|
|
29
|
+
templateId: 'TemplateId',
|
|
28
30
|
totalCount: 'TotalCount',
|
|
29
31
|
};
|
|
30
32
|
}
|
|
@@ -35,6 +37,7 @@ export class DescribeTemplateResourcesResponseBody extends $dara.Model {
|
|
|
35
37
|
nextToken: 'string',
|
|
36
38
|
requestId: 'string',
|
|
37
39
|
resources: { 'type': 'array', 'itemType': 'string' },
|
|
40
|
+
templateId: 'number',
|
|
38
41
|
totalCount: 'number',
|
|
39
42
|
};
|
|
40
43
|
}
|
|
@@ -7,8 +7,6 @@ export class ModifyDefenseRuleRequest extends $dara.Model {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* The scenario in which you want to use the protection rule. For more information, see the description of the **DefenseScene** parameter in the [CreateDefenseRule](~~CreateDefenseRule~~) topic.
|
|
9
9
|
*
|
|
10
|
-
* This parameter is required.
|
|
11
|
-
*
|
|
12
10
|
* @example
|
|
13
11
|
* waf_group
|
|
14
12
|
*/
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ModifyDefenseRuleStatusRequest extends $dara.Model {
|
|
6
|
+
defenseType?: string;
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
9
|
* The ID of the Web Application Firewall (WAF) instance.
|
|
@@ -61,14 +62,13 @@ export class ModifyDefenseRuleStatusRequest extends $dara.Model {
|
|
|
61
62
|
* @remarks
|
|
62
63
|
* The ID of the protection rule template to which the protection rule whose status you want to change belongs.
|
|
63
64
|
*
|
|
64
|
-
* This parameter is required.
|
|
65
|
-
*
|
|
66
65
|
* @example
|
|
67
66
|
* 7239
|
|
68
67
|
*/
|
|
69
68
|
templateId?: number;
|
|
70
69
|
static names(): { [key: string]: string } {
|
|
71
70
|
return {
|
|
71
|
+
defenseType: 'DefenseType',
|
|
72
72
|
instanceId: 'InstanceId',
|
|
73
73
|
regionId: 'RegionId',
|
|
74
74
|
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
@@ -80,6 +80,7 @@ export class ModifyDefenseRuleStatusRequest extends $dara.Model {
|
|
|
80
80
|
|
|
81
81
|
static types(): { [key: string]: any } {
|
|
82
82
|
return {
|
|
83
|
+
defenseType: 'string',
|
|
83
84
|
instanceId: 'string',
|
|
84
85
|
regionId: 'string',
|
|
85
86
|
resourceManagerResourceGroupId: 'string',
|
package/src/models/model.ts
CHANGED
|
@@ -74,6 +74,7 @@ export { DescribeFreeUserEventCountResponseBodyEvent } from './DescribeFreeUserE
|
|
|
74
74
|
export { DescribeFreeUserEventTypesResponseBodyData } from './DescribeFreeUserEventTypesResponseBody';
|
|
75
75
|
export { DescribeFreeUserEventsResponseBodyEvent } from './DescribeFreeUserEventsResponseBody';
|
|
76
76
|
export { DescribeHybridCloudClusterRuleResponseBodyClusterRule } from './DescribeHybridCloudClusterRuleResponseBody';
|
|
77
|
+
export { DescribeHybridCloudClusterRulesResponseBodyData } from './DescribeHybridCloudClusterRulesResponseBody';
|
|
77
78
|
export { DescribeHybridCloudClustersResponseBodyClusterInfos } from './DescribeHybridCloudClustersResponseBody';
|
|
78
79
|
export { DescribeHybridCloudGroupsResponseBodyGroups } from './DescribeHybridCloudGroupsResponseBody';
|
|
79
80
|
export { DescribeHybridCloudResourcesResponseBodyDomainsListen } from './DescribeHybridCloudResourcesResponseBody';
|
|
@@ -204,6 +205,9 @@ export { CreateDomainRequest } from './CreateDomainRequest';
|
|
|
204
205
|
export { CreateDomainShrinkRequest } from './CreateDomainShrinkRequest';
|
|
205
206
|
export { CreateDomainResponseBody } from './CreateDomainResponseBody';
|
|
206
207
|
export { CreateDomainResponse } from './CreateDomainResponse';
|
|
208
|
+
export { CreateHybridCloudClusterRuleRequest } from './CreateHybridCloudClusterRuleRequest';
|
|
209
|
+
export { CreateHybridCloudClusterRuleResponseBody } from './CreateHybridCloudClusterRuleResponseBody';
|
|
210
|
+
export { CreateHybridCloudClusterRuleResponse } from './CreateHybridCloudClusterRuleResponse';
|
|
207
211
|
export { CreateHybridCloudGroupRequest } from './CreateHybridCloudGroupRequest';
|
|
208
212
|
export { CreateHybridCloudGroupResponseBody } from './CreateHybridCloudGroupResponseBody';
|
|
209
213
|
export { CreateHybridCloudGroupResponse } from './CreateHybridCloudGroupResponse';
|
|
@@ -246,6 +250,9 @@ export { DeleteDefenseTemplateResponse } from './DeleteDefenseTemplateResponse';
|
|
|
246
250
|
export { DeleteDomainRequest } from './DeleteDomainRequest';
|
|
247
251
|
export { DeleteDomainResponseBody } from './DeleteDomainResponseBody';
|
|
248
252
|
export { DeleteDomainResponse } from './DeleteDomainResponse';
|
|
253
|
+
export { DeleteHybridCloudClusterRuleRequest } from './DeleteHybridCloudClusterRuleRequest';
|
|
254
|
+
export { DeleteHybridCloudClusterRuleResponseBody } from './DeleteHybridCloudClusterRuleResponseBody';
|
|
255
|
+
export { DeleteHybridCloudClusterRuleResponse } from './DeleteHybridCloudClusterRuleResponse';
|
|
249
256
|
export { DeleteMajorProtectionBlackIpRequest } from './DeleteMajorProtectionBlackIpRequest';
|
|
250
257
|
export { DeleteMajorProtectionBlackIpResponseBody } from './DeleteMajorProtectionBlackIpResponseBody';
|
|
251
258
|
export { DeleteMajorProtectionBlackIpResponse } from './DeleteMajorProtectionBlackIpResponse';
|
|
@@ -411,6 +418,9 @@ export { DescribeFreeUserEventsResponse } from './DescribeFreeUserEventsResponse
|
|
|
411
418
|
export { DescribeHybridCloudClusterRuleRequest } from './DescribeHybridCloudClusterRuleRequest';
|
|
412
419
|
export { DescribeHybridCloudClusterRuleResponseBody } from './DescribeHybridCloudClusterRuleResponseBody';
|
|
413
420
|
export { DescribeHybridCloudClusterRuleResponse } from './DescribeHybridCloudClusterRuleResponse';
|
|
421
|
+
export { DescribeHybridCloudClusterRulesRequest } from './DescribeHybridCloudClusterRulesRequest';
|
|
422
|
+
export { DescribeHybridCloudClusterRulesResponseBody } from './DescribeHybridCloudClusterRulesResponseBody';
|
|
423
|
+
export { DescribeHybridCloudClusterRulesResponse } from './DescribeHybridCloudClusterRulesResponse';
|
|
414
424
|
export { DescribeHybridCloudClustersRequest } from './DescribeHybridCloudClustersRequest';
|
|
415
425
|
export { DescribeHybridCloudClustersResponseBody } from './DescribeHybridCloudClustersResponseBody';
|
|
416
426
|
export { DescribeHybridCloudClustersResponse } from './DescribeHybridCloudClustersResponse';
|