@alicloud/vpc20160428 7.0.1 → 7.1.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.
Files changed (85) hide show
  1. package/dist/client.d.ts +79 -24
  2. package/dist/client.js +235 -24
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AssociateVpcCidrBlockRequest.d.ts +2 -2
  5. package/dist/models/CreateDefaultVswitchRequest.d.ts +2 -2
  6. package/dist/models/CreateEnhancedVpnGatewayRequest.d.ts +76 -0
  7. package/dist/models/CreateEnhancedVpnGatewayRequest.js +84 -0
  8. package/dist/models/CreateEnhancedVpnGatewayRequest.js.map +1 -0
  9. package/dist/models/CreateEnhancedVpnGatewayResponse.d.ts +19 -0
  10. package/dist/models/CreateEnhancedVpnGatewayResponse.js +69 -0
  11. package/dist/models/CreateEnhancedVpnGatewayResponse.js.map +1 -0
  12. package/dist/models/CreateEnhancedVpnGatewayResponseBody.d.ts +28 -0
  13. package/dist/models/CreateEnhancedVpnGatewayResponseBody.js +62 -0
  14. package/dist/models/CreateEnhancedVpnGatewayResponseBody.js.map +1 -0
  15. package/dist/models/CreateVpcRequest.d.ts +2 -2
  16. package/dist/models/DeleteEnhancedVpnGatewayRequest.d.ts +38 -0
  17. package/dist/models/DeleteEnhancedVpnGatewayRequest.js +70 -0
  18. package/dist/models/DeleteEnhancedVpnGatewayRequest.js.map +1 -0
  19. package/dist/models/DeleteEnhancedVpnGatewayResponse.d.ts +19 -0
  20. package/dist/models/DeleteEnhancedVpnGatewayResponse.js +69 -0
  21. package/dist/models/DeleteEnhancedVpnGatewayResponse.js.map +1 -0
  22. package/dist/models/DeleteEnhancedVpnGatewayResponseBody.d.ts +18 -0
  23. package/dist/models/DeleteEnhancedVpnGatewayResponseBody.js +58 -0
  24. package/dist/models/DeleteEnhancedVpnGatewayResponseBody.js.map +1 -0
  25. package/dist/models/DeleteVpcRequest.d.ts +1 -1
  26. package/dist/models/DeleteVswitchCidrReservationRequest.d.ts +1 -1
  27. package/dist/models/DeleteVswitchRequest.d.ts +1 -1
  28. package/dist/models/DescribeGrantRulesToCenRequest.d.ts +2 -2
  29. package/dist/models/DescribeVpcAttributeRequest.d.ts +1 -1
  30. package/dist/models/DescribeVpcsRequest.d.ts +2 -2
  31. package/dist/models/DescribeVswitchAttributesRequest.d.ts +1 -1
  32. package/dist/models/DescribeVswitchAttributesResponseBody.d.ts +5 -3
  33. package/dist/models/DescribeVswitchAttributesResponseBody.js.map +1 -1
  34. package/dist/models/DescribeVswitchesRequest.d.ts +1 -1
  35. package/dist/models/GrantInstanceToCenRequest.d.ts +1 -1
  36. package/dist/models/ModifyRouteEntryRequest.d.ts +3 -1
  37. package/dist/models/ModifyRouteEntryRequest.js.map +1 -1
  38. package/dist/models/ModifyVpcAttributeRequest.d.ts +1 -1
  39. package/dist/models/RevokeInstanceFromCenRequest.d.ts +1 -1
  40. package/dist/models/UnassociateVpcCidrBlockRequest.d.ts +6 -4
  41. package/dist/models/UnassociateVpcCidrBlockRequest.js.map +1 -1
  42. package/dist/models/UpdateEnhancedVpnGatewayRequest.d.ts +53 -0
  43. package/dist/models/UpdateEnhancedVpnGatewayRequest.js +76 -0
  44. package/dist/models/UpdateEnhancedVpnGatewayRequest.js.map +1 -0
  45. package/dist/models/UpdateEnhancedVpnGatewayResponse.d.ts +19 -0
  46. package/dist/models/UpdateEnhancedVpnGatewayResponse.js +69 -0
  47. package/dist/models/UpdateEnhancedVpnGatewayResponse.js.map +1 -0
  48. package/dist/models/UpdateEnhancedVpnGatewayResponseBody.d.ts +135 -0
  49. package/dist/models/UpdateEnhancedVpnGatewayResponseBody.js +163 -0
  50. package/dist/models/UpdateEnhancedVpnGatewayResponseBody.js.map +1 -0
  51. package/dist/models/UpdateNetworkAclEntriesRequest.d.ts +26 -22
  52. package/dist/models/UpdateNetworkAclEntriesRequest.js.map +1 -1
  53. package/dist/models/model.d.ts +12 -0
  54. package/dist/models/model.js +49 -25
  55. package/dist/models/model.js.map +1 -1
  56. package/package.json +1 -1
  57. package/src/client.ts +272 -24
  58. package/src/models/AssociateVpcCidrBlockRequest.ts +2 -2
  59. package/src/models/CreateDefaultVswitchRequest.ts +2 -2
  60. package/src/models/CreateEnhancedVpnGatewayRequest.ts +115 -0
  61. package/src/models/CreateEnhancedVpnGatewayResponse.ts +40 -0
  62. package/src/models/CreateEnhancedVpnGatewayResponseBody.ts +45 -0
  63. package/src/models/CreateVpcRequest.ts +2 -2
  64. package/src/models/DeleteEnhancedVpnGatewayRequest.ts +63 -0
  65. package/src/models/DeleteEnhancedVpnGatewayResponse.ts +40 -0
  66. package/src/models/DeleteEnhancedVpnGatewayResponseBody.ts +31 -0
  67. package/src/models/DeleteVpcRequest.ts +1 -1
  68. package/src/models/DeleteVswitchCidrReservationRequest.ts +1 -1
  69. package/src/models/DeleteVswitchRequest.ts +1 -1
  70. package/src/models/DescribeGrantRulesToCenRequest.ts +2 -2
  71. package/src/models/DescribeVpcAttributeRequest.ts +1 -1
  72. package/src/models/DescribeVpcsRequest.ts +2 -2
  73. package/src/models/DescribeVswitchAttributesRequest.ts +1 -1
  74. package/src/models/DescribeVswitchAttributesResponseBody.ts +5 -3
  75. package/src/models/DescribeVswitchesRequest.ts +1 -1
  76. package/src/models/GrantInstanceToCenRequest.ts +1 -1
  77. package/src/models/ModifyRouteEntryRequest.ts +3 -1
  78. package/src/models/ModifyVpcAttributeRequest.ts +1 -1
  79. package/src/models/RevokeInstanceFromCenRequest.ts +1 -1
  80. package/src/models/UnassociateVpcCidrBlockRequest.ts +6 -4
  81. package/src/models/UpdateEnhancedVpnGatewayRequest.ts +84 -0
  82. package/src/models/UpdateEnhancedVpnGatewayResponse.ts +40 -0
  83. package/src/models/UpdateEnhancedVpnGatewayResponseBody.ts +226 -0
  84. package/src/models/UpdateNetworkAclEntriesRequest.ts +26 -22
  85. package/src/models/model.ts +12 -0
