@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/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;
|
|
@@ -44443,6 +44623,28 @@ export class DescribeVpnGatewayResponseBodyTags extends $tea.Model {
|
|
|
44443
44623
|
}
|
|
44444
44624
|
}
|
|
44445
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
|
+
|
|
44446
44648
|
export class DescribeVpnGatewaysRequestTag extends $tea.Model {
|
|
44447
44649
|
key?: string;
|
|
44448
44650
|
value?: string;
|
|
@@ -44849,6 +45051,49 @@ export class DescribeZonesResponseBodyZones extends $tea.Model {
|
|
|
44849
45051
|
}
|
|
44850
45052
|
}
|
|
44851
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
|
+
|
|
44852
45097
|
export class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig extends $tea.Model {
|
|
44853
45098
|
ikeAuthAlg?: string;
|
|
44854
45099
|
ikeEncAlg?: string;
|
|
@@ -54505,10 +54750,10 @@ export default class Client extends OpenApi {
|
|
|
54505
54750
|
}
|
|
54506
54751
|
|
|
54507
54752
|
/**
|
|
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
|
|
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.
|
|
54509
54754
|
* Before you call this operation, take note of the following limits:
|
|
54510
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.
|
|
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,
|
|
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.
|
|
54512
54757
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
54513
54758
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
54514
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.
|
|
@@ -54588,10 +54833,10 @@ export default class Client extends OpenApi {
|
|
|
54588
54833
|
}
|
|
54589
54834
|
|
|
54590
54835
|
/**
|
|
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
|
|
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.
|
|
54592
54837
|
* Before you call this operation, take note of the following limits:
|
|
54593
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.
|
|
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,
|
|
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.
|
|
54595
54840
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
54596
54841
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
54597
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.
|
|
@@ -64980,6 +65225,31 @@ export default class Client extends OpenApi {
|
|
|
64980
65225
|
return await this.describeVpnGatewayWithOptions(request, runtime);
|
|
64981
65226
|
}
|
|
64982
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
|
+
|
|
64983
65253
|
async describeVpnGatewaysWithOptions(request: DescribeVpnGatewaysRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewaysResponse> {
|
|
64984
65254
|
Util.validateModel(request);
|
|
64985
65255
|
let query = { };
|
|
@@ -65387,6 +65657,59 @@ export default class Client extends OpenApi {
|
|
|
65387
65657
|
return await this.detachDhcpOptionsSetFromVpcWithOptions(request, runtime);
|
|
65388
65658
|
}
|
|
65389
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
|
+
|
|
65390
65713
|
/**
|
|
65391
65714
|
* Only VPN gateways in specific regions support the quick diagnostics feature. For more information about the supported regions, see [Supported regions](~~430697~~).
|
|
65392
65715
|
*
|