@alicloud/waf-openapi20211001 4.1.3 → 4.2.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 +30 -0
- package/dist/client.js +123 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDefenseRuleRequest.d.ts +2 -0
- package/dist/models/CreateDefenseRuleRequest.js +4 -0
- package/dist/models/CreateDefenseRuleRequest.js.map +1 -1
- package/dist/models/DeleteDefenseRuleRequest.d.ts +2 -0
- package/dist/models/DeleteDefenseRuleRequest.js +4 -0
- package/dist/models/DeleteDefenseRuleRequest.js.map +1 -1
- package/dist/models/DescribeAbnormalCloudResourcesRequest.d.ts +31 -0
- package/dist/models/DescribeAbnormalCloudResourcesRequest.js +62 -0
- package/dist/models/DescribeAbnormalCloudResourcesRequest.js.map +1 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponse.d.ts +19 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponse.js +69 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponse.js.map +1 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBody.d.ts +23 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBody.js +64 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBody.js.map +1 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources.d.ts +40 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources.js +72 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources.js.map +1 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails.d.ts +53 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails.js +72 -0
- package/dist/models/DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails.js.map +1 -0
- package/dist/models/DescribeDefenseRuleRequest.d.ts +2 -0
- package/dist/models/DescribeDefenseRuleRequest.js +4 -0
- package/dist/models/DescribeDefenseRuleRequest.js.map +1 -1
- package/dist/models/DescribeDefenseRuleResponseBodyRule.d.ts +1 -0
- package/dist/models/DescribeDefenseRuleResponseBodyRule.js +2 -0
- package/dist/models/DescribeDefenseRuleResponseBodyRule.js.map +1 -1
- package/dist/models/DescribeDefenseRulesResponseBodyRules.d.ts +1 -0
- package/dist/models/DescribeDefenseRulesResponseBodyRules.js +2 -0
- package/dist/models/DescribeDefenseRulesResponseBodyRules.js.map +1 -1
- package/dist/models/ModifyDefenseRuleRequest.d.ts +2 -0
- package/dist/models/ModifyDefenseRuleRequest.js +4 -0
- package/dist/models/ModifyDefenseRuleRequest.js.map +1 -1
- package/dist/models/ReCreateCloudResourceRequest.d.ts +55 -0
- package/dist/models/ReCreateCloudResourceRequest.js +68 -0
- package/dist/models/ReCreateCloudResourceRequest.js.map +1 -0
- package/dist/models/ReCreateCloudResourceResponse.d.ts +19 -0
- package/dist/models/ReCreateCloudResourceResponse.js +69 -0
- package/dist/models/ReCreateCloudResourceResponse.js.map +1 -0
- package/dist/models/ReCreateCloudResourceResponseBody.d.ts +21 -0
- package/dist/models/ReCreateCloudResourceResponseBody.js +58 -0
- package/dist/models/ReCreateCloudResourceResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +8 -0
- package/dist/models/model.js +30 -14
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +144 -0
- package/src/models/CreateDefenseRuleRequest.ts +6 -0
- package/src/models/DeleteDefenseRuleRequest.ts +6 -0
- package/src/models/DescribeAbnormalCloudResourcesRequest.ts +48 -0
- package/src/models/DescribeAbnormalCloudResourcesResponse.ts +40 -0
- package/src/models/DescribeAbnormalCloudResourcesResponseBody.ts +41 -0
- package/src/models/DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources.ts +66 -0
- package/src/models/DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails.ts +80 -0
- package/src/models/DescribeDefenseRuleRequest.ts +6 -0
- package/src/models/DescribeDefenseRuleResponseBodyRule.ts +3 -0
- package/src/models/DescribeDefenseRulesResponseBodyRules.ts +3 -0
- package/src/models/ModifyDefenseRuleRequest.ts +6 -0
- package/src/models/ReCreateCloudResourceRequest.ts +78 -0
- package/src/models/ReCreateCloudResourceResponse.ts +40 -0
- package/src/models/ReCreateCloudResourceResponseBody.ts +34 -0
- package/src/models/model.ts +8 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAbnormalCloudResourcesRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* waf_v3prepaid_public_cn-***
|
|
12
|
+
*/
|
|
13
|
+
instanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @example
|
|
16
|
+
* cn-hangzhou
|
|
17
|
+
*/
|
|
18
|
+
regionId?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @example
|
|
21
|
+
* rg-acfm***q
|
|
22
|
+
*/
|
|
23
|
+
resourceManagerResourceGroupId?: string;
|
|
24
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
instanceId: 'InstanceId',
|
|
27
|
+
regionId: 'RegionId',
|
|
28
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
instanceId: 'string',
|
|
35
|
+
regionId: 'string',
|
|
36
|
+
resourceManagerResourceGroupId: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeAbnormalCloudResourcesResponseBody } from "./DescribeAbnormalCloudResourcesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeAbnormalCloudResourcesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeAbnormalCloudResourcesResponseBody;
|
|
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: DescribeAbnormalCloudResourcesResponseBody,
|
|
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,41 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources } from "./DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeAbnormalCloudResourcesResponseBody extends $dara.Model {
|
|
7
|
+
abnormalCloudResources?: DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources[];
|
|
8
|
+
/**
|
|
9
|
+
* @remarks
|
|
10
|
+
* Id of the request
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* 66A98669-CC6E-4F3E-80A6-***
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
abnormalCloudResources: 'AbnormalCloudResources',
|
|
19
|
+
requestId: 'RequestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
abnormalCloudResources: { 'type': 'array', 'itemType': DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources },
|
|
26
|
+
requestId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
if(Array.isArray(this.abnormalCloudResources)) {
|
|
32
|
+
$dara.Model.validateArray(this.abnormalCloudResources);
|
|
33
|
+
}
|
|
34
|
+
super.validate();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor(map?: { [key: string]: any }) {
|
|
38
|
+
super(map);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails } from "./DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources extends $dara.Model {
|
|
7
|
+
details?: DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails[];
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* CertExpired
|
|
11
|
+
*/
|
|
12
|
+
reason?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* lb-***
|
|
16
|
+
*/
|
|
17
|
+
resourceInstanceId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* test-name
|
|
21
|
+
*/
|
|
22
|
+
resourceInstanceName?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* 80
|
|
26
|
+
*/
|
|
27
|
+
resourceInstancePort?: number;
|
|
28
|
+
/**
|
|
29
|
+
* @example
|
|
30
|
+
* clb7
|
|
31
|
+
*/
|
|
32
|
+
resourceProduct?: string;
|
|
33
|
+
static names(): { [key: string]: string } {
|
|
34
|
+
return {
|
|
35
|
+
details: 'Details',
|
|
36
|
+
reason: 'Reason',
|
|
37
|
+
resourceInstanceId: 'ResourceInstanceId',
|
|
38
|
+
resourceInstanceName: 'ResourceInstanceName',
|
|
39
|
+
resourceInstancePort: 'ResourceInstancePort',
|
|
40
|
+
resourceProduct: 'ResourceProduct',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
details: { 'type': 'array', 'itemType': DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails },
|
|
47
|
+
reason: 'string',
|
|
48
|
+
resourceInstanceId: 'string',
|
|
49
|
+
resourceInstanceName: 'string',
|
|
50
|
+
resourceInstancePort: 'number',
|
|
51
|
+
resourceProduct: 'string',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
validate() {
|
|
56
|
+
if(Array.isArray(this.details)) {
|
|
57
|
+
$dara.Model.validateArray(this.details);
|
|
58
|
+
}
|
|
59
|
+
super.validate();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
constructor(map?: { [key: string]: any }) {
|
|
63
|
+
super(map);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* default
|
|
9
|
+
*/
|
|
10
|
+
appliedType?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* test-name
|
|
14
|
+
*/
|
|
15
|
+
certName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* CertExpired
|
|
19
|
+
*/
|
|
20
|
+
code?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @example
|
|
23
|
+
* www.test.com
|
|
24
|
+
*/
|
|
25
|
+
commonName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @example
|
|
28
|
+
* 1735009193
|
|
29
|
+
*/
|
|
30
|
+
expireTime?: number;
|
|
31
|
+
/**
|
|
32
|
+
* @example
|
|
33
|
+
* 123-cn-hangzhou
|
|
34
|
+
*/
|
|
35
|
+
productCertId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @example
|
|
38
|
+
* test-name
|
|
39
|
+
*/
|
|
40
|
+
productCertName?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @example
|
|
43
|
+
* www.test.com
|
|
44
|
+
*/
|
|
45
|
+
productDomainExtension?: string;
|
|
46
|
+
static names(): { [key: string]: string } {
|
|
47
|
+
return {
|
|
48
|
+
appliedType: 'AppliedType',
|
|
49
|
+
certName: 'CertName',
|
|
50
|
+
code: 'Code',
|
|
51
|
+
commonName: 'CommonName',
|
|
52
|
+
expireTime: 'ExpireTime',
|
|
53
|
+
productCertId: 'ProductCertId',
|
|
54
|
+
productCertName: 'ProductCertName',
|
|
55
|
+
productDomainExtension: 'ProductDomainExtension',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
appliedType: 'string',
|
|
62
|
+
certName: 'string',
|
|
63
|
+
code: 'string',
|
|
64
|
+
commonName: 'string',
|
|
65
|
+
expireTime: 'number',
|
|
66
|
+
productCertId: 'string',
|
|
67
|
+
productCertName: 'string',
|
|
68
|
+
productDomainExtension: 'string',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
validate() {
|
|
73
|
+
super.validate();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -3,6 +3,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class DescribeDefenseRuleRequest extends $dara.Model {
|
|
6
|
+
defenseType?: string;
|
|
6
7
|
/**
|
|
7
8
|
* @remarks
|
|
8
9
|
* The ID of the Web Application Firewall (WAF) instance.
|
|
@@ -26,6 +27,7 @@ export class DescribeDefenseRuleRequest extends $dara.Model {
|
|
|
26
27
|
* cn-hangzhou
|
|
27
28
|
*/
|
|
28
29
|
regionId?: string;
|
|
30
|
+
resource?: string;
|
|
29
31
|
/**
|
|
30
32
|
* @remarks
|
|
31
33
|
* The ID of the resource group.
|
|
@@ -54,8 +56,10 @@ export class DescribeDefenseRuleRequest extends $dara.Model {
|
|
|
54
56
|
templateId?: number;
|
|
55
57
|
static names(): { [key: string]: string } {
|
|
56
58
|
return {
|
|
59
|
+
defenseType: 'DefenseType',
|
|
57
60
|
instanceId: 'InstanceId',
|
|
58
61
|
regionId: 'RegionId',
|
|
62
|
+
resource: 'Resource',
|
|
59
63
|
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
60
64
|
ruleId: 'RuleId',
|
|
61
65
|
templateId: 'TemplateId',
|
|
@@ -64,8 +68,10 @@ export class DescribeDefenseRuleRequest extends $dara.Model {
|
|
|
64
68
|
|
|
65
69
|
static types(): { [key: string]: any } {
|
|
66
70
|
return {
|
|
71
|
+
defenseType: 'string',
|
|
67
72
|
instanceId: 'string',
|
|
68
73
|
regionId: 'string',
|
|
74
|
+
resource: 'string',
|
|
69
75
|
resourceManagerResourceGroupId: 'string',
|
|
70
76
|
ruleId: 'number',
|
|
71
77
|
templateId: 'number',
|
|
@@ -38,6 +38,7 @@ export class DescribeDefenseRuleResponseBodyRule extends $dara.Model {
|
|
|
38
38
|
* 1665196746000
|
|
39
39
|
*/
|
|
40
40
|
gmtModified?: number;
|
|
41
|
+
resource?: string;
|
|
41
42
|
/**
|
|
42
43
|
* @remarks
|
|
43
44
|
* The ID of the protection rule.
|
|
@@ -79,6 +80,7 @@ export class DescribeDefenseRuleResponseBodyRule extends $dara.Model {
|
|
|
79
80
|
defenseOrigin: 'DefenseOrigin',
|
|
80
81
|
defenseScene: 'DefenseScene',
|
|
81
82
|
gmtModified: 'GmtModified',
|
|
83
|
+
resource: 'Resource',
|
|
82
84
|
ruleId: 'RuleId',
|
|
83
85
|
ruleName: 'RuleName',
|
|
84
86
|
status: 'Status',
|
|
@@ -92,6 +94,7 @@ export class DescribeDefenseRuleResponseBodyRule extends $dara.Model {
|
|
|
92
94
|
defenseOrigin: 'string',
|
|
93
95
|
defenseScene: 'string',
|
|
94
96
|
gmtModified: 'number',
|
|
97
|
+
resource: 'string',
|
|
95
98
|
ruleId: 'number',
|
|
96
99
|
ruleName: 'string',
|
|
97
100
|
status: 'number',
|
|
@@ -57,6 +57,7 @@ export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
|
57
57
|
* 1665460629000
|
|
58
58
|
*/
|
|
59
59
|
gmtModified?: number;
|
|
60
|
+
resource?: string;
|
|
60
61
|
/**
|
|
61
62
|
* @remarks
|
|
62
63
|
* The ID of the protection rule.
|
|
@@ -104,6 +105,7 @@ export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
|
104
105
|
externalInfo: 'ExternalInfo',
|
|
105
106
|
gmtCreate: 'GmtCreate',
|
|
106
107
|
gmtModified: 'GmtModified',
|
|
108
|
+
resource: 'Resource',
|
|
107
109
|
ruleId: 'RuleId',
|
|
108
110
|
ruleName: 'RuleName',
|
|
109
111
|
ruleType: 'RuleType',
|
|
@@ -123,6 +125,7 @@ export class DescribeDefenseRulesResponseBodyRules extends $dara.Model {
|
|
|
123
125
|
externalInfo: 'string',
|
|
124
126
|
gmtCreate: 'number',
|
|
125
127
|
gmtModified: 'number',
|
|
128
|
+
resource: 'string',
|
|
126
129
|
ruleId: 'number',
|
|
127
130
|
ruleName: 'string',
|
|
128
131
|
ruleType: 'string',
|
|
@@ -13,6 +13,7 @@ export class ModifyDefenseRuleRequest extends $dara.Model {
|
|
|
13
13
|
* waf_group
|
|
14
14
|
*/
|
|
15
15
|
defenseScene?: string;
|
|
16
|
+
defenseType?: string;
|
|
16
17
|
/**
|
|
17
18
|
* @remarks
|
|
18
19
|
* The ID of the Web Application Firewall (WAF) instance.
|
|
@@ -36,6 +37,7 @@ export class ModifyDefenseRuleRequest extends $dara.Model {
|
|
|
36
37
|
* cn-hangzhou
|
|
37
38
|
*/
|
|
38
39
|
regionId?: string;
|
|
40
|
+
resource?: string;
|
|
39
41
|
/**
|
|
40
42
|
* @remarks
|
|
41
43
|
* The ID of the Alibaba Cloud resource group.
|
|
@@ -60,8 +62,10 @@ export class ModifyDefenseRuleRequest extends $dara.Model {
|
|
|
60
62
|
static names(): { [key: string]: string } {
|
|
61
63
|
return {
|
|
62
64
|
defenseScene: 'DefenseScene',
|
|
65
|
+
defenseType: 'DefenseType',
|
|
63
66
|
instanceId: 'InstanceId',
|
|
64
67
|
regionId: 'RegionId',
|
|
68
|
+
resource: 'Resource',
|
|
65
69
|
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
66
70
|
rules: 'Rules',
|
|
67
71
|
templateId: 'TemplateId',
|
|
@@ -71,8 +75,10 @@ export class ModifyDefenseRuleRequest extends $dara.Model {
|
|
|
71
75
|
static types(): { [key: string]: any } {
|
|
72
76
|
return {
|
|
73
77
|
defenseScene: 'string',
|
|
78
|
+
defenseType: 'string',
|
|
74
79
|
instanceId: 'string',
|
|
75
80
|
regionId: 'string',
|
|
81
|
+
resource: 'string',
|
|
76
82
|
resourceManagerResourceGroupId: 'string',
|
|
77
83
|
rules: 'string',
|
|
78
84
|
templateId: 'number',
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ReCreateCloudResourceRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* waf_v2_public_cn-***
|
|
12
|
+
*/
|
|
13
|
+
instanceId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* This parameter is required.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 443
|
|
20
|
+
*/
|
|
21
|
+
port?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @example
|
|
24
|
+
* cn-hangzhou
|
|
25
|
+
*/
|
|
26
|
+
regionId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* @remarks
|
|
29
|
+
* This parameter is required.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* lb-bp1*****jqnnqk5uj2p
|
|
33
|
+
*/
|
|
34
|
+
resourceInstanceId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @example
|
|
37
|
+
* rg-acfm***q
|
|
38
|
+
*/
|
|
39
|
+
resourceManagerResourceGroupId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* This parameter is required.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* clb7
|
|
46
|
+
*/
|
|
47
|
+
resourceProduct?: string;
|
|
48
|
+
static names(): { [key: string]: string } {
|
|
49
|
+
return {
|
|
50
|
+
instanceId: 'InstanceId',
|
|
51
|
+
port: 'Port',
|
|
52
|
+
regionId: 'RegionId',
|
|
53
|
+
resourceInstanceId: 'ResourceInstanceId',
|
|
54
|
+
resourceManagerResourceGroupId: 'ResourceManagerResourceGroupId',
|
|
55
|
+
resourceProduct: 'ResourceProduct',
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
static types(): { [key: string]: any } {
|
|
60
|
+
return {
|
|
61
|
+
instanceId: 'string',
|
|
62
|
+
port: 'number',
|
|
63
|
+
regionId: 'string',
|
|
64
|
+
resourceInstanceId: 'string',
|
|
65
|
+
resourceManagerResourceGroupId: 'string',
|
|
66
|
+
resourceProduct: 'string',
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
validate() {
|
|
71
|
+
super.validate();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
constructor(map?: { [key: string]: any }) {
|
|
75
|
+
super(map);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ReCreateCloudResourceResponseBody } from "./ReCreateCloudResourceResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ReCreateCloudResourceResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ReCreateCloudResourceResponseBody;
|
|
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: ReCreateCloudResourceResponseBody,
|
|
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,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ReCreateCloudResourceResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Id of the request
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* D7861F61-5B61-46CE-A47C-6B19****5EB0
|
|
12
|
+
*/
|
|
13
|
+
requestId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
requestId: 'RequestId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
requestId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -10,6 +10,8 @@ export { CreateDomainRequestRedirect } from './CreateDomainRequestRedirect';
|
|
|
10
10
|
export { CreateDomainRequestTag } from './CreateDomainRequestTag';
|
|
11
11
|
export { CreateDomainShrinkRequestTag } from './CreateDomainShrinkRequestTag';
|
|
12
12
|
export { CreateDomainResponseBodyDomainInfo } from './CreateDomainResponseBodyDomainInfo';
|
|
13
|
+
export { DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails } from './DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResourcesDetails';
|
|
14
|
+
export { DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources } from './DescribeAbnormalCloudResourcesResponseBodyAbnormalCloudResources';
|
|
13
15
|
export { DescribeApiExportsResponseBodyApiExports } from './DescribeApiExportsResponseBodyApiExports';
|
|
14
16
|
export { DescribeApisecAbnormalDomainStatisticResponseBodyData } from './DescribeApisecAbnormalDomainStatisticResponseBodyData';
|
|
15
17
|
export { DescribeApisecAbnormalsResponseBodyData } from './DescribeApisecAbnormalsResponseBodyData';
|
|
@@ -232,6 +234,9 @@ export { DeleteMajorProtectionBlackIpResponse } from './DeleteMajorProtectionBla
|
|
|
232
234
|
export { DeleteMemberAccountRequest } from './DeleteMemberAccountRequest';
|
|
233
235
|
export { DeleteMemberAccountResponseBody } from './DeleteMemberAccountResponseBody';
|
|
234
236
|
export { DeleteMemberAccountResponse } from './DeleteMemberAccountResponse';
|
|
237
|
+
export { DescribeAbnormalCloudResourcesRequest } from './DescribeAbnormalCloudResourcesRequest';
|
|
238
|
+
export { DescribeAbnormalCloudResourcesResponseBody } from './DescribeAbnormalCloudResourcesResponseBody';
|
|
239
|
+
export { DescribeAbnormalCloudResourcesResponse } from './DescribeAbnormalCloudResourcesResponse';
|
|
235
240
|
export { DescribeAccountDelegatedStatusRequest } from './DescribeAccountDelegatedStatusRequest';
|
|
236
241
|
export { DescribeAccountDelegatedStatusResponseBody } from './DescribeAccountDelegatedStatusResponseBody';
|
|
237
242
|
export { DescribeAccountDelegatedStatusResponse } from './DescribeAccountDelegatedStatusResponse';
|
|
@@ -653,6 +658,9 @@ export { ModifyResourceLogStatusResponse } from './ModifyResourceLogStatusRespon
|
|
|
653
658
|
export { ModifyTemplateResourcesRequest } from './ModifyTemplateResourcesRequest';
|
|
654
659
|
export { ModifyTemplateResourcesResponseBody } from './ModifyTemplateResourcesResponseBody';
|
|
655
660
|
export { ModifyTemplateResourcesResponse } from './ModifyTemplateResourcesResponse';
|
|
661
|
+
export { ReCreateCloudResourceRequest } from './ReCreateCloudResourceRequest';
|
|
662
|
+
export { ReCreateCloudResourceResponseBody } from './ReCreateCloudResourceResponseBody';
|
|
663
|
+
export { ReCreateCloudResourceResponse } from './ReCreateCloudResourceResponse';
|
|
656
664
|
export { ReleaseInstanceRequest } from './ReleaseInstanceRequest';
|
|
657
665
|
export { ReleaseInstanceResponseBody } from './ReleaseInstanceResponseBody';
|
|
658
666
|
export { ReleaseInstanceResponse } from './ReleaseInstanceResponse';
|