package/src/client.ts CHANGED
@@ -282,7 +282,7 @@ export default class Client extends OpenApi {
282
282
  }
283
283
 
284
284
  /**
285
- * Associates an elastic IP address (EIP) with an Internet Shared Bandwidth instance.
285
+ * AddCommonBandwidthPackageIp
286
286
  *
287
287
  * @remarks
288
288
  * Associates an elastic IP address (EIP) with an Internet Shared Bandwidth instance.
@@ -348,7 +348,7 @@ export default class Client extends OpenApi {
348
348
  }
349
349
 
350
350
  /**
351
- * Associates an elastic IP address (EIP) with an Internet Shared Bandwidth instance.
351
+ * AddCommonBandwidthPackageIp
352
352
  *
353
353
  * @remarks
354
354
  * Associates an elastic IP address (EIP) with an Internet Shared Bandwidth instance.
@@ -1344,7 +1344,7 @@ export default class Client extends OpenApi {
1344
1344
  * # [](#)
1345
1345
  * The following section describes how to allocate an IPv6 CIDR block to a virtual private cloud (VPC):
1346
1346
  * 1. Call the AllocateVpcIpv6Cidr operation to reserve the IPv6 CIDR block.
1347
- * 2. To allocate an IPv6 CIDR block to an existing VPC, call the [AssociateVpcCidrBlock](https://help.aliyun.com/document_detail/146745.html) operation. Set **RegionId**, **VpcId**, and **IPv6CidrBlock** to the IPv6 CIDR bock, and set **IpVersion** to **ipv6**. To allocate an IPv6 CIDR block when you create a VPC, call the [CreateVpc](https://help.aliyun.com/document_detail/35737.html) operation. Set **RegionId** and **Ipv6CidrBlock** to the IPv6 CIDR block, and set **EnableIpv6** to **true**.
1347
+ * 2. To allocate an IPv6 CIDR block to an existing VPC, call the [AssociateVpcCidrBlock](https://help.aliyun.com/document_detail/146745.html) operation. Set **RegionId**, **VpcId**, and **IPv6CidrBlock** to the IPv6 CIDR block, and set **IpVersion** to **ipv6**. To allocate an IPv6 CIDR block when you create a VPC, call the [CreateVpc](https://help.aliyun.com/document_detail/35737.html) operation. Set **RegionId** and **Ipv6CidrBlock** to the IPv6 CIDR block, and set **EnableIpv6** to **true**.
1348
1348
  *
1349
1349
  * @param request - AllocateVpcIpv6CidrRequest
1350
1350
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1417,7 +1417,7 @@ export default class Client extends OpenApi {
1417
1417
  * # [](#)
1418
1418
  * The following section describes how to allocate an IPv6 CIDR block to a virtual private cloud (VPC):
1419
1419
  * 1. Call the AllocateVpcIpv6Cidr operation to reserve the IPv6 CIDR block.
1420
- * 2. To allocate an IPv6 CIDR block to an existing VPC, call the [AssociateVpcCidrBlock](https://help.aliyun.com/document_detail/146745.html) operation. Set **RegionId**, **VpcId**, and **IPv6CidrBlock** to the IPv6 CIDR bock, and set **IpVersion** to **ipv6**. To allocate an IPv6 CIDR block when you create a VPC, call the [CreateVpc](https://help.aliyun.com/document_detail/35737.html) operation. Set **RegionId** and **Ipv6CidrBlock** to the IPv6 CIDR block, and set **EnableIpv6** to **true**.
1420
+ * 2. To allocate an IPv6 CIDR block to an existing VPC, call the [AssociateVpcCidrBlock](https://help.aliyun.com/document_detail/146745.html) operation. Set **RegionId**, **VpcId**, and **IPv6CidrBlock** to the IPv6 CIDR block, and set **IpVersion** to **ipv6**. To allocate an IPv6 CIDR block when you create a VPC, call the [CreateVpc](https://help.aliyun.com/document_detail/35737.html) operation. Set **RegionId** and **Ipv6CidrBlock** to the IPv6 CIDR block, and set **EnableIpv6** to **true**.
1421
1421
  *
1422
1422
  * @param request - AllocateVpcIpv6CidrRequest
1423
1423
  * @returns AllocateVpcIpv6CidrResponse
@@ -3973,6 +3973,100 @@ export default class Client extends OpenApi {
3973
3973
  return await this.createDhcpOptionsSetWithOptions(request, runtime);
3974
3974
  }
3975
3975
 
3976
+ /**
3977
+ * 创建增强型VPN网关
3978
+ *
3979
+ * @param request - CreateEnhancedVpnGatewayRequest
3980
+ * @param runtime - runtime options for this request RuntimeOptions
3981
+ * @returns CreateEnhancedVpnGatewayResponse
3982
+ */
3983
+ async createEnhancedVpnGatewayWithOptions(request: $_model.CreateEnhancedVpnGatewayRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateEnhancedVpnGatewayResponse> {
3984
+ request.validate();
3985
+ let query = { };
3986
+ if (!$dara.isNull(request.clientToken)) {
3987
+ query["ClientToken"] = request.clientToken;
3988
+ }
3989
+
3990
+ if (!$dara.isNull(request.disasterRecoveryVSwitchId)) {
3991
+ query["DisasterRecoveryVSwitchId"] = request.disasterRecoveryVSwitchId;
3992
+ }
3993
+
3994
+ if (!$dara.isNull(request.gatewayType)) {
3995
+ query["GatewayType"] = request.gatewayType;
3996
+ }
3997
+
3998
+ if (!$dara.isNull(request.name)) {
3999
+ query["Name"] = request.name;
4000
+ }
4001
+
4002
+ if (!$dara.isNull(request.networkType)) {
4003
+ query["NetworkType"] = request.networkType;
4004
+ }
4005
+
4006
+ if (!$dara.isNull(request.ownerAccount)) {
4007
+ query["OwnerAccount"] = request.ownerAccount;
4008
+ }
4009
+
4010
+ if (!$dara.isNull(request.ownerId)) {
4011
+ query["OwnerId"] = request.ownerId;
4012
+ }
4013
+
4014
+ if (!$dara.isNull(request.regionId)) {
4015
+ query["RegionId"] = request.regionId;
4016
+ }
4017
+
4018
+ if (!$dara.isNull(request.resourceGroupId)) {
4019
+ query["ResourceGroupId"] = request.resourceGroupId;
4020
+ }
4021
+
4022
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
4023
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4024
+ }
4025
+
4026
+ if (!$dara.isNull(request.resourceOwnerId)) {
4027
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4028
+ }
4029
+
4030
+ if (!$dara.isNull(request.vSwitchId)) {
4031
+ query["VSwitchId"] = request.vSwitchId;
4032
+ }
4033
+
4034
+ if (!$dara.isNull(request.vpcId)) {
4035
+ query["VpcId"] = request.vpcId;
4036
+ }
4037
+
4038
+ if (!$dara.isNull(request.vpnType)) {
4039
+ query["VpnType"] = request.vpnType;
4040
+ }
4041
+
4042
+ let req = new $OpenApiUtil.OpenApiRequest({
4043
+ query: OpenApiUtil.query(query),
4044
+ });
4045
+ let params = new $OpenApiUtil.Params({
4046
+ action: "CreateEnhancedVpnGateway",
4047
+ version: "2016-04-28",
4048
+ protocol: "HTTPS",
4049
+ pathname: "/",
4050
+ method: "POST",
4051
+ authType: "AK",
4052
+ style: "RPC",
4053
+ reqBodyType: "formData",
4054
+ bodyType: "json",
4055
+ });
4056
+ return $dara.cast<$_model.CreateEnhancedVpnGatewayResponse>(await this.callApi(params, req, runtime), new $_model.CreateEnhancedVpnGatewayResponse({}));
4057
+ }
4058
+
4059
+ /**
4060
+ * 创建增强型VPN网关
4061
+ *
4062
+ * @param request - CreateEnhancedVpnGatewayRequest
4063
+ * @returns CreateEnhancedVpnGatewayResponse
4064
+ */
4065
+ async createEnhancedVpnGateway(request: $_model.CreateEnhancedVpnGatewayRequest): Promise<$_model.CreateEnhancedVpnGatewayResponse> {
4066
+ let runtime = new $dara.RuntimeOptions({ });
4067
+ return await this.createEnhancedVpnGatewayWithOptions(request, runtime);
4068
+ }
4069
+
3976
4070
  /**
3977
4071
  * Creates an Express Cloud Connect (ECC) instance.
3978
4072
  *
@@ -8564,9 +8658,9 @@ export default class Client extends OpenApi {
8564
8658
  * * After you create a VPC, a vRouter and a route table are automatically created.
8565
8659
  * * At most three user CIDR blocks can be added to a VPC. If a user CIDR block includes another user CIDR block, the one with the shorter subnet mask takes effect. For example, if both 10.0.0.0/8 and 10.1.0.0/16 are specified, only 10.0.0.0/8 takes effect.
8566
8660
  * * **CreateVpc** 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 [DescribeVpcAttribute](https://help.aliyun.com/document_detail/94565.html) operation to query the status of the task:
8567
- * * If the VPC is in the **Creating** state, the VPC is being created.
8568
- * * If the VPC is in the **Created** state, the VPC is created.
8569
- * * You cannot repeatedly call the **DeleteRouteEntry** operation to create default VPCs within a specific time period. However, you can repeatedly call this operation to create custom VPCs within a specific time period.
8661
+ * * If the VPC is in the **Pending** state, the VPC is being created.
8662
+ * * If the VPC is in the **Available** state, the VPC is created.
8663
+ * * You cannot repeatedly call the **CreateVpc** operation to create default VPCs within a specific time period. However, you can repeatedly call this operation to create custom VPCs within a specific time period.
8570
8664
  *
8571
8665
  * @param request - CreateVpcRequest
8572
8666
  * @param runtime - runtime options for this request RuntimeOptions
@@ -8687,9 +8781,9 @@ export default class Client extends OpenApi {
8687
8781
  * * After you create a VPC, a vRouter and a route table are automatically created.
8688
8782
  * * At most three user CIDR blocks can be added to a VPC. If a user CIDR block includes another user CIDR block, the one with the shorter subnet mask takes effect. For example, if both 10.0.0.0/8 and 10.1.0.0/16 are specified, only 10.0.0.0/8 takes effect.
8689
8783
  * * **CreateVpc** 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 [DescribeVpcAttribute](https://help.aliyun.com/document_detail/94565.html) operation to query the status of the task:
8690
- * * If the VPC is in the **Creating** state, the VPC is being created.
8691
- * * If the VPC is in the **Created** state, the VPC is created.
8692
- * * You cannot repeatedly call the **DeleteRouteEntry** operation to create default VPCs within a specific time period. However, you can repeatedly call this operation to create custom VPCs within a specific time period.
8784
+ * * If the VPC is in the **Pending** state, the VPC is being created.
8785
+ * * If the VPC is in the **Available** state, the VPC is created.
8786
+ * * You cannot repeatedly call the **CreateVpc** operation to create default VPCs within a specific time period. However, you can repeatedly call this operation to create custom VPCs within a specific time period.
8693
8787
  *
8694
8788
  * @param request - CreateVpcRequest
8695
8789
  * @returns CreateVpcResponse
@@ -10213,6 +10307,72 @@ export default class Client extends OpenApi {
10213
10307
  return await this.deleteDhcpOptionsSetWithOptions(request, runtime);
10214
10308
  }
10215
10309
 
10310
+ /**
10311
+ * Deletes an Enhanced VPN gateway.
10312
+ *
10313
+ * @param request - DeleteEnhancedVpnGatewayRequest
10314
+ * @param runtime - runtime options for this request RuntimeOptions
10315
+ * @returns DeleteEnhancedVpnGatewayResponse
10316
+ */
10317
+ async deleteEnhancedVpnGatewayWithOptions(request: $_model.DeleteEnhancedVpnGatewayRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteEnhancedVpnGatewayResponse> {
10318
+ request.validate();
10319
+ let query = { };
10320
+ if (!$dara.isNull(request.clientToken)) {
10321
+ query["ClientToken"] = request.clientToken;
10322
+ }
10323
+
10324
+ if (!$dara.isNull(request.ownerAccount)) {
10325
+ query["OwnerAccount"] = request.ownerAccount;
10326
+ }
10327
+
10328
+ if (!$dara.isNull(request.ownerId)) {
10329
+ query["OwnerId"] = request.ownerId;
10330
+ }
10331
+
10332
+ if (!$dara.isNull(request.regionId)) {
10333
+ query["RegionId"] = request.regionId;
10334
+ }
10335
+
10336
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
10337
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
10338
+ }
10339
+
10340
+ if (!$dara.isNull(request.resourceOwnerId)) {
10341
+ query["ResourceOwnerId"] = request.resourceOwnerId;
10342
+ }
10343
+
10344
+ if (!$dara.isNull(request.vpnGatewayId)) {
10345
+ query["VpnGatewayId"] = request.vpnGatewayId;
10346
+ }
10347
+
10348
+ let req = new $OpenApiUtil.OpenApiRequest({
10349
+ query: OpenApiUtil.query(query),
10350
+ });
10351
+ let params = new $OpenApiUtil.Params({
10352
+ action: "DeleteEnhancedVpnGateway",
10353
+ version: "2016-04-28",
10354
+ protocol: "HTTPS",
10355
+ pathname: "/",
10356
+ method: "POST",
10357
+ authType: "AK",
10358
+ style: "RPC",
10359
+ reqBodyType: "formData",
10360
+ bodyType: "json",
10361
+ });
10362
+ return $dara.cast<$_model.DeleteEnhancedVpnGatewayResponse>(await this.callApi(params, req, runtime), new $_model.DeleteEnhancedVpnGatewayResponse({}));
10363
+ }
10364
+
10365
+ /**
10366
+ * Deletes an Enhanced VPN gateway.
10367
+ *
10368
+ * @param request - DeleteEnhancedVpnGatewayRequest
10369
+ * @returns DeleteEnhancedVpnGatewayResponse
10370
+ */
10371
+ async deleteEnhancedVpnGateway(request: $_model.DeleteEnhancedVpnGatewayRequest): Promise<$_model.DeleteEnhancedVpnGatewayResponse> {
10372
+ let runtime = new $dara.RuntimeOptions({ });
10373
+ return await this.deleteEnhancedVpnGatewayWithOptions(request, runtime);
10374
+ }
10375
+
10216
10376
  /**
10217
10377
  * Deletes a Express Connect instance, including the initiator and acceptor.
10218
10378
  *
@@ -13108,8 +13268,8 @@ export default class Client extends OpenApi {
13108
13268
  * * You can delete only vSwitches that are in the **Available** state.
13109
13269
  * * You cannot delete a vSwitch from a VPC where a vSwitch or a route is being created or deleted.
13110
13270
  * * **DeleteVSwitch** 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 [DescribeVSwitchAttributes](https://help.aliyun.com/document_detail/94567.html) operation to query the status of the task:
13111
- * * If the vSwitch is in the **Pending** state, the vSwitch is being deleted.
13112
- * * If you cannot query the vSwitch, the vSwitch is deleted.
13271
+ * * If the vSwitch is in the **Deleting** state, the vSwitch is being deleted.
13272
+ * * If the DescribeVSwitchAttributes operation returns empty values for the vSwitch attributes, the vSwitch is deleted.
13113
13273
  * * You cannot repeatedly call the **DeleteVSwitch** operation to delete a vSwitch within the specified period of time.
13114
13274
  *
13115
13275
  * @param request - DeleteVSwitchRequest
@@ -13173,8 +13333,8 @@ export default class Client extends OpenApi {
13173
13333
  * * You can delete only vSwitches that are in the **Available** state.
13174
13334
  * * You cannot delete a vSwitch from a VPC where a vSwitch or a route is being created or deleted.
13175
13335
  * * **DeleteVSwitch** 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 [DescribeVSwitchAttributes](https://help.aliyun.com/document_detail/94567.html) operation to query the status of the task:
13176
- * * If the vSwitch is in the **Pending** state, the vSwitch is being deleted.
13177
- * * If you cannot query the vSwitch, the vSwitch is deleted.
13336
+ * * If the vSwitch is in the **Deleting** state, the vSwitch is being deleted.
13337
+ * * If the DescribeVSwitchAttributes operation returns empty values for the vSwitch attributes, the vSwitch is deleted.
13178
13338
  * * You cannot repeatedly call the **DeleteVSwitch** operation to delete a vSwitch within the specified period of time.
13179
13339
  *
13180
13340
  * @param request - DeleteVSwitchRequest
@@ -15114,7 +15274,7 @@ export default class Client extends OpenApi {
15114
15274
  }
15115
15275
 
15116
15276
  /**
15117
- * Queries the monitoring data of an elastic IP address (EIP). You can query monitoring data within the last 30 days, and get up to 400 data points in each request.
15277
+ * Queries the monitoring data of an elastic IP address (EIP). You can query monitoring data within the last 30 days, and obtain up to 400 data points in each request.
15118
15278
  *
15119
15279
  * @remarks
15120
15280
  * To improve user experience in querying monitoring data, we recommend that you call the DescribeMetricList API operation provided by CloudMonitor to query EIP monitoring data. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html) and [EIP monitoring data](https://help.aliyun.com/document_detail/162874.html).
@@ -15180,7 +15340,7 @@ export default class Client extends OpenApi {
15180
15340
  }
15181
15341
 
15182
15342
  /**
15183
- * Queries the monitoring data of an elastic IP address (EIP). You can query monitoring data within the last 30 days, and get up to 400 data points in each request.
15343
+ * Queries the monitoring data of an elastic IP address (EIP). You can query monitoring data within the last 30 days, and obtain up to 400 data points in each request.
15184
15344
  *
15185
15345
  * @remarks
15186
15346
  * To improve user experience in querying monitoring data, we recommend that you call the DescribeMetricList API operation provided by CloudMonitor to query EIP monitoring data. For more information, see [DescribeMetricList](https://help.aliyun.com/document_detail/51936.html) and [EIP monitoring data](https://help.aliyun.com/document_detail/162874.html).
@@ -19382,6 +19542,10 @@ export default class Client extends OpenApi {
19382
19542
  /**
19383
19543
  * Queries the configuration of a virtual private cloud (VPC).
19384
19544
  *
19545
+ * @remarks
19546
+ * ## Debugging
19547
+ * [You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.](https://api.aliyun.com/#product=Vpc\\&api=DescribeVpcAttribute\\&type=RPC\\&version=2016-04-28)
19548
+ *
19385
19549
  * @param request - DescribeVpcAttributeRequest
19386
19550
  * @param runtime - runtime options for this request RuntimeOptions
19387
19551
  * @returns DescribeVpcAttributeResponse
@@ -19441,6 +19605,10 @@ export default class Client extends OpenApi {
19441
19605
  /**
19442
19606
  * Queries the configuration of a virtual private cloud (VPC).
19443
19607
  *
19608
+ * @remarks
19609
+ * ## Debugging
19610
+ * [You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.](https://api.aliyun.com/#product=Vpc\\&api=DescribeVpcAttribute\\&type=RPC\\&version=2016-04-28)
19611
+ *
19444
19612
  * @param request - DescribeVpcAttributeRequest
19445
19613
  * @returns DescribeVpcAttributeResponse
19446
19614
  */
