@alicloud/vpc20160428 6.1.3 → 6.2.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 +149 -12
- package/dist/client.js +279 -12
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +349 -12
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -20708,6 +20708,93 @@ export class DescribeVpnGatewayResponse extends $tea.Model {
|
|
|
20708
20708
|
}
|
|
20709
20709
|
}
|
|
20710
20710
|
|
|
20711
|
+
export class DescribeVpnGatewayAvailableZonesRequest extends $tea.Model {
|
|
20712
|
+
acceptLanguage?: string;
|
|
20713
|
+
ownerAccount?: string;
|
|
20714
|
+
ownerId?: number;
|
|
20715
|
+
regionId?: string;
|
|
20716
|
+
resourceOwnerAccount?: string;
|
|
20717
|
+
resourceOwnerId?: number;
|
|
20718
|
+
spec?: string;
|
|
20719
|
+
static names(): { [key: string]: string } {
|
|
20720
|
+
return {
|
|
20721
|
+
acceptLanguage: 'AcceptLanguage',
|
|
20722
|
+
ownerAccount: 'OwnerAccount',
|
|
20723
|
+
ownerId: 'OwnerId',
|
|
20724
|
+
regionId: 'RegionId',
|
|
20725
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
20726
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
20727
|
+
spec: 'Spec',
|
|
20728
|
+
};
|
|
20729
|
+
}
|
|
20730
|
+
|
|
20731
|
+
static types(): { [key: string]: any } {
|
|
20732
|
+
return {
|
|
20733
|
+
acceptLanguage: 'string',
|
|
20734
|
+
ownerAccount: 'string',
|
|
20735
|
+
ownerId: 'number',
|
|
20736
|
+
regionId: 'string',
|
|
20737
|
+
resourceOwnerAccount: 'string',
|
|
20738
|
+
resourceOwnerId: 'number',
|
|
20739
|
+
spec: 'string',
|
|
20740
|
+
};
|
|
20741
|
+
}
|
|
20742
|
+
|
|
20743
|
+
constructor(map?: { [key: string]: any }) {
|
|
20744
|
+
super(map);
|
|
20745
|
+
}
|
|
20746
|
+
}
|
|
20747
|
+
|
|
20748
|
+
export class DescribeVpnGatewayAvailableZonesResponseBody extends $tea.Model {
|
|
20749
|
+
availableZoneIdList?: DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList[];
|
|
20750
|
+
regionId?: string;
|
|
20751
|
+
requestId?: string;
|
|
20752
|
+
static names(): { [key: string]: string } {
|
|
20753
|
+
return {
|
|
20754
|
+
availableZoneIdList: 'AvailableZoneIdList',
|
|
20755
|
+
regionId: 'RegionId',
|
|
20756
|
+
requestId: 'RequestId',
|
|
20757
|
+
};
|
|
20758
|
+
}
|
|
20759
|
+
|
|
20760
|
+
static types(): { [key: string]: any } {
|
|
20761
|
+
return {
|
|
20762
|
+
availableZoneIdList: { 'type': 'array', 'itemType': DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList },
|
|
20763
|
+
regionId: 'string',
|
|
20764
|
+
requestId: 'string',
|
|
20765
|
+
};
|
|
20766
|
+
}
|
|
20767
|
+
|
|
20768
|
+
constructor(map?: { [key: string]: any }) {
|
|
20769
|
+
super(map);
|
|
20770
|
+
}
|
|
20771
|
+
}
|
|
20772
|
+
|
|
20773
|
+
export class DescribeVpnGatewayAvailableZonesResponse extends $tea.Model {
|
|
20774
|
+
headers: { [key: string]: string };
|
|
20775
|
+
statusCode: number;
|
|
20776
|
+
body: DescribeVpnGatewayAvailableZonesResponseBody;
|
|
20777
|
+
static names(): { [key: string]: string } {
|
|
20778
|
+
return {
|
|
20779
|
+
headers: 'headers',
|
|
20780
|
+
statusCode: 'statusCode',
|
|
20781
|
+
body: 'body',
|
|
20782
|
+
};
|
|
20783
|
+
}
|
|
20784
|
+
|
|
20785
|
+
static types(): { [key: string]: any } {
|
|
20786
|
+
return {
|
|
20787
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
20788
|
+
statusCode: 'number',
|
|
20789
|
+
body: DescribeVpnGatewayAvailableZonesResponseBody,
|
|
20790
|
+
};
|
|
20791
|
+
}
|
|
20792
|
+
|
|
20793
|
+
constructor(map?: { [key: string]: any }) {
|
|
20794
|
+
super(map);
|
|
20795
|
+
}
|
|
20796
|
+
}
|
|
20797
|
+
|
|
20711
20798
|
export class DescribeVpnGatewaysRequest extends $tea.Model {
|
|
20712
20799
|
businessStatus?: string;
|
|
20713
20800
|
includeReservationData?: boolean;
|
|
@@ -21299,6 +21386,99 @@ export class DetachDhcpOptionsSetFromVpcResponse extends $tea.Model {
|
|
|
21299
21386
|
}
|
|
21300
21387
|
}
|
|
21301
21388
|
|
|
21389
|
+
export class DiagnoseVpnConnectionsRequest extends $tea.Model {
|
|
21390
|
+
pageNumber?: number;
|
|
21391
|
+
pageSize?: number;
|
|
21392
|
+
regionId?: string;
|
|
21393
|
+
resourceOwnerId?: number;
|
|
21394
|
+
tunnelIds?: string[];
|
|
21395
|
+
vpnConnectionIds?: string[];
|
|
21396
|
+
vpnGatewayId?: string;
|
|
21397
|
+
static names(): { [key: string]: string } {
|
|
21398
|
+
return {
|
|
21399
|
+
pageNumber: 'PageNumber',
|
|
21400
|
+
pageSize: 'PageSize',
|
|
21401
|
+
regionId: 'RegionId',
|
|
21402
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
21403
|
+
tunnelIds: 'TunnelIds',
|
|
21404
|
+
vpnConnectionIds: 'VpnConnectionIds',
|
|
21405
|
+
vpnGatewayId: 'VpnGatewayId',
|
|
21406
|
+
};
|
|
21407
|
+
}
|
|
21408
|
+
|
|
21409
|
+
static types(): { [key: string]: any } {
|
|
21410
|
+
return {
|
|
21411
|
+
pageNumber: 'number',
|
|
21412
|
+
pageSize: 'number',
|
|
21413
|
+
regionId: 'string',
|
|
21414
|
+
resourceOwnerId: 'number',
|
|
21415
|
+
tunnelIds: { 'type': 'array', 'itemType': 'string' },
|
|
21416
|
+
vpnConnectionIds: { 'type': 'array', 'itemType': 'string' },
|
|
21417
|
+
vpnGatewayId: 'string',
|
|
21418
|
+
};
|
|
21419
|
+
}
|
|
21420
|
+
|
|
21421
|
+
constructor(map?: { [key: string]: any }) {
|
|
21422
|
+
super(map);
|
|
21423
|
+
}
|
|
21424
|
+
}
|
|
21425
|
+
|
|
21426
|
+
export class DiagnoseVpnConnectionsResponseBody extends $tea.Model {
|
|
21427
|
+
pageNumber?: number;
|
|
21428
|
+
pageSize?: number;
|
|
21429
|
+
requestId?: string;
|
|
21430
|
+
totalCount?: number;
|
|
21431
|
+
vpnConnections?: DiagnoseVpnConnectionsResponseBodyVpnConnections[];
|
|
21432
|
+
static names(): { [key: string]: string } {
|
|
21433
|
+
return {
|
|
21434
|
+
pageNumber: 'PageNumber',
|
|
21435
|
+
pageSize: 'PageSize',
|
|
21436
|
+
requestId: 'RequestId',
|
|
21437
|
+
totalCount: 'TotalCount',
|
|
21438
|
+
vpnConnections: 'VpnConnections',
|
|
21439
|
+
};
|
|
21440
|
+
}
|
|
21441
|
+
|
|
21442
|
+
static types(): { [key: string]: any } {
|
|
21443
|
+
return {
|
|
21444
|
+
pageNumber: 'number',
|
|
21445
|
+
pageSize: 'number',
|
|
21446
|
+
requestId: 'string',
|
|
21447
|
+
totalCount: 'number',
|
|
21448
|
+
vpnConnections: { 'type': 'array', 'itemType': DiagnoseVpnConnectionsResponseBodyVpnConnections },
|
|
21449
|
+
};
|
|
21450
|
+
}
|
|
21451
|
+
|
|
21452
|
+
constructor(map?: { [key: string]: any }) {
|
|
21453
|
+
super(map);
|
|
21454
|
+
}
|
|
21455
|
+
}
|
|
21456
|
+
|
|
21457
|
+
export class DiagnoseVpnConnectionsResponse extends $tea.Model {
|
|
21458
|
+
headers: { [key: string]: string };
|
|
21459
|
+
statusCode: number;
|
|
21460
|
+
body: DiagnoseVpnConnectionsResponseBody;
|
|
21461
|
+
static names(): { [key: string]: string } {
|
|
21462
|
+
return {
|
|
21463
|
+
headers: 'headers',
|
|
21464
|
+
statusCode: 'statusCode',
|
|
21465
|
+
body: 'body',
|
|
21466
|
+
};
|
|
21467
|
+
}
|
|
21468
|
+
|
|
21469
|
+
static types(): { [key: string]: any } {
|
|
21470
|
+
return {
|
|
21471
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21472
|
+
statusCode: 'number',
|
|
21473
|
+
body: DiagnoseVpnConnectionsResponseBody,
|
|
21474
|
+
};
|
|
21475
|
+
}
|
|
21476
|
+
|
|
21477
|
+
constructor(map?: { [key: string]: any }) {
|
|
21478
|
+
super(map);
|
|
21479
|
+
}
|
|
21480
|
+
}
|
|
21481
|
+
|
|
21302
21482
|
export class DiagnoseVpnGatewayRequest extends $tea.Model {
|
|
21303
21483
|
clientToken?: string;
|
|
21304
21484
|
IPsecExtendInfo?: string;
|
|
@@ -23831,6 +24011,8 @@ export class ListFullNatEntriesRequest extends $tea.Model {
|
|
|
23831
24011
|
ipProtocol?: string;
|
|
23832
24012
|
maxResults?: number;
|
|
23833
24013
|
natGatewayId?: string;
|
|
24014
|
+
natIp?: string;
|
|
24015
|
+
natIpPort?: string;
|
|
23834
24016
|
networkInterfaceIds?: string[];
|
|
23835
24017
|
nextToken?: string;
|
|
23836
24018
|
ownerAccount?: string;
|
|
@@ -23847,6 +24029,8 @@ export class ListFullNatEntriesRequest extends $tea.Model {
|
|
|
23847
24029
|
ipProtocol: 'IpProtocol',
|
|
23848
24030
|
maxResults: 'MaxResults',
|
|
23849
24031
|
natGatewayId: 'NatGatewayId',
|
|
24032
|
+
natIp: 'NatIp',
|
|
24033
|
+
natIpPort: 'NatIpPort',
|
|
23850
24034
|
networkInterfaceIds: 'NetworkInterfaceIds',
|
|
23851
24035
|
nextToken: 'NextToken',
|
|
23852
24036
|
ownerAccount: 'OwnerAccount',
|
|
@@ -23866,6 +24050,8 @@ export class ListFullNatEntriesRequest extends $tea.Model {
|
|
|
23866
24050
|
ipProtocol: 'string',
|
|
23867
24051
|
maxResults: 'number',
|
|
23868
24052
|
natGatewayId: 'string',
|
|
24053
|
+
natIp: 'string',
|
|
24054
|
+
natIpPort: 'string',
|
|
23869
24055
|
networkInterfaceIds: { 'type': 'array', 'itemType': 'string' },
|
|
23870
24056
|
nextToken: 'string',
|
|
23871
24057
|
ownerAccount: 'string',
|
|
@@ -44443,6 +44629,28 @@ export class DescribeVpnGatewayResponseBodyTags extends $tea.Model {
|
|
|
44443
44629
|
}
|
|
44444
44630
|
}
|
|
44445
44631
|
|
|
44632
|
+
export class DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList extends $tea.Model {
|
|
44633
|
+
zoneId?: string;
|
|
44634
|
+
zoneName?: string;
|
|
44635
|
+
static names(): { [key: string]: string } {
|
|
44636
|
+
return {
|
|
44637
|
+
zoneId: 'ZoneId',
|
|
44638
|
+
zoneName: 'ZoneName',
|
|
44639
|
+
};
|
|
44640
|
+
}
|
|
44641
|
+
|
|
44642
|
+
static types(): { [key: string]: any } {
|
|
44643
|
+
return {
|
|
44644
|
+
zoneId: 'string',
|
|
44645
|
+
zoneName: 'string',
|
|
44646
|
+
};
|
|
44647
|
+
}
|
|
44648
|
+
|
|
44649
|
+
constructor(map?: { [key: string]: any }) {
|
|
44650
|
+
super(map);
|
|
44651
|
+
}
|
|
44652
|
+
}
|
|
44653
|
+
|
|
44446
44654
|
export class DescribeVpnGatewaysRequestTag extends $tea.Model {
|
|
44447
44655
|
key?: string;
|
|
44448
44656
|
value?: string;
|
|
@@ -44849,6 +45057,49 @@ export class DescribeZonesResponseBodyZones extends $tea.Model {
|
|
|
44849
45057
|
}
|
|
44850
45058
|
}
|
|
44851
45059
|
|
|
45060
|
+
export class DiagnoseVpnConnectionsResponseBodyVpnConnections extends $tea.Model {
|
|
45061
|
+
failedReason?: string;
|
|
45062
|
+
failedReasonCode?: string;
|
|
45063
|
+
failedTime?: number;
|
|
45064
|
+
mismatchLocalParam?: string;
|
|
45065
|
+
mismatchRemoteParam?: string;
|
|
45066
|
+
severity?: string;
|
|
45067
|
+
sourceLog?: string;
|
|
45068
|
+
tunnelId?: string;
|
|
45069
|
+
vpnConnectionId?: string;
|
|
45070
|
+
static names(): { [key: string]: string } {
|
|
45071
|
+
return {
|
|
45072
|
+
failedReason: 'FailedReason',
|
|
45073
|
+
failedReasonCode: 'FailedReasonCode',
|
|
45074
|
+
failedTime: 'FailedTime',
|
|
45075
|
+
mismatchLocalParam: 'MismatchLocalParam',
|
|
45076
|
+
mismatchRemoteParam: 'MismatchRemoteParam',
|
|
45077
|
+
severity: 'Severity',
|
|
45078
|
+
sourceLog: 'SourceLog',
|
|
45079
|
+
tunnelId: 'TunnelId',
|
|
45080
|
+
vpnConnectionId: 'VpnConnectionId',
|
|
45081
|
+
};
|
|
45082
|
+
}
|
|
45083
|
+
|
|
45084
|
+
static types(): { [key: string]: any } {
|
|
45085
|
+
return {
|
|
45086
|
+
failedReason: 'string',
|
|
45087
|
+
failedReasonCode: 'string',
|
|
45088
|
+
failedTime: 'number',
|
|
45089
|
+
mismatchLocalParam: 'string',
|
|
45090
|
+
mismatchRemoteParam: 'string',
|
|
45091
|
+
severity: 'string',
|
|
45092
|
+
sourceLog: 'string',
|
|
45093
|
+
tunnelId: 'string',
|
|
45094
|
+
vpnConnectionId: 'string',
|
|
45095
|
+
};
|
|
45096
|
+
}
|
|
45097
|
+
|
|
45098
|
+
constructor(map?: { [key: string]: any }) {
|
|
45099
|
+
super(map);
|
|
45100
|
+
}
|
|
45101
|
+
}
|
|
45102
|
+
|
|
44852
45103
|
export class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig extends $tea.Model {
|
|
44853
45104
|
ikeAuthAlg?: string;
|
|
44854
45105
|
ikeEncAlg?: string;
|
|
@@ -54505,10 +54756,10 @@ export default class Client extends OpenApi {
|
|
|
54505
54756
|
}
|
|
54506
54757
|
|
|
54507
54758
|
/**
|
|
54508
|
-
* You can call this operation to add SNAT entries to Internet NAT gateways and Virtual Private Cloud (VPC) NAT gateways. In this topic, a **NAT gateway
|
|
54759
|
+
* You can call this operation to add SNAT entries to Internet NAT gateways and Virtual Private Cloud (VPC) NAT gateways. In this topic, a **NAT** gateway refers to both gateway types.
|
|
54509
54760
|
* Before you call this operation, take note of the following limits:
|
|
54510
54761
|
* * **CreateSnatEntry** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the [DescribeSnatTableEntries](~~42677~~) operation to query the status of the task.
|
|
54511
|
-
* * If the SNAT entry is in the **Pending** state, the system is adding the SNAT entry. You can only query the status of the SNAT entry,
|
|
54762
|
+
* * If the SNAT entry is in the **Pending** state, the system is adding the SNAT entry. You can only query the status of the SNAT entry, and cannot perform other operations.
|
|
54512
54763
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
54513
54764
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
54514
54765
|
* * The vSwitch and Elastic Compute Service (ECS) instance specified in an SNAT entry must be created in the VPC where the NAT gateway is deployed.
|
|
@@ -54588,10 +54839,10 @@ export default class Client extends OpenApi {
|
|
|
54588
54839
|
}
|
|
54589
54840
|
|
|
54590
54841
|
/**
|
|
54591
|
-
* You can call this operation to add SNAT entries to Internet NAT gateways and Virtual Private Cloud (VPC) NAT gateways. In this topic, a **NAT gateway
|
|
54842
|
+
* You can call this operation to add SNAT entries to Internet NAT gateways and Virtual Private Cloud (VPC) NAT gateways. In this topic, a **NAT** gateway refers to both gateway types.
|
|
54592
54843
|
* Before you call this operation, take note of the following limits:
|
|
54593
54844
|
* * **CreateSnatEntry** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the [DescribeSnatTableEntries](~~42677~~) operation to query the status of the task.
|
|
54594
|
-
* * If the SNAT entry is in the **Pending** state, the system is adding the SNAT entry. You can only query the status of the SNAT entry,
|
|
54845
|
+
* * If the SNAT entry is in the **Pending** state, the system is adding the SNAT entry. You can only query the status of the SNAT entry, and cannot perform other operations.
|
|
54595
54846
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
54596
54847
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
54597
54848
|
* * The vSwitch and Elastic Compute Service (ECS) instance specified in an SNAT entry must be created in the VPC where the NAT gateway is deployed.
|
|
@@ -58734,13 +58985,13 @@ export default class Client extends OpenApi {
|
|
|
58734
58985
|
}
|
|
58735
58986
|
|
|
58736
58987
|
/**
|
|
58737
|
-
* When you call this operation, take note of the following
|
|
58988
|
+
* When you call this operation, take note of the following items:
|
|
58738
58989
|
* * You can delete only routes that are in the **Available** state.
|
|
58739
|
-
* * You cannot delete a route of a virtual private cloud (VPC) in which a vSwitch or
|
|
58990
|
+
* * You cannot delete a route entry of a virtual private cloud (VPC) in which a vSwitch or another route entry is being created or deleted.
|
|
58740
58991
|
* * Before you call this operation to delete a route of a VBR route table, call the [DescribeRouteEntryList](~~138148~~) operation to query the **NextHopId** of the route first.
|
|
58741
|
-
* *
|
|
58992
|
+
* * **DeleteRouteEntry** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the [DescribeRouteEntryList](~~138148~~) operation to query the status of the task.
|
|
58742
58993
|
* * If the route is in the **Deleting** state, the route is being deleted.
|
|
58743
|
-
* * If you cannot query the route, the route is deleted.
|
|
58994
|
+
* * If you cannot query the route entry, the route entry is deleted.
|
|
58744
58995
|
* * You cannot repeatedly call the **DeleteRouteEntry** operation to delete a route from the route table of a vRouter or a VBR within the specified period of time.
|
|
58745
58996
|
*
|
|
58746
58997
|
* @param request DeleteRouteEntryRequest
|
|
@@ -58808,13 +59059,13 @@ export default class Client extends OpenApi {
|
|
|
58808
59059
|
}
|
|
58809
59060
|
|
|
58810
59061
|
/**
|
|
58811
|
-
* When you call this operation, take note of the following
|
|
59062
|
+
* When you call this operation, take note of the following items:
|
|
58812
59063
|
* * You can delete only routes that are in the **Available** state.
|
|
58813
|
-
* * You cannot delete a route of a virtual private cloud (VPC) in which a vSwitch or
|
|
59064
|
+
* * You cannot delete a route entry of a virtual private cloud (VPC) in which a vSwitch or another route entry is being created or deleted.
|
|
58814
59065
|
* * Before you call this operation to delete a route of a VBR route table, call the [DescribeRouteEntryList](~~138148~~) operation to query the **NextHopId** of the route first.
|
|
58815
|
-
* *
|
|
59066
|
+
* * **DeleteRouteEntry** is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the [DescribeRouteEntryList](~~138148~~) operation to query the status of the task.
|
|
58816
59067
|
* * If the route is in the **Deleting** state, the route is being deleted.
|
|
58817
|
-
* * If you cannot query the route, the route is deleted.
|
|
59068
|
+
* * If you cannot query the route entry, the route entry is deleted.
|
|
58818
59069
|
* * You cannot repeatedly call the **DeleteRouteEntry** operation to delete a route from the route table of a vRouter or a VBR within the specified period of time.
|
|
58819
59070
|
*
|
|
58820
59071
|
* @param request DeleteRouteEntryRequest
|
|
@@ -64980,6 +65231,31 @@ export default class Client extends OpenApi {
|
|
|
64980
65231
|
return await this.describeVpnGatewayWithOptions(request, runtime);
|
|
64981
65232
|
}
|
|
64982
65233
|
|
|
65234
|
+
async describeVpnGatewayAvailableZonesWithOptions(request: DescribeVpnGatewayAvailableZonesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewayAvailableZonesResponse> {
|
|
65235
|
+
Util.validateModel(request);
|
|
65236
|
+
let query = OpenApiUtil.query(Util.toMap(request));
|
|
65237
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
65238
|
+
query: OpenApiUtil.query(query),
|
|
65239
|
+
});
|
|
65240
|
+
let params = new $OpenApi.Params({
|
|
65241
|
+
action: "DescribeVpnGatewayAvailableZones",
|
|
65242
|
+
version: "2016-04-28",
|
|
65243
|
+
protocol: "HTTPS",
|
|
65244
|
+
pathname: "/",
|
|
65245
|
+
method: "GET",
|
|
65246
|
+
authType: "AK",
|
|
65247
|
+
style: "RPC",
|
|
65248
|
+
reqBodyType: "formData",
|
|
65249
|
+
bodyType: "json",
|
|
65250
|
+
});
|
|
65251
|
+
return $tea.cast<DescribeVpnGatewayAvailableZonesResponse>(await this.callApi(params, req, runtime), new DescribeVpnGatewayAvailableZonesResponse({}));
|
|
65252
|
+
}
|
|
65253
|
+
|
|
65254
|
+
async describeVpnGatewayAvailableZones(request: DescribeVpnGatewayAvailableZonesRequest): Promise<DescribeVpnGatewayAvailableZonesResponse> {
|
|
65255
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
65256
|
+
return await this.describeVpnGatewayAvailableZonesWithOptions(request, runtime);
|
|
65257
|
+
}
|
|
65258
|
+
|
|
64983
65259
|
async describeVpnGatewaysWithOptions(request: DescribeVpnGatewaysRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewaysResponse> {
|
|
64984
65260
|
Util.validateModel(request);
|
|
64985
65261
|
let query = { };
|
|
@@ -65387,6 +65663,59 @@ export default class Client extends OpenApi {
|
|
|
65387
65663
|
return await this.detachDhcpOptionsSetFromVpcWithOptions(request, runtime);
|
|
65388
65664
|
}
|
|
65389
65665
|
|
|
65666
|
+
async diagnoseVpnConnectionsWithOptions(request: DiagnoseVpnConnectionsRequest, runtime: $Util.RuntimeOptions): Promise<DiagnoseVpnConnectionsResponse> {
|
|
65667
|
+
Util.validateModel(request);
|
|
65668
|
+
let query = { };
|
|
65669
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
65670
|
+
query["PageNumber"] = request.pageNumber;
|
|
65671
|
+
}
|
|
65672
|
+
|
|
65673
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
65674
|
+
query["PageSize"] = request.pageSize;
|
|
65675
|
+
}
|
|
65676
|
+
|
|
65677
|
+
if (!Util.isUnset(request.regionId)) {
|
|
65678
|
+
query["RegionId"] = request.regionId;
|
|
65679
|
+
}
|
|
65680
|
+
|
|
65681
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
65682
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
65683
|
+
}
|
|
65684
|
+
|
|
65685
|
+
if (!Util.isUnset(request.tunnelIds)) {
|
|
65686
|
+
query["TunnelIds"] = request.tunnelIds;
|
|
65687
|
+
}
|
|
65688
|
+
|
|
65689
|
+
if (!Util.isUnset(request.vpnConnectionIds)) {
|
|
65690
|
+
query["VpnConnectionIds"] = request.vpnConnectionIds;
|
|
65691
|
+
}
|
|
65692
|
+
|
|
65693
|
+
if (!Util.isUnset(request.vpnGatewayId)) {
|
|
65694
|
+
query["VpnGatewayId"] = request.vpnGatewayId;
|
|
65695
|
+
}
|
|
65696
|
+
|
|
65697
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
65698
|
+
query: OpenApiUtil.query(query),
|
|
65699
|
+
});
|
|
65700
|
+
let params = new $OpenApi.Params({
|
|
65701
|
+
action: "DiagnoseVpnConnections",
|
|
65702
|
+
version: "2016-04-28",
|
|
65703
|
+
protocol: "HTTPS",
|
|
65704
|
+
pathname: "/",
|
|
65705
|
+
method: "POST",
|
|
65706
|
+
authType: "AK",
|
|
65707
|
+
style: "RPC",
|
|
65708
|
+
reqBodyType: "formData",
|
|
65709
|
+
bodyType: "json",
|
|
65710
|
+
});
|
|
65711
|
+
return $tea.cast<DiagnoseVpnConnectionsResponse>(await this.callApi(params, req, runtime), new DiagnoseVpnConnectionsResponse({}));
|
|
65712
|
+
}
|
|
65713
|
+
|
|
65714
|
+
async diagnoseVpnConnections(request: DiagnoseVpnConnectionsRequest): Promise<DiagnoseVpnConnectionsResponse> {
|
|
65715
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
65716
|
+
return await this.diagnoseVpnConnectionsWithOptions(request, runtime);
|
|
65717
|
+
}
|
|
65718
|
+
|
|
65390
65719
|
/**
|
|
65391
65720
|
* Only VPN gateways in specific regions support the quick diagnostics feature. For more information about the supported regions, see [Supported regions](~~430697~~).
|
|
65392
65721
|
*
|
|
@@ -67066,6 +67395,14 @@ export default class Client extends OpenApi {
|
|
|
67066
67395
|
query["NatGatewayId"] = request.natGatewayId;
|
|
67067
67396
|
}
|
|
67068
67397
|
|
|
67398
|
+
if (!Util.isUnset(request.natIp)) {
|
|
67399
|
+
query["NatIp"] = request.natIp;
|
|
67400
|
+
}
|
|
67401
|
+
|
|
67402
|
+
if (!Util.isUnset(request.natIpPort)) {
|
|
67403
|
+
query["NatIpPort"] = request.natIpPort;
|
|
67404
|
+
}
|
|
67405
|
+
|
|
67069
67406
|
if (!Util.isUnset(request.networkInterfaceIds)) {
|
|
67070
67407
|
query["NetworkInterfaceIds"] = request.networkInterfaceIds;
|
|
67071
67408
|
}
|