@alicloud/cloudfw20171207 1.4.0 → 1.5.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 +74 -8
- package/dist/client.js +144 -8
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +179 -8
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -515,7 +515,9 @@ export class CreateTrFirewallV2Request extends $tea.Model {
|
|
|
515
515
|
regionNo?: string;
|
|
516
516
|
routeMode?: string;
|
|
517
517
|
trAttachmentMasterCidr?: string;
|
|
518
|
+
trAttachmentMasterZone?: string;
|
|
518
519
|
trAttachmentSlaveCidr?: string;
|
|
520
|
+
trAttachmentSlaveZone?: string;
|
|
519
521
|
transitRouterId?: string;
|
|
520
522
|
static names(): { [key: string]: string } {
|
|
521
523
|
return {
|
|
@@ -530,7 +532,9 @@ export class CreateTrFirewallV2Request extends $tea.Model {
|
|
|
530
532
|
regionNo: 'RegionNo',
|
|
531
533
|
routeMode: 'RouteMode',
|
|
532
534
|
trAttachmentMasterCidr: 'TrAttachmentMasterCidr',
|
|
535
|
+
trAttachmentMasterZone: 'TrAttachmentMasterZone',
|
|
533
536
|
trAttachmentSlaveCidr: 'TrAttachmentSlaveCidr',
|
|
537
|
+
trAttachmentSlaveZone: 'TrAttachmentSlaveZone',
|
|
534
538
|
transitRouterId: 'TransitRouterId',
|
|
535
539
|
};
|
|
536
540
|
}
|
|
@@ -548,7 +552,9 @@ export class CreateTrFirewallV2Request extends $tea.Model {
|
|
|
548
552
|
regionNo: 'string',
|
|
549
553
|
routeMode: 'string',
|
|
550
554
|
trAttachmentMasterCidr: 'string',
|
|
555
|
+
trAttachmentMasterZone: 'string',
|
|
551
556
|
trAttachmentSlaveCidr: 'string',
|
|
557
|
+
trAttachmentSlaveZone: 'string',
|
|
552
558
|
transitRouterId: 'string',
|
|
553
559
|
};
|
|
554
560
|
}
|
|
@@ -1665,6 +1671,96 @@ export class DeleteVpcFirewallControlPolicyResponse extends $tea.Model {
|
|
|
1665
1671
|
}
|
|
1666
1672
|
}
|
|
1667
1673
|
|
|
1674
|
+
export class DescribeACLProtectTrendRequest extends $tea.Model {
|
|
1675
|
+
endTime?: string;
|
|
1676
|
+
lang?: string;
|
|
1677
|
+
sourceIp?: string;
|
|
1678
|
+
startTime?: string;
|
|
1679
|
+
static names(): { [key: string]: string } {
|
|
1680
|
+
return {
|
|
1681
|
+
endTime: 'EndTime',
|
|
1682
|
+
lang: 'Lang',
|
|
1683
|
+
sourceIp: 'SourceIp',
|
|
1684
|
+
startTime: 'StartTime',
|
|
1685
|
+
};
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
static types(): { [key: string]: any } {
|
|
1689
|
+
return {
|
|
1690
|
+
endTime: 'string',
|
|
1691
|
+
lang: 'string',
|
|
1692
|
+
sourceIp: 'string',
|
|
1693
|
+
startTime: 'string',
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
|
|
1697
|
+
constructor(map?: { [key: string]: any }) {
|
|
1698
|
+
super(map);
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
export class DescribeACLProtectTrendResponseBody extends $tea.Model {
|
|
1703
|
+
inProtectCnt?: number;
|
|
1704
|
+
interVPCProtectCnt?: number;
|
|
1705
|
+
interval?: number;
|
|
1706
|
+
outProtectCnt?: number;
|
|
1707
|
+
requestId?: string;
|
|
1708
|
+
totalProtectCnt?: number;
|
|
1709
|
+
trendList?: DescribeACLProtectTrendResponseBodyTrendList[];
|
|
1710
|
+
static names(): { [key: string]: string } {
|
|
1711
|
+
return {
|
|
1712
|
+
inProtectCnt: 'InProtectCnt',
|
|
1713
|
+
interVPCProtectCnt: 'InterVPCProtectCnt',
|
|
1714
|
+
interval: 'Interval',
|
|
1715
|
+
outProtectCnt: 'OutProtectCnt',
|
|
1716
|
+
requestId: 'RequestId',
|
|
1717
|
+
totalProtectCnt: 'TotalProtectCnt',
|
|
1718
|
+
trendList: 'TrendList',
|
|
1719
|
+
};
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
static types(): { [key: string]: any } {
|
|
1723
|
+
return {
|
|
1724
|
+
inProtectCnt: 'number',
|
|
1725
|
+
interVPCProtectCnt: 'number',
|
|
1726
|
+
interval: 'number',
|
|
1727
|
+
outProtectCnt: 'number',
|
|
1728
|
+
requestId: 'string',
|
|
1729
|
+
totalProtectCnt: 'number',
|
|
1730
|
+
trendList: { 'type': 'array', 'itemType': DescribeACLProtectTrendResponseBodyTrendList },
|
|
1731
|
+
};
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
constructor(map?: { [key: string]: any }) {
|
|
1735
|
+
super(map);
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
export class DescribeACLProtectTrendResponse extends $tea.Model {
|
|
1740
|
+
headers: { [key: string]: string };
|
|
1741
|
+
statusCode: number;
|
|
1742
|
+
body: DescribeACLProtectTrendResponseBody;
|
|
1743
|
+
static names(): { [key: string]: string } {
|
|
1744
|
+
return {
|
|
1745
|
+
headers: 'headers',
|
|
1746
|
+
statusCode: 'statusCode',
|
|
1747
|
+
body: 'body',
|
|
1748
|
+
};
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
static types(): { [key: string]: any } {
|
|
1752
|
+
return {
|
|
1753
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1754
|
+
statusCode: 'number',
|
|
1755
|
+
body: DescribeACLProtectTrendResponseBody,
|
|
1756
|
+
};
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
constructor(map?: { [key: string]: any }) {
|
|
1760
|
+
super(map);
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1668
1764
|
export class DescribeAddressBookRequest extends $tea.Model {
|
|
1669
1765
|
containPort?: string;
|
|
1670
1766
|
currentPage?: string;
|
|
@@ -6872,6 +6968,28 @@ export class CreateTrFirewallV2RoutePolicyRequestSrcCandidateList extends $tea.M
|
|
|
6872
6968
|
}
|
|
6873
6969
|
}
|
|
6874
6970
|
|
|
6971
|
+
export class DescribeACLProtectTrendResponseBodyTrendList extends $tea.Model {
|
|
6972
|
+
protectCnt?: number;
|
|
6973
|
+
time?: number;
|
|
6974
|
+
static names(): { [key: string]: string } {
|
|
6975
|
+
return {
|
|
6976
|
+
protectCnt: 'ProtectCnt',
|
|
6977
|
+
time: 'Time',
|
|
6978
|
+
};
|
|
6979
|
+
}
|
|
6980
|
+
|
|
6981
|
+
static types(): { [key: string]: any } {
|
|
6982
|
+
return {
|
|
6983
|
+
protectCnt: 'number',
|
|
6984
|
+
time: 'number',
|
|
6985
|
+
};
|
|
6986
|
+
}
|
|
6987
|
+
|
|
6988
|
+
constructor(map?: { [key: string]: any }) {
|
|
6989
|
+
super(map);
|
|
6990
|
+
}
|
|
6991
|
+
}
|
|
6992
|
+
|
|
6875
6993
|
export class DescribeAddressBookResponseBodyAclsTagList extends $tea.Model {
|
|
6876
6994
|
tagKey?: string;
|
|
6877
6995
|
tagValue?: string;
|
|
@@ -10048,10 +10166,18 @@ export default class Client extends OpenApi {
|
|
|
10048
10166
|
query["TrAttachmentMasterCidr"] = request.trAttachmentMasterCidr;
|
|
10049
10167
|
}
|
|
10050
10168
|
|
|
10169
|
+
if (!Util.isUnset(request.trAttachmentMasterZone)) {
|
|
10170
|
+
query["TrAttachmentMasterZone"] = request.trAttachmentMasterZone;
|
|
10171
|
+
}
|
|
10172
|
+
|
|
10051
10173
|
if (!Util.isUnset(request.trAttachmentSlaveCidr)) {
|
|
10052
10174
|
query["TrAttachmentSlaveCidr"] = request.trAttachmentSlaveCidr;
|
|
10053
10175
|
}
|
|
10054
10176
|
|
|
10177
|
+
if (!Util.isUnset(request.trAttachmentSlaveZone)) {
|
|
10178
|
+
query["TrAttachmentSlaveZone"] = request.trAttachmentSlaveZone;
|
|
10179
|
+
}
|
|
10180
|
+
|
|
10055
10181
|
if (!Util.isUnset(request.transitRouterId)) {
|
|
10056
10182
|
query["TransitRouterId"] = request.transitRouterId;
|
|
10057
10183
|
}
|
|
@@ -10228,8 +10354,8 @@ export default class Client extends OpenApi {
|
|
|
10228
10354
|
}
|
|
10229
10355
|
|
|
10230
10356
|
/**
|
|
10231
|
-
* You can call
|
|
10232
|
-
* ###
|
|
10357
|
+
* You can call this operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [VPC firewall limits](~~172295~~).
|
|
10358
|
+
* ### [](#qps)QPS limit
|
|
10233
10359
|
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
10234
10360
|
*
|
|
10235
10361
|
* @param request CreateVpcFirewallConfigureRequest
|
|
@@ -10297,8 +10423,8 @@ export default class Client extends OpenApi {
|
|
|
10297
10423
|
}
|
|
10298
10424
|
|
|
10299
10425
|
/**
|
|
10300
|
-
* You can call
|
|
10301
|
-
* ###
|
|
10426
|
+
* You can call this operation to create a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit. The VPC firewall does not control the mutual access traffic between VPCs that reside in different regions or belong to different Alibaba Cloud accounts. The firewall also does not control the mutual access traffic between VPCs and virtual border routers (VBRs). For more information, see [VPC firewall limits](~~172295~~).
|
|
10427
|
+
* ### [](#qps)QPS limit
|
|
10302
10428
|
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
10303
10429
|
*
|
|
10304
10430
|
* @param request CreateVpcFirewallConfigureRequest
|
|
@@ -10887,6 +11013,51 @@ export default class Client extends OpenApi {
|
|
|
10887
11013
|
return await this.deleteVpcFirewallControlPolicyWithOptions(request, runtime);
|
|
10888
11014
|
}
|
|
10889
11015
|
|
|
11016
|
+
async describeACLProtectTrendWithOptions(request: DescribeACLProtectTrendRequest, runtime: $Util.RuntimeOptions): Promise<DescribeACLProtectTrendResponse> {
|
|
11017
|
+
Util.validateModel(request);
|
|
11018
|
+
let query = { };
|
|
11019
|
+
if (!Util.isUnset(request.endTime)) {
|
|
11020
|
+
query["EndTime"] = request.endTime;
|
|
11021
|
+
}
|
|
11022
|
+
|
|
11023
|
+
if (!Util.isUnset(request.lang)) {
|
|
11024
|
+
query["Lang"] = request.lang;
|
|
11025
|
+
}
|
|
11026
|
+
|
|
11027
|
+
if (!Util.isUnset(request.lang)) {
|
|
11028
|
+
query["Lang"] = request.lang;
|
|
11029
|
+
}
|
|
11030
|
+
|
|
11031
|
+
if (!Util.isUnset(request.sourceIp)) {
|
|
11032
|
+
query["SourceIp"] = request.sourceIp;
|
|
11033
|
+
}
|
|
11034
|
+
|
|
11035
|
+
if (!Util.isUnset(request.startTime)) {
|
|
11036
|
+
query["StartTime"] = request.startTime;
|
|
11037
|
+
}
|
|
11038
|
+
|
|
11039
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11040
|
+
query: OpenApiUtil.query(query),
|
|
11041
|
+
});
|
|
11042
|
+
let params = new $OpenApi.Params({
|
|
11043
|
+
action: "DescribeACLProtectTrend",
|
|
11044
|
+
version: "2017-12-07",
|
|
11045
|
+
protocol: "HTTPS",
|
|
11046
|
+
pathname: "/",
|
|
11047
|
+
method: "POST",
|
|
11048
|
+
authType: "AK",
|
|
11049
|
+
style: "RPC",
|
|
11050
|
+
reqBodyType: "formData",
|
|
11051
|
+
bodyType: "json",
|
|
11052
|
+
});
|
|
11053
|
+
return $tea.cast<DescribeACLProtectTrendResponse>(await this.callApi(params, req, runtime), new DescribeACLProtectTrendResponse({}));
|
|
11054
|
+
}
|
|
11055
|
+
|
|
11056
|
+
async describeACLProtectTrend(request: DescribeACLProtectTrendRequest): Promise<DescribeACLProtectTrendResponse> {
|
|
11057
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11058
|
+
return await this.describeACLProtectTrendWithOptions(request, runtime);
|
|
11059
|
+
}
|
|
11060
|
+
|
|
10890
11061
|
/**
|
|
10891
11062
|
* You can call the DescribeAddressBook operation to query the details about an address book for an access control policy.
|
|
10892
11063
|
* ## Limits
|
|
@@ -13167,8 +13338,8 @@ export default class Client extends OpenApi {
|
|
|
13167
13338
|
}
|
|
13168
13339
|
|
|
13169
13340
|
/**
|
|
13170
|
-
* You can call
|
|
13171
|
-
* ##
|
|
13341
|
+
* You can call this operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
|
|
13342
|
+
* ## [](#qps)Limit
|
|
13172
13343
|
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
13173
13344
|
*
|
|
13174
13345
|
* @param request ModifyControlPolicyRequest
|
|
@@ -13284,8 +13455,8 @@ export default class Client extends OpenApi {
|
|
|
13284
13455
|
}
|
|
13285
13456
|
|
|
13286
13457
|
/**
|
|
13287
|
-
* You can call
|
|
13288
|
-
* ##
|
|
13458
|
+
* You can call this operation to modify the configurations of an access control policy. The policy allows Cloud Firewall to allow, deny, or monitor the traffic that passes through Cloud Firewall.
|
|
13459
|
+
* ## [](#qps)Limit
|
|
13289
13460
|
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
13290
13461
|
*
|
|
13291
13462
|
* @param request ModifyControlPolicyRequest
|