@@ -23330,7 +23498,7 @@ export default class Client extends OpenApi {
23330
23498
  }
23331
23499
 
23332
23500
  /**
23333
- * Queries he connection features supported by a Express Connect circuit.
23501
+ * Querying the connection features supported by a Express Connect circuit.
23334
23502
  *
23335
23503
  * @param request - ListPhysicalConnectionFeaturesRequest
23336
23504
  * @param runtime - runtime options for this request RuntimeOptions
@@ -23385,7 +23553,7 @@ export default class Client extends OpenApi {
23385
23553
  }
23386
23554
 
23387
23555
  /**
23388
- * Queries he connection features supported by a Express Connect circuit.
23556
+ * Querying the connection features supported by a Express Connect circuit.
23389
23557
  *
23390
23558
  * @param request - ListPhysicalConnectionFeaturesRequest
23391
23559
  * @returns ListPhysicalConnectionFeaturesResponse
@@ -28278,7 +28446,7 @@ export default class Client extends OpenApi {
28278
28446
  }
28279
28447
 
28280
28448
  /**
28281
- * Modifies the name and description of a vSwitch.
28449
+ * Modifies the name, description, and IPv6 settings of a vSwitch.
28282
28450
  *
28283
28451
  * @remarks
28284
28452
  * **ModifyVSwitchAttribute** 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 [DescribeVSwitchAttributes](https://help.aliyun.com/document_detail/94567.html) operation to query the status of the task:
@@ -28355,7 +28523,7 @@ export default class Client extends OpenApi {
28355
28523
  }
28356
28524
 
28357
28525
  /**
28358
- * Modifies the name and description of a vSwitch.
28526
+ * Modifies the name, description, and IPv6 settings of a vSwitch.
28359
28527
  *
28360
28528
  * @remarks
28361
28529
  * **ModifyVSwitchAttribute** 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 [DescribeVSwitchAttributes](https://help.aliyun.com/document_detail/94567.html) operation to query the status of the task:
@@ -28708,7 +28876,7 @@ export default class Client extends OpenApi {
28708
28876
  }
28709
28877
 
28710
28878
  /**
28711
- * Modifies the configurations of a specified VPC.
28879
+ * Modifies the name and description of a virtual private cloud (VPC).
28712
28880
  *
28713
28881
  * @remarks
28714
28882
  * ## [](#)Description
@@ -28791,7 +28959,7 @@ export default class Client extends OpenApi {
28791
28959
  }
28792
28960
 
28793
28961
  /**
28794
- * Modifies the configurations of a specified VPC.
28962
+ * Modifies the name and description of a virtual private cloud (VPC).
28795
28963
  *
28796
28964
  * @remarks
28797
28965
  * ## [](#)Description
@@ -30670,7 +30838,8 @@ export default class Client extends OpenApi {
30670
30838
  }
30671
30839
 
30672
30840
  /**
30673
- * Disassociates an EIP from an Internet Shared Bandwidth instance.
30841
+ * The region ID of the Internet Shared Bandwidth instance.
30842
+ * You can call the [DescribeRegions]\\(~~36063~~) operation to query the most recent region list.
30674
30843
  *
30675
30844
  * @param request - RemoveCommonBandwidthPackageIpRequest
30676
30845
  * @param runtime - runtime options for this request RuntimeOptions
@@ -30729,7 +30898,8 @@ export default class Client extends OpenApi {
30729
30898
  }
30730
30899
 
30731
30900
  /**
30732
- * Disassociates an EIP from an Internet Shared Bandwidth instance.
30901
+ * The region ID of the Internet Shared Bandwidth instance.
30902
+ * You can call the [DescribeRegions]\\(~~36063~~) operation to query the most recent region list.
30733
30903
  *
30734
30904
  * @param request - RemoveCommonBandwidthPackageIpRequest
30735
30905
  * @returns RemoveCommonBandwidthPackageIpResponse
@@ -32895,6 +33065,84 @@ export default class Client extends OpenApi {
32895
33065
  return await this.updateDhcpOptionsSetAttributeWithOptions(request, runtime);
32896
33066
  }
32897
33067
 
33068
+ /**
33069
+ * 修改增强型VPN实例属性
33070
+ *
33071
+ * @param request - UpdateEnhancedVpnGatewayRequest
33072
+ * @param runtime - runtime options for this request RuntimeOptions
33073
+ * @returns UpdateEnhancedVpnGatewayResponse
33074
+ */
33075
+ async updateEnhancedVpnGatewayWithOptions(request: $_model.UpdateEnhancedVpnGatewayRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateEnhancedVpnGatewayResponse> {
33076
+ request.validate();
33077
+ let query = { };
33078
+ if (!$dara.isNull(request.autoPropagate)) {
33079
+ query["AutoPropagate"] = request.autoPropagate;
33080
+ }
33081
+
33082
+ if (!$dara.isNull(request.clientToken)) {
33083
+ query["ClientToken"] = request.clientToken;
33084
+ }
33085
+
33086
+ if (!$dara.isNull(request.description)) {
33087
+ query["Description"] = request.description;
33088
+ }
33089
+
33090
+ if (!$dara.isNull(request.name)) {
33091
+ query["Name"] = request.name;
33092
+ }
33093
+
33094
+ if (!$dara.isNull(request.ownerAccount)) {
33095
+ query["OwnerAccount"] = request.ownerAccount;
33096
+ }
33097
+
33098
+ if (!$dara.isNull(request.ownerId)) {
33099
+ query["OwnerId"] = request.ownerId;
33100
+ }
33101
+
33102
+ if (!$dara.isNull(request.regionId)) {
33103
+ query["RegionId"] = request.regionId;
33104
+ }
33105
+
33106
+ if (!$dara.isNull(request.resourceOwnerAccount)) {
33107
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
33108
+ }
33109
+
33110
+ if (!$dara.isNull(request.resourceOwnerId)) {
33111
+ query["ResourceOwnerId"] = request.resourceOwnerId;
33112
+ }
33113
+
33114
+ if (!$dara.isNull(request.vpnGatewayId)) {
33115
+ query["VpnGatewayId"] = request.vpnGatewayId;
33116
+ }
33117
+
33118
+ let req = new $OpenApiUtil.OpenApiRequest({
33119
+ query: OpenApiUtil.query(query),
33120
+ });
33121
+ let params = new $OpenApiUtil.Params({
33122
+ action: "UpdateEnhancedVpnGateway",
33123
+ version: "2016-04-28",
33124
+ protocol: "HTTPS",
33125
+ pathname: "/",
33126
+ method: "POST",
33127
+ authType: "AK",
33128
+ style: "RPC",
33129
+ reqBodyType: "formData",
33130
+ bodyType: "json",
33131
+ });
33132
+ return $dara.cast<$_model.UpdateEnhancedVpnGatewayResponse>(await this.callApi(params, req, runtime), new $_model.UpdateEnhancedVpnGatewayResponse({}));
33133
+ }
33134
+
33135
+ /**
33136
+ * 修改增强型VPN实例属性
33137
+ *
33138
+ * @param request - UpdateEnhancedVpnGatewayRequest
33139
+ * @returns UpdateEnhancedVpnGatewayResponse
33140
+ */
33141
+ async updateEnhancedVpnGateway(request: $_model.UpdateEnhancedVpnGatewayRequest): Promise<$_model.UpdateEnhancedVpnGatewayResponse> {
33142
+ let runtime = new $dara.RuntimeOptions({ });
33143
+ return await this.updateEnhancedVpnGatewayWithOptions(request, runtime);
33144
+ }
33145
+
32898
33146
  /**
32899
33147
  * Updates a failover test.
32900
33148
  *
@@ -66,7 +66,7 @@ export class AssociateVpcCidrBlockRequest extends $dara.Model {
66
66
  * You can call the [DescribeRegions](https://help.aliyun.com/document_detail/36063.html) operation to query the region ID.
67
67
  *
68
68
  * @example
69
- * ch-hangzhou
69
+ * cn-hangzhou
70
70
  */
71
71
  regionId?: string;
72
72
  resourceOwnerAccount?: string;
@@ -83,7 +83,7 @@ export class AssociateVpcCidrBlockRequest extends $dara.Model {
83
83
  * * The CIDR block cannot start with 0. The subnet mask must be 8 to 28 bits in length.
84
84
  * * The CIDR block cannot overlap with the primary CIDR block or an existing secondary CIDR block of the VPC.
85
85
  *
86
- * > You must and can specify only one of **SecondaryCidrBlock** and **Ipv6CidrBlock**.
86
+ * > You must and can specify only one of **SecondaryCidrBlock** and **IPv6CidrBlock**.
87
87
  *
88
88
  * @example
89
89
  * 192.168.0.0/16
@@ -34,7 +34,7 @@ export class CreateDefaultVSwitchRequest extends $dara.Model {
34
34
  * This parameter is required.
35
35
  *
36
36
  * @example
37
- * cn-hangzhou
37
+ * ap-southeast-1
38
38
  */
39
39
  regionId?: string;
40
40
  resourceOwnerAccount?: string;
@@ -48,7 +48,7 @@ export class CreateDefaultVSwitchRequest extends $dara.Model {
48
48
  * This parameter is required.
49
49
  *
50
50
  * @example
51
- * cn-hangzhou-b
51
+ * ap-southeast-1a
52
52
  */
53
53
  zoneId?: string;
54
54
  static names(): { [key: string]: string } {
@@ -0,0 +1,115 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateEnhancedVpnGatewayRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * 02fb3da4****
9
+ */
10
+ clientToken?: string;
11
+ /**
12
+ * @example
13
+ * vsw-p0wiz7obm0tbimu4r****
14
+ */
15
+ disasterRecoveryVSwitchId?: string;
16
+ /**
17
+ * @remarks
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * Enhanced.SiteToSite
22
+ */
23
+ gatewayType?: string;
24
+ /**
25
+ * @example
26
+ * MYVPN
27
+ */
28
+ name?: string;
29
+ /**
30
+ * @example
31
+ * public
32
+ */
33
+ networkType?: string;
34
+ ownerAccount?: string;
35
+ ownerId?: number;
36
+ /**
37
+ * @remarks
38
+ * This parameter is required.
39
+ *
40
+ * @example
41
+ * cn-hangzhou
42
+ */
43
+ regionId?: string;
44
+ /**
45
+ * @example
46
+ * rg-acfmzs372yg****
47
+ */
48
+ resourceGroupId?: string;
49
+ resourceOwnerAccount?: string;
50
+ resourceOwnerId?: number;
51
+ /**
52
+ * @example
53
+ * vsw-bp1j5miw2bae9s2vt****
54
+ */
55
+ vSwitchId?: string;
56
+ /**
57
+ * @remarks
58
+ * This parameter is required.
59
+ *
60
+ * @example
61
+ * vpc-bp1ub1yt9cvakoelj****
62
+ */
63
+ vpcId?: string;
64
+ /**
65
+ * @example
66
+ * Normal
67
+ */
68
+ vpnType?: string;
69
+ static names(): { [key: string]: string } {
70
+ return {
71
+ clientToken: 'ClientToken',
72
+ disasterRecoveryVSwitchId: 'DisasterRecoveryVSwitchId',
73
+ gatewayType: 'GatewayType',
74
+ name: 'Name',
75
+ networkType: 'NetworkType',
76
+ ownerAccount: 'OwnerAccount',
77
+ ownerId: 'OwnerId',
78
+ regionId: 'RegionId',
79
+ resourceGroupId: 'ResourceGroupId',
80
+ resourceOwnerAccount: 'ResourceOwnerAccount',
81
+ resourceOwnerId: 'ResourceOwnerId',
82
+ vSwitchId: 'VSwitchId',
83
+ vpcId: 'VpcId',
84
+ vpnType: 'VpnType',
85
+ };
86
+ }
87
+
88
+ static types(): { [key: string]: any } {
89
+ return {
90
+ clientToken: 'string',
91
+ disasterRecoveryVSwitchId: 'string',
92
+ gatewayType: 'string',
93
+ name: 'string',
94
+ networkType: 'string',
95
+ ownerAccount: 'string',
96
+ ownerId: 'number',
97
+ regionId: 'string',
98
+ resourceGroupId: 'string',
99
+ resourceOwnerAccount: 'string',
100
+ resourceOwnerId: 'number',
101
+ vSwitchId: 'string',
102
+ vpcId: 'string',
103
+ vpnType: 'string',
104
+ };
105
+ }
106
+
107
+ validate() {
108
+ super.validate();
109
+ }
110
+
111
+ constructor(map?: { [key: string]: any }) {
112
+ super(map);
113
+ }
114
+ }
115
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateEnhancedVpnGatewayResponseBody } from "./CreateEnhancedVpnGatewayResponseBody";
4
+
5
+
6
+ export class CreateEnhancedVpnGatewayResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateEnhancedVpnGatewayResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: CreateEnhancedVpnGatewayResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+