@alicloud/cloudfw20171207 1.4.0 → 1.5.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 CHANGED
@@ -276,7 +276,9 @@ export declare class CreateTrFirewallV2Request extends $tea.Model {
276
276
  regionNo?: string;
277
277
  routeMode?: string;
278
278
  trAttachmentMasterCidr?: string;
279
+ trAttachmentMasterZone?: string;
279
280
  trAttachmentSlaveCidr?: string;
281
+ trAttachmentSlaveZone?: string;
280
282
  transitRouterId?: string;
281
283
  static names(): {
282
284
  [key: string]: string;
@@ -923,6 +925,55 @@ export declare class DeleteVpcFirewallControlPolicyResponse extends $tea.Model {
923
925
  [key: string]: any;
924
926
  });
925
927
  }
928
+ export declare class DescribeACLProtectTrendRequest extends $tea.Model {
929
+ endTime?: string;
930
+ lang?: string;
931
+ sourceIp?: string;
932
+ startTime?: string;
933
+ static names(): {
934
+ [key: string]: string;
935
+ };
936
+ static types(): {
937
+ [key: string]: any;
938
+ };
939
+ constructor(map?: {
940
+ [key: string]: any;
941
+ });
942
+ }
943
+ export declare class DescribeACLProtectTrendResponseBody extends $tea.Model {
944
+ inProtectCnt?: number;
945
+ interVPCProtectCnt?: number;
946
+ interval?: number;
947
+ outProtectCnt?: number;
948
+ requestId?: string;
949
+ totalProtectCnt?: number;
950
+ trendList?: DescribeACLProtectTrendResponseBodyTrendList[];
951
+ static names(): {
952
+ [key: string]: string;
953
+ };
954
+ static types(): {
955
+ [key: string]: any;
956
+ };
957
+ constructor(map?: {
958
+ [key: string]: any;
959
+ });
960
+ }
961
+ export declare class DescribeACLProtectTrendResponse extends $tea.Model {
962
+ headers: {
963
+ [key: string]: string;
964
+ };
965
+ statusCode: number;
966
+ body: DescribeACLProtectTrendResponseBody;
967
+ static names(): {
968
+ [key: string]: string;
969
+ };
970
+ static types(): {
971
+ [key: string]: any;
972
+ };
973
+ constructor(map?: {
974
+ [key: string]: any;
975
+ });
976
+ }
926
977
  export declare class DescribeAddressBookRequest extends $tea.Model {
927
978
  containPort?: string;
928
979
  currentPage?: string;
@@ -3770,6 +3821,19 @@ export declare class CreateTrFirewallV2RoutePolicyRequestSrcCandidateList extend
3770
3821
  [key: string]: any;
3771
3822
  });
3772
3823
  }
