@alicloud/vpc20160428 6.1.3 → 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 +139 -4
- package/dist/client.js +261 -4
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +327 -4
package/dist/client.d.ts
CHANGED
|
@@ -10875,6 +10875,54 @@ export declare class DescribeVpnGatewayResponse extends $tea.Model {
|
|
|
10875
10875
|
[key: string]: any;
|
|
10876
10876
|
});
|
|
10877
10877
|
}
|
|
10878
|
+
export declare class DescribeVpnGatewayAvailableZonesRequest extends $tea.Model {
|
|
10879
|
+
acceptLanguage?: string;
|
|
10880
|
+
ownerAccount?: string;
|
|
10881
|
+
ownerId?: number;
|
|
10882
|
+
regionId?: string;
|
|
10883
|
+
resourceOwnerAccount?: string;
|
|
10884
|
+
resourceOwnerId?: number;
|
|
10885
|
+
spec?: string;
|
|
10886
|
+
static names(): {
|
|
10887
|
+
[key: string]: string;
|
|
10888
|
+
};
|
|
10889
|
+
static types(): {
|
|
10890
|
+
[key: string]: any;
|
|
10891
|
+
};
|
|
10892
|
+
constructor(map?: {
|
|
10893
|
+
[key: string]: any;
|
|
10894
|
+
});
|
|
10895
|
+
}
|
|
10896
|
+
export declare class DescribeVpnGatewayAvailableZonesResponseBody extends $tea.Model {
|
|
10897
|
+
availableZoneIdList?: DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList[];
|
|
10898
|
+
regionId?: string;
|
|
10899
|
+
requestId?: string;
|
|
10900
|
+
static names(): {
|
|
10901
|
+
[key: string]: string;
|
|
10902
|
+
};
|
|
10903
|
+
static types(): {
|
|
10904
|
+
[key: string]: any;
|
|
10905
|
+
};
|
|
10906
|
+
constructor(map?: {
|
|
10907
|
+
[key: string]: any;
|
|
10908
|
+
});
|
|
10909
|
+
}
|
|
10910
|
+
export declare class DescribeVpnGatewayAvailableZonesResponse extends $tea.Model {
|
|
10911
|
+
headers: {
|
|
10912
|
+
[key: string]: string;
|
|
10913
|
+
};
|
|
10914
|
+
statusCode: number;
|
|
10915
|
+
body: DescribeVpnGatewayAvailableZonesResponseBody;
|
|
10916
|
+
static names(): {
|
|
10917
|
+
[key: string]: string;
|
|
10918
|
+
};
|
|
10919
|
+
static types(): {
|
|
10920
|
+
[key: string]: any;
|
|
10921
|
+
};
|
|
10922
|
+
constructor(map?: {
|
|
10923
|
+
[key: string]: any;
|
|
10924
|
+
});
|
|
10925
|
+
}
|
|
10878
10926
|
export declare class DescribeVpnGatewaysRequest extends $tea.Model {
|
|
10879
10927
|
businessStatus?: string;
|
|
10880
10928
|
includeReservationData?: boolean;
|
|
@@ -11186,6 +11234,56 @@ export declare class DetachDhcpOptionsSetFromVpcResponse extends $tea.Model {
|
|
|
11186
11234
|
[key: string]: any;
|
|
11187
11235
|
});
|
|
11188
11236
|
}
|
|
11237
|
+
export declare class DiagnoseVpnConnectionsRequest extends $tea.Model {
|
|
11238
|
+
pageNumber?: number;
|
|
11239
|
+
pageSize?: number;
|
|
11240
|
+
regionId?: string;
|
|
11241
|
+
resourceOwnerId?: number;
|
|
11242
|
+
tunnelIds?: string[];
|
|
11243
|
+
vpnConnectionIds?: string[];
|
|
11244
|
+
vpnGatewayId?: string;
|
|
11245
|
+
static names(): {
|
|
11246
|
+
[key: string]: string;
|
|
11247
|
+
};
|
|
11248
|
+
static types(): {
|
|
11249
|
+
[key: string]: any;
|
|
11250
|
+
};
|
|
11251
|
+
constructor(map?: {
|
|
11252
|
+
[key: string]: any;
|
|
11253
|
+
});
|
|
11254
|
+
}
|
|
11255
|
+
export declare class DiagnoseVpnConnectionsResponseBody extends $tea.Model {
|
|
11256
|
+
pageNumber?: number;
|
|
11257
|
+
pageSize?: number;
|
|
11258
|
+
requestId?: string;
|
|
11259
|
+
totalCount?: number;
|
|
11260
|
+
vpnConnections?: DiagnoseVpnConnectionsResponseBodyVpnConnections[];
|
|
11261
|
+
static names(): {
|
|
11262
|
+
[key: string]: string;
|
|
11263
|
+
};
|
|
11264
|
+
static types(): {
|
|
11265
|
+
[key: string]: any;
|
|
11266
|
+
};
|
|
11267
|
+
constructor(map?: {
|
|
11268
|
+
[key: string]: any;
|
|
11269
|
+
});
|
|
11270
|
+
}
|
|
11271
|
+
export declare class DiagnoseVpnConnectionsResponse extends $tea.Model {
|
|
11272
|
+
headers: {
|
|
11273
|
+
[key: string]: string;
|
|
11274
|
+
};
|
|
11275
|
+
statusCode: number;
|
|
11276
|
+
body: DiagnoseVpnConnectionsResponseBody;
|
|
11277
|
+
static names(): {
|
|
11278
|
+
[key: string]: string;
|
|
11279
|
+
};
|
|
11280
|
+
static types(): {
|
|
11281
|
+
[key: string]: any;
|
|
11282
|
+
};
|
|
11283
|
+
constructor(map?: {
|
|
11284
|
+
[key: string]: any;
|
|
11285
|
+
});
|
|
11286
|
+
}
|
|
11189
11287
|
export declare class DiagnoseVpnGatewayRequest extends $tea.Model {
|
|
11190
11288
|
clientToken?: string;
|
|
11191
11289
|
IPsecExtendInfo?: string;
|
|
@@ -23528,6 +23626,19 @@ export declare class DescribeVpnGatewayResponseBodyTags extends $tea.Model {
|
|
|
23528
23626
|
[key: string]: any;
|
|
23529
23627
|
});
|
|
23530
23628
|
}
|
|
23629
|
+
export declare class DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList extends $tea.Model {
|
|
23630
|
+
zoneId?: string;
|
|
23631
|
+
zoneName?: string;
|
|
23632
|
+
static names(): {
|
|
23633
|
+
[key: string]: string;
|
|
23634
|
+
};
|
|
23635
|
+
static types(): {
|
|
23636
|
+
[key: string]: any;
|
|
23637
|
+
};
|
|
23638
|
+
constructor(map?: {
|
|
23639
|
+
[key: string]: any;
|
|
23640
|
+
});
|
|
23641
|
+
}
|
|
23531
23642
|
export declare class DescribeVpnGatewaysRequestTag extends $tea.Model {
|
|
23532
23643
|
key?: string;
|
|
23533
23644
|
value?: string;
|
|
@@ -23737,6 +23848,26 @@ export declare class DescribeZonesResponseBodyZones extends $tea.Model {
|
|
|
23737
23848
|
[key: string]: any;
|
|
23738
23849
|
});
|
|
23739
23850
|
}
|
|
23851
|
+
export declare class DiagnoseVpnConnectionsResponseBodyVpnConnections extends $tea.Model {
|
|
23852
|
+
failedReason?: string;
|
|
23853
|
+
failedReasonCode?: string;
|
|
23854
|
+
failedTime?: number;
|
|
23855
|
+
mismatchLocalParam?: string;
|
|
23856
|
+
mismatchRemoteParam?: string;
|
|
23857
|
+
severity?: string;
|
|
23858
|
+
sourceLog?: string;
|
|
23859
|
+
tunnelId?: string;
|
|
23860
|
+
vpnConnectionId?: string;
|
|
23861
|
+
static names(): {
|
|
23862
|
+
[key: string]: string;
|
|
23863
|
+
};
|
|
23864
|
+
static types(): {
|
|
23865
|
+
[key: string]: any;
|
|
23866
|
+
};
|
|
23867
|
+
constructor(map?: {
|
|
23868
|
+
[key: string]: any;
|
|
23869
|
+
});
|
|
23870
|
+
}
|
|
23740
23871
|
export declare class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig extends $tea.Model {
|
|
23741
23872
|
ikeAuthAlg?: string;
|
|
23742
23873
|
ikeEncAlg?: string;
|
|
@@ -26740,10 +26871,10 @@ export default class Client extends OpenApi {
|
|
|
26740
26871
|
*/
|
|
26741
26872
|
createRouterInterface(request: CreateRouterInterfaceRequest): Promise<CreateRouterInterfaceResponse>;
|
|
26742
26873
|
/**
|
|
26743
|
-
* 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
|
|
26874
|
+
* 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.
|
|
26744
26875
|
* Before you call this operation, take note of the following limits:
|
|
26745
26876
|
* * **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.
|
|
26746
|
-
* * 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,
|
|
26877
|
+
* * 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.
|
|
26747
26878
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
26748
26879
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
26749
26880
|
* * 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.
|
|
@@ -26756,10 +26887,10 @@ export default class Client extends OpenApi {
|
|
|
26756
26887
|
*/
|
|
26757
26888
|
createSnatEntryWithOptions(request: CreateSnatEntryRequest, runtime: $Util.RuntimeOptions): Promise<CreateSnatEntryResponse>;
|
|
26758
26889
|
/**
|
|
26759
|
-
* 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
|
|
26890
|
+
* 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.
|
|
26760
26891
|
* Before you call this operation, take note of the following limits:
|
|
26761
26892
|
* * **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.
|
|
26762
|
-
* * 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,
|
|
26893
|
+
* * 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.
|
|
26763
26894
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
26764
26895
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
26765
26896
|
* * 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.
|
|
@@ -28428,6 +28559,8 @@ export default class Client extends OpenApi {
|
|
|
28428
28559
|
describeVpnCrossAccountAuthorizations(request: DescribeVpnCrossAccountAuthorizationsRequest): Promise<DescribeVpnCrossAccountAuthorizationsResponse>;
|
|
28429
28560
|
describeVpnGatewayWithOptions(request: DescribeVpnGatewayRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewayResponse>;
|
|
28430
28561
|
describeVpnGateway(request: DescribeVpnGatewayRequest): Promise<DescribeVpnGatewayResponse>;
|
|
28562
|
+
describeVpnGatewayAvailableZonesWithOptions(request: DescribeVpnGatewayAvailableZonesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewayAvailableZonesResponse>;
|
|
28563
|
+
describeVpnGatewayAvailableZones(request: DescribeVpnGatewayAvailableZonesRequest): Promise<DescribeVpnGatewayAvailableZonesResponse>;
|
|
28431
28564
|
describeVpnGatewaysWithOptions(request: DescribeVpnGatewaysRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewaysResponse>;
|
|
28432
28565
|
describeVpnGateways(request: DescribeVpnGatewaysRequest): Promise<DescribeVpnGatewaysResponse>;
|
|
28433
28566
|
describeVpnPbrRouteEntriesWithOptions(request: DescribeVpnPbrRouteEntriesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnPbrRouteEntriesResponse>;
|
|
@@ -28461,6 +28594,8 @@ export default class Client extends OpenApi {
|
|
|
28461
28594
|
* @return DetachDhcpOptionsSetFromVpcResponse
|
|
28462
28595
|
*/
|
|
28463
28596
|
detachDhcpOptionsSetFromVpc(request: DetachDhcpOptionsSetFromVpcRequest): Promise<DetachDhcpOptionsSetFromVpcResponse>;
|
|
28597
|
+
diagnoseVpnConnectionsWithOptions(request: DiagnoseVpnConnectionsRequest, runtime: $Util.RuntimeOptions): Promise<DiagnoseVpnConnectionsResponse>;
|
|
28598
|
+
diagnoseVpnConnections(request: DiagnoseVpnConnectionsRequest): Promise<DiagnoseVpnConnectionsResponse>;
|
|
28464
28599
|
/**
|
|
28465
28600
|
* Only VPN gateways in specific regions support the quick diagnostics feature. For more information about the supported regions, see [Supported regions](~~430697~~).
|
|
28466
28601
|
*
|
package/dist/client.js
CHANGED
|
@@ -15909,6 +15909,74 @@ class DescribeVpnGatewayResponse extends $tea.Model {
|
|
|
15909
15909
|
}
|
|
15910
15910
|
}
|
|
15911
15911
|
exports.DescribeVpnGatewayResponse = DescribeVpnGatewayResponse;
|
|
15912
|
+
class DescribeVpnGatewayAvailableZonesRequest extends $tea.Model {
|
|
15913
|
+
constructor(map) {
|
|
15914
|
+
super(map);
|
|
15915
|
+
}
|
|
15916
|
+
static names() {
|
|
15917
|
+
return {
|
|
15918
|
+
acceptLanguage: 'AcceptLanguage',
|
|
15919
|
+
ownerAccount: 'OwnerAccount',
|
|
15920
|
+
ownerId: 'OwnerId',
|
|
15921
|
+
regionId: 'RegionId',
|
|
15922
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
15923
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
15924
|
+
spec: 'Spec',
|
|
15925
|
+
};
|
|
15926
|
+
}
|
|
15927
|
+
static types() {
|
|
15928
|
+
return {
|
|
15929
|
+
acceptLanguage: 'string',
|
|
15930
|
+
ownerAccount: 'string',
|
|
15931
|
+
ownerId: 'number',
|
|
15932
|
+
regionId: 'string',
|
|
15933
|
+
resourceOwnerAccount: 'string',
|
|
15934
|
+
resourceOwnerId: 'number',
|
|
15935
|
+
spec: 'string',
|
|
15936
|
+
};
|
|
15937
|
+
}
|
|
15938
|
+
}
|
|
15939
|
+
exports.DescribeVpnGatewayAvailableZonesRequest = DescribeVpnGatewayAvailableZonesRequest;
|
|
15940
|
+
class DescribeVpnGatewayAvailableZonesResponseBody extends $tea.Model {
|
|
15941
|
+
constructor(map) {
|
|
15942
|
+
super(map);
|
|
15943
|
+
}
|
|
15944
|
+
static names() {
|
|
15945
|
+
return {
|
|
15946
|
+
availableZoneIdList: 'AvailableZoneIdList',
|
|
15947
|
+
regionId: 'RegionId',
|
|
15948
|
+
requestId: 'RequestId',
|
|
15949
|
+
};
|
|
15950
|
+
}
|
|
15951
|
+
static types() {
|
|
15952
|
+
return {
|
|
15953
|
+
availableZoneIdList: { 'type': 'array', 'itemType': DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList },
|
|
15954
|
+
regionId: 'string',
|
|
15955
|
+
requestId: 'string',
|
|
15956
|
+
};
|
|
15957
|
+
}
|
|
15958
|
+
}
|
|
15959
|
+
exports.DescribeVpnGatewayAvailableZonesResponseBody = DescribeVpnGatewayAvailableZonesResponseBody;
|
|
15960
|
+
class DescribeVpnGatewayAvailableZonesResponse extends $tea.Model {
|
|
15961
|
+
constructor(map) {
|
|
15962
|
+
super(map);
|
|
15963
|
+
}
|
|
15964
|
+
static names() {
|
|
15965
|
+
return {
|
|
15966
|
+
headers: 'headers',
|
|
15967
|
+
statusCode: 'statusCode',
|
|
15968
|
+
body: 'body',
|
|
15969
|
+
};
|
|
15970
|
+
}
|
|
15971
|
+
static types() {
|
|
15972
|
+
return {
|
|
15973
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
15974
|
+
statusCode: 'number',
|
|
15975
|
+
body: DescribeVpnGatewayAvailableZonesResponseBody,
|
|
15976
|
+
};
|
|
15977
|
+
}
|
|
15978
|
+
}
|
|
15979
|
+
exports.DescribeVpnGatewayAvailableZonesResponse = DescribeVpnGatewayAvailableZonesResponse;
|
|
15912
15980
|
class DescribeVpnGatewaysRequest extends $tea.Model {
|
|
15913
15981
|
constructor(map) {
|
|
15914
15982
|
super(map);
|
|
@@ -16363,6 +16431,78 @@ class DetachDhcpOptionsSetFromVpcResponse extends $tea.Model {
|
|
|
16363
16431
|
}
|
|
16364
16432
|
}
|
|
16365
16433
|
exports.DetachDhcpOptionsSetFromVpcResponse = DetachDhcpOptionsSetFromVpcResponse;
|
|
16434
|
+
class DiagnoseVpnConnectionsRequest extends $tea.Model {
|
|
16435
|
+
constructor(map) {
|
|
16436
|
+
super(map);
|
|
16437
|
+
}
|
|
16438
|
+
static names() {
|
|
16439
|
+
return {
|
|
16440
|
+
pageNumber: 'PageNumber',
|
|
16441
|
+
pageSize: 'PageSize',
|
|
16442
|
+
regionId: 'RegionId',
|
|
16443
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
16444
|
+
tunnelIds: 'TunnelIds',
|
|
16445
|
+
vpnConnectionIds: 'VpnConnectionIds',
|
|
16446
|
+
vpnGatewayId: 'VpnGatewayId',
|
|
16447
|
+
};
|
|
16448
|
+
}
|
|
16449
|
+
static types() {
|
|
16450
|
+
return {
|
|
16451
|
+
pageNumber: 'number',
|
|
16452
|
+
pageSize: 'number',
|
|
16453
|
+
regionId: 'string',
|
|
16454
|
+
resourceOwnerId: 'number',
|
|
16455
|
+
tunnelIds: { 'type': 'array', 'itemType': 'string' },
|
|
16456
|
+
vpnConnectionIds: { 'type': 'array', 'itemType': 'string' },
|
|
16457
|
+
vpnGatewayId: 'string',
|
|
16458
|
+
};
|
|
16459
|
+
}
|
|
16460
|
+
}
|
|
16461
|
+
exports.DiagnoseVpnConnectionsRequest = DiagnoseVpnConnectionsRequest;
|
|
16462
|
+
class DiagnoseVpnConnectionsResponseBody extends $tea.Model {
|
|
16463
|
+
constructor(map) {
|
|
16464
|
+
super(map);
|
|
16465
|
+
}
|
|
16466
|
+
static names() {
|
|
16467
|
+
return {
|
|
16468
|
+
pageNumber: 'PageNumber',
|
|
16469
|
+
pageSize: 'PageSize',
|
|
16470
|
+
requestId: 'RequestId',
|
|
16471
|
+
totalCount: 'TotalCount',
|
|
16472
|
+
vpnConnections: 'VpnConnections',
|
|
16473
|
+
};
|
|
16474
|
+
}
|
|
16475
|
+
static types() {
|
|
16476
|
+
return {
|
|
16477
|
+
pageNumber: 'number',
|
|
16478
|
+
pageSize: 'number',
|
|
16479
|
+
requestId: 'string',
|
|
16480
|
+
totalCount: 'number',
|
|
16481
|
+
vpnConnections: { 'type': 'array', 'itemType': DiagnoseVpnConnectionsResponseBodyVpnConnections },
|
|
16482
|
+
};
|
|
16483
|
+
}
|
|
16484
|
+
}
|
|
16485
|
+
exports.DiagnoseVpnConnectionsResponseBody = DiagnoseVpnConnectionsResponseBody;
|
|
16486
|
+
class DiagnoseVpnConnectionsResponse extends $tea.Model {
|
|
16487
|
+
constructor(map) {
|
|
16488
|
+
super(map);
|
|
16489
|
+
}
|
|
16490
|
+
static names() {
|
|
16491
|
+
return {
|
|
16492
|
+
headers: 'headers',
|
|
16493
|
+
statusCode: 'statusCode',
|
|
16494
|
+
body: 'body',
|
|
16495
|
+
};
|
|
16496
|
+
}
|
|
16497
|
+
static types() {
|
|
16498
|
+
return {
|
|
16499
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
16500
|
+
statusCode: 'number',
|
|
16501
|
+
body: DiagnoseVpnConnectionsResponseBody,
|
|
16502
|
+
};
|
|
16503
|
+
}
|
|
16504
|
+
}
|
|
16505
|
+
exports.DiagnoseVpnConnectionsResponse = DiagnoseVpnConnectionsResponse;
|
|
16366
16506
|
class DiagnoseVpnGatewayRequest extends $tea.Model {
|
|
16367
16507
|
constructor(map) {
|
|
16368
16508
|
super(map);
|
|
@@ -34339,6 +34479,24 @@ class DescribeVpnGatewayResponseBodyTags extends $tea.Model {
|
|
|
34339
34479
|
}
|
|
34340
34480
|
}
|
|
34341
34481
|
exports.DescribeVpnGatewayResponseBodyTags = DescribeVpnGatewayResponseBodyTags;
|
|
34482
|
+
class DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList extends $tea.Model {
|
|
34483
|
+
constructor(map) {
|
|
34484
|
+
super(map);
|
|
34485
|
+
}
|
|
34486
|
+
static names() {
|
|
34487
|
+
return {
|
|
34488
|
+
zoneId: 'ZoneId',
|
|
34489
|
+
zoneName: 'ZoneName',
|
|
34490
|
+
};
|
|
34491
|
+
}
|
|
34492
|
+
static types() {
|
|
34493
|
+
return {
|
|
34494
|
+
zoneId: 'string',
|
|
34495
|
+
zoneName: 'string',
|
|
34496
|
+
};
|
|
34497
|
+
}
|
|
34498
|
+
}
|
|
34499
|
+
exports.DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList = DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList;
|
|
34342
34500
|
class DescribeVpnGatewaysRequestTag extends $tea.Model {
|
|
34343
34501
|
constructor(map) {
|
|
34344
34502
|
super(map);
|
|
@@ -34653,6 +34811,38 @@ class DescribeZonesResponseBodyZones extends $tea.Model {
|
|
|
34653
34811
|
}
|
|
34654
34812
|
}
|
|
34655
34813
|
exports.DescribeZonesResponseBodyZones = DescribeZonesResponseBodyZones;
|
|
34814
|
+
class DiagnoseVpnConnectionsResponseBodyVpnConnections extends $tea.Model {
|
|
34815
|
+
constructor(map) {
|
|
34816
|
+
super(map);
|
|
34817
|
+
}
|
|
34818
|
+
static names() {
|
|
34819
|
+
return {
|
|
34820
|
+
failedReason: 'FailedReason',
|
|
34821
|
+
failedReasonCode: 'FailedReasonCode',
|
|
34822
|
+
failedTime: 'FailedTime',
|
|
34823
|
+
mismatchLocalParam: 'MismatchLocalParam',
|
|
34824
|
+
mismatchRemoteParam: 'MismatchRemoteParam',
|
|
34825
|
+
severity: 'Severity',
|
|
34826
|
+
sourceLog: 'SourceLog',
|
|
34827
|
+
tunnelId: 'TunnelId',
|
|
34828
|
+
vpnConnectionId: 'VpnConnectionId',
|
|
34829
|
+
};
|
|
34830
|
+
}
|
|
34831
|
+
static types() {
|
|
34832
|
+
return {
|
|
34833
|
+
failedReason: 'string',
|
|
34834
|
+
failedReasonCode: 'string',
|
|
34835
|
+
failedTime: 'number',
|
|
34836
|
+
mismatchLocalParam: 'string',
|
|
34837
|
+
mismatchRemoteParam: 'string',
|
|
34838
|
+
severity: 'string',
|
|
34839
|
+
sourceLog: 'string',
|
|
34840
|
+
tunnelId: 'string',
|
|
34841
|
+
vpnConnectionId: 'string',
|
|
34842
|
+
};
|
|
34843
|
+
}
|
|
34844
|
+
}
|
|
34845
|
+
exports.DiagnoseVpnConnectionsResponseBodyVpnConnections = DiagnoseVpnConnectionsResponseBodyVpnConnections;
|
|
34656
34846
|
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig extends $tea.Model {
|
|
34657
34847
|
constructor(map) {
|
|
34658
34848
|
super(map);
|
|
@@ -42555,10 +42745,10 @@ class Client extends openapi_client_1.default {
|
|
|
42555
42745
|
return await this.createRouterInterfaceWithOptions(request, runtime);
|
|
42556
42746
|
}
|
|
42557
42747
|
/**
|
|
42558
|
-
* 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
|
|
42748
|
+
* 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.
|
|
42559
42749
|
* Before you call this operation, take note of the following limits:
|
|
42560
42750
|
* * **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.
|
|
42561
|
-
* * 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,
|
|
42751
|
+
* * 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.
|
|
42562
42752
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
42563
42753
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
42564
42754
|
* * 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.
|
|
@@ -42625,10 +42815,10 @@ class Client extends openapi_client_1.default {
|
|
|
42625
42815
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateSnatEntryResponse({}));
|
|
42626
42816
|
}
|
|
42627
42817
|
/**
|
|
42628
|
-
* 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
|
|
42818
|
+
* 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.
|
|
42629
42819
|
* Before you call this operation, take note of the following limits:
|
|
42630
42820
|
* * **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.
|
|
42631
|
-
* * 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,
|
|
42821
|
+
* * 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.
|
|
42632
42822
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
42633
42823
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
42634
42824
|
* * 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.
|
|
@@ -51352,6 +51542,29 @@ class Client extends openapi_client_1.default {
|
|
|
51352
51542
|
let runtime = new $Util.RuntimeOptions({});
|
|
51353
51543
|
return await this.describeVpnGatewayWithOptions(request, runtime);
|
|
51354
51544
|
}
|
|
51545
|
+
async describeVpnGatewayAvailableZonesWithOptions(request, runtime) {
|
|
51546
|
+
tea_util_1.default.validateModel(request);
|
|
51547
|
+
let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
|
|
51548
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
51549
|
+
query: openapi_util_1.default.query(query),
|
|
51550
|
+
});
|
|
51551
|
+
let params = new $OpenApi.Params({
|
|
51552
|
+
action: "DescribeVpnGatewayAvailableZones",
|
|
51553
|
+
version: "2016-04-28",
|
|
51554
|
+
protocol: "HTTPS",
|
|
51555
|
+
pathname: "/",
|
|
51556
|
+
method: "GET",
|
|
51557
|
+
authType: "AK",
|
|
51558
|
+
style: "RPC",
|
|
51559
|
+
reqBodyType: "formData",
|
|
51560
|
+
bodyType: "json",
|
|
51561
|
+
});
|
|
51562
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeVpnGatewayAvailableZonesResponse({}));
|
|
51563
|
+
}
|
|
51564
|
+
async describeVpnGatewayAvailableZones(request) {
|
|
51565
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
51566
|
+
return await this.describeVpnGatewayAvailableZonesWithOptions(request, runtime);
|
|
51567
|
+
}
|
|
51355
51568
|
async describeVpnGatewaysWithOptions(request, runtime) {
|
|
51356
51569
|
tea_util_1.default.validateModel(request);
|
|
51357
51570
|
let query = {};
|
|
@@ -51688,6 +51901,50 @@ class Client extends openapi_client_1.default {
|
|
|
51688
51901
|
let runtime = new $Util.RuntimeOptions({});
|
|
51689
51902
|
return await this.detachDhcpOptionsSetFromVpcWithOptions(request, runtime);
|
|
51690
51903
|
}
|
|
51904
|
+
async diagnoseVpnConnectionsWithOptions(request, runtime) {
|
|
51905
|
+
tea_util_1.default.validateModel(request);
|
|
51906
|
+
let query = {};
|
|
51907
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
51908
|
+
query["PageNumber"] = request.pageNumber;
|
|
51909
|
+
}
|
|
51910
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
51911
|
+
query["PageSize"] = request.pageSize;
|
|
51912
|
+
}
|
|
51913
|
+
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
51914
|
+
query["RegionId"] = request.regionId;
|
|
51915
|
+
}
|
|
51916
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
51917
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
51918
|
+
}
|
|
51919
|
+
if (!tea_util_1.default.isUnset(request.tunnelIds)) {
|
|
51920
|
+
query["TunnelIds"] = request.tunnelIds;
|
|
51921
|
+
}
|
|
51922
|
+
if (!tea_util_1.default.isUnset(request.vpnConnectionIds)) {
|
|
51923
|
+
query["VpnConnectionIds"] = request.vpnConnectionIds;
|
|
51924
|
+
}
|
|
51925
|
+
if (!tea_util_1.default.isUnset(request.vpnGatewayId)) {
|
|
51926
|
+
query["VpnGatewayId"] = request.vpnGatewayId;
|
|
51927
|
+
}
|
|
51928
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
51929
|
+
query: openapi_util_1.default.query(query),
|
|
51930
|
+
});
|
|
51931
|
+
let params = new $OpenApi.Params({
|
|
51932
|
+
action: "DiagnoseVpnConnections",
|
|
51933
|
+
version: "2016-04-28",
|
|
51934
|
+
protocol: "HTTPS",
|
|
51935
|
+
pathname: "/",
|
|
51936
|
+
method: "POST",
|
|
51937
|
+
authType: "AK",
|
|
51938
|
+
style: "RPC",
|
|
51939
|
+
reqBodyType: "formData",
|
|
51940
|
+
bodyType: "json",
|
|
51941
|
+
});
|
|
51942
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DiagnoseVpnConnectionsResponse({}));
|
|
51943
|
+
}
|
|
51944
|
+
async diagnoseVpnConnections(request) {
|
|
51945
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
51946
|
+
return await this.diagnoseVpnConnectionsWithOptions(request, runtime);
|
|
51947
|
+
}
|
|
51691
51948
|
/**
|
|
51692
51949
|
* Only VPN gateways in specific regions support the quick diagnostics feature. For more information about the supported regions, see [Supported regions](~~430697~~).
|
|
51693
51950
|
*
|