@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/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;
|
|
@@ -12573,6 +12671,8 @@ export declare class ListFullNatEntriesRequest extends $tea.Model {
|
|
|
12573
12671
|
ipProtocol?: string;
|
|
12574
12672
|
maxResults?: number;
|
|
12575
12673
|
natGatewayId?: string;
|
|
12674
|
+
natIp?: string;
|
|
12675
|
+
natIpPort?: string;
|
|
12576
12676
|
networkInterfaceIds?: string[];
|
|
12577
12677
|
nextToken?: string;
|
|
12578
12678
|
ownerAccount?: string;
|
|
@@ -23528,6 +23628,19 @@ export declare class DescribeVpnGatewayResponseBodyTags extends $tea.Model {
|
|
|
23528
23628
|
[key: string]: any;
|
|
23529
23629
|
});
|
|
23530
23630
|
}
|
|
23631
|
+
export declare class DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList extends $tea.Model {
|
|
23632
|
+
zoneId?: string;
|
|
23633
|
+
zoneName?: string;
|
|
23634
|
+
static names(): {
|
|
23635
|
+
[key: string]: string;
|
|
23636
|
+
};
|
|
23637
|
+
static types(): {
|
|
23638
|
+
[key: string]: any;
|
|
23639
|
+
};
|
|
23640
|
+
constructor(map?: {
|
|
23641
|
+
[key: string]: any;
|
|
23642
|
+
});
|
|
23643
|
+
}
|
|
23531
23644
|
export declare class DescribeVpnGatewaysRequestTag extends $tea.Model {
|
|
23532
23645
|
key?: string;
|
|
23533
23646
|
value?: string;
|
|
@@ -23737,6 +23850,26 @@ export declare class DescribeZonesResponseBodyZones extends $tea.Model {
|
|
|
23737
23850
|
[key: string]: any;
|
|
23738
23851
|
});
|
|
23739
23852
|
}
|
|
23853
|
+
export declare class DiagnoseVpnConnectionsResponseBodyVpnConnections extends $tea.Model {
|
|
23854
|
+
failedReason?: string;
|
|
23855
|
+
failedReasonCode?: string;
|
|
23856
|
+
failedTime?: number;
|
|
23857
|
+
mismatchLocalParam?: string;
|
|
23858
|
+
mismatchRemoteParam?: string;
|
|
23859
|
+
severity?: string;
|
|
23860
|
+
sourceLog?: string;
|
|
23861
|
+
tunnelId?: string;
|
|
23862
|
+
vpnConnectionId?: string;
|
|
23863
|
+
static names(): {
|
|
23864
|
+
[key: string]: string;
|
|
23865
|
+
};
|
|
23866
|
+
static types(): {
|
|
23867
|
+
[key: string]: any;
|
|
23868
|
+
};
|
|
23869
|
+
constructor(map?: {
|
|
23870
|
+
[key: string]: any;
|
|
23871
|
+
});
|
|
23872
|
+
}
|
|
23740
23873
|
export declare class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig extends $tea.Model {
|
|
23741
23874
|
ikeAuthAlg?: string;
|
|
23742
23875
|
ikeEncAlg?: string;
|
|
@@ -26740,10 +26873,10 @@ export default class Client extends OpenApi {
|
|
|
26740
26873
|
*/
|
|
26741
26874
|
createRouterInterface(request: CreateRouterInterfaceRequest): Promise<CreateRouterInterfaceResponse>;
|
|
26742
26875
|
/**
|
|
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
|
|
26876
|
+
* 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
26877
|
* Before you call this operation, take note of the following limits:
|
|
26745
26878
|
* * **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,
|
|
26879
|
+
* * 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
26880
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
26748
26881
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
26749
26882
|
* * 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 +26889,10 @@ export default class Client extends OpenApi {
|
|
|
26756
26889
|
*/
|
|
26757
26890
|
createSnatEntryWithOptions(request: CreateSnatEntryRequest, runtime: $Util.RuntimeOptions): Promise<CreateSnatEntryResponse>;
|
|
26758
26891
|
/**
|
|
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
|
|
26892
|
+
* 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
26893
|
* Before you call this operation, take note of the following limits:
|
|
26761
26894
|
* * **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,
|
|
26895
|
+
* * 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
26896
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
26764
26897
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
26765
26898
|
* * 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.
|
|
@@ -27673,13 +27806,13 @@ export default class Client extends OpenApi {
|
|
|
27673
27806
|
*/
|
|
27674
27807
|
deleteRouteEntries(request: DeleteRouteEntriesRequest): Promise<DeleteRouteEntriesResponse>;
|
|
27675
27808
|
/**
|
|
27676
|
-
* When you call this operation, take note of the following
|
|
27809
|
+
* When you call this operation, take note of the following items:
|
|
27677
27810
|
* * You can delete only routes that are in the **Available** state.
|
|
27678
|
-
* * You cannot delete a route of a virtual private cloud (VPC) in which a vSwitch or
|
|
27811
|
+
* * 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.
|
|
27679
27812
|
* * 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.
|
|
27680
|
-
* *
|
|
27813
|
+
* * **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.
|
|
27681
27814
|
* * If the route is in the **Deleting** state, the route is being deleted.
|
|
27682
|
-
* * If you cannot query the route, the route is deleted.
|
|
27815
|
+
* * If you cannot query the route entry, the route entry is deleted.
|
|
27683
27816
|
* * 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.
|
|
27684
27817
|
*
|
|
27685
27818
|
* @param request DeleteRouteEntryRequest
|
|
@@ -27688,13 +27821,13 @@ export default class Client extends OpenApi {
|
|
|
27688
27821
|
*/
|
|
27689
27822
|
deleteRouteEntryWithOptions(request: DeleteRouteEntryRequest, runtime: $Util.RuntimeOptions): Promise<DeleteRouteEntryResponse>;
|
|
27690
27823
|
/**
|
|
27691
|
-
* When you call this operation, take note of the following
|
|
27824
|
+
* When you call this operation, take note of the following items:
|
|
27692
27825
|
* * You can delete only routes that are in the **Available** state.
|
|
27693
|
-
* * You cannot delete a route of a virtual private cloud (VPC) in which a vSwitch or
|
|
27826
|
+
* * 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.
|
|
27694
27827
|
* * 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.
|
|
27695
|
-
* *
|
|
27828
|
+
* * **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.
|
|
27696
27829
|
* * If the route is in the **Deleting** state, the route is being deleted.
|
|
27697
|
-
* * If you cannot query the route, the route is deleted.
|
|
27830
|
+
* * If you cannot query the route entry, the route entry is deleted.
|
|
27698
27831
|
* * 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.
|
|
27699
27832
|
*
|
|
27700
27833
|
* @param request DeleteRouteEntryRequest
|
|
@@ -28428,6 +28561,8 @@ export default class Client extends OpenApi {
|
|
|
28428
28561
|
describeVpnCrossAccountAuthorizations(request: DescribeVpnCrossAccountAuthorizationsRequest): Promise<DescribeVpnCrossAccountAuthorizationsResponse>;
|
|
28429
28562
|
describeVpnGatewayWithOptions(request: DescribeVpnGatewayRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewayResponse>;
|
|
28430
28563
|
describeVpnGateway(request: DescribeVpnGatewayRequest): Promise<DescribeVpnGatewayResponse>;
|
|
28564
|
+
describeVpnGatewayAvailableZonesWithOptions(request: DescribeVpnGatewayAvailableZonesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewayAvailableZonesResponse>;
|
|
28565
|
+
describeVpnGatewayAvailableZones(request: DescribeVpnGatewayAvailableZonesRequest): Promise<DescribeVpnGatewayAvailableZonesResponse>;
|
|
28431
28566
|
describeVpnGatewaysWithOptions(request: DescribeVpnGatewaysRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnGatewaysResponse>;
|
|
28432
28567
|
describeVpnGateways(request: DescribeVpnGatewaysRequest): Promise<DescribeVpnGatewaysResponse>;
|
|
28433
28568
|
describeVpnPbrRouteEntriesWithOptions(request: DescribeVpnPbrRouteEntriesRequest, runtime: $Util.RuntimeOptions): Promise<DescribeVpnPbrRouteEntriesResponse>;
|
|
@@ -28461,6 +28596,8 @@ export default class Client extends OpenApi {
|
|
|
28461
28596
|
* @return DetachDhcpOptionsSetFromVpcResponse
|
|
28462
28597
|
*/
|
|
28463
28598
|
detachDhcpOptionsSetFromVpc(request: DetachDhcpOptionsSetFromVpcRequest): Promise<DetachDhcpOptionsSetFromVpcResponse>;
|
|
28599
|
+
diagnoseVpnConnectionsWithOptions(request: DiagnoseVpnConnectionsRequest, runtime: $Util.RuntimeOptions): Promise<DiagnoseVpnConnectionsResponse>;
|
|
28600
|
+
diagnoseVpnConnections(request: DiagnoseVpnConnectionsRequest): Promise<DiagnoseVpnConnectionsResponse>;
|
|
28464
28601
|
/**
|
|
28465
28602
|
* Only VPN gateways in specific regions support the quick diagnostics feature. For more information about the supported regions, see [Supported regions](~~430697~~).
|
|
28466
28603
|
*
|
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);
|
|
@@ -18342,6 +18482,8 @@ class ListFullNatEntriesRequest extends $tea.Model {
|
|
|
18342
18482
|
ipProtocol: 'IpProtocol',
|
|
18343
18483
|
maxResults: 'MaxResults',
|
|
18344
18484
|
natGatewayId: 'NatGatewayId',
|
|
18485
|
+
natIp: 'NatIp',
|
|
18486
|
+
natIpPort: 'NatIpPort',
|
|
18345
18487
|
networkInterfaceIds: 'NetworkInterfaceIds',
|
|
18346
18488
|
nextToken: 'NextToken',
|
|
18347
18489
|
ownerAccount: 'OwnerAccount',
|
|
@@ -18360,6 +18502,8 @@ class ListFullNatEntriesRequest extends $tea.Model {
|
|
|
18360
18502
|
ipProtocol: 'string',
|
|
18361
18503
|
maxResults: 'number',
|
|
18362
18504
|
natGatewayId: 'string',
|
|
18505
|
+
natIp: 'string',
|
|
18506
|
+
natIpPort: 'string',
|
|
18363
18507
|
networkInterfaceIds: { 'type': 'array', 'itemType': 'string' },
|
|
18364
18508
|
nextToken: 'string',
|
|
18365
18509
|
ownerAccount: 'string',
|
|
@@ -34339,6 +34483,24 @@ class DescribeVpnGatewayResponseBodyTags extends $tea.Model {
|
|
|
34339
34483
|
}
|
|
34340
34484
|
}
|
|
34341
34485
|
exports.DescribeVpnGatewayResponseBodyTags = DescribeVpnGatewayResponseBodyTags;
|
|
34486
|
+
class DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList extends $tea.Model {
|
|
34487
|
+
constructor(map) {
|
|
34488
|
+
super(map);
|
|
34489
|
+
}
|
|
34490
|
+
static names() {
|
|
34491
|
+
return {
|
|
34492
|
+
zoneId: 'ZoneId',
|
|
34493
|
+
zoneName: 'ZoneName',
|
|
34494
|
+
};
|
|
34495
|
+
}
|
|
34496
|
+
static types() {
|
|
34497
|
+
return {
|
|
34498
|
+
zoneId: 'string',
|
|
34499
|
+
zoneName: 'string',
|
|
34500
|
+
};
|
|
34501
|
+
}
|
|
34502
|
+
}
|
|
34503
|
+
exports.DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList = DescribeVpnGatewayAvailableZonesResponseBodyAvailableZoneIdList;
|
|
34342
34504
|
class DescribeVpnGatewaysRequestTag extends $tea.Model {
|
|
34343
34505
|
constructor(map) {
|
|
34344
34506
|
super(map);
|
|
@@ -34653,6 +34815,38 @@ class DescribeZonesResponseBodyZones extends $tea.Model {
|
|
|
34653
34815
|
}
|
|
34654
34816
|
}
|
|
34655
34817
|
exports.DescribeZonesResponseBodyZones = DescribeZonesResponseBodyZones;
|
|
34818
|
+
class DiagnoseVpnConnectionsResponseBodyVpnConnections extends $tea.Model {
|
|
34819
|
+
constructor(map) {
|
|
34820
|
+
super(map);
|
|
34821
|
+
}
|
|
34822
|
+
static names() {
|
|
34823
|
+
return {
|
|
34824
|
+
failedReason: 'FailedReason',
|
|
34825
|
+
failedReasonCode: 'FailedReasonCode',
|
|
34826
|
+
failedTime: 'FailedTime',
|
|
34827
|
+
mismatchLocalParam: 'MismatchLocalParam',
|
|
34828
|
+
mismatchRemoteParam: 'MismatchRemoteParam',
|
|
34829
|
+
severity: 'Severity',
|
|
34830
|
+
sourceLog: 'SourceLog',
|
|
34831
|
+
tunnelId: 'TunnelId',
|
|
34832
|
+
vpnConnectionId: 'VpnConnectionId',
|
|
34833
|
+
};
|
|
34834
|
+
}
|
|
34835
|
+
static types() {
|
|
34836
|
+
return {
|
|
34837
|
+
failedReason: 'string',
|
|
34838
|
+
failedReasonCode: 'string',
|
|
34839
|
+
failedTime: 'number',
|
|
34840
|
+
mismatchLocalParam: 'string',
|
|
34841
|
+
mismatchRemoteParam: 'string',
|
|
34842
|
+
severity: 'string',
|
|
34843
|
+
sourceLog: 'string',
|
|
34844
|
+
tunnelId: 'string',
|
|
34845
|
+
vpnConnectionId: 'string',
|
|
34846
|
+
};
|
|
34847
|
+
}
|
|
34848
|
+
}
|
|
34849
|
+
exports.DiagnoseVpnConnectionsResponseBodyVpnConnections = DiagnoseVpnConnectionsResponseBodyVpnConnections;
|
|
34656
34850
|
class DownloadVpnConnectionConfigResponseBodyVpnConnectionConfigIkeConfig extends $tea.Model {
|
|
34657
34851
|
constructor(map) {
|
|
34658
34852
|
super(map);
|
|
@@ -42555,10 +42749,10 @@ class Client extends openapi_client_1.default {
|
|
|
42555
42749
|
return await this.createRouterInterfaceWithOptions(request, runtime);
|
|
42556
42750
|
}
|
|
42557
42751
|
/**
|
|
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
|
|
42752
|
+
* 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
42753
|
* Before you call this operation, take note of the following limits:
|
|
42560
42754
|
* * **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,
|
|
42755
|
+
* * 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
42756
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
42563
42757
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
42564
42758
|
* * 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 +42819,10 @@ class Client extends openapi_client_1.default {
|
|
|
42625
42819
|
return $tea.cast(await this.callApi(params, req, runtime), new CreateSnatEntryResponse({}));
|
|
42626
42820
|
}
|
|
42627
42821
|
/**
|
|
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
|
|
42822
|
+
* 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
42823
|
* Before you call this operation, take note of the following limits:
|
|
42630
42824
|
* * **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,
|
|
42825
|
+
* * 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
42826
|
* * If the SNAT entry is in the **Available** state, the SNAT entry is added.
|
|
42633
42827
|
* * You cannot repeatedly call the **CreateSnatEntry** operation to add an SNAT entry to an SNAT table within the specified period of time.
|
|
42634
42828
|
* * 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.
|
|
@@ -46151,13 +46345,13 @@ class Client extends openapi_client_1.default {
|
|
|
46151
46345
|
return await this.deleteRouteEntriesWithOptions(request, runtime);
|
|
46152
46346
|
}
|
|
46153
46347
|
/**
|
|
46154
|
-
* When you call this operation, take note of the following
|
|
46348
|
+
* When you call this operation, take note of the following items:
|
|
46155
46349
|
* * You can delete only routes that are in the **Available** state.
|
|
46156
|
-
* * You cannot delete a route of a virtual private cloud (VPC) in which a vSwitch or
|
|
46350
|
+
* * 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.
|
|
46157
46351
|
* * 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.
|
|
46158
|
-
* *
|
|
46352
|
+
* * **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.
|
|
46159
46353
|
* * If the route is in the **Deleting** state, the route is being deleted.
|
|
46160
|
-
* * If you cannot query the route, the route is deleted.
|
|
46354
|
+
* * If you cannot query the route entry, the route entry is deleted.
|
|
46161
46355
|
* * 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.
|
|
46162
46356
|
*
|
|
46163
46357
|
* @param request DeleteRouteEntryRequest
|
|
@@ -46214,13 +46408,13 @@ class Client extends openapi_client_1.default {
|
|
|
46214
46408
|
return $tea.cast(await this.callApi(params, req, runtime), new DeleteRouteEntryResponse({}));
|
|
46215
46409
|
}
|
|
46216
46410
|
/**
|
|
46217
|
-
* When you call this operation, take note of the following
|
|
46411
|
+
* When you call this operation, take note of the following items:
|
|
46218
46412
|
* * You can delete only routes that are in the **Available** state.
|
|
46219
|
-
* * You cannot delete a route of a virtual private cloud (VPC) in which a vSwitch or
|
|
46413
|
+
* * 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.
|
|
46220
46414
|
* * 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.
|
|
46221
|
-
* *
|
|
46415
|
+
* * **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.
|
|
46222
46416
|
* * If the route is in the **Deleting** state, the route is being deleted.
|
|
46223
|
-
* * If you cannot query the route, the route is deleted.
|
|
46417
|
+
* * If you cannot query the route entry, the route entry is deleted.
|
|
46224
46418
|
* * 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.
|
|
46225
46419
|
*
|
|
46226
46420
|
* @param request DeleteRouteEntryRequest
|
|
@@ -51352,6 +51546,29 @@ class Client extends openapi_client_1.default {
|
|
|
51352
51546
|
let runtime = new $Util.RuntimeOptions({});
|
|
51353
51547
|
return await this.describeVpnGatewayWithOptions(request, runtime);
|
|
51354
51548
|
}
|
|
51549
|
+
async describeVpnGatewayAvailableZonesWithOptions(request, runtime) {
|
|
51550
|
+
tea_util_1.default.validateModel(request);
|
|
51551
|
+
let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
|
|
51552
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
51553
|
+
query: openapi_util_1.default.query(query),
|
|
51554
|
+
});
|
|
51555
|
+
let params = new $OpenApi.Params({
|
|
51556
|
+
action: "DescribeVpnGatewayAvailableZones",
|
|
51557
|
+
version: "2016-04-28",
|
|
51558
|
+
protocol: "HTTPS",
|
|
51559
|
+
pathname: "/",
|
|
51560
|
+
method: "GET",
|
|
51561
|
+
authType: "AK",
|
|
51562
|
+
style: "RPC",
|
|
51563
|
+
reqBodyType: "formData",
|
|
51564
|
+
bodyType: "json",
|
|
51565
|
+
});
|
|
51566
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeVpnGatewayAvailableZonesResponse({}));
|
|
51567
|
+
}
|
|
51568
|
+
async describeVpnGatewayAvailableZones(request) {
|
|
51569
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
51570
|
+
return await this.describeVpnGatewayAvailableZonesWithOptions(request, runtime);
|
|
51571
|
+
}
|
|
51355
51572
|
async describeVpnGatewaysWithOptions(request, runtime) {
|
|
51356
51573
|
tea_util_1.default.validateModel(request);
|
|
51357
51574
|
let query = {};
|
|
@@ -51688,6 +51905,50 @@ class Client extends openapi_client_1.default {
|
|
|
51688
51905
|
let runtime = new $Util.RuntimeOptions({});
|
|
51689
51906
|
return await this.detachDhcpOptionsSetFromVpcWithOptions(request, runtime);
|
|
51690
51907
|
}
|
|
51908
|
+
async diagnoseVpnConnectionsWithOptions(request, runtime) {
|
|
51909
|
+
tea_util_1.default.validateModel(request);
|
|
51910
|
+
let query = {};
|
|
51911
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
51912
|
+
query["PageNumber"] = request.pageNumber;
|
|
51913
|
+
}
|
|
51914
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
51915
|
+
query["PageSize"] = request.pageSize;
|
|
51916
|
+
}
|
|
51917
|
+
if (!tea_util_1.default.isUnset(request.regionId)) {
|
|
51918
|
+
query["RegionId"] = request.regionId;
|
|
51919
|
+
}
|
|
51920
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
51921
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
51922
|
+
}
|
|
51923
|
+
if (!tea_util_1.default.isUnset(request.tunnelIds)) {
|
|
51924
|
+
query["TunnelIds"] = request.tunnelIds;
|
|
51925
|
+
}
|
|
51926
|
+
if (!tea_util_1.default.isUnset(request.vpnConnectionIds)) {
|
|
51927
|
+
query["VpnConnectionIds"] = request.vpnConnectionIds;
|
|
51928
|
+
}
|
|
51929
|
+
if (!tea_util_1.default.isUnset(request.vpnGatewayId)) {
|
|
51930
|
+
query["VpnGatewayId"] = request.vpnGatewayId;
|
|
51931
|
+
}
|
|
51932
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
51933
|
+
query: openapi_util_1.default.query(query),
|
|
51934
|
+
});
|
|
51935
|
+
let params = new $OpenApi.Params({
|
|
51936
|
+
action: "DiagnoseVpnConnections",
|
|
51937
|
+
version: "2016-04-28",
|
|
51938
|
+
protocol: "HTTPS",
|
|
51939
|
+
pathname: "/",
|
|
51940
|
+
method: "POST",
|
|
51941
|
+
authType: "AK",
|
|
51942
|
+
style: "RPC",
|
|
51943
|
+
reqBodyType: "formData",
|
|
51944
|
+
bodyType: "json",
|
|
51945
|
+
});
|
|
51946
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DiagnoseVpnConnectionsResponse({}));
|
|
51947
|
+
}
|
|
51948
|
+
async diagnoseVpnConnections(request) {
|
|
51949
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
51950
|
+
return await this.diagnoseVpnConnectionsWithOptions(request, runtime);
|
|
51951
|
+
}
|
|
51691
51952
|
/**
|
|
51692
51953
|
* Only VPN gateways in specific regions support the quick diagnostics feature. For more information about the supported regions, see [Supported regions](~~430697~~).
|
|
51693
51954
|
*
|
|
@@ -53107,6 +53368,12 @@ class Client extends openapi_client_1.default {
|
|
|
53107
53368
|
if (!tea_util_1.default.isUnset(request.natGatewayId)) {
|
|
53108
53369
|
query["NatGatewayId"] = request.natGatewayId;
|
|
53109
53370
|
}
|
|
53371
|
+
if (!tea_util_1.default.isUnset(request.natIp)) {
|
|
53372
|
+
query["NatIp"] = request.natIp;
|
|
53373
|
+
}
|
|
53374
|
+
if (!tea_util_1.default.isUnset(request.natIpPort)) {
|
|
53375
|
+
query["NatIpPort"] = request.natIpPort;
|
|
53376
|
+
}
|
|
53110
53377
|
if (!tea_util_1.default.isUnset(request.networkInterfaceIds)) {
|
|
53111
53378
|
query["NetworkInterfaceIds"] = request.networkInterfaceIds;
|
|
53112
53379
|
}
|