@alicloud/waf-openapi20211001 4.2.0 → 4.3.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 +15 -0
- package/dist/client.js +72 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateDefenseRuleRequest.d.ts +1 -0
- package/dist/models/CreateDefenseRuleRequest.js +2 -0
- package/dist/models/CreateDefenseRuleRequest.js.map +1 -1
- package/dist/models/DeleteDefenseRuleRequest.d.ts +1 -0
- package/dist/models/DeleteDefenseRuleRequest.js +2 -0
- package/dist/models/DeleteDefenseRuleRequest.js.map +1 -1
- package/dist/models/DescribeDefenseRuleRequest.d.ts +1 -0
- package/dist/models/DescribeDefenseRuleRequest.js +2 -0
- package/dist/models/DescribeDefenseRuleRequest.js.map +1 -1
- package/dist/models/DescribeIpAbroadCountryInfosRequest.d.ts +56 -0
- package/dist/models/DescribeIpAbroadCountryInfosRequest.js +72 -0
- package/dist/models/DescribeIpAbroadCountryInfosRequest.js.map +1 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponse.d.ts +19 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponse.js +69 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponse.js.map +1 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBody.d.ts +35 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBody.js +70 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBody.js.map +1 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBodyAbroadInfos.d.ts +30 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBodyAbroadInfos.js +68 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBodyAbroadInfos.js.map +1 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions.d.ts +23 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions.js +60 -0
- package/dist/models/DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions.js.map +1 -0
- package/dist/models/ModifyDefenseRuleRequest.d.ts +1 -0
- package/dist/models/ModifyDefenseRuleRequest.js +2 -0
- package/dist/models/ModifyDefenseRuleRequest.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +23 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +86 -0
- package/src/models/CreateDefenseRuleRequest.ts +3 -0
- package/src/models/DeleteDefenseRuleRequest.ts +3 -0
- package/src/models/DescribeDefenseRuleRequest.ts +3 -0
- package/src/models/DescribeIpAbroadCountryInfosRequest.ts +83 -0
- package/src/models/DescribeIpAbroadCountryInfosResponse.ts +40 -0
- package/src/models/DescribeIpAbroadCountryInfosResponseBody.ts +59 -0
- package/src/models/DescribeIpAbroadCountryInfosResponseBodyAbroadInfos.ts +52 -0
- package/src/models/DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions.ts +38 -0
- package/src/models/ModifyDefenseRuleRequest.ts +3 -0
- package/src/models/model.ts +5 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeIpAbroadCountryInfosResponseBody } from "./DescribeIpAbroadCountryInfosResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeIpAbroadCountryInfosResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeIpAbroadCountryInfosResponseBody;
|
|
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: DescribeIpAbroadCountryInfosResponseBody,
|
|
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,59 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeIpAbroadCountryInfosResponseBodyAbroadInfos } from "./DescribeIpAbroadCountryInfosResponseBodyAbroadInfos";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeIpAbroadCountryInfosResponseBody extends $dara.Model {
|
|
7
|
+
abroadInfos?: DescribeIpAbroadCountryInfosResponseBodyAbroadInfos[];
|
|
8
|
+
/**
|
|
9
|
+
* @example
|
|
10
|
+
* 20
|
|
11
|
+
*/
|
|
12
|
+
maxResults?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @example
|
|
15
|
+
* caeba0bbb2be03f84eb48b699f0*****
|
|
16
|
+
*/
|
|
17
|
+
nextToken?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @example
|
|
20
|
+
* 66A98669-CC6E-4F3E-80A6-3014697B11AE
|
|
21
|
+
*/
|
|
22
|
+
requestId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* 2
|
|
26
|
+
*/
|
|
27
|
+
totalCount?: number;
|
|
28
|
+
static names(): { [key: string]: string } {
|
|
29
|
+
return {
|
|
30
|
+
abroadInfos: 'AbroadInfos',
|
|
31
|
+
maxResults: 'MaxResults',
|
|
32
|
+
nextToken: 'NextToken',
|
|
33
|
+
requestId: 'RequestId',
|
|
34
|
+
totalCount: 'TotalCount',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
abroadInfos: { 'type': 'array', 'itemType': DescribeIpAbroadCountryInfosResponseBodyAbroadInfos },
|
|
41
|
+
maxResults: 'number',
|
|
42
|
+
nextToken: 'string',
|
|
43
|
+
requestId: 'string',
|
|
44
|
+
totalCount: 'number',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
validate() {
|
|
49
|
+
if(Array.isArray(this.abroadInfos)) {
|
|
50
|
+
$dara.Model.validateArray(this.abroadInfos);
|
|
51
|
+
}
|
|
52
|
+
super.validate();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
constructor(map?: { [key: string]: any }) {
|
|
56
|
+
super(map);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions } from "./DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeIpAbroadCountryInfosResponseBodyAbroadInfos extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @example
|
|
9
|
+
* 北美洲
|
|
10
|
+
*/
|
|
11
|
+
continent?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @example
|
|
14
|
+
* US
|
|
15
|
+
*/
|
|
16
|
+
country?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @example
|
|
19
|
+
* 美国
|
|
20
|
+
*/
|
|
21
|
+
countryName?: string;
|
|
22
|
+
regions?: DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions[];
|
|
23
|
+
static names(): { [key: string]: string } {
|
|
24
|
+
return {
|
|
25
|
+
continent: 'Continent',
|
|
26
|
+
country: 'Country',
|
|
27
|
+
countryName: 'CountryName',
|
|
28
|
+
regions: 'Regions',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static types(): { [key: string]: any } {
|
|
33
|
+
return {
|
|
34
|
+
continent: 'string',
|
|
35
|
+
country: 'string',
|
|
36
|
+
countryName: 'string',
|
|
37
|
+
regions: { 'type': 'array', 'itemType': DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions },
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
validate() {
|
|
42
|
+
if(Array.isArray(this.regions)) {
|
|
43
|
+
$dara.Model.validateArray(this.regions);
|
|
44
|
+
}
|
|
45
|
+
super.validate();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -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 DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* US-CA
|
|
9
|
+
*/
|
|
10
|
+
abroadRegionId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* 加利福尼亚州
|
|
14
|
+
*/
|
|
15
|
+
abroadRegionName?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
abroadRegionId: 'AbroadRegionId',
|
|
19
|
+
abroadRegionName: 'AbroadRegionName',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
abroadRegionId: 'string',
|
|
26
|
+
abroadRegionName: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -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.
|
|
@@ -61,6 +62,7 @@ export class ModifyDefenseRuleRequest extends $dara.Model {
|
|
|
61
62
|
static names(): { [key: string]: string } {
|
|
62
63
|
return {
|
|
63
64
|
defenseScene: 'DefenseScene',
|
|
65
|
+
defenseType: 'DefenseType',
|
|
64
66
|
instanceId: 'InstanceId',
|
|
65
67
|
regionId: 'RegionId',
|
|
66
68
|
resource: 'Resource',
|
|
@@ -73,6 +75,7 @@ export class ModifyDefenseRuleRequest extends $dara.Model {
|
|
|
73
75
|
static types(): { [key: string]: any } {
|
|
74
76
|
return {
|
|
75
77
|
defenseScene: 'string',
|
|
78
|
+
defenseType: 'string',
|
|
76
79
|
instanceId: 'string',
|
|
77
80
|
regionId: 'string',
|
|
78
81
|
resource: 'string',
|
package/src/models/model.ts
CHANGED
|
@@ -81,6 +81,8 @@ export { DescribeHybridCloudServerRegionsResponseBodyRegions } from './DescribeH
|
|
|
81
81
|
export { DescribeHybridCloudUnassignedMachinesResponseBodyUnassignedMachines } from './DescribeHybridCloudUnassignedMachinesResponseBodyUnassignedMachines';
|
|
82
82
|
export { DescribeHybridCloudUserResponseBodyUserInfo } from './DescribeHybridCloudUserResponseBodyUserInfo';
|
|
83
83
|
export { DescribeInstanceResponseBodyDetails } from './DescribeInstanceResponseBodyDetails';
|
|
84
|
+
export { DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions } from './DescribeIpAbroadCountryInfosResponseBodyAbroadInfosRegions';
|
|
85
|
+
export { DescribeIpAbroadCountryInfosResponseBodyAbroadInfos } from './DescribeIpAbroadCountryInfosResponseBodyAbroadInfos';
|
|
84
86
|
export { DescribeMajorProtectionBlackIpsResponseBodyIpList } from './DescribeMajorProtectionBlackIpsResponseBodyIpList';
|
|
85
87
|
export { DescribeMemberAccountsResponseBodyAccountInfos } from './DescribeMemberAccountsResponseBodyAccountInfos';
|
|
86
88
|
export { DescribeNetworkFlowTimeSeriesMetricRequestFilterConditions } from './DescribeNetworkFlowTimeSeriesMetricRequestFilterConditions';
|
|
@@ -408,6 +410,9 @@ export { DescribeHybridCloudUserResponse } from './DescribeHybridCloudUserRespon
|
|
|
408
410
|
export { DescribeInstanceRequest } from './DescribeInstanceRequest';
|
|
409
411
|
export { DescribeInstanceResponseBody } from './DescribeInstanceResponseBody';
|
|
410
412
|
export { DescribeInstanceResponse } from './DescribeInstanceResponse';
|
|
413
|
+
export { DescribeIpAbroadCountryInfosRequest } from './DescribeIpAbroadCountryInfosRequest';
|
|
414
|
+
export { DescribeIpAbroadCountryInfosResponseBody } from './DescribeIpAbroadCountryInfosResponseBody';
|
|
415
|
+
export { DescribeIpAbroadCountryInfosResponse } from './DescribeIpAbroadCountryInfosResponse';
|
|
411
416
|
export { DescribeMajorProtectionBlackIpsRequest } from './DescribeMajorProtectionBlackIpsRequest';
|
|
412
417
|
export { DescribeMajorProtectionBlackIpsResponseBody } from './DescribeMajorProtectionBlackIpsResponseBody';
|
|
413
418
|
export { DescribeMajorProtectionBlackIpsResponse } from './DescribeMajorProtectionBlackIpsResponse';
|