@alicloud/vpc20160428 6.1.2 → 6.2.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 +144 -4
- package/dist/client.js +271 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +342 -4
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;
|
|
@@ -37764,9 +37944,11 @@ export class DescribeEipAddressesResponseBodyEipAddressesEipAddress extends $tea
|
|
|
37764
37944
|
instanceType?: string;
|
|
37765
37945
|
internetChargeType?: string;
|
|
37766
37946
|
ipAddress?: string;
|
|
37947
|
+
mode?: string;
|
|
37767
37948
|
name?: string;
|
|
37768
37949
|
netmode?: string;
|
|
37769
37950
|
operationLocks?: DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks;
|
|
37951
|
+
privateIpAddress?: string;
|
|
37770
37952
|
publicIpAddressPoolId?: string;
|
|
37771
37953
|
regionId?: string;
|
|
37772
37954
|
reservationActiveTime?: string;
|
|
@@ -37805,9 +37987,11 @@ export class DescribeEipAddressesResponseBodyEipAddressesEipAddress extends $tea
|
|
|
37805
37987
|
instanceType: 'InstanceType',
|
|
37806
37988
|
internetChargeType: 'InternetChargeType',
|
|
37807
37989
|
ipAddress: 'IpAddress',
|
|
37990
|
+
mode: 'Mode',
|
|
37808
37991
|
name: 'Name',
|
|
37809
37992
|
netmode: 'Netmode',
|
|
37810
37993
|
operationLocks: 'OperationLocks',
|
|
37994
|
+
privateIpAddress: 'PrivateIpAddress',
|
|
37811
37995
|
publicIpAddressPoolId: 'PublicIpAddressPoolId',
|
|
37812
37996
|
regionId: 'RegionId',
|
|
37813
37997
|
reservationActiveTime: 'ReservationActiveTime',
|
|
@@ -37849,9 +38033,11 @@ export class DescribeEipAddressesResponseBodyEipAddressesEipAddress extends $tea
|
|
|
37849
38033
|
instanceType: 'string',
|
|
37850
38034
|
internetChargeType: 'string',
|
|
37851
38035
|
ipAddress: 'string',
|
|
38036
|
+
mode: 'string',
|
|
37852
38037
|
name: 'string',
|
|
37853
38038
|
netmode: 'string',
|
|
37854
38039
|
operationLocks: DescribeEipAddressesResponseBodyEipAddressesEipAddressOperationLocks,
|
|
38040
|
+
privateIpAddress: 'string',
|
|
37855
38041
|
publicIpAddressPoolId: 'string',
|
|
37856
38042
|
regionId: 'string',
|
|
37857
38043
|
reservationActiveTime: 'string',
|
|
@@ -44437,6 +44623,28 @@ export class DescribeVpnGatewayResponseBodyTags extends $tea.Model {
|
|
|
44437
44623
|
}
|
|
44438
44624
|
}
|
|
44439
44625
|
|
|
44626
|
+
export class DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList extends $tea.Model {
|
|
44627
|
+
zoneId?: string;
|
|
44628
|
+
zoneName?: string;
|
|
44629
|
+
static names(): { [key: string]: string } {
|
|
44630
|
+
return {
|
|
44631
|
+
zoneId: 'ZoneId',
|
|
44632
|
+
zoneName: 'ZoneName',
|
|
44633
|
+
};
|
|
44634
|
+
}
|
|
44635
|
+
|
|
44636
|
+
static types(): { [key: string]: any } {
|
|
44637
|
+
return {
|
|
44638
|
+
zoneId: 'string',
|
|
44639
|
+
zoneName: 'string',
|
|
44640
|
+
};
|
|
44641
|
+
}
|
|
44642
|
+
|
|
44643
|
+
constructor(map?: { [key: string]: any }) {
|
|
44644
|
+
super(map);
|
|
44645
|
+
}
|
|
44646
|
+
}
|
|
44647
|
+
|
|
44440
44648
|
export class DescribeVpnGatewaysRequestTag extends $tea.Model {
|
|
44441
44649
|
key?: string;
|
|
44442
44650
|
value?: string;
|
|
@@ -44843,6 +45051,49 @@ export class DescribeZonesResponseBodyZones extends $tea.Model {
|
|
|
44843
45051
|
}
|
|
44844
45052
|
}
|
|
44845
45053
|
|
|
45054
|
+
export class DiagnoseVpnConnectionsResponseBodyVpnConnections extends $tea.Model {
|
|
45055
|
+
failedReason?: string;
|
|
45056
|
+
failedReasonCode?: string;
|
|
45057
|
+
failedTime?: number;
|
|
45058
|
+
mismatchLocalParam?: string;
|
|
45059
|
+
mismatchRemoteParam?: string;
|
|
45060
|
+
severity?: string;
|
|
45061
|
+
sourceLog?: string;
|
|
45062
|
+
tunnelId?: string;
|
|
45063
|
+
vpnConnectionId?: string;
|
|
45064
|
+
static names(): { [key: string]: string } {
|
|
45065
|
+
return {
|
|
45066
|
+
failedReason: 'FailedReason',
|
|
45067
|
+
failedReasonCode: 'FailedReasonCode',
|
|
45068
|
+
failedTime: 'FailedTime',
|
|
45069
|
+
mismatchLocalParam: 'MismatchLocalParam',
|
|
45070
|
+
mismatchRemoteParam: 'MismatchRemoteParam',
|
|
45071
|
+
severity: 'Severity',
|
|
45072
|
+
sourceLog: 'SourceLog',
|
|
45073
|
+
tunnelId: 'TunnelId',
|
|
45074
|
+
vpnConnectionId: 'VpnConnectionId',
|
|
45075
|
+
};
|
|
45076
|
+
}
|
|
45077
|
+
|
|
45078
|
+
static types(): { [key: string]: any } {
|
|
45079
|
+
return {
|
|
45080
|
+
failedReason: 'string',
|
|
45081
|
+
failedReasonCode: 'string',
|
|
45082
|
+
failedTime: 'number',
|
|
45083
|
+
mismatchLocalParam: 'string',
|
|
45084
|
+
mismatchRemoteParam: 'string',
|
|
45085
|
+
severity: 'string',
|
|
45086
|
+
sourceLog: 'string',
|
|
45087
|
+
tunnelId: 'string',
|
|
45088
|
+
vpnConnectionId: 'string',
|
|
45089
|
+
};
|
|
45090
|
+
}
|
|
45091
|
+
|
|
45092
|
+
constructor(map?: { [key: string]: any }) {
|
|
45093
|
+
super(map);
|
|
45094
|
+
}
|
|
45095
|
+
}
|
|
45096
|
+
|
|
44846
45097
|
export class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig extends $tea.Model {
|
|
44847
45098
|
ikeAuthAlg?: string;
|
|
44848
45099
|
ikeEncAlg?: string;
|
|
@@ -46184,6 +46435,7 @@ export class ListPrefixListsResponseBodyPrefixLists extends $tea.Model {
|
|
|
46184
46435
|
prefixListId?: string;
|
|
46185
46436
|
prefixListName?: string;
|
|
46186
46437
|
prefixListStatus?: string;
|
|
46438
|
+
prefixListType?: string;
|
|
46187
46439
|
regionId?: string;
|
|
46188
46440
|
resourceGroupId?: string;
|
|
46189
46441
|
shareType?: string;
|
|
@@ -46200,6 +46452,7 @@ export class ListPrefixListsResponseBodyPrefixLists extends $tea.Model {
|
|
|
46200
46452
|
prefixListId: 'PrefixListId',
|
|
46201
46453
|
prefixListName: 'PrefixListName',
|
|
46202
46454
|
prefixListStatus: 'PrefixListStatus',
|
|
46455
|
+
prefixListType: 'PrefixListType',
|
|
46203
46456
|
regionId: 'RegionId',
|
|
46204
46457
|
resourceGroupId: 'ResourceGroupId',
|
|
46205
46458
|
shareType: 'ShareType',
|
|
@@ -46219,6 +46472,7 @@ export class ListPrefixListsResponseBodyPrefixLists extends $tea.Model {
|
|
|
46219
46472
|
prefixListId: 'string',
|
|
46220
46473
|
prefixListName: 'string',
|
|
46221
46474
|
prefixListStatus: 'string',
|
|
46475
|
+
prefixListType: 'string',
|
|
46222
46476
|
regionId: 'string',
|
|
46223
46477
|
resourceGroupId: 'string',
|
|
46224
46478
|
shareType: 'string',
|
|
@@ -46658,6 +46912,7 @@ export class ListTrafficMirrorFiltersResponseBodyTrafficMirrorFiltersTags extend
|
|
|
46658
46912
|
}
|
|
46659
46913
|
|
|
46660
46914
|
export class ListTrafficMirrorFiltersResponseBodyTrafficMirrorFilters extends $tea.Model {
|
|
46915
|
+
creationTime?: string;
|
|
46661
46916
|
egressRules?: ListTrafficMirrorFiltersResponseBodyTrafficMirrorFiltersEgressRules[];
|
|
46662
46917
|
ingressRules?: ListTrafficMirrorFiltersResponseBodyTrafficMirrorFiltersIngressRules[];
|
|
46663
46918
|
resourceGroupId?: string;
|
|
@@ -46668,6 +46923,7 @@ export class ListTrafficMirrorFiltersResponseBodyTrafficMirrorFilters extends $t
|
|
|
46668
46923
|
trafficMirrorFilterStatus?: string;
|
|
46669
46924
|
static names(): { [key: string]: string } {
|
|
46670
46925
|
return {
|
|
46926
|
+
creationTime: 'CreationTime',
|
|
46671
46927
|
egressRules: 'EgressRules',
|
|
46672
46928
|
ingressRules: 'IngressRules',
|
|
46673
46929
|
resourceGroupId: 'ResourceGroupId',
|
|
@@ -46681,6 +46937,7 @@ export class ListTrafficMirrorFiltersResponseBodyTrafficMirrorFilters extends $t
|
|
|
46681
46937
|
|
|
46682
46938
|
static types(): { [key: string]: any } {
|
|
46683
46939
|
return {
|
|
46940
|
+
creationTime: 'string',
|
|
46684
46941
|
egressRules: { 'type': 'array', 'itemType': ListTrafficMirrorFiltersResponseBodyTrafficMirrorFiltersEgressRules },
|
|
46685
46942
|
ingressRules: { 'type': 'array', 'itemType': ListTrafficMirrorFiltersResponseBodyTrafficMirrorFiltersIngressRules },
|
|
46686
46943
|
resourceGroupId: 'string',
|
|
@@ -46742,6 +46999,7 @@ export class ListTrafficMirrorSessionsResponseBodyTrafficMirrorSessionsTags exte
|
|
|
46742
46999
|
}
|
|
46743
47000
|
|
|
46744
47001
|
export class ListTrafficMirrorSessionsResponseBodyTrafficMirrorSessions extends $tea.Model {
|
|
47002
|
+
creationTime?: string;
|
|
46745
47003
|
enabled?: boolean;
|
|
46746
47004
|
packetLength?: number;
|
|
46747
47005
|
priority?: number;
|
|
@@ -46759,6 +47017,7 @@ export class ListTrafficMirrorSessionsResponseBodyTrafficMirrorSessions extends
|
|
|
46759
47017
|
virtualNetworkId?: number;
|
|
46760
47018
|
static names(): { [key: string]: string } {
|
|
46761
47019
|
return {
|
|
47020
|
+
creationTime: 'CreationTime',
|
|
46762
47021
|
enabled: 'Enabled',
|
|
46763
47022
|
packetLength: 'PacketLength',
|
|
46764
47023
|
priority: 'Priority',
|
|
@@ -46779,6 +47038,7 @@ export class ListTrafficMirrorSessionsResponseBodyTrafficMirrorSessions extends
|
|
|
46779
47038
|
|
|
46780
47039
|
static types(): { [key: string]: any } {
|
|
46781
47040
|
return {
|
|
47041
|
+
creationTime: 'string',
|
|
46782
47042
|
enabled: 'boolean',
|
|
46783
47043
|
packetLength: 'number',
|
|
46784
47044
|
priority: 'number',
|
|
@@ -54490,10 +54750,10 @@ export default class Client extends OpenApi {
|
|
|
54490
54750
|
}
|
|
54491
54751
|
|
|
54492
54752
|
/**
|
|
54493
|
-
* 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
|
|
54753
|
+
* 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.
|
|
54494
54754
|
* Before you call this operation, take note of the following limits:
|
|
54495
54755
|
* * **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.
|
|
54496
|
-
* * 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,
|
|
54756
|
+
* * 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.
|
|
54497
54757
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
54498
54758
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
54499
54759
|
* * 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.
|
|
@@ -54573,10 +54833,10 @@ export default class Client extends OpenApi {
|
|
|
54573
54833
|
}
|
|
54574
54834
|
|
|
54575
54835
|
/**
|
|
54576
|
-
* 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
|
|
54836
|
+
* 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.
|
|
54577
54837
|
* Before you call this operation, take note of the following limits:
|
|
54578
54838
|
* * **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.
|
|
54579
|
-
* * 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,
|
|
54839
|
+
* * 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.
|
|
54580
54840
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
54581
54841
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
54582
54842
|
* * 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.
|
|
@@ -64965,6 +65225,31 @@ export default class Client extends OpenApi {
|
|
|
64965
65225
|
return await this.describeVpnGatewayWithOptions(request, runtime);
|
|
64966
65226
|
}
|
|
64967
65227
|
|
|
65228
|
+
async describeVpnGatewayAvailableZonesWithOptions(request: DescribeVpnGatewayAvailableZonesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewayAvailableZonesResponse> {
|
|
65229
|
+
Util.validateModel(request);
|
|
65230
|
+
let query = OpenApiUtil.query(Util.toMap(request));
|
|
65231
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
65232
|
+
query: OpenApiUtil.query(query),
|
|
65233
|
+
});
|
|
65234
|
+
let params = new $OpenApi.Params({
|
|
65235
|
+
action: "DescribeVpnGatewayAvailableZones",
|
|
65236
|
+
version: "2016-04-28",
|
|
65237
|
+
protocol: "HTTPS",
|
|
65238
|
+
pathname: "/",
|
|
65239
|
+
method: "GET",
|
|
65240
|
+
authType: "AK",
|
|
65241
|
+
style: "RPC",
|
|
65242
|
+
reqBodyType: "formData",
|
|
65243
|
+
bodyType: "json",
|
|
65244
|
+
});
|
|
65245
|
+
return $tea.cast<DescribeVpnGatewayAvailableZonesResponse>(await this.callApi(params, req, runtime), new DescribeVpnGatewayAvailableZonesResponse({}));
|
|
65246
|
+
}
|
|
65247
|
+
|
|
65248
|
+
async describeVpnGatewayAvailableZones(request: DescribeVpnGatewayAvailableZonesRequest): Promise<DescribeVpnGatewayAvailableZonesResponse> {
|
|
65249
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
65250
|
+
return await this.describeVpnGatewayAvailableZonesWithOptions(request, runtime);
|
|
65251
|
+
}
|
|
65252
|
+
|
|
64968
65253
|
async describeVpnGatewaysWithOptions(request: DescribeVpnGatewaysRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewaysResponse> {
|
|
64969
65254
|
Util.validateModel(request);
|
|
64970
65255
|
let query = { };
|
|
@@ -65372,6 +65657,59 @@ export default class Client extends OpenApi {
|
|
|
65372
65657
|
return await this.detachDhcpOptionsSetFromVpcWithOptions(request, runtime);
|
|
65373
65658
|
}
|
|
65374
65659
|
|
|
65660
|
+
async diagnoseVpnConnectionsWithOptions(request: DiagnoseVpnConnectionsRequest, runtime: $Util.RuntimeOptions): Promise<DiagnoseVpnConnectionsResponse> {
|
|
65661
|
+
Util.validateModel(request);
|
|
65662
|
+
let query = { };
|
|
65663
|
+
if (!Util.isUnset(request.pageNumber)) {
|
|
65664
|
+
query["PageNumber"] = request.pageNumber;
|
|
65665
|
+
}
|
|
65666
|
+
|
|
65667
|
+
if (!Util.isUnset(request.pageSize)) {
|
|
65668
|
+
query["PageSize"] = request.pageSize;
|
|
65669
|
+
}
|
|
65670
|
+
|
|
65671
|
+
if (!Util.isUnset(request.regionId)) {
|
|
65672
|
+
query["RegionId"] = request.regionId;
|
|
65673
|
+
}
|
|
65674
|
+
|
|
65675
|
+
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
65676
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
65677
|
+
}
|
|
65678
|
+
|
|
65679
|
+
if (!Util.isUnset(request.tunnelIds)) {
|
|
65680
|
+
query["TunnelIds"] = request.tunnelIds;
|
|
65681
|
+
}
|
|
65682
|
+
|
|
65683
|
+
if (!Util.isUnset(request.vpnConnectionIds)) {
|
|
65684
|
+
query["VpnConnectionIds"] = request.vpnConnectionIds;
|
|
65685
|
+
}
|
|
65686
|
+
|
|
65687
|
+
if (!Util.isUnset(request.vpnGatewayId)) {
|
|
65688
|
+
query["VpnGatewayId"] = request.vpnGatewayId;
|
|
65689
|
+
}
|
|
65690
|
+
|
|
65691
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
65692
|
+
query: OpenApiUtil.query(query),
|
|
65693
|
+
});
|
|
65694
|
+
let params = new $OpenApi.Params({
|
|
65695
|
+
action: "DiagnoseVpnConnections",
|
|
65696
|
+
version: "2016-04-28",
|
|
65697
|
+
protocol: "HTTPS",
|
|
65698
|
+
pathname: "/",
|
|
65699
|
+
method: "POST",
|
|
65700
|
+
authType: "AK",
|
|
65701
|
+
style: "RPC",
|
|
65702
|
+
reqBodyType: "formData",
|
|
65703
|
+
bodyType: "json",
|
|
65704
|
+
});
|
|
65705
|
+
return $tea.cast<DiagnoseVpnConnectionsResponse>(await this.callApi(params, req, runtime), new DiagnoseVpnConnectionsResponse({}));
|
|
65706
|
+
}
|
|
65707
|
+
|
|
65708
|
+
async diagnoseVpnConnections(request: DiagnoseVpnConnectionsRequest): Promise<DiagnoseVpnConnectionsResponse> {
|
|
65709
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
65710
|
+
return await this.diagnoseVpnConnectionsWithOptions(request, runtime);
|
|
65711
|
+
}
|
|
65712
|
+
|
|
65375
65713
|
/**
|
|
65376
65714
|
* Only VPN gateways in specific regions support the quick diagnostics feature. For more information about the supported regions, see [Supported regions](~~430697~~).
|
|
65377
65715
|
*
|