@alicloud/cloudfw20171207 1.2.1 → 1.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cloudfw20171207",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -22,7 +22,7 @@
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.5",
24
24
  "@alicloud/openapi-client": "^0.4.4",
25
- "@alicloud/openapi-util": "^0.3.0",
25
+ "@alicloud/openapi-util": "^0.3.1",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
28
28
  "files": [
package/src/client.ts CHANGED
@@ -356,6 +356,7 @@ export class CreateVpcFirewallCenConfigureRequest extends $tea.Model {
356
356
  lang?: string;
357
357
  memberUid?: string;
358
358
  networkInstanceId?: string;
359
+ vSwitchId?: string;
359
360
  vpcFirewallName?: string;
360
361
  vpcRegion?: string;
361
362
  static names(): { [key: string]: string } {
@@ -365,6 +366,7 @@ export class CreateVpcFirewallCenConfigureRequest extends $tea.Model {
365
366
  lang: 'Lang',
366
367
  memberUid: 'MemberUid',
367
368
  networkInstanceId: 'NetworkInstanceId',
369
+ vSwitchId: 'VSwitchId',
368
370
  vpcFirewallName: 'VpcFirewallName',
369
371
  vpcRegion: 'VpcRegion',
370
372
  };
@@ -377,6 +379,7 @@ export class CreateVpcFirewallCenConfigureRequest extends $tea.Model {
377
379
  lang: 'string',
378
380
  memberUid: 'string',
379
381
  networkInstanceId: 'string',
382
+ vSwitchId: 'string',
380
383
  vpcFirewallName: 'string',
381
384
  vpcRegion: 'string',
382
385
  };
@@ -434,6 +437,99 @@ export class CreateVpcFirewallCenConfigureResponse extends $tea.Model {
434
437
  }
435
438
  }
436
439
 
440
+ export class CreateVpcFirewallConfigureRequest extends $tea.Model {
441
+ firewallSwitch?: string;
442
+ lang?: string;
443
+ localVpcCidrTableList?: string;
444
+ localVpcId?: string;
445
+ localVpcRegion?: string;
446
+ memberUid?: string;
447
+ peerVpcCidrTableList?: string;
448
+ peerVpcId?: string;
449
+ peerVpcRegion?: string;
450
+ vpcFirewallName?: string;
451
+ static names(): { [key: string]: string } {
452
+ return {
453
+ firewallSwitch: 'FirewallSwitch',
454
+ lang: 'Lang',
455
+ localVpcCidrTableList: 'LocalVpcCidrTableList',
456
+ localVpcId: 'LocalVpcId',
457
+ localVpcRegion: 'LocalVpcRegion',
458
+ memberUid: 'MemberUid',
459
+ peerVpcCidrTableList: 'PeerVpcCidrTableList',
460
+ peerVpcId: 'PeerVpcId',
461
+ peerVpcRegion: 'PeerVpcRegion',
462
+ vpcFirewallName: 'VpcFirewallName',
463
+ };
464
+ }
465
+
466
+ static types(): { [key: string]: any } {
467
+ return {
468
+ firewallSwitch: 'string',
469
+ lang: 'string',
470
+ localVpcCidrTableList: 'string',
471
+ localVpcId: 'string',
472
+ localVpcRegion: 'string',
473
+ memberUid: 'string',
474
+ peerVpcCidrTableList: 'string',
475
+ peerVpcId: 'string',
476
+ peerVpcRegion: 'string',
477
+ vpcFirewallName: 'string',
478
+ };
479
+ }
480
+
481
+ constructor(map?: { [key: string]: any }) {
482
+ super(map);
483
+ }
484
+ }
485
+
486
+ export class CreateVpcFirewallConfigureResponseBody extends $tea.Model {
487
+ requestId?: string;
488
+ vpcFirewallId?: string;
489
+ static names(): { [key: string]: string } {
490
+ return {
491
+ requestId: 'RequestId',
492
+ vpcFirewallId: 'VpcFirewallId',
493
+ };
494
+ }
495
+
496
+ static types(): { [key: string]: any } {
497
+ return {
498
+ requestId: 'string',
499
+ vpcFirewallId: 'string',
500
+ };
501
+ }
502
+
503
+ constructor(map?: { [key: string]: any }) {
504
+ super(map);
505
+ }
506
+ }
507
+
508
+ export class CreateVpcFirewallConfigureResponse extends $tea.Model {
509
+ headers: { [key: string]: string };
510
+ statusCode: number;
511
+ body: CreateVpcFirewallConfigureResponseBody;
512
+ static names(): { [key: string]: string } {
513
+ return {
514
+ headers: 'headers',
515
+ statusCode: 'statusCode',
516
+ body: 'body',
517
+ };
518
+ }
519
+
520
+ static types(): { [key: string]: any } {
521
+ return {
522
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
523
+ statusCode: 'number',
524
+ body: CreateVpcFirewallConfigureResponseBody,
525
+ };
526
+ }
527
+
528
+ constructor(map?: { [key: string]: any }) {
529
+ super(map);
530
+ }
531
+ }
532
+
437
533
  export class CreateVpcFirewallControlPolicyRequest extends $tea.Model {
438
534
  aclAction?: string;
439
535
  applicationName?: string;
@@ -6525,6 +6621,10 @@ export default class Client extends OpenApi {
6525
6621
  query["NetworkInstanceId"] = request.networkInstanceId;
6526
6622
  }
6527
6623
 
6624
+ if (!Util.isUnset(request.vSwitchId)) {
6625
+ query["VSwitchId"] = request.vSwitchId;
6626
+ }
6627
+
6528
6628
  if (!Util.isUnset(request.vpcFirewallName)) {
6529
6629
  query["VpcFirewallName"] = request.vpcFirewallName;
6530
6630
  }
@@ -6563,6 +6663,88 @@ export default class Client extends OpenApi {
6563
6663
  return await this.createVpcFirewallCenConfigureWithOptions(request, runtime);
6564
6664
  }
6565
6665
 
6666
+ /**
6667
+ * You can call the CreateVpcFirewallConfigure 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 [Limits on VPC firewalls](https://www.alibabacloud.com/help/en/cloud-firewall/latest/vpc-firewall-limits).
6668
+ * ### Limits
6669
+ * 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.
6670
+ *
6671
+ * @param request CreateVpcFirewallConfigureRequest
6672
+ * @param runtime runtime options for this request RuntimeOptions
6673
+ * @return CreateVpcFirewallConfigureResponse
6674
+ */
6675
+ async createVpcFirewallConfigureWithOptions(request: CreateVpcFirewallConfigureRequest, runtime: $Util.RuntimeOptions): Promise<CreateVpcFirewallConfigureResponse> {
6676
+ Util.validateModel(request);
6677
+ let query = { };
6678
+ if (!Util.isUnset(request.firewallSwitch)) {
6679
+ query["FirewallSwitch"] = request.firewallSwitch;
6680
+ }
6681
+
6682
+ if (!Util.isUnset(request.lang)) {
6683
+ query["Lang"] = request.lang;
6684
+ }
6685
+
6686
+ if (!Util.isUnset(request.localVpcCidrTableList)) {
6687
+ query["LocalVpcCidrTableList"] = request.localVpcCidrTableList;
6688
+ }
6689
+
6690
+ if (!Util.isUnset(request.localVpcId)) {
6691
+ query["LocalVpcId"] = request.localVpcId;
6692
+ }
6693
+
6694
+ if (!Util.isUnset(request.localVpcRegion)) {
6695
+ query["LocalVpcRegion"] = request.localVpcRegion;
6696
+ }
6697
+
6698
+ if (!Util.isUnset(request.memberUid)) {
6699
+ query["MemberUid"] = request.memberUid;
6700
+ }
6701
+
6702
+ if (!Util.isUnset(request.peerVpcCidrTableList)) {
6703
+ query["PeerVpcCidrTableList"] = request.peerVpcCidrTableList;
6704
+ }
6705
+
6706
+ if (!Util.isUnset(request.peerVpcId)) {
6707
+ query["PeerVpcId"] = request.peerVpcId;
6708
+ }
6709
+
6710
+ if (!Util.isUnset(request.peerVpcRegion)) {
6711
+ query["PeerVpcRegion"] = request.peerVpcRegion;
6712
+ }
6713
+
6714
+ if (!Util.isUnset(request.vpcFirewallName)) {
6715
+ query["VpcFirewallName"] = request.vpcFirewallName;
6716
+ }
6717
+
6718
+ let req = new $OpenApi.OpenApiRequest({
6719
+ query: OpenApiUtil.query(query),
6720
+ });
6721
+ let params = new $OpenApi.Params({
6722
+ action: "CreateVpcFirewallConfigure",
6723
+ version: "2017-12-07",
6724
+ protocol: "HTTPS",
6725
+ pathname: "/",
6726
+ method: "POST",
6727
+ authType: "AK",
6728
+ style: "RPC",
6729
+ reqBodyType: "formData",
6730
+ bodyType: "json",
6731
+ });
6732
+ return $tea.cast<CreateVpcFirewallConfigureResponse>(await this.callApi(params, req, runtime), new CreateVpcFirewallConfigureResponse({}));
6733
+ }
6734
+
6735
+ /**
6736
+ * You can call the CreateVpcFirewallConfigure 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 [Limits on VPC firewalls](https://www.alibabacloud.com/help/en/cloud-firewall/latest/vpc-firewall-limits).
6737
+ * ### Limits
6738
+ * 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.
6739
+ *
6740
+ * @param request CreateVpcFirewallConfigureRequest
6741
+ * @return CreateVpcFirewallConfigureResponse
6742
+ */
6743
+ async createVpcFirewallConfigure(request: CreateVpcFirewallConfigureRequest): Promise<CreateVpcFirewallConfigureResponse> {
6744
+ let runtime = new $Util.RuntimeOptions({ });
6745
+ return await this.createVpcFirewallConfigureWithOptions(request, runtime);
6746
+ }
6747
+
6566
6748
  /**
6567
6749
  * You can call the CreateVpcFirewallControlPolicy operation to create an access control policy in a specified policy group for a VPC firewall. Different access control policies are used when a VPC firewall is used to protect traffic between two VPCs that are connected by using a Cloud Enterprise Network (CEN) instance or an Express Connect circuit.
6568
6750
  * ## Limits
@@ -8292,7 +8474,7 @@ export default class Client extends OpenApi {
8292
8474
  }
8293
8475
 
8294
8476
  /**
8295
- * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit.
8477
+ * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit.
8296
8478
  * ## Limits
8297
8479
  * 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.
8298
8480
  *
@@ -8369,7 +8551,7 @@ export default class Client extends OpenApi {
8369
8551
  }
8370
8552
 
8371
8553
  /**
8372
- * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit.
8554
+ * You can call the DescribeVpcFirewallList operation to query the details about VPC firewalls by page. Each VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit.
8373
8555
  * ## Limits
8374
8556
  * 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.
8375
8557
  *