@alicloud/vpc20160428 6.4.3 → 6.4.4
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 +58 -2
- package/dist/client.js +117 -17
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +134 -3
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -23755,10 +23755,12 @@ export class GetNatGatewayAttributeResponseBody extends $tea.Model {
|
|
|
23755
23755
|
deletionProtectionInfo?: GetNatGatewayAttributeResponseBodyDeletionProtectionInfo;
|
|
23756
23756
|
description?: string;
|
|
23757
23757
|
ecsMetricEnabled?: boolean;
|
|
23758
|
+
enableSessionLog?: boolean;
|
|
23758
23759
|
expiredTime?: string;
|
|
23759
23760
|
forwardTable?: GetNatGatewayAttributeResponseBodyForwardTable;
|
|
23760
23761
|
fullNatTable?: GetNatGatewayAttributeResponseBodyFullNatTable;
|
|
23761
23762
|
ipList?: GetNatGatewayAttributeResponseBodyIpList[];
|
|
23763
|
+
logDelivery?: GetNatGatewayAttributeResponseBodyLogDelivery;
|
|
23762
23764
|
name?: string;
|
|
23763
23765
|
natGatewayId?: string;
|
|
23764
23766
|
natType?: string;
|
|
@@ -23780,10 +23782,12 @@ export class GetNatGatewayAttributeResponseBody extends $tea.Model {
|
|
|
23780
23782
|
deletionProtectionInfo: 'DeletionProtectionInfo',
|
|
23781
23783
|
description: 'Description',
|
|
23782
23784
|
ecsMetricEnabled: 'EcsMetricEnabled',
|
|
23785
|
+
enableSessionLog: 'EnableSessionLog',
|
|
23783
23786
|
expiredTime: 'ExpiredTime',
|
|
23784
23787
|
forwardTable: 'ForwardTable',
|
|
23785
23788
|
fullNatTable: 'FullNatTable',
|
|
23786
23789
|
ipList: 'IpList',
|
|
23790
|
+
logDelivery: 'LogDelivery',
|
|
23787
23791
|
name: 'Name',
|
|
23788
23792
|
natGatewayId: 'NatGatewayId',
|
|
23789
23793
|
natType: 'NatType',
|
|
@@ -23808,10 +23812,12 @@ export class GetNatGatewayAttributeResponseBody extends $tea.Model {
|
|
|
23808
23812
|
deletionProtectionInfo: GetNatGatewayAttributeResponseBodyDeletionProtectionInfo,
|
|
23809
23813
|
description: 'string',
|
|
23810
23814
|
ecsMetricEnabled: 'boolean',
|
|
23815
|
+
enableSessionLog: 'boolean',
|
|
23811
23816
|
expiredTime: 'string',
|
|
23812
23817
|
forwardTable: GetNatGatewayAttributeResponseBodyForwardTable,
|
|
23813
23818
|
fullNatTable: GetNatGatewayAttributeResponseBodyFullNatTable,
|
|
23814
23819
|
ipList: { 'type': 'array', 'itemType': GetNatGatewayAttributeResponseBodyIpList },
|
|
23820
|
+
logDelivery: GetNatGatewayAttributeResponseBodyLogDelivery,
|
|
23815
23821
|
name: 'string',
|
|
23816
23822
|
natGatewayId: 'string',
|
|
23817
23823
|
natType: 'string',
|
|
@@ -29480,7 +29486,9 @@ export class ModifyIpv6InternetBandwidthResponse extends $tea.Model {
|
|
|
29480
29486
|
export class ModifyNatGatewayAttributeRequest extends $tea.Model {
|
|
29481
29487
|
description?: string;
|
|
29482
29488
|
eipBindMode?: string;
|
|
29489
|
+
enableSessionLog?: boolean;
|
|
29483
29490
|
icmpReplyEnabled?: boolean;
|
|
29491
|
+
logDelivery?: ModifyNatGatewayAttributeRequestLogDelivery;
|
|
29484
29492
|
name?: string;
|
|
29485
29493
|
natGatewayId?: string;
|
|
29486
29494
|
ownerAccount?: string;
|
|
@@ -29492,7 +29500,9 @@ export class ModifyNatGatewayAttributeRequest extends $tea.Model {
|
|
|
29492
29500
|
return {
|
|
29493
29501
|
description: 'Description',
|
|
29494
29502
|
eipBindMode: 'EipBindMode',
|
|
29503
|
+
enableSessionLog: 'EnableSessionLog',
|
|
29495
29504
|
icmpReplyEnabled: 'IcmpReplyEnabled',
|
|
29505
|
+
logDelivery: 'LogDelivery',
|
|
29496
29506
|
name: 'Name',
|
|
29497
29507
|
natGatewayId: 'NatGatewayId',
|
|
29498
29508
|
ownerAccount: 'OwnerAccount',
|
|
@@ -29507,7 +29517,61 @@ export class ModifyNatGatewayAttributeRequest extends $tea.Model {
|
|
|
29507
29517
|
return {
|
|
29508
29518
|
description: 'string',
|
|
29509
29519
|
eipBindMode: 'string',
|
|
29520
|
+
enableSessionLog: 'boolean',
|
|
29510
29521
|
icmpReplyEnabled: 'boolean',
|
|
29522
|
+
logDelivery: ModifyNatGatewayAttributeRequestLogDelivery,
|
|
29523
|
+
name: 'string',
|
|
29524
|
+
natGatewayId: 'string',
|
|
29525
|
+
ownerAccount: 'string',
|
|
29526
|
+
ownerId: 'number',
|
|
29527
|
+
regionId: 'string',
|
|
29528
|
+
resourceOwnerAccount: 'string',
|
|
29529
|
+
resourceOwnerId: 'number',
|
|
29530
|
+
};
|
|
29531
|
+
}
|
|
29532
|
+
|
|
29533
|
+
constructor(map?: { [key: string]: any }) {
|
|
29534
|
+
super(map);
|
|
29535
|
+
}
|
|
29536
|
+
}
|
|
29537
|
+
|
|
29538
|
+
export class ModifyNatGatewayAttributeShrinkRequest extends $tea.Model {
|
|
29539
|
+
description?: string;
|
|
29540
|
+
eipBindMode?: string;
|
|
29541
|
+
enableSessionLog?: boolean;
|
|
29542
|
+
icmpReplyEnabled?: boolean;
|
|
29543
|
+
logDeliveryShrink?: string;
|
|
29544
|
+
name?: string;
|
|
29545
|
+
natGatewayId?: string;
|
|
29546
|
+
ownerAccount?: string;
|
|
29547
|
+
ownerId?: number;
|
|
29548
|
+
regionId?: string;
|
|
29549
|
+
resourceOwnerAccount?: string;
|
|
29550
|
+
resourceOwnerId?: number;
|
|
29551
|
+
static names(): { [key: string]: string } {
|
|
29552
|
+
return {
|
|
29553
|
+
description: 'Description',
|
|
29554
|
+
eipBindMode: 'EipBindMode',
|
|
29555
|
+
enableSessionLog: 'EnableSessionLog',
|
|
29556
|
+
icmpReplyEnabled: 'IcmpReplyEnabled',
|
|
29557
|
+
logDeliveryShrink: 'LogDelivery',
|
|
29558
|
+
name: 'Name',
|
|
29559
|
+
natGatewayId: 'NatGatewayId',
|
|
29560
|
+
ownerAccount: 'OwnerAccount',
|
|
29561
|
+
ownerId: 'OwnerId',
|
|
29562
|
+
regionId: 'RegionId',
|
|
29563
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
29564
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
29565
|
+
};
|
|
29566
|
+
}
|
|
29567
|
+
|
|
29568
|
+
static types(): { [key: string]: any } {
|
|
29569
|
+
return {
|
|
29570
|
+
description: 'string',
|
|
29571
|
+
eipBindMode: 'string',
|
|
29572
|
+
enableSessionLog: 'boolean',
|
|
29573
|
+
icmpReplyEnabled: 'boolean',
|
|
29574
|
+
logDeliveryShrink: 'string',
|
|
29511
29575
|
name: 'string',
|
|
29512
29576
|
natGatewayId: 'string',
|
|
29513
29577
|
ownerAccount: 'string',
|
|
@@ -41749,6 +41813,7 @@ export class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway extends $tea.M
|
|
|
41749
41813
|
description?: string;
|
|
41750
41814
|
ecsMetricEnabled?: boolean;
|
|
41751
41815
|
eipBindMode?: string;
|
|
41816
|
+
enableSessionLog?: string;
|
|
41752
41817
|
expiredTime?: string;
|
|
41753
41818
|
forwardTableIds?: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds;
|
|
41754
41819
|
fullNatTableIds?: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayFullNatTableIds;
|
|
@@ -41780,6 +41845,7 @@ export class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway extends $tea.M
|
|
|
41780
41845
|
description: 'Description',
|
|
41781
41846
|
ecsMetricEnabled: 'EcsMetricEnabled',
|
|
41782
41847
|
eipBindMode: 'EipBindMode',
|
|
41848
|
+
enableSessionLog: 'EnableSessionLog',
|
|
41783
41849
|
expiredTime: 'ExpiredTime',
|
|
41784
41850
|
forwardTableIds: 'ForwardTableIds',
|
|
41785
41851
|
fullNatTableIds: 'FullNatTableIds',
|
|
@@ -41814,6 +41880,7 @@ export class DescribeNatGatewaysResponseBodyNatGatewaysNatGateway extends $tea.M
|
|
|
41814
41880
|
description: 'string',
|
|
41815
41881
|
ecsMetricEnabled: 'boolean',
|
|
41816
41882
|
eipBindMode: 'string',
|
|
41883
|
+
enableSessionLog: 'string',
|
|
41817
41884
|
expiredTime: 'string',
|
|
41818
41885
|
forwardTableIds: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayForwardTableIds,
|
|
41819
41886
|
fullNatTableIds: DescribeNatGatewaysResponseBodyNatGatewaysNatGatewayFullNatTableIds,
|
|
@@ -47482,6 +47549,34 @@ export class GetNatGatewayAttributeResponseBodyIpList extends $tea.Model {
|
|
|
47482
47549
|
}
|
|
47483
47550
|
}
|
|
47484
47551
|
|
|
47552
|
+
export class GetNatGatewayAttributeResponseBodyLogDelivery extends $tea.Model {
|
|
47553
|
+
deliverLogsErrorMessage?: string;
|
|
47554
|
+
deliveryStatus?: string;
|
|
47555
|
+
logDeliveryType?: string;
|
|
47556
|
+
logDestination?: string;
|
|
47557
|
+
static names(): { [key: string]: string } {
|
|
47558
|
+
return {
|
|
47559
|
+
deliverLogsErrorMessage: 'DeliverLogsErrorMessage',
|
|
47560
|
+
deliveryStatus: 'DeliveryStatus',
|
|
47561
|
+
logDeliveryType: 'LogDeliveryType',
|
|
47562
|
+
logDestination: 'LogDestination',
|
|
47563
|
+
};
|
|
47564
|
+
}
|
|
47565
|
+
|
|
47566
|
+
static types(): { [key: string]: any } {
|
|
47567
|
+
return {
|
|
47568
|
+
deliverLogsErrorMessage: 'string',
|
|
47569
|
+
deliveryStatus: 'string',
|
|
47570
|
+
logDeliveryType: 'string',
|
|
47571
|
+
logDestination: 'string',
|
|
47572
|
+
};
|
|
47573
|
+
}
|
|
47574
|
+
|
|
47575
|
+
constructor(map?: { [key: string]: any }) {
|
|
47576
|
+
super(map);
|
|
47577
|
+
}
|
|
47578
|
+
}
|
|
47579
|
+
|
|
47485
47580
|
export class GetNatGatewayAttributeResponseBodyPrivateInfo extends $tea.Model {
|
|
47486
47581
|
eniInstanceId?: string;
|
|
47487
47582
|
izNo?: string;
|
|
@@ -49487,6 +49582,28 @@ export class ModifyExpressConnectTrafficQosRequestRemoveInstanceList extends $te
|
|
|
49487
49582
|
}
|
|
49488
49583
|
}
|
|
49489
49584
|
|
|
49585
|
+
export class ModifyNatGatewayAttributeRequestLogDelivery extends $tea.Model {
|
|
49586
|
+
logDeliveryType?: string;
|
|
49587
|
+
logDestination?: string;
|
|
49588
|
+
static names(): { [key: string]: string } {
|
|
49589
|
+
return {
|
|
49590
|
+
logDeliveryType: 'LogDeliveryType',
|
|
49591
|
+
logDestination: 'LogDestination',
|
|
49592
|
+
};
|
|
49593
|
+
}
|
|
49594
|
+
|
|
49595
|
+
static types(): { [key: string]: any } {
|
|
49596
|
+
return {
|
|
49597
|
+
logDeliveryType: 'string',
|
|
49598
|
+
logDestination: 'string',
|
|
49599
|
+
};
|
|
49600
|
+
}
|
|
49601
|
+
|
|
49602
|
+
constructor(map?: { [key: string]: any }) {
|
|
49603
|
+
super(map);
|
|
49604
|
+
}
|
|
49605
|
+
}
|
|
49606
|
+
|
|
49490
49607
|
export class ModifyTunnelAttributeRequestTunnelOptionsSpecificationTunnelBgpConfig extends $tea.Model {
|
|
49491
49608
|
localAsn?: number;
|
|
49492
49609
|
localBgpIp?: string;
|
|
@@ -73524,12 +73641,18 @@ export default class Client extends OpenApi {
|
|
|
73524
73641
|
* ## [](#)Description
|
|
73525
73642
|
* You can call this operation to query an Internet NAT gateway or a virtual private cloud (VPC) NAT gateway. The term NAT gateway in this topic refers to both NAT gateway types.
|
|
73526
73643
|
*
|
|
73527
|
-
* @param
|
|
73644
|
+
* @param tmpReq ModifyNatGatewayAttributeRequest
|
|
73528
73645
|
* @param runtime runtime options for this request RuntimeOptions
|
|
73529
73646
|
* @return ModifyNatGatewayAttributeResponse
|
|
73530
73647
|
*/
|
|
73531
|
-
async modifyNatGatewayAttributeWithOptions(
|
|
73532
|
-
Util.validateModel(
|
|
73648
|
+
async modifyNatGatewayAttributeWithOptions(tmpReq: ModifyNatGatewayAttributeRequest, runtime: $Util.RuntimeOptions): Promise<ModifyNatGatewayAttributeResponse> {
|
|
73649
|
+
Util.validateModel(tmpReq);
|
|
73650
|
+
let request = new ModifyNatGatewayAttributeShrinkRequest({ });
|
|
73651
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
73652
|
+
if (!Util.isUnset(tmpReq.logDelivery)) {
|
|
73653
|
+
request.logDeliveryShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.logDelivery, "LogDelivery", "json");
|
|
73654
|
+
}
|
|
73655
|
+
|
|
73533
73656
|
let query = { };
|
|
73534
73657
|
if (!Util.isUnset(request.description)) {
|
|
73535
73658
|
query["Description"] = request.description;
|
|
@@ -73539,10 +73662,18 @@ export default class Client extends OpenApi {
|
|
|
73539
73662
|
query["EipBindMode"] = request.eipBindMode;
|
|
73540
73663
|
}
|
|
73541
73664
|
|
|
73665
|
+
if (!Util.isUnset(request.enableSessionLog)) {
|
|
73666
|
+
query["EnableSessionLog"] = request.enableSessionLog;
|
|
73667
|
+
}
|
|
73668
|
+
|
|
73542
73669
|
if (!Util.isUnset(request.icmpReplyEnabled)) {
|
|
73543
73670
|
query["IcmpReplyEnabled"] = request.icmpReplyEnabled;
|
|
73544
73671
|
}
|
|
73545
73672
|
|
|
73673
|
+
if (!Util.isUnset(request.logDeliveryShrink)) {
|
|
73674
|
+
query["LogDelivery"] = request.logDeliveryShrink;
|
|
73675
|
+
}
|
|
73676
|
+
|
|
73546
73677
|
if (!Util.isUnset(request.name)) {
|
|
73547
73678
|
query["Name"] = request.name;
|
|
73548
73679
|
}
|