3824
+ export declare class DescribeACLProtectTrendResponseBodyTrendList extends $tea.Model {
3825
+ protectCnt?: number;
3826
+ time?: number;
3827
+ static names(): {
3828
+ [key: string]: string;
3829
+ };
3830
+ static types(): {
3831
+ [key: string]: any;
3832
+ };
3833
+ constructor(map?: {
3834
+ [key: string]: any;
3835
+ });
3836
+ }
3773
3837
  export declare class DescribeAddressBookResponseBodyAclsTagList extends $tea.Model {
3774
3838
  tagKey?: string;
3775
3839
  tagValue?: string;
@@ -5332,6 +5396,8 @@ export default class Client extends OpenApi {
5332
5396
  * @return DeleteVpcFirewallControlPolicyResponse
5333
5397
  */
5334
5398
  deleteVpcFirewallControlPolicy(request: DeleteVpcFirewallControlPolicyRequest): Promise<DeleteVpcFirewallControlPolicyResponse>;
5399
+ describeACLProtectTrendWithOptions(request: DescribeACLProtectTrendRequest, runtime: $Util.RuntimeOptions): Promise<DescribeACLProtectTrendResponse>;
5400
+ describeACLProtectTrend(request: DescribeACLProtectTrendRequest): Promise<DescribeACLProtectTrendResponse>;
5335
5401
  /**
5336
5402
  * You can call the DescribeAddressBook operation to query the details about an address book for an access control policy.
5337
5403
  * ## Limits
package/dist/client.js CHANGED
@@ -416,7 +416,9 @@ class CreateTrFirewallV2Request extends $tea.Model {
416
416
  regionNo: 'RegionNo',
417
417
  routeMode: 'RouteMode',
418
418
  trAttachmentMasterCidr: 'TrAttachmentMasterCidr',
419
+ trAttachmentMasterZone: 'TrAttachmentMasterZone',
419
420
  trAttachmentSlaveCidr: 'TrAttachmentSlaveCidr',
421
+ trAttachmentSlaveZone: 'TrAttachmentSlaveZone',
420
422
  transitRouterId: 'TransitRouterId',
421
423
  };
422
424
  }
@@ -433,7 +435,9 @@ class CreateTrFirewallV2Request extends $tea.Model {
433
435
  regionNo: 'string',
434
436
  routeMode: 'string',
435
437
  trAttachmentMasterCidr: 'string',
438
+ trAttachmentMasterZone: 'string',
436
439
  trAttachmentSlaveCidr: 'string',
440
+ trAttachmentSlaveZone: 'string',
437
441
  transitRouterId: 'string',
438
442
  };
439
443
  }
@@ -1317,6 +1321,76 @@ class DeleteVpcFirewallControlPolicyResponse extends $tea.Model {
1317
1321
  }
1318
1322
  }
1319
1323
  exports.DeleteVpcFirewallControlPolicyResponse = DeleteVpcFirewallControlPolicyResponse;
1324
+ class DescribeACLProtectTrendRequest extends $tea.Model {
1325
+ constructor(map) {
1326
+ super(map);
1327
+ }
1328
+ static names() {
1329
+ return {
1330
+ endTime: 'EndTime',
1331
+ lang: 'Lang',
1332
+ sourceIp: 'SourceIp',
1333
+ startTime: 'StartTime',
1334
+ };
1335
+ }
1336
+ static types() {
1337
+ return {
1338
+ endTime: 'string',
1339
+ lang: 'string',
1340
+ sourceIp: 'string',
1341
+ startTime: 'string',
1342
+ };
1343
+ }
1344
+ }
1345
+ exports.DescribeACLProtectTrendRequest = DescribeACLProtectTrendRequest;
1346
+ class DescribeACLProtectTrendResponseBody extends $tea.Model {
1347
+ constructor(map) {
1348
+ super(map);
1349
+ }
1350
+ static names() {
1351
+ return {
1352
+ inProtectCnt: 'InProtectCnt',
1353
+ interVPCProtectCnt: 'InterVPCProtectCnt',
1354
+ interval: 'Interval',
1355
+ outProtectCnt: 'OutProtectCnt',
1356
+ requestId: 'RequestId',
1357
+ totalProtectCnt: 'TotalProtectCnt',
1358
+ trendList: 'TrendList',
1359
+ };
1360
+ }
1361
+ static types() {
1362
+ return {
1363
+ inProtectCnt: 'number',
1364
+ interVPCProtectCnt: 'number',
1365
+ interval: 'number',
1366
+ outProtectCnt: 'number',
1367
+ requestId: 'string',
1368
+ totalProtectCnt: 'number',
1369
+ trendList: { 'type': 'array', 'itemType': DescribeACLProtectTrendResponseBodyTrendList },
1370
+ };
1371
+ }
1372
+ }
1373
+ exports.DescribeACLProtectTrendResponseBody = DescribeACLProtectTrendResponseBody;
1374
+ class DescribeACLProtectTrendResponse extends $tea.Model {
1375
+ constructor(map) {
1376
+ super(map);
1377
+ }
1378
+ static names() {
1379
+ return {
1380
+ headers: 'headers',
1381
+ statusCode: 'statusCode',
1382
+ body: 'body',
1383
+ };
1384
+ }
1385
+ static types() {
1386
+ return {
1387
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1388
+ statusCode: 'number',
1389
+ body: DescribeACLProtectTrendResponseBody,
1390
+ };
1391
+ }
1392
+ }
1393
+ exports.DescribeACLProtectTrendResponse = DescribeACLProtectTrendResponse;
1320
1394
  class DescribeAddressBookRequest extends $tea.Model {
1321
1395
  constructor(map) {
1322
1396
  super(map);
@@ -5375,6 +5449,24 @@ class CreateTrFirewallV2RoutePolicyRequestSrcCandidateList extends $tea.Model {
5375
5449
  }
5376
5450
  }
5377
5451
  exports.CreateTrFirewallV2RoutePolicyRequestSrcCandidateList = CreateTrFirewallV2RoutePolicyRequestSrcCandidateList;
5452
+ class DescribeACLProtectTrendResponseBodyTrendList extends $tea.Model {
5453
+ constructor(map) {
5454
+ super(map);
5455
+ }
5456
+ static names() {
5457
+ return {
5458
+ protectCnt: 'ProtectCnt',
5459
+ time: 'Time',
5460
+ };
5461
+ }
5462
+ static types() {
5463
+ return {
5464
+ protectCnt: 'number',
5465
+ time: 'number',
5466
+ };
5467
+ }
5468
+ }
5469
+ exports.DescribeACLProtectTrendResponseBodyTrendList = DescribeACLProtectTrendResponseBodyTrendList;
5378
5470
  class DescribeAddressBookResponseBodyAclsTagList extends $tea.Model {
5379
5471
  constructor(map) {
5380
5472
  super(map);
@@ -7807,9 +7899,15 @@ class Client extends openapi_client_1.default {
7807
7899
  if (!tea_util_1.default.isUnset(request.trAttachmentMasterCidr)) {
7808
7900
  query["TrAttachmentMasterCidr"] = request.trAttachmentMasterCidr;
7809
7901
  }
7902
+ if (!tea_util_1.default.isUnset(request.trAttachmentMasterZone)) {
7903
+ query["TrAttachmentMasterZone"] = request.trAttachmentMasterZone;
7904
+ }
7810
7905
  if (!tea_util_1.default.isUnset(request.trAttachmentSlaveCidr)) {
7811
7906
  query["TrAttachmentSlaveCidr"] = request.trAttachmentSlaveCidr;
7812
7907
  }
7908
+ if (!tea_util_1.default.isUnset(request.trAttachmentSlaveZone)) {
7909
+ query["TrAttachmentSlaveZone"] = request.trAttachmentSlaveZone;
7910
+ }
7813
7911
  if (!tea_util_1.default.isUnset(request.transitRouterId)) {
7814
7912
  query["TransitRouterId"] = request.transitRouterId;
7815
7913
  }
@@ -8537,6 +8635,44 @@ class Client extends openapi_client_1.default {
8537
8635
  let runtime = new $Util.RuntimeOptions({});
8538
8636
  return await this.deleteVpcFirewallControlPolicyWithOptions(request, runtime);
8539
8637
  }
8638
+ async describeACLProtectTrendWithOptions(request, runtime) {
8639
+ tea_util_1.default.validateModel(request);
8640
+ let query = {};
8641
+ if (!tea_util_1.default.isUnset(request.endTime)) {
8642
+ query["EndTime"] = request.endTime;
8643
+ }
8644
+ if (!tea_util_1.default.isUnset(request.lang)) {
8645
+ query["Lang"] = request.lang;
8646
+ }
8647
+ if (!tea_util_1.default.isUnset(request.lang)) {
8648
+ query["Lang"] = request.lang;
8649
+ }
8650
+ if (!tea_util_1.default.isUnset(request.sourceIp)) {
8651
+ query["SourceIp"] = request.sourceIp;
8652
+ }
8653
+ if (!tea_util_1.default.isUnset(request.startTime)) {
8654
+ query["StartTime"] = request.startTime;
8655
+ }
8656
+ let req = new $OpenApi.OpenApiRequest({
8657
+ query: openapi_util_1.default.query(query),
8658
+ });
8659
+ let params = new $OpenApi.Params({
8660
+ action: "DescribeACLProtectTrend",
8661
+ version: "2017-12-07",
8662
+ protocol: "HTTPS",
8663
+ pathname: "/",
8664
+ method: "POST",
8665
+ authType: "AK",
8666
+ style: "RPC",
8667
+ reqBodyType: "formData",
8668
+ bodyType: "json",
8669
+ });
8670
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeACLProtectTrendResponse({}));
8671
+ }
8672
+ async describeACLProtectTrend(request) {
8673
+ let runtime = new $Util.RuntimeOptions({});
8674
+ return await this.describeACLProtectTrendWithOptions(request, runtime);
8675
+ }
8540
8676
  /**
8541
8677
  * You can call the DescribeAddressBook operation to query the details about an address book for an access control policy.
8542
8678
  * ## Limits