@alicloud/vpc20160428 4.1.1 → 5.0.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 +3 -76
- package/dist/client.js +4 -144
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +5 -177
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -21968,93 +21968,6 @@ export class GetNatGatewayAttributeResponse extends $tea.Model {
|
|
|
21968
21968
|
}
|
|
21969
21969
|
}
|
|
21970
21970
|
|
|
21971
|
-
export class GetNatGatewayConvertStatusRequest extends $tea.Model {
|
|
21972
|
-
natGatewayId?: string;
|
|
21973
|
-
ownerAccount?: string;
|
|
21974
|
-
ownerId?: number;
|
|
21975
|
-
regionId?: string;
|
|
21976
|
-
resourceOwnerAccount?: string;
|
|
21977
|
-
resourceOwnerId?: number;
|
|
21978
|
-
static names(): { [key: string]: string } {
|
|
21979
|
-
return {
|
|
21980
|
-
natGatewayId: 'NatGatewayId',
|
|
21981
|
-
ownerAccount: 'OwnerAccount',
|
|
21982
|
-
ownerId: 'OwnerId',
|
|
21983
|
-
regionId: 'RegionId',
|
|
21984
|
-
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
21985
|
-
resourceOwnerId: 'ResourceOwnerId',
|
|
21986
|
-
};
|
|
21987
|
-
}
|
|
21988
|
-
|
|
21989
|
-
static types(): { [key: string]: any } {
|
|
21990
|
-
return {
|
|
21991
|
-
natGatewayId: 'string',
|
|
21992
|
-
ownerAccount: 'string',
|
|
21993
|
-
ownerId: 'number',
|
|
21994
|
-
regionId: 'string',
|
|
21995
|
-
resourceOwnerAccount: 'string',
|
|
21996
|
-
resourceOwnerId: 'number',
|
|
21997
|
-
};
|
|
21998
|
-
}
|
|
21999
|
-
|
|
22000
|
-
constructor(map?: { [key: string]: any }) {
|
|
22001
|
-
super(map);
|
|
22002
|
-
}
|
|
22003
|
-
}
|
|
22004
|
-
|
|
22005
|
-
export class GetNatGatewayConvertStatusResponseBody extends $tea.Model {
|
|
22006
|
-
convertSteps?: GetNatGatewayConvertStatusResponseBodyConvertSteps[];
|
|
22007
|
-
dstNatType?: string;
|
|
22008
|
-
natGatewayId?: string;
|
|
22009
|
-
requestId?: string;
|
|
22010
|
-
static names(): { [key: string]: string } {
|
|
22011
|
-
return {
|
|
22012
|
-
convertSteps: 'ConvertSteps',
|
|
22013
|
-
dstNatType: 'DstNatType',
|
|
22014
|
-
natGatewayId: 'NatGatewayId',
|
|
22015
|
-
requestId: 'RequestId',
|
|
22016
|
-
};
|
|
22017
|
-
}
|
|
22018
|
-
|
|
22019
|
-
static types(): { [key: string]: any } {
|
|
22020
|
-
return {
|
|
22021
|
-
convertSteps: { 'type': 'array', 'itemType': GetNatGatewayConvertStatusResponseBodyConvertSteps },
|
|
22022
|
-
dstNatType: 'string',
|
|
22023
|
-
natGatewayId: 'string',
|
|
22024
|
-
requestId: 'string',
|
|
22025
|
-
};
|
|
22026
|
-
}
|
|
22027
|
-
|
|
22028
|
-
constructor(map?: { [key: string]: any }) {
|
|
22029
|
-
super(map);
|
|
22030
|
-
}
|
|
22031
|
-
}
|
|
22032
|
-
|
|
22033
|
-
export class GetNatGatewayConvertStatusResponse extends $tea.Model {
|
|
22034
|
-
headers: { [key: string]: string };
|
|
22035
|
-
statusCode: number;
|
|
22036
|
-
body: GetNatGatewayConvertStatusResponseBody;
|
|
22037
|
-
static names(): { [key: string]: string } {
|
|
22038
|
-
return {
|
|
22039
|
-
headers: 'headers',
|
|
22040
|
-
statusCode: 'statusCode',
|
|
22041
|
-
body: 'body',
|
|
22042
|
-
};
|
|
22043
|
-
}
|
|
22044
|
-
|
|
22045
|
-
static types(): { [key: string]: any } {
|
|
22046
|
-
return {
|
|
22047
|
-
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
22048
|
-
statusCode: 'number',
|
|
22049
|
-
body: GetNatGatewayConvertStatusResponseBody,
|
|
22050
|
-
};
|
|
22051
|
-
}
|
|
22052
|
-
|
|
22053
|
-
constructor(map?: { [key: string]: any }) {
|
|
22054
|
-
super(map);
|
|
22055
|
-
}
|
|
22056
|
-
}
|
|
22057
|
-
|
|
22058
21971
|
export class GetPhysicalConnectionServiceStatusRequest extends $tea.Model {
|
|
22059
21972
|
ownerAccount?: string;
|
|
22060
21973
|
ownerId?: number;
|
|
@@ -24824,12 +24737,14 @@ export class ListVpcEndpointServicesByEndUserResponseBody extends $tea.Model {
|
|
|
24824
24737
|
nextToken?: string;
|
|
24825
24738
|
requestId?: string;
|
|
24826
24739
|
services?: ListVpcEndpointServicesByEndUserResponseBodyServices[];
|
|
24740
|
+
totalCount?: string;
|
|
24827
24741
|
static names(): { [key: string]: string } {
|
|
24828
24742
|
return {
|
|
24829
24743
|
maxResults: 'MaxResults',
|
|
24830
24744
|
nextToken: 'NextToken',
|
|
24831
24745
|
requestId: 'RequestId',
|
|
24832
24746
|
services: 'Services',
|
|
24747
|
+
totalCount: 'TotalCount',
|
|
24833
24748
|
};
|
|
24834
24749
|
}
|
|
24835
24750
|
|
|
@@ -24839,6 +24754,7 @@ export class ListVpcEndpointServicesByEndUserResponseBody extends $tea.Model {
|
|
|
24839
24754
|
nextToken: 'string',
|
|
24840
24755
|
requestId: 'string',
|
|
24841
24756
|
services: { 'type': 'array', 'itemType': ListVpcEndpointServicesByEndUserResponseBodyServices },
|
|
24757
|
+
totalCount: 'string',
|
|
24842
24758
|
};
|
|
24843
24759
|
}
|
|
24844
24760
|
|
|
@@ -43777,31 +43693,6 @@ export class GetNatGatewayAttributeResponseBodySnatTable extends $tea.Model {
|
|
|
43777
43693
|
}
|
|
43778
43694
|
}
|
|
43779
43695
|
|
|
43780
|
-
export class GetNatGatewayConvertStatusResponseBodyConvertSteps extends $tea.Model {
|
|
43781
|
-
stepName?: string;
|
|
43782
|
-
stepStartTime?: string;
|
|
43783
|
-
stepStatus?: string;
|
|
43784
|
-
static names(): { [key: string]: string } {
|
|
43785
|
-
return {
|
|
43786
|
-
stepName: 'StepName',
|
|
43787
|
-
stepStartTime: 'StepStartTime',
|
|
43788
|
-
stepStatus: 'StepStatus',
|
|
43789
|
-
};
|
|
43790
|
-
}
|
|
43791
|
-
|
|
43792
|
-
static types(): { [key: string]: any } {
|
|
43793
|
-
return {
|
|
43794
|
-
stepName: 'string',
|
|
43795
|
-
stepStartTime: 'string',
|
|
43796
|
-
stepStatus: 'string',
|
|
43797
|
-
};
|
|
43798
|
-
}
|
|
43799
|
-
|
|
43800
|
-
constructor(map?: { [key: string]: any }) {
|
|
43801
|
-
super(map);
|
|
43802
|
-
}
|
|
43803
|
-
}
|
|
43804
|
-
|
|
43805
43696
|
export class GetVpcGatewayEndpointAttributeResponseBodyTags extends $tea.Model {
|
|
43806
43697
|
key?: string;
|
|
43807
43698
|
value?: string;
|
|
@@ -48753,7 +48644,6 @@ export default class Client extends OpenApi {
|
|
|
48753
48644
|
}
|
|
48754
48645
|
|
|
48755
48646
|
/**
|
|
48756
|
-
* ## Usage notes
|
|
48757
48647
|
* Before you associate a VPN gateway with an SSL certificate, take note of the following items:
|
|
48758
48648
|
* * You can associate only VPN gateways of the ShangMi (SM) type with SSL certificates. You need to associate a VPN gateway of the SM type with two SSL certificates, one as the encryption certificate and the other as the signature certificate.
|
|
48759
48649
|
* * The SSL certificates must use the SM algorithm.
|
|
@@ -48815,7 +48705,6 @@ export default class Client extends OpenApi {
|
|
|
48815
48705
|
}
|
|
48816
48706
|
|
|
48817
48707
|
/**
|
|
48818
|
-
* ## Usage notes
|
|
48819
48708
|
* Before you associate a VPN gateway with an SSL certificate, take note of the following items:
|
|
48820
48709
|
* * You can associate only VPN gateways of the ShangMi (SM) type with SSL certificates. You need to associate a VPN gateway of the SM type with two SSL certificates, one as the encryption certificate and the other as the signature certificate.
|
|
48821
48710
|
* * The SSL certificates must use the SM algorithm.
|
|
@@ -54109,9 +53998,8 @@ export default class Client extends OpenApi {
|
|
|
54109
53998
|
}
|
|
54110
53999
|
|
|
54111
54000
|
/**
|
|
54112
|
-
* # Usage notes
|
|
54113
54001
|
* By default, an IPsec-VPN connection created by calling the `CreateVpnAttachment` operation is not associated with a resource. You can associate an IPsec-VPN connection with a transit router by calling the [CreateTransitRouterVpnAttachment](~~443993~~) operation.
|
|
54114
|
-
*
|
|
54002
|
+
* ### Prerequisites
|
|
54115
54003
|
* Before you create an IPsec-VPN connection, make sure that you created a customer gateway in the region where you want to create the IPsec-VPN connection. For more information, see [CreateCustomerGateway](~~120368~~).
|
|
54116
54004
|
* If you want to add BGP configurations to an IPsec-VPN connection, make sure that an autonomous system number (ASN) is assigned to the customer gateway.
|
|
54117
54005
|
*
|
|
@@ -54220,9 +54108,8 @@ export default class Client extends OpenApi {
|
|
|
54220
54108
|
}
|
|
54221
54109
|
|
|
54222
54110
|
/**
|
|
54223
|
-
* # Usage notes
|
|
54224
54111
|
* By default, an IPsec-VPN connection created by calling the `CreateVpnAttachment` operation is not associated with a resource. You can associate an IPsec-VPN connection with a transit router by calling the [CreateTransitRouterVpnAttachment](~~443993~~) operation.
|
|
54225
|
-
*
|
|
54112
|
+
* ### Prerequisites
|
|
54226
54113
|
* Before you create an IPsec-VPN connection, make sure that you created a customer gateway in the region where you want to create the IPsec-VPN connection. For more information, see [CreateCustomerGateway](~~120368~~).
|
|
54227
54114
|
* If you want to add BGP configurations to an IPsec-VPN connection, make sure that an autonomous system number (ASN) is assigned to the customer gateway.
|
|
54228
54115
|
*
|
|
@@ -54235,7 +54122,6 @@ export default class Client extends OpenApi {
|
|
|
54235
54122
|
}
|
|
54236
54123
|
|
|
54237
54124
|
/**
|
|
54238
|
-
* # Usage notes
|
|
54239
54125
|
* * **CreateVpnConnection** 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 [DescribeVpnGateway](~~73720~~) to query the status of the task.
|
|
54240
54126
|
* * If the VPN gateway is in the **updating** state, the IPsec-VPN connection is being created.
|
|
54241
54127
|
* * If the VPN gateway is in the **active** state, the IPsec-VPN connection is created.
|
|
@@ -54365,7 +54251,6 @@ export default class Client extends OpenApi {
|
|
|
54365
54251
|
}
|
|
54366
54252
|
|
|
54367
54253
|
/**
|
|
54368
|
-
* # Usage notes
|
|
54369
54254
|
* * **CreateVpnConnection** 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 [DescribeVpnGateway](~~73720~~) to query the status of the task.
|
|
54370
54255
|
* * If the VPN gateway is in the **updating** state, the IPsec-VPN connection is being created.
|
|
54371
54256
|
* * If the VPN gateway is in the **active** state, the IPsec-VPN connection is created.
|
|
@@ -63420,7 +63305,6 @@ export default class Client extends OpenApi {
|
|
|
63420
63305
|
}
|
|
63421
63306
|
|
|
63422
63307
|
/**
|
|
63423
|
-
* ## Usage notes
|
|
63424
63308
|
* * **DissociateVpnGatewayWithCertificate** is an asynchronous operation. After a request is sent, the system returns a request and runs the task in the background. You can call the [DescribeVpnGateway](~~73720~~) operation to query the status the task.
|
|
63425
63309
|
* * If the VPN gateway is in the **updating** state, the SSL certificate is being disassociated from the VPN gateway.
|
|
63426
63310
|
* * If the VPN gateway is in the **active** state, the SSL certificate is disassociated from the VPN gateway.
|
|
@@ -63475,7 +63359,6 @@ export default class Client extends OpenApi {
|
|
|
63475
63359
|
}
|
|
63476
63360
|
|
|
63477
63361
|
/**
|
|
63478
|
-
* ## Usage notes
|
|
63479
63362
|
* * **DissociateVpnGatewayWithCertificate** is an asynchronous operation. After a request is sent, the system returns a request and runs the task in the background. You can call the [DescribeVpnGateway](~~73720~~) operation to query the status the task.
|
|
63480
63363
|
* * If the VPN gateway is in the **updating** state, the SSL certificate is being disassociated from the VPN gateway.
|
|
63481
63364
|
* * If the VPN gateway is in the **active** state, the SSL certificate is disassociated from the VPN gateway.
|
|
@@ -64011,59 +63894,6 @@ export default class Client extends OpenApi {
|
|
|
64011
63894
|
return await this.getNatGatewayAttributeWithOptions(request, runtime);
|
|
64012
63895
|
}
|
|
64013
63896
|
|
|
64014
|
-
async getNatGatewayConvertStatusWithOptions(request: GetNatGatewayConvertStatusRequest, runtime: $Util.RuntimeOptions): Promise<GetNatGatewayConvertStatusResponse> {
|
|
64015
|
-
Util.validateModel(request);
|
|
64016
|
-
let query = { };
|
|
64017
|
-
if (!Util.isUnset(request.natGatewayId)) {
|
|
64018
|
-
query["NatGatewayId"] = request.natGatewayId;
|
|
64019
|
-
}
|
|
64020
|
-
|
|
64021
|
-
if (!Util.isUnset(request.ownerAccount)) {
|
|
64022
|
-
query["OwnerAccount"] = request.ownerAccount;
|
|
64023
|
-
}
|
|
64024
|
-
|
|
64025
|
-
if (!Util.isUnset(request.ownerId)) {
|
|
64026
|
-
query["OwnerId"] = request.ownerId;
|
|
64027
|
-
}
|
|
64028
|
-
|
|
64029
|
-
if (!Util.isUnset(request.regionId)) {
|
|
64030
|
-
query["RegionId"] = request.regionId;
|
|
64031
|
-
}
|
|
64032
|
-
|
|
64033
|
-
if (!Util.isUnset(request.regionId)) {
|
|
64034
|
-
query["RegionId"] = request.regionId;
|
|
64035
|
-
}
|
|
64036
|
-
|
|
64037
|
-
if (!Util.isUnset(request.resourceOwnerAccount)) {
|
|
64038
|
-
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
64039
|
-
}
|
|
64040
|
-
|
|
64041
|
-
if (!Util.isUnset(request.resourceOwnerId)) {
|
|
64042
|
-
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
64043
|
-
}
|
|
64044
|
-
|
|
64045
|
-
let req = new $OpenApi.OpenApiRequest({
|
|
64046
|
-
query: OpenApiUtil.query(query),
|
|
64047
|
-
});
|
|
64048
|
-
let params = new $OpenApi.Params({
|
|
64049
|
-
action: "GetNatGatewayConvertStatus",
|
|
64050
|
-
version: "2016-04-28",
|
|
64051
|
-
protocol: "HTTPS",
|
|
64052
|
-
pathname: "/",
|
|
64053
|
-
method: "POST",
|
|
64054
|
-
authType: "AK",
|
|
64055
|
-
style: "RPC",
|
|
64056
|
-
reqBodyType: "formData",
|
|
64057
|
-
bodyType: "json",
|
|
64058
|
-
});
|
|
64059
|
-
return $tea.cast<GetNatGatewayConvertStatusResponse>(await this.callApi(params, req, runtime), new GetNatGatewayConvertStatusResponse({}));
|
|
64060
|
-
}
|
|
64061
|
-
|
|
64062
|
-
async getNatGatewayConvertStatus(request: GetNatGatewayConvertStatusRequest): Promise<GetNatGatewayConvertStatusResponse> {
|
|
64063
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
64064
|
-
return await this.getNatGatewayConvertStatusWithOptions(request, runtime);
|
|
64065
|
-
}
|
|
64066
|
-
|
|
64067
63897
|
/**
|
|
64068
63898
|
* You can call this API operation to query the status of outbound data transfer billing for the current account. For more information about outbound data transfer billing, see [Outbound data transfer billing](~~274385~~) and [Billing](~~54582~~).
|
|
64069
63899
|
*
|
|
@@ -66040,7 +65870,6 @@ export default class Client extends OpenApi {
|
|
|
66040
65870
|
}
|
|
66041
65871
|
|
|
66042
65872
|
/**
|
|
66043
|
-
* ## Usage notes
|
|
66044
65873
|
* When you call **ListVpnCertificateAssociations**, take note of the following information:
|
|
66045
65874
|
* * If you specify only **RegionId**, the SSL certificates associated with all VPN gateways in the specified region are queried.
|
|
66046
65875
|
* * If you specify **RegionId** and **CertificateType**, the SSL certificates of the specified type that are associated with the VPN gateways in the specified region are queried.
|
|
@@ -66096,7 +65925,6 @@ export default class Client extends OpenApi {
|
|
|
66096
65925
|
}
|
|
66097
65926
|
|
|
66098
65927
|
/**
|
|
66099
|
-
* ## Usage notes
|
|
66100
65928
|
* When you call **ListVpnCertificateAssociations**, take note of the following information:
|
|
66101
65929
|
* * If you specify only **RegionId**, the SSL certificates associated with all VPN gateways in the specified region are queried.
|
|
66102
65930
|
* * If you specify **RegionId** and **CertificateType**, the SSL certificates of the specified type that are associated with the VPN gateways in the specified region are queried.
|